Skip to content

docs(adr): ADR-0011 and ADR-0151 record who confirms a declared-gated action on an AI door - #33810

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-2tb5xl
Nov 15, 2026
Merged

os-zhuang merged 2 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

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

Clause-②: no
Metadata-protocol: none

维护者速读

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 Contract: AI-door confirmation rule binds every AI door, including the in-app assistant (#33689 Q1 ruled B) #33808, the cloud route alignment is cloud: service-ai pending-action approve/reject routes follow the AI-door confirmation rule (#33689 Q1 ruled B) #33809, and the seam merge is Contract: merge the in-app pending-action queue into the AI-door confirmation seam (#33689 Q1, option C deferred) #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 #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.

Derived gates: 21 derived, 21 exit 0, 0 NOT-MEASURED
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

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind. (no names added)
  • 3. No formatter ran; pnpm lint passes. (docs only; the derived lint-family gates ran green)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing; no changeset)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 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

…-gated action on an AI door

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kZuoX9F5S7p84Dwue
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-handoff: review#1 — CONTRACT_REVIEW_TIER unavailable (maintainer routing 「review#1 正在入座,你这个账户后续的契约复审找他」, 2026-11-15T12:11Z) · head ab50848

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-elon-musk · session_016WV4cy7hQ5MvQ83ByNZ8ZH

Contract-review-claim: session_016WV4cy7hQ5MvQ83ByNZ8ZH · head ab50848 · 2026-11-15T12:13:41Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-elon-musk · session_016WV4cy7hQ5MvQ83ByNZ8ZH

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ab50848aef508718eb00806dc614589857f6fb15
Local-runs: probe — the docs and ADR gates were run once on a detached worktree of this head, because the review order asked for them on a governed ADR face: check-governed-prose, check-adr-anchors, check-adr-links, check-adr-symbol-anchors and adr-index --report. Nothing was built.
Scope: docs/adr/0011-actions-as-ai-tools.md, docs/adr/0151-ai-service-account-a-headless-agent-is-a-registered-principal-of-its-own.md + none

