Skip to content

docs(skills): a person confirms a gated MCP action; run_action and resume_run take no confirm - #34558

Merged
os-zhuang merged 4 commits into
mainfrom
claude/project-thread-8iu5at
Nov 17, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/project-thread-8iu5at

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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」、没有确认服务时的 428 no_confirmation_service、以及 stdio 长连接上的客户端内提问和三个拒绝原因。objectstack-platform 技能在 requires: 的规则里加第六条:AI 门的确认是宿主自己注册的服务。评测夹具加三例。
  • 为什么改:运行时已经改了(调用方的 confirm 不再算数,并且带上它就被拒),而技能还在教旧写法。照旧文写的 agent 每次都会被拒,还会把「已交给本人」当成失败去重试。
  • 风险与回滚:只动已发布技能的文字、评测夹具、一个 changeset 和 token 棘轮的一行,不动运行时与契约。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", the list_actions, run_action, resume_run row of the tool table. Before, the row said:

An action flagged ai.requiresConfirmation (list_actions reports it) is refused with the same 428 unless the call sends confirm: true, and nothing runs — ask the human first, then retry.

After:

An action declaring ai.requiresConfirmation: true (list_actions reports it) never runs on the call: the host's pending-confirmation service hands it to the person the call runs as, who approves or rejects it in the app, and the answer is status: 'pending_confirmation' with a pendingId — a success, so relay its message and do not retry.

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-off resume_run stays paused. One paragraph is added under the table:

Never send confirm to run_action or resume_run: a call carrying it is refused, on every action. A host with no such service (the open build ships none) refuses a gated call 428, details.reason: 'no_confirmation_service': the person performs it in the app. On a long-lived (stdio) server whose bridge serves these tools, a client advertising form-mode elicitation is asked instead: accept runs it once; decline, dismissal or five minutes unanswered refuse it (declined / cancelled / timed_out). Over Streamable HTTP nobody is asked.

The delete_record and delete_records rows are not touched: those tools still read confirm: 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:

AI-door confirmation is a service you register. mcp's run_action and resume_run never run an action declaring ai.requiresConfirmation: true on the call, and refuse any call that sends confirm. Register an IActionConfirmationService under 'ai.actionConfirmation' and the person gets the hand-off (status: 'pending_confirmation', a pendingId); with none (the open build) the call is refused 428, details.reason: 'no_confirmation_service'. An AI service account is refused service_account; a stdio client asked through elicitation, declined / cancelled / timed_out: objectstack-ai → MCP.

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:

  • Dropped: "Never rebuild what the platform owns." at the end of the App / Platform Boundary intro. Still carried by the first bullet directly under it ("Business features belong in the app; capability belongs in the platform") and the third ("no hand-written predicate re-implementing a platform rule").
  • Dropped: "(this is what os dev / os serve register)" in the HonoServerPlugin row of the HTTP Layer table. Still carried by step 4 of the Runtime Boot Sequence, which lists HonoServerPlugin among the plugins the CLI registers under os 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.mjs moves that one row 6011 → 6145 (+134, the measured remainder, pinned at the measurement) with the arithmetic in its comment. The objectstack-ai/SKILL.md row 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.json id 7: an agent that asks in chat and retries run_action with confirm: true and is now refused. The answer drops the member, relays the pending_confirmation answer and its pendingId without retrying, and names the no_confirmation_service refusal on a host with no service.
  • Same file, id 8: a stdio server whose host bridge serves the action tools, a client that shows the question, and the same action called under an AI service account's own key. The answer gives what accept does, the three refusal reasons, that Streamable HTTP asks nobody, and the service_account refusal.
  • skills/objectstack-platform/evals/config-plugins-ops.json id 23: a self-hosted deployment that sees every gated call refused no_confirmation_service and wants its people to approve in its app. The answer is a plugin registering an IActionConfirmationService under 'ai.actionConfirmation', whose submit returns the pendingId.

.changeset/34210-skills-mcp-action-confirmation-hand-off.md: @objectstack/skills patch.

