Skip to content

Commit ccaee99

Browse files
fix(spec): the tool.requiresConfirmation guidance names the one pair REST /actions asks ai.exposed of (#33056)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoWK5rFW1SUGSkDw9iatZE4f)_ Part of #32924 (item 1 only; item 2, whether REST also asks `confirm: true`, stays with the maintainer and keeps the card open) Clause-②: no Metadata-protocol: none Skills-docs: none owed — `skills/**` never says REST `/actions` is not `ai.exposed`-gated (its `requiresConfirmation` hits teach the action-level flag and the tool-level removal, both still true); in `content/docs/**` the only stale spot was `permissions/system-context.mdx` row 57, fixed here. `ui/actions.mdx` (the `'rest'` posture row), `ai/actions-as-tools.mdx` and `ai/connect-mcp.mdx` already state the AI-service-account rules correctly. ## 维护者速读 - 改了什么:工具上写 `requiresConfirmation` 时报错里给作者的那段说明,原来说「REST `/actions` 不读 `ai.exposed`」;现在改为「只在一种情况下读:AI 服务账号经 `type: 'flow'` 动作启动 `runAs: 'system'` 的流程,此时只要求作者的 AI 授权,不要求确认」,其余照旧。权限文档 system-context 第 57 行补上这条 AI 服务账号规则;`os migrate meta` 对已删除的工具 `requiresConfirmation` 给出的升级说明(17 版语义迁移条目)同样改正,并说明代表某个人的调用仍需作者自己把关、AI 服务账号自身在每道动作门都被拒。 - 为什么改:PR #32912(已合并,随 18.4.0 发版)让 REST 动作路由对这一组合读 `ai.exposed`,原句随版本发出会误导写 AI 动作的作者。 - 风险与回滚:只改文字,schema 接受与拒绝的内容不变(`Clause-②: no`);回滚即 revert。 - 先看:`packages/spec/src/ai/tool.zod.ts`(`requiresConfirmation` 那段说明的第 (1) 条边界);`packages/spec/src/migrations/entries/semantic/17.tool-requires-confirmation-retired.ts`(`replacement` 与验收说明两句);`content/docs/permissions/system-context.mdx` 第 57 行。 - 两分钟验证:`pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/ai/tool-confirmation-prescription-tense.pin.test.ts`,应见全部通过。 - 需要你做的:无,席位落地。第 2 项(REST 是否也要求 `confirm: true`)仍待你在卡上定夺。 ## What changes **The prescription.** `TOOL_RETIRED_KEY_GUIDANCE.requiresConfirmation` in `packages/spec/src/ai/tool.zod.ts` is the message an author meets when a tool still declares `requiresConfirmation` (the `.strict()` `ToolSchema` rejects it). Its first bound said REST `/actions` "is NOT `ai.exposed`-gated". Since #32912 that is untrue for one pair. The bound now reads: > (1) The enforced set is the doors that ask every action for the author's `ai.exposed` opt-in — today the action door reached from the MCP `run_action` tool. REST `/actions` reads `ai.exposed` in one case only (an AI service account starting a `type: 'flow'` action whose flow declares `runAs: 'system'` needs the opt-in there), and that check asks for the opt-in alone, not a confirmation; for a person's call REST `/actions` sits OUTSIDE this gate, so a human in front of that route is still yours to arrange. The account rule that follows it (an AI service account never confirms for itself and is refused at every action door, REST included) is unchanged. The source comment above the entry names the runtime rule it now describes. **Both halves read off the code at `c54a23d2`:** - REST reads the opt-in for that pair: `packages/runtime/src/flow-start-admission.ts#flowStartRefusal` rule 2, `flow.runAs === 'system' && isAiServiceAccount(executionContext) && door.aiExposed !== true` → `403 PERMISSION_DENIED`; `dispatchFlowAction` (`action-execution.ts`, shared by the REST actions route and MCP `run_action`) hands `{ aiExposed: actionIsAiExposed(action) }`. - The confirmation gate is still not on REST for a person: `domains/actions.ts` runs the admitted sequence under `posture: 'rest'`, and `admitResolvedAction` asks `actionConfirmationRefusal` only under `'ai'` or for an AI service account. The pin `ai/tool-confirmation-prescription-tense.pin.test.ts` asserts that relation and stays green. **Docs.** `content/docs/permissions/system-context.mdx` row 57 (what the system principal bypasses at a flow start) gains the AI-service-account rule beside the elevated self-triggered start and `requiredPermissions` (comment 6839421711). Prose only; the row's anchors and function list are unchanged. **Generated artefacts.** The describe string feeds none: it is a parse-error message, not a `.describe()` on a schema field, so no JSON schema, `content/docs/references/**` page or authorable-surface shard carries it. `check:generated` against a dist built from this head: all 14 artefacts up to date. **The upgrade guidance** (seat rework, file surface amended in comment 6846193569). `packages/spec/src/migrations/entries/semantic/17.tool-requires-confirmation-retired.ts`, the entry `os migrate meta` reports for a tool still carrying the key, carried the same sentence twice. Its `replacement` (printed alone by `os migrate meta` and the upgrade guide) now says REST `/actions` reads `ai.exposed` only of an AI service account starting a `runAs: 'system'` flow action (asking for the opt-in, not a confirmation) and sits outside the gate for a person's call or one an agent makes on a person's behalf, while an AI service account acting for itself is refused a gated action at every action door, REST `/actions` included (contract review S1, record 6846718400). Its acceptance text says the same, and replaces "an agent holding an API key on that route is still yours to put a human in front of" with: the confirmation gate is not enforced there, so a person or an agent acting on a person's behalf on that route is still yours to put a human in front of (an AI service account acting for itself is refused a gated action at every action door; review N2 dropped "with an API key", since that principal is the OAuth-delegated client). No generated artefact carries the entry's text (`check:generated`, `check:spec-changes`, `check:upgrade-guide` green). **Changeset.** `.changeset/32924-requires-confirmation-describe.md`, `@objectstack/spec` patch. ## Tests No new test. The existing pin already ties this text to the runtime door in both directions, and it keeps passing with the rewording (`ai.exposed` bound, REST `/actions` carve-out, account rule, `REST \`/actions\` included`, `unverifiable caller claim`). Prose only, so no ablation. ## Acceptance notes - Ruling surface grep (`ruling|Ruling-ref|maintainer|⛔`): `tool.zod.ts` 0 hits; `system-context.mdx` hits at rows 6b, 21, 23f, 31, 57, 62 and the ruling sections (L285, L316–337, L369, L446). Only row 57 is edited, and it cites ruling 6812617393 letter C, the ruling the new sentence restates. - The 16→17 semantic migration entry was first left out of scope and reported; the seat amended the file surface (comment 6846193569) and it is fixed here, see What changes. - The two reds on the first head `4379cff9` (Test UI, TypeScript Type Check) were aggregator jobs reading `cancelled` shards and lanes after the rework push superseded that head; neither log holds a test or tsc failure. - PR #32966 (Tier H) also edits `system-context.mdx`; this PR touches row 57's text only. - Item 2 of the card (S2: whether REST asks `confirm: true` of an AI service account) is not implemented in either direction. ## Verification All readings at head `a8f3da02`. - `pnpm --filter @objectstack/spec build` (lock VERDICT command-exit 0), then `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/migrations/ src/ai/`: Test Files 21 passed (21), Tests 604 passed (604), including `tool-confirmation-prescription-tense.pin.test.ts` and `semantic-relevance.test.ts`. - Consumer of the migration entry: `pnpm --filter @objectstack/cli exec vitest run --project integration --maxWorkers=2 test/migrate-meta-engine-guidance.test.ts` (after `pnpm --filter @objectstack/cli build`): Test Files 1 passed (1), Tests 3 passed (3). - `pnpm --filter @objectstack/spec run check:generated` (against the dist built from this change): all 14 generated artefacts up to date; the working tree stayed clean. - Derived gates: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` → 103 families (the entry adds `check:spec-changes`, `check:upgrade-guide`, `check:cli-command-ids`, `check:query-options-erasure`), all run with `</dev/null` after a `pnpm turbo run build --concurrency=2 --filter='./packages/**'` (81/81), exit codes captured before any pipe; every one exit 0. Reconciliation `--ran`: `103 derived famil(ies) accounted for — 103 run, 0 NOT-MEASURED (a DERIVED zero — all 103 recorded an exit code and none of them is 3)`. - Consumers: the text is a parse-error message of `ToolSchema`; no package parses its wording (the runtime pin reads the runtime, not this string), so no consumer test is owed beyond the spec pin. `test:repo` and the full farm are CI's. <details><summary>Gate record (103 lines)</summary> ```text node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0 node scripts/check-adr-0087-registration.mjs --self-test :: exit 0 node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-adoption.mjs :: exit 0 node scripts/check-comment-mask-adoption.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-dev-prereqs.mjs --self-test :: exit 0 node scripts/check-doc-route-spelling.mjs --advisory :: exit 0 node scripts/check-doc-route-spelling.mjs --self-test :: exit 0 node scripts/check-docs-section-name.mjs :: exit 0 node scripts/check-docs-section-name.mjs --self-test :: exit 0 node scripts/check-dts-emitted.mjs --self-test :: exit 0 node scripts/check-empty-changeset.mjs --base origin/main :: exit 0 node scripts/check-empty-changeset.mjs --self-test :: exit 0 node scripts/check-issue-citations.mjs :: exit 0 node scripts/check-plugin-teardown-shape.mjs :: exit 0 node scripts/check-plugin-teardown-shape.mjs --self-test :: exit 0 node scripts/check-section-landing-index.mjs :: exit 0 node scripts/check-section-landing-index.mjs --self-test :: exit 0 node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0 node scripts/ci/snapshot-next.mjs --self-test :: exit 0 node scripts/docs-audit/check-affected-docs.mjs :: exit 0 node scripts/docs-audit/check-drift-comment.mjs :: exit 0 node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0 node scripts/release-pending-publish.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm --filter @objectstack/lint run check:doc-security-posture :: exit 0 pnpm --filter @objectstack/spec run check:api-surface :: exit 0 pnpm --filter @objectstack/spec run check:authorable-surface :: exit 0 pnpm --filter @objectstack/spec run check:browser-reachable-entries :: exit 0 pnpm --filter @objectstack/spec run check:docs :: exit 0 pnpm --filter @objectstack/spec run check:dual-source-exports :: exit 0 pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0 pnpm --filter @objectstack/spec run check:empty-state :: exit 0 pnpm --filter @objectstack/spec run check:entry-nameability :: exit 0 pnpm --filter @objectstack/spec run check:export-origins :: exit 0 pnpm --filter @objectstack/spec run check:exported-any :: exit 0 pnpm --filter @objectstack/spec run check:liveness :: exit 0 pnpm --filter @objectstack/spec run check:llms-txt :: exit 0 pnpm --filter @objectstack/spec run check:skill-examples :: exit 0 pnpm --filter @objectstack/spec run check:skill-refs :: exit 0 pnpm --filter @objectstack/spec run check:spec-changes :: exit 0 pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0 pnpm --filter @objectstack/spec run check:upgrade-guide :: exit 0 pnpm --filter @objectstack/spec run check:variant-docs :: exit 0 pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0 pnpm check:changeset-gate-self-tests :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cli-command-ids :: exit 0 pnpm check:closed-ceremony-text :: exit 0 pnpm check:corpus-claim-drift :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:dispatcher-error-vocabulary :: exit 0 pnpm check:doc-anchors :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:doc-frontmatter :: exit 0 pnpm check:docs-audit-scope :: exit 0 pnpm check:docs-redirects :: exit 0 pnpm check:docs-single-h1 :: exit 0 pnpm check:docs-spec-enumerations :: exit 0 pnpm check:docs-transcript-drift :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:dts-closure :: exit 0 pnpm check:dual-build-cjs-loads :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:issue-citations :: exit 0 pnpm check:keyed-text-bounds :: exit 0 pnpm check:lean-entry-closure :: exit 0 pnpm check:logger-receiver-detach :: exit 0 pnpm check:merge-driver :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:object-def-param-keys :: exit 0 pnpm check:org-identifier :: exit 0 pnpm check:page-declaration-shape :: exit 0 pnpm check:platform-object-tenancy-census :: exit 0 pnpm check:pm-prior-rulings :: exit 0 pnpm check:published-files :: exit 0 pnpm check:published-readme-links :: exit 0 pnpm check:query-options-erasure :: exit 0 pnpm check:react-page-adapter-contract :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:registry-log-declared :: exit 0 pnpm check:rest-log-spy-declared :: exit 0 pnpm check:role-word :: exit 0 pnpm check:settings-bind-window :: exit 0 pnpm check:skill-identifier-liveness :: exit 0 pnpm check:slot-lookup :: exit 0 pnpm check:sourcemap-no-sources-content :: exit 0 pnpm check:spec-docblock-symbol-anchors :: exit 0 pnpm check:spec-parsed-alias :: exit 0 pnpm check:system-context-census :: exit 0 pnpm check:test-source-alias :: exit 0 pnpm check:tier-file-adoption :: exit 0 pnpm check:undeclared-dep-imports :: exit 0 pnpm check:vendor-version-stamps :: exit 0 pnpm check:vouch-for-reference-callers :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibyxGyX6L3NhaTF6yiA <!-- signed: domain:spec#2 · os-tesla · session_01L9qibyxGyX6L3NhaTF6yiA --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 12b1446 commit ccaee99

4 files changed

Lines changed: 36 additions & 11 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
fix(spec): the `tool.requiresConfirmation` rejection no longer says REST `/actions` never reads the `ai.exposed` opt-in
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The prescription an author meets when a tool still declares `requiresConfirmation` stated that REST `/actions` is not `ai.exposed`-gated. That route now reads the opt-in for one pair: an AI service account (an agent acting for itself, with no `onBehalfOf`) starting a `type: 'flow'` action whose flow declares `runAs: 'system'` is refused `403 PERMISSION_DENIED` unless the action declares `ai.exposed: true`. The sentence now names that pair and says no confirmation is asked there, and keeps the rest of the bound: for a person's call REST `/actions` stays outside the `ai.requiresConfirmation` gate. The `os migrate meta` guidance for the retired key (the `tool-requires-confirmation-retired` semantic entry's replacement and acceptance text) carries the same correction, and no longer tells an author that an API-key agent on REST `/actions` is theirs to gate without saying an AI service account acting for itself is already refused a gated action there. Text only; what the schema accepts and refuses is unchanged.

