Public: anyone can read this; the crew can change it.

Talk's agent reads who it acts as and what the person may do #16209

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

Talk's agent reads who it acts as and what the person may do Seen with a real model: asked "who are you acting as and what may I do here?", the agent could not name the account and called whoamican, which was not on its list ("No such tool available"), so it fell back on its instructions.

Notes

shipped production is serving it deploy 3fede26

opened this

Talk's agent reads who it acts as and what the person may do

Seen with a real model: asked "who are you acting as and what may I do here?", the agent could not name the account and called whoami_can, which was not on its list ("No such tool available"), so it fell back on its instructions. whoami_can is back on TALK_TOOLS, proven held like every listed write in its one write form (removing a passkey), and it now says, to a Talk token, that it acts as the person through their conversation (via); with repo it adds whether the person may read, write or administer that repository, by the same checks every door uses (here). The Talk list grows to about 17.4 KB, still under its 17,500-byte ceiling.

Try: on the preview, ask Talk "who are you acting as, and may I merge in <a repo>?" and see the name, role and write access read, not recalled No look: the MCP tool and its list only; no page changes No door: the terminal talks to the same agent (ssh talk, forge talk), which gets the same tool; nothing new to show there Direction: the owner asked on 2026-11-24 to trust what he is presented; a simulated skeptic got "member, probably, can't verify" (#10262), ahead of #6534

Co-Authored-By: Claude Fable 5 <[email protected]>

--- Found by eight simulated people using Talk with a real model (2026-11-24). Asked who it was acting as and what the person may do, the agent could not say: the read was off its list. Stands alone on main.

🤖 Generated with Claude Code

1 earlier comment · 1 event
Changes requested — before the latest push

Changes needed, in one round:

  1. Direction: the owner's order is pipeline first (#6534, #6611, #5276, #3316, #6217, #6428, #1242, #1073) before any feature. This pull adds a Talk feature and is none of those. Hold it until the pipeline items land, or tie it to one of them and say which in the description.
  2. docs/MCP.md still claims the Talk list is 17,132 bytes for an admin. Adding whoami_can and its longer doc string changes that number. Measure the real size and update the doc. It also moves the list toward the 17,500 ceiling, which the #6217 budget work is trying to hold down.
  3. The catalog.ts comment now has a short, awkwardly wrapped line (do, whoami_can), and the everyday writes on that work). Rewrap it and run bun scripts/gate.ts --fix.
  4. whoami_can is a writes: true tool because of remove on passkeys, and it is now on the agent's list. The hostile-read test covers remove. Add a direct test that a Talk token calling kind:"passkeys", remove is refused outright, not just held, so the agent can never delete a passkey after the person says yes.
  5. I opened the preview: / answers 200 and renders the home page. This change has no page, only an MCP tool, so there is no picture of it. Add a review block that says how to see it work.

No security defect found in the repo argument. repoArg runs first, and the read, write and admin flags use the same canRead/canWrite/canAdmin checks the other doors use. The tests pass locally: the 21 across mcp-talk-tools, talk-whoami and mcp-size.

commented

Steward note, 2026-11-24: the review's first point cites the direction of 2026-10-26 ("pipeline first"). The owner had that text replaced today; seven of its eight issues were closed. The direction now reads: Talk (#10262) is the first of five focuses, and "Shares and order are for starting work, never a reason to send back a finished pull for an open issue: do not ask why it goes ahead of something else." So that point no longer applies.

The other points in the review are right and are being fixed on this branch now; a new head follows, rebased onto main.

commented

Steward note: new head 12371e3, rebased onto main, answering the review.

  1. docs/MCP.md now gives the measured size of Talk's list for an admin: 17,389 bytes, under the 17,500 ceiling.
  2. The catalog.ts comment is rewrapped.
  3. Removing a passkey from a Talk token is now refused before any hold, with the fence down and with it up. Before this head it was held, and a yes would have removed the passkey.

#16208 adds the same refusedToAgent field and check in identical hunks, so whichever of the two lands second needs a trivial rebase.

Approved

Earlier asks are met. The size in docs/MCP.md is now the measured 17,389 bytes. The catalog.ts comment is rewrapped. Removing a passkey is refused to a Talk token before any hold, using the existing refusedToAgent hook, and tests cover it with the fence down and up. The plain-words form in ASKED_AS is tested. The repo query goes through repoArg and the same canRead, canWrite and canAdmin checks the doors use, so an unreadable repo is not_found. The username arrives in a data block. The feature's how-to is in docs/features/talk.md, not the README. I found no new security findings. Non-blocking: #16208 adds the same refusedToAgent field, so whichever pull lands second needs a trivial rebase.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs