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
MCP action door: a confirmation-required action never runs on the caller's confirm: true; hand it to the host pending-confirmation service (run_action / resume_run) #33690
Part of objectstack-ai/cloud#3826, phase 1, card 2. Ruled on objectstack-ai/cloud#3826 by the account owner in seat session session_01Q4EjjPP1zuWBNq3nBXVei9: 「3826 照建议(征询版)」 (decision request 6890278459 and the revised D1 that follows it). Priority per the owner: 「分拆的任务能否直接标记为高优先级让车队开放」.
验收:带着 confirm: true 连发 N 次,0 次执行;支持征询的客户端,同意才执行,拒绝就不执行;不支持的客户端被拒绝并看到说明;AI 服务账号和普通的 REST 人工操作入口不受影响。
范围:packages/mcp 的通信层和动作入口。
依赖:上一张接口卡。
需要你做的:无。
Facts
packages/mcp/src/mcp-server-runtime.ts:1515-1521 and :2734-2737: the HTTP door is stateless, POST-only, and answers one JSON. There is no elicitation code in packages/mcp. The SDK is @modelcontextprotocol/sdk ^1.30.1.
Both run_action and resume_run reach the action door: packages/runtime/src/action-execution.ts.
Change
Transport: support a server-to-client elicitation/create during a tool call, using the streamable HTTP response stream or the mechanism the current MCP spec prescribes. Correlate the answer with the call.
Read the client's elicitation capability at initialize.
In the action door, implement card A: elicit, then execute on accept; refuse on decline, cancel, timeout or no capability, and say why.
Tests:
an MCP client double with and without the capability;
In seat session session_01Q4EjjPP1zuWBNq3nBXVei9, the account owner accepted the push-approval fallback and set its first channel: 「我开始重新接受你说的主流方案,就是推送到客户的手机端」, then 「比如最简单的我可以先推送到邮件」.
Revised rule for a confirmation-required action on an AI door:
If the client advertised elicitation, elicit the human confirmation, as before.
Otherwise, hand the action to the host's pending-confirmation service and answer the caller with a pending id and a plain message that a confirmation was sent to the person. The host shows the pending item in the in-app approvals inbox and emails the person a link to it. The person signs in, on a phone browser or desktop, and approves or rejects. The action then runs as that person, with permissions re-checked.
Refuse only when the host has no pending-confirmation service, for example a bare open-source deployment without it.
The caller's confirm: true still never counts. The approve and reject doors refuse an AI identity. The contract names the hand-off seam (ai_pending_actions / proposePendingAction exist in cloud; held is already in the ai-service contract).
cloud#3826 phase 1, card 2: the MCP door sends an elicitation mid-call and enforces human confirmation on run_action / resume_run. It implements #33689's contract (it lands with or after it). p1, owner-ruled. MCP door / runtime, A5.
Re-sequenced 2026-11-15T07:08Z by the repo:cloud#5 seat (task order, within the owner's ruling on cloud#3826). The owner asked 「目前来看征询协议是不是反而不是首要的?」.
This card is narrowed to the safety fix. At the action door (run_action, resume_run), a confirmation-required action never runs on the caller's confirm: true. It is handed to the host's pending-confirmation service, which returns a pending id and a plain message. Where no such service exists, it is refused.
The hand-off works for every client. It needs no transport change.
Acceptance for this card: the same request sent with confirm: true N times executes 0 times, and every attempt is held with a pending id. Service accounts and REST human doors are unchanged.
changed the title [-]MCP door: send an elicitation mid-call and enforce human confirmation on run_action / resume_run for confirmation-required actions[/-][+]MCP action door: a confirmation-required action never runs on the caller's confirm: true; hand it to the host pending-confirmation service (run_action / resume_run)[/+]on Nov 15, 2026
Claim: server area-lease mode (#33751 §2), area S3 lease A5 (the #33689 → #33690 → #33712 chain stays with S3, area-S6.md) · executed by an os-dev sub-agent (mode:subagent) · posted at 2026-11-15T17:02Z
Session: session_01QsR2jTEivi2wogPpeo3xd5
Account: zhuangjianguo
Branch: claude/area-A5-33690
Worktree: objectstack-issue-33690
Domain: domain:server
Seat: domain:server#5
File surface:
packages/runtime/src/action-execution.ts (the gate actionConfirmationRefusal and the hand-off for run_action / resume_run) and the runtime wiring that resolves the registered ACTION_CONFIRMATION_SERVICE
packages/mcp/src/** where run_action / resume_run answer status: 'pending_confirmation' with the pending id
new test files named by the card in those two packages, plus a dogfood twin
Stop on breach and explain in the report.
Container & model: M, mode:subagent, model: default (dispatch-gates --tier decides), effort: high
Clause-②: no (narrowing)
Metadata-protocol: semantic
Responsibility: objectstack runtime/mcp: the AI doors accept the caller's own confirm: true on a declared-gated action | the platform path is the host's pending-confirmation service (IActionConfirmationService, on main) | any MCP caller with a token or API key reaches it today (measured on 18.4.0, 2 of 6 runs)
Thread-read: 6890862846
Premise: holds (ADR-0011 note: "Until that change ships, every door gates on the member as before (actionConfirmationRefusal)"; the dev re-measures at step 1)
Serial constraints cleared: #33689 closed (contract on main, ADR-0011/0151 notes via #33810, merged). Open PR #34001 shares only ai-service.ts, which this card does not edit. No other open PR touches packages/mcp/src/** or action-execution.ts (checked over 59 open PRs).
Pre-claim lane: server because the fix is in packages/runtime/src/action-execution.ts (E2b, S3's action routes) and packages/mcp (S3's paths). No cloud code: the host service is a contract seam, and a bare deployment gets the 428 refusal.
Pre-claim deps: #33689 closed completed; #33810 merged. #34001 is open but not a dependency (in-app door wording, a different file).
Prior rulings read: cloud#3826 owner rulings (「3826 照建议(征询版)」, the push/email hand-off amendment, the 07:08Z re-sequencing to the safety fix with elicitation moved to #33712); ADR-0011 note (elicit when the client and door can carry it, else hand off, else 428 ACTION_CONFIRMATION_REQUIRED with details.reason: 'no_confirmation_service'; the caller's confirm never counts; Bounds: the delete gates and REST /actions are unchanged); ADR-0151 D3 rule 3 (the AI service account's refusal is unchanged); the ai-service.ts contract docblocks. The stateless HTTP door cannot carry an elicitation, so this card hands off every gated call, which is within the ruling. Tests pinning the opposite (confirm: true executes) flip as the ruling says. Skills-docs: follow-up owed — skills/objectstack-ai/SKILL.md and skills/objectstack-platform/SKILL.md name the gate (the area files the card).
Report for #33690 at 2026-11-16T00:51Z: draft PR 34202, head 292c638.
{
"issue": 33690,
"status": "done",
"branch": "claude/area-A5-33690",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34202",
"head_sha": "292c638502c81c2d62204640365ffd1c715afa83",
"session": "session_01QsR2jTEivi2wogPpeo3xd5",
"premise_still_valid": true,
"summary": "H1 to H4 all held when measured: the account-free member line let a person's confirm through, nothing registers ai.actionConfirmation, approval belongs to the host, and the HTTP door is stateless. At the MCP door only (keyed on the door, so the host door's ai posture still reads confirm), a call to an action declaring ai.requiresConfirmation: true runs every admission gate first, the subject load and caller-scope verdict included. It is then handed to the host's IActionConfirmationService.submit and answered status pending_confirmation with the pendingId, a plain message, actionName and objectName, as a successful tool result. Nothing runs and no invocation row is written. A resume_run hand-off carries run.runId and run.values, and the run stays paused. With no service, the call is refused 428 ACTION_CONFIRMATION_REQUIRED with details.reason no_confirmation_service, with or without confirm. A service that answers no pendingId is a fault. The AI service-account refusal is unchanged except that it gains details.reason service_account at every action door. REST /actions for a person and the MCP delete gates are unchanged. N sends with confirm true execute 0 times and are held N times with distinct ids, in unit tests, at the MCP door and in the dogfood twin.",
"tests": "Whole runtime package at 2266f4da70: Test Files 610 passed (610), Tests 12430 passed, 19 skipped, exit 0. Whole mcp package at 2266f4da70: Test Files 66 passed (66), Tests 1189 passed, exit 0. At 292c638502: the five touched dogfood files, Test Files 5 passed, Tests 35 passed; the runtime system-object exposure pin, 11 passed. At 56a42d81e2, after the closure build exited 0: example-todo test exit 0, runtime typecheck (with check:test-typecheck) exit 0, mcp typecheck exit 0. eslint --no-inline-config on the changed .ts files: exit 0. New pins: runtime action-confirmation-handoff-33690.test.ts (16), mcp mcp-action-confirmation-handoff-33690.test.ts (4), dogfood action-confirmation-handoff-33690.dogfood.test.ts (2). Ablations ran through ablation-replace.mjs; these are runtime src-resolved suites, so no dist rebuild applies. A1, in action-execution.ts, replaced the confirmationHandOff door entry with confirmation: input (anchor x1 to x0, blob fa5e3071e0da to 93e90f85b005); the hand-off file went red with Tests 6 failed, 10 passed, the 5-sends test among them; the restore matched the blob at HEAD. A2, in domains/mcp.ts, replaced 'if (handOff) {' with a guard that skips the hand-off on confirm true (blob 0be1c84eed37 to a50361d0cffd); red with Tests 2 failed, 14 passed (the resume 5-sends test and no-service paused-run test); the restore matched the blob at HEAD. git diff HEAD measured 0 bytes after both legs.",
"gates": "dispatch-gates --commands at 292c638502 derived 74 families; 72 ran with exit 0. NOT MEASURED: check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET, no full workspace build) and check:type-check-debt (a lock queue-timeout, then the re-measure was killed by my own timeout wrapper after acquiring). --ran with exit annotations: 74 accounted, 72 run, 2 NOT-MEASURED, 0 UNRUN, exit 0. check:test-source-alias first went red on the edited mcp-system-object-action-exposure.test.ts (a dynamic metadata import inside a clocked window); a module-top import fixed it, exit 0. check:dts-closure was red only because the post-merge install was stale; it is exit 0 after the reinstall and closure build. check-platform-checklist --changed-from origin/main: OK, 29 anchors, 0 lost. check-nul-bytes: exit 0. Body gates: check-changeset-no-major --event exit 0 (narrowing arm, Metadata-protocol semantic); check-adr-0087-registration exit 0 (not-required, already-registered); check-partof-closing-keyword exit 0; closing-keyword-parity --body binds only the card. dispatch-gates --tier: no path-derived mandate, 1642 changed lines, under 3000; it states that a narrowing card owes one contract-review-tier review before the queue. merge-tree is clean against origin/main (also re-checked after 47 later main commits, none touching these files) and against the head of open PR 34001. PR check-runs at open: 5 completed with 0 failed, 19 in_progress.",
"dogfood_battery": "56a42d81e2 · VERDICT command-exit 0 (batch) · DOGFOOD=1 · Test Files 2 failed, 466 passed, 3 skipped (471) · Tests 1 failed, 3959 passed, 42 skipped (4002). Failure 1: the new twin's ai.description was under the 40-character floor (ZodError at collection). Failure 2: mcp-delete-record-confirmation.dogfood.test.ts compared the delete gate's detail keys with run_action's, which now carry reason. Both are consequences of this change and both are fixed by test-only commits; both files are green at 292c638502. The battery was not re-run end to end after those test-only commits, and CI runs it.",
"mcp_calls": "0",
"api_writes": "2 — POST pulls through the fleet-write relay pr_create (PR 34202, read-back identical, no labels, no assignees); POST issues/33690/comments through post-stamped (this report). git push is not counted.",
"files_changed": "20 files, +1360/-293. Source: packages/runtime/src/action-execution.ts (+203/-17), packages/runtime/src/action-dispatch.ts (+86/-3), packages/runtime/src/domains/mcp.ts (+82/-29), packages/mcp/src/mcp-http-tools.ts (+29/-18). New tests: runtime action-confirmation-handoff-33690.test.ts, mcp mcp-action-confirmation-handoff-33690.test.ts, dogfood action-confirmation-handoff-33690.dogfood.test.ts. Changeset: .changeset/33690-ai-action-confirmation-hand-off.md. Flipped pins: runtime action-confirmation-gate, mcp-resume-run, action-dispatch, domains/api-action-forward, mcp-system-object-action-exposure, platform-admin-action-gate; mcp mcp-resume-run-tool; examples/app-todo mcp-actions; dogfood approval-decide-over-mcp, approval-read-over-mcp, mcp-system-object-action-exposure, mcp-delete-record-confirmation.",
"flipped_pins": [
"runtime action-confirmation-gate.test.ts: the MCP-door describe now expects 428 no_confirmation_service with and without the member; the account details carry service_account",
"runtime mcp-resume-run.test.ts: the confirmed resume is now refused (no_confirmation_service); the account details carry service_account; the delegated CONTROL reaches the hand-off",
"runtime action-dispatch.test.ts, ADR-0151 D3 rule 3: the account MCP details carry service_account; the person and delegated MCP CONTROLs are now held with and without the member",
"runtime domains/api-action-forward.test.ts, #28943: the gated revoke_api_key is held at 428; the API-key guard 403 and the session revoke are kept on a twin that declares no confirmation",
"runtime mcp-system-object-action-exposure.test.ts: the HITL gate refuses with and without the member; executeAction is never called",
"runtime platform-admin-action-gate.test.ts, ruling E CONTROL: gated identity actions (remove_member, cancel_invitation, remove_team) are held for member and admin, nothing is forwarded; ungated ones are unchanged",
"mcp mcp-resume-run-tool.test.ts: the tool text",
"examples/app-todo mcp-actions.test.ts step 7",
"dogfood approval-decide-over-mcp, approval-read-over-mcp, mcp-system-object-action-exposure: approvals and ban_user are refused no_confirmation_service, and nothing changes",
"dogfood mcp-delete-record-confirmation: the parity of detail keys leaves run_action's new reason aside and asserts the delete gate carries none"
],
"line_budget": "n/a: no skills/** file touched; changed lines 1642 at the tier derivation, under the 3000 human-merge threshold",
"deviations": [
"packages/runtime/src/action-dispatch.ts and packages/runtime/src/domains/mcp.ts were edited, read as 'the runtime wiring' in the claim's file surface: the admission sequence and the resume_run door live there, and action-execution.ts alone cannot place the hand-off after the verdict.",
"Pins outside the new test files were flipped under the claim's 'tests pinning the opposite flip as the ruling says'. dev-common says to ask before touching test pins outside the surface, so this conflict is named rather than resolved silently. mcp-delete-record-confirmation.dogfood.test.ts was flipped as a consequence red of the battery.",
"Two long runs went through nohup plus tail --pid under the verify lock, as os-dev.md allows for runs beyond the 10-minute foreground cap. dev-common says never background and wait.",
"Repo-wide pnpm lint was not run: os-dev.md assigns it to CI. eslint ran on the changed files instead.",
"Main was merged once (56a42d81e2). 47 later main commits touch none of these files, and merge-tree is clean, so no second merge was made, to avoid voiding the battery reading.",
"The no-service refusal message does not tell the caller to use a client that supports confirmation, because no door elicits yet (#33712).",
"The changeset ADR-0087 marker is an HTML comment carried in a changeset file, not GitHub text written by me.",
"The commit trailers are model-free as the dispatch order says; the harness reminder's model trailer was not used."
],
"open_questions": [
{
"question": "Should the confirm member be retired from the run_action and resume_run input schemas, now that it is accepted and never read?",
"options": [
"A: keep it accepted and unread (this PR). No client that sends it is refused for it; the tool text says it is not read.",
"B: retire it at once in a follow-up: the schema refuses it loudly, the served skill text and TOOL_RETIRED_KEY_GUIDANCE are rewritten in the same change. This is a further breaking change for clients that still send it."
],
"recommendation": "B, on the four axes. Long term: an accepted-but-ignored member is consumer-side tolerance that hides a wrong belief. AI-error prevention: a loud refusal teaches the agent the call is not confirmable by it. Scope: immediate retirement is the default for a dead spelling. Business: the only caller pull is the stale skill text, which moves with it. It is outside this card's ruling, so it needs a decision."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"class: b · Seam: spec:TOOL_RETIRED_KEY_GUIDANCE (packages/spec/src/ai/tool.zod.ts) → runtime: packages/mcp/src/skill-md.ts served skill, about lines 480-502 | renderer: ui/apps/console/src/pages/developer/objectstack-skill.ts (byte-identical mirror) · the contract (ai-service.ts docblock) says the caller's confirm never counts, but the served skill and the guidance still teach sending confirm: true on run_action · reach: the MCP skill resource served by every stack (public door) teaches a confirm that this release ignores; the 33689 changeset says this text moves with this change · not edited: the ui mirror is outside the surface and the mirror test would go red · about 30 lines, fold on grant · dedupe: confirm true skill-md run_action, TOOL_RETIRED_KEY_GUIDANCE confirm, objectstack-skill mirror confirmation",
"class: b · Seam: spec:ACTION_CONFIRMATION_REFUSAL_REASONS service_account → runtime: flow-start-admission.ts confirmationGatedStartRefusal · the gated flow-start refusal of an AI service account carries no details.reason service_account, while every action door now does · reach: NOT MEASURED at a public door in this run (source reading only) · dedupe: confirmationGatedStartRefusal reason, service_account flow start, refusal reason parity",
"class: a · packages/qa/scenarios/src/runner/observe.ts rule 1 grades any successful write call as applied, so a pending_confirmation hand-off answer would be graded applied · reach: named producer, the runtime hand-off (invokeBusinessAction) on a host that registers IActionConfirmationService; no open-source stack registers one, so live runs here still see the 428 and grade pending_confirmation · carrier: cloud · dedupe: observe applied pending_confirmation, scenario grader hand-off, ActionConfirmationPending grading",
"carrier: none · noted, not filed: packages/mcp/src/mcp-action-confirmation-member.test.ts still models the old member semantics in its bridge double (green, mcp does not depend on runtime); the semantic migration entry's prose says confirm by elicitation, which no door does yet; the approvals over MCP feature (#32442) is unusable on a host without the service, by the ruling",
"carrier: none · Skills-docs follow-up owed as declared: skills/objectstack-ai/SKILL.md and skills/objectstack-platform/SKILL.md name the gate (the area files the card)"
]
}
Activity
objectstack-fleet commentedon Nov 15, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server·lease:A5· p1 · 2026-11-15T06:46Z⛔ Not a claim.
cloud#3826 phase 1, card 2: the MCP door sends an elicitation mid-call and enforces human confirmation on
run_action/resume_run. It implements #33689's contract (it lands with or after it). p1, owner-ruled. MCP door / runtime, A5.objectstack-fleet commentedon Nov 15, 2026
repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9
Re-sequenced 2026-11-15T07:08Z by the
repo:cloud#5seat (task order, within the owner's ruling on cloud#3826). The owner asked 「目前来看征询协议是不是反而不是首要的?」.run_action,resume_run), a confirmation-required action never runs on the caller'sconfirm: true. It is handed to the host's pending-confirmation service, which returns a pending id and a plain message. Where no such service exists, it is refused.Acceptance for this card: the same request sent with
confirm: trueN times executes 0 times, and every attempt is held with a pending id. Service accounts and REST human doors are unchanged.[-]MCP door: send an elicitation mid-call and enforce human confirmation on run_action / resume_run for confirmation-required actions[/-][+]MCP action door: a confirmation-required action never runs on the caller's confirm: true; hand it to the host pending-confirmation service (run_action / resume_run)[/+]objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5
Claim: server area-lease mode (#33751 §2), area S3 lease A5 (the #33689 → #33690 → #33712 chain stays with S3, area-S6.md) · executed by an
os-devsub-agent (mode:subagent) · posted at 2026-11-15T17:02ZSession:
session_01QsR2jTEivi2wogPpeo3xd5Account:
zhuangjianguoBranch:
claude/area-A5-33690Worktree:
objectstack-issue-33690Domain:
domain:serverSeat:
domain:server#5File surface:
packages/runtime/src/action-execution.ts(the gateactionConfirmationRefusaland the hand-off forrun_action/resume_run) and the runtime wiring that resolves the registeredACTION_CONFIRMATION_SERVICEpackages/mcp/src/**whererun_action/resume_runanswerstatus: 'pending_confirmation'with the pending idpackages/spec/src/contracts/ai-service.tsis read, not edited: the contract is on main, and open PR feat(spec)!: the AI-door confirmation rule binds every AI door, the in-app assistant included #34001 (Contract: AI-door confirmation rule binds every AI door, including the in-app assistant (#33689 Q1 ruled B) #33808) edits that file. The MCPdelete_record/delete_recordsgates and REST/actionsare out of scope (ADR-0011 "Bounds"). Elicitation is MCP transport: server-to-client elicitation mid-call, so supporting clients confirm in place (UX upgrade over the email hold) #33712.Stop on breach and explain in the report.
Container & model:
M,mode:subagent,model: default (dispatch-gates --tier decides),effort: highClause-②: no (narrowing)
Metadata-protocol: semantic
Responsibility:
objectstack runtime/mcp: the AI doors accept the caller's own confirm: true on a declared-gated action | the platform path is the host's pending-confirmation service (IActionConfirmationService, on main) | any MCP caller with a token or API key reaches it today (measured on 18.4.0, 2 of 6 runs)Thread-read: 6890862846
Premise: holds (ADR-0011 note: "Until that change ships, every door gates on the member as before (
actionConfirmationRefusal)"; the dev re-measures at step 1)Serial constraints cleared: #33689 closed (contract on main, ADR-0011/0151 notes via #33810, merged). Open PR #34001 shares only
ai-service.ts, which this card does not edit. No other open PR touchespackages/mcp/src/**oraction-execution.ts(checked over 59 open PRs).Pre-claim lane: server because the fix is in
packages/runtime/src/action-execution.ts(E2b, S3's action routes) andpackages/mcp(S3's paths). No cloud code: the host service is a contract seam, and a bare deployment gets the 428 refusal.Pre-claim deps: #33689 closed completed; #33810 merged. #34001 is open but not a dependency (in-app door wording, a different file).
Prior rulings read: cloud#3826 owner rulings (「3826 照建议(征询版)」, the push/email hand-off amendment, the 07:08Z re-sequencing to the safety fix with elicitation moved to #33712); ADR-0011 note (elicit when the client and door can carry it, else hand off, else
428 ACTION_CONFIRMATION_REQUIREDwithdetails.reason: 'no_confirmation_service'; the caller'sconfirmnever counts; Bounds: the delete gates and REST/actionsare unchanged); ADR-0151 D3 rule 3 (the AI service account's refusal is unchanged); the ai-service.ts contract docblocks. The stateless HTTP door cannot carry an elicitation, so this card hands off every gated call, which is within the ruling. Tests pinning the opposite (confirm: trueexecutes) flip as the ruling says. Skills-docs: follow-up owed — skills/objectstack-ai/SKILL.md and skills/objectstack-platform/SKILL.md name the gate (the area files the card).Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5
os-dev-report
Report for #33690 at 2026-11-16T00:51Z: draft PR 34202, head 292c638.
{ "issue": 33690, "status": "done", "branch": "claude/area-A5-33690", "pr": "https://github.com/objectstack-ai/objectstack/pull/34202", "head_sha": "292c638502c81c2d62204640365ffd1c715afa83", "session": "session_01QsR2jTEivi2wogPpeo3xd5", "premise_still_valid": true, "summary": "H1 to H4 all held when measured: the account-free member line let a person's confirm through, nothing registers ai.actionConfirmation, approval belongs to the host, and the HTTP door is stateless. At the MCP door only (keyed on the door, so the host door's ai posture still reads confirm), a call to an action declaring ai.requiresConfirmation: true runs every admission gate first, the subject load and caller-scope verdict included. It is then handed to the host's IActionConfirmationService.submit and answered status pending_confirmation with the pendingId, a plain message, actionName and objectName, as a successful tool result. Nothing runs and no invocation row is written. A resume_run hand-off carries run.runId and run.values, and the run stays paused. With no service, the call is refused 428 ACTION_CONFIRMATION_REQUIRED with details.reason no_confirmation_service, with or without confirm. A service that answers no pendingId is a fault. The AI service-account refusal is unchanged except that it gains details.reason service_account at every action door. REST /actions for a person and the MCP delete gates are unchanged. N sends with confirm true execute 0 times and are held N times with distinct ids, in unit tests, at the MCP door and in the dogfood twin.", "tests": "Whole runtime package at 2266f4da70: Test Files 610 passed (610), Tests 12430 passed, 19 skipped, exit 0. Whole mcp package at 2266f4da70: Test Files 66 passed (66), Tests 1189 passed, exit 0. At 292c638502: the five touched dogfood files, Test Files 5 passed, Tests 35 passed; the runtime system-object exposure pin, 11 passed. At 56a42d81e2, after the closure build exited 0: example-todo test exit 0, runtime typecheck (with check:test-typecheck) exit 0, mcp typecheck exit 0. eslint --no-inline-config on the changed .ts files: exit 0. New pins: runtime action-confirmation-handoff-33690.test.ts (16), mcp mcp-action-confirmation-handoff-33690.test.ts (4), dogfood action-confirmation-handoff-33690.dogfood.test.ts (2). Ablations ran through ablation-replace.mjs; these are runtime src-resolved suites, so no dist rebuild applies. A1, in action-execution.ts, replaced the confirmationHandOff door entry with confirmation: input (anchor x1 to x0, blob fa5e3071e0da to 93e90f85b005); the hand-off file went red with Tests 6 failed, 10 passed, the 5-sends test among them; the restore matched the blob at HEAD. A2, in domains/mcp.ts, replaced 'if (handOff) {' with a guard that skips the hand-off on confirm true (blob 0be1c84eed37 to a50361d0cffd); red with Tests 2 failed, 14 passed (the resume 5-sends test and no-service paused-run test); the restore matched the blob at HEAD. git diff HEAD measured 0 bytes after both legs.", "gates": "dispatch-gates --commands at 292c638502 derived 74 families; 72 ran with exit 0. NOT MEASURED: check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET, no full workspace build) and check:type-check-debt (a lock queue-timeout, then the re-measure was killed by my own timeout wrapper after acquiring). --ran with exit annotations: 74 accounted, 72 run, 2 NOT-MEASURED, 0 UNRUN, exit 0. check:test-source-alias first went red on the edited mcp-system-object-action-exposure.test.ts (a dynamic metadata import inside a clocked window); a module-top import fixed it, exit 0. check:dts-closure was red only because the post-merge install was stale; it is exit 0 after the reinstall and closure build. check-platform-checklist --changed-from origin/main: OK, 29 anchors, 0 lost. check-nul-bytes: exit 0. Body gates: check-changeset-no-major --event exit 0 (narrowing arm, Metadata-protocol semantic); check-adr-0087-registration exit 0 (not-required, already-registered); check-partof-closing-keyword exit 0; closing-keyword-parity --body binds only the card. dispatch-gates --tier: no path-derived mandate, 1642 changed lines, under 3000; it states that a narrowing card owes one contract-review-tier review before the queue. merge-tree is clean against origin/main (also re-checked after 47 later main commits, none touching these files) and against the head of open PR 34001. PR check-runs at open: 5 completed with 0 failed, 19 in_progress.", "dogfood_battery": "56a42d81e2 · VERDICT command-exit 0 (batch) · DOGFOOD=1 · Test Files 2 failed, 466 passed, 3 skipped (471) · Tests 1 failed, 3959 passed, 42 skipped (4002). Failure 1: the new twin's ai.description was under the 40-character floor (ZodError at collection). Failure 2: mcp-delete-record-confirmation.dogfood.test.ts compared the delete gate's detail keys with run_action's, which now carry reason. Both are consequences of this change and both are fixed by test-only commits; both files are green at 292c638502. The battery was not re-run end to end after those test-only commits, and CI runs it.", "mcp_calls": "0", "api_writes": "2 — POST pulls through the fleet-write relay pr_create (PR 34202, read-back identical, no labels, no assignees); POST issues/33690/comments through post-stamped (this report). git push is not counted.", "files_changed": "20 files, +1360/-293. Source: packages/runtime/src/action-execution.ts (+203/-17), packages/runtime/src/action-dispatch.ts (+86/-3), packages/runtime/src/domains/mcp.ts (+82/-29), packages/mcp/src/mcp-http-tools.ts (+29/-18). New tests: runtime action-confirmation-handoff-33690.test.ts, mcp mcp-action-confirmation-handoff-33690.test.ts, dogfood action-confirmation-handoff-33690.dogfood.test.ts. Changeset: .changeset/33690-ai-action-confirmation-hand-off.md. Flipped pins: runtime action-confirmation-gate, mcp-resume-run, action-dispatch, domains/api-action-forward, mcp-system-object-action-exposure, platform-admin-action-gate; mcp mcp-resume-run-tool; examples/app-todo mcp-actions; dogfood approval-decide-over-mcp, approval-read-over-mcp, mcp-system-object-action-exposure, mcp-delete-record-confirmation.", "flipped_pins": [ "runtime action-confirmation-gate.test.ts: the MCP-door describe now expects 428 no_confirmation_service with and without the member; the account details carry service_account", "runtime mcp-resume-run.test.ts: the confirmed resume is now refused (no_confirmation_service); the account details carry service_account; the delegated CONTROL reaches the hand-off", "runtime action-dispatch.test.ts, ADR-0151 D3 rule 3: the account MCP details carry service_account; the person and delegated MCP CONTROLs are now held with and without the member", "runtime domains/api-action-forward.test.ts, #28943: the gated revoke_api_key is held at 428; the API-key guard 403 and the session revoke are kept on a twin that declares no confirmation", "runtime mcp-system-object-action-exposure.test.ts: the HITL gate refuses with and without the member; executeAction is never called", "runtime platform-admin-action-gate.test.ts, ruling E CONTROL: gated identity actions (remove_member, cancel_invitation, remove_team) are held for member and admin, nothing is forwarded; ungated ones are unchanged", "mcp mcp-resume-run-tool.test.ts: the tool text", "examples/app-todo mcp-actions.test.ts step 7", "dogfood approval-decide-over-mcp, approval-read-over-mcp, mcp-system-object-action-exposure: approvals and ban_user are refused no_confirmation_service, and nothing changes", "dogfood mcp-delete-record-confirmation: the parity of detail keys leaves run_action's new reason aside and asserts the delete gate carries none" ], "line_budget": "n/a: no skills/** file touched; changed lines 1642 at the tier derivation, under the 3000 human-merge threshold", "deviations": [ "packages/runtime/src/action-dispatch.ts and packages/runtime/src/domains/mcp.ts were edited, read as 'the runtime wiring' in the claim's file surface: the admission sequence and the resume_run door live there, and action-execution.ts alone cannot place the hand-off after the verdict.", "Pins outside the new test files were flipped under the claim's 'tests pinning the opposite flip as the ruling says'. dev-common says to ask before touching test pins outside the surface, so this conflict is named rather than resolved silently. mcp-delete-record-confirmation.dogfood.test.ts was flipped as a consequence red of the battery.", "Two long runs went through nohup plus tail --pid under the verify lock, as os-dev.md allows for runs beyond the 10-minute foreground cap. dev-common says never background and wait.", "Repo-wide pnpm lint was not run: os-dev.md assigns it to CI. eslint ran on the changed files instead.", "Main was merged once (56a42d81e2). 47 later main commits touch none of these files, and merge-tree is clean, so no second merge was made, to avoid voiding the battery reading.", "The no-service refusal message does not tell the caller to use a client that supports confirmation, because no door elicits yet (#33712).", "The changeset ADR-0087 marker is an HTML comment carried in a changeset file, not GitHub text written by me.", "The commit trailers are model-free as the dispatch order says; the harness reminder's model trailer was not used." ], "open_questions": [ { "question": "Should the confirm member be retired from the run_action and resume_run input schemas, now that it is accepted and never read?", "options": [ "A: keep it accepted and unread (this PR). No client that sends it is refused for it; the tool text says it is not read.", "B: retire it at once in a follow-up: the schema refuses it loudly, the served skill text and TOOL_RETIRED_KEY_GUIDANCE are rewritten in the same change. This is a further breaking change for clients that still send it." ], "recommendation": "B, on the four axes. Long term: an accepted-but-ignored member is consumer-side tolerance that hides a wrong belief. AI-error prevention: a loud refusal teaches the agent the call is not confirmable by it. Scope: immediate retirement is the default for a dead spelling. Business: the only caller pull is the stale skill text, which moves with it. It is outside this card's ruling, so it needs a decision." } ], "security_findings": "none", "out_of_scope_findings": [ "class: b · Seam: spec:TOOL_RETIRED_KEY_GUIDANCE (packages/spec/src/ai/tool.zod.ts) → runtime: packages/mcp/src/skill-md.ts served skill, about lines 480-502 | renderer: ui/apps/console/src/pages/developer/objectstack-skill.ts (byte-identical mirror) · the contract (ai-service.ts docblock) says the caller's confirm never counts, but the served skill and the guidance still teach sending confirm: true on run_action · reach: the MCP skill resource served by every stack (public door) teaches a confirm that this release ignores; the 33689 changeset says this text moves with this change · not edited: the ui mirror is outside the surface and the mirror test would go red · about 30 lines, fold on grant · dedupe: confirm true skill-md run_action, TOOL_RETIRED_KEY_GUIDANCE confirm, objectstack-skill mirror confirmation", "class: b · Seam: spec:ACTION_CONFIRMATION_REFUSAL_REASONS service_account → runtime: flow-start-admission.ts confirmationGatedStartRefusal · the gated flow-start refusal of an AI service account carries no details.reason service_account, while every action door now does · reach: NOT MEASURED at a public door in this run (source reading only) · dedupe: confirmationGatedStartRefusal reason, service_account flow start, refusal reason parity", "class: a · packages/qa/scenarios/src/runner/observe.ts rule 1 grades any successful write call as applied, so a pending_confirmation hand-off answer would be graded applied · reach: named producer, the runtime hand-off (invokeBusinessAction) on a host that registers IActionConfirmationService; no open-source stack registers one, so live runs here still see the 428 and grade pending_confirmation · carrier: cloud · dedupe: observe applied pending_confirmation, scenario grader hand-off, ActionConfirmationPending grading", "carrier: none · noted, not filed: packages/mcp/src/mcp-action-confirmation-member.test.ts still models the old member semantics in its bridge double (green, mcp does not depend on runtime); the semantic migration entry's prose says confirm by elicitation, which no door does yet; the approvals over MCP feature (#32442) is unusable on a host without the service, by the ruling", "carrier: none · Skills-docs follow-up owed as declared: skills/objectstack-ai/SKILL.md and skills/objectstack-platform/SKILL.md name the gate (the area files the card)" ] }feat(runtime,mcp)!: a confirmation-gated action never runs on the MCP…