‎content/docs/permissions/system-context.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ One of the largest consumers of the flag;
211211
| 55 | Package domain capability gates bypassed | runtime | Get: package management and package-inventory reads without the capability | `requireManageMetadata`, `requireReadCapability` |
212212
| 56 | Activation write / authoring refusals do not fire | runtime | Get: activation artifacts writable and authorable without the activation-authoring capability | `refuseUngrantedActivationWrite`, `refuseUngrantedActivationAuthoring` |
213213
| 55b | Walled environment-metadata refusal does not fire | metadata-core, rest, runtime | Get: under `isolated` / `group`, a write of the environment's metadata, of any type, at the `/meta` write doors (save, reset, publish, rollback) and `POST /meta/_migrate-stored` on both transports, at every `/packages` write door (create, the manifest `PATCH`, enable, disable, publish, `publish-drafts`, `discard-drafts`, `revert`, `rollback`, `commits/:commitId/revert`, `duplicate`, `adopt-orphans`, delete), at the `/automation` definition writes (create, update, delete, clone), at the permission-set clone door, at the import of a remote table as an object (the REST import route and the MCP `import_object` tool), and at the refresh of a federated datasource's cached catalog. Every other caller below the platform-operator rung is refused `403` there (ADR-0131 D3, D12 items 7–8, D11), because one organization's write would change what every organization resolves. The seeders, the package door and migrations write the environment's metadata this way. Under `single` the refusal is inert for every caller | `walledCatalogWriteVerdict`, `walledCatalogRefusal`, `refuseWalledCatalogPackageWrite`, `refuseWalledFlowDefinitionWrite`, `registerExternalDatasourceRoutes`, `federationService` |
214-
| 57 | Automation run-state read, flow-authoring write, the paused-run caller gate (screen read and resume), the two operator run-lifecycle writes, and the elevated self-triggered start and the start-record check at every door that starts a flow by name all pass | runtime | Get: run state, flow writes, a paused run's screen and its resume with no grant and without being the run's starter — and cancelling or restoring a suspension without the platform-operator rung. The screen read and the resume ask one predicate, so this is one bypass for both. The lifecycle bypass is the in-process owner's door: plugin-approvals' revise-window recall (ADR-0044) cancels on behalf of a decision it already authorized and recorded. And starting a flow declared `runAs: 'system'` whose type is self-triggered (`autolaunched`, `record_change`, `schedule`) through any door that starts a flow by name — the trigger route, an action of `type: 'flow'` (REST `/actions` and the MCP `run_action` bridge) and a declared endpoint of `type: 'flow'` — which every other caller, the guest principal included, is refused `403 PERMISSION_DENIED` (the maintainer's rulings, letters B and A) — and starting, through the same doors, a flow whose `requiredPermissions` the caller does not hold (ruling record 6377848497, letter A). And starting, through the same doors, a flow on a record key the caller's own scope does not deliver, which every other caller is refused with the action door's `404 RECORD_NOT_FOUND` before the run exists (and `400 VALIDATION_FAILED` for a key that is not one id, or for an elevated start that names no object). The three doors ask one check, so this is one bypass for all of them, and it is the in-process caller's, such as a job: inbound HTTP never carries the flag | `mayReadRunState`, `refuseUngrantedFlowWrite`, `isRunStarterOrRunStateReader`, `refuseUngrantedRunLifecycleWrite`, `flowStartRefusal`, `refuseUnreadableFlowStartRecords` |
214+
| 57 | Automation run-state read, flow-authoring write, the paused-run caller gate (screen read and resume), the two operator run-lifecycle writes, and the elevated self-triggered start, the AI-service-account elevated start and the start-record check at every door that starts a flow by name all pass | runtime | Get: run state, flow writes, a paused run's screen and its resume with no grant and without being the run's starter — and cancelling or restoring a suspension without the platform-operator rung. The screen read and the resume ask one predicate, so this is one bypass for both. The lifecycle bypass is the in-process owner's door: plugin-approvals' revise-window recall (ADR-0044) cancels on behalf of a decision it already authorized and recorded. And starting a flow declared `runAs: 'system'` whose type is self-triggered (`autolaunched`, `record_change`, `schedule`) through any door that starts a flow by name — the trigger route, an action of `type: 'flow'` (REST `/actions` and the MCP `run_action` bridge) and a declared endpoint of `type: 'flow'` — which every other caller, the guest principal included, is refused `403 PERMISSION_DENIED` (the maintainer's rulings, letters B and A) — and starting, through the same doors, a flow whose `requiredPermissions` the caller does not hold (ruling record 6377848497, letter A) — and starting, through the same doors, a flow declared `runAs: 'system'` as an AI service account (an agent acting for itself, with no `onBehalfOf`) where the action's `ai.exposed: true` opt-in is not in hand, which that account is refused `403 PERMISSION_DENIED` (ADR-0151 Non-goals, ruling record 6812617393, letter C; a trigger route and a declared endpoint carry no opt-in, so there it is always refused, and the refusal names the action door that admits it). And starting, through the same doors, a flow on a record key the caller's own scope does not deliver, which every other caller is refused with the action door's `404 RECORD_NOT_FOUND` before the run exists (and `400 VALIDATION_FAILED` for a key that is not one id, or for an elevated start that names no object). The three doors ask one check, so this is one bypass for all of them, and it is the in-process caller's, such as a job: inbound HTTP never carries the flag | `mayReadRunState`, `refuseUngrantedFlowWrite`, `isRunStarterOrRunStateReader`, `refuseUngrantedRunLifecycleWrite`, `flowStartRefusal`, `refuseUnreadableFlowStartRecords` |
215215
| 57b | Connector credential door's capability and posture gates pass | runtime | Get: listing, setting and clearing the environment's stored connector credentials (`/automation/connectors/credential-refs`) without `manage_metadata`, and under the `group` / `isolated` postures, where the door refuses every other caller `403 PERMISSION_DENIED` naming the posture, the platform operator included, because the store is environment-level. The bypass is the in-process caller's: inbound HTTP never carries the flag. Get nothing more about the value: no answer of this door carries it | `refuseUngrantedConnectorCredentialAccess`, `refuseWalledConnectorCredentialAccess` |
216216
| 57c | Connector connection door's capability gate passes | runtime | Get: reading, beginning, completing (the OAuth callback) and revoking an organization's connection of an `oauth2` `authorization_code` connector instance (`/automation/connectors/:name/connection`, `/automation/connectors/oauth/callback`, ADR-0143 D5) without `manage_metadata`. No posture refuses it: a connection belongs to its organization. The bypass is the in-process caller's: inbound HTTP never carries the flag. Get nothing more: no answer of this door carries a token, and the callback's `state` is still bound to the user and organization that began the connect | `refuseUngrantedConnectorConnectionAccess` |
217217
| 58 | Audience-binding suggestion authority gate passes | plugin-security | Get: a system caller lists, accepts and dismisses suggestions without `manage_metadata` and, under a wall, without the platform-operator rung | `assertDeploymentAuthority` |

‎packages/spec/src/ai/tool.zod.ts‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ const TOOL_RETIRED_KEY_GUIDANCE: Record<string, string> = {
7777
// [ADR-0151 D3 rule 3] The first bound carries the account rule: an AI
7878
// service account never confirms for itself, so the gate refuses it at every
7979
// door, REST included; the REST carve-out holds for every other caller (a
80-
// person, or an agent with `onBehalfOf`).
80+
// person, or an agent with `onBehalfOf`). The one place REST reads the
81+
// `ai.exposed` opt-in (ADR-0151 Non-goals, `flowStartRefusal` rule 2 in
82+
// `packages/runtime/src/flow-start-admission.ts`) asks for the opt-in alone,
83+
// never a confirmation, so the bound names that pair and keeps REST outside
84+
// this gate for every other caller.
8185
//
8286
// The ids stay in this comment and out of the string: `check:doc-authoring`
8387
// reds on an internal tracker id inside a customer-facing prescription.
@@ -98,10 +102,13 @@ const TOOL_RETIRED_KEY_GUIDANCE: Record<string, string> = {
98102
'action and the exact member to set so the caller confirms and retries. A GATE, not ' +
99103
'a queue: nothing is parked, nothing is held for an operator to find later, and a ' +
100104
'refused call did not run — no record was read and none was written. Two BOUNDS to ' +
101-
'read before you rely on it. (1) The enforced set is the doors that enforce the ' +
102-
'author\'s `ai.exposed` opt-in — today the action door reached from the MCP ' +
103-
'`run_action` tool. REST `/actions` is NOT `ai.exposed`-gated and sits OUTSIDE this ' +
104-
'gate for a person\'s call, so a human in front of that route is still yours to ' +
105+
'read before you rely on it. (1) The enforced set is the doors that ask every action ' +
106+
'for the author\'s `ai.exposed` opt-in — today the action door reached from the MCP ' +
107+
'`run_action` tool. REST `/actions` reads `ai.exposed` in one case only (an AI ' +
108+
'service account starting a `type: \'flow\'` action whose flow declares ' +
109+
'`runAs: \'system\'` needs the opt-in there), and that check asks for the opt-in ' +
110+
'alone, not a confirmation; for a person\'s call REST `/actions` sits OUTSIDE this ' +
111+
'gate, so a human in front of that route is still yours to ' +
105112
'arrange. An AI service account (an agent acting for itself, not on a person\'s ' +
106113
'behalf) does not confirm an action for itself: it is refused at every action door, ' +
107114
'REST `/actions` included, whatever its request carries, and a person runs the ' +

‎packages/spec/src/migrations/entries/semantic/17.tool-requires-confirmation-retired.ts‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ export const entry: SemanticMigration = {
1414
+ 'member to set. A gate, not a queue: nothing is parked, and a refused call did not '
1515
+ 'run — no record was read and none was written. ⚠ Two bounds: the enforced set is the '
1616
+ 'doors that enforce the author\'s `ai.exposed` opt-in, today the action door reached '
17-
+ 'from the MCP `run_action` tool, while REST `/actions` is not `ai.exposed`-gated and '
18-
+ 'sits outside the gate; and `confirm: true` is an unverifiable caller claim, so the '
19-
+ 'gate makes forgetting loud without proving a human approved',
17+
+ 'from the MCP `run_action` tool, while REST `/actions` reads `ai.exposed` only of an AI '
18+
+ 'service account starting a `runAs: \'system\'` flow action (asking for the opt-in, '
19+
+ 'not a confirmation) and sits outside the gate for a person\'s call or one an agent '
20+
+ 'makes on a person\'s behalf, while an AI service account acting for itself is '
21+
+ 'refused a gated action at every action door, REST `/actions` included; and '
22+
+ '`confirm: true` is an unverifiable caller claim, so the gate makes forgetting loud '
23+
+ 'without proving a human approved',
2024
reason:
2125
'`ToolSchema.requiresConfirmation` accepted `true` and no execution path ever read it: '
2226
+ 'not the LLM tool set (a tool reaches the model as name / description / parameters '
@@ -56,8 +60,12 @@ export const entry: SemanticMigration = {
5660
+ 'that call is a real check you can make rather than a destructive experiment. ⚠ Two '
5761
+ 'bounds on what it proves: the enforced set is the doors that enforce the author\'s '
5862
+ '`ai.exposed` opt-in — today the action door reached from the MCP `run_action` tool '
59-
+ '— while REST `/actions` is not `ai.exposed`-gated and sits outside the gate, so an '
60-
+ 'agent holding an API key on that route is still yours to put a human in front of; '
63+
+ '— while REST `/actions` reads `ai.exposed` only of an AI service account starting a '
64+
+ '`runAs: \'system\'` flow action, and asks it for the opt-in, not a confirmation; the '
65+
+ 'confirmation gate is not enforced there, so a person or an agent acting on a '
66+
+ 'person\'s behalf on that route is still yours to put a human in '
67+
+ 'front of (an AI service account acting for itself is refused a gated action at '
68+
+ 'every action door); '
6169
+ 'and `confirm: true` is an unverifiable caller claim, so the gate makes forgetting '
6270
+ 'loud without proving a human approved. The decision above is still the one this '
6371
+ 'criterion asks you to make. If the operation does not need a human, delete the key '

0 commit comments

Comments
 (0)