Skip to content

feat(spec)!: a declared-gated action on an AI door is confirmed by a person through MCP elicitation - #33725

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-2tb5xl
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-2tb5xl

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

domain:spec#1 · os-project-manager · session_01FEkQ5kZuoX9F5S7p84Dwue

Part of #33689 (PR 1 of 2: the spec contract; the ADR-0011 / ADR-0151 amendment notes follow as PR 2 once this merges)

Clause-②: yes (narrowing)
Metadata-protocol: semantic
Skills-docs: follow-up — skills/objectstack-ai/SKILL.md (the MCP tool table rows for run_action / resume_run) teaches confirm: true, which is still the door's behaviour in this release; it moves with the change that implements the doors, with packages/mcp/src/skill-md.ts, ui/apps/console/src/pages/developer/objectstack-skill.ts and the ToolSchema prescription in packages/spec/src/ai/tool.zod.ts.

维护者速读

  • 改了什么:只改接口契约(@objectstack/spec/contracts)。对声明了 ai.requiresConfirmation: true 的动作,经 MCP run_action / resume_run 调用时按三步确认:客户端支持「征询」(elicitation)就在客户端里问用户;不支持就交给宿主的「待确认服务」,回一个待确认 id,用户在应用里(收件箱 + 邮件链接)同意或拒绝,同意后以用户本人身份、重新检查权限后执行(resume_run 交出时带上运行 id 和字段值,同意即恢复那次暂停的运行,不另起新运行);宿主在 ACTION_CONFIRMATION_SERVICE('ai.actionConfirmation')下没有注册这个服务才拒绝。只有调用所代表的那个人能同意或拒绝;同意/拒绝入口只接受此人在应用里登录的会话,AI 身份、API key、令牌一律拒绝。待确认项何时过期、调用方如何得知结果由宿主自定。调用方自己传的 confirm: true 不再算数,AI 服务账号照旧拒绝。
  • 为什么改:实测 6 次不可逆请求有 2 次是 AI 自己传 confirm: true 放行的。维护者已裁「3826 照建议(征询版)」,并在卡上追加「推送到客户的手机端」「先推送到邮件」。
  • 风险与回滚:本 PR 不改任何运行时或 MCP 行为,本版本里门禁仍读 confirm: true;迁移条目和变更说明都写明「实现变更发布后」才生效。回滚即还原本 PR。
  • 先看:packages/spec/src/contracts/ai-service.ts L419–L579 的契约文档块(第 3、4 条与「What an answer proves」);同文件 ActionConfirmationHandOff.run(L615)、ACTION_CONFIRMATION_SERVICE(L666)和 IActionConfirmationService(L690);.changeset/33689-ai-action-confirmation-elicited.md 的 FROM → TO。
  • 两分钟验证:pnpm --filter @objectstack/spec exec vitest run src/contracts/action-confirmation-contract.pin.test.ts,预期 13 条全绿。
  • 需要你做的:无,席位落地。进程内助手这扇门(Q1)尚未裁定,契约对它保持沉默。

What changes

All in packages/spec; no runtime, MCP or UI file is touched.

  • The amended contract, contracts/ai-service.ts L419–L579, on AI_ACTION_CONFIRMATION_CAPABILITY = 'elicitation'. For a call on an action declaring ai.requiresConfirmation: true through the MCP run_action tool or resume_run (its candidate action), by any caller acting for a person:
    1. When: after EVERY admission gate, the subject load and the caller-scope subject verdict included, and before dispatch. A call refused at confirmation may have read its subject under the caller's permissions; it writes nothing.
    2. Three steps, in order. Elicit, when the client advertised elicitation at initialize for the session and the door can carry a request to it (one elicitation/create, form mode, naming the action, object and record id, with its title when the subject load read one). Otherwise hand off to the host's pending-confirmation service, registered under ACTION_CONFIRMATION_SERVICE ('ai.actionConfirmation'), and answer ActionConfirmationPending (status: 'pending_confirmation', a pending id, a plain message). Only the person the call ran as (its userId, the person an agent acts for) decides the item; when it lapses and how the caller learns its outcome are the host's to define. Refuse only when the host registers no service under that name (no_confirmation_service). A door or client that cannot elicit is never refused for that alone.
    3. Answers. Elicited accept runs once under the caller's permissions, nothing stored; decline / cancel (error answer, dropped connection) / timed out refuse with declined / cancelled / timed_out. Handed off then approved in the app: runs as the approving person through the same admitted sequence, every gate and permission re-checked, a refusal there recorded on the pending item; rejected: nothing runs. A handed-off resume_run carries its run (ActionConfirmationHandOff.run: runId and values); approving it resumes THAT parked run as the approver, who must be the run's owner as today, and never starts a new run. The approve and reject doors take a person's signed-in session to the app and nothing else: they refuse an AI identity (an agent principal, with or without onBehalfOf, and any call through an AI door) and an API key, a delegated or OAuth token or any other service credential, whoever it resolves to.
    4. The caller's confirm never counts. An AI service account is refused unchanged (ADR-0151 D3 rule 3), reason: 'service_account' on every door, since the one admitted sequence asks that rule at REST /actions and host doors too; it is neither elicited nor handed off.
    5. What an answer proves: an elicited accept proves the client answered, not that a person did; an approved hand-off proves a signed-in session to the app answered, not that a person did. Neither proves a human; each is as strong as what it takes to give it.
    6. Bounds: the MCP delete tools keep the member; REST /actions stays outside the gate for a person.
  • When it binds. Until the implementing change ships, every door still gates on the member: run_action / resume_run run a gated action on confirm: true over stdio and Streamable HTTP alike. Measured: stdio can elicit; the stateless HTTP door as built cannot, so under step 2 its callers are handed off. Whether and how that door comes to elicit is the implementing change's decision.
  • Types. ACTION_CONFIRMATION_REFUSAL_REASONS (closed: declined, cancelled, timed_out, no_confirmation_service, service_account; a hand-off is not a refusal), ActionConfirmationRefusalReason, the optional ActionConfirmationRequiredDetails.reason, and the hand-off seam: ActionConfirmationHandOff, ActionConfirmationPending, the OPTIONAL host service IActionConfirmationService (submit(handOff, context) → { pendingId }) and its service slot ACTION_CONFIRMATION_SERVICE = 'ai.actionConfirmation', following AUDIT_CHECKPOINT_SINK_SERVICE in contracts/audit-checkpoint.ts (no CoreServiceName change). ActionConfirmationHandOff gains the optional run: { runId; values }, present exactly for a resume_run call. The seam names no cloud store; it points to held on IAIService.approvePendingAction as the existing precedent.
  • The member's docblocks (AI_ACTION_CONFIRMATION_MEMBER L242, AIActionConfirmation L259, confirmationMember) say the member stops confirming from the implementing change and is the FROM half until then.
  • Semantic entry 18.action-requires-confirmation-elicited.ts (adr-0087: registered) leads with the timing: keep sending confirm: true until a release's changelog says the doors switched; every instruction after that is conditional on it.
  • Changeset .changeset/33689-ai-action-confirmation-elicited.md, @objectstack/spec minor, "BREAKING, when the implementing change ships", with a ⚠ line that nothing changes at any door in this release.
  • Regenerated: api-surface/contracts.json, export-origins/contracts.json (seven new exports; round 3 adds ACTION_CONFIRMATION_SERVICE).

First-party exposure (what the implementing change will move)

  • Actions declaring ai.requiresConfirmation: true: 19 in packages/platform-objects, 7 in plugin-approvals (sys_approval_request), 1 in HotCRM origin/main 81efb1c (convert_lead). Over MCP, once the doors switch, each is elicited or handed off.
  • Callers that send confirm: true (on run_action, resume_run or the delete tools): test files in packages/mcp (11), packages/runtime (6), packages/qa/dogfood (9), packages/qa/scenarios, examples/app-todo/test/mcp-actions.test.ts; HotCRM sends none.
  • Text that teaches the member: skills/objectstack-ai/SKILL.md L202–L204, packages/mcp/src/skill-md.ts, packages/mcp/README.md, ui/apps/console/src/pages/developer/objectstack-skill.ts, the ToolSchema guidance in packages/spec/src/ai/tool.zod.ts, the semantic entry 17.tool-requires-confirmation-retired.ts. True today; they move with the doors.

Tests

action-confirmation-contract.pin.test.ts, its amended-contract describe (7 cases; the file 13/13):

  • the capability is 'elicitation', not the member;
  • the service slot is 'ai.actionConfirmation', and step 3 turns on it by name;
  • the reasons are exactly the five, in order; accepted, pending_confirmation and elicitation_unsupported are not reasons;
  • details.reason is typed to the set (@ts-expect-error on 'denied') and optional;
  • a hand-off answers status: 'pending_confirmation' (@ts-expect-error on the chat's older 'pending_approval'), a resume_run hand-off carries run: { runId, values } (@ts-expect-error on a run without values), and a stub IActionConfirmationService resolves a pending id for both kinds;
  • no second refusal code is registered;
  • the docblock names every reason, every answer (elicited and handed off), the three steps, the approve and reject doors taking only a person's signed-in session (refusing an AI identity and any key or token, whoever it resolves to), who decides, lapse and outcome left to the host, resuming the parked run, the re-check at approval and both trust bounds; it no longer says a refused call read nothing or that a hand-off is the stronger answer. The remedy assertion is relabelled for a host without the service.

Ablations (scripts/ablation-replace.mjs, each restored to the HEAD blob):

reason typed as string, and the pending discriminant typed as string: check:test-typecheck red on the pin file both times
round 1, head 85c411c8: reason?: ActionConfirmationRefusalReason; -> reason?: string;  blob 054fd397a1d3 -> 9e20e9672268, command exited 1, restored 054fd397a1d3
round 2, head c0ebf0c3: status: 'pending_confirmation'; -> status: string;  blob f259f76ae2d4 -> 23c57fd3e849, command exited 1
  • src/contracts/action-confirmation-contract.pin.test.ts: 1 type error(s) in a file the ledger does not cover.
  ablation-replace: ok restored: blob == HEAD (f259f76ae2d4) and `git diff HEAD` is empty
round 3: the run leg's values made optional (check:test-typecheck red), and the API-key refusal dropped from the prose (pin red)
head c126efd6: values: Record<string, unknown>; -> values?: Record<string, unknown>;  blob c73c190e56b4 -> c0e0f1492b66
  check:test-typecheck: 1 problem(s)
  • src/contracts/action-confirmation-contract.pin.test.ts: 1 type error(s) in a file the ledger does not cover.
  ablation-replace: command exited 1 · ok restored: blob == HEAD (c73c190e56b4) and `git diff HEAD` is empty
  (a first try ran out of heap in tsc, "failed without diagnostics"; not counted, re-run with --max-old-space-size=8192)
head c126efd6: "also refuse an API key, a delegated or OAuth token" -> "also refuse a delegated or OAuth token"  blob c73c190e56b4 -> 3138af149260
  AssertionError: the approve and reject doors no longer refuse a credential that resolves to the person
  Tests  1 failed | 12 passed (13)
  ablation-replace: command exited 1 · ok restored: blob == HEAD (c73c190e56b4) and `git diff HEAD` is empty

Acceptance notes

  • Q1, the in-app assistant door, is OPEN. The contract is silent on it: its rule 1 names the two MCP tools only. The seat routes it for a decision.
  • Q2 (the MCP delete gates), Q3 (how the stateless HTTP door comes to elicit) and Q4 (the member on the tool input schemas) belong to the implementing card. The contract states the delete tools keep the member, and that a door that cannot elicit hands off.
  • Round 2 answered contract review 6891568840 (FAIL) under the seat's ruling 6891575459: F1 the amended three-step rule, the seam and the reason set; F2 the ordering and the read; F3 the HTTP sentence; F4 conditional entry and changeset; F5 to F7 the trust bound, service_account on every door, and the member paragraph's tense.
  • Round 3 answers delta review 6892320399 (FAIL) under the seat's ruling 6892327817: N1 the hand-off carries a resume_run's run and approval resumes that run, the approver being the run's owner; N2 the approve and reject doors take only a person's signed-in session, and "What an answer proves" states the hand-off's bound as it does the elicited one; N3 the service slot ACTION_CONFIRMATION_SERVICE; N4 who decides, and lapse and outcome delivery left to the host. The pin test moves sentence by sentence and its stale remedy label is fixed. The semantic entry is unchanged: the review found N1 and N2 do not reach it.

Verification

Round 3, all on head c126efd6 (base 6ff3eee7; round 2 was c0ebf0c3).

spec build + full suite: 841 files, 26893 passed | 1 todo
pnpm --filter @objectstack/spec build (under os-verify-lock) :: VERDICT command-exit 0
pnpm --filter @objectstack/spec test (under os-verify-lock) :: VERDICT command-exit 0
Test Files  841 passed (841)
     Tests  26893 passed | 1 todo (26894)
spec typecheck (with check:test-typecheck) and check:generated: exit 0
pnpm --filter @objectstack/spec typecheck :: exit 0 (test-typecheck debt unchanged: 52 files / 240 errors / 131 signatures)
pnpm --filter @objectstack/spec check:generated :: exit 0 (All 14 generated artifacts are up to date)
gen:api-surface / gen:export-origins :: contracts.json +1 each (ACTION_CONFIRMATION_SERVICE (const), origin src/contracts/ai-service.ts)
Derived gates: 88 derived (same list as round 2), 87 exit 0 in the loop, 1 lock queue-timeout re-run green
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack   (88 commands, identical to round 2; each run with timeout 900, exit captured before any pipe)
87 of 88 :: exit 0
pnpm check:type-check-debt :: exit 3   (its closure build queued behind the dogfood run's verify-lock hold past its 540s budget)
  re-run under os-verify-lock after the dogfood run :: exit 0 (0 raw tsc errors, none above its recorded number)
dispatch-gates --ran :: exit 0 — 88 derived, 87 run, 1 NOT-MEASURED (it reads the first exit 3 of the re-run gate; both lines are kept in the record)
Dogfood battery on c126efd: 467 passed | 3 skipped files, 3958 passed | 42 skipped tests
pnpm --filter @objectstack/dogfood test   (under os-verify-lock, head c126efd6)
Test Files  467 passed | 3 skipped (470)
     Tests  3958 passed | 42 skipped (4000)
os-verify-lock: VERDICT command-exit 0 · held the lock 2354s

Generated by Claude Code

…person through MCP elicitation

The action-confirmation contract is amended: for an action declaring
ai.requiresConfirmation: true, invoked through the MCP run_action or
resume_run tool, the server elicits the person's confirmation from a client
that advertised elicitation at initialize. A client without it is refused,
the caller's own confirm member never counts, and an AI service account is
refused as before. Each elicitation answer and its refusal reason is stated.

Contract only: the doors implement it in the next change.

Claude-Session: https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 17 documentable anchor(s). ⚠️ 2 changed file(s) yielded no anchor (packages/spec/api-surface/contracts.json, packages/spec/export-origins/contracts.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

30 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json a557fa386bc3119379b1525bade763d00578396d.

⛔ 6 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 2 changed file(s) yielded no anchor (packages/spec/api-surface/contracts.json, packages/spec/export-origins/contracts.json) — pages documenting those are invisible to this run
  • 1 cross-cutting symbol(s) contributed no route anchor: recordId (4 routes)
  • 1 anchor(s) matched too much of the corpus to be a work list: objectName (symbol, 58 pages)
  • 6 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 172 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json a557fa386bc3119379b1525bade763d00578396d → packageMentionDocs.

Which tree this was computed on

This run read content/docs from dbef6af8a72d06ba49d2b207e49db34eab8308e0 — the merge of head c126efd64cfbedd2a534d2e91a045feba00cc695 into base a557fa386bc3119379b1525bade763d00578396d, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin dbef6af8a72d06ba49d2b207e49db34eab8308e0 && git checkout dbef6af8a72d06ba49d2b207e49db34eab8308e0
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a557fa386bc3119379b1525bade763d00578396d c126efd64cfbedd2a534d2e91a045feba00cc695 && git checkout -B drift-repro a557fa386bc3119379b1525bade763d00578396d && git merge --no-ff c126efd64cfbedd2a534d2e91a045feba00cc695

node scripts/docs-audit/affected-docs.mjs --json a557fa386bc3119379b1525bade763d00578396d

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs a557fa386bc3119379b1525bade763d00578396d → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 85c411c82c5a98c5da4a7ac0b8429a5dcd87e8ee
Local-runs: none
Scope: packages/spec/src/contracts/ai-service.ts, packages/spec/src/migrations/entries/semantic/18.action-requires-confirmation-elicited.ts + packages/spec/src/contracts/action-confirmation-contract.pin.test.ts

Inputs read: card #33689 (body, including its ## Amendment section, and comments 6890539808, 6890670880, 6891502025), PR #33725 (body, file list, net diff against main), and the check-runs on the head. Code read to judge, not reviewed: packages/runtime/src/action-execution.ts :2975-3095, packages/runtime/src/action-dispatch.ts :1-55 and :395-516, packages/runtime/src/domains/mcp.ts :1270-1300 and :2085-2125, packages/mcp/src/mcp-server-runtime.ts :2470-2530 and :2690-2755, packages/spec/src/migrations/entries/README.md, packages/spec/src/migrations/types.ts.

Check-runs on the head, read 2026-11-15T08:14Z: 18 success, 10 skipped, 16 still in progress, 0 failed. Success includes Check Changeset, Governed Surface Queue Guard, PR-body guards, Spec property liveness, Type Check · source gates, Lint · ESLint, Lint · docs & code guards, Lint · repo & tooling gates, Lint · PM dispatch-gates, Dogfood Regression Gate. Still running: Test Core 1/8 to 8/8, Build Core, Build UI Deps, Type Check · workspace / consumer gates / debt ledger, Lint · CI, release & engine gates, Lint · scoped · query-options erasure, Live E2E UI. The gate families that judge the pin test, the generated baselines and the registry generation had therefore NOT answered when this record was written.

① Derived judgments

  • Three new exports on @objectstack/spec/contracts: AI_ACTION_CONFIRMATION_CAPABILITY (const), ACTION_CONFIRMATION_REFUSAL_REASONS (const), ActionConfirmationRefusalReason (type). Additive. Right as a surface change. api-surface/contracts.json and export-origins/contracts.json carry exactly these three, with the right kinds and origin src/contracts/ai-service.ts, in sorted position. Right.
  • ActionConfirmationRequiredDetails.reason?: one new optional member, typed to the closed tuple. Additive for a reader; a producer that omits it still compiles. Right. It is not a name-level export, so its absence from the baselines is right.
  • Accept set: no schema, no parser and no door changes. Nothing an author writes is refused or rewritten. Right.
  • No error-ledger change: every reason rides 428 ACTION_CONFIRMATION_REQUIRED. Right, and it matches the live gate (ACTION_CONFIRMATION_REQUIRED_CODE / _STATUS, action-execution.ts).
  • The closed five-member reason tuple is itself a published accept set. Publishing it closed, with elicitation_unsupported meaning "refused", is wrong against the card as it now reads: see ④ F1. A closed set that has to change in the next card is a second breaking change.
  • Semantic entry: the file name is 18. plus the entry id, which is the rule in entries/README.md ("named by protocol major, then the id, then .ts"). The 18. prefix is the protocol major, not an ordinal: 500+ entries share it, 18.object-extension-formula-cycle-refused.ts among them, so a shared prefix is legal and expected. Registration is the file alone (no index, registry.ts is generated and git-ignored); the id is unique in the tree; the changeset marker adr-0087: registered action-requires-confirmation-elicited names it. Right. No relevantWhen, so the entry is always listed; right for a surface that lives at a runtime door.

② Semver level

  • '@objectstack/spec': minor with Metadata-protocol: semantic: the meaning of an authorable key (ai.requiresConfirmation: true) changes and nothing is refused at authoring, so semantic is the right kind, and a kind takes at least minor. Right.
  • Clause-②: yes (narrowing): yes is right, the diff enlarges the published surface by three exports and one member. (narrowing) is right, the contract takes a working call shape away (the caller's confirm: true). The claim's expected no (narrowing) was wrong for this diff and the dev's deviation is correct. Both lines stand line-initial in the PR body and the changeset body. Check Changeset: success.
  • The changeset carries the BREAKING banner, the ADR-0087 disposition marker and a FROM → TO note. The form is right. The content of the FROM → TO is wrong against the amended card (F1) and misleading for the release that carries it (F4).

③ Boundary flags

  • Dev deviation, Clause-② changed from the claim: accepted (② above).
  • Dev deviation, Part of #33689 in place of Refs: accepted; neither closes the card. PR-body guards: success.
  • Dev deviation, the semantic entry file beyond the claim's file surface: accepted; the order allowed it and a FROM → TO note needs a registered disposition.
  • Claim boundary "no runtime or MCP behaviour change on this card": held. The diff is six files, all under packages/spec plus the changeset.
  • ESCALATED to the seat, blocking: the card body carries a ## Amendment (the owner, after the card was filed) section that changes the rule (pending-confirmation service before any refusal). The claim (6890670880), the dev report (6891502025) and the PR body do not mention it, so the dev was almost certainly ordered against the pre-amendment card. The section sits below the body's signed: marker and REST shows no edit history, so its time and author are not verifiable from here; the seat confirms its provenance. This review judges the card as it reads.
  • Open question 1 (in-app assistant door): decide before THIS PR lands, or the PR must say plainly that the question is open. The card says "an AI door"; rule 1 closes that to the two MCP tools and the bounds section lists the delete tools and REST but is silent on the in-app assistant. The amendment's pending-confirmation service is the in-app approval queue (ai_pending_actions / proposePendingAction), so the amended contract cannot be written without naming that door's place.
  • Open question 2 (MCP delete_record / delete_records): not needed for this PR. The contract states the bound truthfully ("until a decision moves them"). Decide before, or as, its own card.
  • Open question 3 (the stateless HTTP door cannot elicit): split. What a call does on a door or client that cannot elicit is contract, the amendment has already answered it (hand to the pending-confirmation service; refuse only where the host has none), and it must be right in THIS PR (F1, F3). HOW the HTTP door comes to elicit (options A / B) is implementation and is needed only before the implementing card. Option C as written ("ship refusing on HTTP") is no longer available under the amendment.
  • Open question 4 (the confirm member on the run_action / resume_run input schemas): needed only before the implementing card. Note for that decision: the same file still says a door "never accepts-and-ignores" the member (AI_ACTION_CONFIRMATION_MEMBER docblock), and confirmationMember stays a required field of the refusal details, telling an agent which member to set on a refusal where setting it does nothing.
  • Dev out-of-scope finding (the shipped texts that teach the member move with the implementing card): agreed, carrier is the implementing card.

④ Design judgment

F1, must-fix. The contract publishes the pre-amendment rule; the card now rules the opposite for a client without elicitation. (ai-service.ts rule 3, the paragraph after rule 6, ACTION_CONFIRMATION_REFUSAL_REASONS; the entry's replacement and acceptanceCriteria; the pin test's remedy regex and "exactly five" case; the changeset's FROM → TO.)
The card's amendment: (1) a client that advertised elicitation is elicited; (2) otherwise the action is handed to the host's pending-confirmation service and the caller is answered with a pending id and a plain message, the person approves or rejects in the app (inbox plus an emailed link), and the action then runs as that person with permissions re-checked; (3) refuse only when the host has no pending-confirmation service. It adds that the approve and reject doors refuse an AI identity and that "the contract names the hand-off seam".
The head says: "A client that did not advertise it is REFUSED before anything is asked or run"; "A door that cannot carry an elicitation to the client refuses the same way"; "Nothing is parked or queued, as before"; reason elicitation_unsupported: "Retrying from that client cannot succeed". The entry and the changeset tell every consumer the same, and the changeset's second FROM → TO line says "no replacement". None of the head names the hand-off seam, the pending answer's shape, the re-check of permissions at approval, or the AI-identity refusal on the approve and reject doors. The pin test then pins the superseded sentence.
This is not a wording gap. It is the difference between gated actions being unavailable to every hosted caller and being approvable from a phone. The dev's own measurement shows why: the only door that can elicit as built is stdio, and OAuth and API-key callers of a hosted deployment arrive on the stateless HTTP door. Fix: rewrite rule 3, the answer cases, the reason set (a pending outcome is not a refusal; the remaining refusal is "no pending-confirmation service"), the entry, the changeset and the pins to the amended rule.

F2, should-fix. Rule 2 and the closing paragraph cannot both hold against the live sequence. (ai-service.ts rule 2: "After every other admission gate has passed, so nobody is asked to confirm a call that is refused anyway"; closing paragraph: "a refused call did not run, and no record was read or written for it".)
In action-dispatch.ts the confirmation gate is deliberately "the last pre-dispatch check ... before the subject load, so a refusal reads and writes nothing" (:454-471). A refusal comes after it and needs the record: the caller-scope subject verdict (refuseDeniedSubjectLoadBeforeDispatch, :511), which follows the subject load at :476. So either the elicitation stays where the gate is, and a person can be asked to confirm a call that is then refused for an unreadable record, or it moves after the subject load, and a declined call has read a record. The contract must pick one and say it. Rule 2 also wants the message to name "the record it runs on": by id that needs no read; by title it does.

F3, should-fix. The HTTP sentence describes a window the same section says does not exist, and it pre-decides open question 3. ("When it binds", last paragraph: the stateless Streamable HTTP door "as built ... holds neither, and by rule 3 it refuses until the implementing change gives it both".)
The facts are right: a fresh server per POST, sessionIdGenerator: undefined, enableJsonResponse: true, GET 405 (mcp-server-runtime.ts :2732-2751); the stdio server is long-lived and does hold both. The conclusion is not. Two paragraphs earlier the doors "still gate on the member" until the implementing change, and that change is what "gives it both", so there is no time at which the HTTP door refuses under rule 3, unless the doors switch before the transport does, which is option C of an undecided question. Today the HTTP door runs a gated action on confirm: true; the sentence reads as if it already refuses. Under F1 the outcome for that door is a hand-off, not a refusal. Fix with F1: state what the door does today, and leave the transport to the implementing card.

F4, should-fix. The semantic entry tells a consumer to do, now, what breaks them in the release that carries it. (18.action-requires-confirmation-elicited.ts, replacement and acceptanceCriteria; the same in the changeset's first FROM → TO line, "send no confirm".)
os migrate meta and the upgrade guide print this entry from the release that ships it. Its body is present tense: "A client that did not advertise ... is refused", "The caller's own confirm: true no longer confirms anything", "A script or agent that sent confirm: true ... stops working by design: it is refused", "Done when no caller relies on its own confirm: true". In that release the live gate is request?.[AI_ACTION_CONFIRMATION_MEMBER] === true (action-execution.ts :3077): confirm: true is the only thing that runs a gated action, no door elicits, and a caller that follows the criteria and drops the member is refused 428 on every gated action. The one hedge is the last sentence of replacement. ai-service.ts says the lead plainly in "When it binds"; the entry does not. Fix: lead the entry with the timing and make the criteria conditional on the door having switched, or land the entry and the BREAKING banner with the implementing card, where they are true.

F5, nit. The trust bound is no longer stated. The member contract was candid ("an unverifiable claim", "did not prove a person"). The amended text says the server "asks the person, through the client" and "An agent cannot answer for the person by sending it". Both are true of the member. But an elicitation answer proves that the client answered, not that a person did: a caller's own client can advertise elicitation and return accept, which rule 6 admits for a service account ("its own client could answer one") and not for an API-key script. One sentence stating that bound keeps the next reader, and the ADR notes, from reading the contract as proof of a human.

F6, nit. Which doors set reason: 'service_account' is ambiguous. reason is set by "every door implementing that contract"; rule 1 scopes the contract to two MCP tools; the service-account refusal also fires on REST /actions and host doors (action-dispatch.ts :460). Say whether those refusals carry the reason.

F7, nit. The AI_ACTION_CONFIRMATION_MEMBER amended paragraph reads as present fact ("is now a person's answer ... the member never counts on such a call"), with the timing only behind a link. AIActionConfirmation's own amended paragraph does this better ("the doors enforce until the change that implements the amendment"); use the same wording.

What holds and needs no change: the description of the member contract as the FROM half; the predicate (the DECLARED flag); the service-account rule and its ADR-0151 D3 rule 3 citation, which match isAiServiceAccountCaller and the gate; resume_run "for the candidate action it would run", which matches resumeAdmissionRefusal; the bounds on the delete tools and REST; "an empty elicitation: {} reads as form mode (MCP 2025-11-25)"; the accept / decline / cancel / timed-out cases for the elicited path, which the amendment keeps.

Pin test (action-confirmation-contract.pin.test.ts), against the contract: it agrees with the head's text sentence by sentence (the capability spelling, the five reasons in order, the typed optional reason with its ts-expect-error leg, no second ledger code, the docblock naming each reason and answer). It therefore pins F1's superseded rule in two places, the "exactly five" tuple and the remedy regex, and moves with the F1 fix. It pins no door behaviour and says so. Test Core had not concluded at the time of this record.

Implemented-by: claude/project-thread-2tb5xl
Reviewed-by: session_01FEkQ5mswnWm181XgYcCUag

VERDICT: FAIL

…ll to the app before any refusal

A client that cannot be elicited is handed to the host's optional
pending-confirmation service (IActionConfirmationService) and answered with a
pending id; only a host without the service refuses. The person is asked after
every admission gate, a confirmation-refused call may have read its subject,
the reason set and pins follow the amended rule, and the semantic entry and
changeset speak of the doors' switch conditionally.

Claude-Session: https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l and removed size/m labels Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c0ebf0c35bbbebb02860e107d4d58f052f67b613
Local-runs: none
Scope: packages/spec/src/contracts/ai-service.ts, packages/spec/src/migrations/entries/semantic/18.action-requires-confirmation-elicited.ts + packages/spec/src/contracts/action-confirmation-contract.pin.test.ts

Delta review, round 2. Round 1 was FAIL on 85c411c8 (record 6891568840); the seat ruled on it in card comment 6891575459, and the card body's ## Amendment governs. This record states, for each round-1 finding, whether it is resolved at this head, then judges the text round 2 introduced.

Inputs read: card #33689 (body with its ## Amendment, and comments 6890539808, 6890670880, 6891502025, 6891575459, 6892233660), PR #33725 (body as rewritten for round 2, file list, the net diff of the six files against the PR's base), and the check-runs on the head. Code read to judge, not reviewed: packages/runtime/src/action-dispatch.ts :395-520, packages/runtime/src/action-execution.ts :2975-3095, packages/runtime/src/domains/mcp.ts :1935-2125 (resume_run), packages/mcp/src/mcp-http-tools.ts :3296-3350 and :3461-3550 (the two tool inputs), packages/spec/src/kernel/execution-context.zod.ts (principalKind, onBehalfOf), packages/spec/src/contracts/audit-checkpoint.ts :18-30, the unchanged IAIService pending-action members in ai-service.ts, packages/spec/src/migrations/entries/README.md.

Check-runs on the head, read 2026-11-15T09:24Z: 71 runs, 0 failed, 0 in progress; every run is success or skipped. Success includes Check Changeset and PR-body guards (both also re-run green after the PR body was rewritten at 09:20Z), Governed Surface Queue Guard, Spec property liveness, Test Core 1/8 to 8/8, Build Core, Type Check · source gates / workspace / consumer gates / debt ledger, Lint · repo & tooling gates, Lint · PM dispatch-gates, Dogfood Regression Gate. The families that judge the pin test, the generated baselines and the registry generation have answered, which they had not in round 1.

① Derived judgments

  • Six new exports on @objectstack/spec/contracts: AI_ACTION_CONFIRMATION_CAPABILITY (const), ACTION_CONFIRMATION_REFUSAL_REASONS (const), ActionConfirmationRefusalReason (type), ActionConfirmationHandOff (interface), ActionConfirmationPending (interface), IActionConfirmationService (interface). Additive. api-surface/contracts.json and export-origins/contracts.json carry exactly these six, right kinds, origin src/contracts/ai-service.ts, sorted. Right.
  • ActionConfirmationRequiredDetails.reason?: one optional member typed to the closed tuple. Additive. Right.
  • The closed reason tuple is now declined, cancelled, timed_out, no_confirmation_service, service_account. Right against the amended card: a hand-off is a success answer and is not in it, and elicitation_unsupported is gone. The round-1 objection to this accept set is answered.
  • ActionConfirmationPending.status is the single literal pending_confirmation. Right (see ③).
  • ActionConfirmationHandOff is a published input shape a host implements against. Its member set is wrong for one of the two doors the contract names: see ④ N1.
  • Accept set of authored metadata: unchanged. No schema, parser or door changes; nothing an author writes is refused or rewritten. Right.
  • No error-ledger change: every refusal rides 428 ACTION_CONFIRMATION_REQUIRED. Right, and it matches the live gate.
  • Semantic entry: file name 18. plus the id, registered by the file alone, id unique, changeset marker adr-0087: registered action-requires-confirmation-elicited. Right, as in round 1.

② Semver level

  • '@objectstack/spec': minor with Metadata-protocol: semantic. Right: the meaning of ai.requiresConfirmation: true changes, nothing is refused at authoring.
  • Clause-②: yes (narrowing). Right: the surface grows by six exports and one member, and the contract takes the caller's confirm: true away. The line stands line-initial in the PR body and the changeset and now lists all six names. Check Changeset: success.
  • The changeset's FROM and TO lines are rewritten to the amended rule; "no replacement" is gone, and the BREAKING banner now reads "when the implementing change ships". Right.

③ Boundary flags

  • Seat ruling 6891575459 "Unchanged" list (Clause-②, Metadata-protocol, minor, entry 18.action-requires-confirmation-elicited.ts, PR 1 spec-only): held. The diff is the same six files, all under packages/spec plus the changeset.
  • Dev deviation, the literal pending_confirmation in place of the chat envelope's pending_approval: accepted. IAIService.proposePendingAction in this same file documents { status: 'pending_approval' } as the envelope the in-app tool handler returns to the model, with a different shape and a door the contract is ruled silent on (Q1). A second answer under the same literal would make the two indistinguishable to a reader of status. The word also agrees with the scenario grader's existing pending_confirmation outcome ("the write waits on a person's confirmation"), which is not published contract.
  • Dev deviation, the reading of "AI identity" (an agent principal with or without onBehalfOf, plus any call through an AI door): accepted in what it includes, which is wider than the service account alone and right. NOT accepted as complete: it leaves one caller the contract itself covers. See ④ N2.
  • Dev deviation, IActionConfirmationService not added to the core service registry: accepted for CoreServiceName, which is outside the file surface. The lookup name is still owed by the contract, and a precedent inside the file surface exists. See ④ N3.
  • Dev deviation, a refusal at approval recorded on the pending item: accepted; it is the only place a person who approved would see it.
  • Dev deviations, two commits without a force-push and main not merged: accepted; the PR reads mergeable and clean.
  • Open question 1 (the in-app assistant door): answered as the seat ruled. The PR body states it OPEN; rule 1 names the two MCP tools only and no new sentence speaks for the in-app door.
  • Open questions 2, 3 and 4: routed to the implementing card by the seat. The contract's bounds section keeps the delete tools on the member, and "When it binds" leaves how the HTTP door comes to elicit to that card. Held.
  • ESCALATED to the seat with N2: whether the approve and reject doors must take a person's signed-in session (the card's "The person signs in") is the card's rule to confirm, since tightening it past "refuse an AI identity" changes what a host builds.

④ Design judgment

Round-1 findings at this head:

  • F1 (must-fix): resolved. Rule 3 is the three steps in order, "A door or a client that cannot elicit is never refused for that alone", and "No step ever falls back to the member". The seam is named as an optional host service (IActionConfirmationService.submit), the pending answer has a shape, the re-check at approval and the AI-identity refusal on the approve and reject doors are stated, no cloud store name is imported, and held is cited as precedent in the words its own docblock uses. The reason set, the entry, the changeset and the pins moved with it. Two defects in the new seam text are N1 and N2 below.
  • F2 (should-fix): resolved. Rule 2 picks the ordering: after every admission gate, the subject load and the caller-scope verdict included, and before dispatch; "may therefore have READ its subject ... it writes nothing". "No record was read" is gone and pinned absent. The elicitation names the record by id, and by title only when the load read one. This is a change from the live order (action-dispatch.ts :454-471 asks before the load) and the text says it as the rule the implementing change moves to.
  • F3 (should-fix): resolved. "When it binds" says what every door does until the implementing change (gates on the member, stdio and Streamable HTTP alike), keeps the measurement, and concludes a hand-off under step 2, with the transport left to the implementing change. No sentence reads as a present refusal on HTTP.
  • F4 (should-fix): resolved. The entry's replacement opens "Read this against your runtime first" and tells a caller to keep sending confirm: true until a changelog says the doors switched; acceptanceCriteria splits "Now" from "Once your runtime confirms by elicitation" and ends "on a runtime that has switched". The changeset carries the same warning line. Nothing binds a caller to drop the member in the release that ships this.
  • F5 (nit): resolved for the elicited half. "An elicited accept proves that the CLIENT answered, not that a person did", pinned. The hand-off half of the same section overclaims: N2.
  • F6 (nit): resolved. Rule 6 and the reason docblock say every door that runs an action carries service_account, which matches the live gate ("under BOTH postures", action-dispatch.ts :460; action-execution.ts "The enforced set").
  • F7 (nit): resolved. The AI_ACTION_CONFIRMATION_MEMBER paragraph now says the doors enforce the amendment from the implementing change and gate on the member until then.

New findings on round-2 text:

N1, should-fix. The hand-off seam cannot carry a resume_run call, which rule 1 puts under the contract. (ai-service.ts :447-453 rule 1; :469-475 step 2; :496-499 "the action runs as the person who approved it"; :589-606 ActionConfirmationHandOff.)
Rule 1 covers "the MCP resume_run tool for the candidate action it would run", and step 2 hands "the call" to the service. ActionConfirmationHandOff is documented as "enough to show the person what they are asked to approve, and to run it again, as them", and holds actionName, objectName, namespace, recordId, params, door. A resume_run call is { runId, values } (mcp-http-tools.ts :3511-3523): it continues one paused run with a screen's field values (domains/mcp.ts :1937-1943 and steps 4 to 6). The shape has no member for the run or the values, and door cannot tell the two tools apart. A host that builds the service from this text and, on approval, "runs the action" from actionName and params starts a second run of the flow and leaves the paused one parked. The stateless HTTP door is the door the contract's own measurement says always hands off, so this is the hosted path for every gated screen flow. Fix: either give the seam the run (an optional run id and values, and one sentence that approval of a resume_run hand-off resumes that run as the approver, who must be the run's owner as today), or state that a resume_run call is not handed off and say what it gets instead. Both are additive now and a second contract change later. The pin's stub then covers whichever is chosen.

N2, should-fix. "AI identity" as defined does not make the contract's own trust claim true for an API-key caller. (ai-service.ts :501-504, :523-531, :634-635.)
The definition refuses an agent principal and any call through an AI door. Rule 1 covers "OAuth token or API key". A person's own API key resolves as that person: principalKind is stamped agent only for an AI service account's key and on the /mcp OAuth branch (execution-context.zod.ts :215 "Absent = 'human'", :305-310). So an agent or script that holds a person's API key calls run_action over HTTP, is handed off (that door cannot elicit), receives the pending id, and can call the approve door with the same key on a door that is not an AI door. Nothing in the stated rule refuses it. The section "What an answer proves" then says a hand-off "is decided by a person signed in to the app ... and is the stronger of the two", which is the same kind of claim F5 was raised against, now on the other path. The card's wording is that the person signs in and approves. Fix one of two ways: state that the approve and reject doors take a person's signed-in session and refuse an API key and a delegated token as well, or keep the definition and state the bound in "What an answer proves" as the elicited half does. The first matches the card and is the seat's to confirm (③). The reading itself, as far as it goes, is right and is kept.

N3, nit. The seam has no name a door and a host can agree on. Step 3 turns on "the host has no pending-confirmation service", and nothing says how a door finds one. The file argues for one exported constant wherever two sides must agree on a spelling, and contracts/audit-checkpoint.ts :30 already exports a service-name constant for an optional service "the open build ships none" of, without touching CoreServiceName. Accepted as a deviation for this PR; carrier is the implementing card, or fold it with N1.

N4, nit. Who may approve is implied, not stated. Step 2 notifies "the person" the caller acts for; the answer case says the action "runs as the person who approved it". Whether anyone else who can see the item may approve it, and so run it under their own permissions, is left to the host. One sentence, or the implementing card. Also left to the host and worth a line there: when a pending item lapses, and how the caller learns the outcome.

What holds and needs no change: the three steps and their order against the card; the elicited answer cases; "the caller's confirm never counts" in all four positions; the service-account rule; the bounds; the timing sections; the member docblocks; the reason set and its docblock.

Pin test (action-confirmation-contract.pin.test.ts), against the contract: it agrees with the head sentence by sentence (the capability, the five reasons in order with elicitation_unsupported, accepted and pending_confirmation as controls, the typed optional reason and the pending_confirmation discriminant each with a ts-expect-error leg, the stub service, no second ledger code, the three steps, both hand-off answers, the AI-identity sentence, the re-check, the trust bound, and the absence of "no record was read"). It pins no door behaviour and says so. It moves with N1 and N2: the stub hand-off and the AI-identity regex. The last assertion's label still reads "the refusal for a client without elicitation"; the refusal is now for a host without the service (label only).

Semantic entry (18.action-requires-confirmation-elicited.ts), against the contract: agrees. It is conditional throughout, names the three steps and no_confirmation_service, and makes no claim about resume_run beyond naming the tool, so N1 and N2 do not reach it.

Grading: no must-fix. N1 and N2 are should-fix on a hits file; their fix moves the head and earns a delta review, so this head is not the one to land. N3 and N4 are nits.

Implemented-by: claude/project-thread-2tb5xl
Reviewed-by: session_01FEkQ5mswnWm181XgYcCUag

VERDICT: FAIL

…es its service slot, and takes a person's signed-in session to decide

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c126efd64cfbedd2a534d2e91a045feba00cc695
Local-runs: none
Scope: packages/spec/src/contracts/ai-service.ts, packages/spec/src/migrations/entries/semantic/18.action-requires-confirmation-elicited.ts + packages/spec/src/contracts/action-confirmation-contract.pin.test.ts

Delta review, round 3. Round 1 was FAIL on 85c411c8 (record 6891568840, seat ruling 6891575459). Round 2 was FAIL on c0ebf0c3 (record 6892320399) with F1 to F7 resolved and N1 to N4 new; the seat ruled round 3 in card comment 6892327817. This record states, for N1 to N4 and each bullet of that ruling, whether it is resolved at this head, re-confirms F1 to F7, then judges the text round 3 introduced.

Inputs read: card #33689 (body with its ## Amendment, and all seven comments: 6890539808, 6890670880, 6891502025, 6891575459, 6892233660, 6892327817, 6892987920), PR #33725 (body as rewritten at 10:29Z, file list, the net diff of the six files against the merge base 6ff3eee7, and the round delta c0ebf0c3..c126efd6), the earlier records on the PR, and the check-runs on the head. Code read to judge, not reviewed: packages/runtime/src/domains/mcp.ts :1937-2122 (resume_run steps 2 to 6 and resumeAdmissionRefusal), packages/mcp/src/mcp-http-tools.ts :3500-3550 (the resume_run input), packages/spec/src/kernel/execution-context.zod.ts :209-320 (principalKind, onBehalfOf, userId under delegation), packages/spec/src/contracts/audit-checkpoint.ts :17-30, packages/spec/src/contracts/automation-service.ts (ScreenSpec, ResumeSignal), and the two consumers of AUDIT_CHECKPOINT_SINK_SERVICE in plugin-audit and cli.

Check-runs on the head, read 2026-11-15T10:32Z: 71 runs, 0 failed, 0 in progress; 58 success, 13 skipped. Success includes Check Changeset and PR-body guards (both re-run green at 10:30Z and 10:31Z after the PR body was rewritten), Governed Surface Queue Guard, Spec property liveness, Test Core 1/8 to 8/8, Build Core, Type Check · source gates / workspace / consumer gates / debt ledger, Lint · repo & tooling gates, Lint · PM dispatch-gates, Dogfood Regression Gate.

① Derived judgments

  • Seven new exports on @objectstack/spec/contracts; round 3 adds one, ACTION_CONFIRMATION_SERVICE (const). api-surface/contracts.json and export-origins/contracts.json each carry exactly the seven, right kinds, origin src/contracts/ai-service.ts, sorted. Additive. Right.
  • ActionConfirmationHandOff.run? (an object of runId, a string, and values, a string-keyed record): one optional member on a published input shape. Additive: a run_action hand-off written against round 2 still type-checks. Right, and it is the member the round-2 judgment found missing.
  • ACTION_CONFIRMATION_SERVICE = 'ai.actionConfirmation': a new string constant. No CoreServiceName change, as the seat accepted. No other use of that spelling exists in packages/spec, packages/core or packages/runtime. Right.
  • The closed reason tuple, ActionConfirmationPending and the optional details.reason: unchanged from round 2. Right.
  • Accept set of authored metadata: unchanged. No schema, parser, door or error-ledger change. Right.
  • Semantic entry: the file is byte-identical to round 2; id, registration and the changeset marker adr-0087: registered action-requires-confirmation-elicited stand. Right.

② Semver level

  • '@objectstack/spec': minor with Metadata-protocol: semantic: right, unchanged.
  • Clause-②: yes (narrowing): right. The line stands line-initial in the PR body and the changeset, and the changeset's list now names all seven exports plus the optional reason. Check Changeset: success on this head, after the body rewrite as well.
  • The changeset's bullets moved with the contract: the service slot, who decides, the run leg, the session-only doors, host-defined lapse and outcome, and the hand-off's trust bound in the elicited half's words. The BREAKING banner and the "nothing changes at any door in this release" line are unchanged. Right.

③ Boundary flags

  • Seat ruling 6892327817, "Same branch, same PR": held. Same six files, two commits added, no force-push; the PR reads mergeable and clean.
  • Seat ruling 6891575459 "Unchanged" list (Clause-②, Metadata-protocol, minor, entry 18, PR 1 spec-only): held.
  • Dev deviation, N2 takes the session-only option AND states the hand-off's bound: this is what the ruling asked ("tighten" and "bring What an answer proves into line"). Accepted.
  • Dev deviation, the spelling 'ai.actionConfirmation', dotted as audit.checkpointSink, outside CoreServiceName: accepted; it follows the cited precedent and the seat's round-2 acceptance.
  • Dev deviation, for a resume_run hand-off params is documented empty and actionName is the candidate action; run is optional in the type and the prose says "present exactly when the call is a resume_run": accepted. resume_run admits one candidate action (domains/mcp.ts :1982-2006), so the name is defined.
  • Dev deviation, the semantic entry unchanged: accepted; the round-2 record found N1 and N2 do not reach it, and N3 and N4 do not either ("Only a host with no such service refuses" agrees with step 3).
  • Open question 1 (the in-app assistant door): still stated OPEN in the PR body; the contract stays silent on it. Held as ruled.
  • Open questions 2, 3 and 4: routed to the implementing card. Held.
  • Nothing escalated this round.

④ Design judgment

Round-2 findings and the round-3 ruling, at this head:

  • N1 (should-fix): resolved. ActionConfirmationHandOff.run (:634) carries runId and values, "present exactly when the call is a resume_run". Rule 4 says approving it "resumes THAT parked run with the values the call carried, as the approver, who must be the run's owner as today; it never starts a new run of the flow", and the service docblock repeats it. Against the code: the tool input is { runId, values } (mcp-http-tools.ts :3510-3517) and the owner check is trigger.userId === callerId (domains/mcp.ts :1938-1943), so "as today" is true, and it agrees with N4 (the approver is the person the call ran as, who passed that check before the hand-off). Two pending items for one run are covered by the existing sentence: the second approval is re-checked, finds the run no longer resumable, runs nothing and is recorded on the item.
  • N2 (should-fix): resolved. Rule 4 now reads "take a person's signed-in session to the app and nothing else", keeps the AI-identity refusal, and adds "also refuse an API key, a delegated or OAuth token and any other service credential, whoever it resolves to: a person's own API key resolves as that person, and is refused there all the same". That closes the round-2 path (a holder of the person's key approving its own hand-off on a non-AI door). "What an answer proves" drops "the stronger of the two" and states the hand-off's bound in the elicited half's form: "proves that a signed-in session to the app answered, not that a person did", with what a session holder can do, and "neither proves a human". The service docblock and the changeset say the same.
  • N3 (nit): resolved. ACTION_CONFIRMATION_SERVICE (:666) with a docblock in the words of AUDIT_CHECKPOINT_SINK_SERVICE ("The service slot a ... is registered under", "The open build ships none; with none registered ..."). Step 2 names it, step 3 reads "only when the host registers no service under" it, and the no_confirmation_service reason doc turns on it.
  • N4 (nit): resolved. Step 2: "The person who approves or rejects is the person the call ran as (its userId, the person an agent acts for), and nobody else: another user who can see the item cannot decide it." Right against execution-context.zod.ts :314-317: under delegation userId stays the human. Lapse and outcome delivery are "the host's to define and outside this contract", in step 2 and in the service docblock.
  • Pin test and label: resolved. The pin moved sentence by sentence: the slot's spelling and step 3 by name; a resume_run hand-off with run, a ts-expect-error leg on a run without values, the stub resolving both kinds; the session-only, AI-identity and key-or-token sentences; who decides; lapse and outcome; the resumed run; both trust bounds; "is the stronger of the two" pinned absent. The last assertion's label now reads "the refusal for a host without the pending-confirmation service no longer names the remedy". Each regex was read against the folded docblock text and matches; Test Core is green on the head.

F1 to F7, re-confirmed: the round delta touches rule 3 steps 2 and 3, the handed-off cases of rule 4, the second paragraph of "What an answer proves", the no_confirmation_service reason line, the run member, the new constant and the service docblock, and nothing else in ai-service.ts. The three steps and their order (F1), "after EVERY admission gate ... may therefore have READ its subject ... writes nothing" (F2), "When it binds" (F3), the conditional entry and changeset (F4), the elicited trust bound (F5), service_account on every door (F6) and the member paragraph's tense (F7) stand word for word. No regression.

New text of round 3, judged against the card and the code:

  • The session-only rule stays within the card's Amendment ("The person signs in, on a phone browser or desktop, and approves or rejects") and is what the seat ruled. It is internally consistent with rule 1 (an OAuth or API-key caller is covered on the calling side and refused on the deciding side) and with the bounds (the approved run goes through the admitted sequence as a person on a non-AI door, so it is not asked again).
  • submit's parameter doc ("the person the caller acts for", "as whose call the item is recorded") agrees with step 2's "the person the call ran as".

New findings:

R1, nit. The run leg does not say which screen its values answer. (ai-service.ts :628-639; rule 4 :506-510.) A resume_run call names a run, not a pause point, and ResumeSignal takes no expected node, so the live door has the same blind spot within one call. A hand-off stretches it from one call to however long the item stays pending: if the run moves from screen A to screen B before the approval (the person submits A in the app, or approves an earlier duplicate item), the re-check finds the run paused on a screen and owned by the approver, and A's values are submitted to B. ScreenSpec.nodeId exists for this ("correlates the resume back to this pause point"). No sentence of the contract is false, a host can record the screen itself at submit, and a member naming it is additive later, so it does not hold this head. Carrier: the implementing card (decide whether the door or the service pins the screen, and say so).

R2, nit. run.values is required; the tool's values is optional. (mcp-http-tools.ts :3513-3519 "Omit only when every field on the screen is optional"; domains/mcp.ts :2078-2079.) A door handing off a call that sent none passes {}. The member doc could say so in four words. Prose face, or the implementing card.

What holds and needs no change: everything listed as holding in record 6892320399, plus the four round-3 fixes above.

Pin test, against the contract: agrees with the head sentence by sentence, pins no door behaviour and says so.

Semantic entry, against the contract: unchanged and still in agreement; it is conditional throughout and makes no claim round 3 touched.

Grading: no must-fix, no should-fix. R1 and R2 are nits with a named carrier; nits alone end the round.

Implemented-by: claude/project-thread-2tb5xl
Reviewed-by: session_01FEkQ5mswnWm181XgYcCUag

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

ACCEPT · PR #33725 (#33689, PR 1 of 2) · head c126efd64cfbedd2a534d2e91a045feba00cc695 · 2026-11-15T10:34Z

席位核对

  • 形态: 6 files from the PR's file list, +600 −0, base ee627c67.
    • packages/spec/src/contracts/ai-service.ts: the three-step confirmation contract (elicit, else hand off to the optional host seam ACTION_CONFIRMATION_SERVICE, else refuse with no_confirmation_service), with ActionConfirmationHandOff (with the optional run leg) and ActionConfirmationPending, the reason set, and the approve and reject door rule.
    • The pin action-confirmation-contract.pin.test.ts (13 cases).
    • The unreleased semantic entry 18.action-requires-confirmation-elicited.ts.
    • Regenerated api-surface/contracts.json and export-origins/contracts.json.
    • One changeset (@objectstack/spec minor, BREAKING banner, conditional on the doors switching).
    • No governed path, under 3000 lines: Tier S, seat lands.
  • 前提实测: spec-only, as the order's PR 1 scope requires. No runtime or MCP behaviour change; the doors still gate on the member until the implementing card switches them, and the entry and changeset say so. Dev report 6892987920: spec suite 26893 green, typecheck 0, check:generated 0, 87/88 derived gates in the loop plus type-check-debt green on a locked re-run, dogfood 467 files / 3958 tests green, two ablations red then restored.
  • 门禁 check-runs: latest attempt on this head: 71 runs, 58 success, 13 skipped, 0 failed. mergeable_state clean.
  • 契约复审: CONTRACT_REVIEW_TIER PASS, record 6893043349 on this head (no must-fix, no should-fix, two nits). Rounds: FAIL 6891568840 (F1–F7, seat ruling 6891575459), FAIL 6892320399 (N1–N4, seat ruling 6892327817), then PASS. Isolated reviewer; Ruling-ref 「你有 fable ,车道契约复审可以自己做」 2026-11-07.
  • 接受的偏差:
    • The pending_confirmation literal (distinct from the in-app pending_approval envelope) and keeping the seam out of CoreServiceName: accepted in review 6892320399.
    • R1 (nit): the run leg does not name the screen its values answer, so a run that moves on while the item is pending could take the earlier screen's values. The live resume_run has the same gap, and the fix is additive (ScreenSpec.nodeId).
    • R2 (nit): run.values is required while the tool's values is optional, so a door hands off {}.
    • Declarations as reviewed: Clause-②: yes (narrowing) / Metadata-protocol: semantic.
  • 范围外去向:
  • 落地条款: ready + auto-merge now under the maintainer's standing order 「按照 pm-dispatch 规则复核过的都授权」 (2026-10-25T11:35Z) and 「你应该使用 pm-dispatch 技能审核和落地pr」 (2026-11-07T16:59Z). P1 under 「后续只处理 p1 p2」 (2026-11-15T05:05Z). K = 11 commits on main past this head's affected-set base a557fa38 (< 15).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 10:35
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 1e65a38 Nov 15, 2026
72 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-2tb5xl branch November 15, 2026 11:03
This was referenced Nov 15, 2026
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…pgrading row (objectstack-ai#33823)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XMKjdYGd1ASsfeFTXYf2bZ4)_

Fixes objectstack-ai#33798

Clause-②: no
Metadata-protocol: none

## 维护者速读

- **改了什么**:新增 18.5.0 发布说明页 `content/docs/releases/v18/18-5.mdx`(沿用 18-4
的骨架,五段按「读者要做什么」分组),在 `meta.json` 中排在 18-4 之前;按维护者追加的要求把 `v18/index.mdx`
重写为 v18 产品线总览(不再写成 18.0.0 GA 页,`next` 改述为 `0.0.0-next-时间戳` 快照,数据库仪式只留链接到
18-0),并加上 18.5.0 条目;升级页「Per-release specifics」表加 v18.5.0
行;`handwritten-docs.json` 由生成器补一行。
- **为什么改**:维护者要求在 18.5.0 发版前写好发布说明(「18.5的版本发布说明可以开始安排写了」),并指出 v18
总说明写得不对(「我记得v18总的版本说明写的也不对」)。
- **风险与回滚**:只改文档,不发布任何包;回滚即 revert 本 PR。页面全部数字取自 Version Packages PR
objectstack-ai#33097 头 `25559f43` 的 CHANGELOG 与 `npm view`,分类用发布脚本自己的
`classifyReleaseBullet`。页面是公开的,不写任何客户、下游项目或席位。
- **先看**:① `18-5.mdx` 的「需手动处理」节(45 条,每条写明变化和处理办法);② 同页「自动迁移」表(22 条全是
semantic 条目,`os migrate meta` 只列出、不改写,页面如实说明);③ 重写后的 `v18/index.mdx`。
- **两分钟验证**:`git fetch origin changeset-release/main && git show
25559f4 --diff-filter=D --name-only --format= | grep -c '^.changeset/'`
应输出 `283`;再加上 `main` 在 `b76df9a6` 之后新落地的 1 个
changeset(`1e65a389`,objectstack-ai#33725),共 `284`,与页面「Changesets consumed」一致。
- **需要你做的**:无,席位落地。版本 PR 合并前若再有 changeset 落地,由席位派发刷新。

## What changes

- **`content/docs/releases/v18/18-5.mdx`** (new): the 18.5.0 page in
18-4.mdx's skeleton. A compile callout; a release-status blockquote that
says 18.5.0 is not yet published; Highlights; Release facts, as measured
(before the cut); What's new by kind: 需手动处理 (45, each line saying what
now answers differently and what to do, with its commit and pull
request), 自动迁移 (21, a table with what to do and the ADR-0087 id), 新增能力
(70, by area), 语义变化 (1), 其他修复 (146, counted by area, with the fixes that
bear on an upgrade grouped by capability); Console (Studio); an Upgrade
checklist for an 18.4.0 app, compiled and not walked.
- **`content/docs/releases/v18/index.mdx`**: rewritten as the v18 line
overview, as the maintainer asked on the card (triage record
6893347748). The status blockquote now says 18.4.0 is the newest release
and 18.5.0 is next; a table lists every 18.x release with its npm date
and page; "Coming from 17.x" links the organization-ownership ceremony
down to the 18.0.0 page and the upgrading guide instead of repeating it;
"How a breaking stage lands on this line" (anchor kept: three pages link
it) describes the level rule, protocol 18 and the two npm channels as
they are now (`next` is a `0.0.0-next-YYYYMMDDHHMMSS` snapshot of
`main`, ADR-0125 amendments of 2026-11-05/06); the per-release list
gains the 18.5.0 entry.
- **`content/docs/releases/v18/meta.json`**: `18-5` ahead of `18-4`.
- **`content/docs/upgrading.mdx`**: the v18.5.0 row of "Per-release
specifics", and nothing else.
- **`scripts/docs-audit/handwritten-docs.json`**: +1 line, written by
`node scripts/docs-audit/check-audit-scope.mjs --write` (the generator
objectstack-ai#33137 used).

No CHANGELOG is edited, no other release page is touched, and no tag,
publish, `version` script or release-workflow act was taken.

## Why

The maintainer asked for the 18.5.0 notes ahead of the cut, and on the
card added that the v18 overview page was wrong: it still read as the
18.0.0 GA page and described pre mode and `18.0.0-next.N` as current.

## How the page was compiled

- Source: Version Packages PR objectstack-ai#33097 at head `25559f43` (one commit; its
parent `b76df9a6` is `main` at the start of this work, so the PR covers
every changeset on `main`). The 122 CHANGELOG sections it writes were
read with `getChangelogEntry` and split with `splitChangelogEntry`;
`Updated dependencies` bullets and two dependency-list fragments
dropped; deduplicated on full text: 283 entries, equal to the 283
changesets the commit deletes. Refreshed at head `1e5ae1d459` (addendum
6893969023): `main` at `1e65a389` carries one more changeset,
`.changeset/33689-ai-action-confirmation-elicited.md` (objectstack-ai#33725), read
from its file the same way, so the page holds 284.
- Each entry placed with `classifyReleaseBullet`: 45 / 22 / 70 / 1 /
146. Levels: 39 `minor`, 245 `patch`. Breaking: 67 (24 `minor`, 43
`patch`); 62 commits since 18.4.0 carry `!`.
- Every breaking line was written from its changeset's BREAKING / "What
to do" / "The fix" paragraph; the 22 registered entries (23 registry
ids) were checked to exist as
`packages/spec/src/migrations/entries/semantic/18.*.ts` files, all
semantic entries (no conversion).
- The new-capability lines are the changesets' summaries with the
conventional prefix removed; two are shortened or put in plain words
(`534e115`, `ba32e79`).
- Areas are placed mechanically from summary scope and packages, as the
callout says.

The breaking walk (all 61 `!` commits of
`@objectstack/cli@18.4.0..b76df9a`, each mapped to its changeset and
section, plus the five breaking changesets from commits without `!`, and
the card's candidate list kept/dropped with reasons) is in the project
file `pm-orders/devx/33798-breaking-ledger.md`. Summary: all 61 kept;
candidates dropped: objectstack-ai#33268 (only the ADR text landed, no implementation
on `main`), the hook refusal catalogue (objectstack-ai#33214 → `53f5a4c` is additive,
listed under 新增能力), dataset metrics for the ask agent and model-picker
multipliers (not landed), the SQL-first rule (an AGENTS.md rule, no
changeset).

## Verification

Local gates derived by `node scripts/pm/dispatch-gates.mjs --commands
--repo objectstack-ai/objectstack` against this diff at `a8ae5b50af`:
**61 derived, 61 run, 0 NOT-MEASURED, 0 UNRUN** (`--ran` reconciliation
exit 0). `--tier`: no path-derived mandate; 906 changed lines, under the
3,000 threshold.

<details><summary>Gate record</summary>

- Prerequisites: `pnpm --filter "@objectstack/lint..." build` and `pnpm
--filter "@objectstack/client-react..." build`, both under
`os-verify-lock.sh`, VERDICT exit 0.
- First pass: 60 of 61 exit 0; `check:skill-examples` exit 3
(PREREQUISITE NOT MET: `client-react` had no `.d.ts`). After the client
SDK closure build it exits 0 ("346 prose examples type-check across 3
surface(s)").
- The page-reading gates, all exit 0: `check:release-notes`,
`check:release-page-status`, `check-release-section-coverage.mjs` (and
`--strict`), `check:doc-anchors`, `check:doc-authoring`,
`check:doc-frontmatter`, `check:docs-audit-scope`,
`check-affected-docs.mjs`, `check:role-word`, `check:docs-single-h1`,
`check-section-landing-index.mjs`, `check:corpus-claim-drift`,
`check:closed-ceremony-text`, `check:nul-bytes`, `check-adr-links.mjs`,
`check-issue-citations.mjs` / `check:issue-citations`,
`check-docs-section-name.mjs`, `check-doc-route-spelling.mjs
--advisory`, and the seven `@objectstack/spec` readers.
- The full record is in the project file
`pm-orders/devx/33798-gates-ran.txt`.

</details>

<details><summary>Page render check</summary>

The three touched pages and 18-4.mdx (positive control) compile with
`@mdx-js/mdx` 3.1.1 + `remark-gfm` 4.0.1 (the docs site's MDX compiler):
`18-5.mdx` 129,315 bytes of JS, `v18/index.mdx` 20,189, `upgrading.mdx`
76,568, `18-4.mdx` 324,138. Negative control: a one-line file with an
unclosed brace fails the same script. The full `next build` of the docs
site was not run.

</details>

<details><summary>Facts measured, and where</summary>

- `git show 25559f4 --diff-filter=D --name-only` → 283 changesets
deleted; `ls .changeset` at `b76df9a6` → 283; at `1e65a389` → 284.
- Published set at `25559f43`: 110 non-private packages, all `18.5.0`
(75 `@objectstack/*`, `create-objectstack`, 34 `@object-ui/*`), the same
name set as at `@objectstack/cli@18.4.0`; `@object-ui/app-shell`
versions `18.4.1`, private.
- `npm view @objectstack/spec dist-tags` → `latest` `18.4.0`, `next`
`0.0.0-next-20261115100430`; npm `time` for 18.0.0–18.4.0 gives the
index table's dates; no `18.x.y-` prerelease after 18.0.0 on npm.
- `git ls-remote --tags origin 'refs/tags/@objectstack/spec@18.5*'` →
none.
- 334 first-parent commits `@objectstack/cli@18.4.0..b76df9a`; 61 with
a `!` subject; new CLI command file
`packages/cli/src/commands/migrate/audit-side-copies.ts`.
- `PROTOCOL_VERSION` = `'18.0.0'`
(`packages/spec/src/kernel/protocol-version.ts`).

</details>

## Acceptance notes

- **The 自动迁移 heading overstates this release.** `classifyReleaseBullet`
puts every breaking entry with a `registered` ADR-0087 marker under 自动迁移
("migrated for you"), but all 22 of 18.5.0's registered entries are
semantic entries, which `os migrate meta` lists under "manual change(s)
require your judgment" and does not convert. The page keeps the heading
so it agrees with the GitHub Release body, and says plainly that nothing
is rewritten. Noted, not filed: it is the release script's section name,
a reading the seat may want to raise with the maintainer.
- **Two widenings open with their declaration line**, so the classifier
reads no declaration and files them under 其他修复 (`3eac63a`, `5604aeb`);
the page names them. No narrowing opens that way in this release.
- **The page is written before the cut.** Its status blockquote, the
index blockquote and the index table say 18.5.0 is not yet published.
After the cut the seat's refresh owes: the two blockquotes, the index
table row's date, the release facts (version commit, tags, npm), any
changeset that landed after `b76df9a6`, and
`content/docs/releases/index.mdx`'s v18 entry status `(current series:
…)`, which `check-release-section-coverage --strict` will ask for once
`packages/spec/CHANGELOG.md` carries `## 18.5.0`. That root index entry
still describes v18 by its 18.0.0 prerelease story too; it is outside
this card's file surface.
- **The order's "Fixes customers waited on" section is replaced** by
notable fixes grouped by capability, per the maintainer's later word on
the card (triage record 6893327884): the page names no customer,
downstream project or seat.
- **Read heads.** `main` at `b76df9a6` and Version PR objectstack-ai#33097 at
`25559f43`. While this ran, `main` moved one commit: `1e65a389` (objectstack-ai#33725,
`feat(spec)!:`, a declared-gated action on an AI door confirmed by a
person through MCP elicitation, with a new protocol-18 semantic entry
`action-requires-confirmation-elicited`). It is not on this page; it
shares no file with this diff, and the refresh before the cut picks it
up with the Version PR's next head.
- No changeset: the diff publishes nothing from any released package
(docs content plus a script data file), so `skip-changeset` is declared.

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (no code; CI runs lint)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (publishes
nothing)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (not touched)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
(`content/docs/releases/v18/` is this card's subject: a docs-only
release-notes PR, dispatched per card by the seat)
- [x] 8. Title, body and comments are in English.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5oCDtzpDYo1LPg2KvR

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5oCDtzpDYo1LPg2KvR)_

<!-- signed: domain:devx#4 · os-project-manager ·
session_01FEkQ5ooRyyS95kdyC2dPEX -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
… action on an AI door (objectstack-ai#33810)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X3KyFEoEw9hQnSWC2gDfEpS)_

domain:spec#1 · os-project-manager · session_01FEkQ5kZuoX9F5S7p84Dwue

Fixes objectstack-ai#33689 (PR 2 of 2: the ADR-0011 and ADR-0151 amendment notes. PR
1, the contract, merged as objectstack-ai#33725, `1e65a389`.)

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:只加两段 ADR 修订说明,不改任何代码、接口或决定。ADR-0011 记录:声明了
`ai.requiresConfirmation: true` 的动作,经 MCP `run_action` / `resume_run`
调用时,由人来确认(客户端支持征询就在客户端问;不支持就交给宿主的待确认服务,由调用所代表的那个人登录应用后同意或拒绝;宿主没有该服务才拒绝),调用方自己传的
`confirm: true` 不再算数。ADR-0151 记录:AI 服务账号的规则 3 不变,照旧拒绝,不征询也不交出;待确认服务不是规则
3 等待的那扇「转交给人」的门(那仍是 O6)。
- 为什么改:objectstack-ai#33725 已把这条契约合进 `@objectstack/spec`,卡片要求同步修订这两份 ADR。
- 风险与回滚:纯文档。两段说明都写明「实现变更发布前,门禁仍读 `confirm: true`」。回滚即还原本 PR。
- 先看:`docs/adr/0011-actions-as-ai-tools.md` 的 Confirmation
表格下方的修订说明;`docs/adr/0151-…md` D3 末尾的修订说明;两份文件头部各加一行 Amended。
- 需要你做的:这是 Tier H(`docs/adr/**`),需要你审批合并。应用内助手这扇门按你的裁定「B 同一规则,两套流程暂留」写入
ADR-0011 说明:同一规则适用于所有 AI 入口,应用内确认卡和 `IAIService` 待批成员保留;契约改动走
objectstack-ai#33808,cloud 路由对齐走 objectstack-ai#33809,两套接缝合并是 objectstack-ai#33806。

## What changes

Docs only: two dated amendment notes and one header line in each ADR. No
decision of either ADR is reversed, and no status line changes.

- **`docs/adr/0011-actions-as-ai-tools.md`**: a header `**Amended**`
line, and an amendment note under the "Confirmation (HITL approval
queue)" heading. It cites the merged contract by symbol
(`packages/spec/src/contracts/ai-service.ts#AI_ACTION_CONFIRMATION_CAPABILITY`,
`#IActionConfirmationService`, `#ACTION_CONFIRMATION_SERVICE`). The note
covers:
  - **Why:** measured 2 of 6 self-confirmed runs on 18.4.0.
- **Which calls:** the declared flag, through MCP `run_action`, or
`resume_run` for its candidate action, by any caller acting for a
person.
- **The three steps:** elicit; otherwise hand off, where only the person
the call ran as decides, an approval runs as them with every gate
re-checked, a `resume_run` resumes its parked run, and the approve and
reject doors take a signed-in session only; refuse with
`no_confirmation_service` only when no service is registered.
  - **`confirm`:** the caller's `confirm` never counts.
  - **What an answer proves:** neither answer proves a human.
- **Bounds:** the MCP delete tools keep the member, and REST `/actions`
stays outside the gate for a person.
- **The in-app assistant door, as ruled (Ruling-ref: Leehom
2026-11-15T11:10:57Z, 「B 同一规则,两套流程暂留」, record 6893484458):** the core
rules bind every AI door, the in-app assistant included. Neither the
caller's nor the model's own confirmation counts, only the person the
call ran as decides, the deciding doors take a signed-in session only,
and the approved action runs as that person, re-checked. The in-app door
keeps its own channel (the pending-approval card and inbox), and
`IAIService`'s pending members stay. The note points to the follow-ups:
the in-app door's three changes (who decides, which credential, as whom
it runs) land through objectstack-ai#33808, the cloud route alignment is objectstack-ai#33809, and
the seam merge is objectstack-ai#33806.
- **When it binds:** until the implementing change ships,
`#actionConfirmationRefusal` gates on `confirm: true`, and the
addendum's sentence stays the description of running code.
- **What stays unchanged:** the opt-in, the H/C/E buckets with "never
relaxed" (what changes is who confirms), and ADR-0151 D3 rule 3.
- **`docs/adr/0151-…-of-its-own.md`**: a header `**Amended**` line, and
an amendment note after D3. It covers:
- **Rule 3 is unchanged:** an account is refused whatever it sends,
neither elicited nor handed off.
- **The new reason:** from the implementing change the refusal carries
`details.reason: 'service_account'` on every door that runs an action.
- **Not the hold door:** the pending-confirmation service is not the
hold door rule 3 waits on. It hands a person's call back to that person,
and its doors refuse an agent principal. O6 stays a separate decision.
- **OAuth agents:** an OAuth agent acting for a person is not an
account.
- **Until the switch:** the gate is `#actionConfirmationRefusal` /
`#isAiServiceAccountCaller` as before.

## Why

Card objectstack-ai#33689's "Change" amends ADR-0011 and ADR-0151 alongside the
contract. Under its order the notes ship as their own Tier H PR after
the contract (PR 1) merged.

## Verification

Head `ab50848a`, from `origin/main` at `1e65a389`.

<details><summary>Derived gates: 21 derived, 21 exit 0, 0
NOT-MEASURED</summary>

```text
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack   (21 commands; each run with timeout 900, exit captured before any pipe)
21 of 21 :: exit 0   (check:adr-symbol-anchors: 3621 anchors across 156 records resolve; check-adr-links: 1131 destinations resolve; check:adr-anchors, check:adr-index, check:doc-authoring, check:pm-governed-merges included)
dispatch-gates --ran :: exit 0 — 21 derived, 21 run, 0 NOT-MEASURED
Changed lines: 70 (+70 / -0), under the human-merge threshold
```

</details>

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind. (no names
added)
- [x] 3. No formatter ran; `pnpm lint` passes. (docs only; the derived
lint-family gates ran green)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (publishes
nothing; no changeset)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (not touched)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English. (the maintainer
quick-read section is in Chinese by the project's convention)

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue)_

<!-- signed: domain:spec#1 · os-project-manager ·
session_01FEkQ5mswnWm181XgYcCUag -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…LOG line, and an 18-5 page erratum (objectstack-ai#34042)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9EaC9kmPYBDw3v97tMkTaQu)_

Fixes objectstack-ai#33903

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:18.5.0 已发布但发布说明漏记的 11 条变更,补进 14 个包的 CHANGELOG 18.5.0 节(私有包
app-shell 补在它这次发的 18.4.1 节),删掉这 11 个 changeset 文件,并在 18-5 发布页加一节勘误。
- 为什么改:18.5.0 的版本提交 `b914e724` 没有消化这 11 个 changeset,代码已随 18.5.0 发出,但
CHANGELOG 和发布页都没写;其中 objectstack-ai#33637 是破坏性变化(`os audit verify` 遇到被两个 checkpoint
同时列出的行,现在报 `listed_twice` 并失败)。按裁决 6896138728「事后补就可以」只做补记。
- 风险与回滚:纯文字,不发布代码;删掉的 changeset 若留着,下一个版本会把它们当新变化再发一遍。回滚即 revert 本 PR。
- 先看:`content/docs/releases/v18/18-5.mdx`
的勘误节;`packages/plugins/plugin-audit/CHANGELOG.md`(破坏性那条);`packages/spec/CHANGELOG.md`(两条,其中一条进
Minor Changes)。
- 两分钟验证:`git grep -c -E '^-
(ac0b9a5|2e1e3b9|fbe349f|2673f59|0feb5ff|1e65a38|e302d32|f8f35db|e0775f7|4b5024d|81371e1):
' -- '*CHANGELOG.md'` 预期 14 个文件共 18 行;`ls .changeset/*.md | wc -l` 比
main 少 11。
- 需要你做的:无,席位落地(Check Changeset 会按规则保持红色,见下方 DELIBERATE CORRECTION)。

## What changes

`packages/*/CHANGELOG.md` and `content/docs/releases/` are
release-owned. AGENTS.md (Documentation Guardrails) routes a factual
error in a released entry, or on a releases page, to a dedicated
docs-only PR, and the maintainer's ruling on this card (comment
6896138728, verbatim: 「没必要,事后补就可以:让发布流程在版本提交之前还有没消化的 changeset
时,拒绝发正式版。」) keeps only the amendment half. This is that PR. Precedent:
objectstack-ai#33925.

The 18.5.0 version commit `b914e724` (objectstack-ai#33097) consumed 283 of the 294
changesets on its parent. The other 11 landed on `main` after the
Version Packages branch point `b76df9a6` and before the merge; each
one's adding commit is an ancestor of `b914e724`, and its file is
byte-identical on `b914e724` and on this branch's base `bc6b7ffd`.

1. **CHANGELOG entries.** Each changeset's entry is added to the release
section `b914e724` wrote for each package it names, in the stock
generator's form (`- SHA7: ` + the summary, continuation lines indented
two spaces), under the commit that added the changeset, in the `###
Minor Changes` or `### Patch Changes` list its bump names, after the
last changeset entry and before the `Updated dependencies` lines. No
dependents line is invented.
2. **The 11 changeset files are deleted**, so the next version commit
does not present them as new.
3. **The 18-5 page** gains `## Erratum — eleven changes 18.5.0 shipped
with no CHANGELOG line [#erratum]`: objectstack-ai#33637's FROM → TO and what an
operator does, one line for each of the other nine, and a pointer from
the release-facts row that said 284 were consumed. objectstack-ai#33725 is already on
the page (自动迁移, "Announced, not yet at any door"); it is checked, not
repeated.

| Changeset | Package | Added to | Commit | 18-5 page |
| :--- | :--- | :--- | :--- | :--- |
| `31908-p4b2-bounded-checkpoints` | `@objectstack/plugin-audit` | `##
18.5.0` › Patch Changes | `ac0b9a5` (objectstack-ai#33637) | Erratum, breaking: FROM →
TO, what to do, rollback note |
| `33186-managed-add-people-actions` | `@objectstack/platform-objects` |
`## 18.5.0` › Patch Changes | `2e1e3b9` (objectstack-ai#33755) | Erratum, one line |
| `33609-related-list-parent-lookup-page` | `@object-ui/console`,
`@object-ui/plugin-detail` | `## 18.5.0` › Patch Changes | `fbe349f`
(objectstack-ai#33780) | Erratum, one line |
| `33649-messaging-preferences-emitting-organization` |
`@objectstack/service-messaging` | `## 18.5.0` › Patch Changes |
`2673f59` (objectstack-ai#33779) | Erratum, one line |
| `33660-ai-model-picker-cost-multiplier` | `@objectstack/spec`,
`@object-ui/plugin-chatbot`, `@object-ui/i18n`, `@object-ui/console`;
`@object-ui/app-shell` | `## 18.5.0` › Patch Changes; app-shell `##
18.4.1` › Patch Changes | `0feb5ff` (objectstack-ai#33746) | Erratum, one line |
| `33689-ai-action-confirmation-elicited` | `@objectstack/spec` | `##
18.5.0` › Minor Changes | `1e65a38` (objectstack-ai#33725) | Already covered (自动迁移
row), not repeated |
| `33724-install-relaxes-declared-not-null` | `@objectstack/driver-sql`,
`@objectstack/cloud-connection`, `@objectstack/driver-turso` | `##
18.5.0` › Patch Changes | `e302d32` (objectstack-ai#33769) | Erratum, one line |
| `33739-scenario-runner-effort` | `@objectstack/scenarios` | `##
18.5.0` › Patch Changes | `f8f35db` (objectstack-ai#33767) | Erratum, one line |
| `33753-scenario-dates-follow-run-date` | `@objectstack/scenarios` |
`## 18.5.0` › Patch Changes | `e0775f7` (objectstack-ai#33776) | Erratum, one line |
| `33754-scenario-grader-written-date` | `@objectstack/scenarios` | `##
18.5.0` › Patch Changes | `4b5024d` (objectstack-ai#33797) | Erratum, one line |
| `a2-skills-docs-32678-32825` | `@objectstack/skills` | `## 18.5.0` ›
Patch Changes | `81371e1` (objectstack-ai#33355) | Erratum, one line |

**DELIBERATE CORRECTION.** This PR adds no changeset and deletes eleven
(`git diff --name-status` over `.changeset/*.md`: 11 × `D`, 0 × `A`).
Each deleted note is already released: its text now stands, unchanged,
as the entry named in the table above, in the 18.5.0 tarballs' release
section. Under ruling D on objectstack-ai#18375 (the Check Changeset step's route 0)
and `.claude/agents/os-dev.md`, `skip-changeset` is not applied to a PR
that deletes an existing changeset, so `Check Changeset` stays red by
design; it is not a required context. The diff publishes nothing until
the next release republishes the tarballs.

## Tests

No source changes, so no test suite moves. The CHANGELOG lines are
generated, not hand-typed: the summary parse and the stock release-line
format were re-implemented in a script and first checked against
`b914e724^`: for every changeset `b914e724` consumed among the first 60
(103 package entries), the generated text is found verbatim in that
package's CHANGELOG; the only miss is `31908-p4b2-bounded-checkpoints`,
the unconsumed one this PR adds. The script asserts, per changeset, one
adding commit, an identical blob at the tag and at the base, the release
section being the top section of the version `b914e724` gave the
package, and the entry not already present. The diff of every CHANGELOG
is insertions only.

## Acceptance notes

1. `@object-ui/app-shell` is private and `b914e724` versioned it
`18.4.1`, not `18.5.0` (the 18-5 page's release facts say so too), so
its entry goes into its `## 18.4.1` section.
2. The 18-5 page still opens with "Release status: 18.4.0 is released,
and 18.5.0 is not yet." and its release facts say no 18.5.0 tag or npm
version exists. Both are stale since the publish. Outside this card's
file surface; left for the seat (noted, not filed).
3. The changeset of objectstack-ai#33649 has no summary line, so its entry opens `-
2673f59: Clause-②: no`, as the stock generator would have written it.

## Verification

<details><summary>Premise readings, at base bc6b7ff and the 18.5.0 spec
tag = b914e72</summary>

- `git ls-tree --name-only b914e72 .changeset/` minus `README.md` and
`config.json`: 11 files, the card's list. `b914e724^` holds 294;
`b914e724` deletes 283.
- For each of the 11: `git rev-parse b914e72:PATH` equals `git
rev-parse bc6b7ff:PATH`; the adding commit (`git log --diff-filter=A`,
one per file) is an ancestor of `b914e724` (`merge-base --is-ancestor`
exit 0, after deepening the shallow clone by 800 commits). The adding
commits all fall between `b76df9a6` (the Version Packages branch point
the 18-5 page names) and `b914e724`.
- Before this PR: `listed_twice`, `ac0b9a5`, `objectstack-ai#33637` each 0 hits on
`content/docs/releases/v18/18-5.mdx`.
- The erratum's wording is read from the changeset text and
`packages/plugins/plugin-audit/src/audit-seal/verifier.ts`
(`listed_twice` fault: `checkpoint N: lists row(s) … that another
checkpoint already lists`), `content/docs/deployment/cli.mdx` § `os
audit verify` (exit 1 when two checkpoints list the same row), and the
18.5.0 entry `f4cafd5` (a late checkpoint leaves out every row a
checkpoint stored in between already lists).
</details>

<details><summary>Gates</summary>

Head `f5754612`. Derived with `node scripts/pm/dispatch-gates.mjs
--commands --repo objectstack-ai/objectstack` (no paths): 99 commands,
each run with stdin from `/dev/null` and its exit captured before any
pipe; `--ran` reconciliation: 99 derived, 99 run, 0 NOT-MEASURED, 0
UNRUN.

- 98 exit 0. Eleven of them first exited 3 (PREREQUISITE NOT MET, no
`dist/` in a fresh worktree) and were re-run exit 0 after the builds
they name, each under `scripts/pm/os-verify-lock.sh` with VERDICT
command-exit 0: the `@objectstack/lint...` closure plus the `check:i18n`
extract closure (64/64 tasks), `@objectstack/client` and `client-react`
(43/43), then `pnpm build` (119/119). Re-run:
`check:doc-formula-expressions`, `check:doc-security-posture`, spec
`check:docs`, spec `check:skill-examples`,
`check:docs-transcript-drift`, `check:i18n`, `check:dts-closure`,
`check:dual-build-cjs-loads`, `check:lean-entry-closure`,
`check:sourcemap-no-sources-content`; and `pnpm --dir ui exec vitest run
scripts/`, which first failed 22 files only on the missing
`@objectstack/spec` `dist/` and then passed (171 files passed, 2
skipped; 5,065 tests passed).
- 1 exit 1, by design: `node scripts/check-empty-changeset.mjs --base
origin/main` refuses the eleven deletions as edits of existing notes
(one `::error` per file). This is the DELIBERATE CORRECTION class
declared above; it stays red, and so does `Check Changeset`.
- Release-text gates all exit 0 on the amended tree:
`check-release-section-coverage` (plain and `--strict`),
`check:release-notes`, `check:release-page-status`,
`check-affected-docs`, `check:doc-authoring`, `check:doc-anchors`,
`check:nul-bytes`, `check-adr-0087-registration --base origin/main`.

`origin/main` moved to `159757ab` while the gates ran; the commits since
the base `bc6b7ffd` touch none of this PR's paths (they add four other
changesets), so no merge was taken.
</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmPfCRZtZTTC4KzLjJR)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01ADHkmPfCRZtZTTC4KzLjJR

<!-- signed: domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z
-->

Co-authored-by: Claude <noreply@anthropic.com>
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 size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant