@sema-agent/sdk 26.1.0 → 28.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/README.md +151 -1
  2. package/dist/abort.d.ts +25 -0
  3. package/dist/abort.d.ts.map +1 -0
  4. package/dist/abort.js +42 -0
  5. package/dist/abort.js.map +1 -0
  6. package/dist/client.d.ts +8 -3
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +5 -4
  9. package/dist/client.js.map +1 -1
  10. package/dist/control-client.d.ts +4 -2
  11. package/dist/control-client.d.ts.map +1 -1
  12. package/dist/control-client.js +3 -3
  13. package/dist/control-client.js.map +1 -1
  14. package/dist/device/index.d.ts +2 -1
  15. package/dist/device/index.d.ts.map +1 -1
  16. package/dist/device/index.js +4 -2
  17. package/dist/device/index.js.map +1 -1
  18. package/dist/errors.d.ts +80 -15
  19. package/dist/errors.d.ts.map +1 -1
  20. package/dist/errors.js +44 -11
  21. package/dist/errors.js.map +1 -1
  22. package/dist/events.d.ts +80 -5
  23. package/dist/events.d.ts.map +1 -1
  24. package/dist/events.js.map +1 -1
  25. package/dist/index.d.ts +8 -0
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +6 -0
  28. package/dist/index.js.map +1 -1
  29. package/dist/model-route-env/index.d.ts +11 -4
  30. package/dist/model-route-env/index.d.ts.map +1 -1
  31. package/dist/model-route-env/index.js +52 -3
  32. package/dist/model-route-env/index.js.map +1 -1
  33. package/dist/registry/auth.d.ts.map +1 -1
  34. package/dist/registry/auth.js +23 -13
  35. package/dist/registry/auth.js.map +1 -1
  36. package/dist/registry/client.d.ts +9 -1
  37. package/dist/registry/client.d.ts.map +1 -1
  38. package/dist/registry/client.js +17 -2
  39. package/dist/registry/client.js.map +1 -1
  40. package/dist/registry/read-body.d.ts +2 -0
  41. package/dist/registry/read-body.d.ts.map +1 -0
  42. package/dist/registry/read-body.js +24 -0
  43. package/dist/registry/read-body.js.map +1 -0
  44. package/dist/registry/scopes-effective.d.ts.map +1 -1
  45. package/dist/registry/scopes-effective.js +4 -2
  46. package/dist/registry/scopes-effective.js.map +1 -1
  47. package/dist/resources/approvals.d.ts +23 -8
  48. package/dist/resources/approvals.d.ts.map +1 -1
  49. package/dist/resources/approvals.js +4 -3
  50. package/dist/resources/approvals.js.map +1 -1
  51. package/dist/resources/assistant.d.ts +1 -1
  52. package/dist/resources/assistant.js +1 -1
  53. package/dist/resources/attachments.d.ts +2 -1
  54. package/dist/resources/attachments.d.ts.map +1 -1
  55. package/dist/resources/attachments.js +3 -9
  56. package/dist/resources/attachments.js.map +1 -1
  57. package/dist/resources/fleet.d.ts +0 -36
  58. package/dist/resources/fleet.d.ts.map +1 -1
  59. package/dist/resources/fleet.js +40 -1
  60. package/dist/resources/fleet.js.map +1 -1
  61. package/dist/resources/ops.d.ts +2 -1
  62. package/dist/resources/ops.d.ts.map +1 -1
  63. package/dist/resources/ops.js +4 -6
  64. package/dist/resources/ops.js.map +1 -1
  65. package/dist/resources/runs.d.ts +1 -1
  66. package/dist/resources/runs.js +1 -1
  67. package/dist/resources/session-sync.d.ts +11 -3
  68. package/dist/resources/session-sync.d.ts.map +1 -1
  69. package/dist/resources/session-sync.js +7 -8
  70. package/dist/resources/session-sync.js.map +1 -1
  71. package/dist/resources/sessions.d.ts +9 -3
  72. package/dist/resources/sessions.d.ts.map +1 -1
  73. package/dist/resources/sessions.js +10 -12
  74. package/dist/resources/sessions.js.map +1 -1
  75. package/dist/resources/tasks.d.ts +3 -3
  76. package/dist/resources/tasks.d.ts.map +1 -1
  77. package/dist/resources/tasks.js +3 -3
  78. package/dist/resources/tasks.js.map +1 -1
  79. package/dist/resources/tool-approvals.d.ts +14 -5
  80. package/dist/resources/tool-approvals.d.ts.map +1 -1
  81. package/dist/resources/tool-approvals.js +14 -6
  82. package/dist/resources/tool-approvals.js.map +1 -1
  83. package/dist/settings.d.ts +1 -1
  84. package/dist/sse.d.ts.map +1 -1
  85. package/dist/sse.js +4 -4
  86. package/dist/sse.js.map +1 -1
  87. package/dist/transport.d.ts +63 -21
  88. package/dist/transport.d.ts.map +1 -1
  89. package/dist/transport.js +126 -25
  90. package/dist/transport.js.map +1 -1
  91. package/dist/types.d.ts +132 -28
  92. package/dist/types.d.ts.map +1 -1
  93. package/dist/types.js +17 -2
  94. package/dist/types.js.map +1 -1
  95. package/openapi.yaml +287 -44
  96. package/package.json +2 -2
package/openapi.yaml CHANGED
@@ -423,7 +423,7 @@ paths:
423
423
  prepare-time refusal code that HAS a status in the server's per-code triage table (`resume_at.*` — `resume_at.not_found` is 404, the rest 422 —, governance codes,
424
424
  `rewind.store_unconfigured` / `rewind.capture_disabled` / `rewind.child_scope_unsupported` / `rewind_snapshot.unresolvable`, the
425
425
  registered `config.*` codes incl. the three roster-bound ones and — server >= 7.116.0 — `config.invalid_checkpoint_store` (400) and
426
- `config.user_invoked_skill_unknown` (400: top-level `userInvokedSkills` named a skill this run does not carry) and — server >= 7.117.0 — `config.image_invalid` (400: an inline image failed the engine's byte admission; `error` starts with `TaskSpec.images: `) and — server >= 7.126.0 — `config.tool_face_control` (400: `allowTools: ["mcp__*"]`, `excludeTools: ["*"]` (and, on server 7.126.0–7.128.x only, a name in `allowTools` / `excludeTools` that no tool of this run answers to — server >= 7.129.0 runs those as written and announces each once with the operator row `runner_config_advisory`), or an `excludeTools` entry that reaches a protocol tool this leg depends on; the engine rejects before the run starts, never silently ignoring the name; `error` is the engine's sentence naming the entry, its list and why) and — server >= 7.132.0, BREAKING (200 + failed body before) — `config.agent.unknown_tool` (400: a delegated agent's `allowTools` names a near-miss / a retired name with a successor / an impossible spelling, judged by the engine before the run; the intake refusal of `agents[i].denyTools` entries that read as nothing has answered this 400 since 7.131.0) and `config.legacy_tool_name` (400: a stored session-rule row names a tool the engine reads as nothing) and `prompt.assembled_role_refused` (400: `systemPrompt` / `appendSystemPrompt` — `settings.outputStyle` folded in — carries the engine's locked prompt text verbatim; send role text only) and — server >= 7.131.0 — `config.user_attachment_invalid` (400; server >= 7.132.0 the body adds `detail: { path, index? }`), `corrupt_session`; these registered codes answer 400 on all three submit legs without spending the `Idempotency-Key` (async / live legs: 2xx with the same code on the terminal run row); codes outside the table, e.g. `rewind.invalid_spec`, stay
426
+ `config.user_invoked_skill_unknown` (400: top-level `userInvokedSkills` named a skill this run does not carry) and — server >= 7.117.0 — `config.image_invalid` (400: an inline image failed the engine's byte admission; `error` starts with `TaskSpec.images: `) and — server >= 7.126.0 — `config.tool_face_control` (400: `allowTools: ["mcp__*"]`, `excludeTools: ["*"]` (on server 7.126.0–7.136.x; server >= 7.137.0 accepts it as a whole-name glob) (and, on server 7.126.0–7.128.x only, a name in `allowTools` / `excludeTools` that no tool of this run answers to — server >= 7.129.0 runs those as written and announces each once with the operator row `runner_config_advisory`), or an `excludeTools` entry that reaches a protocol tool this leg depends on (server >= 7.137.0 that includes `*` on a run with `outputSchema`); the engine rejects before the run starts, never silently ignoring the name; `error` is the engine's sentence naming the entry, its list and why) and — server >= 7.132.0, BREAKING (200 + failed body before) — `config.agent.unknown_tool` (400: a delegated agent's `allowTools` names a near-miss / a retired name with a successor / an impossible spelling, judged by the engine before the run; the intake refusal of `agents[i].denyTools` entries that read as nothing has answered this 400 since 7.131.0) and `config.legacy_tool_name` (400: a stored session-rule row names a tool the engine reads as nothing) and `prompt.assembled_role_refused` (400: `systemPrompt` / `appendSystemPrompt` — `settings.outputStyle` folded in — carries the engine's locked prompt text verbatim; send role text only) and — server >= 7.131.0 — `config.user_attachment_invalid` (400; server >= 7.132.0 the body adds `detail: { path, index? }`), `corrupt_session`; these registered codes answer 400 on all three submit legs without spending the `Idempotency-Key` (async / live legs: 2xx with the same code on the terminal run row); codes outside the table, e.g. `rewind.invalid_spec`, stay
427
427
  200 with a failed body) answers its 4xx / 5xx ERROR BODY only when the whole submission did ZERO WORK (cumulative
428
428
  `stats.turns === 0` AND `stats.tokens === 0` — the common case: nothing billed, not idempotency-cached). When a
429
429
  `verify` / `cascade` run's earlier tier already ran turns and only the last tier is refused, the SAME code arrives
@@ -517,6 +517,9 @@ paths:
517
517
  no meta header; SQL backends: one `session_event.payload` row is not a readable entry). Nothing ran, nothing
518
518
  billed; `error` is the engine / store sentence (no on-disk path). DETERMINISTIC: a retry cannot change it (the SDK
519
519
  does not auto-retry this code); the repair is the operator's. Also `internal.error` (unclassified).
520
+ server >= 7.137.0: `invalid_session` — the session's stored log reads but is structurally broken (a dangling parent, a self-parent, a cycle or
521
+ a missing leaf); on the synchronous leg it replaces the earlier `200` + a failed body. Nothing ran. DETERMINISTIC like `corrupt_session`: a retry
522
+ cannot change it (the SDK does not auto-retry this code) — switch to a new session or fork from an entry above the break.
520
523
  content:
521
524
  application/json:
522
525
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -1851,6 +1854,14 @@ paths:
1851
1854
  properties:
1852
1855
  error: { type: string }
1853
1856
  total: { type: integer, description: 'present on the out-of-range `?message=` 404 — the message count available.' }
1857
+ '500':
1858
+ description: >-
1859
+ server >= 7.137.0: `invalid_session` — the session's stored log reads but is structurally broken (a dangling parent, a self-parent, a cycle or a
1860
+ missing leaf); this read answers it instead of `internal.error`. DETERMINISTIC: a retry cannot change it (the SDK does not auto-retry this code) —
1861
+ switch to a new session or fork from an entry above the break. Also `internal.error` (unclassified).
1862
+ content:
1863
+ application/json:
1864
+ schema: { $ref: '#/components/schemas/ErrorResponse' }
1854
1865
  patch:
1855
1866
  tags: [sessions]
1856
1867
  operationId: sessionsPatch
@@ -1981,6 +1992,14 @@ paths:
1981
1992
  '400': { $ref: '#/components/responses/BadRequest' }
1982
1993
  '401': { $ref: '#/components/responses/Unauthorized' }
1983
1994
  '404': { $ref: '#/components/responses/NotFound' }
1995
+ '500':
1996
+ description: >-
1997
+ server >= 7.137.0: `invalid_session` — this route has no error mapping of its own; a session error it raises reaches the server's top-level catch, which maps it through the shared table: an `invalid_session` error
1998
+ (the SQL session stores raise it while copying a structurally broken stored log) answers 500 `invalid_session` (it was `internal.error` before 7.137.0), `corrupt_session` answers 500 `corrupt_session` as before.
1999
+ DETERMINISTIC: a retry cannot change either (the SDK does not auto-retry these codes) — start a new session. Also `internal.error` (unclassified).
2000
+ content:
2001
+ application/json:
2002
+ schema: { $ref: '#/components/schemas/ErrorResponse' }
1984
2003
  '501': { $ref: '#/components/responses/NotImplemented' }
1985
2004
 
1986
2005
  /v1/sessions/{sessionId}/head:
@@ -2075,6 +2094,9 @@ paths:
2075
2094
  (declared 2026-07-31) errorCode "internal.error" — `routes/sessions.ts`'s catch around the owner
2076
2095
  lookup / subscribe setup, sent only when it fires BEFORE the SSE `200` headers went out
2077
2096
  (`!res.headersSent`); once streaming has started a failure just ends the connection instead.
2097
+ That catch maps a session error through the shared table first: a session error with a mapped code answers that code (`corrupt_session`; since server 7.137.0 the table also maps `invalid_session` for a structurally broken stored log —
2098
+ DETERMINISTIC: a retry cannot change it; the SDK does not auto-retry either code); any other failure stays `internal.error`. The mapping is there but this response does not occur on the stores the server ships:
2099
+ none of the three stores the server ships (local file, PostgreSQL, MySQL-protocol) raises `invalid_session` before the stream starts — their head read does not walk the log's parent chain — so only a store of your own can reach it.
2078
2100
  content:
2079
2101
  application/json:
2080
2102
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -2784,7 +2806,10 @@ paths:
2784
2806
  '404': { $ref: '#/components/responses/NotFound' }
2785
2807
  '500':
2786
2808
  description: >-
2787
- errorCode "internal.error" — `routes/sessions.ts`'s catch around `face.status(sessionId)`: core
2809
+ Two codes. server >= 7.137.0: `invalid_session` — the session's stored log reads but is structurally broken (a dangling parent, a self-parent,
2810
+ a cycle or a missing leaf); this read answers it instead of `internal.error`. DETERMINISTIC: a retry cannot change it (the SDK does not
2811
+ auto-retry this code) — switch to a new session or fork from an entry above the break.
2812
+ Otherwise errorCode "internal.error" — `routes/sessions.ts`'s catch around `face.status(sessionId)`: core
2788
2813
  promises the face never throws, so reaching this arm is an assembly defect; the server fails LOUD
2789
2814
  (500) rather than answering a plausible all-keys-absent body. The SDK maps it to