Line budget. The order gave net +15 lines across the two SKILL.md files, 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 --tier answers MANDATORY CONTRACT_REVIEW_TIER for skills/** (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 ec6b5fd3 before 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 whose ai.requiresConfirmation is not true is admitted; an AI service account is refused; every other caller is handed off. The request is not a parameter, so the caller's confirm cannot be read.

handOffActionConfirmation (line 3220): with no service resolved under ACTION_CONFIRMATION_SERVICE it returns the refusal with reason 'no_confirmation_service' (line 3236), whose message ends "Perform the action in the app instead."; with one, it calls service.submit(handOff, ec) and returns status: 'pending_confirmation' (line 3250) with the service's pendingId and a message. A service that answers no pendingId throws.

packages/spec/src/contracts/ai-service.ts: ACTION_CONFIRMATION_SERVICE = 'ai.actionConfirmation' (line 751), IActionConfirmationService with its one member submit(handOff, context) answering a pendingId (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's init: 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 as details.reason.

packages/runtime/src/action-execution.ts: ACTION_CONFIRMATION_REQUIRED_CODE = 'ACTION_CONFIRMATION_REQUIRED' (line 3044) and ACTION_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): accept answers accepted and the caller dispatches once; decline is 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-mode elicitation on this server (line 194). The module header says the per-request Streamable HTTP server never read the client's initialize, 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_action and resume_run pass 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 implements listActions and runAction (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 transport run_action is 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 confirm is refused on both tools

packages/mcp/src/mcp-http-tools.ts, RETIRED_CONFIRMATION_MEMBER (line 2163), passed as retired: to the closed input of run_action (line 3476) and resume_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 by packages/mcp/src/mcp-action-confirmation-member.test.ts ("REFUSES a retry carrying confirm: true at the input: the bridge never sees it").

(e) The delete tools still read confirm, so their rows are left alone

packages/mcp/src/mcp-http-tools.ts, isDeleteConfirmed (line 1275): return request[AI_ACTION_CONFIRMATION_MEMBER] === true;, one predicate for delete_record and delete_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_contain string appears in its case's expected_output, no must_not_contain string does, and the ids in each file are distinct (8 and 23; checked by script).

Size readings, before (merge base ec6b5fd3) and after
Reading before after
objectstack-ai/SKILL.md lines / bytes 434 / 24291 442 / 25091
same file, priced tokens / ceiling 6068 / 6801 6268 / 6801
objectstack-platform/SKILL.md lines / bytes 414 / 24041 421 / 24597
same file, priced tokens / ceiling 6006 / 6011 6145 / 6145
objectstack-ai/evals/skills-tools-knowledge.json lines / bytes (not ratcheted) 65 / 5372 85 / 8157
objectstack-platform/evals/config-plugins-ops.json lines / bytes (not ratcheted) 382 / 21936 400 / 23617
all skills/*/SKILL.md, lines summed 4599 4614
ratcheted (authored) bundle tokens / ceiling sum 188742 / 194737 189081 / 194871
eval fixtures tokens 48960 50078
bundle total tokens (whole shipped tree) 249497 250954

Both columns are the token ratchet's own print, on the merge base and on this branch.

Acceptance notes

  • The card says both skills "name the gate". Measured on the merge base, objectstack-platform/SKILL.md named it in one place only, the customization paragraph (an override turning ai.requiresConfirmation off is refused), which stays true and is not touched. The host-side teaching went under requires:, next to the rules about what a host mounts, because mcp is a host default and the confirmation service is one a host registers.
  • The in-client question is taught with its real reach (citation (c)): the plugin's own stdio transport serves no action tools, so the skill says "a long-lived (stdio) server whose bridge serves these tools" and does not say that any stdio client is asked. Noted, not filed.
  • The delete_record row 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.
  • The objectstack-ai/SKILL.md ceiling row is left at 6801 (headroom 533).

Verification

Derived gates on 4c229cb1: 67 derived, 65 run and exit 0, 2 NOT MEASURED locally

node scripts/pm/dispatch-gates.mjs --commands listed 67 commands for this change set. Each ran serially with its exit code recorded before any pipe as CMD :: exit N, then reconciled:

✓ dispatch-gates --ran: 67 derived famil(ies) accounted for — 65 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3).

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's Lint & Repo Gates runs 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-docs and pnpm --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 --pr can 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 ec6b5fd3 and origin/main (631d77f3, one commit ahead, ui/ only) was merged in before the gates ran.


Generated by Claude Code

