Skip to content

Commit d4ea9c4

Browse files
committed
docs(mcp,spec): name the in-client confirmation in the two MCP docs pages and the changeset
Prose only (L1-b rework 6917752886, R1): actions-as-tools.mdx and connect-mcp.mdx no longer state the hand-off as the only outcome; the person confirms in the client when it supports elicitation and the connection can carry the question, and in the app otherwise. The changeset's first bullet and two ai-service.ts docblock lines say the same. Claude-Session: https://claude.ai/code/session_01FEkQ5kgF3mo9f7LXuv5hac Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b0fa446 commit d4ea9c4

4 files changed

Lines changed: 36 additions & 20 deletions

File tree

‎.changeset/34209-retire-mcp-action-confirm-member.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Metadata-protocol: none (the retired member belongs to an MCP tool's input, not
1313

1414
**BREAKING** for an MCP client, an agent or a script that sends `confirm` to the `run_action` or `resume_run` tool. Ruled by the maintainer: the member is retired, so a stale client is refused loudly instead of silently ignored. Since the hand-off to the person in the app, the caller's `confirm: true` confirmed nothing on these two tools; now a call that carries the member at all is refused.
1515

16-
- `run_action` and `resume_run` no longer declare `confirm`. A call that carries it, `true` or `false`, is refused by the tool's closed input, the same refusal any undeclared argument gets. This applies on every action, whether or not it declares `ai.requiresConfirmation`. The refusal names the member and says that confirmation happens in the app, by the person. Nothing is resolved or run.
16+
- `run_action` and `resume_run` no longer declare `confirm`. A call that carries it, `true` or `false`, is refused by the tool's closed input, the same refusal any undeclared argument gets. This applies on every action, whether or not it declares `ai.requiresConfirmation`. The refusal names the member and says that confirmation happens in the app, by the person, or in the client when it supports elicitation and the connection can carry the question. Nothing is resolved or run.
1717
- Unchanged: a call without the member on a declared-gated action is confirmed by the person. A client that advertised `elicitation` on a connection that can carry the question (stdio) has the person asked in the client, and `accept` runs the call. Otherwise the call is handed to the person (`status: 'pending_confirmation'`), or refused `428 ACTION_CONFIRMATION_REQUIRED` with `details.reason: 'no_confirmation_service'` on a host with no pending-confirmation service. The MCP `delete_record` and `delete_records` tools still require `confirm: true`. A host's own door (`dispatchAction`) under the `ai` posture still reads `confirm`.
1818
- The served MCP skill (and the console's downloadable copy of it), the `tool.requiresConfirmation` retirement guidance in `@objectstack/spec`, and the contract prose in `@objectstack/spec/contracts` stop teaching `confirm: true` on these two tools. The upgrade-guide entry `action-requires-confirmation-elicited` now keys its switch on the hand-off rather than on elicitation, and names the refusal of the member.
1919

‎content/docs/ai/actions-as-tools.mdx‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,14 @@ through the API. Destructive actions (`confirmText`, `mode: 'delete'`,
128128
`requiresConfirmation: true` so the client can ask the human before calling. To
129129
assert that a destructive-looking action is safe for autonomous execution, set
130130
`ai.requiresConfirmation: false`.
131-
An action whose author declared `ai.requiresConfirmation: true` never runs on an
132-
agent's `run_action` call: the call is handed to the person the agent acts for,
133-
who approves or rejects it in the app (`status: "pending_confirmation"`), or it is
134-
refused `428` `ACTION_CONFIRMATION_REQUIRED` on a server with no
135-
pending-confirmation service. The agent cannot confirm for the person: `run_action`
131+
An action whose author declared `ai.requiresConfirmation: true` runs on an
132+
agent's `run_action` call only once the person the agent acts for confirms it:
133+
in the client, when the client supports elicitation and the connection can carry
134+
the question (accept runs the call once; decline, dismissal or no answer in time
135+
refuses it `ACTION_CONFIRMATION_REQUIRED`), and in the app otherwise: the call
136+
does not run, it is handed to the person, who approves or rejects it there
137+
(`status: "pending_confirmation"`), or it is refused `428`
138+
`ACTION_CONFIRMATION_REQUIRED` on a server with no pending-confirmation service. The agent cannot confirm for the person: `run_action`
136139
and `resume_run` refuse a call that carries `confirm`, on every action.
137140
An AI service account does not confirm an action for itself: an action declaring
138141
`ai.requiresConfirmation: true` refuses it at every door, REST `/actions` included,
@@ -212,9 +215,12 @@ on the same record for this caller:
212215
- **The same gates as `run_action`.** A flow action exposed to AI
213216
(`ai.exposed`) must target the run's flow on the run's object, and the caller
214217
must pass its `requiredPermissions` and its activation switch. When the
215-
action's author declared `ai.requiresConfirmation: true`, the resume is
216-
handed to the person as well, because the flow's writes happen after the
217-
screen: the run stays paused until they approve it in the app. `resume_run`
218+
action's author declared `ai.requiresConfirmation: true`, the resume needs
219+
the person as well, because the flow's writes happen after the screen: they
220+
are asked in the client when it supports elicitation and the connection can
221+
carry the question (accept continues the run; any other answer refuses the
222+
call and the run stays paused), and otherwise the run stays paused until they
223+
approve it in the app. `resume_run`
218224
takes no `confirm`; a call that carries it is refused.
219225
- **The record is read again as you.** A subject record you can no longer read
220226
is refused `RECORD_NOT_FOUND` (`404`), as `run_action` refuses it.

‎content/docs/ai/connect-mcp.mdx‎

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,11 @@ can reach is the **default exposure policy (v1)**:
418418
an organization, re-enabling an OAuth application) are exposed. Destructive
419419
lifecycle acts (banning a user, revoking a session or an API key, removing a
420420
member, deleting a team, leaving an organization) are exposed with
421-
`ai.requiresConfirmation: true`, so `run_action` never runs them on the
422-
agent's call: it hands each one to the person in the app, or refuses it
423-
(`428`) on a server with no pending-confirmation service. Acts that mint a credential or a session, change
421+
`ai.requiresConfirmation: true`, so `run_action` runs them only once the
422+
person confirms: in the client when it supports elicitation and the
423+
connection can carry the question, and otherwise it hands each one to the
424+
person in the app, or refuses it (`428`) on a server with no
425+
pending-confirmation service. Acts that mint a credential or a session, change
424426
ownership or a sign-in factor, or destroy an account or an organization
425427
(impersonating a user, setting a password, creating an API key, transferring
426428
ownership, deleting an organization) declare nothing and are not listed. The
@@ -602,11 +604,17 @@ drive this MCP server. Same word, different layer.
602604
- An action can also declare `ai.requiresConfirmation`; destructive-looking
603605
actions (`confirmText`, danger variants) are listed with
604606
`requiresConfirmation: true` by default, so a client asks its human first.
605-
- **A person confirms a declared-gated action, in the app.** When the author
606-
declared `ai.requiresConfirmation: true`, `run_action` and `resume_run` do
607-
not run the action on the agent's call. They hand it to the person the agent
608-
acts for and answer `status: "pending_confirmation"` with a `pendingId`; the
609-
person approves or rejects it in the app. A server with no
607+
- **A person confirms a declared-gated action, in the client or in the app.**
608+
When the author declared `ai.requiresConfirmation: true`, the agent's call
609+
on `run_action` or `resume_run` runs only once the person the agent acts for
610+
confirms it. When the client supports elicitation and the connection can
611+
carry the question (a stdio connection, today), the person is asked in the
612+
client: accept runs the call once; decline, dismissal or no answer in time
613+
refuses it (`ACTION_CONFIRMATION_REQUIRED`, `details.reason` `declined`,
614+
`cancelled` or `timed_out`). Otherwise the tools do not run the action on
615+
the call: they hand it to the person and answer
616+
`status: "pending_confirmation"` with a `pendingId`, and the person approves
617+
or rejects it in the app. A server with no
610618
pending-confirmation service refuses the call (`428`
611619
`ACTION_CONFIRMATION_REQUIRED`, `details.reason: "no_confirmation_service"`),
612620
and the person performs the action in the app. Neither tool takes `confirm`:

‎packages/spec/src/contracts/ai-service.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ export interface ActionConfirmationRequiredDetails {
419419
* the action; `reason` says what the caller can do. At the MCP
420420
* `run_action` and `resume_run` tools the echo names the member those
421421
* tools REFUSE at their input: the caller never sends it there, since
422-
* confirmation happens in the app, by the person.
422+
* the person confirms, in the client when it can be asked there and in
423+
* the app otherwise.
423424
*
424425
* An AI service account's refusal carries it too, but no retry of that
425426
* account's succeeds: a person runs the action (ADR-0151 D3 rule 3).
@@ -547,8 +548,9 @@ export interface ActionConfirmationRequiredDetails {
547548
* an elicitation, not in place of one, not in place of a hand-off, and not
548549
* when the host has no service. The MCP `run_action` and `resume_run`
549550
* tools do not accept it at all: a call carrying it is refused at the
550-
* tool's input, on every action, gated or not, because confirmation
551-
* happens in the app, by the person; the caller resends without it.
551+
* tool's input, on every action, gated or not, because the person
552+
* confirms (elicited in the client where it can be asked, in the app
553+
* otherwise); the caller resends without it.
552554
* 6. **An AI service account: unchanged** (ADR-0151 D3 rule 3). An agent
553555
* principal acting for itself, with no `onBehalfOf`, is refused whatever it
554556
* sends, reason `service_account`. It is neither elicited (no person stands

0 commit comments

Comments
 (0)