2790
2815
  `InternalServerError`. (codex R1 of the 7.3.1 batch: the arm exists in the shipped 7.53.0 route and
@@ -2929,6 +2954,7 @@ paths:
2929
2954
  server >= 7.135.0: `503 state.file_history_unreadable` — this session's file history cannot be read WHOLE (a boundary torn / unreadable, the tracked set unreadable); nothing is exported this time. 🔴 It is NOT "no history":
2930
2955
  with nothing to export the manifest still answers `200` with `fileHistory: null`. May carry `permanence` (`transient` / `terminal`; absent = the store did not judge — see `ErrorResponse.permanence`). Older servers read an
2931
2956
  unreadable history as "none" (manifest 200 / blob 404).
2957
+ Server >= 7.136.0: the SAME code with `permanence: "transient"` also answers a database / store connection failure on this leg (the entry-id set, policy, anchors, session row, the history read — the code's `file_history` is its origin; the action reads `permanence`); before 7.136.0 that fell to a generic `500 internal.error`. The SDK retries this 503 up to `maxRetries` times BEFORE the first byte (the same retrier on all three pull legs), except `permanence: "terminal"` (the store judged retrying useless until it is repaired).
2932
2958
  content:
2933
2959
  application/json:
2934
2960
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -2969,6 +2995,13 @@ paths:
2969
2995
  '401': { $ref: '#/components/responses/Unauthorized' }
2970
2996
  '404': { $ref: '#/components/responses/NotFound' }
2971
2997
  '501': { $ref: '#/components/responses/NotImplemented' }
2998
+ '503':
2999
+ description: >-
3000
+ server >= 7.136.0: `503 state.file_history_unreadable` + `permanence: "transient"` — a database / store connection failure BEFORE the response head is sent (nothing is streamed; before 7.136.0 a generic `500 internal.error`). The code's `file_history` is its origin; the action reads `permanence` (see `ErrorResponse.permanence`).
3001
+ A disconnect AFTER the 200 head can only truncate the stream — no `{"__sync":"end"}` trailer — and is never a 5xx. The SDK retries the 503 up to `maxRetries` times BEFORE the first byte (the same retrier on all three pull legs), except `permanence: "terminal"` (the store judged retrying useless until it is repaired); a truncated body is not retried (resume with `afterSeq`).
3002
+ content:
3003
+ application/json:
3004
+ schema: { $ref: '#/components/schemas/ErrorResponse' }
2972
3005
 
2973
3006
  /v1/sessions/{sessionId}/sync/history/blobs/{hash}:
2974
3007
  parameters:
@@ -3011,6 +3044,7 @@ paths:
3011
3044
  server >= 7.135.0: `503 state.file_history_unreadable` — the history cannot be read WHOLE, so the server cannot tell whether this hash is one the session references — it does NOT answer "no such blob" (that is `404 not_found.blob`) and gives no bytes. 🔴 It is NOT "no history":
3012
3045
  with nothing to export the manifest still answers `200` with `fileHistory: null`. May carry `permanence` (`transient` / `terminal`; absent = the store did not judge — see `ErrorResponse.permanence`). Older servers read an
3013
3046
  unreadable history as "none" (manifest 200 / blob 404).
3047
+ Server >= 7.136.0: the SAME code with `permanence: "transient"` also answers a database / store connection failure on this leg (the history read or the blob bytes read — the code's `file_history` is its origin; the action reads `permanence`); before 7.136.0 that fell to a generic `500 internal.error`. The SDK retries this 503 up to `maxRetries` times BEFORE the first byte (the same retrier on all three pull legs), except `permanence: "terminal"` (the store judged retrying useless until it is repaired).
3014
3048
  content:
3015
3049
  application/json:
3016
3050
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -3375,7 +3409,10 @@ paths:
3375
3409
  schema: { $ref: '#/components/schemas/ApprovalDecision' }
3376
3410
  responses:
3377
3411
  '200':
3378
- description: Decision accepted; the run resumes.
3412
+ description: >-
3413
+ Decision accepted. Usually the run (or the parked background agent) resumes; on the two parked-agent forms that can never revive,
3414
+ a DENY (server >= 7.136.0) is answered `{ taskId, status: "failed", decision: "deny" }` instead — the card is voided and nothing resumes
3415
+ (see `ParkedDecideAccepted`, `ApprovalDecisionResult`).
3379
3416
  content:
3380
3417
  application/json:
3381
3418
  schema: { $ref: '#/components/schemas/ApprovalDecisionResult' }
@@ -3550,6 +3587,10 @@ paths:
3550
3587
  the claim and rolls back when it is gone or different) — a 7.104.0 session delete retires such cards, so this form
3551
3588
  mostly meets cards left by a pre-7.104.0 delete; `decide.row_unrevivable` (DecideError) now also answers when the
3552
3589
  parked row carries no root-session anchor (refused before the claim, nothing consumed).
3590
+ server >= 7.136.0 — those two never-revive forms (a parked child whose row carries no agent name; a row with no root-session anchor) keep answering APPROVE with this 409 (the sentence now ends
3591
+ by pointing at deny), but DENY answers `200 { taskId, status: "failed", decision: "deny" }`: the card is voided under its own scope CAS and leaves the pending queue and the
3592
+ `/v1/approvals/stream` snapshot, the child ends `failed`, the gated tool never runs, no `remember` is granted; a lost void CAS is the existing 409 `decide.gate_moved`. Branch on
3593
+ `status` / `errorCode`, not on the sentence.
3553
3594
  content:
3554
3595
  application/json:
3555
3596
  schema: { $ref: '#/components/schemas/ResumeLegConflictError' }
@@ -3883,6 +3924,8 @@ paths:
3883
3924
  `errorCode:"gate_not_plan_review"` — a non-`plan_review` gate. A plan decision must NEVER resolve a
3884
3925
  tool approval / resource_limit suspend (the checkpoint is never consumed). SEMANTIC (wrong-gate),
3885
3926
  NOT a session-CAS conflict. SDK → GateNotPlanReviewError.
3927
+ server >= 7.137.0: `errorCode:"approval_stale"` — the body carried `checkpointId` and it is not the session's pending plan gate; body `currentPending: { checkpointId }`
3928
+ ($ref ApprovalStalePlanGate; SDK `ApprovalStaleError.currentPlanGate`). A narrow window after the stale check answers `conflict.not_resumable` (the claim-loser code; the decision is not recorded either).
3886
3929
  content:
3887
3930
  application/json:
3888
3931
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -6860,7 +6903,7 @@ components:
6860
6903
  schema: { $ref: '#/components/schemas/Principal' }
6861
6904
  description: >
6862
6905
  Authenticated end-user identity (REQUIRED; principal-first, CORE-PRINCIPLES §3). Opaque to the service
6863
- (memory scope + session owner key; format NOT validated server-side). The SDK normalizes; anonymous must
6906
+ (memory scope + session owner key; its meaning is not interpreted, but the server refuses a value that is not a principal name: 400 `principal_not_a_name` (server >= 7.137.0 — empty / whitespace-only, control, line-separator or invisible format characters; a proxy that writes raw UTF-8 bytes into the header is read as latin1 and refused), 400 `principal_reserved` (a reserved sentinel) and 400 `principal_too_long` (over 190 characters)). The SDK normalizes; anonymous must
6864
6907
  be explicit (`anon:<id>`). On the multi-tenant doors this is set PER REQUEST.
6865
6908
  IdempotencyKey:
6866
6909
  in: header
@@ -7201,7 +7244,7 @@ components:
7201
7244
  whenToUse: { type: string, description: 'when the model should delegate to this agent (shown in the Task tool''s agent list). ≤4096 chars.' }
7202
7245
  whenToUseLean: { type: string, description: 'compact variant of `whenToUse` for lean tool listings. ≤4096 chars.' }
7203
7246
  allowTools: { type: array, items: { type: string }, description: 'allowlist of tool names. Omit ⇒ inherit ALL tools. server >= 7.126.0: the names are judged by the ENGINE, one selector shared with the root run''s `allowTools` / `excludeTools`; a name no tool answers to => the run is rejected with the terminal code `config.agent.unknown_tool` (not an HTTP code) on server 7.126.0–7.128.x, and RUNS AS WRITTEN on server >= 7.129.0 (the entry is kept, an operator row `runner_config_advisory` announces it once; `denyTools: ["bash"]` does not deny `Bash`).' }
7204
- denyTools: { type: array, items: { type: string }, description: 'denylist (SUBTRACTIVE — applied after `allowTools`). server >= 7.126.0: same engine-judged selector as `allowTools`; `Tool(content)` => the whole tool.' }
7247
+ denyTools: { type: array, items: { type: string }, description: 'denylist (SUBTRACTIVE — applied after `allowTools`). server >= 7.126.0: same engine-judged selector as `allowTools`; `Tool(content)` => the whole tool. server >= 7.137.0: a `*` inside a restrict-side name is a whole-name glob (`Bas*` withholds the tools whose names match). `denyTools: ["*"]` is accepted at intake, but this is the own list of the delegated sub-agent leg, which depends on the protocol tool `ReportBlocked`: the glob takes it away too, so every spawn of this sub-agent is refused before it starts with `config.tool_face_control` (reason `protocol_denied`; `Re*` reaches `ReportBlocked` as well). For a sub-agent with no tools write `allowTools: []` (a leg''s protocol tools need no mention).' }
7205
7248
  skills:
7206
7249
  type: array
7207
7250
  description: 'skills preloaded into the agent.'
@@ -7375,10 +7418,16 @@ components:
7375
7418
  `egress:true` + `effect:"write"` (core's ruling); `toolAxes` is the caller's explicit override face.
7376
7419
  🔴 A malformed entry drops the WHOLE peer (named in a warn), never "drop the bad key and keep the
7377
7420
  peer": `allowSkills` is a NARROWING field whose absence means "no restriction", so a half-applied
7378
- entry would turn a narrowing intent into a widening. The request itself is not rejected.
7379
- The center/config baseline wins on a name clash (the peer name IS the tool namespace segment). Over
7380
- the 32-entry cap the surplus entries are DROPPED and named too — same disposition as a malformed
7381
- entry, not a 400.
7421
+ entry would turn a narrowing intent into a widening.
7422
+ 🔴 server >= 7.136.0 — on a FRESH submit (the three submit doors) a badly written declaration is REFUSED, not dropped, and no longer answers a 200
7423
+ that reads as "in effect": a list that is not an array / an entry that is not an object / a key value the judge cannot read as usable
7424
+ (`url` not an http(s) string, `headers` values that are not strings, `allowSkills` not a string array …) ⇒ `400 request.field_invalid` with the sentence only
7425
+ (no `field` / `reason`); a key outside the peer vocabulary (a mis-spelled `allowSkill` …) ⇒ `400 request.body_shape` + `unknownKeys` (full coordinates, e.g.
7426
+ `a2aPeers[0].allowSkill`); a `url` / `cardUrl` that carries a credential ⇒ `400 request.field_invalid` WITH `field` / `reason` (`url_userinfo` / `url_credential_param`);
7427
+ more than 32 entries ⇒ `400 request.field_invalid` WITH `field: "a2aPeers"` / `reason: "over_cap"` / `count` / `cap`. Branch on `errorCode` / `unknownKeys` / `field`, never on the sentence.
7428
+ The durable-resume REPLAY leg (a stored body re-read on resume) does NOT refuse: it keeps the reader's degradation — a bad entry is not mounted and is named in an operator warn, the request is not 400.
7429
+ Servers <= 7.135.x: a malformed entry drops the whole peer (warn), the request is not rejected, and over the cap the surplus is dropped (7.135.0 already answers 400 `over_cap`).
7430
+ The center/config baseline wins on a name clash (the peer name IS the tool namespace segment).
7382
7431
  items: { $ref: '#/components/schemas/A2aServerSpec' }
7383
7432
  resumeAt:
7384
7433
  type: string
@@ -7509,7 +7558,7 @@ components:
7509
7558
  THIS field is omitted the bundled mode (if any) still supplies one; only when neither carrier supplies
7510
7559
  a mode is there no mode-derived gate (the same posture as `bypassPermissions`). Sending this field is
7511
7560
  also NOT the same as leaving it unset — an explicit `default` actively installs the ask gate. A fresh
7512
- submit with an unknown string is rejected fail-loud with 400 (sibling of `promptProfile`); the old
7561
+ submit with an unknown string is rejected fail-loud with 400 (same fail-loud posture as `promptLean`); the old
7513
7562
  silent most-asking-mode fallback no longer applies to fresh submits — a lenient version of that
7514
7563
  fallback survives only internally, for RESUME replay of a pre-gate persisted
7515
7564
  body. Carrying the intent (not pre-interpreted core fields) = one interpretation across frontends +
@@ -7597,7 +7646,7 @@ components:
7597
7646
  not exceed 5 MiB — otherwise the engine refuses BEFORE the first model call (after the UserPromptSubmit hook; not one model token spent) with 400 `config.image_invalid`, whose
7598
7647
  `error` starts with `TaskSpec.images: `. Before 7.117.0 such an image was sent as-is to the model provider and the whole first request failed there (no code to branch on).
7599
7648
  A base64 string longer than 5 242 880 characters (the model API's 5 MB image cap; the server reads the engine's exported constant) is NOT this code: the submit gate refuses it first
7600
- with 413 `request.payload_too_large` (zero model calls, no submit hook, no run row). The `{ url }` arm is unchanged. The model must accept image input (`ModelInfo.vision`; absent = unknown, send anyway).
7649
+ with 413 `request.payload_too_large` (zero model calls, no submit hook, no run row). The `{ url }` arm: from server >= 7.136.0 a URL that carries a credential (`user:pass@host`, or a credential-named query / fragment parameter) is refused on a FRESH submit with 400 `request.field_invalid` + `field: "images[i].url"` + `reason` `url_userinfo` / `url_credential_param` (the sixth seat of the URL-credential judge; send the bytes inline as `{ data, mimeType }` instead — an inline image never lands in a URL); the durable-resume replay of a stored body is not judged. Otherwise unchanged (the server has long recognised the type by signature). The model must accept image input (`ModelInfo.vision`; absent = unknown, send anyway).
7601
7650
  items:
7602
7651
  oneOf:
7603
7652
  - type: object
@@ -7656,10 +7705,14 @@ components:
7656
7705
  properties:
7657
7706
  name: { type: string, minLength: 1, maxLength: 256 }
7658
7707
  turnReminder: { type: string, minLength: 1 }
7659
- promptProfile:
7660
- type: string
7661
- enum: [simple, classic]
7662
- description: Which prompt-assembly profile to use.
7708
+ promptLean:
7709
+ type: boolean
7710
+ description: >
7711
+ server >=7.137.0 (core 7.56.0 `TaskSpec.promptLean`) — the prompt's SHAPE: `true` = the lean short form, `false` = the long
7712
+ classic form, omitted = the model catalog entry's own declaration. Pure presentation axis (no policy change); inherits through the
7713
+ whole delegation tree. A boolean replaces the retired two-word profile key (the old `classic` is `false`, the old `simple` is
7714
+ "send no key"). A non-boolean value => 400 `request.field_invalid`; a server older than 7.137.0 answers 400 `request.body_shape`
7715
+ (`unknownKeys`) because its request-key closure does not know the key, and 7.137.0 refuses the retired key the same way.
7663
7716
  toolMaterializeStrategy:
7664
7717
  type: string
7665
7718
  enum: [static, swap]
@@ -7779,7 +7832,7 @@ components:
7779
7832
  server >= 7.117.0 (`allowLayer === true`, core 7.42.0): the WHOLE list goes to the engine's allow layer and a listed call is NOT ASKED — the engine's ordinary and
7780
7833
  "nobody stated it" questions are cleared, built-in write gates and shell checks included (like the reference implementation's `permissions.allow`); content forms
7781
7834
  (`Bash(git:*)`, `Read(//dir/**)`) are accepted; entries the engine reads as nothing (`*`, write-path forms such as `Edit(src/**)`, domain forms, names with whitespace) are NOT
7782
- refused — the run opens with an `engine_notice` `permission.allowed_tool_not_granted`. Any layer's deny / ask rule, operator `APPROVAL_REQUIRE` / `APPROVAL_NEVER_AUTO` /
7835
+ refused — the run opens with an `engine_notice` `permission.allowed_tool_not_granted` (server >= 7.137.0: a lone `*` still grants nothing and is still announced, but the other entries of the same list now apply — through 7.136.x one `*` voided the whole list). Any layer's deny / ask rule, operator `APPROVAL_REQUIRE` / `APPROVAL_NEVER_AUTO` /
7783
7836
  `MANUAL_MODE_SHELL_GATE=always`, write protection, governance, a hook's ask and plan-mode asks still ask (a matching `request` member then shows as `allowRuleShadowed` on the
7784
7837
  card). The submit gate judges only the shape (array of strings, at most 1000 entries => 400) and the NAMES (the same judge and the same sentence as `deny` / `ask`: a retired name,
7785
7838
  an unprefixed short name, or a protocol name whose server segment cannot be minted / is missing / is a wildcard (`mcp__*`) is a whole-request 422) — never the content.
@@ -7926,7 +7979,13 @@ components:
7926
7979
  Tool names to withhold from this task's roster. server >= 7.126.0 (engine 7.49.0, contract G.9e): read with the SAME grammar as `allowTools`; a name that
7927
7980
  NO tool answers to rejects the run before it starts with `config.tool_face_control` on server 7.126.0–7.128.x (sync leg 400, no token burned; streamed / background legs: a `failed` terminal with
7928
7981
  the same code); server >= 7.129.0 RUNS it as written (the entry is kept and takes effect if a tool of that name is mounted later; an operator row `runner_config_advisory` announces it once, with the spelling to write —
7929
- names are read verbatim, so `excludeTools: ["bash"]` does not withhold `Bash`). `"*"` is rejected on this list too (unmount-everything is only `excludeAllTools`).
7982
+ names are read verbatim, so `excludeTools: ["bash"]` does not withhold `Bash`). `"*"` is rejected on this list too (unmount-everything is only `excludeAllTools`) — that is the <= 7.136.x reading: server >= 7.137.0 reads a `*` inside a restrict-side name as a whole-name glob (engine session-rule grammar 5), so `excludeTools: ["*"]` is no longer refused for the `*` itself and withholds every tool, `Bas*` the tools whose names match.
7983
+ 🔴 Accepted does not mean always withheld — a protocol tool the run depends on is the exception: when this list takes it away the engine still refuses with `config.tool_face_control`
7984
+ (reason `protocol_denied`): a run with `outputSchema` depends on `StructuredOutput`, a delegated leg on `ReportBlocked`; it is refused when the leg's own list or a list it inherits (for example the `excludeTools` of the run that spawned it) reaches
7985
+ the protocol tool — the same judgement for both (a teammate leg's `SendMessage` and its siblings look at the leg's own list only). `*` reaches them too,
7986
+ so `excludeTools: ["*"]` together with `outputSchema` is refused, and only a run with no protocol leg (no `outputSchema`, and not a delegated / teammate / goal / observer leg the engine starts itself — their protocol tools are `ReportBlocked`, `SendMessage` and its siblings, `DeclareDone`, `ObserverReport`) is accepted and emptied. For "no tools, structured output" write `allowTools: []`
7987
+ (a leg's protocol tools need no mention), not `*`.
7988
+ Accepted has a consequence on the other side too: `excludeTools: ["Re*"]` on a run with no protocol leg is accepted and the run goes on, but every delegated sub-agent it spawns is refused before it starts (`Re*` reaches `ReportBlocked`; this list is the sub-agent's inherited list). A sub-agent definition's own `denyTools` is that leg's own list, judged the same way (see `agents[].denyTools`).
7930
7989
  allowTools:
7931
7990
  type: array
7932
7991
  items: { type: string }
@@ -7951,7 +8010,7 @@ components:
7951
8010
  and the stream carries zero `tool_start` / `tool_end` / `tool_disclosure` frames.
7952
8011
  🔴 DELIBERATELY NOT FOLDED INTO `excludeTools`: `"*"` is a LEGAL caller tool name, so "unmount
7953
8012
  everything" cannot be spelled `excludeTools:["*"]` without collapsing it with "unmount the one tool
7954
- called `*`". Both keys may ride together and each takes effect — no conflict, no 400.
8013
+ called `*`". Both keys may ride together and each takes effect — no conflict, no 400 (the one refusal is the protocol-tool case below). (Server >= 7.137.0: `excludeTools:["*"]` is no longer refused for the `*` itself and reads as the whole-name glob = every tool — except that only a run with no protocol leg (no `outputSchema`, and not a delegated / teammate / goal / observer leg the engine starts itself) is accepted and emptied; on any other run the glob also takes away the protocol tool the run depends on and the engine refuses with `config.tool_face_control` (reason `protocol_denied`), together with `excludeAllTools: true` as well — `excludeAllTools: true` alone is not refused; the two stay separate keys with separate read paths.)
7955
8014
  🔴 `true` IS THE ONLY VALUE THAT MEANS ANYTHING: the server writes only a literal `true` onto the
7956
8015
  engine's TaskSpec, because sending `false` merely restates a default the ENGINE owns (absent /
7957
8016
  `false` ⇒ roster unchanged). A non-boolean is a 400 `request.field_invalid` on the synchronous submit
@@ -8053,6 +8112,12 @@ components:
8053
8112
  agentListing: { type: boolean }
8054
8113
  skillsListing: { type: boolean }
8055
8114
  mcpInstructions: { type: boolean }
8115
+ mcpUnavailable:
8116
+ type: boolean
8117
+ description: >-
8118
+ server >= 7.137.0 (engine 7.56.0): the "an MCP server could not be attached this turn" attachment frame — DEFAULT ON; send `false` to turn it off.
8119
+ A non-boolean value => 400 `request.field_invalid` (`attachments.mcpUnavailable must be a boolean`). A server <= 7.136.x silently drops the key
8120
+ (the frame stays on), so sending it there is a harmless no-op — never sniff the version.
8056
8121
  limits:
8057
8122
  type: object
8058
8123
  description: >
@@ -8439,6 +8504,12 @@ components:
8439
8504
  cause (`terminal`), not the eight parallel plane keys — see `TerminalCause`.
8440
8505
  required: [taskId, sessionId, terminal, stats]
8441
8506
  properties:
8507
+ resultEntryIds:
8508
+ type: array
8509
+ items: { type: string }
8510
+ description: >-
8511
+ server >= 7.137.0 (engine 7.56.0 `TaskResult`; passed through verbatim on all four result faces): the session-entry ids (session order; the same batch as the `message_committed` frames) of the COMMITTED
8512
+ messages `result` was read from. EMPTY list = this run's `result` was read from no committed message; ABSENT = provenance unknown (records written by an earlier engine, results rebuilt from a parked row) — the two read differently.
8442
8513
  warnings:
8443
8514
  type: array
8444
8515
  items: { $ref: '#/components/schemas/EntryProblem' }
@@ -9721,10 +9792,27 @@ components:
9721
9792
  inherit_env.own_credentials_withheld:
9722
9793
  type: boolean
9723
9794
  description: >-
9724
- ENGINE CAPABILITY WORD (core `ENGINE_CAPABILITIES`, core 7.51.1; the key IS the word, dotted, value always `true` when present; sdk 23.0.0 `ENGINE_CAPABILITY_WORDS` derives the typed key from the engine's list):
9795
+ ENGINE CAPABILITY WORD (core `ENGINE_CAPABILITIES`, core 7.51.1; the key IS the word, dotted; the first two words are `true` when present (the second can be `false`, see below), the third (`mods.skill_seat`) is a FACT bit that is `false` here; sdk 23.0.0 `ENGINE_CAPABILITY_WORDS` derives the typed key from the engine's list):
9725
9796
  a child process spawned on this host NEVER inherits a name the deployment declared as its own credential — every `inheritEnv` policy (`"all"` and `"scrub"` alike) subtracts that list first, and an allow list naming one is
9726
9797
  refused. It speaks of INHERITANCE only (the engine process's own environment stays readable to same-user processes on the host; a credential that never enters it remains the root fix).
9727
9798
  ABSENT = an old server (<= 7.128.x) or a word this deployment does not wire: read it as "not promised", not as "absent capability". A shell gates on the word, never on a version number.
9799
+ mods.skill_seat:
9800
+ type: boolean
9801
+ description: >-
9802
+ ENGINE CAPABILITY WORD (core `ENGINE_CAPABILITIES`' third word, core 7.56.0; server >= 7.137.0 projects it; the key IS the word, dotted): does this service compile a skill's own
9803
+ hooks (the frontmatter `hooks:`) into skill-seat registrations (`SkillSpec.mods`)? 🔴 This service does NOT, so the bit is always `false` (present, not absent): a request skill
9804
+ (`skills[]` / `agents[].skills[]`) carrying `mods` is refused 400 `request.field_invalid` (registrations are code the deployment mounts, not request data). Do not project a skill
9805
+ frontmatter's hooks into the request until this reads `true`. ABSENT = a server <= 7.136.x (does not compile them either).
9806
+ planReviewCheckpointId:
9807
+ type: boolean
9808
+ description: >-
9809
+ server >= 7.137.0 (always true — a version fact, hangs on no facility): `POST /v1/assistant/tasks/{taskId}/plan_review` accepts the gate-identity key `checkpointId` (the gate you decided on
9810
+ changed => 409 `approval_stale`, nothing recorded). It answers "does this binary's gate accept the key", not "is plan_review usable on this deployment". Read the bit BEFORE sending the
9811
+ key: ABSENT = an older server (7.86.0-7.136.x answer the key with 400 `request.body_shape`; older ones drop it silently).
9812
+ credentialPlane:
9813
+ allOf: [{ $ref: '#/components/schemas/CredentialPlaneCapability' }]
9814
+ description: >-
9815
+ server >= 7.137.0 (config-dependent; the object is always present): the member git credential plane's one reading — see `CredentialPlaneCapability`. ABSENT = an older server: render "plane off, reason unknown".
9728
9816
  inherit_env.own_credential_values_withheld:
9729
9817
  type: boolean
9730
9818
  description: >-
@@ -10339,7 +10427,7 @@ components:
10339
10427
  server >= 7.135.0 (predicate class "always true", read per request from the engine's protocol table): the session-rule write faces (`PUT /v1/sessions/{id}/policy`, the `policy` face of `POST /v1/sessions/{id}/sync/import`)
10340
10428
  accept — in `toolAllow` / `toolDeny` — the three COVERING FORMS of every protocol namespace the engine knows (today `mcp__` and `a2a__`): the whole peer (`mcp__srv`), a tool-segment wildcard (`mcp__srv__*`)
10341
10429
  and a tool-segment glob (`mcp__srv__get_*`); the engine's matcher reads each as ONE GROUP of tools. A client may stop refusing those three forms losslessly on this bit alone (never on a version guess).
10342
- The bit says NOTHING about other wildcards: `*`, partial peer-segment wildcards (`mcp__git*`) and a trailing-separator `mcp__srv__` are still refused by the write face (`400 rules.inert_entry`); the whole-protocol
10430
+ The bit says NOTHING about other wildcards: `*`, partial peer-segment wildcards (`mcp__git*`) and a trailing-separator `mcp__srv__` are refused by the write face on the GRANT side (`toolAllow`: `400 rules.inert_entry`); on the RESTRICT side (`toolDeny`) server >= 7.137.0 reads a `*` inside a name as a whole-name glob and accepts `*`, `mcp__git*`, `Bas*`; the whole-protocol
10343
10431
  name `mcp__*` is accepted only in `toolDeny`. Orthogonal to `sessionPolicy` (does the deployment have a session-rules write face at all): read `sessionPolicy` AND this bit. ABSENT (older server) and `false` ⇒ read as "do not widen".
10344
10432
  projectMemory:
10345
10433
  type: boolean
@@ -10379,9 +10467,10 @@ components:
10379
10467
  additionalProperties: true
10380
10468
  properties:
10381
10469
  enabled: { type: boolean, enum: [true] }
10382
- protocolVersion: { type: integer, description: 'The protocol REVISION this server speaks (the `challenge` frame carries the same value; accepted window [1, 2] on server >= 7.133.0). Server >= 7.133.0 reads 2 (<= 7.132.x read 1). An executor declares the SMALLER of its own highest revision and this value, and takes its outcome-code set from the declared revision (revision 2 added `liveness_no_output`).' }
10470
+ protocolVersion: { type: integer, description: 'The protocol REVISION this server speaks (the `challenge` frame carries the same value; accepted window [1, 3] on server >= 7.137.0). Server >= 7.137.0 reads 3 (7.133.x-7.136.x read 2, <= 7.132.x read 1). An executor declares the SMALLER of its own highest revision and this value, and takes its outcome-code set from the declared revision (revision 2 added `liveness_no_output`; revision 3 added `name_too_long`, file instructions only).' }
10383
10471
  maxInflightPerDevice: { type: integer }
10384
10472
  wsPath: { type: string }
10473
+ relayUrl: { type: string, description: 'server >= 7.137.0. PRESENT-IFF the operator declared `DEVICE_RELAY_URL`: the device-facing direct entry — an absolute ws(s) URL (no userinfo / query / fragment), verbatim. A dialer dials it instead of building engine address + `wsPath`; absent = build it as before.' }
10385
10474
  management: { type: boolean, description: 'server >= 7.88.0. `/v1/devices/*` admin verbs present. PRESENT-IFF — absent means a pre-7.88.0 peer (unknown), not false.' }
10386
10475
  memoryEngine:
10387
10476
  description: >
@@ -10972,6 +11061,7 @@ components:
10972
11061
  server >= 7.116.0. The skill's run-scoped DENY-RULE source (same grammar / gates / probe as `allowedTools`): once the skill
10973
11062
  is activated these tools are refused for the run (no execution, no card; `tool_end.gate.disposition` is
10974
11063
  `{ kind: "denied", deniedBy: "policy" }`); write-path forms and command rules compile into deny rows too.
11064
+ 🔁 server >= 7.137.0: a `*` inside a restrict-side name is a whole-name glob (engine session-rule grammar 5) — `disallowedTools: ["*"]` is ACCEPTED (200) and refuses every tool; `mcp__*`, `mcp__git*`, `mcp__srv__get_*` and the domain form `WebFetch(domain:…)` are accepted too (checked entry by entry against the 7.137.0 admission door). The next paragraph's list (`*`, the domain form, a protocol name with a wildcard) is the <= 7.136.x reading; what 7.137.0 still refuses: an entry the engine reads as nothing — exactly four reason words: `near_miss` (differs from a mounted tool name only by case: `BASH`, `agent`), `tool_name` (a retired name or a short name without its protocol prefix: `bash`, `Task`, `figma__x`; a protocol name whose tool segment cannot be minted: `mcp__srv__`), `content_unsupported` (the tool takes no content form: `WebSearch(foo)`), `grammar` (surrounding whitespace, unbalanced parentheses, invisible characters, an empty string, a wildcard domain `WebFetch(domain:*)`).
10975
11065
  🔴 server >= 7.117.0: an entry the engine reads as nothing (`*`, a domain form `WebFetch(domain:…)`, a protocol name with a wildcard, a name with
10976
11066
  whitespace or malformed) is refused AT SUBMIT — 400 `request.field_invalid`, `error` = `skill.disallowedTools entry "<entry>" reads as nothing (<reason>): <how to write it>`
10977
11067
  (delegated level: prefix `agents[<i>]: skills[<j>]: `), top-level `skills[]` and `agents[].skills[]` alike — because an entry that looks like a refusal but refuses nothing is
@@ -13269,6 +13359,64 @@ components:
13269
13359
  boundCallId: { type: string, description: 'The current pending''s pendingAction.toolCallId — the D-1 anchor to echo back on the relocated decide.' }
13270
13360
  boundInputHash: { type: string, description: 'Server-minted; present only when the row has one. Echo verbatim, never recompute.' }
13271
13361
 
13362
+ CredentialPlaneCapability:
13363
+ type: object
13364
+ description: >-
13365
+ server >= 7.137.0 (config-dependent; the object is always present): the member git credential plane's one reading. Member `sandboxGit` is a discriminated union —
13366
+ `{ state: "on", origins: [{ origin, delivers: true } | { origin, delivers: false, reason: "insecure_transport" }] }` or `{ state: "off", reason }` where `reason` is the first unmet premise in a fixed order:
13367
+ `single_user` -> `lane_without_boundary` -> `no_caller_credential` -> `center_not_https` -> `secret_seat_unverified` -> `secret_seat_denied` -> `pod_patch_reaches_broker` -> `broker_image_unset` -> `no_origins`.
13368
+ 🔴 7.137.0 is always `off` (the caller-credential and the effective `sandboxGit` config are not wired yet). Only words and origins go on the wire (no image, namespace or credential).
13369
+ required: [sandboxGit]
13370
+ additionalProperties: true
13371
+ properties:
13372
+ sandboxGit:
13373
+ oneOf:
13374
+ - type: object
13375
+ required: [state, origins]
13376
+ properties:
13377
+ state: { type: string, enum: [on] }
13378
+ origins:
13379
+ type: array
13380
+ items:
13381
+ oneOf:
13382
+ - type: object
13383
+ required: [origin, delivers]
13384
+ properties:
13385
+ origin: { type: string }
13386
+ delivers: { type: boolean, enum: [true] }
13387
+ - type: object
13388
+ required: [origin, delivers, reason]
13389
+ properties:
13390
+ origin: { type: string }
13391
+ delivers: { type: boolean, enum: [false] }
13392
+ reason: { type: string, description: '`insecure_transport` (a non-https origin: still forwarded through the broker, never carries the credential). Open set on the read side.' }
13393
+ - type: object
13394
+ required: [state, reason]
13395
+ properties:
13396
+ state: { type: string, enum: [off] }
13397
+ reason: { type: string, description: 'Open set on the read side; today `single_user` / `lane_without_boundary` / `no_caller_credential` / `center_not_https` / `secret_seat_unverified` / `secret_seat_denied` / `pod_patch_reaches_broker` / `broker_image_unset` / `no_origins`.' }
13398
+
13399
+ WiringManifestSkill:
13400
+ type: object
13401
+ description: >-
13402
+ server >= 7.137.0 — one row of `wiring_manifest.skills[]`: `{ name, description, source }`, no body; the same row shape as the scenario card's skill list, with one more source word (`request`).
13403
+ required: [name, description, source]
13404
+ additionalProperties: false
13405
+ properties:
13406
+ name: { type: string }
13407
+ description: { type: string }
13408
+ source: { type: string, enum: [factory, center, request], description: '`factory` = the deployment''s own; `center` = from the deployment''s config source; `request` = this request body''s `skills` (a same-name scenario skill shadows it and is not listed).' }
13409
+
13410
+ ApprovalStalePlanGate:
13411
+ type: object
13412
+ description: >-
13413
+ server >= 7.137.0 — the `currentPending` key of the plan_review door's 409 `approval_stale`: the plan gate this session has pending NOW. Whole-or-absent (absent when the current gate has no trustworthy identity
13414
+ or was consumed concurrently). Never carries a token. The decide door's `currentPending` is the other shape (`ApprovalStaleCurrentPending`).
13415
+ required: [checkpointId]
13416
+ additionalProperties: false
13417
+ properties:
13418
+ checkpointId: { type: string, description: 'The identity of the current pending plan gate (the same value as the park result''s `terminal.checkpointId` and the queue / inbox row''s `checkpointId`).' }
13419
+
13272
13420
  ExemptionList:
13273
13421
  type: object
13274
13422
  description: Envelope for a session's approval exemptions (; key `exemptions`, NOT a bare array).
@@ -13299,7 +13447,9 @@ components:
13299
13447
  errorCode?, errorMessage?, retriable?}`, plus `rememberApplied` when the request carried
13300
13448
  `remember:"session"` AND the worker has an exemption store;
13301
13449
  · the PARKED-BACKGROUND-AGENT shape (`parked-decide.ts`, server >=1.267) — `{taskId, status:"resuming",
13302
- decision}`, an ACCEPTED (not completed) receipt; the revive drives asynchronously.
13450
+ decision}`, an ACCEPTED (not completed) receipt; the revive drives asynchronously. Since server >= 7.136.0 this
13451
+ shape has a SECOND ARM, the VOIDED receipt `{taskId, status:"failed", decision:"deny"}` — a DENY on a parked row that can
13452
+ never revive (no agent name / no root-session anchor) voids the card; nothing resumes (see `ParkedDecideAccepted`).
13303
13453
  A FOURTH shape, the #368 IDEMPOTENT REPLAY (server >= 7.4x; declared 2026-09-08 — it shipped without
13304
13454
  ever reaching this schema): `{sessionId, idempotent:true, decision, bindingEnforced:true,
13305
13455
  executionOutcome?}` — it carries NO `status` and NO `taskId` (nothing was accepted this time). So no key
@@ -13360,7 +13510,7 @@ components:
13360
13510
  description: >
13361
13511
  OPEN string — do NOT narrow. Task-level acceptance (server >= 7.37): the literal `resuming` (= accepted,
13362
13512
  resume in flight — follow the run stream). Terminal leg: the run's resulting status (`completed`/`failed`/
13363
- `suspended`/`needs_review`). Parked leg: the literal `resuming` (= accepted, revive in flight).
13513
+ `suspended`/`needs_review`). Parked leg: the literal `resuming` (= accepted, revive in flight) — or, server >= 7.136.0, the literal `failed` on the VOIDED receipt (a deny that closed a card which could never revive; nothing resumes).
13364
13514
  decision:
13365
13515
  type: string
13366
13516
  enum: [approve, deny]
@@ -13581,7 +13731,14 @@ components:
13581
13731
  description: 'server >= 7.100.0 (S-700): WHY the park row offers no rule — the same narrow read and closed set (four words from server >= 7.129.0) as the live card frame and `card_json`.'
13582
13732
  boundGrantAbsence:
13583
13733
  allOf: [{ $ref: '#/components/schemas/BoundGrantAbsence' }]
13584
- description: 'server >= 7.129.0 (core 7.51.0 #1688; park-row fact eight): why this parked card has no grant-binding digest — the park-row twin seat `PendingAction.tool_approval.boundGrantAbsence`, the same narrow read and the same name / value as the live frame and the inbox row. ABSENT on this face = a skill card (it carries the digest; the digest itself is not on this face) / a row parked before engine 7.51.0 (says neither — the inbox face projects `unreadable` for the same row) / a word outside the set / an old server — NOT `not_bindable`.'
13734
+ description: 'server >= 7.129.0 (core 7.51.0 #1688; park-row fact eight): why this parked card has no grant-binding digest — the park-row twin seat `PendingAction.tool_approval.boundGrantAbsence`, the same narrow read and the same name / value as the live frame and the inbox row. ABSENT on this face = a skill card (it carries the digest) / a row parked before engine 7.51.0 (says neither — the inbox face projects `unreadable` for the same row) / a word outside the set / an old server — NOT `not_bindable`.'
13735
+ boundGrantDigest: { type: string, description: 'server >= 7.136.0 — a parked `Skill` card''s grant-binding digest; the same value as the inbox row''s and the live frame''s `boundGrantDigest` (one projection feeds this operator queue row, the `/v1/approvals/stream` `pending` frame and the inbox row — byte-equal for the same parked row). Present only on a skill card; absent on an ordinary card. `card_json` does not carry it. Server <= 7.135.x: not on this face.' }
13736
+ boundGrants:
13737
+ allOf: [{ $ref: '#/components/schemas/BoundSkillGrants' }]
13738
+ description: 'server >= 7.136.0 — the value `boundGrantDigest` hashes, published ONLY when it hashes to it (digest only when they disagree; no digest, no list). DEPLOYMENT TEXT (skill names and list entries are written by the deployer; the server neither redacts nor escapes them): render with contextual escaping.'
13739
+ classifierNoRuling:
13740
+ allOf: [{ $ref: '#/components/schemas/AutoModeFallbackCause' }]
13741
+ description: 'server >= 7.136.0 — only on a parked `classifier_no_ruling` card: why the auto-mode classifier did not rule (closed set, echoed only when a member). Same value as the inbox row''s and the live frame''s.'
13585
13742
  askClass:
13586
13743
  allOf: [{ $ref: '#/components/schemas/AskClass' }]
13587
13744
  description: 'server >= 7.109.0 (S-934 ② / core 7.37.0 #1214): the park-row twin seat `PendingAction.tool_approval.askClass`, read through `readAskClassPair` — the SAME narrow read as the live frame and the card. Present together with `classes` (`classes[0] === askClass`); the basis a durable approver answers by. Absent = an old row (parked before core 7.37.0; resume does not backfill) or an unreadable pair — NOT "no class". The inbox row (InboxRow) does not carry it.'
@@ -13735,7 +13892,7 @@ components:
13735
13892
  classifierNoRuling:
13736
13893
  allOf: [{ $ref: '#/components/schemas/AutoModeFallbackCause' }]
13737
13894
  description: 'server >= 7.118.0 — only on a parked `classifier_no_ruling` card: why the auto-mode classifier did not rule.'
13738
- objective: { type: ['string', 'null'], description: 'task objective, null if unavailable.' }
13895
+ objective: { type: ['string', 'null'], description: 'task objective, null if unavailable. server >= 7.136.0: the run row''s `objectivePreview` (redacted when written, about 120 characters — the same column as `GET /v1/assistant/tasks`; looked up through the gate''s session: its active run, else its latest run; a delegated child''s gate — whose session has no run of its own — falls back to the run that spawned it, via the parked agent row''s `parentTaskId`, hop by hop, at most 8 hops) — null when no preview could be read (a deployment without a run ledger is one cause; a failed read of the row, a delegation chain that breaks or exceeds 8 hops, or a run row without a preview also answer null — the key does not say which). Before 7.136.0 this was the objective ORIGINAL stored in the parked context (not truncated, not redacted); a consumer that used it as the full objective should know that server 7.136.0 has no full-objective read face (`GET /v1/runs/:id` carries neither `objective` nor `objectivePreview`) — this key IS the preview; a full read face comes with a later server version and this package locksteps then (no substitute path is declared here).' }
13739
13896
  input:
13740
13897
  description: >
13741
13898
  REDACTED tool-args preview for display (null on gates without one, e.g. plan_review). Untyped by
@@ -13933,6 +14090,17 @@ components:
13933
14090
  decision: { type: string, enum: [approve, edit, reject] }
13934
14091
  editedPlan: { type: string, description: 'the operator''s revised plan — required iff decision==="edit".' }
13935
14092
  reason: { type: string }
14093
+ checkpointId:
14094
+ type: string
14095
+ minLength: 1
14096
+ maxLength: 128
14097
+ description: >-
14098
+ server >= 7.137.0 (read `capabilities.planReviewCheckpointId` first) — the identity of the plan gate you decided on. If it is not the plan gate this session has pending NOW (another end answered, the run
14099
+ re-planned and parked on a NEW plan gate) => 409 `approval_stale` (the same code and sentence as `/decide`), nothing recorded (plan not approved, card still pending), body `currentPending: { checkpointId }`
14100
+ (the current gate; absent when it has no trustworthy identity or was consumed concurrently). Absent key => accepted as before (no stale protection). Value: non-empty string, at most 128 chars, else 400
14101
+ `request.field_invalid` (existence-independent). Sources: the park result's `terminal.checkpointId`, the queue / inbox row `checkpointId`, the `needs_review` ledger row `data.checkpointId` (same value).
14102
+ On a direct-door (D-G) deployment the key must be signed into the 6th (extension-object) position of the proof envelope; sent unsigned => 401 `approval_mac_invalid`.
14103
+ A server 7.86.0-7.136.x answers this key with 400 `request.body_shape` (`unknownKeys`). Do NOT blindly resend after a 409: re-fetch THAT gate's plan, show it to the human, then decide with the new identity.
13936
14104
  decidedBy:
13937
14105
  allOf: [{ $ref: '#/components/schemas/ApprovalDecidedBy' }]
13938
14106
  description: >
@@ -14153,7 +14321,9 @@ components:
14153
14321
  non-object is `400 request.body_shape`. `title`: a string renames (1..120 CHARACTERS counted as Unicode characters = the storage column width, no leading /
14154
14322
  trailing whitespace, stored verbatim — not rewritten, not redacted); `null` CLEARS it back to the automatic title (the next submit lets the auto-titler fill
14155
14323
  it again). `""` is NOT a clear — it is `400 request.body_shape`. A string of the wrong form / a non-string-non-null `title` / a non-boolean `pinned` is
14156
- `400 request.field_invalid`.
14324
+ `400 request.field_invalid`; from server >= 7.136.0 a title made only of invisible characters (zero-width, bidi controls, soft hyphen, C1 controls — empty after the cross-session peer directory's own
14325
+ usable-name normalization) is `400 request.field_invalid` too (`title must contain at least one visible character`; the session-sync 2c import's `title` reads the same rule). Such titles written before
14326
+ 7.136.0 are not migrated.
14157
14327
  additionalProperties: false
14158
14328
  minProperties: 1
14159
14329
  properties:
@@ -14989,7 +15159,9 @@ components:
14989
15159
  principal is dangling; only re-pointing the assignment, or adding the scenario back to the deployment, helps) and
14990
15160
  `approvals.read_corrupt` (500, server >= 7.134.0 on `GET /v1/approvals` — a queue row's stored body cannot be read; an operator has to repair or
14991
15161
  delete the row; server >= 7.135.0 the same judge answers `GET /v1/assistant/inbox` and `GET /v1/assistant/tasks` too) and `workflow.journal_incompatible`
14992
- (500, server >= 7.135.0 on `GET /v1/workflows/{id}/journal` — a journal row the engine's judge rejects; the body carries `ordinal`; repair the row from the retained copy, never by deleting it).
15162
+ (500, server >= 7.135.0 on `GET /v1/workflows/{id}/journal` — a journal row the engine's judge rejects; the body carries `ordinal`; repair the row from the retained copy, never by deleting it) and
15163
+ `invalid_session` (500, server >= 7.137.0 — a session whose stored log is structurally broken: a dangling parent, a self-parent, a cycle or a missing leaf; `GET /v1/sessions/{id}` and `…/memory-status` answer it instead of
15164
+ `internal.error`, and the synchronous `POST /v1/tasks` leg answers it instead of `200` + a failed body, and so does `POST /v1/sessions/{id}/fork`, whose route has no mapping of its own and lets a session error escape to the server's top-level catch (`GET /v1/sessions/{id}/events` maps a session error through the same table before the stream starts, but none of the three stores the server ships raises `invalid_session` there — the code is mapped, the response does not occur on them); a retry cannot change it — switch to a new session or fork from an entry above the break).
14993
15165
  Every other 5xx code keeps the status-based retry.
14994
15166
  🔴 server >= 7.135.0 read-failure and store-fault codes (all additive; branch on the code, never the sentence): `503 approvals.read_unavailable` on `GET /v1/approvals`, `/v1/assistant/inbox` and
14995
15167
  `/v1/assistant/tasks` (the queue cannot be read RIGHT NOW — transient, retried by status; until a read succeeds an answer does NOT mean nothing is pending; it moved from the SSE-only table into the status-bearing catalog, status `-` → 503) and, on
@@ -15067,8 +15239,8 @@ components:
15067
15239
  type: string
15068
15240
  enum: [transient, terminal]
15069
15241
  description: >-
15070
- server >= 7.135.0, on `503 state.file_history_unreadable` and `422 adopt_failed` only: the file-history store's own judgment of the fault (the engine's `GovernanceRetryClass`) —
15071
- `transient` = nothing was changed, retrying the same shape later may succeed; `terminal` = repair the store first. ABSENT = the store did not judge (retry later once; still red ⇒ look at the store). SDK: `err.extra.permanence`.
15242
+ server >= 7.135.0, on `503 state.file_history_unreadable` and the file-history store's fault answers (`422 adopt_failed`; server >= 7.136.0 also `restore_failed` and the like, and the session-sync pull legs' database-disconnect `503`, where `transient` is judged for connection-class faults): the file-history store's own judgment of the fault (the engine's `GovernanceRetryClass`) —
15243
+ `transient` = nothing was changed, retrying the same shape later may succeed; `terminal` = repair the store first. ABSENT = the store did not judge; not terminal — retried by status like any retryable 5xx (the SDK does so automatically on the pull legs, up to `maxRetries`); still red ⇒ look at the store. SDK: `err.extra.permanence`.
15072
15244
  ordinal:
15073
15245
  type: integer
15074
15246
  description: >-
@@ -15079,7 +15251,7 @@ components:
15079
15251
  A per-code closed word — read it by `errorCode`, never across codes. On 400 `request.field_invalid` for a URL that carries a credential (server >= 7.135.0): `url_userinfo` (`user:pass@host`) / `url_credential_param` (a credential-named
15080
15252
  query / fragment parameter — the names the service's log redactor treats as credentials), beside `field` = the body coordinate (`mcpServers[i].transport.url`, `a2aPeers[i].url`, `a2aPeers[i].cardUrl`,
15081
15253
  `settings.hooks.<event>[g].hooks[h].url` — the FULL coordinate, not `field: "settings.hooks"` + `detail` — and `settings.webSearch.endpoint`; a `settings.webSearch.endpoint` with userinfo keeps its sentence and gains `field` / `reason`);
15082
- `a2aPeers` over 32 entries answers `over_cap` + `count` + `cap` on `field: "a2aPeers"`. On 503 `fleet.lease_unavailable` (server >=
15254
+ `a2aPeers` over 32 entries answers `over_cap` + `count` + `cap` on `field: "a2aPeers"`. Server >= 7.136.0: the same URL-credential words on a SIXTH seat, `images[i].url` (`field` = `images[i].url`, an `images` `{ url }` arm — fresh submits only); `mcpServers` over 32 entries answers `over_cap` + `count` + `cap` on `field: "mcpServers"` (the same body as `a2aPeers`; the probe door `POST /v1/capabilities/mcp/probe` answers the same sentence and keys — before 7.136.0 a sentence without machine keys); a malformed `a2aPeers` list / entry / key value carries NO `reason` (sentence only), a key outside the peer vocabulary is `request.body_shape` + `unknownKeys`. On 503 `fleet.lease_unavailable` (server >=
15083
15255
  7.106.0 / S-866 ③): `auth-rejected` (the center refused this engine's credential, or the credential file is
15084
15256
  unreadable) / `unreachable` (unreachable / 5xx / timeout / bad body / any status other than 200 / 409 / 400 / 401 / 403 —
15085
15257
  center 404 / 429 / 3xx included). On 400 `request.field_invalid` for a `settings.permissions` bucket (server >= 7.106.0 /
@@ -15087,6 +15259,17 @@ components:
15087
15259
  `index`); server >= 7.132.0 widens that group to every tool-name list on the body, the agent definitions and the two host-path lists, and adds
15088
15260
  `too_long` (a text over its character cap; beside `count` + `cap`) — closed words `over_cap` / `too_long` / `bad_entry` (SDK `RequestFieldRefusalExtra`); server >= 7.133.0 adds `too_large` (a payload over its BYTE cap, only on 413 `request.payload_too_large`: `{ field: "body", reason: "too_large", cap }` — `count` ABSENT when the read stopped at the cap and cannot measure; a request body over 8 MiB is now always that 413) and the `request.invalid_json` reasons `not_json` | `not_object` (400, every JSON-body door; formerly `request.rejected`/`request.body_shape` by door).
15089
15261
  On 409 refusals of a resume (server >= 7.132.0) and on 422 `parked_resume.startup_failed` (server >= 7.134.0 — the parked background agent's pre-claim failure; absent when the engine gave none): the engine's `CheckpointErrorReason` arm (`detail.reason` passed through; see `blockedBy`). On 409 `conflict.checkpoint_ctx_unsealable` (server >= 7.134.0): why the request's credentials cannot be sealed into, or unsealed from, the stored resume context — a closed five-word set (SDK `CHECKPOINT_CTX_UNSEALABLE_REASONS`); which doors can answer which word is written once, in the SDK documentation of `CHECKPOINT_CTX_UNSEALABLE_REASONS`, not here: `no_key_store` (this server has no sealed-key store) / `key_not_held` (sealed with a key this server does not hold — another replica's, or a replaced sealed-key directory) / `unopenable` (the sealed value is damaged or belongs to another session) / `plaintext` (an older server stored it unsealed) / `unrecognized_seal` (a seal format this version does not know) — the way out depends on the door and the `reason`: `key_not_held` (a resume door) — have the operator restore the sealed-key directory that sealed it and restart that replica (it reads its keys only at startup), then resend the same request; `no_key_store` on the submit door — give the service a writable sealed-key directory (`<data root>/sealed-key/`, read at startup), or resubmit WITHOUT those credentials — resending the same submit body is refused again; `no_key_store` on a resume door — the same way out as `key_not_held`: restore the directory that sealed it and restart, then resend (a fresh empty directory does not help: it holds no such key, so the next read says `key_not_held`); `unopenable` / `plaintext` / `unrecognized_seal` — submit the work as a new task (cancel the still-suspended one first); never auto-retry, never match the sentence. A resume door's refusal decides nothing and starts no resume (the card stays pending; the known exception is a terminal run's steer race arm, which first opens a wake card and, when the second read fails for any of the five reasons, withdraws it and then answers 409 — if the withdrawal fails the server only logs it); a submit door's refusal lands before the task runs (nothing runs; a run row already opened for it is closed as `failed` and its idempotency key released, both best-effort — a failed step is only logged by the server and the answer is still the 409). On 400 `rules.inert_entry` (server >= 7.129.0): the engine's `ALLOW_ENTRY_INERT_REASONS` (`tool_name` / `wildcard_all` / `namespace_wildcard` / `content_unsupported` / `grammar` / `near_miss` / `earlier_grammar`). Out-of-vocabulary word ⇒ treat as unknown. (Other codes carry their own `reason` words.)
15262
+ server >= 7.137.0: the THREE 400 `request.field_invalid` refusals of `inheritEnv` (a value outside the word set / a non-string / `"all"` on a non-host lane or a deployment with no authorizer session) carry `field: "inheritEnv"` and `reason` — one of
15263
+ `unknown_word` / `not_a_string` / `lane_not_host` / `no_authorizer_session` (SDK `INHERIT_ENV_REFUSAL_REASONS`); sentence, code and status are unchanged.
15264
+ acceptableForm:
15265
+ description: >-
15266
+ server >= 7.137.0 (engine 7.56.0), on 409 `resume.constraint_rejected` only: the edit re-judgement (the deployment's resume-edit policy) accepts only the REWRITTEN form — this key is that form's input, read like a card's `args`
15267
+ (redacted + byte-capped; over the cap => the key is absent). The card stays `pending` (retriable); a human who approves this form decides again with it as `updatedInput`. ABSENT = the engine gave no form (the edit itself was refused): re-decide as before.
15268
+ ruleRejectCode:
15269
+ type: string
15270
+ description: >-
15271
+ server >= 7.137.0 (engine 7.56.0), on 400 `request.body_shape` when a hand-edited rule text (`persistRule: { rule, edited: true }`) has leading / trailing whitespace or a space between the tool name and `(`: the engine's code, `invalid.grammar`.
15272
+ The refusal lands BEFORE any decision (the card is still pending, nothing stored); the `error` sentence names the form without the whitespace. Trim the text before submitting. Open set on the read side.
15090
15273
  retryAfterSec:
15091
15274
  type: number
15092
15275
  description: >-
@@ -15117,6 +15300,10 @@ components:
15117
15300
  `[i]`, record members `.key`: `mcpServers[0].transport.headers.Authorization`, `settings.hooks.PreToolUse[0].hooks[0].headers.Authorization`; the key
15118
15301
  name is not a secret, the value never enters the refusal); on 400 `request.field_invalid` for the request key `settings.approvalFrameFamilies` it is
15119
15302
  that literal (with `reason: "bad_entry"` and the bad `index`; no `index` for a non-array).
15303
+ server >= 7.135.0: on 409 `conflict.checkpoint_ctx_unsealable` with `reason: "unrecognized_seal"` the arm of the stored credential-slot GENERATION newer than this server's (or not a positive integer) reads `field: "credentialSlotGeneration"` — not an in-body coordinate.
15304
+ server >= 7.136.0: the credential-slot set gains four seats (generation 3) — `mcpServers[i].transport.command` / `mcpServers[i].transport.args` (stdio transport) and `settings.hooks.<event>[g].hooks[h].command` / `.args` (command hook); `args` is sealed as ONE value (the whole array); on 409 `conflict.checkpoint_ctx_unsealable` `field` names that coordinate (which doors can answer which `reason`, and how the refusal arrives, is written once — in the SDK documentation of `CHECKPOINT_CTX_UNSEALABLE_REASONS` — not repeated here).
15305
+ server >= 7.136.0: on 400 `request.field_invalid` for a URL that carries a credential, `field` also names `images[i].url` (the sixth seat); on `mcpServers` over 32 entries `field` is `mcpServers` (beside `reason: "over_cap"` / `count` / `cap`); a key outside the `a2aPeers` entry vocabulary is `400 request.body_shape` whose `unknownKeys` carry the full coordinates (`a2aPeers[0].allowSkill`).
15306
+ server >= 7.135.0: on `a2aPeers` over 32 entries `field` is `a2aPeers` (beside `reason: "over_cap"` / `count` / `cap`).
15120
15307
  detail:
15121
15308
  description: >
15122
15309
  🔴 SHAPES differ by code — branch on `field` (or the `errorCode`), never guess from the type of `detail`. On 503
@@ -16726,6 +16913,12 @@ components:
16726
16913
  description: >
16727
16914
  server >= 7.135.0 (engine 7.55.0; effective half only, both faces): did this leg call the deployment's project-context seat — `on` = it did; `disabled` = the seat is wired but the request's `projectMemory: "disabled"` turned it off;
16728
16915
  `absent` = the deployment wired no seat (whatever the request said). On `disabled` / `absent` legs the server-minted `instructions` section is ABSENT. Open on read (a new engine word passes through); ABSENT = an older engine.
16916
+ skills:
16917
+ type: array
16918
+ description: >-
16919
+ server >= 7.137.0 (server-minted section; present only on NON-subagent frames): the skills this run handed to the engine, same set and order. Zero skills (including `disableSkills: true`) = `[]`.
16920
+ It lists what was HANDED to the engine, not what the engine installed (a single skill over the engine's load gate is listed but not installed). A resume leg reports the roster of that resume's assembly.
16921
+ items: { $ref: '#/components/schemas/WiringManifestSkill' }
16729
16922
  ask:
16730
16923
  type: object
16731
16924
  additionalProperties: false
@@ -17294,8 +17487,9 @@ components:
17294
17487
  NOBODY having ruled on it: the approver consulted for the call answered `unavailable` and no durable park
17295
17488
  caught it afterwards. The deny itself is unchanged (`tool_end.gate.settlement.kind:"approver_unavailable"`
17296
17489
  — that sentence IS the tool result); this code is the half the person watching notices could not see.
17297
- `{sessionId, toolName, toolCallId, settlementKind, parkLaneExisted}`; `toolCallId` joins to the
17298
- `tool_approval` card frame, `settlementKind` is passed through verbatim (the vocabulary's owner is core).
17490
+ `{sessionId, toolName, toolCallId, cause, parkLaneExisted, remedy?, remedies?}`; `toolCallId` joins to the
17491
+ `tool_approval` card frame, `cause` (`approver_unavailable` / `no_approver_wired` / `mandate_unreconstructible`; the older name `settlementKind` was retired in server 7.74.0) is passed through verbatim (the vocabulary's owner is core).
17492
+ Server >= 7.137.0: `remedies` = the ways out as data (a non-empty list over `approver` / `permission_mode`), riding with the headless remedy sentence `remedy` — a binding's own refusal sentence carries `remedy` but no `remedies`.
17299
17493
  Deduplicated ONCE PER TOOL CALL. 🔴 `parkLaneExisted` is a DISCRIMINANT, not a count: `true` = a park lane
17300
17494
  was armed but declined/failed (check the store, check authorisation), `false` = there was no lane at all
17301
17495
  (wire one up). The two recovery verbs differ, so a consumer MUST render them apart — NEVER fold them into
@@ -17321,6 +17515,18 @@ components:
17321
17515
  `{ advisorModel, mainModel, reason, sessionId, runId? }` — the two model names are the catalog id / the reference the request wrote (display spelling); `reason` is an engine word (`unknown_model` / `advisor_unranked` /
17322
17516
  `weakest_tier` / `main_unranked` / `pairing` / `hold_unknown`; the server echoes it — read OPEN). Unreachable on this server today: it does not accept `advisorModel` (the request body does not take it, and the
17323
17517
  `advisor` section is not projected on either `wiring_manifest` face).
17518
+ `inherit_env.names_withheld` (server >= 7.137.0 / core 7.56.0; audience `user`; D.3 is now 44 codes) — which variables of the engine's environment the TOOL SHELL does not receive: the half that credential
17519
+ scrubbing withholds (a run whose inherit posture — `"all"` or a list naming them — could hand them down) and the half that is the deployment's own credentials (no posture hands those down).
17520
+ NAMES ONLY, never values; the model is not told. `{ state, names?, ownCredentials?, sessionId, runId? }`: `state` is `withheld` or `unknown` (engine words, the server echoes them — read OPEN; `unknown` = the
17521
+ execution environment cannot say, no names ride, it means "cannot tell"); `names` = the withheld variable names; `ownCredentials` (only when there are any) = those among them that are the deployment's own
17522
+ credentials. Each of the two arrays carries at most 32 items (the server's notice projector caps every `detail` array at 32 — reading 32 names does not mean only 32 were withheld). Once per session per name set (said again when the set grows). The operator-side fact is `config.secret_env_scrubbed` (audience `operator` — ops log only, not on this stream).
17523
+ `model.capability_downgraded` (server >= 7.137.0 / core 7.56.0; audience `user`) — a capability the request used was held back from the model. Today only images: the catalog entry DECLARES its input kinds without `image`
17524
+ (`Model.input` present, no `image` in it), so every image reaches the model as a placeholder sentence (`[image omitted: the serving model does not support image input]`; how several images are folded depends on the provider and on where they sit — one `[N images omitted: …]` line, one line per image, or a single base line for all of them)
17525
+ and the notice's `message` names the model and the way out (declare `input: ["text","image"]` if it reads images, otherwise switch to a model that does). An entry with no `input` declaration is read as able to take images:
17526
+ the images go out unchanged and this notice is NOT sent. `{ model, capability, status,
17527
+ sessionId, runId }`: `capability` is `image` today; `status` is `declared_off` or `unknown` (engine words, the server echoes them — read OPEN; for images 7.56.0 only emits `declared_off`). Once per session per (model, capability). It replaces the server's
17528
+ own submit-time image pre-check (ops-log line `images_omitted_no_vision_model` and counter `images_omitted_total`, both retired in 7.137.0: the engine mints the fact at the moment it really replaces the image);
17529
+ a reasoning knob the model declares off is not reported here (that is `effectiveReasoning.dropped`).
17324
17530
  Value change: `permission.rule_row_dropped`'s `detail.rows[].rule` is, since core 7.53.0, the rule's original text (the same reading as
17325
17531
  `allowed_tool_not_granted`'s `entries[].entry`: at most 1 024 code points, longer cut to 1 024 + a truncation mark, CONTROL CHARACTERS RIDE AS DATA —
17326
17532
  neutralize at render); before it was the engine-neutralized single-line form (at most 201 code points). Same keys.
@@ -17525,6 +17731,9 @@ components:
17525
17731
  description: >
17526
17732
  The tool call the run is parked on (a tool-approval gate; ABSENT for a tool-less park / when it could not be read — never `null`). Same value as the `tool_approval` card's `toolCallId`. The server's park ledger row has
17527
17733
  always carried it (sdk 23.0.0 declares it; this arm is closed, so a strict validator rejected a real replay row before).
17734
+ checkpointId:
17735
+ type: string
17736
+ description: 'server >= 7.137.0, PRESENT-IFF: the stable non-secret identity of this park — the same value as the run row''s `result.terminal.checkpointId` and the queue / inbox row''s `checkpointId` (absent when it did not cross the identity trust boundary). Feed it to `plan_review` `checkpointId` for a plan gate.'
17528
17737
  ModelUsageDelta:
17529
17738
  # 新增(2026-07-25 回填批)。SDK 的 facade 审计把这个形状命名了一次(此前是在两个使用点各写一遍的匿名内联形:
17530
17739
  # `AgentEvent` 的 `model_usage` 臂 与 `done.result.stats.modelUsage` 的值类型,同源同形)。
@@ -18100,7 +18309,7 @@ components:
18100
18309
  second card word `contentKind` that server <= 7.125.x derived from the tool name (deleted at 7.126.0, no alias: a consumer reading `contentKind === "content_ask"` reads
18101
18310
  `approvalCard === "question"`). ABSENT = the engine minted none (a host-built ask / an older engine / a non-approval gate) — never `generic` by default. Display / triage only; it NEVER
18102
18311
  takes part in resume / gate / CAS. The same word rides the `livePending` row top level (= this frame's own value), the operator queue row and the `/v1/approvals/stream` `pending` /
18103
- `live_pending` frames; the `card_json` card face and the `approval_request` frame's `card` do NOT carry it (`ApprovalCard` is `.strict()`).
18312
+ `live_pending` frames; from server >= 7.136.0 the `card_json` card face and the `approval_request` frame's `card` (live mint and reconnect replay alike) carry the same word too (`ApprovalCard.approvalCard`: one read, three faces — before 7.136.0 the card did not carry it, so a replayed frame had none and a reconnecting shell fell back to the generic card).
18104
18313
  inputHasBidi:
18105
18314
  type: boolean
18106
18315
  enum: [true]
@@ -18379,6 +18588,9 @@ components:
18379
18588
  argsOmitted: { type: boolean, enum: [true], description: 'Present (true) only when args exceeded the byte cap. Never false.' }
18380
18589
  toolCallId: { type: string, description: 'The engine''s tool-call id (the `call_…` on the assistant message''s tool_use block) — same domain as ToolApprovalFrame.toolCallId.' }
18381
18590
  risk: { $ref: '#/components/schemas/ApprovalRiskAxes' }
18591
+ approvalCard:
18592
+ allOf: [{ $ref: '#/components/schemas/ToolApprovalCardWord' }]
18593
+ description: 'server >= 7.136.0, ADDITIVE: the engine-minted card word — the SAME word, read once, as the live frame''s top-level `ToolApprovalFrame.approvalCard`; it now rides the live-minted `approval_request` frame''s `card`, the stored `card_json` envelope and the reconnect-replay frame''s `card` (before 7.136.0 the card did not carry it, so a replayed frame had none). ABSENT = the engine minted none / an out-of-set word (the server narrows it again when it mints the card) / a card stored before 7.136.0 — never `generic` by default. Display / triage only; it NEVER takes part in resume / gate / CAS. The stored envelope is strict: a 7.135.x replica cannot read a row carrying this key (replay skips it, the idempotent re-entry goes to the durable park) — roll the fleet in one pass.'
18382
18594
  rememberRefused:
18383
18595
  type: boolean
18384
18596
  enum: [true]
@@ -19871,6 +20083,9 @@ components:
19871
20083
  toolCallId:
19872
20084
  type: string
19873
20085
  description: 'Same as `suspended.toolCallId` (ABSENT when the park has no tool call; never `null`).'
20086
+ checkpointId:
20087
+ type: string
20088
+ description: 'Same as `suspended.checkpointId` (server >= 7.137.0, PRESENT-IFF): the plan gate''s identity — send it as `plan_review` `checkpointId`.'
19874
20089
  Event_message_committed:
19875
20090
  type: object
19876
20091
  description: >
@@ -20212,6 +20427,13 @@ components:
20212
20427
  boundGrantAbsence:
20213
20428
  allOf: [{ $ref: '#/components/schemas/BoundGrantAbsence' }]
20214
20429
  description: '`pending` frames only (server >= 7.129.0 / core 7.51.0 #1688) — see PendingCheckpoint.boundGrantAbsence. A `live_pending` frame carries it only inside its `frame`.'
20430
+ boundGrantDigest: { type: string, description: '`pending` frames only (server >= 7.136.0) — see PendingCheckpoint.boundGrantDigest. A `live_pending` frame carries it only inside its `frame`.' }
20431
+ boundGrants:
20432
+ allOf: [{ $ref: '#/components/schemas/BoundSkillGrants' }]
20433
+ description: '`pending` frames only (server >= 7.136.0) — see PendingCheckpoint.boundGrants. DEPLOYMENT TEXT: render with contextual escaping.'
20434
+ classifierNoRuling:
20435
+ allOf: [{ $ref: '#/components/schemas/AutoModeFallbackCause' }]
20436
+ description: '`pending` frames only (server >= 7.136.0) — see PendingCheckpoint.classifierNoRuling.'
20215
20437
  askClass:
20216
20438
  allOf: [{ $ref: '#/components/schemas/AskClass' }]
20217
20439
  description: '`pending` frames only (server >= 7.109.0 / S-934 ②) — see PendingCheckpoint.askClass. A `live_pending` frame carries the pair only inside its `frame`.'
@@ -20222,20 +20444,35 @@ components:
20222
20444
  description: '`pending` frames only (server >= 7.109.0) — see PendingCheckpoint.classes.'
20223
20445
 
20224
20446
  ParkedDecideAccepted:
20225
- type: object
20226
20447
  description: >
20227
20448
  The 200 body of POST /v1/approvals/{sessionId}/decide when the pending checkpoint belongs to a
20228
20449
  PARKED background agent (server 1.267, ASSISTANT-WIRE-CONTRACT §4a parked variant; server
20229
- parked-decide.ts — exact literal shape). ACCEPTANCE semantics: the revive drives
20230
- ASYNCHRONOUSLY — 200 means accepted, not completed; a failed drive honestly re-parks the row and
20231
- the pending re-appears on the list. Task-level suspends keep the legacy resumed shape —
20232
- discriminate by `status === "resuming"`.
20233
- required: [taskId, status, decision]
20234
- additionalProperties: true
20235
- properties:
20236
- taskId: { type: string, description: 'The background agent handle (a* domain).' }
20237
- status: { type: string, enum: [resuming] }
20238
- decision: { type: string, enum: [approve, deny] }
20450
+ parked-decide.ts — exact literal shapes). TWO ARMS, read by `status` (the SDK type `ParkedDecideAccepted` is their union):
20451
+ (1) `status: "resuming"` — the ACCEPTANCE receipt. The revive drives ASYNCHRONOUSLY — 200 means accepted,
20452
+ not completed; a failed drive honestly re-parks the row and the pending re-appears on the list.
20453
+ (2) `status: "failed"` (server >= 7.136.0; `decision` is always `deny`) — the VOIDED receipt: on the two forms that can
20454
+ never revive (a parked child whose row carries no agent name — an unnamed `Agent` call — or no root-session anchor)
20455
+ a DENY voids the card under its own scope CAS; the card leaves the pending queue and the `/v1/approvals/stream` snapshot,
20456
+ the child ends `failed` (the engine's reconcile), the gated tool never runs, no `remember` is granted — and NOTHING is
20457
+ resuming. Do not wait for a revive that never comes. APPROVE on those forms stays `409 decide.row_unrevivable`; a lost
20458
+ void CAS is the existing `409 decide.gate_moved`.
20459
+ Task-level suspends answer their own shapes (see `ApprovalDecisionResult`): discriminate a parked receipt by `decision`
20460
+ present and `sessionId` absent, then read `status`.
20461
+ oneOf:
20462
+ - type: object
20463
+ required: [taskId, status, decision]
20464
+ additionalProperties: true
20465
+ properties:
20466
+ taskId: { type: string, description: 'The background agent handle (a* domain).' }
20467
+ status: { type: string, enum: [resuming] }
20468
+ decision: { type: string, enum: [approve, deny] }
20469
+ - type: object
20470
+ required: [taskId, status, decision]
20471
+ additionalProperties: true
20472
+ properties:
20473
+ taskId: { type: string, description: 'The background agent handle (a* domain).' }
20474
+ status: { type: string, enum: [failed] }
20475
+ decision: { type: string, enum: [deny] }
20239
20476
 
20240
20477
  FleetMeta:
20241
20478
  type: object
@@ -20782,6 +21019,12 @@ components:
20782
21019
  type: string
20783
21020
  description: >
20784
21021
  server >= 7.135.0 (engine 7.55.0; effective half only): did the leg call the deployment's project-context seat — `on` / `disabled` (the request's `projectMemory: "disabled"`) / `absent` (no seat wired). Open on read; ABSENT = an older engine, or this half.
21022
+ skills:
21023
+ type: array
21024
+ description: >-
21025
+ server >= 7.137.0 (server-minted section; present only on NON-subagent frames): the skills this run handed to the engine, same set and order. Zero skills (including `disableSkills: true`) = `[]`.
21026
+ It lists what was HANDED to the engine, not what the engine installed (a single skill over the engine's load gate is listed but not installed). A resume leg reports the roster of that resume's assembly.
21027
+ items: { $ref: '#/components/schemas/WiringManifestSkill' }
20785
21028
  ask:
20786
21029
  type: object
20787
21030
  description: 'Approval seam: wired form, which seat it came from, and (effective half) what it adjudicates to.'