…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>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 skills/** (published: objectstack-ai and objectstack-platform SKILL.md plus two eval fixtures) and one ratchet row, so it owes a contract-review-tier record before the seat record; this seat cannot run that tier, so the review goes to review#2 per the routing in references/contract-review.md. Card #34210, os-dev-report 6934092629; the four deviations for review are listed there. Note: PR #34528 (open) raises a different row of scripts/check-skills-token-ratchet.mjs.

@objectstack-fleet objectstack-fleet Bot added the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 CONTRACT_REVIEW_TIER sub-agent, on its account owner's word.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4c229cb1465fc57922a41315c64c4f4a2ae66888
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md, skills/objectstack-platform/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json, skills/objectstack-platform/evals/config-plugins-ops.json + scripts/check-skills-token-ratchet.mjs
Security-touching: yes

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 main, and the check-runs on this head. The taught code was read on origin/main at 8dd8192c. Security-touching: yes because every changed skill hunk teaches the AI-door confirmation gate: who may confirm a gated action, the AI service account refusal, and the host service that carries the approval.

① Derived judgments

  • No accept-set change. The diff publishes skill prose, three eval cases, one changeset and one ceiling row. No file under packages/ is touched, so no schema, tool input or refusal code moves. Right.
  • Published surface: @objectstack/skills ships two changed SKILL.md files and two eval fixtures. The change replaces a teaching that the runtime now refuses (confirm: true on run_action) with the one it serves. Right, and owed: RETIRED_CONFIRMATION_MEMBER in packages/mcp/src/mcp-http-tools.ts refuses the old teaching on every call.
  • delete_record and delete_records rows left alone. Right: isDeleteConfirmed still reads the member and both tools still declare it. main has since rewritten the delete_record row (docs(skills): objectstack-ai says a delete_record the human named, with one record matching, is already approved #34538); the two branches merge without conflict, the merged objectstack-ai/SKILL.md is 25387 bytes (6342 tokens against 6801), and the merged objectstack-platform/SKILL.md is still 24597 bytes, so the 6145 pin stays exact.
  • Check-runs on the head: 30 success, 20 skipped by design (UI lanes, opt-in harnesses, queue verdicts), none failed or pending. Governed Surface Queue Guard, Check Changeset, Lint · repo & tooling gates (the token ratchet) and Lint · docs & code guards are among the green ones.

② Semver level

.changeset/34210-skills-mcp-action-confirmation-hand-off.md bumps @objectstack/skills by patch. That matches a prose and fixture change to a published skill bundle. Clause-②: no on the PR body and the changeset is right: no published schema or accept set changes, and nothing is narrowed (the narrowing itself shipped in #34202 and #34358).

③ Boundary flags

  • Dev deviation, the in-client question taught as "a long-lived (stdio) server whose bridge serves these tools": answered, correct. createStdioDataBridge (packages/mcp/src/stdio-data-bridge.ts) implements neither listActions nor runAction, wireBridgeTools registers the action tools only when both exist, and plugin.ts wires that bridge. The narrower wording is the true reach.
  • Dev deviation, head is a merge commit over c22bb66d: answered. The net diff against main is the six files only.
  • Dev deviations on the PR footer, assignee and attribution link: outside the contract faces, left to the seat's ACCEPT.
  • open_questions: none filed.
  • Out-of-scope notes (stdio bridge reach, delete_record row wording, re-locking the objectstack-ai ceiling): none is owed by this card. The second is already overtaken by docs(skills): objectstack-ai says a delete_record the human named, with one record matching, is already approved #34538 on main.
  • Author: objectstack-fleet[bot] (relay-written), so no author note.
  • SQL push-down: not applicable. The diff adds no query, id materialisation or in-app join.

④ Design judgment

Each taught sentence was read against the code on main.

skills/objectstack-ai/SKILL.md holds.

  • "never runs on the call … status: 'pending_confirmation' with a pendingId — a success": aiDoorConfirmation takes no request parameter, handOffActionConfirmation answers { status: 'pending_confirmation', pendingId, message }, and invokeBusinessAction returns it as the call's answer with no invocation row. ActionConfirmationPending in the spec says "A success, not a refusal".
  • Service account, "the same 428, details.reason: 'service_account', at every action door": actionConfirmationRefusal sets the reason, and action-dispatch.ts asks the gate for an account under both postures, so REST and host doors refuse it too.
  • "a handed-off run stays paused": the resume_run hand-off branch in packages/runtime/src/domains/mcp.ts returns the pending answer before anything resumes.
  • "a call carrying it is refused, on every action": retired: RETIRED_CONFIRMATION_MEMBER on both closed inputs, refused before the bridge is called.
  • No service, 428 no_confirmation_service, "the person performs it in the app": handOffActionConfirmation, whose message ends the same way. No non-test code in the open tree registers ACTION_CONFIRMATION_SERVICE.
  • Elicitation: actionConfirmationElicitorFor answers an elicitor only for form-mode elicitation on a server that read initialize. confirmAdmittedAction asks it before the hand-off and never hands off afterwards, so "asked instead" holds with or without a service. accept dispatches once; decline, any other answer and the timeout map to declined, cancelled, timed_out; the bound is 5 * 60_000 ms. An account is refused before the question.
  • Attempts to break it that failed: a delegated agent (onBehalfOf) is handed off to its person, not refused; confirm: false is refused like confirm: true; an elicited resume_run re-asks the admitting gates after the answer.

skills/objectstack-platform/SKILL.md holds. IActionConfirmationService and ACTION_CONFIRMATION_SERVICE = 'ai.actionConfirmation' are exported from @objectstack/spec/contracts; resolveActionConfirmationService resolves that name per call. The two cuts are real restatements: the first and third bullets under the App / Platform Boundary intro carry "never rebuild", and the boot sequence lists HonoServerPlugin under os serve / os dev. The list has six bullets.

scripts/check-skills-token-ratchet.mjs agrees with the contract. 24041 − 20 = 24021 bytes is 6006 tokens before; cuts of 38 + 46 = 84 bytes and 640 added give 24577 bytes, ceil(24577 / 4) = 6145, which is the new pin and the head's measured size (24597 − 20). The raise cites ruling record 6513306068, the same record the file's earlier raises cite, and the cuts were made first as that ruling asks.

skills/objectstack-platform/evals/config-plugins-ops.json id 23 and skills/objectstack-ai/evals/skills-tools-knowledge.json ids 7 and 8: the expected outputs agree with the code (ctx.registerService in init is the shape the dogfood fixture action-confirmation-handoff-33690 uses; submit(handOff, context) answers { pendingId }). The assertions do not all hold:

S1 (should-fix) — two eval assertions fail an answer that is correct.

  • skills-tools-knowledge.json id 7, must_contain: "does not retry". No markdown in the objectstack-ai bundle contains that phrase: the skill teaches "do not retry". An agent answering in the skill's own words is failed. The repo already treats an untaught must_contain token as an error on the sibling bundle (ui/scripts/check-skill-eval-tokens.mjs); that gate does not scan root skills/, so no check-run on this head measured it. Fix: use a token the skill teaches, for example do not retry with the expected output reworded to match, or drop the token.
  • config-plugins-ops.json id 23, must_not_contain: "confirm: true". The prompt asks what to build so people approve in the app. On main the approval leg of that build is a host door call that carries the member: dispatchAction(kernel, { …, posture: 'ai', confirm: true }) and dispatchActionResume(…, confirm: true) (packages/runtime/src/action-dispatch.ts; the IActionConfirmationService docblock names both). A complete answer is failed, and so is one that says "a client's confirm: true is refused". Fix: narrow the token to the MCP call form, as id 7 already does with recordId, confirm: true.

N1 (nit) — id 8 carries the same broad must_not_contain: "confirm: true". An answer that says "neither caller sends confirm: true" is failed. Worth narrowing in the same edit as S1.

N2 (nit) — id 8's expected output says a gated call over Streamable HTTP "is handed off and answered pending_confirmation". That is true only where a service is registered; with none it is refused no_confirmation_service. The skill text itself states both cases correctly.

N3 (nit) — "never runs on the call" (both skills) and "Over Streamable HTTP nobody is asked" (objectstack-ai) read as absolutes. An elicited accept does run the action on the call, and over HTTP the person is asked in the app. Both are qualified within the same section ("asked instead: accept runs it once"; "asked" means asked in the client) and mirror the tool's own description, so no reader is led to a wrong call.

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: claude/project-thread-8iu5at
Reviewed-by: session_01WGufzgtCwPzNYSczvxDEpw

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>
@github-actions github-actions Bot added size/s and removed size/m labels Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

Contract-review-claim: session_01WGufzgtCwPzNYSczvxDEpw · head 1a820c3 · 2026-11-17T03:26Z

Delta of record 6937055058 (S1 open), by the same at-tier reviewer; delta os-dev-report 6937145448 on #34210.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1a820c34b5ec928c91d22ef2f78935748c0a22ae
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md, skills/objectstack-platform/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json, skills/objectstack-platform/evals/config-plugins-ops.json + scripts/check-skills-token-ratchet.mjs
Security-touching: yes

Delta review of PR #34558 (card #34210) after record 6937055058 on 4c229cb1 (PASS, S1 open). Inputs read: the delta os-dev-report 6937145448, the delta 4c229cb1..1a820c34 on the scoped paths, the net diff against main at 8dd8192c, and the check-runs on this head. Security-touching: yes stands: the PR's skill hunks teach the AI-door confirmation gate, the AI service account refusal and the host approval service.

① Derived judgments

  • The delta is two commits. c9738118 edits the two eval fixtures only. 1a820c34 merges main at 8dd8192c, with no conflict.
  • The net diff against main is the same six files. On the two SKILL.md files, the ratchet script and the changeset, the added and removed lines are identical to those reviewed on 4c229cb1; only the context around the objectstack-ai row moved, because main rewrote the delete_record row (docs(skills): objectstack-ai says a delete_record the human named, with one record matching, is already approved #34538). So the ④ judgment of record 6937055058 on those four files carries to this head unchanged.
  • Sizes on the merged tree: objectstack-ai/SKILL.md is 25387 bytes, 6342 tokens against a ceiling of 6801. objectstack-platform/SKILL.md is 24597 bytes, 6145 tokens against the pinned 6145, so the row is still exact.
  • Check-runs on this head are NOT complete at the time of this record: 18 success, 16 skipped by design, 9 in progress, none failed. In progress: Test Core (1/8), (2/8), (3/8), Lint · ESLint, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates (the token ratchet), Lint · CI, release & engine gates, Lint · scoped · query-options erasure. This record judges the contract; the all-green landing check on this head is still owed and is the seat's to read once they finish.

② Semver level

Unchanged: @objectstack/skills patch, Clause-②: no. The delta adds no changeset and publishes only fixture edits inside the same bundle.

③ Boundary flags

  • Dev deviation, PR body not refreshed (the eval line counts, the size table's after column and the Base line are stale): outside the contract faces. The seat refreshes the body; nothing in the tree depends on it.
  • Dev deviation, requiresConfirmation: false removed from id 23's must_not_contain beyond what S1 named: accepted. A correct answer may mention that caveat, since the skill itself teaches it for the service-account case.
  • open_questions: none. Out-of-scope findings: none.
  • Author: objectstack-fleet[bot], no author note.
  • SQL push-down: not applicable, no code in the diff.

④ Design judgment

S1: closed.

  • skills-tools-knowledge.json id 7 now requires do not retry, and the expected output carries it. The phrase is taught verbatim in the run_action row of skills/objectstack-ai/SKILL.md ("relay its message and do not retry").
  • config-plugins-ops.json id 23 now forbids only recordId, confirm: true, the MCP call form. An answer that names the host approval leg (dispatchAction with confirm: true) or says a client's confirm: true is refused is no longer failed.

N1: closed. Id 8 forbids the same narrow form.

N2: closed. Id 8's expected output now reads "handed off and answered pending_confirmation, or refused no_confirmation_service where the host has no service", which is the two cases handOffActionConfirmation serves.

N3: left as an accepted deviation. No SKILL.md text changed in this round, and the absolutes are qualified in the same section.

Each case's must_contain tokens appear in its expected output and in its bundle's SKILL.md; no must_not_contain token appears in an expected output. The narrowed must_not_contain tokens now catch only the literal old call form, which is a weak guard but grades no correct answer wrongly.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-8iu5at
Reviewed-by: session_01WGufzgtCwPzNYSczvxDEpw

VERDICT: PASS

@objectstack-fleet

objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

维护者速读

  • 改了什么:objectstack-ai 技能的 MCP 工具表里,run_action 一行不再教「先问人,再带 confirm: true 重试」,改为:声明了 ai.requiresConfirmation: true 的动作不在这次调用里执行,交给本人在应用里确认,回答是 status: 'pending_confirmation' 加 pendingId;表下新增一段,教「不要发 confirm」、没有确认服务时的 428 no_confirmation_service、stdio 长连接上的客户端内提问和三个拒绝原因。objectstack-platform 技能在 requires: 规则里加第六条:AI 门的确认是宿主自己注册的服务。评测夹具加三例。
  • 为什么改:运行时已经改了(调用方的 confirm 不再算数,带上就被拒),技能还在教旧写法;照旧文写的 agent 每次都会被拒,还会把「已交给本人」当成失败去重试。
  • 风险与回滚:只改技能文字、评测夹具、changeset 和 token 棘轮一行,不动运行时。objectstack-platform/SKILL.md 先删同文件两处重复,再按裁决 6513306068 把上限按实测从 6011 提到 6145。回滚即 revert。
  • 先看:skills/objectstack-ai/SKILL.md 的 run_action 行和表下新段,然后是 objectstack-platform/SKILL.md 的第六条规则。
  • 两分钟验证:node scripts/check-skills-token-ratchet.mjs,预期 skills/objectstack-platform/SKILL.md is 6145 tokens (ceiling 6145; headroom 0),末行 ✓。
  • 需要你做的:受管路径(skills/**,Tier H;带 security 标签并改了棘轮脚本,低风险臂不适用)。契约审核:首轮 6937055058(PASS,S1 待修)、增量 6937234252(PASS,S1 已关),Head-sha: 1a820c34b5ec928c91d22ef2f78935748c0a22ae。请审阅并合并(或在此 head 上批准,由席位落地)。
  • 席位意见:建议合并。审核把技能里每句教学都对照了 main 上的运行时代码,没有找到错的;评测断言的问题已修。

席位核对

ACCEPT · head 1a820c34b5ec928c91d22ef2f78935748c0a22ae · card #34210 (p2) · claim 6933537428 · os-dev-report 6934092629, delta 6937145448 · contract review 6937055058 (PASS at 4c229cb1, S1 open) → delta 6937234252 (PASS on this head, S1 closed, N1–N2 closed, N3 accepted) · read 2026-11-17T03:41Z.

  • Shape: draft → main, Fixes #34210, no other card number beside a closing keyword. Six files: skills/objectstack-ai/SKILL.md (+9/−1), skills/objectstack-platform/SKILL.md (+11/−4), skills/objectstack-ai/evals/skills-tools-knowledge.json (+20), skills/objectstack-platform/evals/config-plugins-ops.json (+17), scripts/check-skills-token-ratchet.mjs (+22/−1, one row), .changeset/34210-skills-mcp-action-confirmation-hand-off.md (@objectstack/skills patch). Clause-②: no, Metadata-protocol: none, Skills-docs: updated here. check-governed-merges --pr 34558: Tier H, 99 lines; the low-risk arm reads Tier H (ratchet script path, security label).
  • Premise measured: the review read the runtime on main (8dd8192c): the hand-off answer, the retired confirm refused on both tools before the bridge, 428 no_confirmation_service, the service-account refusal, the elicitation bounds and reasons, the stdio bridge serving no action tools, and the service exported from @objectstack/spec/contracts. Every taught sentence held.
  • Gates (check-runs on this head): 45 runs, 29 success, 16 skipped, none red. Token ratchet on the merged tree: objectstack-ai 6342 / 6801, objectstack-platform 6145 / 6145. Main merged in this round (8dd8192c, clean); K 4 now.
  • Accepted deviations: (1) the stdio elicitation path is taught as "a long-lived (stdio) server whose bridge serves these tools" — the plugin's own stdio bridge registers no run_action, so that is the true reach; (2) the host rule went in as a sixth rule under requires:; (3) rows for delete_record untouched (rewritten on main by docs(skills): objectstack-ai says a delete_record the human named, with one record matching, is already approved #34538, merged clean); (4) ratchet row raised by the measured delta under ruling 6513306068 after same-file cuts. Security label added per the review's Security-touching: yes.
  • Out of scope: N3 (absolute wording "never runs on the call" / "nobody is asked", qualified in the same section and mirroring the tool's own description) — dropped. The PR body's size table and Base line predate the fix round and the main merge (fixture +17 now, objectstack-ai 442 lines / 6342 tokens); the readings above are the current ones.
  • Contract review routing: review#2 declined new first reviews and l2-review#3 left the hand-off unclaimed; on the account owner's word the seat ran both rounds through one CONTRACT_REVIEW_TIER sub-agent, verify-review-tier passing each time before the post.
  • Landing: Tier H. pm:awaiting-merge; reviewers os-zhuang and hotlong requested. An APPROVED review on this head lets the seat (or the next skills seat) land it.

@objectstack-fleet objectstack-fleet Bot added pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue and removed needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides labels Nov 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 03:43
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 082f9c2 Nov 17, 2026
53 of 54 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-8iu5at branch November 17, 2026 04:01
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation security size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants