Appearance
0003. MCP confirmation for sensitive tools
Status: superseded by ADR 0006, which replaced the confirm step with MCP tokens and a person's approval in the web app. The confirmed flag in crates/kernel and crates/authz is unchanged.
Context
Rule 10 says agents may draft and recommend, but approvals, payroll locks, pay changes and bulk updates need a human, or an explicit confirm step for tools flagged sensitive. The MCP door must stop an agent from performing a sensitive action in a single call.
Decision
A sensitive tool's first call runs nothing. It returns a description and a one-time id held in mcp.confirmations. The id is random, bound to tenant, actor, tool and a keyed digest of the input, valid for 5 minutes and redeemable once, and only orbit_doors can issue or redeem it. The second call, with the same input plus confirm: true and the id, runs with context.confirmed = true, and the audit entry records confirmed.
What it proves: the caller made a deliberate second call within 5 minutes, for exactly this input, with the same token. What it does not prove: that any person saw or approved anything. An agent can make both calls itself. MCP elicitation does not change this: the client renders it and answers it, so the server cannot tell a person's answer from the agent's. It is a prompt, not a control.
Door-switch bypass: the same token works on /graphql and the CLI, where people need no confirmation. An agent holding a person's token can skip the step entirely.
We accept both gaps for Phase 0. The only sensitive tool is deleting your own greeting, and no agent tokens exist.
Required before any real sensitive tool ships
- Door- or agent-bound tokens. MCP clients get tokens with audience
orbit-mcp, or act asActor::Agentwithon_behalf_of(ADR 0001, Future)./graphqland the CLI refuse MCP-audience tokens, so an agent cannot switch doors. - Out-of-band approval. The first call creates a pending approval that the person sees in the web app, showing the real arguments, signed in with their own session. The confirmation becomes redeemable only once they approve it there. The agent's own second call can never approve.
Consequences
- Tool descriptions and confirmation texts say the action is sensitive and needs an explicit second call, and that the client should ask its user. They never claim a person agreed. Sensitive tools set
destructiveHint. - Confirmation requests and door-level refusals are logged, not audited. Auditing them is tracked separately.