First contract review of this PR (PR 2 of 2 of card #33689), taken on handoff 6894115592 under claim 6894146676. The rules face, full review with ④.

Inputs read: card #33689 (body with its ## Amendment, and all twelve comments, the ruling record 6893484458 and the dev reports 6893488418 and 6893581292 among them); this PR (body, file list, the whole diff against the merge base 1e65a389, +70 and -0 over two files); the merged contract on main, packages/spec/src/contracts/ai-service.ts :242-704 (the member docblock, AI_ACTION_CONFIRMATION_CAPABILITY, ACTION_CONFIRMATION_REFUSAL_REASONS, ActionConfirmationHandOff, ActionConfirmationPending, ACTION_CONFIRMATION_SERVICE, IActionConfirmationService); both ADRs in full around the notes (ADR-0011 sections 4, Confirmation and the 2026-10-30 addendum; ADR-0151 D3 and "What builds on this"); cards #33808, #33809 and #33806; the PR 1 records 6891568840, 6892320399 and 6893043349. Code read to judge, not reviewed: packages/runtime/src/action-execution.ts :3053-3100 (isAiServiceAccountCaller, actionConfirmationRefusal).

Check-runs on the head, read 2026-11-15T12:18Z: 48 runs, none in progress; 25 success, 21 skipped. The two others are superseded runs of Check Changeset (a failure at 11:22Z and a cancelled run at 11:24Z, both before the skip-changeset label landed at 11:25Z); its newest run on this head, at 11:25Z, reads skipped. No check is red on the newest run of any name.

Local gates on this head: check-governed-prose exit 0; check-adr-anchors exit 0; check-adr-links exit 0 (1131 destinations resolve); check-adr-symbol-anchors exit 0 (3621 anchors across 156 records resolve, the nine symbol anchors the notes add among them); adr-index --report exit 0 (the index is current). check-doc-authoring was NOT MEASURED locally (exit 3, the worktree has no typescript); CI ran its lint family green on this head.

① Derived judgments

  • Docs only. Two files under docs/adr/**, 70 lines added, none removed. No code, schema, export, error code or generated artifact moves. Right.
  • Each ADR gains one header Amended line and one dated block-quoted note. No status line, decision, rule or table row of either ADR is edited. Right: the notes amend by addition, as the earlier 2026-11-10 note of ADR-0151 does.
  • Both header lines link to an in-page anchor that exists (#confirmation-hitl-approval-queue, #d3--its-authority-its-own-grants-under-the-agent-ceiling), and the ADR-0011 note links #4-invocation-flow, which exists. The link gate agrees.

② Semver level

③ Boundary flags

  • Card order "PR 2 after PR 1 merges, the two ADR amendment notes only": held. The base is 1e65a389, the merge of feat(spec)!: a declared-gated action on an AI door is confirmed by a person through MCP elicitation #33725, and the file surface is exactly the two ADRs.
  • Tier H: docs/adr/** is governed, so the maintainer approves and merges. The PR is a draft and this record changes none of that.
  • Author: the PR's user.login is objectstack-fleet[bot], so it was written through the relay.
  • Independence: implemented under account os-project-manager; reviewed from a seat of account os-elon-musk.
  • The ruling behind the in-app bullet was read on record 6893484458, the seat's transcription of the maintainer's tap. The decision thread itself is not readable from this seat, so the tap was not read first-hand.
  • No SQL, no id materialisation, no join: not applicable.
  • Nothing escalated.

④ Design judgment

ADR-0011 note, against the merged contract. Each sentence was read against the docblock of AI_ACTION_CONFIRMATION_CAPABILITY on main.

  • The three-step rule: holds. Elicit (one elicitation/create in form mode, when the client advertised elicitation at initialize and the door can carry the request), hand off otherwise, refuse only when no service is registered, in that order, "after every admission gate and before anything runs". That is rule 2 and rule 3 of the contract, and the refusal is its 428 ACTION_CONFIRMATION_REQUIRED with reason no_confirmation_service.
  • ACTION_CONFIRMATION_SERVICE: holds. The note names the service by IActionConfirmationService and its slot by ACTION_CONFIRMATION_SERVICE, both by symbol anchor, and both resolve. The caller's answer, status: 'pending_confirmation' with a pending id, is ActionConfirmationPending.
  • The signed-in-only approve and reject doors: holds. "take a person's signed-in session to the app and nothing else" is the contract's sentence. The note does not list the refused credentials; it points at the contract "without restating every case", which is accurate.
  • The run as the person, re-checked: holds. "an approved action runs as that person with every gate and permission re-checked, and a handed-off resume_run resumes its parked run rather than starting one" is rule 4's handed-off case. "Only the person the call ran as approves or rejects" is step 2.
  • Which calls, the caller's confirm never counting, what an answer proves, and the two bounds (the MCP delete gates keep the member; REST /actions stays outside the gate for a person): each matches rules 1 and 5 and the two closing sections of the contract, with nothing added.
  • "Why": the 2 of 6 measurement on 18.4.0 and the two rulings are the contract's own, quoted the same way.
  • "Unchanged": the opt-in, the addendum's H, C and E buckets with "never relaxed", and ADR-0151 D3 rule 3 all read true against the ADR text at this head. The quoted addendum sentence ("until the call carries confirm: true") is at :446 and is correctly described as the running code until the implementing change.

The in-app bullet, against ruling record 6893484458. This is the one place the note says more than the merged contract, and it says so itself: "The contract at 1e65a389 names the two MCP tools only". The four core rules it lists are the four of the record, in the same order, and "keeps its own channel", "IAIService's pending members stay" and "Merging the two seams was not ruled" are the record's three remaining lines. The routing is right: #33808 is open, domain:spec, p1, and its body carries exactly the three in-app changes the note names (who decides, which credential, as whom it runs); #33809 is open, repo:cloud, parked, and covers the cloud approve and reject routes; #33806 is open, p3, and is the seam merge. "today the pre-registered bypass dispatcher" is ADR-0011's own wording at :203. The bullet states a ruled rule and routes its contract text to the card that will write it, so it does not put words into the merged contract.

ADR-0151 note, against D3 and the contract.

  • Rule 3 is left word for word; the note sits after D3's last bullet and edits none of them. "Refused whatever it sends", "neither elicited ... nor handed off" and reason service_account "on every door that runs an action, REST /actions and host doors included" are rule 6 of the contract. The tense is right: "From the change that implements the contract".
  • "Not the hold door rule 3 waits on": holds against both texts. Rule 3 (:75) waits on "a hold door ... that hands the run to a person: the account's owner or an administrator (O6, through the approvals engine)". The pending-confirmation service hands a call back to the person it ran as, and its doors refuse an agent principal "with or without onBehalfOf" (the contract's words), so an account has nobody to be handed to. O6 stays as "What builds on this" has it (:188).
  • "An agent acting for a person ... is not an account": rule 1 of the contract and isAiServiceAccountCaller agree.
  • "Until the implementing change ships": actionConfirmationRefusal refuses an account through isAiServiceAccountCaller before the member is read (:3065-3080). True of the code on main.

First consumer and execution plan. The first reader of these notes is the implementing card (the runtime and MCP switch) and then #33808. Both notes separate what binds from what runs today, in each of their last bullets, so neither can be read as a claim that a door already enforces the contract.

Findings:

N1, nit. "every door gates on the member as before" follows a bullet that has just brought the in-app door into scope. (ADR-0011 note, "When it binds".) The contract's own sentence is scoped by what follows it: "the MCP run_action and resume_run tools". In the note the in-app bullet now stands between, and the in-app door does not gate on the member: it queues a pending action, as the table above the note says. Likewise "The doors implement it in the next card of the chain" means the MCP doors; the in-app door's changes go through #33808 and #33809, as the previous bullet says. The table and the previous bullet settle the reading, so no rule is misstated. "every MCP door" would remove the second look. Carrier: the ADR amendment that accompanies #33808, or a prose follow-up.

N2, nit. "the pending-approval card and inbox this ADR describes". ADR-0011 describes the queue (pending_approval, "operator approves in Studio"); it does not use the words card or inbox. The reference is recognisable and the ruling uses those words. Same carrier.

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

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

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

ACCEPT · PR #33810 (#33689 第 2 个 PR,ADR 说明,Tier H) · head ab50848aef508718eb00806dc614589857f6fb15 · 2026-11-15T12:19Z

维护者速读

席位核对

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 15, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 12:20
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit a84bcd8 Nov 15, 2026
57 of 59 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-2tb5xl branch November 15, 2026 12:54
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contract: a confirmation-required action on an AI door is confirmed by a human through MCP elicitation, never by the caller's own confirm: true

2 participants