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

Talk never draws a Do it for something the person may not do #16202

Merged opened this

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

Merged

Talk never draws a Do it for something the person may not do Seen with a real model: a member's agent was offered knobs (it sits in the default list and refuses at run with "no such tool here"), a budget picker, and a request-changes review on a repository the member cannot write; each was held, and each Do it failed w…

Notes

shipped production is serving it deploy 3fede26

opened this

Talk never draws a Do it for something the person may not do

Seen with a real model: a member's agent was offered knobs (it sits in the default list and refuses at run with "no such tool here"), a budget picker, and a request-changes review on a repository the member cannot write; each was held, and each Do it failed with a 422.

  • A tool that refuses everyone but a forge admin inside run now declares listedTo: "admin" (knobs, valves, forges, quotas, capacity, limits, signup, teams, access, account_requests, features, flags, flag_set, flag_winner, invites, mint_invite, drills, boards and their writes, cloud_account(s), maintenance, pinned_forge, snapshot_now): listed to an admin alone, in tools/list, find_tool and /llms.txt; called by anyone else it runs to its own refusal, in its own words, and is never held.
  • A write the tool would refuse this person for their access declares refusesFirst, the same check and words as its run, and is answered as refused before the fence could hold it: a review verdict (write access or a team reviewer) and merge (write access; landing as it is waits for a green check).
  • test/talk-no-dead-holds.test.ts walks every tool a member and a guest are listed, in full and to their Talk agent, and fails on a refusal for lack of role; it proves the review and merge cases through /mcp with a member's Talk token after a hostile read.

Try: as a member on the preview, ask Talk to turn on autonomy or to request changes on a pull in someone else's repository, and see it say why it cannot instead of drawing Do it No look: the MCP tool list and refusals only; no page changes No door: the terminal talks to the same agent (ssh talk, forge talk), which gets the same list and refusals; nothing new to show there Direction: the owner asked on 2026-11-24 to trust what he is presented; eight simulated people were offered actions they could not take (#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): five of them were shown a Do it for something they could not do, pressed it, got 422 knobs did not go through: no such tool here, and were never told why. Stands alone on main.

🤖 Generated with Claude Code

Changes requested — before the latest push

The idea is right and the Never is real: Talk drew a Do it for a call that could only fail. Preview opened: / answers 200 and /llms.txt serves at 140aa96. The forge pictures sit outside my sandbox, so the look is judged from the diff; the change draws no page or markup. I found no security hole: the refusals run before the fence and use the same words as run, and they check identity. Three things to fix in one round.

  1. One way to do it. listedTo: "admin" and adminOnly now both mean "only an admin is offered this". The only difference is whether a non-admin gets not_found or the tool's own refusal. callableBy in src/web/llms_tools.ts treats them the same. Either fold the two into one declaration, or say in docs/MCP.md and on the Tool type when to use each. The new listedTo JSDoc should name adminOnly and say how it differs.
  2. Duplicated checks. refusesFirst in merge.ts and review.ts copies the write, verdict and green-check tests from run. The two copies will drift, and a drifted copy brings back the dead Do it. Pull each check into one function that both run and refusesFirst call.
  3. src/release/outsider.ts now skips the check that signup still exists whenever options.ownerToken is undefined. Before, that check always ran. When there is no owner token, keep the old assertion or report the skip as a finding. Don't let a moved door pass silently.

Smaller: the test header says adminOnly, but the mechanism is listedTo. The unlisted and refused lines in mcp.ts run to 150 characters or more, so split them.

commented

Steward note: new head 1066316, answering the review.

  1. One way to do it. adminOnly and listedTo are documented on the Tool type and in docs/MCP.md: both hide a tool from everyone but a forge admin; with adminOnly the door answers a call by name, with listedTo the tool's own refusal does. Not folded into one in this pull: folding changes the refusal words about twenty tests pin, which is its own small change.
  2. No copied checks. merge and review each call one function per check (write access, green check, verdict) from both the early refusal and run. Side effect: a review by someone who may not give a verdict answers forbidden in both places; run used to say refused.
  3. No silent skip. With no owner token the outsider suite now reports that signup's door was not checked.

The test header names listedTo; the long lines are split. Checked: type check and gate clean.

Approved

Earlier asks: (1) one way to do it: adminOnly and listedTo are now documented on the type and in docs/MCP.md with when to use each; folding them is left to its own change because about twenty tests pin the refusal words. I accept that. (2) No copied checks: merge and review now call one function per check from both refusesFirst and run. (3) No silent skip: the outsider suite reports signup's door as unchecked when no owner token is given. Security: the early refusal runs only for a visible tool and a call that is not plan-only, and listedTo tools still run to their own refusal, so no authorization is widened. The walk-every-tool test would fail without the change. Non-blocking: merge.ts has two adjacent comments saying the same thing above refusesFirst; keep one.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs