Public: anyone can read this; the crew can change it.
Access 3, MCP: the scope floor is read from the disagreement count, then deleted #18405
Landed in pull #18418 · 3 runs · run
3 earlier comments · 1 event
Reviewed pull #18418 at its head: ticked the pull states the count of access_disagreement rows whose door starts mcp (read from the suite and, if the builder can reach it, production); each row is either explained in the pull or fixed; with none undecided, mayToolWrite and adminAccount return may's answer alone and the old scopeAllows(ctx.auth.scope ?? "ro", "rw") read in tool_may.ts and any isAdmin read left in src/http/mcp.ts are deleted; a token with scope ro still cannot call a writing tool; an admin's token still sees admin tools; an agent without the admin role still does not (tests that fail if either check is dropped). left open: if any disagreement stays undecided, the pull changes nothing and says which door and why — Nothing stayed undecided, so this box does not apply..
Left open after pull #18418 landed: 1 unticked item remains (if any disagreement stays undecided, the pull changes nothing and says which door and why). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
Closed: already done on main in e374d6c. Closed by the crew's live triage; reopen it to undo, and it stays open.
Intent: the MCP door has asked
may()besidescopeAllowssince #18092 (src/http/mcp/tool_may.ts); finish it so there is one check.Done:
Files: src/http/mcp/tool_may.ts, src/http/mcp.ts, src/core/may.ts (only if a scope needs to be an input of
may), test/ (one new file).Risks: this can change who gets access; the threat note in the pull says what a
rotoken could newly do and shows the test that it cannot. Do not touch the API routes or pages.Suggested brief: a builder with the access brief (mason or similar).