You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 464e733
Browse filesBrowse the repository at this point in the historyBrowse files
fix(spec): the amended confirmation contract hands an unelicitable call to the app before any refusal
A client that cannot be elicited is handed to the host's optional
pending-confirmation service (IActionConfirmationService) and answered with a
pending id; only a host without the service refuses. The person is asked after
every admission gate, a confirmation-refused call may have read its subject,
the reason set and pins follow the amended rule, and the semantic entry and
changeset speak of the doors' switch conditionally.
Claude-Session: https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/33689-ai-action-confirmation-elicited.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,28 +2,29 @@
2
2
'@objectstack/spec': minor
3
3
---
4
4
5
-
feat(spec)!: a declared-gated action on an AI door is confirmed by a person through MCP elicitation, never by the caller's own `confirm: true`
5
+
feat(spec)!: a declared-gated action on an AI door is confirmed by a person, elicited in the MCP client or handed off to the app, never by the caller's own `confirm: true`
6
6
7
-
Clause-②: yes (narrowing) — the contract stops counting a caller's `confirm: true` on an action declaring `ai.requiresConfirmation: true` and refuses an MCP client that did not advertise `elicitation`; `@objectstack/spec/contracts` gains `AI_ACTION_CONFIRMATION_CAPABILITY`, `ACTION_CONFIRMATION_REFUSAL_REASONS`, `ActionConfirmationRefusalReason` and the optional `ActionConfirmationRequiredDetails.reason`.
7
+
Clause-②: yes (narrowing) — once the doors implement the contract, a caller's `confirm: true`stops counting on an action declaring `ai.requiresConfirmation: true`; `@objectstack/spec/contracts` gains `AI_ACTION_CONFIRMATION_CAPABILITY`, `ACTION_CONFIRMATION_REFUSAL_REASONS`, `ActionConfirmationRefusalReason`, `ActionConfirmationHandOff`, `ActionConfirmationPending`, `IActionConfirmationService` and the optional `ActionConfirmationRequiredDetails.reason`.
8
8
Metadata-protocol: semantic
9
-
Skills-docs: follow-up — `skills/objectstack-ai/SKILL.md` (the MCP tool table: `run_action` / `resume_run` "refused with the same 428 unless the call sends `confirm: true`") teaches the member contract; it moves with the change that implements the doors, together with the MCP-served skill text (`packages/mcp/src/skill-md.ts`, `ui/apps/console/src/pages/developer/objectstack-skill.ts`) and the `ToolSchema` prescription in `packages/spec/src/ai/tool.zod.ts`, which describe the door that runs today.
9
+
Skills-docs: follow-up — `skills/objectstack-ai/SKILL.md` (the MCP tool table: `run_action` / `resume_run` "refused with the same 428 unless the call sends `confirm: true`") teaches the member contract, which is still the door's behaviour in this release; it moves with the change that implements the doors, together with the MCP-served skill text (`packages/mcp/src/skill-md.ts`, `ui/apps/console/src/pages/developer/objectstack-skill.ts`) and the `ToolSchema` prescription in `packages/spec/src/ai/tool.zod.ts`.
**BREAKING** for an MCP client, an agent or a script that runs an action declaring `ai.requiresConfirmation: true` through `run_action` or `resume_run` by sending `confirm: true` itself. Ruled by the account owner: 「3826 照建议(征询版)」.
13
+
**BREAKING, when the implementing change ships**, for an MCP client, an agent or a script that runs an action declaring `ai.requiresConfirmation: true` through `run_action` or `resume_run` by sending `confirm: true` itself. Ruled by the account owner: 「3826 照建议(征询版)」, amended 「我开始重新接受你说的主流方案,就是推送到客户的手机端」 and 「比如最简单的我可以先推送到邮件」.
14
14
15
-
The contract in `@objectstack/spec/contracts` (`AI_ACTION_CONFIRMATION_CAPABILITY`, `contracts/ai-service.ts`) now says:
15
+
⚠ In the release that carries this changeset nothing changes at any door: `run_action` and `resume_run` still run a declared-gated action on `confirm: true` and refuse it without, over stdio and Streamable HTTP alike. Keep sending `confirm: true` until a release's changelog says the doors confirm by elicitation. What ships now is the contract the doors move to, in `@objectstack/spec/contracts` (`AI_ACTION_CONFIRMATION_CAPABILITY`, `contracts/ai-service.ts`):
16
16
17
-
- The server asks the person: after every other gate passes and before anything runs, it sends one MCP `elicitation/create` request (form mode) to the client the call arrived on, naming the action, the object and the record.
18
-
- The door reads the `elicitation` capability the client sent at `initialize`. A client that did not advertise it is refused with `428 ACTION_CONFIRMATION_REQUIRED` and `details.reason: 'elicitation_unsupported'`; the message tells the person to use a client that supports confirmation, or to act in the app.
19
-
-`accept` runs the call once, under the caller's permissions, and nothing is stored for the next call. `decline`, `cancel` (an error answer or a dropped connection included) and no answer within the door's bound are refused with reason `declined`, `cancelled` or `timed_out`, and nothing runs.
20
-
- The caller's `confirm` never counts on such a call, with or without an elicitation.
21
-
- An AI service account acting for itself is refused whatever it sends, unchanged (ADR-0151 D3 rule 3), now with reason `service_account`; no elicitation is sent to it.
17
+
- After every admission gate (the subject load included) and before anything runs, the person is asked, in three steps: **elicit** when the client advertised `elicitation` at `initialize` and the door can carry it (one `elicitation/create`, form mode); otherwise **hand off** to the host's pending-confirmation service (`IActionConfirmationService`), answering `status: 'pending_confirmation'` with a pending id and a plain message, the person then approving or rejecting in the app, where the action runs as them with every gate and permission re-checked; **refuse** only when the host has no such service (`428 ACTION_CONFIRMATION_REQUIRED`, `details.reason: 'no_confirmation_service'`).
18
+
- An elicited `accept` runs the call once; `decline`, `cancel` (an error answer or a dropped connection included) and no answer within the door's bound are refused with reason `declined`, `cancelled` or `timed_out`. A call refused at confirmation may have read its subject and writes nothing.
19
+
- The approve and reject doors of the pending-confirmation service refuse an AI identity.
20
+
- The caller's `confirm` never counts on such a call.
21
+
- An AI service account acting for itself is refused whatever it sends, unchanged (ADR-0151 D3 rule 3), with reason `service_account` on every door; it is neither elicited nor handed off.
22
+
- An elicited `accept` proves the client answered, not that a person did; a hand-off is decided by a person in the app.
22
23
- Outside the amendment: the MCP `delete_record` and `delete_records` gates still read `confirm: true`, and REST `/actions` stays outside the gate for a person.
23
24
24
-
The doors switch in the change that implements this contract; until then they still gate on the member, and a refusal without `details.reason` comes from such a door. The semantic entry `action-requires-confirmation-elicited` carries the same notice into the upgrade guide and `os migrate meta`.
25
+
The semantic entry `action-requires-confirmation-elicited` carries the same notice, with the same timing, into the upgrade guide and `os migrate meta`.
25
26
26
-
What changes for a caller:
27
+
What changes for a caller, from the release whose doors implement it:
27
28
28
-
- FROM confirm with the person yourself, then send `confirm: true` on `run_action` / `resume_run` TO advertise `elicitation` (form mode) at `initialize` and let the server ask the person; send no `confirm`.
29
-
- FROM a script or agent that runs a gated action unattended with `confirm: true` TO no replacement: a person runs the action, in an elicitation-capable client or in the app, or the action's author declares `ai.requiresConfirmation: false` where it is safe unattended.
29
+
- FROM confirm with the person yourself, then send `confirm: true` on `run_action` / `resume_run` TO advertise `elicitation` (form mode) at `initialize` and let the server ask the person, or, from a client that cannot, relay the pending answer's message and let the person decide in the app; `confirm` then confers nothing.
30
+
- FROM a script or agent that runs a gated action unattended with `confirm: true` TO a pending answer the person decides in the app (or a refusal on a host with no pending-confirmation service); where the action is safe unattended, its author declares `ai.requiresConfirmation: false`.
0 commit comments