Repository navigation
docs(skills): a person confirms a gated MCP action; run_action and resume_run take no confirm - #34558
Conversation
…sume_run take no confirm objectstack-ai: the run_action row teaches the hand-off to the host's pending-confirmation service (pending_confirmation + pendingId) and the service_account refusal; a paragraph under the table teaches never to send confirm, the no_confirmation_service refusal and the in-client elicitation answers on the long-lived (stdio) server. objectstack-platform: a sixth requires: rule says AI-door confirmation is a service the host registers (IActionConfirmationService under 'ai.actionConfirmation'). Two restatements cut; the token row moves by the measured remainder. Three eval cases exercise the teaching. Claude-Session: https://claude.ai/code/session_01WGufzfojHHNDnXxREucdHC Co-authored-by: Claude <noreply@anthropic.com>
…-8iu5at Claude-Session: https://claude.ai/code/session_01WGufzfojHHNDnXxREucdHC Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw Contract-review-handoff: review#2 — CONTRACT_REVIEW_TIER unavailable (seat session runs the default tier, 2026-11-17T00:47Z) · head 4c229cb The diff touches |
|
domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw Contract-review-handoff: l2-review#3 — CONTRACT_REVIEW_TIER unavailable (seat session runs the default tier, 2026-11-17T00:53Z) · head 4c229cb Re-routed: review#2 declined new first reviews (wind-down, notify 6934173395 on mailbox #34423). The scope of the earlier hand-off on this PR stands. |
|
domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw Contract-review-claim: session_01WGufzgtCwPzNYSczvxDEpw · head 4c229cb · 2026-11-17T03:09Z The lane takes this head back from the hand-off to l2-review#3 (no claim or record from it since the hand-off at 00:53Z): the seat now runs the review through an at-tier |
|
domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw Contract reviewServed-tier: PR #34558, card #34210. Inputs read: the card body and its three comments (6924430961, 6933537428, 6934092629), the PR body and file list, the net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentEach taught sentence was read against the code on
S1 (should-fix) — two eval assertions fail an answer that is correct.
N1 (nit) — id 8 carries the same broad N2 (nit) — id 8's expected output says a gated call over Streamable HTTP "is handed off and answered N3 (nit) — "never runs on the call" (both skills) and "Over Streamable HTTP nobody is asked" ( No must-fix. S1 is open on this head and earns a delta review of its fix; N1 to N3 may ride that edit or be left as accepted deviations. Implemented-by: VERDICT: PASS |
…teaches Review round on the three new eval cases: - objectstack-ai id 7 asserts 'do not retry', the skill's own words. - ids 8 and 23 narrow must_not_contain to the MCP call form, so an answer that names the host door's own member, or says a client's confirm is refused, is not failed. - id 8's expected output names the no_confirmation_service refusal over Streamable HTTP on a host with no service. Claude-Session: https://claude.ai/code/session_01WGufzfojHHNDnXxREucdHC Co-authored-by: Claude <noreply@anthropic.com>
…-8iu5at Claude-Session: https://claude.ai/code/session_01WGufzfojHHNDnXxREucdHC Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw Contract reviewServed-tier: Delta review of PR #34558 (card #34210) after record 6937055058 on ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentS1: closed.
N1: closed. Id 8 forbids the same narrow form. N2: closed. Id 8's expected output now reads "handed off and answered N3: left as an accepted deviation. No Each case's No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw 维护者速读
席位核对ACCEPT · head
|
Requested by Yibo Wang · project thread
Fixes #34210
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
维护者速读
objectstack-ai技能的 MCP 工具表里,run_action一行不再教「先问人,再带confirm: true重试」,改为:声明了ai.requiresConfirmation: true的动作不会在这次调用里执行,交给本人在应用里确认,回答是status: 'pending_confirmation'加pendingId;表下新增一段,教「不要发confirm」、没有确认服务时的 428no_confirmation_service、以及 stdio 长连接上的客户端内提问和三个拒绝原因。objectstack-platform技能在requires:的规则里加第六条:AI 门的确认是宿主自己注册的服务。评测夹具加三例。confirm不再算数,并且带上它就被拒),而技能还在教旧写法。照旧文写的 agent 每次都会被拒,还会把「已交给本人」当成失败去重试。objectstack-platform/SKILL.md的上限按实测从 6011 提到 6145(+134),先删了同文件两处重复。回滚即 revert 本 PR。skills/objectstack-ai/SKILL.md的run_action行和表下新段(与packages/runtime/src/action-execution.ts的handOffActionConfirmation/elicitActionConfirmation是否一致);②skills/objectstack-platform/SKILL.md的第六条规则和两处删除是否确为重复;③scripts/check-skills-token-ratchet.mjs新加的那段算术。node scripts/check-skills-token-ratchet.mjs,预期看到skills/objectstack-platform/SKILL.md is 6145 tokens (ceiling 6145; headroom 0)且以 ✓ 收尾。skills/**属受管面,席位合同复审 PASS 后请批准本 PR 一次;若低风险技能臂读作 Tier S 则无,席位落地。What changes
skills/objectstack-ai/SKILL.md, section "MCP — the open-edition AI path", thelist_actions,run_action,resume_runrow of the tool table. Before, the row said:After:
The service-account sentence of the same row now names the reason (
details.reason: 'service_account', at every action door), and the row's last sentence adds that a handed-offresume_runstays paused. One paragraph is added under the table:The
delete_recordanddelete_recordsrows are not touched: those tools still readconfirm: true(citation (e) below).skills/objectstack-platform/SKILL.md, section "requires:— which service plugins boot": "Five rules that change what you write" becomes six. The new rule:This file had 5 tokens of headroom, so the rule is paid for under the standing ruling 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). Two restatements are cut first, each keeping its other home in the file:
os dev/os serveregister)" in theHonoServerPluginrow of the HTTP Layer table. Still carried by step 4 of the Runtime Boot Sequence, which listsHonoServerPluginamong the plugins the CLI registers underos serve/os dev.Arithmetic in priced bytes (the release-stamp line excluded): 24021 on the merge base (6006 tokens, ceiling 6011, headroom 5). The cuts remove 84 bytes and the rule adds 640, so the landed text is 24577 bytes, 6145 tokens.
scripts/check-skills-token-ratchet.mjsmoves that one row 6011 → 6145 (+134, the measured remainder, pinned at the measurement) with the arithmetic in its comment. Theobjectstack-ai/SKILL.mdrow is not touched: 6068 → 6268 against a ceiling of 6801.Evals, three appended cases in each file's own layout:
skills/objectstack-ai/evals/skills-tools-knowledge.jsonid 7: an agent that asks in chat and retriesrun_actionwithconfirm: trueand is now refused. The answer drops the member, relays thepending_confirmationanswer and itspendingIdwithout retrying, and names theno_confirmation_servicerefusal on a host with no service.acceptdoes, the three refusal reasons, that Streamable HTTP asks nobody, and theservice_accountrefusal.skills/objectstack-platform/evals/config-plugins-ops.jsonid 23: a self-hosted deployment that sees every gated call refusedno_confirmation_serviceand wants its people to approve in its app. The answer is a plugin registering anIActionConfirmationServiceunder'ai.actionConfirmation', whosesubmitreturns thependingId..changeset/34210-skills-mcp-action-confirmation-hand-off.md:@objectstack/skillspatch.Line budget. The order gave net +15 lines across the two
SKILL.mdfiles, priced teaching text, with evals reported separately (ruling record 6513306068: eval fixtures are outside the ratchet's priced population). Readings:objectstack-ai/SKILL.md+8 (434 → 442),objectstack-platform/SKILL.md+7 (414 → 421, eight lines added and one removed with the first cut), together +15. Evals: +20 lines and +18 lines.Authoring tier:
dispatch-gates --tieranswers MANDATORY CONTRACT_REVIEW_TIER forskills/**(clause ①, no one-line exit). This card thread is served at that tier (Served-tier: CONTRACT_REVIEW_TIER, read from the session record), so the diff was authored in the thread itself.Code citations
Each taught fact was read from code on the merge base
ec6b5fd3before any text was written.(a) The hand-off, the pending answer and the no-service refusal
packages/runtime/src/action-execution.ts,aiDoorConfirmation(line 3162): an action whoseai.requiresConfirmationis nottrueis admitted; an AI service account is refused; every other caller is handed off. The request is not a parameter, so the caller'sconfirmcannot be read.handOffActionConfirmation(line 3220): with no service resolved underACTION_CONFIRMATION_SERVICEit returns the refusal with reason'no_confirmation_service'(line 3236), whose message ends "Perform the action in the app instead."; with one, it callsservice.submit(handOff, ec)and returnsstatus: 'pending_confirmation'(line 3250) with the service'spendingIdand a message. A service that answers nopendingIdthrows.packages/spec/src/contracts/ai-service.ts:ACTION_CONFIRMATION_SERVICE = 'ai.actionConfirmation'(line 751),IActionConfirmationServicewith its one membersubmit(handOff, context)answering apendingId(lines 775-784),ActionConfirmationPending(line 732, "A success, not a refusal"). The docblock on the service says the open-source deployment registers none.A host registers it with
ctx.registerService(ACTION_CONFIRMATION_SERVICE, …)in a plugin'sinit:packages/qa/dogfood/test/action-confirmation-handoff-33690.dogfood.test.ts, line 90.(b) The refusal reasons, the status and the service-account refusal
packages/spec/src/contracts/ai-service.ts,ACTION_CONFIRMATION_REFUSAL_REASONS(line 684):declined,cancelled,timed_out,no_confirmation_service,service_account, a closed set carried asdetails.reason.packages/runtime/src/action-execution.ts:ACTION_CONFIRMATION_REQUIRED_CODE = 'ACTION_CONFIRMATION_REQUIRED'(line 3044) andACTION_CONFIRMATION_REQUIRED_STATUS = 428(line 3053).actionConfirmationRefusal(line 3075) answers reason'service_account'(line 3102) for an AI service account whatever the request carries; its comment says the reason is carried "at every door".(c) The in-client question and its three refusals; which door can ask
packages/runtime/src/action-execution.ts,elicitActionConfirmation(line 3336):acceptanswers accepted and the caller dispatches once;declineis refused'declined'(line 3354), no answer in time'timed_out'(line 3364), anything else'cancelled'(line 3373). Nothing is handed off on any of them.packages/mcp/src/action-confirmation-elicitation.ts:ACTION_CONFIRMATION_ELICITATION_TIMEOUT_MS = 5 * 60_000(line 63);actionConfirmationElicitorFor(line 188) answers no elicitor unless the client advertised form-modeelicitationon this server (line 194). The module header says the per-request Streamable HTTP server never read the client'sinitialize, so it never elicits. The card for in-client confirmation on the HTTP door is open and on hold, so the HTTP door keeps the hand-off.packages/mcp/src/mcp-http-tools.ts, lines 3582 and 3680:run_actionandresume_runpass the elicitor to the bridge only when one exists.Why the skill says "whose bridge serves these tools":
wireBridgeTools(same file, line 2211) registers the action tools only when the bridge implementslistActionsandrunAction(line 2220). The stdio bridge the plugin wires,createStdioDataBridge(packages/mcp/src/stdio-data-bridge.ts, line 1151;packages/mcp/src/plugin.ts, lines 807 and 923), returns a data bridge with neither member. So on the plugin's own stdio transportrun_actionis not registered, which the row already said before this change ("the stdio bridge does not, so it serves none"). The in-client question is reached on a long-lived server that a host gives an action-carrying bridge (MCPServerRuntime.bridgeDataTools).(d) A call that carries
confirmis refused on both toolspackages/mcp/src/mcp-http-tools.ts,RETIRED_CONFIRMATION_MEMBER(line 2163), passed asretired:to the closed input ofrun_action(line 3476) andresume_run(line 3634). Its docblock: the refusal is the closed input's unknown-key refusal, it arrives before the bridge is called, and it applies "on EVERY action, gated or not". Pinned bypackages/mcp/src/mcp-action-confirmation-member.test.ts("REFUSES a retry carryingconfirm: trueat the input: the bridge never sees it").(e) The delete tools still read
confirm, so their rows are left alonepackages/mcp/src/mcp-http-tools.ts,isDeleteConfirmed(line 1275):return request[AI_ACTION_CONFIRMATION_MEMBER] === true;, one predicate fordelete_recordanddelete_records, and both tools still declare the member in their input (lines 3167 and 3270).Tests
No package source changes, so there is no package test to run and nothing to ablate. The three eval cases are fixtures (measured, not ratcheted) and are self-consistent: every
must_containstring appears in its case'sexpected_output, nomust_not_containstring does, and the ids in each file are distinct (8 and 23; checked by script).Size readings, before (merge base
ec6b5fd3) and afterobjectstack-ai/SKILL.mdlines / bytesobjectstack-platform/SKILL.mdlines / bytesobjectstack-ai/evals/skills-tools-knowledge.jsonlines / bytes (not ratcheted)objectstack-platform/evals/config-plugins-ops.jsonlines / bytes (not ratcheted)skills/*/SKILL.md, lines summedBoth columns are the token ratchet's own print, on the merge base and on this branch.
Acceptance notes
objectstack-platform/SKILL.mdnamed it in one place only, the customization paragraph (an override turningai.requiresConfirmationoff is refused), which stays true and is not touched. The host-side teaching went underrequires:, next to the rules about what a host mounts, becausemcpis a host default and the confirmation service is one a host registers.delete_recordrow still says "ask the human first, then retry". The tool's own description now also says that a request naming one record with exactly one match is the approval (DELETE_NAMED_RECORD_IS_APPROVAL,packages/mcp/src/mcp-http-tools.ts). That is a different gate from this card's, so the row is left as it is. Noted, not filed.objectstack-ai/SKILL.mdceiling row is left at 6801 (headroom 533).Verification
Derived gates on
4c229cb1: 67 derived, 65 run and exit 0, 2 NOT MEASURED locallynode scripts/pm/dispatch-gates.mjs --commandslisted 67 commands for this change set. Each ran serially with its exit code recorded before any pipe asCMD :: exit N, then reconciled:NOT MEASURED, each exit 3 "PREREQUISITE NOT MET" (they read a full build's output, and this diff changes no package source):
pnpm check:dual-build-cjs-loads,pnpm check:lean-entry-closure. CI'sLint & Repo Gatesruns them on this PR.Among the 65:
node scripts/check-skills-token-ratchet.mjs("57 authored bundle file(s) within their ceilings; 10 generator-owned file(s) and 29 eval fixture(s) measured, not ratcheted") and its--self-test("104 cases pass"), which is also the edited script's own suite (no test file names it);pnpm --filter @objectstack/spec run check:skill-docsandpnpm --filter @objectstack/lint run check:doc-formula-expressions, both after the spec and lint closure build under the verify lock (os-verify-lock: VERDICT command-exit 0);check:skill-links,check:skill-identifier-liveness,check:skill-top-level-keys,check:skill-compatibility,check:doc-authoring,check:nul-bytes,check:ratchet-remedy-authority,check-changeset-no-major,check-empty-changeset,check-adr-0087-registration.Governed-surface reading
node scripts/pm/check-governed-merges.mjs --branch HEAD:skills/**×4 hit the register (the changeset and the ratchet script are not on it), landing tier H on a path list alone; the low-risk skills arm reads NOT MEASURED until--prcan read the pull request. Size 100 changed lines (+94 / −6), under the 3000 human-merge threshold. This PR stays a draft; the seat reviews and lands.Base: the branch was cut from
ec6b5fd3andorigin/main(631d77f3, one commit ahead,ui/only) was merged in before the gates ran.Generated by Claude Code