Skip to content

Commit 8e3d4a5

Browse files
docs(skills, mcp): teach that an AI service account is refused a confirmation-gated action whatever it sends (#33057)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6Jao6eUTrsBJsmZzvYABV6AthJ)_ Fixes #32936 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:五处教学文字(objectstack-ai 技能表、MCP 下发的 SKILL.md 及控制台下载镜像、`run_action`/`resume_run` 工具描述、actions.mdx 姿态表、审批 dogfood 文件头)补上同一句话:AI 服务账号用自己的密钥调用需确认的动作时,无论带什么都会被 428 拒绝、什么都不执行,应交给人来执行,或由作者在可无人值守时声明 `ai.requiresConfirmation: false`。 - 为什么改:运行时早已如此(ADR-0151 D3 第 3 条),但已发布的技能仍教所有调用方「带 `confirm: true` 重试」,服务账号照做永远过不去。 - 风险与回滚:零运行时改动,只改文字与两条测试断言;回滚即 revert 本 PR。 - 先看:`skills/objectstack-ai/SKILL.md` 第 204 行表格行;`packages/mcp/src/mcp-http-tools.ts` 的 `run_action` 描述;`packages/mcp/src/skill-md.ts` 的 `run_action` 条目。 - 两分钟验证:`pnpm --filter @objectstack/mcp exec vitest run src/skill-md.test.ts src/mcp-resume-run-tool.test.ts`,预期全绿。 - 需要你做的:本 PR 触及 `skills/**`(Tier H)。契约复审在现 head 已 PASS(评论 6846560754,Head-sha `a7baa0d746269fc53b8a2e7d4cdb3294e58e23c6`),请以 os-zhuang 批准;批准后席位落地。 - 席位意见:同意落地。四个入口与服务账号判定(`principalKind === 'agent'` 且无 `onBehalfOf`)逐一对过代码;复审只有四个 nit,作为接受的偏差。卡评论要的 `list_actions` 标记属运行时改动,已另立 #33067,本 PR 不做。 ## What changes One sentence, in the same terms everywhere: **under an AI service account's own key (an agent acting for itself, for no person) the call is refused whatever it sends and nothing runs: hand the action to a person, or its author declares `ai.requiresConfirmation: false` when it is safe unattended.** The existing teaching for a person and a delegated agent (`confirm: true` after the human approves) stays in every text. - `skills/objectstack-ai/SKILL.md` — the `list_actions` / `run_action` / `resume_run` row of the MCP tool table. - `packages/mcp/src/skill-md.ts` — the `run_action` entry carries the sentence; the `resume_run` entry names the same refusal. `ui/apps/console/src/pages/developer/objectstack-skill.ts` (the Console "Download skill" mirror) carries the same bytes: the byte-for-byte pin in `packages/mcp/src/skill-md.test.ts` goes red otherwise. This file is outside the claim's listed surface; it is the mirror of `skill-md.ts`, not a new text. - `packages/mcp/src/mcp-http-tools.ts` — the `run_action` description (comment 6839924935), the `resume_run` description, and both tools' `confirm` member descriptions ("Under an AI service account's own key it is not read: the call is refused whatever it sends"). - `content/docs/ui/actions.mdx` (nit D) — the posture table: the `'rest'` row now states the gate it asks for an account under either posture, and the `'ai'` row points to it; the `dispatchAction` example's `confirm` comment says it is never read for an account. - `packages/qa/dogfood/test/approval-decide-over-mcp.dogfood.test.ts` (nit E) — the file header names the account confirmation rule for the AI service account case (header only; no test code changed). - Changesets: `'@objectstack/skills': patch`; `'@objectstack/mcp': patch` + `'@object-ui/console': patch` (the mirror). **The runtime rule, quoted from `main` (c54a23d), `packages/runtime/src/action-execution.ts`:** ```ts if (action?.ai?.requiresConfirmation !== true) return undefined; // [ADR-0151 D3 rule 3] An AI service account never confirms for itself: // for one, the member is not read at all. const account = isAiServiceAccountCaller(caller); // Only the boolean `true` attests. if (!account && request?.[AI_ACTION_CONFIRMATION_MEMBER] === true) return undefined; ``` It is asked at every door: `packages/runtime/src/action-dispatch.ts` (`if (posture === 'ai' || actionExec.isAiServiceAccountCaller(wiring.ec))`, so REST `/actions` and a host `dispatchAction` on `'rest'` refuse an account too) and `packages/runtime/src/domains/mcp.ts` `resumeAdmissionRefusal` (`resume_run`). `isAiServiceAccountCaller` is `principalKind === 'agent' && !onBehalfOf`. **Not changed:** no runtime code; `delete_record` / `delete_records` teaching untouched (a different gate). ## Tests - `packages/mcp/src/mcp-resume-run-tool.test.ts` — new case: both `run_action` and `resume_run` descriptions keep `confirm: true` and carry the account sentence, and both `confirm` members say the member is not read for an account. - `packages/mcp/src/skill-md.test.ts` — the action-preference case also pins the account sentence in the `run_action` and `resume_run` entries. The pinned sentence is absent from both source files on `origin/main` (`grep -c` 0), so neither case can pass on the base text. ## Acceptance notes - **Skill budget (`skills/**`).** `skills/objectstack-ai/SKILL.md`: 422 → 421 lines, 5776 → 5813 tokens (ceiling 6801). Whole package (sum of every `SKILL.md`): 4597 → 4596 lines, 58697 → 58734 tokens. The row is one table line edited in place; the growth is funded by deleting the pitfall line's restatement of the tool-level `requiresConfirmation` retirement (no execution path read it; `ToolSchema` is strict), which `## Tool` already states. No re-wrap is counted. Net tokens +37, inside the ceiling. - **Out of scope, reported to the seat:** comment 6839924935 also asks that an AI service account's `list_actions` row carry an `unavailable` marker. That is a behaviour change (today `domains/mcp.ts` sets `unavailable` only from `apiForwardCredentialRefusal`), so it is not built here. ## Verification Local, on `2126444e` (the change) and re-read on `a7baa0d7` (after merging `main` 64c426a): - `pnpm --filter @objectstack/mcp test` — 63/63 files, 1094/1094 tests on 2126444; 63/63, 1097/1097 on a7baa0d (lock VERDICT command-exit 0). - `pnpm --filter @objectstack/mcp typecheck` — exit 0 (`check:test-typecheck: OK`) on 2126444. - `node scripts/check-skills-token-ratchet.mjs` — exit 0 on a7baa0d: `skills/objectstack-ai/SKILL.md is 5813 tokens (ceiling 6801; headroom 988)`. - `node scripts/pm/dispatch-gates.mjs --ran` — `✓ 108 derived famil(ies) accounted for — 106 run, 2 NOT-MEASURED`. Every run family exited 0 (`check:skill-examples`, `check:lean-entry-closure` and `pnpm --dir ui exec vitest run scripts/` after building their prerequisites: 344 prose examples type-check; 171/171 files). <details><summary>NOT MEASURED locally (2), left to CI</summary> - `pnpm check:dual-build-cjs-loads` — exit 3, needs every published package's dist (a full workspace build); this diff changes text only. - `node scripts/check-plugin-teardown-shape.mjs --self-test` — exit 3, its pinned commit 621a487 cannot be fetched into this shallow clone. </details> CI check-runs are the verdict for every other family; the seat reads them. --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibxjTGv9SGUZ76PjPuG)_ <!-- signed: domain:skills#2 · os-tesla · session_01L9qibvXzthnUYrxzphgFgW --> Co-authored-by: Claude <noreply@anthropic.com>
1 parent a596c03 commit 8e3d4a5

10 files changed

Lines changed: 83 additions & 16 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/mcp': patch
3+
'@object-ui/console': patch
4+
---
5+
6+
docs(mcp): the served `SKILL.md` and the `run_action` / `resume_run` tool descriptions stop teaching an AI service account a confirmation retry it can never pass (#32936)
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
No runtime change: the refusal already exists (`actionConfirmationRefusal`, ADR-0151 D3 rule 3), and this changes only what the texts tell an agent.
12+
13+
- **`renderSkillMarkdown`.** The `run_action` entry keeps `confirm: true` after the human approves, and adds: under an AI service account's own key (an agent acting for itself, for no person) the call is refused whatever it sends and nothing runs; hand the action to a person, or its author declares `ai.requiresConfirmation: false` when it is safe unattended. The `resume_run` entry names the same refusal. The Console's "Download skill" mirror carries the same bytes.
14+
- **HTTP MCP tools.** The `run_action` and `resume_run` descriptions, and both tools' `confirm` member descriptions, say the same thing in the same terms.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the `objectstack-ai` MCP tool table teaches that an AI service account is refused a confirmation-gated action whatever it sends (#32936)
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The `list_actions` / `run_action` / `resume_run` row kept `confirm: true` after the human approves as the retry, and that retry is still right for a person and for a delegated agent. It now adds the rule the runtime already enforces (ADR-0151 D3 rule 3): under an AI service account's own key (an agent acting for itself, for no person) the call is refused `428 ACTION_CONFIRMATION_REQUIRED` whatever it sends and nothing runs, so the action is handed to a person, or its author declares `ai.requiresConfirmation: false` when it is safe unattended. Funded by trimming the pitfall line that restated the tool-level `requiresConfirmation` retirement already given under `ToolSchema`.

‎content/docs/ui/actions.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ const answer = await dispatchAction(kernel, {
700700
recordId,
701701
params: { owner: 'u_42' },
702702
posture: 'ai', // your AI tool's door: see below
703-
confirm: humanApproved, // only read under `posture: 'ai'`
703+
confirm: humanApproved, // only read under `posture: 'ai'`, never for an AI service account
704704
credentialHeaders, // optional: the caller's own credentials (e.g. `authorization`, `cookie`)
705705
});
706706
if (answer.status !== 200) throw answer.body.error; // the REST envelope's error
@@ -710,8 +710,8 @@ Pick the **posture** by who drives your door:
710710

711711
| `posture` | Rules | Use it for |
712712
|:---|:---|:---|
713-
| `'rest'` (default) | Exactly the REST door's. It reads `ai.exposed` once: an AI service account starting a `runAs: 'system'` flow needs the action's opt-in (the `flow` row under [Call it over REST](#call-it-over-rest)). | A door a person drives, or your own server code. |
714-
| `'ai'` | The REST door's, plus the three the MCP `run_action` tool adds: a `sys_*` action needs its own `ai.exposed`, every action needs `ai.exposed: true`, and an action with `ai.requiresConfirmation` is refused **428** `ACTION_CONFIRMATION_REQUIRED` until the call carries `confirm: true`. A script action with no handler binding is also refused. A client-side or off-origin `api` action is refused **400** as under `'rest'`, with `run_action`'s sentence (`cannot be invoked via MCP`) instead of the REST prescription, so the agent is not handed the action's `target`. | **A host's in-product AI tool** — an agent picks the action, so it takes the AI door's rules. |
713+
| `'rest'` (default) | Exactly the REST door's. It reads `ai.exposed` once: an AI service account starting a `runAs: 'system'` flow needs the action's opt-in (the `flow` row under [Call it over REST](#call-it-over-rest)). It asks for a confirmation once: under an AI service account's own key (an agent acting for itself, for no person) an action declaring `ai.requiresConfirmation: true` is refused **428** `ACTION_CONFIRMATION_REQUIRED` whatever the call sends and nothing runs: hand the action to a person, or its author declares `ai.requiresConfirmation: false` when it is safe unattended. The same holds under `'ai'`. | A door a person drives, or your own server code. |
714+
| `'ai'` | The REST door's, plus the three the MCP `run_action` tool adds: a `sys_*` action needs its own `ai.exposed`, every action needs `ai.exposed: true`, and an action with `ai.requiresConfirmation` is refused **428** `ACTION_CONFIRMATION_REQUIRED` until the call carries `confirm: true` (an AI service account's call, whatever it carries: see `'rest'`). A script action with no handler binding is also refused. A client-side or off-origin `api` action is refused **400** as under `'rest'`, with `run_action`'s sentence (`cannot be invoked via MCP`) instead of the REST prescription, so the agent is not handed the action's `target`. | **A host's in-product AI tool** — an agent picks the action, so it takes the AI door's rules. |
715715

716716
`posture` is `'rest'`, `'ai'` or absent (`'rest'`); any other value is
717717
refused **400** `VALIDATION_FAILED` before anything runs, so a misspelt

‎packages/mcp/src/mcp-http-tools.ts‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2991,6 +2991,11 @@ export function registerActionTools(
29912991
'Supply recordId for actions that operate on a specific record, and params for any declared inputs. ' +
29922992
'An action the author gated (list_actions reports requiresConfirmation) is REFUSED unless you also ' +
29932993
'send confirm: true — ask the human first, then retry; nothing runs on a refused call. ' +
2994+
// [ADR-0151 D3 rule 3] `actionConfirmationRefusal` (runtime) never reads
2995+
// the member for an AI service account, so no retry is taught to one.
2996+
'Under an AI service account\'s own key (an agent acting for itself, for no person) the call is ' +
2997+
'refused whatever it sends and nothing runs: hand the action to a person, or its author declares ' +
2998+
'ai.requiresConfirmation: false when it is safe unattended. ' +
29942999
// [#32757] The read order `flowFailureRelaySentence` applies, taught
29953000
// to the reader as well, as the console reads it.
29963001
'A flow action that fails answers error.code FLOW_FAILED with a message naming the flow and node, ' +
@@ -3069,7 +3074,8 @@ export function registerActionTools(
30693074
'Set to true to confirm a call the app author gated with ai.requiresConfirmation '
30703075
+ '(list_actions reports requiresConfirmation for each action). Assert this only when '
30713076
+ 'the human in the loop has approved THIS call; without it a gated action is refused '
3072-
+ 'and nothing runs.',
3077+
+ 'and nothing runs. Under an AI service account\'s own key it is not read: the call is '
3078+
+ 'refused whatever it sends.',
30733079
),
30743080
},
30753081
),
@@ -3166,8 +3172,10 @@ export function registerActionTools(
31663172
'(author AI opt-in, your capabilities, your read access to the record). The rest of the flow runs ' +
31673173
'the app\'s business logic and can mutate data. When list_actions reports requiresConfirmation for ' +
31683174
'the action that started the run, send confirm: true (ask the human first); without it the call ' +
3169-
'is refused and the run stays paused. A run that fails answers as run_action does: tell the user ' +
3170-
'the reason in the second text block, never the flow and node chain in the error message.',
3175+
'is refused and the run stays paused. Under an AI service account\'s own key the call is refused ' +
3176+
'whatever it sends and the run stays paused: hand it to a person. A run that fails answers as ' +
3177+
'run_action does: tell the user the reason in the second text block, never the flow and node chain ' +
3178+
'in the error message.',
31713179
inputSchema: strictToolInput(
31723180
{
31733181
surface: 'this resume_run call',
@@ -3209,7 +3217,8 @@ export function registerActionTools(
32093217
'Set to true to confirm resuming a run of an action the app author gated with '
32103218
+ 'ai.requiresConfirmation (list_actions reports requiresConfirmation). Assert this only when '
32113219
+ 'the human in the loop has approved THIS call; without it the call is refused and the run '
3212-
+ 'stays paused.',
3220+
+ 'stays paused. Under an AI service account\'s own key it is not read: the call is refused '
3221+
+ 'whatever it sends.',
32133222
),
32143223
},
32153224
),

‎packages/mcp/src/mcp-resume-run-tool.test.ts‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,22 @@ describe('MCP resume_run — where it is registered', () => {
8686
expect((await listTools(makeBridge(vi.fn()))).run_action.description).toContain('resume_run');
8787
expect((await listTools(makeBridge())).run_action.description).not.toContain('resume_run');
8888
});
89+
90+
it('teaches both doors that an AI service account is refused a gated action whatever it sends', async () => {
91+
// [ADR-0151 D3 rule 3] The runtime never reads `confirm` for an agent
92+
// acting for itself, so neither tool may leave the retry as its only lesson.
93+
const tools = await listTools(makeBridge(vi.fn()));
94+
for (const name of ['run_action', 'resume_run']) {
95+
const tool = tools[name];
96+
expect(tool.description, name).toContain('confirm: true');
97+
expect(tool.description, name).toContain("Under an AI service account's own key");
98+
expect(tool.description, name).toContain('refused whatever it sends');
99+
expect(tool.inputSchema.properties.confirm.description, name).toContain(
100+
"Under an AI service account's own key it is not read",
101+
);
102+
}
103+
expect(tools.run_action.description).toContain('ai.requiresConfirmation: false when it is safe unattended');
104+
});
89105
});
90106

91107
describe('MCP resume_run — its declared shape', () => {

‎packages/mcp/src/skill-md.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ describe('renderSkillMarkdown', () => {
100100
// the server REFUSES without it has learned nothing it can act on.
101101
expect(md).toContain('ACTION_CONFIRMATION_REQUIRED');
102102
expect(md).toContain('requiresConfirmation');
103+
// [ADR-0151 D3 rule 3] The retry is a person's or a delegated agent's; an
104+
// AI service account is refused whatever it sends, and is told so.
105+
expect(md).toContain("Under an AI service\n account's own key");
106+
expect(md).toContain('refused whatever it sends and nothing runs: hand the action to a person');
107+
expect(md).toContain("its refusal under an AI service account's own key whatever the call sends");
103108
});
104109

105110
it('is generic — it does not enumerate any concrete schema', () => {

‎packages/mcp/src/skill-md.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,14 +426,19 @@ create/update payload.
426426
\`confirm: true\` on an action \`list_actions\` reports as
427427
\`requiresConfirmation\` — the server REFUSES such a call without it
428428
(\`ACTION_CONFIRMATION_REQUIRED\`) and nothing runs. Ask your human first;
429-
the flag asserts an approval, it does not obtain one.
429+
the flag asserts an approval, it does not obtain one. Under an AI service
430+
account's own key (an agent acting for itself, for no person) the call is
431+
refused whatever it sends and nothing runs: hand the action to a person, or
432+
its author declares \`ai.requiresConfirmation: false\` when it is safe
433+
unattended.
430434
- **resume_run({ runId, values?, confirm? })** — continue a flow run that
431435
\`run_action\` answered with \`status: "paused"\` and a \`screen\` (a form the
432436
flow needs filled in). Send the screen's field values in \`values\`, keyed by
433437
the names in \`screen.fields\`. The run completes, or pauses again on its next
434438
screen, which you fill with another \`resume_run\`. Only the user whose call
435439
started the run can resume it, under the same gates as \`run_action\`
436-
(including \`confirm: true\` for an action flagged \`requiresConfirmation\`).
440+
(including \`confirm: true\` for an action flagged \`requiresConfirmation\`,
441+
and its refusal under an AI service account's own key whatever the call sends).
437442
${renderFileToolLines(options)}${renderDatasetToolLines(options)}${options.federationTools === true && grantsAuthoringTools(options.grantedScopes) ? FEDERATION_TOOL_LINES : ''}${authoringTools ? renderAuthoringSection(authoringTools, describeObjectRegistered) : ''}${dataOnlyBlock}
438443
## Conventions & gotchas
439444

‎packages/qa/dogfood/test/approval-decide-over-mcp.dogfood.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
// ⭐ a member on no slate is refused, and the request stays pending;
2222
// ⭐ the submitter is refused, and the request stays pending;
2323
// ⭐ an AI service account acting for itself (ADR-0151, its own API key, on
24-
// no slate) is refused, and the request stays pending;
24+
// no slate) is refused, and the request stays pending: the account
25+
// confirmation rule (ADR-0151 D3 rule 3) answers first, `428`
26+
// `ACTION_CONFIRMATION_REQUIRED` whatever the call sends, `confirm: true`
27+
// included — an account does not confirm an action for itself, so the
28+
// action is handed to a person;
2529
// ⭐ the approver is refused `428` until the call carries `confirm: true`;
2630
// ⭐ confirmed, the approver's call decides: the request is approved and
2731
// the decision is recorded once, as the approver's.

‎skills/objectstack-ai/SKILL.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ permissions and row-level security:
201201
| `validate_expression` | build-accurate CEL check before a formula is authored into metadata |
202202
| `create_record`, `update_record`, `delete_record` | writes; `delete_record` is refused with `ACTION_CONFIRMATION_REQUIRED` (428) unless it sends `confirm: true` — ask the human first, then retry |
203203
| `delete_records` | up to 200 records of one object per call (fewer under a smaller `OS_DATA_MAX_PAGE_SIZE` or `OS_DATA_QUERY_ROW_BUDGET`), by `where` or `recordIds`, not both; a call without `confirm: true` is the preview (match count, sample ids) and deletes nothing — show it to the human, and send `confirm: true` only once they approve; over OAuth it needs `data:read` and `data:write` |
204-
| `list_actions`, `run_action`, `resume_run` | your AI-exposed business Actions — the same `ai.exposed` opt-in as above; registered only when the bridge implements `listActions` and `runAction` (the stdio bridge does not, so it serves none), `resume_run` only when it also implements `resumeRun`. An action flagged `ai.requiresConfirmation` (`list_actions` reports it) is refused with the same 428 unless the call sends `confirm: true`, and nothing runs — ask the human first, then retry; `resume_run` submits a paused screen flow's form under the same gates |
204+
| `list_actions`, `run_action`, `resume_run` | your AI-exposed business Actions — the same `ai.exposed` opt-in as above; registered only when the bridge implements `listActions` and `runAction` (the stdio bridge does not, so it serves none), `resume_run` only when it also implements `resumeRun`. An action flagged `ai.requiresConfirmation` (`list_actions` reports it) is refused with the same 428 unless the call sends `confirm: true`, and nothing runs — ask the human first, then retry. Under an AI service account's own key (an agent acting for itself, for no person) the call is refused whatever it sends and nothing runs: hand the action to a person, or its author declares `ai.requiresConfirmation: false` when it is safe unattended. `resume_run` submits a paused screen flow's form under the same gates |
205205

206206
---
207207

@@ -318,9 +318,8 @@ there is **no top-level `temperature` / `maxTokens`** on an agent
318318
`enableActionApproval: true` (approval queue ☁️), `ai.requiresConfirmation` on
319319
the **action**, or `approval: 'always'` on an MCP tool binding. AI metadata
320320
edits are already gated: they land as drafts a human must publish (ADR-0033).
321-
⚠️ `requiresConfirmation` on the **tool** was REMOVED (ADR-0033 §2) — no
322-
execution path read it, so it produced no pause; `ToolSchema` is strict, so
323-
authoring it now fails the parse. There is no `requireApprovalFor` field.
321+
⚠️ `requiresConfirmation` on the **tool** was REMOVED (ADR-0033 §2; retired
322+
above). There is no `requireApprovalFor` field.
324323
2. **Indexing everything.** A knowledge source without a `where` filter and
325324
curated `contentFields` fills the index with drafts and boilerplate that
326325
pollute retrieval. Source hygiene is the metadata's job; relevance tuning

‎ui/apps/console/src/pages/developer/objectstack-skill.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,19 @@ create/update payload.
180180
\`confirm: true\` on an action \`list_actions\` reports as
181181
\`requiresConfirmation\` — the server REFUSES such a call without it
182182
(\`ACTION_CONFIRMATION_REQUIRED\`) and nothing runs. Ask your human first;
183-
the flag asserts an approval, it does not obtain one.
183+
the flag asserts an approval, it does not obtain one. Under an AI service
184+
account's own key (an agent acting for itself, for no person) the call is
185+
refused whatever it sends and nothing runs: hand the action to a person, or
186+
its author declares \`ai.requiresConfirmation: false\` when it is safe
187+
unattended.
184188
- **resume_run({ runId, values?, confirm? })** — continue a flow run that
185189
\`run_action\` answered with \`status: "paused"\` and a \`screen\` (a form the
186190
flow needs filled in). Send the screen's field values in \`values\`, keyed by
187191
the names in \`screen.fields\`. The run completes, or pauses again on its next
188192
screen, which you fill with another \`resume_run\`. Only the user whose call
189193
started the run can resume it, under the same gates as \`run_action\`
190-
(including \`confirm: true\` for an action flagged \`requiresConfirmation\`).
194+
(including \`confirm: true\` for an action flagged \`requiresConfirmation\`,
195+
and its refusal under an AI service account's own key whatever the call sends).
191196
192197
## Conventions & gotchas
193198

0 commit comments

Comments
 (0)