Read log: let a manager see who read which part of the context
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 18/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- javascript, redis
调研方向
This is design work, so start by agreeing the event shape and retention with maintainers. Read src/oauth/kv.js to see the existing Upstash layer the capped log would use, and find where get_workstream and the other read tools return context. Done means the Acceptance list holds: a member's read appears for the manager within a minute, no context text is stored, and list_reads refuses non-managers.
由索引模型根据 Issue 内容生成。
描述
Problem
teamctx records every change to shared context: git history, contributions.jsonl with author and source, provenance on each statement, and snapshots. It records no reads. A manager can't answer:
- "Did the contractor's AI read the pricing workstream before they left?"
- "Which parts of the project are people actually pulling into their AIs, and which are ignored?"
- "Is this agent token still being used, and for what?" (
touchAgentrecords only when it was last used.)
For a manager governing personal AIs, reads are where context leaves the team. Once an AI has read context, where it goes depends on that person's AI plan: consumer Claude and ChatGPT plans train on chats by default (Witness AI). teamctx can't control that, but it can let the manager see what went out, to whom. That's the part of BYOAI governance that's still in our hands.
Proposed solution
A read log for the hosted path (the only path teamctx sees; a clone-holder reads the repository directly, which the log should say plainly):
- What gets recorded: a time, the actor (
key, name, source: github / google / agent), the tool, and which workstream(s) or role was returned. Tools:get_context,get_workstream,get_role_context,my_brief,get_task,task_compile,ask, and the web project page. - Never recorded: content. The log only says who read which part.
- Where it's stored: the team's own deployment, as a capped, time-limited log (e.g. 90 days), not a commit per read (which would flood git history). This keeps with the data-ownership principle: the deployment is the team's own.
- Where it's shown:
- A manager-only "Recent reads" card on the project page (#103), grouped by person and workstream.
- A
list_readsMCP tool (manager-gated) so a manager can ask their assistant: "who read the pricing workstream this month?"
- Members can see their own reads, which makes the logging transparent rather than covert.
Existing open source first
- Storage: reuse the existing Upstash/KV layer (
src/oauth/kv.js, or@upstash/redisper #105/#106), using Redis sorted sets or streams (XADDwithMAXLEN/MINIDtrimming) for a capped log. Don't build a log store. - If a team wants to send it elsewhere later: emit the same events as OpenTelemetry logs so any existing backend can collect them. That's optional and not part of this issue.
- Considered and rejected: an MCP gateway (Bifrost, Lunar MCPX, Obot). These log tool calls, but in front of the server, without teamctx's workstream and role meaning, and they'd add a second deployment. The event is only meaningful with teamctx's scope, so it belongs in the server.
- What teamctx builds: deciding which reads count, attaching workstream and role to each event, manager-only access, and the project-page card.
Acceptance
- A scoped member's
get_workstreamshows up for the manager within a minute: who, when, and which workstream. - Nothing in the log contains context text, and a test proves it.
- Non-managers can see only their own entries, and
list_readsrefuses anyone else. - Entries older than the retention period are gone.
- 主要语言
- JavaScript
- 星标
- 1
- 派生
- 2
- 平均合并
- 1 天 19 小时
- 30 天内合并 PR
- 62
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
StatsLateral/teamctx 的其他 Issue
-
Sign-in page: label GitHub as for Team Managers and Google as for Team Members可能已有人在做 @StatsLateral 今天认领。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 76/100
StatsLateral/teamctx#343 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
StatsLateral/teamctx#342 ·
维护者通常 1 天内回复
-
enhancement parked
难度 5/5 一周以上 新手友好度 35/100
StatsLateral/teamctx#341 ·
维护者通常 1 天内回复
-
Let a manager delete a task before anyone has worked on it, and archive it after可能已有人在做 @satyagyasingh 于 14 天前认领。 未关闭enhancement
难度 4/5 3-5 天 新手友好度 45/100
StatsLateral/teamctx#320 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
StatsLateral/teamctx#301 ·
维护者通常 1 天内回复
查看 StatsLateral/teamctx 的全部 Issue
相似的 Issue
-
Flow Needs: Triage :mag:
难度 2/5 1-3 小时 新手友好度 76/100
react/react-native#60447 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
erkamyaman/rust-anything#1153 ·
维护者通常 1 天内回复
-
Entity picker filter keeps the first kind's groups after switching Specific Term / Specific Post未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
davidofchatham/bws-gb-dynamic-tags-extensions#177 ·
维护者通常 1 天内回复
-
frontend good first issue kind:task level:starter size:s
难度 2/5 1-3 小时 新手友好度 82/100
Arggon/ArggonStores#42 ·
维护者通常 1 天内回复
-
accessibility area: frontend area: i18n beginner-friendly bug difficulty: easy good first issue i18n keyboard priority: P3 quality user-experience
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复