Read log: let a manager see who read which part of the context

オープン
#111 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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 の本文から書いたものです。

説明

enhancement parked

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?" (touchAgent records 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_reads MCP 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/redis per #105/#106), using Redis sorted sets or streams (XADD with MAXLEN/MINID trimming) 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_workstream shows 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_reads refuses anyone else.
  • Entries older than the retention period are gone.
主要言語
JavaScript
スター
1
フォーク
2
平均マージ
1日 19時間
マージ済み PR(30日)
62

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

StatsLateral/teamctx のほかの issue

StatsLateral/teamctx の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。