@sema-agent/sdk 46.0.0 → 48.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 (94) hide show
  1. package/README.md +189 -0
  2. package/dist/bitless-surfaces.d.ts +5 -0
  3. package/dist/bitless-surfaces.d.ts.map +1 -1
  4. package/dist/bitless-surfaces.js +7 -0
  5. package/dist/bitless-surfaces.js.map +1 -1
  6. package/dist/boot-refusal/index.d.ts +67 -0
  7. package/dist/boot-refusal/index.d.ts.map +1 -0
  8. package/dist/boot-refusal/index.js +36 -0
  9. package/dist/boot-refusal/index.js.map +1 -0
  10. package/dist/boot-refusal/tables.d.ts +491 -0
  11. package/dist/boot-refusal/tables.d.ts.map +1 -0
  12. package/dist/boot-refusal/tables.js +175 -0
  13. package/dist/boot-refusal/tables.js.map +1 -0
  14. package/dist/client.d.ts +7 -0
  15. package/dist/client.d.ts.map +1 -1
  16. package/dist/client.js +9 -0
  17. package/dist/client.js.map +1 -1
  18. package/dist/errors.d.ts +82 -17
  19. package/dist/errors.d.ts.map +1 -1
  20. package/dist/errors.js +50 -11
  21. package/dist/errors.js.map +1 -1
  22. package/dist/events.d.ts +167 -32
  23. package/dist/events.d.ts.map +1 -1
  24. package/dist/events.js +12 -0
  25. package/dist/events.js.map +1 -1
  26. package/dist/health.d.ts +8 -1
  27. package/dist/health.d.ts.map +1 -1
  28. package/dist/health.js.map +1 -1
  29. package/dist/index.d.ts +40 -6
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +22 -2
  32. package/dist/index.js.map +1 -1
  33. package/dist/resources/admin.d.ts +95 -5
  34. package/dist/resources/admin.d.ts.map +1 -1
  35. package/dist/resources/admin.js +58 -4
  36. package/dist/resources/admin.js.map +1 -1
  37. package/dist/resources/approvals.d.ts +56 -15
  38. package/dist/resources/approvals.d.ts.map +1 -1
  39. package/dist/resources/approvals.js +82 -9
  40. package/dist/resources/approvals.js.map +1 -1
  41. package/dist/resources/assistant.d.ts +5 -3
  42. package/dist/resources/assistant.d.ts.map +1 -1
  43. package/dist/resources/assistant.js +5 -3
  44. package/dist/resources/assistant.js.map +1 -1
  45. package/dist/resources/attachments.d.ts +5 -1
  46. package/dist/resources/attachments.d.ts.map +1 -1
  47. package/dist/resources/attachments.js +6 -2
  48. package/dist/resources/attachments.js.map +1 -1
  49. package/dist/resources/fleet.d.ts +38 -2
  50. package/dist/resources/fleet.d.ts.map +1 -1
  51. package/dist/resources/fleet.js +4 -0
  52. package/dist/resources/fleet.js.map +1 -1
  53. package/dist/resources/leader.d.ts +30 -8
  54. package/dist/resources/leader.d.ts.map +1 -1
  55. package/dist/resources/leader.js.map +1 -1
  56. package/dist/resources/questions.d.ts +9 -0
  57. package/dist/resources/questions.d.ts.map +1 -1
  58. package/dist/resources/questions.js.map +1 -1
  59. package/dist/resources/scheduled.d.ts +60 -0
  60. package/dist/resources/scheduled.d.ts.map +1 -0
  61. package/dist/resources/scheduled.js +36 -0
  62. package/dist/resources/scheduled.js.map +1 -0
  63. package/dist/resources/sessions.d.ts +21 -4
  64. package/dist/resources/sessions.d.ts.map +1 -1
  65. package/dist/resources/sessions.js +27 -2
  66. package/dist/resources/sessions.js.map +1 -1
  67. package/dist/resources/tasks.d.ts +12 -1
  68. package/dist/resources/tasks.d.ts.map +1 -1
  69. package/dist/resources/tasks.js +12 -1
  70. package/dist/resources/tasks.js.map +1 -1
  71. package/dist/resources/tool-approvals.d.ts +56 -7
  72. package/dist/resources/tool-approvals.d.ts.map +1 -1
  73. package/dist/resources/tool-approvals.js +31 -0
  74. package/dist/resources/tool-approvals.js.map +1 -1
  75. package/dist/resources/worktree.d.ts +38 -0
  76. package/dist/resources/worktree.d.ts.map +1 -0
  77. package/dist/resources/worktree.js +38 -0
  78. package/dist/resources/worktree.js.map +1 -0
  79. package/dist/retired-capability-bits.d.ts +63 -0
  80. package/dist/retired-capability-bits.d.ts.map +1 -0
  81. package/dist/retired-capability-bits.js +68 -0
  82. package/dist/retired-capability-bits.js.map +1 -0
  83. package/dist/settings.d.ts +3 -2
  84. package/dist/settings.d.ts.map +1 -1
  85. package/dist/transport.d.ts +6 -0
  86. package/dist/transport.d.ts.map +1 -1
  87. package/dist/transport.js +8 -0
  88. package/dist/transport.js.map +1 -1
  89. package/dist/types.d.ts +574 -40
  90. package/dist/types.d.ts.map +1 -1
  91. package/dist/types.js +51 -9
  92. package/dist/types.js.map +1 -1
  93. package/openapi.yaml +1268 -52
  94. package/package.json +5 -1
package/openapi.yaml CHANGED
@@ -578,6 +578,11 @@ paths:
578
578
  a missing leaf) when the replay dropped no record — switch to a new session or fork from an entry above the break. Servers 7.137.0–7.143.x answered that form
579
579
  `invalid_session` (retired at 7.144.0; this SDK no longer exempts the retired code, so against those servers it is retried by status). A log whose replay DID drop
580
580
  records and whose branch broke at the missing parent is no longer refused: the run continues from the break (200).
581
+ Servers 7.144.0 – 7.155.x answer those two forms as just described. server >= 7.156.0 has one judge for "is this session's transcript readable": a transcript
582
+ that reads but is broken (structurally broken, or records the replay would drop — the file backend's former "continue from the break" form included) answers
583
+ 409 conflict.session_transcript_unreadable before anything runs or is written, body `wayOut: "delete_session"` (deterministic; deleting the session always works),
584
+ on both backends; `corrupt_session` (500) is left only for a session row that cannot be read. The `session.lineage_rerooted` notice no longer appears on runs of
585
+ such a server.
581
586
  content:
582
587
  application/json:
583
588
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -2095,10 +2100,18 @@ paths:
2095
2100
  # 封闭(census 批2 第二段):三个 200 铸造点都是单键字面量 —— `{deleted:false}` 两处
2096
2101
  # (未知会话 / 外租户,`routes/sessions.ts`)+ purgeSession 的 `{deleted}` 返回
2097
2102
  # (`http/server.ts` 的签名就是这一个键;它的另一臂 `{active}` 走 409)。
2103
+ # server >= 7.156.0:删成(`deleted: true`)且部署释放会话工作树(能力位 `sessionWorktree`)时多第二个键 `checkout`;封闭对象不声明它,真 200 体就会被严格校验器拒。
2098
2104
  additionalProperties: false
2099
2105
  required: [deleted]
2100
2106
  properties:
2101
2107
  deleted: { type: boolean }
2108
+ checkout:
2109
+ allOf: [{ $ref: '#/components/schemas/SessionCheckoutReceipt' }]
2110
+ description: >-
2111
+ server >= 7.156.0 — present iff `deleted` is true AND the deployment releases session worktrees (capability bit `sessionWorktree`): what became of the session's own worktrees. EVERY completed delete
2112
+ there carries it, a session without a tree included (`{ outcome: released, trees: [] }`), so "`checkout` present" does not mean the session had a tree. The release only reports, it never
2113
+ blocks the delete. Absent on `{ deleted: false }`, on deployments without the bit, and on older servers; a session deleted by the age-out leg or finished by start-up recovery has no response
2114
+ object — its outcome goes to the operator log.
2102
2115
  '400':
2103
2116
  # (declared 2026-07-31) errorCode "request.id_invalid" — the path sessionId must decode to a
2104
2117
  # canonical uuid of ANY version (`routes/sessions.ts`; server >= 7.125.0 — the ONE shape gate shared with sync / fork / policy;
@@ -2788,6 +2801,9 @@ paths:
2788
2801
  `near_miss` a near-miss of a valid form · `earlier_grammar` (engine 7.51.2) a body echoed back with its `rev` but no `grammar` stamp is read in the stored row's grammar 0, where a rule-spelled allow entry named no tool — send the three buckets alone to write in the current grammar), `verdict` (optional; only on `tool_name`: `retired` an engine-retired name / `unprefixed_namespace` a `__` name without a protocol prefix / `unmintable_segment` a protocol
2789
2802
  name whose peer segment or tool segment the engine cannot mint, or whose tool segment is EMPTY — `mcp__<server>__`, `a2a__<peer>__`), `currentName` (optional; present when there is a 1:1 successor, e.g. `bash` => `Bash`), `guidance` (optional; the engine judge's wording
2790
2803
  of the fix, byte for byte — carried by `retired` and `unmintable_segment`). The sentence is the engine's own: match on the code. Rewrite that entry and write again.
2804
+ Server >= 7.157.0 (engine 7.70.0): a retired name WITH a successor (`Task` => `Agent`, `bash` => `Bash`) is accepted by both write doors, stored as written and read as its successor
2805
+ (before, this code with `verdict: retired` + `currentName`); a stored row's such entry is live too, so a non-operator owner removing a live deny gets `403 loosen_forbidden` (an operator write can remove it).
2806
+ A retired name WITHOUT a successor (`MultiEdit`) is still this code with `verdict: retired`, `guidance` and no `currentName`.
2791
2807
  `rules.invalid_shape`: the rules body itself has the wrong shape — not an object (`rules` absent, `null`, an array, a scalar), a key that is not a bucket (including the RETIRED `commandAllow` / `commandDeny`:
2792
2808
  never silently dropped, a dropped deny is enforced by nobody), a bucket that is not a list of strings, an `allowDirs` member that is empty / blank. Body keys: `field` (which key; the empty string when the
2793
2809
  body as a whole is not an object), `got` (the TYPE of that value, e.g. `a string` / `not a rule bucket` — the value is never echoed); `error` is the engine's sentence.
@@ -3038,6 +3054,189 @@ paths:
3038
3054
  '501': { $ref: '#/components/responses/NotImplemented' }
3039
3055
  '503': { $ref: '#/components/responses/Unauthorized' } # `auth.service_token_required` — the credential-gated write door (no service credential and no ALLOW_UNAUTHED_WRITES), before routing.
3040
3056
 
3057
+ # ── server >= 7.156.0:定时任务四口(调用方的两口 + 会话的两口;事实只有调度后端那一份)与工作树能力探针 ──
3058
+ /v1/scheduled:
3059
+ parameters:
3060
+ - $ref: '#/components/parameters/PrincipalHeader'
3061
+ get:
3062
+ tags: [sessions]
3063
+ operationId: scheduledList
3064
+ x-status: gated # server 7.156.0; capability bit `scheduledTasks` (no scheduler ⇒ 501). SDK scheduled.list.
3065
+ summary: The caller's scheduled tasks (durable entries filed under the caller's verified principal).
3066
+ description: >
3067
+ server >= 7.156.0 (mint `src/http/routes/scheduled-tasks.ts`). The SAME engine function the model's `CronList` calls, on the lanes derived from the
3068
+ caller's VERIFIED principal (no session ⇒ the engine's two lanes are one key = this principal's durable entries; an operator reads the operator's
3069
+ own). 200 `{ rows, reach }`: each row is the engine's `ScheduledTaskSummary` key by key (absent stays absent; the server mints no row key); `reach`
3070
+ is the one-word closed set `replica_store` — one list reads the scheduled-task store THIS replica opened (other replicas reading another file are
3071
+ not seen here). Session-level entries (session-shaped cron, pending wake-ups) are only in their own session's list
3072
+ (`GET /v1/sessions/{sessionId}/scheduled`). Known limits: a row carries no task content (the engine's row type has no prompt); no pause / edit /
3073
+ create; on a deployment without the principal gate, list and stop are not per person.
3074
+ Refusals: 501 `capability.scheduler_required` (this deployment has no scheduler — NOT an empty list; probe `capabilities.scheduledTasks`) ·
3075
+ 401 (a `REQUIRE_PRINCIPAL` deployment and no verified principal) · 500 `internal.scheduler_store_unreadable` (the store could not be read; no
3076
+ partial list). An older server answers 404 (no such route).
3077
+ responses:
3078
+ '200':
3079
+ description: The caller's durable scheduled entries and which store was read.
3080
+ content:
3081
+ application/json:
3082
+ schema: { $ref: '#/components/schemas/ScheduledTaskList' }
3083
+ '401': { $ref: '#/components/responses/Unauthorized' }
3084
+ '404': { $ref: '#/components/responses/NotFound' }
3085
+ '500':
3086
+ description: '`internal.scheduler_store_unreadable` — the scheduled-task store could not be read (untrusted / not a JSON array / concurrent writers exhausted); no partial list. Code family `deterministic`: resending does not change it (the SDK does not retry it).'
3087
+ content:
3088
+ application/json:
3089
+ schema: { $ref: '#/components/schemas/ErrorResponse' }
3090
+ '501': { $ref: '#/components/responses/NotImplemented' }
3091
+
3092
+ /v1/scheduled/{id}:
3093
+ parameters:
3094
+ - $ref: '#/components/parameters/PrincipalHeader'
3095
+ - in: path
3096
+ name: id
3097
+ required: true
3098
+ schema: { type: string }
3099
+ delete:
3100
+ tags: [sessions]
3101
+ operationId: scheduledCancel
3102
+ x-status: gated # server 7.156.0; capability bit `scheduledTasks`. SDK scheduled.cancel.
3103
+ summary: Stop one of the caller's scheduled entries (irreversible).
3104
+ description: >
3105
+ server >= 7.156.0. The SAME engine function the model's `CronDelete` calls, on the caller's lanes (see `GET /v1/scheduled`); once stopped the
3106
+ model's `CronList` no longer lists it. 200 `{ id }` (the id the path named). An id outside the lanes (mistyped, already stopped, someone else's, a
3107
+ session-level entry only its own session reaches, filed in a store this replica does not read) ⇒ 404 `not_found.scheduled_task`, same code and
3108
+ sentence for all of them. Inside the credential-gated write door (effect class `durable-write`): no service credential and no
3109
+ `ALLOW_UNAUTHED_WRITES` ⇒ 503 `auth.service_token_required` before routing; rate-limited. 501 `capability.scheduler_required` as for the list.
3110
+ responses:
3111
+ '200':
3112
+ description: The stopped entry's id.
3113
+ content:
3114
+ application/json:
3115
+ schema: { $ref: '#/components/schemas/ScheduledTaskCancelResult' }
3116
+ '400': { $ref: '#/components/responses/BadRequest' }
3117
+ '401': { $ref: '#/components/responses/Unauthorized' }
3118
+ '404': { $ref: '#/components/responses/NotFound' }
3119
+ '429': { $ref: '#/components/responses/RateLimited' }
3120
+ '500':
3121
+ description: '`internal.scheduler_store_unreadable` — as for the list.'
3122
+ content:
3123
+ application/json:
3124
+ schema: { $ref: '#/components/schemas/ErrorResponse' }
3125
+ '501': { $ref: '#/components/responses/NotImplemented' }
3126
+ '503': { $ref: '#/components/responses/Unauthorized' } # `auth.service_token_required` — the credential-gated write door, before routing.
3127
+
3128
+ /v1/sessions/{sessionId}/scheduled:
3129
+ parameters:
3130
+ - $ref: '#/components/parameters/PrincipalHeader'
3131
+ - in: path
3132
+ name: sessionId
3133
+ required: true
3134
+ schema: { type: string }
3135
+ get:
3136
+ tags: [sessions]
3137
+ operationId: sessionsScheduledList
3138
+ x-status: gated # server 7.156.0; capability bit `sessionScheduledTasks`. SDK sessions.scheduled.
3139
+ summary: The session's scheduled tasks — its own entries first, then the session owner's durable entries.
3140
+ description: >
3141
+ server >= 7.156.0. Same rows and `reach` as `GET /v1/scheduled`; the lanes come from the SESSION ROW (its id and its owner), so an operator reading
3142
+ on someone's behalf reads the owner's entries. Gate order: identity front door → path → capability (501 `capability.scheduler_required`, or 501
3143
+ `capability.session_ownership_required` when the session store has no head read — `sessionScheduledTasks: false` while `scheduledTasks: true`
3144
+ means only the session doors are missing) → owner gate (404 `not_found.session`: unknown and someone else's answer the same). The capability is
3145
+ judged BEFORE the session, so a deployment without a scheduler answers 501 for an unknown session too. 500 `internal.scheduler_store_unreadable`.
3146
+ responses:
3147
+ '200':
3148
+ description: The session's entries, then the owner's durable entries.
3149
+ content:
3150
+ application/json:
3151
+ schema: { $ref: '#/components/schemas/ScheduledTaskList' }
3152
+ '400': { $ref: '#/components/responses/BadRequest' }
3153
+ '401': { $ref: '#/components/responses/Unauthorized' }
3154
+ '404': { $ref: '#/components/responses/NotFound' }
3155
+ '500':
3156
+ description: '`internal.scheduler_store_unreadable` — as for `GET /v1/scheduled`.'
3157
+ content:
3158
+ application/json:
3159
+ schema: { $ref: '#/components/schemas/ErrorResponse' }
3160
+ '501': { $ref: '#/components/responses/NotImplemented' }
3161
+
3162
+ /v1/sessions/{sessionId}/scheduled/{entryId}:
3163
+ parameters:
3164
+ - $ref: '#/components/parameters/PrincipalHeader'
3165
+ - in: path
3166
+ name: sessionId
3167
+ required: true
3168
+ schema: { type: string }
3169
+ - in: path
3170
+ name: entryId
3171
+ required: true
3172
+ schema: { type: string }
3173
+ delete:
3174
+ tags: [sessions]
3175
+ operationId: sessionsScheduledCancel
3176
+ x-status: gated # server 7.156.0; capability bit `sessionScheduledTasks`. SDK sessions.scheduledCancel.
3177
+ summary: Stop one entry on the session's lanes (irreversible).
3178
+ description: >
3179
+ server >= 7.156.0. Same gates as `GET /v1/sessions/{sessionId}/scheduled`; an id outside the session's lanes ⇒ 404 `not_found.scheduled_task`
3180
+ (same code and sentence). Credential-gated write door (503 `auth.service_token_required` before routing) and rate-limited, as `DELETE /v1/scheduled/{id}`.
3181
+ responses:
3182
+ '200':
3183
+ description: The stopped entry's id.
3184
+ content:
3185
+ application/json:
3186
+ schema: { $ref: '#/components/schemas/ScheduledTaskCancelResult' }
3187
+ '400': { $ref: '#/components/responses/BadRequest' }
3188
+ '401': { $ref: '#/components/responses/Unauthorized' }
3189
+ '404': { $ref: '#/components/responses/NotFound' }
3190
+ '429': { $ref: '#/components/responses/RateLimited' }
3191
+ '500':
3192
+ description: '`internal.scheduler_store_unreadable` — as for `GET /v1/scheduled`.'
3193
+ content:
3194
+ application/json:
3195
+ schema: { $ref: '#/components/schemas/ErrorResponse' }
3196
+ '501': { $ref: '#/components/responses/NotImplemented' }
3197
+ '503': { $ref: '#/components/responses/Unauthorized' } # `auth.service_token_required` — the credential-gated write door, before routing.
3198
+
3199
+ /v1/worktree-capability:
3200
+ parameters:
3201
+ - $ref: '#/components/parameters/PrincipalHeader'
3202
+ - in: query
3203
+ name: cwd
3204
+ required: true
3205
+ schema: { type: string }
3206
+ description: The folder to ask about — exactly once, an absolute HOST path.
3207
+ - in: query
3208
+ name: name
3209
+ required: false
3210
+ schema: { type: string }
3211
+ description: The managed tree name to ask about (at most once; the name grammar belongs to the engine's judge). Absent ⇒ ask about the folder alone.
3212
+ get:
3213
+ tags: [sessions]
3214
+ operationId: worktreeCapability
3215
+ x-status: gated # server 7.156.0; capability bit `sessionWorktree` (501 otherwise). SDK worktree.capability.
3216
+ summary: Can this folder hold a session's own worktree? The engine judge's answer, verbatim.
3217
+ description: >
3218
+ server >= 7.156.0 (mint `src/http/routes/capabilities.ts`). Projects the engine's `probeWorktreeCapability` — the same judge a session's first leg
3219
+ uses, so ask here instead of running `git rev-parse` on the host. 200 = the engine's four keys verbatim (`detail` through the exit seat, bounded at
3220
+ 500 code units; `gitRoot` through the path-identity seat, withheld when it cannot leave as one). Gate order (dispatcher, before the handler):
3221
+ credential-gated door (effect class `host-action`: no credential the gate accepts and no `ALLOW_UNAUTHED_WRITES` ⇒ 503
3222
+ `auth.service_token_required`) → rate limiter; (handler) principal gate (401) → capability fact `sessionWorktree` (501 `capability.unavailable`,
3223
+ answered BEFORE `cwd` is read: only a single-user host-lane deployment with the local session store answers) → query (400
3224
+ `request.field_invalid`: `cwd` not exactly once / not an absolute host path, `name` more than once; the judge is not called) → judge. A 501 and an
3225
+ older server's 404 both read "not known". Known limits (engine readings projected verbatim): a path that does not exist ⇒ `git_unavailable`; a
3226
+ subfolder of a plain linked worktree ⇒ `gitRoot` is that subfolder.
3227
+ responses:
3228
+ '200':
3229
+ description: The engine's answer (capable, or not capable with a `reason` from the closed set and a one-sentence `detail`).
3230
+ content:
3231
+ application/json:
3232
+ schema: { $ref: '#/components/schemas/WorktreeCapability' }
3233
+ '400': { $ref: '#/components/responses/BadRequest' }
3234
+ '401': { $ref: '#/components/responses/Unauthorized' }
3235
+ '404': { $ref: '#/components/responses/NotFound' }
3236
+ '429': { $ref: '#/components/responses/RateLimited' }
3237
+ '501': { $ref: '#/components/responses/NotImplemented' }
3238
+ '503': { $ref: '#/components/responses/Unauthorized' } # `auth.service_token_required` — the credential-gated door (effect class host-action), before routing.
3239
+
3041
3240
  /v1/sessions/{sessionId}/memory-status:
3042
3241
  parameters:
3043
3242
  - $ref: '#/components/parameters/PrincipalHeader'
@@ -3997,6 +4196,11 @@ paths:
3997
4196
  `not_found.approval` (it used to 409 — a single-bit cross-tenant "who is parked on an approval"
3998
4197
  oracle); a legitimately-owned old token (a shell retrying its own already-decided row) keeps the
3999
4198
  attributable 409 + `terminal:"resolved"` verbatim.
4199
+ server >= 7.156.0 — `terminal` is a closed set of two words, `resolved` | `expired` (that row's status now; never beside
4200
+ `currentPending`): a decide retried by `boundCallId` with no gate pending answers 409 + `terminal` where it answered 404 before —
4201
+ a changed verdict / payload / digest, a checkpoint id naming another gate, someone deciding first, or the window's auto-deny ⇒
4202
+ `resolved`; a voided / reaped card, or an unrevivable parked child voided by a deny ⇒ `expired` (a timeout or void, not a verdict).
4203
+ An echoed old token whose row is still pending (superseded) carries no `terminal`. SDK `ApprovalStaleError.terminal`.
4000
4204
  PARKED-CHILD lane, K-24 (server >= 7.104.0 / S-790) — two codes gain a trigger, same code, same body keys:
4001
4205
  `decide.not_parked` (DecideParkMovedError) now also answers when the child's ROOT SESSION was deleted, or deleted
4002
4206
  and the same id re-registered as a new session (the decide leg reads the root session's occupant before and after
@@ -4110,7 +4314,7 @@ paths:
4110
4314
  application/json:
4111
4315
  schema: { $ref: '#/components/schemas/ErrorResponse' }
4112
4316
  '409':
4113
- description: '`approval_stale` (the echoed `checkpointId` is not the current gate: body `currentPending: { checkpointId }` - $ref ApprovalStaleGate, the gate-id form shared with the plan_review door; SDK `ApprovalStaleError.currentGate` - or root `checkpointIdMissing`) ·`conflict.session_active_run` (the card belongs to a run holding a claim; `activeTaskId`) · `decide.gate_moved` (lost the CAS to a concurrent settlement). Nothing written.'
4317
+ description: '`approval_stale` (the echoed `checkpointId` is not the current gate: body `currentPending: { checkpointId }` - $ref ApprovalStaleGate, the gate-id form shared with the plan_review door; SDK `ApprovalStaleError.currentGate` - or root `checkpointIdMissing`; server >= 7.156.0: a void retried with a `checkpointId` that names a card of this session already out of pending answers this 409 with root `terminal` - `resolved` | `expired`, never beside `currentPending` - where it answered 404 before, and never `200`: `expired` means the card left pending with no decision in force, which is what the void asked for) ·`conflict.session_active_run` (the card belongs to a run holding a claim; `activeTaskId`) · `decide.gate_moved` (lost the CAS to a concurrent settlement). Nothing written.'
4114
4318
  content:
4115
4319
  application/json:
4116
4320
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -4398,12 +4602,25 @@ paths:
4398
4602
  responses:
4399
4603
  '200':
4400
4604
  # 2026-07-25:同 resume —— 两条共用 `driveResumeIntoRunLog`,响应体逐字相同。
4605
+ # server 7.156.0 起多一支:计划门已结束而这份 `reject` 记着且相等 ⇒ 幂等重放体(铸点 `idempotentReplayBody`,与 /decide 的回放同一只)。
4401
4606
  description: >
4402
4607
  Resolved. 🔴 A 200 does NOT mean success — see `status`/`errorCode`/`retriable` (same body as §4b
4403
- resume; the two share one handler).
4608
+ resume; the two share one handler). TWO ARMS, discriminated by `idempotent`: the acceptance / synchronous-terminal
4609
+ body (`AssistantTaskStatus`) or, server >= 7.156.0, the idempotent replay (`DecisionReplayReceipt`, `decision: reject`) — only when this is
4610
+ a `reject` that carries `checkpointId` naming the plan gate and carries no resume restatement (`mcpServers` / `a2aPeers`), that gate has already
4611
+ ended, and the decision recorded on it is the same `reject` (equal reason); nothing resumes: no `taskId`, no `status`. A resend without the
4612
+ gate id, with a restatement, or of `approve` / `edit` never reaches the replay.
4404
4613
  content:
4405
4614
  application/json:
4406
- schema: { $ref: '#/components/schemas/AssistantTaskStatus' }
4615
+ schema:
4616
+ oneOf:
4617
+ - { $ref: '#/components/schemas/AssistantTaskStatus' }
4618
+ # 重放支 = 共用的闭形重放体 ∧ 这扇口只重放 `reject`(服务端 `idempotentReplayBody(run.sessionId, "reject")`)。
4619
+ - allOf:
4620
+ - { $ref: '#/components/schemas/DecisionReplayReceipt' }
4621
+ - type: object
4622
+ properties:
4623
+ decision: { type: string, enum: [reject] }
4407
4624
  '400':
4408
4625
  description: >
4409
4626
  `ErrorResponse`-shaped. Codes: "request.body_shape" (bad/missing `decision`, OR an unrecognised
@@ -4431,6 +4648,9 @@ paths:
4431
4648
  NOT a session-CAS conflict. SDK → GateNotPlanReviewError.
4432
4649
  server >= 7.137.0: `errorCode:"approval_stale"` — the body carried `checkpointId` and it is not the session's pending plan gate; body `currentPending: { checkpointId }`
4433
4650
  ($ref ApprovalStaleGate, the gate-id form of `currentPending` that the void door shares; SDK `ApprovalStaleError.currentGate`). A narrow window after the stale check answers `conflict.not_resumable` (the claim-loser code; the decision is not recorded either).
4651
+ server >= 7.156.0: with no plan gate pending, a `checkpointId` naming a plan gate of this run's session that has already ended answers this 409 with `terminal`
4652
+ (`resolved` | `expired`, never beside `currentPending`; SDK `ApprovalStaleError.terminal`) where it answered 404 before; a `reject` recorded and equal to this body
4653
+ answers `200` instead, the idempotent replay (`DecisionReplayReceipt`: `{ sessionId, idempotent: true, decision: "reject", bindingEnforced: true, decisionCommitted: true }`) with no `taskId` / `status`.
4434
4654
  content:
4435
4655
  application/json:
4436
4656
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -5533,14 +5753,7 @@ paths:
5533
5753
  required: true
5534
5754
  content:
5535
5755
  application/json:
5536
- schema:
5537
- type: object
5538
- required: [objective]
5539
- additionalProperties: true
5540
- properties:
5541
- objective: { type: string }
5542
- sessionId: { type: string }
5543
- jobId: { type: string, minLength: 1, maxLength: 64 }
5756
+ schema: { $ref: '#/components/schemas/LeaderRequest' }
5544
5757
  responses:
5545
5758
  '202':
5546
5759
  description: Leader run accepted.
@@ -5552,6 +5765,10 @@ paths:
5552
5765
  errorCode "request.body_shape" — a missing/blank `objective` or required field, OR a malformed
5553
5766
  `Idempotency-Key` (must be 1-255 chars with no leading/trailing whitespace). The key is validated
5554
5767
  LOUDLY rather than ignored: silently dropping a dedupe key permits a second real git push.
5768
+ Since server 7.156.0 a top-level key outside the nine is also `request.body_shape`, with
5769
+ `unknownKeys` / `unsupportedKeys` at the body root naming it (checked after `objective`, before the
5770
+ required fields); and a `durableRemote` the push step would certainly refuse is
5771
+ `request.field_invalid` at submit time (the message does not echo the address).
5555
5772
  content:
5556
5773
  application/json:
5557
5774
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -6644,11 +6861,18 @@ paths:
6644
6861
  RETIRED (zero alias): the 7.35.0–7.120.x `{reason}` "shutdown reason declaration" body (it only recorded a sentence and never
6645
6862
  drained) now answers 400 `request.field_invalid`; `/health.drainReason` and the `reason` key on 503 `draining` bodies are gone too.
6646
6863
  Gate order (same as every operator face): identity -> authorization -> body shape -> drain entry -> four-part identity.
6864
+ SERVER >= 7.156.0 — TWO BODY FORMS, exactly one: the identity form `DrainRequest` above, or the CREDENTIAL-NAMED form `CredentialDrainRequest`
6865
+ (gate on `capabilities.engine.credentialDrain`): the caller presents this process's `launch`-class service credential and the strict body names
6866
+ only `instanceId?` / `turns?` / `attachedAtMost?` (`{}` is the whole default form). An identity body that also carries `turns` / `attachedAtMost`
6867
+ ⇒ 400 `request.field_invalid` + `reason: not_a_drain_form` (it used to be accepted with the two keys stripped); `{}` on a deployment without
6868
+ `launch` ⇒ 409 `conflict.fleet_identity` (it used to be 400). Refusal bodies carry a machine `reason` on 403 `auth.operator_only`
6869
+ (`principal_not_on_roster` / `principal_absent` / `halt_needs_operate`) and on 400 `request.field_invalid` (`not_a_drain_form` /
6870
+ `deadline_beyond_bound`); an unmet `attachedAtMost` ⇒ 409 `conflict.drain_condition_unmet` with root `attached` / `attachedAtMost`.
6647
6871
  requestBody:
6648
6872
  required: true
6649
6873
  content:
6650
6874
  application/json:
6651
- schema: { $ref: '#/components/schemas/DrainRequest' }
6875
+ schema: { $ref: '#/components/schemas/DrainBody' }
6652
6876
  responses:
6653
6877
  '200':
6654
6878
  description: Draining (this call entered it) or already draining (the first drain's facts, unchanged).
@@ -8404,6 +8628,13 @@ components:
8404
8628
  they name go to the classifier; the read-only command lane and hook approvals are unchanged, deny / ask rows unchanged. Acts only under auto (judged per
8405
8629
  call); `false` = absent. Non-boolean => 400 `request.field_invalid`. Re-read by resume / delivery legs from the stored body; inherited by engine-built
8406
8630
  children and workflow members. Not accepted from `settings`. A server without the bit answers 400 `request.body_shape` for this key.
8631
+ fastMode:
8632
+ type: boolean
8633
+ description: >-
8634
+ server >= 7.156.0 (engine word `task.fast_mode`, constant true from 7.156.0) — FAST MODE (the same model's faster output tier, not another model),
8635
+ passed verbatim to the engine seat; all three submit doors; resume / delivery legs re-read the stored body; delegated children follow the parent leg.
8636
+ Non-boolean ⇒ 400 `request.field_invalid` (with `field`). An unsupporting model is NOT refused: the engine sends at standard speed and emits
8637
+ `model.capability_downgraded` (`capability: fast_mode`); read `GET /v1/models` rows' `fastMode` first. Servers <= 7.155.x answer 400 `request.body_shape`.
8407
8638
  userAttachments:
8408
8639
  type: array
8409
8640
  maxItems: 20
@@ -8725,7 +8956,7 @@ components:
8725
8956
  type: string
8726
8957
  enum: [sidechain]
8727
8958
  description: >-
8728
- Server >= 7.151.0 (read `capabilities.sessionKinds` first): the KIND of the session this submission CREATES — `sidechain` = a client-placed sub-conversation: it is not listed by `GET /v1/sessions` unless asked for with `?sessionKind=sidechain`, and is deleted after the deployment's background-agent retention window of inactivity. Absent = a top-level conversation. Written ONCE when the session is created and never changes (a different kind on an existing session => 409 `conflict.session_kind_mismatch`, body `sessionKind` = the row's kind); a deployment whose session store cannot record the kind answers 501.
8959
+ Server >= 7.151.0 (read `capabilities.sessionKinds` first): the KIND of the session this submission CREATES — `sidechain` = a client-placed sub-conversation: it is not listed by `GET /v1/sessions` unless asked for with `?sessionKind=sidechain`, and is deleted after the deployment's background-agent retention window of inactivity. Absent = a top-level conversation. Written ONCE when the session is created and never changes (a different kind on an existing session => 409 `conflict.session_kind_mismatch`, body `sessionKind` = the row's kind); a deployment whose session store cannot record the kind answers 400 `request.precondition_unmet` (the session would otherwise be created as a top-level conversation), and a kind outside the closed set answers 400 `request.field_invalid` — both before anything is written.
8729
8960
  cwd:
8730
8961
  type: string
8731
8962
  description: >-
@@ -10692,9 +10923,8 @@ components:
10692
10923
  allOf: [{ $ref: '#/components/schemas/LeaderRunResult' }]
10693
10924
  description: >
10694
10925
  The leader run's terminal payload. sdk 9.7.0 declares the two segments a consumer actually renders
10695
- (`conflict` / `salvaged`) and leaves the rest open — see `LeaderRunResult`. (The SDK's TS side keeps
10696
- `LeaderRecord.result: unknown` for one more version: pointing it at the named type is a NARROWING,
10697
- which RELEASE.md reserves for a major. Cast it: `record.result as LeaderRunResult`.)
10926
+ (`conflict` / `salvaged`) and leaves the rest open — see `LeaderRunResult`. sdk 47.0.0: the SDK's TS side
10927
+ types `LeaderRecord.result` as `LeaderRunResult` too (it was `unknown` before, read through a cast; the cast still compiles).
10698
10928
  error: { type: string }
10699
10929
  cancelRequested:
10700
10930
  type: boolean
@@ -10815,7 +11045,7 @@ components:
10815
11045
  additionalProperties: true
10816
11046
  description: 'Replan-lite: which trigger won arbitration and what was done. 🔴 The closed set LOST `merge-conflict` in 7.83.0 (S-113, hard breaking, zero aliases): a merge that does not apply is no longer replanned, it is handed to the user.'
10817
11047
  properties:
10818
- trigger: { type: string, description: 'suspended | budget | verify-fail | worker-failed.' }
11048
+ trigger: { type: string, description: 'suspended | budget | verify-fail | worker-failed | plan-rejected (since server 7.156.0: the plan was refused twice at planning time and the run proceeded on the single route; filled only when none of the three post-dispatch triggers fired).' }
10819
11049
  redispatched: { type: array, items: { type: string } }
10820
11050
  collapsed: { type: string }
10821
11051
 
@@ -10913,9 +11143,11 @@ components:
10913
11143
  (`decision: "approve"`, `decidedBy` absent or `person`): on a deny or a `decidedBy: "policy"` decision ⇒ 400 `request.field_conflict` with
10914
11144
  `reason: "approval_feedback"` and `fields` `["feedback", "decision"]` (root keys since server 7.148.0; `detail.kind` / `detail.fields` before) / `["feedback", "decidedBy"]` (a denial's words go in `reason`);
10915
11145
  a non-string ⇒ 400 `request.field_invalid`; any value on a direct-door worker ⇒ 400 `feedback_not_in_proof` (not inside the signed proof); words
10916
- carrying `<system-reminder>` ⇒ server >= 7.135.0 (engine 7.55.0): 409 `resume_outcome_invalid` + `field: "feedback"` + `retriable: true` (the engine's sentence naming `feedback`; refused before the CAS, the card stays pending — ask the person to change
10917
- or drop the words, do not auto-refetch and re-decide on the code); server 7.134.x: 409 `approval_binding_mismatch` (no `field`). The same door serves parked background-agent cards and workflow child cards; the live
10918
- `POST /v1/tasks/{taskId}/asks/{askId}/decision` does NOT take it. Servers <= 7.133.x refuse the key (400 `request.body_shape`, `unknownKeys: ["feedback"]`).
11146
+ carrying `<system-reminder>` ⇒ server >= 7.156.0: 400 `request.field_invalid` + `field: "feedback"` at the door (after reading the decider, before existence; the card is untouched — the
11147
+ same door functions as `POST /v1/tasks/{taskId}/asks/{askId}/decision`); servers 7.135.0 – 7.155.x (engine 7.55.0): 409 `resume_outcome_invalid` + `field: "feedback"` + `retriable: true` (refused by the
11148
+ engine before the CAS, the card stays pending); server 7.134.x: 409 `approval_binding_mismatch` (no `field`). In every generation ask the person to change or drop the words — do not auto-refetch and re-decide on the code.
11149
+ The same door serves parked background-agent cards and workflow child cards; the decision door `POST /v1/tasks/{taskId}/asks/{askId}/decision` takes the key from server 7.156.0
11150
+ (capability `approvalFeedback`), not before. Servers <= 7.133.x refuse the key (400 `request.body_shape`, `unknownKeys: ["feedback"]`).
10919
11151
  decidedVia:
10920
11152
  allOf: [{ $ref: '#/components/schemas/ApprovalDecidedVia' }]
10921
11153
  description: 'server >= 7.143.0 (capability `approvalDecidedVia`): which seat answered a `decidedBy: "policy"` decision. Only beside `decidedBy: "policy"`; `null` is not absence (400); any value on a direct-door worker ⇒ 400.'
@@ -11017,7 +11249,7 @@ components:
11017
11249
  items: { type: string, enum: [sidechain] }
11018
11250
  description: >-
11019
11251
  Server >= 7.151.0: the session kinds this deployment can RECORD (`["sidechain"]` where the session store records a session's kind and ages such sessions out — `DB_BACKEND=mysql|pg|local`; `[]` elsewhere,
11020
- where `sessionKind` on a submit answers 501). ABSENT = an older server.
11252
+ where `sessionKind` on a submit answers 400 `request.precondition_unmet`). ABSENT = an older server.
11021
11253
  sessionRewindFilesCwd:
11022
11254
  type: boolean
11023
11255
  description: >-
@@ -11053,15 +11285,42 @@ components:
11053
11285
  task_notification.note_key:
11054
11286
  type: boolean
11055
11287
  description: 'ENGINE CAPABILITY WORD (tenth; server >= 7.155.0 projects it, always `false`): every `task_notification` the engine pushes states `noteKey`. A false word = this service does not promise it. ABSENT = an older server.'
11288
+ task.continues_from:
11289
+ type: boolean
11290
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0, eleventh in its order; server >= 7.157.0 projects it, always `false`): the engine hands back on a run result the value to continue from next time. This service''s submit door takes `resumeAt` as an event handle this service minted, never the engine''s value — so it does not promise the word. ABSENT = an older server.'
11291
+ execution_env.workspace_sync:
11292
+ type: boolean
11293
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): the engine calls the execution environment''s workspace-sync seat. This service''s execution-environment adapters carry no such seat. ABSENT = an older server.'
11294
+ session.rewind_conversation:
11295
+ type: boolean
11296
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): the engine''s conversation-rewind entry. This service has no door that calls it (taking a turn back goes through the submit door''s `resumeAt` + `resumeAtMode`). ABSENT = an older server.'
11297
+ instruction_family.external_includes:
11298
+ type: boolean
11299
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): a member of the instruction-file family declaration. The declaration this service hands the engine does not write it. ABSENT = an older server.'
11300
+ instruction_family.host_text:
11301
+ type: boolean
11302
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): a member of the instruction-file family declaration. The declaration this service hands the engine does not write it. ABSENT = an older server.'
11303
+ instruction_family.local_files:
11304
+ type: boolean
11305
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): a member of the instruction-file family declaration. The declaration this service hands the engine does not write it. ABSENT = an older server.'
11306
+ session_changes.checkpoints:
11307
+ type: boolean
11308
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): one of the two sources the engine reads "what this session changed" from. This service has no door for it. ABSENT = an older server.'
11309
+ session_changes.git:
11310
+ type: boolean
11311
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): one of the two sources the engine reads "what this session changed" from. This service has no door for it. ABSENT = an older server.'
11056
11312
  task.agent_config_dirs:
11057
11313
  type: boolean
11058
11314
  description: >-
11059
- ENGINE CAPABILITY WORD (eleventh; server >= 7.155.0): this deployment ACCEPTS the request seat `settings.agentConfigDirs` (the caller's configuration roots; see
11315
+ ENGINE CAPABILITY WORD (eleventh up to engine 7.69.x, nineteenth from engine 7.70.0; server >= 7.155.0): this deployment ACCEPTS the request seat `settings.agentConfigDirs` (the caller's configuration roots; see
11060
11316
  `TaskRequest.settings`) — `true` only where the tools run on this host; `false` on cloud sandbox / device / ssh / adb / handless lanes (a non-empty list there is
11061
11317
  400 `request.field_invalid` with `reason: lane_not_host`). Send the key only when this is strictly `true`. ABSENT = an older server (the key is 400 `request.body_shape`).
11062
11318
  task.agent_home_dirs:
11063
11319
  type: boolean
11064
- description: 'ENGINE CAPABILITY WORD (twelfth; server >= 7.155.0): this deployment accepts `settings.agentHomeDirs` (the caller''s homes) — same deployment column and the same reading as `task.agent_config_dirs`.'
11320
+ description: 'ENGINE CAPABILITY WORD (twelfth up to engine 7.69.x, twentieth from engine 7.70.0; server >= 7.155.0): this deployment accepts `settings.agentHomeDirs` (the caller''s homes) — same deployment column and the same reading as `task.agent_config_dirs`.'
11321
+ artifact_host.libraries:
11322
+ type: boolean
11323
+ description: 'ENGINE CAPABILITY WORD (engine 7.70.0, last in its order; server >= 7.157.0 projects it, always `false`): the libraries an Artifact host declares available. This service mounts no Artifact host seat. ABSENT = an older server.'
11065
11324
  credentialPlane:
11066
11325
  allOf: [{ $ref: '#/components/schemas/CredentialPlaneCapability' }]
11067
11326
  description: >-
@@ -11661,6 +11920,7 @@ components:
11661
11920
  env: { type: boolean, description: 'TRUE on the single-user host lane (server emits `cwdHonored(config)`). It is NOT hard-coded false any more — the old always-false value predated the per-task shellEnv seam and hid a live capability.' }
11662
11921
  hooks: { type: boolean, description: 'Single-user deployments only (`requirePrincipal !== true`).' }
11663
11922
  autoCompactEnabled: { type: boolean, description: 'server >= 7.146.0, constant true — the request key `settings.autoCompactEnabled` (boolean; handed verbatim to the engine''s auto-compaction seat `compaction.autoCompact`; absent = the deployment seat''s default, i.e. on) is accepted. ABSENT = an older server (the key answers 400 `request.body_shape`).' }
11923
+ pluginOptionSubstitution: { type: boolean, description: 'server >= 7.156.0 (same predicate as `hooks`) — this deployment''s executor is the ONLY replacer of `${user_config.<key>}` placeholders in plugin command-hook command lines (one pass at spawn, into the spawn copy only); a shell-form placeholder / an exec form naming an unset key ⇒ that hook does not run; a vault-reference option value ⇒ accepted, that hook does not run (word `no_option_channel`). Send placeholder text verbatim only when true; absent = an older server (the executor does not replace — pre-substitute as before); false = a multi-tenant lane (hooks do not run).' }
11664
11924
  pluginHooks: { type: boolean, description: 'server >= 7.133.0 — the request `settings.hooks[]` PLUGIN-CONTEXT keys (command entry `plugin { name, root, dataDir?, options? }` / exec-form `args`) are accepted; same predicate as `hooks` (single-user true, multi-tenant false). ABSENT or false = the keys are stripped silently — send only on sight of the bit.' }
11665
11925
  managedHookGroups: { type: boolean, description: 'server >= 7.133.0 — the request `settings.hooks[]` GROUP `source` key (managed lanes `managedPolicy` / `managedPlugin:<name>`) is accepted; same predicate as `hooks`. ABSENT or false = stripped silently (the managed-lane semantics do not apply, it is not a refusal).' }
11666
11926
  httpHookAllowlists: { type: boolean, description: 'server >= 7.142.0 — the request keys `settings.allowedHttpHookUrls` / `settings.httpHookAllowedEnvVars` (the settings-schema package''s two http-hook allowlists) are read and enforced at the dial-out point. The SAME predicate as `hooks` (true on the single-user lane; false where `settings.hooks` is ignored). ABSENT = server <= 7.141.x, which answers 400 `request.body_shape` for those keys — send only on sight of the bit.' }
@@ -11944,11 +12204,13 @@ components:
11944
12204
  model: { type: string }
11945
12205
  refusedBy:
11946
12206
  type: string
11947
- enum: [center.autoMode, center.allowAutoMode, both]
12207
+ enum: [center.autoMode]
11948
12208
  description: >-
11949
12209
  server >= 7.148.0 — present ONLY with `armed: false` + `reason: org_denied` when the CENTER itself refused auto: which
11950
- center entitlement key refused it (`both` = both keys). Absent when the center could not answer (the server's
12210
+ center entitlement key refused it. Absent when the center could not answer (the server's
11951
12211
  fail-closed refusal), when the local `PERMISSIONS_DISABLE_AUTO_MODE` wins (`local_denied`), and on servers <= 7.147.x.
12212
+ server >= 7.156.0 has one word left, `center.autoMode` (the contract package folds the center's auto refusal into one source);
12213
+ servers 7.148.0 – 7.155.x may still answer `center.allowAutoMode` / `both`, which mean the same action: change the center's auto key.
11952
12214
  readFace:
11953
12215
  type: ["string", "null"]
11954
12216
  enum: [open, roots, null]
@@ -12271,6 +12533,86 @@ components:
12271
12533
  that surface's own bit, never "accepts nothing"). Members of list / discriminated / open / sub-object layers are not listed and their refusal is not
12272
12534
  promised. It describes what this BUILD accepts, not what this deployment honours. The decision verbs that take `checkpointId` as gate-identity echo
12273
12535
  are the rows whose value contains it (today decide / void / plan_review). ABSENT = an older server: read that generation's per-key bits.
12536
+ attachmentIdsInSeat:
12537
+ type: boolean
12538
+ description: >-
12539
+ server >= 7.156.0, constant true — uploaded handles `attachmentIds` go through the attachment seat: their count cap = `userAttachments.limits.maxEntries`
12540
+ (the same number), and handle-derived entries share the one seat with inline `userAttachments` entries (over the seat ⇒ 400
12541
+ `config.user_attachment_invalid`, whole seat, no `index`; over the handle table itself ⇒ 400 `request.rejected`). ABSENT on servers <= 7.154.x
12542
+ (old form: an independent cap of 16, handles do not take seats) AND on the shipped 7.155.0 (already the new form, without the bit — read the server
12543
+ version to tell those two apart). It answers only "do handles take seats", not the cap (read `userAttachments`) nor "is `attachmentIds` accepted".
12544
+ hookProgress: { type: boolean, description: 'server >= 7.156.0, constant true — the live stream (`POST /v1/tasks/stream`) carries every engine-minted `hook_progress` frame (live only; never in the ledger or a replay). True ⇒ the frame MAY come; its absence proves nothing. Absent = an older server.' }
12545
+ instructionFamily:
12546
+ oneOf:
12547
+ - $ref: '#/components/schemas/InstructionFamilyCapability'
12548
+ - type: 'null'
12549
+ description: >-
12550
+ server >= 7.156.0 (config-dependent) — the project instruction-file family the deployment declares to the engine (sub-keys verbatim the engine's
12551
+ `TaskSpec.instructionFamily` declaration form, the same value every leg's spec carries). `null` = the deployment declares none
12552
+ (`PROJECT_MEMORY_ENABLED=false`). It says what the deployment declares, not what a run read (that is the leg's `wiring_manifest.instructions`).
12553
+ Absent = an older server.
12554
+ appendSystemPromptMaxChars: { type: integer, minimum: 1, description: 'server >= 7.156.0, always present (a build fact, a positive integer) — the cap on the top-level `appendSystemPrompt` (JS string length; today 16384); over it ⇒ 400 `request.field_invalid` with `cap` of the same number.' }
12555
+ settingsOutputStyleMaxChars: { type: integer, minimum: 1, description: 'server >= 7.156.0, always present — the cap on `settings.outputStyle` (the style BODY), the same constant and the same refusal as `appendSystemPromptMaxChars`.' }
12556
+ mcpHostReads: { type: boolean, description: 'server >= 7.156.0, constant true — the session MCP panel''s engine host reads: each `GET /v1/sessions/{id}/mcp` `servers[]` entry MAY carry `prompts` / `resources` / `resourceTemplates`, and `POST /v1/sessions/{id}/mcp/prompts/get` exists. It says the server supports them, not that a given answer carries all three. Absent = an older server.' }
12557
+ a2aPeers: { type: boolean, description: 'server >= 7.156.0 (facility-dependent) — `GET /v1/a2a/peers` is available (this replica''s per-peer state `published` / `pending` / `effective` / `revoked` + the publish switch). Absent = an older server (the door answers 404 `not_found.route`).' }
12558
+ approvalFeedback: { type: boolean, description: 'server >= 7.156.0 (facility + config) — whether the decision door `POST /v1/tasks/{taskId}/asks/{askId}/decision` ACCEPTS the person''s words to the agent `feedback` = that door is up (same fact as `streamApproval`) ∧ not a direct-door deployment. It says accepted, not delivered (read the first-decision receipt''s `feedbackForwarded`). Absent = an older server (that door answers 400 `request.body_shape` for `feedback`).' }
12559
+ permissionModeArbitration:
12560
+ type: array
12561
+ items: { $ref: '#/components/schemas/PermissionModeArbitrationRow' }
12562
+ description: >-
12563
+ server >= 7.156.0 (per caller) — what this deployment turns each submitted permission-mode word into: one row per word, in `permissionModes` order,
12564
+ each the answer of the ONE admission judge the submit doors and the in-flight mode-switch door share. Unavailable ⇔ `deny` present or
12565
+ `admitted ≠ mode`; unknown ⇔ `admitted = mode`, no `deny` and `engine: "unknown"` (no row reads as "certainly runs as the word" today). Absent = an older server.
12566
+ permissionModeWhenUnset:
12567
+ oneOf:
12568
+ - $ref: '#/components/schemas/PermissionMode'
12569
+ - type: 'null'
12570
+ description: >-
12571
+ server >= 7.156.0 (per caller) — the mode a submit that names no mode word starts in (the word the submit door writes into the stored body):
12572
+ `plan` ⇔ operator `AUTONOMY=plan`; `auto` ⇔ an isolating sandbox lane ∧ `SANDBOX_DEFAULT_PERMISSION_MODE=auto` ∧ auto arms for this caller now;
12573
+ otherwise `null` (the submit door stamps no word). ABSENT = an older server, NOT `null`.
12574
+ scheduledTasks: { type: boolean, description: 'server >= 7.156.0 (facility-dependent) — the caller''s scheduled-task doors `GET /v1/scheduled` · `DELETE /v1/scheduled/{id}` exist (the scheduler backend is wired). false ⇒ both answer 501 `capability.scheduler_required` (NOT an empty table). Absent = an older server (404).' }
12575
+ sessionScheduledTasks: { type: boolean, description: 'server >= 7.156.0 (facility-dependent) — the session''s scheduled-task doors `GET /v1/sessions/{id}/scheduled` · `DELETE /v1/sessions/{id}/scheduled/{entryId}` exist (scheduler wired ∧ the session head read is up). false ⇒ both answer 501 (NOT an empty table). Absent = an older server.' }
12576
+ sessionWorktree: { type: boolean, description: 'server >= 7.156.0 (facility + config) — whether a session may declare its own worktree at open (submit body `workspace`): single-principal with hands on this worker''s disk ∧ a local session store ∧ the worktree probe present. false ⇒ a body carrying `workspace` answers 409 `workspace.isolation_unavailable`; `GET /v1/worktree-capability` answers 501. Absent = an older server (`workspace` is an unknown key, 400).' }
12577
+ InstructionFamilyCapability:
12578
+ type: object
12579
+ description: 'server >= 7.156.0 — `Capabilities.instructionFamily`: the four members are always present; sub-keys verbatim the engine''s declaration form.'
12580
+ additionalProperties: false
12581
+ required: [files, rulesDirs, alternate, includes]
12582
+ properties:
12583
+ files: { type: array, items: { type: string }, description: 'The file names each layer reads (relative, `/`-separated; declaration order = read order).' }
12584
+ rulesDirs: { type: array, items: { type: string }, description: 'The rules directories each layer lists (recursive `.md`; attached to the main family, read when the alternate family takes effect too).' }
12585
+ alternate:
12586
+ type: object
12587
+ additionalProperties: false
12588
+ required: [files, when]
12589
+ properties:
12590
+ files: { type: array, items: { type: string } }
12591
+ when: { type: string, enum: [absent, also], description: '`absent` = read only when no main-family name member exists under the task root; `also` = read both.' }
12592
+ includes: { type: boolean, description: 'Whether `@path` includes inside instruction files are followed (only targets inside the root).' }
12593
+ PermissionModeArbitrationRow:
12594
+ type: object
12595
+ description: 'server >= 7.156.0 — one row of `Capabilities.permissionModeArbitration` (the admission judge''s answer for one mode word, projected verbatim).'
12596
+ additionalProperties: false
12597
+ required: [mode, admitted, engine]
12598
+ properties:
12599
+ mode: { $ref: '#/components/schemas/PermissionMode' }
12600
+ admitted: { $ref: '#/components/schemas/PermissionMode' }
12601
+ foldedBy:
12602
+ allOf: [{ $ref: '#/components/schemas/PermissionModeAdmissionFold' }]
12603
+ description: 'Present ⇔ `admitted` differs from `mode`: the station where the judge changed the word (the same closed set as the permission-mode switch receipt''s `admission.foldedBy`; in this table only `entry_floor` occurs today).'
12604
+ engine: { type: string, enum: [unknown], description: 'The engine-side fold reading; today always `unknown` (the service cannot read the engine''s fold).' }
12605
+ deny: { $ref: '#/components/schemas/PermissionModeDeny' }
12606
+ PermissionModeDeny:
12607
+ type: object
12608
+ description: 'server >= 7.156.0 — present on a `permissionModeArbitration` row ⟺ this caller''s synthesized caps set an engine deny bit for the admitted word (the engine folds it back to `default` at launch).'
12609
+ additionalProperties: false
12610
+ required: [bit]
12611
+ properties:
12612
+ bit: { type: string, enum: [bypassPermissions, autoMode] }
12613
+ source: { type: string, enum: [org, local, settings], description: 'The auto deny bit''s source (engine `AUTO_MODE_DENY_SOURCES`); absent on bypass rows.' }
12614
+ refusedBy: { type: string, enum: [center.autoMode], description: 'When the center itself refused auto: which entitlement key (same word set as `permissionModeAuto.refusedBy`).' }
12615
+ fault: { type: boolean, enum: [true], description: 'The caps read threw this time; read as denied (then `source` / `refusedBy` are absent).' }
12274
12616
  GateEchoedLiteral:
12275
12617
  type: object
12276
12618
  additionalProperties: false
@@ -12318,6 +12660,38 @@ components:
12318
12660
  properties:
12319
12661
  root: { type: string, description: '`data` (data root) | `sealed_key` (sealed key directory) | `memory` (file memory root, only when the file memory engine is wired). Read open.' }
12320
12662
  rule: { type: string, description: 'The rule word (same closed set as the operator diagnostics `storeDurability.roots[].rule`): backend_memory, backend_sql, fs_volatile, k8s_empty_dir, k8s_persistent_volume, network_fs, block_device, unrecognized_mount, mount_unresolved, mountinfo_unreadable, mountinfo_malformed, path_unresolvable, not_linux. Read open.' }
12663
+ FastModeReading:
12664
+ type: object
12665
+ description: 'server >= 7.156.0 — the engine''s `FastModeReading` verbatim: `reason` present iff something stands in fast mode''s way; `cooldown` present iff `state` is `cooldown`.'
12666
+ additionalProperties: false
12667
+ required: [state]
12668
+ properties:
12669
+ state: { type: string, enum: ['off', cooldown, 'on'] }
12670
+ reason: { type: string, enum: [not_first_party, model_not_allowed, unknown, preference, extra_usage_disabled] }
12671
+ cooldown:
12672
+ type: object
12673
+ additionalProperties: false
12674
+ required: [until, reason]
12675
+ properties:
12676
+ until: { type: number, description: 'epoch ms' }
12677
+ reason: { type: string, enum: [rate_limit, overloaded] }
12678
+ ApprovalCardRedactedKey:
12679
+ type: string
12680
+ enum: [args]
12681
+ description: 'server >= 7.156.0 — the closed set of `ApprovalCard.redactedKeys` members (server `APPROVAL_CARD_REDACTED_KEYS`): card members whose bytes the exit redaction rewrote.'
12682
+ ParkedRowRedactedKey:
12683
+ type: string
12684
+ enum: [input]
12685
+ description: 'server >= 7.156.0 — the closed set of `PendingCheckpoint.redactedKeys` members (server `PARKED_ROW_REDACTED_KEYS`): row members whose bytes the exit redaction rewrote.'
12686
+ StuckCardWord:
12687
+ type: string
12688
+ enum: [row, resume_input_absent, gate_unlisted]
12689
+ description: >-
12690
+ server >= 7.156.0 — why a card cannot be decided here (one reader, one projection, on every face: the operator queue row and its stream frame,
12691
+ the inbox row, the per-ask read's parked arm, the decision-family refusal bodies): `row` = the engine row judge reads it not ok;
12692
+ `resume_input_absent` = judged ok, but the task-level decision leg's resume context is missing and no parked background / workflow lane owns it;
12693
+ `gate_unlisted` = judged ok, but its gate kind is not one this release registers. Present ⟺ no decision lands here; `wayOut` beside it says the way out.
12694
+
12321
12695
  ApprovalWayOut:
12322
12696
  type: string
12323
12697
  enum: [cancel_run, void_card, newer_worker]
@@ -12337,7 +12711,120 @@ components:
12337
12711
  declared: { type: string, description: 'The caller''s own string (`additionalDirectories` / `additionalReadDirectories` entry), byte-identical to the request.' }
12338
12712
  access: { type: string, description: '`read` (from `additionalReadDirectories`) | `write` (from `additionalDirectories`); engine closed set, passed through - keep a default arm.' }
12339
12713
  at: { type: string, description: 'Where it landed after the engine canonicalized it.' }
12340
- tree: { type: string, description: 'Present iff the engine gives it (absent today: the server declares no session workspace).' }
12714
+ tree: { type: string, description: 'Present iff this additional root lands inside the SESSION''s own tree (the tree''s directory, `SessionCheckoutEntry.dir`). Server >= 7.156.0 accepts the submit body''s `workspace` declaration, which is what makes a session tree exist; before that it was always absent.' }
12715
+ SessionCheckoutRoot:
12716
+ description: 'server >= 7.156.0 — which declared root of the session''s workspace a checkout entry or a declaration member stands for: the word `taskRoot` (the leg''s task root) or `{ directory }` (an additional directory the declaration named).'
12717
+ oneOf:
12718
+ - { type: string, enum: [taskRoot] }
12719
+ - type: object
12720
+ additionalProperties: false
12721
+ required: [directory]
12722
+ properties:
12723
+ directory: { type: string, minLength: 1 }
12724
+ SessionCheckoutSource:
12725
+ type: object
12726
+ additionalProperties: false
12727
+ description: 'server >= 7.156.0 — the declared code source of one repository on a `workspace_changed.session[]` entry: the remote, the commit it is pinned to and, when declared, the ref.'
12728
+ required: [remote, sha]
12729
+ properties:
12730
+ remote: { type: string, minLength: 1 }
12731
+ sha: { type: string, minLength: 1 }
12732
+ ref: { type: string }
12733
+ SessionCheckoutEntry:
12734
+ type: object
12735
+ additionalProperties: false
12736
+ description: >-
12737
+ server >= 7.156.0 (engine 7.69.0) — one entry of `workspace_changed.session`: the session's checkout of ONE repository. `repository` = the repository's root; `root` = the declared root
12738
+ this entry was made for; `baseSha` = the commit the session's code starts from. `dir` / `name` / `branch` / `baseRef` (present together) = the session's own tree of that repository, where
12739
+ every declared root in it works; `source` = the declared code source for that repository. Path members (`repository`, `dir`, `root.directory`) are path identity: not redacted, not truncated.
12740
+ required: [repository, root, baseSha]
12741
+ properties:
12742
+ repository: { type: string, minLength: 1 }
12743
+ root: { $ref: '#/components/schemas/SessionCheckoutRoot' }
12744
+ baseSha: { type: string, minLength: 1 }
12745
+ dir: { type: string, minLength: 1, description: 'The session''s own tree of this repository (with `name` / `branch` / `baseRef`).' }
12746
+ name: { type: string, minLength: 1 }
12747
+ branch: { type: string, minLength: 1 }
12748
+ baseRef: { type: string, enum: [fresh, head, source], description: 'The base the session''s tree was made from (the engine''s closed set; present together with `dir` / `name` / `branch`).' }
12749
+ source: { $ref: '#/components/schemas/SessionCheckoutSource' }
12750
+ SessionCheckoutDeclarationSource:
12751
+ type: object
12752
+ additionalProperties: false
12753
+ description: 'server >= 7.156.0 — one declared code source on a `workspace_changed.declaration`: which root it is for, the remote, the pinned commit and, when declared, the ref.'
12754
+ required: [root, remote, sha]
12755
+ properties:
12756
+ root: { $ref: '#/components/schemas/SessionCheckoutRoot' }
12757
+ remote: { type: string, minLength: 1 }
12758
+ sha: { type: string, minLength: 1 }
12759
+ ref: { type: string }
12760
+ SessionCheckoutDeclaration:
12761
+ type: object
12762
+ additionalProperties: false
12763
+ description: >-
12764
+ server >= 7.156.0 (engine 7.69.0) — the normalized workspace declaration of a session's checkout (`workspace_changed.declaration`): the value to send back, unchanged, as the submit body's
12765
+ `workspace` on every later leg. Every member is optional.
12766
+ properties:
12767
+ isolation: { type: string, enum: [worktree] }
12768
+ baseRef: { type: string, enum: [fresh, head] }
12769
+ name: { type: string, minLength: 1 }
12770
+ roots:
12771
+ type: array
12772
+ items: { $ref: '#/components/schemas/SessionCheckoutRoot' }
12773
+ sources:
12774
+ type: array
12775
+ items: { $ref: '#/components/schemas/SessionCheckoutDeclarationSource' }
12776
+ SessionCheckoutTree:
12777
+ type: object
12778
+ additionalProperties: true
12779
+ description: >-
12780
+ server >= 7.156.0 — one row of `SessionCheckoutReceipt.trees`: one worktree the engine's release door judged, its members passed through the server's exit seats (`path` through the path-identity seat, shown
12781
+ through the display seat instead when that seat cannot carry it; `branch` / `detail` display text). The row is open on purpose (the server may add keys without a version word).
12782
+ required: [path, removed]
12783
+ properties:
12784
+ path: { type: string, description: 'The tree''s directory as the engine named it.' }
12785
+ removed: { type: boolean, description: 'true = the tree was removed; false = it stays on disk (then `kept` says why).' }
12786
+ kept:
12787
+ type: string
12788
+ enum: [dirty, ignored, commits, unverifiable, requested, not_owned]
12789
+ description: >-
12790
+ Present iff `removed` is false — why it stays (the engine's closed set, passed through): `dirty` / `ignored` / `commits` = the tree this session was given stays only because it holds something (the receipt's `wayOut` then
12791
+ says what to do); `unverifiable` = its state could not be read; `not_owned` = its mark is not the one this allocation made (no clean-up way out is given: check first); `requested` = the caller asked to keep it
12792
+ (this service never asks; the word is in the set and does not occur today).
12793
+ branch: { type: string, description: 'Present iff the tree''s branch still exists after the release (display text: credential-shaped text redacted, capped at 500 characters — to show a person, not a promise to be byte-identical for a git command).' }
12794
+ detail: { type: string, description: 'Present iff the engine gave a sentence for this tree (human text, not a branch point).' }
12795
+ SessionCheckoutReceipt:
12796
+ description: >-
12797
+ server >= 7.156.0 — `DELETE /v1/sessions/{sessionId}` 200 `checkout`: what became of the session's own worktrees. THREE ARMS discriminated by `outcome` (always present; the same
12798
+ three-arm union as the server's own type): `released` (the engine's release door judged each tree: `trees`, and `wayOut` when a tree of this session's own stays),
12799
+ `not_attempted` (no tree was touched: `reason`), `failed` (the release door threw: `code` and `message`) — each arm's members are required on that arm. The release only
12800
+ reports, it never blocks the delete. Every arm is open on purpose (the server may add keys without a version word).
12801
+ oneOf:
12802
+ - type: object
12803
+ additionalProperties: true
12804
+ required: [outcome, trees]
12805
+ properties:
12806
+ outcome: { type: string, enum: [released] }
12807
+ trees:
12808
+ type: array
12809
+ items: { $ref: '#/components/schemas/SessionCheckoutTree' }
12810
+ description: 'One row per tree the engine''s release door judged, `[]` when the session had none.'
12811
+ wayOut: { type: string, description: 'Present iff a tree of this session''s own (kept as `dirty`, `ignored` or `commits`) stays on disk: one fixed sentence — the tree and its branch stay, this service will not clean them up again, remove them yourself (`git worktree remove`, `git branch -D`). Display text.' }
12812
+ - type: object
12813
+ additionalProperties: true
12814
+ required: [outcome, reason]
12815
+ properties:
12816
+ outcome: { type: string, enum: [not_attempted] }
12817
+ reason:
12818
+ type: string
12819
+ enum: [retained_process, background_reap_failed, session_unopenable]
12820
+ description: 'Why the engine''s release was not tried: `retained_process` = a live service is kept or one was not confirmed stopped; `background_reap_failed` = the hard stop of the background work threw; `session_unopenable` = this delete could not open the session.'
12821
+ - type: object
12822
+ additionalProperties: true
12823
+ required: [outcome, code, message]
12824
+ properties:
12825
+ outcome: { type: string, enum: [failed] }
12826
+ code: { type: [string, 'null'], description: 'The engine''s code verbatim, `null` when it gave none.' }
12827
+ message: { type: string, description: 'Human text through the exit seat (credential-shaped text redacted, capped at 500 characters). It always opens with a fixed note that some trees may already have been removed and the ones left stay on disk, then the thrown error''s own text — the part the cap cuts.' }
12341
12828
  WiringManifestAsk:
12342
12829
  type: object
12343
12830
  additionalProperties: false
@@ -13737,6 +14224,9 @@ components:
13737
14224
  items: { type: string }
13738
14225
  description: 'E7 (SHIPPED) — the /effort picker default set (minimal/low/medium/high); present ONLY for a reasoning model.'
13739
14226
  atMentionable: { type: boolean, description: '#233/A-002.8 (SHIPPED) — @model mention allowlist verdict; present ONLY when the deployment configured an at-mention allowlist. Absent = no allowlist verdict, NOT "not mentionable" — do not narrow absence to false.' }
14227
+ fastMode:
14228
+ $ref: '#/components/schemas/FastModeReading'
14229
+ description: 'server >= 7.156.0 (always present; absent = an older server) — this model''s fast-mode reading, the engine''s `fastModeReadingOf({ model, requested: false })` verbatim: `{ state: off }` with no `reason` = can be switched on; a `reason` = cannot now (on the catalog face only `not_first_party` / `model_not_allowed` / `unknown`).'
13740
14230
  routePairing:
13741
14231
  $ref: '#/components/schemas/RoutePairingStatus'
13742
14232
  description: >-
@@ -13781,6 +14271,7 @@ components:
13781
14271
  required: [handover]
13782
14272
  properties:
13783
14273
  handover: { type: boolean }
14274
+ credentialDrain: { type: boolean, description: 'server >= 7.156.0 (always present there; absent on older servers) — whether this engine accepts the drain door''s CREDENTIAL-NAMED form (`CredentialDrainRequest`): true iff the start-up class table `SERVICE_AUTH_CLASSES` declares a `launch` system.' }
13784
14275
 
13785
14276
  ProjectContextItem:
13786
14277
  type: object
@@ -14466,7 +14957,7 @@ components:
14466
14957
  Present ONLY when the run actually spent MORE than its ceiling; absent on every run that stayed within one and on every run that set no budget. The overshoot is
14467
14958
  `spentTokens + unsettledTokens - budgetTokens`; a run whose overshoot rests ENTIRELY on `unsettledTokens` is a best-effort disclosure, not a measurement ("this run appears to
14468
14959
  have overrun, and here is what was seen") — `spentTokens` carries no such caveat (it is the gate's own settled figure). Lets a list row be flagged "completed, and over budget" without an N+1 `get`.
14469
- The detail face (`GET /v1/workflows/:id`) does not carry it.
14960
+ Since server >= 7.148.0 the detail face (`GET /v1/workflows/:id`) answers the same key (`WorkflowRun.budgetOvershoot`) in the same shape.
14470
14961
  required: [budgetTokens, spentTokens]
14471
14962
  additionalProperties: false
14472
14963
  properties:
@@ -14482,7 +14973,7 @@ components:
14482
14973
  reason first, and one that armed no deadline. Lets a row separate "this run was CUT SHORT, and here is what it had achieved" from "this run failed" (both read `status: failed`).
14483
14974
  The counts are a POINT-IN-TIME SNAPSHOT taken BEFORE the terminal fold that marks abandoned agents failed: `agentsFailed` here is NOT `WorkflowRunSummary.agentFailures`
14484
14975
  (the record's tally, which counts the abandoned ones) — swapping one for the other reports abandoned work as failed work. `agentsInFlight` includes calls still queued for a concurrency slot.
14485
- The detail face (`GET /v1/workflows/:id`) does not carry it.
14976
+ Since server >= 7.148.0 the detail face (`GET /v1/workflows/:id`) answers the same key (`WorkflowRun.timeoutInterruption`) in the same shape.
14486
14977
  required: [timeoutMs, agentsCompleted, agentsFailed, agentsInFlight]
14487
14978
  additionalProperties: false
14488
14979
  properties:
@@ -14661,8 +15152,21 @@ components:
14661
15152
  description: { type: string, description: "The workflow script's declared `meta.description` (redacted, one-liner)." }
14662
15153
  status: { $ref: '#/components/schemas/WorkflowRunStatus' }
14663
15154
  agentFailures: { type: integer, description: 'run-level count of agents whose status ended failed — stamped at run end, only when > 0.' }
15155
+ budgetOvershoot:
15156
+ allOf: [{ $ref: '#/components/schemas/WorkflowBudgetOvershoot' }]
15157
+ description: 'server >= 7.148.0 — the same terminal key, same shape and same presence rule as on the list row (`WorkflowRunSummary.budgetOvershoot`): present ONLY when the run spent more than its own token ceiling; absent otherwise. (This schema did not declare it before 47.0.0 although the detail face has carried it since 7.148.0.)'
15158
+ timeoutInterruption:
15159
+ allOf: [{ $ref: '#/components/schemas/WorkflowTimeoutInterruption' }]
15160
+ description: 'server >= 7.148.0 — the same terminal key, same shape and same presence rule as on the list row (`WorkflowRunSummary.timeoutInterruption`): present ONLY when the total-timeout deadline had fired before the run reached its terminal; absent otherwise. (Not declared here before 47.0.0 although the detail face has carried it since 7.148.0.)'
14664
15161
  parked: { type: boolean, enum: [true], description: 'server >= 7.135.0 (core 7.55.0 `runParkedOf`) — present, always the literal `true`, ONLY while the run is `running` AND at least one of its agents is parked at an approval gate; otherwise the key is ABSENT (never `false`). Read it as "the run is waiting on a person", not "failed". Older servers never send it.' }
14665
15162
  errorCode: { type: string, description: 'The run row''s machine code (open set; the same words as the same-named slot on the fleet row, e.g. `workflow.agent_parked` for a drained parked terminal) — present only when the row has one. (Declared here in 26.1.0: the detail projection has forwarded it since before 7.134.0.)' }
15163
+ recordArtifact:
15164
+ allOf: [{ $ref: '#/components/schemas/WorkflowRecordArtifact' }]
15165
+ description: >-
15166
+ server >= 7.154.0 (engine 7.68.0) — where this run's WHOLE record (the result and every leg's row) can be read back from. DETAIL FACE ONLY: the list row never carries it. The engine writes it once, in the run's
15167
+ terminal write, and never rewrites it; the server passes both cells through as they are (it does not decode them or word a sentence — decoding belongs to the engine's exported `workflowRecordPickupOf`, and a shape
15168
+ outside the three reads as absent). ABSENT IS NOT `no_store`: a running run, a record an older engine wrote, a row the deployment closed itself (an orphan sweep flipping a `running` row) and a terminal write
15169
+ that did not land all leave it absent.
14666
15170
  stats: { $ref: '#/components/schemas/WorkflowRunStats' }
14667
15171
  startedAt: { type: integer }
14668
15172
  endedAt: { type: integer }
@@ -14734,6 +15238,27 @@ components:
14734
15238
  word-for-word the same rank as `parks`). It does NOT fold into the absence of `parks`, which has
14735
15239
  its own two meanings (above).
14736
15240
 
15241
+ WorkflowRecordArtifact:
15242
+ description: >-
15243
+ server >= 7.154.0 (engine 7.68.0) — `WorkflowRun.recordArtifact`, three shapes (the engine's closed set; a value outside them reads as absent):
15244
+ `{ kind: stored, ref }` = the whole record was written to the run's result store and the write settled inside the terminal bound; `ref` is the key the engine's `ReadToolResult` reads it back with (minted by the result store,
15245
+ judged by the engine against the store's key shape before it is written — passed through verbatim, NEVER rewritten or redacted: a changed `ref` reads nothing back). It promises the write landed at the terminal, not that the
15246
+ record is still readable: a result store whose retention is shorter than the run record's answers a later read as expired.
15247
+ `{ kind: unconfirmed }` = the run had a result store but this write did not settle as written (it threw, outlived the bound, or the record could not be rendered): no `ref`, and a late landing is never written back.
15248
+ `{ kind: no_store }` = the run started with no result store: no `ref`.
15249
+ oneOf:
15250
+ - type: object
15251
+ additionalProperties: false
15252
+ required: [kind, ref]
15253
+ properties:
15254
+ kind: { type: string, enum: [stored] }
15255
+ ref: { type: string, description: 'The key `ReadToolResult` reads the whole record back with.' }
15256
+ - type: object
15257
+ additionalProperties: false
15258
+ required: [kind]
15259
+ properties:
15260
+ kind: { type: string, enum: [unconfirmed, no_store] }
15261
+
14737
15262
  WorkflowRunPark:
14738
15263
  # sdk 9.5.0:具名行形(同 `WiringManifestMcpEntry` 的裁定),并且**封闭** —— 服务端逐键挑出这四位,
14739
15264
  # 多出来的键意味着有人在别处手拼了第二份形(凭据位就是这样漏出去的)。
@@ -15052,6 +15577,7 @@ components:
15052
15577
  additionalProperties: true
15053
15578
  properties:
15054
15579
  id: { type: string, description: 'Stable identity (durable runId/taskId; subagent child = "<runId> <taskId>"). Update/remove by this.' }
15580
+ unattributed: { const: true, description: 'server >= 7.156.0 — the machine-readable bit of a DEMOTED row (only `true`, present only then): this row reached a `?session=` subscriber through the demoted projection (no session on the row; content scrubbed; `name` rewritten to the literal "(unattributed)"). The bit is the source of truth, the name only the display (a real row may carry that name). Absent = not demoted, or an older server.' }
15055
15581
  model: { type: string, description: 'server >= 7.148.0 (contract appendix H.3c): the model this row runs on (display-scrubbed free text; ABSENT = unknown, not "the default model"). The wire carried it before the SDK declared it.' }
15056
15582
  name: { type: string }
15057
15583
  description: { type: string }
@@ -15097,6 +15623,7 @@ components:
15097
15623
  turns: { type: integer }
15098
15624
  costMicroUsd: { type: integer }
15099
15625
  resumable: { type: boolean }
15626
+ resumableUntil: { type: number, description: 'server >= 7.156.0 (engine 7.69.0): the continuation deadline that came with `resumable: true` (epoch ms, an UPPER BOUND, the engine''s value) — background-child terminal rows only; kept on demoted unattributed rows (an instant, zero session content). Same reader and value as `bg_notification` and the run stream''s `task_notification`. Absent = no deadline set / not resumable / an older server.' }
15100
15627
  editedFiles:
15101
15628
  type: array
15102
15629
  items:
@@ -15166,6 +15693,7 @@ components:
15166
15693
  # 按它 codegen 的第三方会得到一个永远 undefined 的 `workflowRow.sourceLane`,并照 FleetTaskRow 那条
15167
15694
  # 「run-leg composite rows only」的描述写出一个**永不触发**的 workflow 行去重分支。
15168
15695
  id: { type: string }
15696
+ unattributed: { const: true, description: 'server >= 7.156.0 — same as `FleetTaskRow.unattributed` (only `true`): this row was projected through the `?session=` demotion.' }
15169
15697
  name: { type: string }
15170
15698
  description: { type: string }
15171
15699
  status: { type: string, description: 'Neutral workflow run status (running|completed|failed; open).' }
@@ -15332,6 +15860,7 @@ components:
15332
15860
  parentTaskId: { type: string }
15333
15861
  stoppedBy: { type: string, description: 'Verbatim open enum (who/what stopped a killed child).' }
15334
15862
  resumable: { type: boolean }
15863
+ resumableUntil: { type: number, description: 'server >= 7.156.0: the continuation deadline (epoch ms, an UPPER BOUND) — same reader and value as the terminal `task` row and the run stream''s `task_notification`.' }
15335
15864
  recentSteps:
15336
15865
  type: array
15337
15866
  items:
@@ -15574,6 +16103,7 @@ components:
15574
16103
  ts: { type: number, description: 'Registration time (ms epoch).' }
15575
16104
  expiresAtMs: { type: number, description: 'Absolute window deadline — the SAME number minted once for the tool_approval frame (never recomputed).' }
15576
16105
  sessionId: { type: string }
16106
+ scope: { type: string, description: 'server >= 7.156.0 — the ask''s owner written as a checkpoint scope (the owner key verbatim, `_` = no owner; same name and value as `PendingCheckpoint.scope`). Present when the ask row has a readable owner cell; absent = the stored row lacks its owner key, or an older server.' }
15577
16107
  requiresRealApproval: { type: boolean, enum: [true] }
15578
16108
  deploymentListQuestion:
15579
16109
  type: boolean
@@ -15763,7 +16293,8 @@ components:
15763
16293
  Both say only what held when the answer was given; neither means the gate is resolved.
15764
16294
  A FOURTH shape, the #368 IDEMPOTENT REPLAY (server >= 7.4x; declared 2026-09-08 — it shipped without
15765
16295
  ever reaching this schema): `{sessionId, idempotent:true, decision, bindingEnforced:true,
15766
- executionOutcome?}` — it carries NO `status` and NO `taskId` (nothing was accepted this time). So no key
16296
+ executionOutcome?}` — it carries NO `status` and NO `taskId` (nothing was accepted this time). Its named schema is
16297
+ `DecisionReplayReceipt` (the plan-review door's replay is the same mint). So no key
15767
16298
  is guaranteed by all four shapes; discriminate: `idempotent` -> replay; otherwise `decision` present ->
15768
16299
  parked receipt (`ParkedDecideAccepted`, four arms, read `status`: `resuming` / `failed` / `recorded` / `delivered`);
15769
16300
  no `decision` -> task-level acceptance / terminal. (The older reading "`decision` without `sessionId`" fails on
@@ -15872,6 +16403,13 @@ components:
15872
16403
  persistedRule: { type: string, description: 'server >= 7.152.0: free-text arm only — the canonical spelling written.' }
15873
16404
  persistedRules: { type: array, items: { type: string }, description: 'server >= 7.152.0: batch arm only — the canonical texts of every member written.' }
15874
16405
  persistedRuleAnchors: { type: array, items: { $ref: '#/components/schemas/PersistedRuleAnchor' }, description: 'server >= 7.152.0: index-aligned with `persistedRules`.' }
16406
+ turnRefused:
16407
+ type: object
16408
+ additionalProperties: true
16409
+ description: 'server >= 7.156.0 — only on the workflow-member `recorded` receipt (and on the decision door''s `parked_redeemed` body that spreads it): present iff the turn that was to carry this decision was refused for a reason a re-sent decide meets again; the value is that refusal''s body (`{ error, errorCode, … }`; read open) — re-sending is useless, its code and sentence say the way out. Absent = re-sending the same decision re-delivers, or an older server. Not a discriminator.'
16410
+ properties:
16411
+ errorCode: { type: string }
16412
+ error: { type: string }
15875
16413
 
15876
16414
  ApprovalExemption:
15877
16415
  type: object
@@ -16003,6 +16541,16 @@ components:
16003
16541
  description: 'server >= 7.155.0, workflow-member park cards only: the DECISION CELL — what came of the decision this deployment holds for the card (the same projection as `GET /v1/workflows/{id}` `parks[].decision`; absent only, never null — see the schema for the five absences). The `/v1/approvals/stream` `pending` frame carries it too.'
16004
16542
  wayOut:
16005
16543
  $ref: '#/components/schemas/ApprovalWayOut'
16544
+ stuck:
16545
+ allOf: [{ $ref: '#/components/schemas/StuckCardWord' }]
16546
+ description: 'server >= 7.156.0 — why no decision on this card lands here (rowVerdict not ok / the gate kind is not one this release registers — the row then has no `gateKind` / the task-level resume context is missing); recomputed on every read; read `wayOut` for the way out. Absent = a decision lands, or an older server.'
16547
+ redactedKeys:
16548
+ type: array
16549
+ items: { $ref: '#/components/schemas/ParkedRowRedactedKey' }
16550
+ description: 'server >= 7.156.0 — the row members whose bytes the server''s exit redaction rewrote (closed set `input`): `[]` = untouched (a fold marker / `null` input carries `[]`), `["input"]` = the human-facing input was rewritten. On EVERY row from 7.156.0 (read-time projection); absent = an older server, unknown.'
16551
+ workflowRunId: { type: string, description: 'server >= 7.156.0 — present iff the engine stamped this parked leg as a workflow member (the engine summary''s run id, verbatim, capped at 200 code units; same key and value as the live card''s).' }
16552
+ workflowAgentLabel: { type: string, description: 'server >= 7.156.0 — the workflow member''s display text (UNTRUSTED: exit-redacted, capped at 200 code units). Only beside `workflowRunId`, when non-empty.' }
16553
+ workflowStepAskedAgain: { type: boolean, enum: [true], description: 'server >= 7.156.0 — the call re-runs a step whose earlier card stopped waiting. Literal true only. Only beside `workflowRunId`.' }
16006
16554
  fromSubagent: { type: boolean, const: true, description: 'server >= 7.155.0: present (true) only when the engine recorded that this ask came from a delegated sub-agent (the same presence law as the live card row). Main-leg rows never carry it.' }
16007
16555
  sourceSessionId: { type: string, description: 'server >= 7.155.0: the session that raised the ask - only when `fromSubagent` is present (and the engine recorded it). On a background sub-agent''s parked row it equals `sessionId`.' }
16008
16556
  agentId: { type: string, description: 'server >= 7.155.0: which agent''s leg - present when the engine recorded the delegated leg''s task id (redacted, then cut to 200 chars). Independent of `fromSubagent` (a directly started workflow agent has it without `fromSubagent`).' }
@@ -16035,11 +16583,12 @@ components:
16035
16583
  🔴 OPEN SET — deliberately NOT an enum: observed values include `human`, `irreversible_ask`,
16036
16584
  `plan_review`, `needs_review`, `resource_limit`, and core keeps adding. Pinning an enum would make a
16037
16585
  new gate kind "not exist" for generated clients.
16038
- 🔴 ALWAYS PRESENT on server >= 7.132.0 (a wire narrowing): every park stamps it, the one-time migration M21 filled the stored rows that lacked it
16039
- (a row whose gate names no registered kind is expired), and a SQL row that still carries none is NOT LISTED (counted under
16040
- `server.approvals.queue-row-gate-kind-missing`; no decide route can bind it) rather than served without the key. On a <= 7.131.x server it is
16041
- absent on a pre-`gate_kind` legacy SQL row (column NULL). Either way the reading of an absent key is "unreadable — fail closed": never assume
16042
- `human`, never route it. Deliberately still not in `required` while the supported floor (3.0.0) is below 7.132.0.
16586
+ 🔴 PRESENT IFF THIS RELEASE KNOWS THE ROW'S GATE KIND (server >= 7.156.0): the row's gate kind has one reading — the stored summary when it
16587
+ projects, else the store's own cell — and a row whose kind is not one this release registers is LISTED without this key, carrying
16588
+ `stuck: "gate_unlisted"` (SQL rows whose `gate_kind` column is NULL but whose stored body is good reappear on the queue with the kind read from
16589
+ the body). Server 7.132.0 – 7.155.x instead did not list a SQL row lacking it (counted under `server.approvals.queue-row-gate-kind-missing`,
16590
+ a counter retired in 7.156.0); on a <= 7.131.x server it is absent on a pre-`gate_kind` legacy SQL row (column NULL). Every way, the reading of
16591
+ an absent key is "unreadable — fail closed": never assume `human`, never route it. Not in `required`.
16043
16592
  input:
16044
16593
  description: >
16045
16594
  The pending tool call's args (post-hook), REDACTED + size-bounded — for a tool gate the write
@@ -16265,6 +16814,12 @@ components:
16265
16814
  wayOut:
16266
16815
  allOf: [{ $ref: '#/components/schemas/ApprovalWayOut' }]
16267
16816
  description: 'server >= 7.155.0: a non-`ok` row''s way-out word, the same minting and set as `PendingCheckpoint.wayOut`; absent on `ok` rows.'
16817
+ stuck:
16818
+ allOf: [{ $ref: '#/components/schemas/StuckCardWord' }]
16819
+ description: 'server >= 7.156.0 — the same reader and projection as `PendingCheckpoint.stuck`.'
16820
+ workflowRunId: { type: string, description: 'server >= 7.156.0 — the same reader and value as `PendingCheckpoint.workflowRunId`.' }
16821
+ workflowAgentLabel: { type: string, description: 'server >= 7.156.0 — as `PendingCheckpoint.workflowAgentLabel` (UNTRUSTED display text).' }
16822
+ workflowStepAskedAgain: { type: boolean, enum: [true], description: 'server >= 7.156.0 — as `PendingCheckpoint.workflowStepAskedAgain`.' }
16268
16823
  rowVerdict:
16269
16824
  allOf: [{ $ref: '#/components/schemas/CheckpointRowVerdict' }]
16270
16825
  description: 'server >= 7.144.0: the same verdict as `PendingCheckpoint.rowVerdict` (ABSENT IS NOT `ok`; both backends). server >= 7.145.0 on SQL backends: a row whose stored body cannot be read for its summary is LISTED (previously the whole inbox answered 500 / 503) with its column facts (`sessionId` / `scope` / `createdAt` / `gateKind` / `deadline` / `checkpointId`) plus this key; summary-derived keys are absent and `input` is `null`, while `objective` is still filled from the run row preview independently of the summary. A row whose gate kind column cannot be read is not listed. The verdict is usually non-`ok` (`damaged` …); exception: a row missing only `pendingAction` is judged `ok` and its decide still fails (a known engine gap). On `DB_BACKEND=local` that shape still answers the whole listing with 503 `approvals.read_unavailable`.'
@@ -16406,7 +16961,6 @@ components:
16406
16961
  key at its resource boundary (`resources/assistant.ts` `RawAssistantGate` + `normalizeGate()`), so a
16407
16962
  TS consumer never observes the null. Both are correct for their layer — do NOT "fix" either to match
16408
16963
  the other. A non-TS client generated from this file MUST tolerate the nulls itself.
16409
- required: [kind]
16410
16964
  additionalProperties: true
16411
16965
  properties:
16412
16966
  kind:
@@ -16415,6 +16969,11 @@ components:
16415
16969
  Same open set as `CheckpointSummary.gateKind` — the FLATTENED projection of core's
16416
16970
  `CheckpointGate`. (Nested-as-`gate` ⇒ the discriminator is named `kind`; flattened onto a row ⇒
16417
16971
  `gateKind`. Same value domain, different position — a naming CONVENTION, not an inconsistency.)
16972
+ 🔴 server >= 7.156.0 it can be ABSENT: a degraded row whose gate kind cannot be read (on SQL the stored summary does not project and the
16973
+ `gate_kind` column is empty or not a kind this release registers) is LISTED — `gate` present, `kind` absent, `needsAttention: true`, no
16974
+ `stuck` here (read the inbox row or the operator queue row for why it is stuck). Same reading as an absent `PendingCheckpoint.gateKind`:
16975
+ the kind is unknown — fail closed, never assume `human`, never route a decision on it. Server 7.132.0 – 7.155.x did not list such a row
16976
+ (that run read `gate: null`).
16418
16977
  enum: [human, irreversible_ask, resource_limit, needs_review, plan_review, task_done]
16419
16978
  x-open-enum: true # a future core kind must render generically, never crash — do not close this union
16420
16979
  severity:
@@ -16544,6 +17103,30 @@ components:
16544
17103
  meaningful. Emitted only when the store CONFIRMED the reopen — never inferred.
16545
17104
  note: { type: string, description: 'preempt ONLY — human-readable explanation (incl. the honest "preempt is a no-op" cases). Absent from the resume/plan_review body.' }
16546
17105
 
17106
+ DecisionReplayReceipt:
17107
+ type: object
17108
+ description: >
17109
+ The IDEMPOTENT REPLAY body of the decision doors — the same decision re-sent and matched to the one already settled on the row. One server
17110
+ mint serves two doors: the `POST /v1/approvals/{sessionId}/decide` replay (`decision` approve | deny; this key set is also the fourth shape
17111
+ `ApprovalDecisionResult` describes) and, server >= 7.156.0, the `POST /v1/assistant/tasks/{taskId}/plan_review` replay of a recorded `reject`
17112
+ (`decision` is always `reject`; the second arm of that door's 200, which narrows `decision` to that word). Nothing was accepted this time, so it carries
17113
+ NO `taskId` and NO `status`, and the body echoes no gate identity (whether the REQUEST must name the gate to reach the replay is each door's own
17114
+ condition — see the doors). `idempotent: true` is the discriminator.
17115
+ required: [sessionId, idempotent, decision, bindingEnforced]
17116
+ additionalProperties: false
17117
+ properties:
17118
+ sessionId: { type: string }
17119
+ idempotent: { type: boolean, enum: [true], description: 'The discriminator — always the literal true.' }
17120
+ decision:
17121
+ type: string
17122
+ enum: [approve, deny, reject]
17123
+ description: 'The decision settled on the row (equal to the one re-sent — otherwise it is not a replay). `/decide` replays approve | deny; the plan-review door replays reject only.'
17124
+ bindingEnforced: { type: boolean, enum: [true] }
17125
+ decisionCommitted: { type: boolean, enum: [true], description: 'server >= 7.138.0 always present (the replay boundary''s settlement evidence: the same decision already landed on the row); older replays lack it. Read as on `ApprovalDecisionResult`.' }
17126
+ executionOutcome:
17127
+ $ref: '#/components/schemas/GateOutcome'
17128
+ description: 'server >= 7.66.0, `/decide` replays only: how the decided action was finally disposed (as on `ApprovalDecisionResult`); ABSENT = UNKNOWN, never allowed. The plan-review replay never carries it.'
17129
+
16547
17130
  PlanReviewRequest:
16548
17131
  type: object
16549
17132
  description: >
@@ -17203,6 +17786,28 @@ components:
17203
17786
  authorization:
17204
17787
  allOf: [{ $ref: '#/components/schemas/McpAuthorization' }]
17205
17788
  description: 'server >= 7.138.0 (core 7.59.0) — PRESENT-IFF this server is unauthorized (this face carries no `errorCode`, so presence reads "the principal must authorize this server first"): only the closed word `reason`. Absent = not an authorization door, or an older server.'
17789
+ prompts:
17790
+ allOf: [{ $ref: '#/components/schemas/McpHostReadAnswer' }]
17791
+ description: 'server >= 7.156.0 (capability bit `mcpHostReads`) — the engine''s `listPrompts` answer for this server, projected as is (the list is under `prompts`). Not pre-filtered by `status`: a server that did not connect answers `refused`. ABSENT = this read did not answer inside the materialization window this time (the panel is not `degraded` for it), or an older server.'
17792
+ resources:
17793
+ allOf: [{ $ref: '#/components/schemas/McpHostReadAnswer' }]
17794
+ description: 'server >= 7.156.0 (capability bit `mcpHostReads`) — the engine''s `listResources` answer for this server (the list is under `resources`); same reading and same absence as `prompts`.'
17795
+ resourceTemplates:
17796
+ allOf: [{ $ref: '#/components/schemas/McpHostReadAnswer' }]
17797
+ description: 'server >= 7.156.0 (capability bit `mcpHostReads`) — the engine''s `listResourceTemplates` answer for this server (the list is under `resourceTemplates`); same reading and same absence as `prompts`.'
17798
+
17799
+ McpHostReadAnswer:
17800
+ type: object
17801
+ additionalProperties: true
17802
+ description: >-
17803
+ server >= 7.156.0 — the engine's MCP host-read answer for ONE list door of ONE server (`servers[].prompts` / `.resources` / `.resourceTemplates` on `GET /v1/sessions/{sessionId}/mcp`), projected as is: the server
17804
+ judges nothing (not whether the server has that face, not whether it is allowed, not whether it connected). `outcome` is the one discriminator, three words: `read` (the list under the door's own key — `prompts` /
17805
+ `resources` / `resourceTemplates` — plus the engine's `dropped` count and, when the walk did not finish, `listingIncomplete`), `refused` (`reason` — remote-controllable text, redacted — plus the failure
17806
+ record's flat `errorCode` / `delivered` / `httpStatus`, and `authorization` when the refusal is `unauthorized`), `not_declared` (`reason`). This schema names only the discriminator; the members of each arm
17807
+ are read open.
17808
+ required: [outcome]
17809
+ properties:
17810
+ outcome: { type: string, description: '`read` | `refused` | `not_declared` (the engine''s closed set, one word per arm; read open).' }
17206
17811
 
17207
17812
  McpStatusPanel:
17208
17813
  type: object
@@ -17524,6 +18129,62 @@ components:
17524
18129
  description: >-
17525
18130
  server >= 7.139.0 (MIGRATION 7.139.0 item 7): present-iff the background agent row is bound to a CHILD session — jump to that session with it (it still passes the session face's owner gate). ABSENT = none yet,
17526
18131
  or an older server. Only ever on a `background_agent` row.
18132
+ ScheduledTaskSummary:
18133
+ type: object
18134
+ description: >
18135
+ server >= 7.156.0 — one row of a scheduled-task list: the engine's `ScheduledTaskSummary`, key by key (absent stays absent; the server mints no
18136
+ row key and forwards no key outside these seven).
18137
+ required: [id, when]
18138
+ additionalProperties: false
18139
+ properties:
18140
+ id: { type: string, description: 'The entry id (opaque to the caller); hand it back verbatim in the stop path.' }
18141
+ when: { type: string, description: 'Human-readable summary of the schedule (cron expression / at instant / delay seconds).' }
18142
+ label: { type: string }
18143
+ nextRunMs: { type: number, description: 'Next fire time, epoch ms (cron / at, when computable).' }
18144
+ mode: { type: string, enum: [task, session-wakeup], description: '`task` = starts a task; `session-wakeup` = wakes a session (an entry `ScheduleWakeup` filed). Absent = the backend did not say.' }
18145
+ lifetime: { type: string, enum: [durable, session], description: '`durable` = filed under the principal; `session` = a session-level entry. Absent = the backend did not say.' }
18146
+ recurring: { type: boolean, description: 'One-shot vs recurring (cron intents only); absent = not said or not a cron intent.' }
18147
+
18148
+ ScheduledTaskList:
18149
+ type: object
18150
+ description: 'server >= 7.156.0 — the 200 body of both scheduled-task list doors.'
18151
+ required: [rows, reach]
18152
+ additionalProperties: false
18153
+ properties:
18154
+ rows:
18155
+ type: array
18156
+ items: { $ref: '#/components/schemas/ScheduledTaskSummary' }
18157
+ reach: { allOf: [{ $ref: '#/components/schemas/ScheduledListReach' }], description: 'Which store this list read.' }
18158
+
18159
+ ScheduledListReach:
18160
+ type: string
18161
+ enum: [replica_store]
18162
+ description: 'server >= 7.156.0 — the server-minted closed set of a scheduled-task list''s `reach`: `replica_store` = the scheduled-task store THIS replica opened (a file on the host); other replicas reading another file are not seen.'
18163
+
18164
+ ScheduledTaskCancelResult:
18165
+ type: object
18166
+ description: 'server >= 7.156.0 — the 200 body of both scheduled-task stop doors: the stopped entry''s id as the path named it.'
18167
+ required: [id]
18168
+ additionalProperties: false
18169
+ properties:
18170
+ id: { type: string }
18171
+
18172
+ WorktreeCapability:
18173
+ type: object
18174
+ description: 'server >= 7.156.0 — `GET /v1/worktree-capability` 200: the engine''s `WorktreeCapability`, four keys verbatim.'
18175
+ required: [worktreeCapable]
18176
+ additionalProperties: false
18177
+ properties:
18178
+ worktreeCapable: { type: boolean }
18179
+ gitRoot: { type: string, description: 'The repository root the managed parent hangs at (present once the location is known to be a repository).' }
18180
+ reason: { allOf: [{ $ref: '#/components/schemas/WorktreeIncapableReason' }], description: 'Why not (only when `worktreeCapable: false`).' }
18181
+ detail: { type: string, description: 'One human sentence for the refusal; absent when capable.' }
18182
+
18183
+ WorktreeIncapableReason:
18184
+ type: string
18185
+ enum: [name_invalid, git_unavailable, not_a_repository, bare_repository, no_commit, managed_parent_symlinked, parent_not_writable, name_in_use]
18186
+ description: 'server >= 7.156.0 — why a folder cannot hold a managed worktree: the engine''s `WORKTREE_INCAPABLE_REASONS`, verbatim and in order (projected through an exhaustive switch on the server).'
18187
+
17527
18188
  SessionBackgroundList:
17528
18189
  type: object
17529
18190
  description: '`GET /v1/sessions/{sessionId}/background` 200 body (contract §16). An idle session answers `{ rows: [] }`.'
@@ -17856,6 +18517,23 @@ components:
17856
18517
  sends `code` yields `errorCode: undefined` and no typed subclass.
17857
18518
  additionalProperties: true
17858
18519
  properties:
18520
+ started:
18521
+ type: boolean
18522
+ enum: [false]
18523
+ description: >-
18524
+ server >= 7.156.0 — ONLY on the JSON refusal bodies of the three submit doors (`POST /v1/tasks`, `POST /v1/tasks/stream` before the
18525
+ stream opens, `POST /v1/runs`): `false` when the service can assert this attempt never started the engine. The ONLY value is `false`
18526
+ (`true` is never minted); ABSENT = UNKNOWN (after launch, on a same-key replay / in-flight follower, on any other route, on an older
18527
+ server). Never on an in-stream terminal frame. NOT a promise that a same-key resend executes — always send an `Idempotency-Key`.
18528
+ stuck:
18529
+ allOf: [{ $ref: '#/components/schemas/StuckCardWord' }]
18530
+ description: >-
18531
+ server >= 7.156.0 — why the card a refusal names cannot take a decision here (the same reader and projection as the pending rows' `stuck`).
18532
+ On the decision-family resume refusals (`/decide` · `plan_review` · `assistant.resume` · `sessions.wake`) that are the row's own refusal it is
18533
+ always `row`; on `409 conflict.resume_context_unavailable`, the four wrong-door guards, `409 approval_stale` and `410 gone.ask_parked` it is one
18534
+ of the three words when the named card cannot take a decision — those refusals then also carry `wayOut` (the closed set `ApprovalWayOut`, see
18535
+ `ResumeLegConflictError.wayOut`) when the server can say a way out, and no longer point back at any decision door. Absent = an older server, or
18536
+ the card can take a decision. SDK `ResumeRefusalExtra.stuck`.
17859
18537
  errorCode:
17860
18538
  type: string
17861
18539
  description: >
@@ -17920,6 +18598,14 @@ components:
17920
18598
  the same request sent again gets the same sentence, only the request (send the credential) or the deployment (configure one) changes it) and `state.no_sandbox_base` (`POST /v1/images/bakes` has no usable
17921
18599
  `sandbox-base` to build FROM; only an operator pinning `SANDBOX_BASE_REF` or publishing one changes it; a non-submit POST, so the SDK's own retry arm never resends it either way — what changes is
17922
18600
  the answer of the exported `resendIsMeaningless`).
18601
+ One more 500, server code family `deterministic`: `internal.session_erase_incomplete` (server >= 7.156.0, `DELETE /v1/sessions/{sessionId}` on the local
18602
+ backend — some data of the session was not deleted, typically a parked-context file or anchor log that permission or a lock kept from being removed; the root
18603
+ `legs` names the legs whose data may still be there, the other legs are deleted and the session row reads as gone). A verbatim resend does not change the
18604
+ verdict: clear the cause first (file permission / the holder; the service log has one line per failed leg), then send the same `DELETE` again and it converges
18605
+ (idempotent). A `DELETE` is never auto-retried by the SDK either way — what changes is the answer of the exported `resendIsMeaningless`.
18606
+ And one more 500 of the same family: `internal.scheduler_store_unreadable` (server >= 7.156.0, the scheduled-task doors could not read or write the
18607
+ scheduled-task store — untrusted, not a JSON array, concurrent writers exhausted; no partial list is given). A verbatim resend does not change it: repair the
18608
+ store first. The two list doors are `GET`s, so the SDK's retry arm now sends them once instead of three times; the stop doors are `DELETE`s and never resent.
17923
18609
  `invalid_session` (500 on servers 7.137.0–7.143.x for the structurally broken form) is RETIRED at server 7.144.0 and no longer exempt: against those older servers the SDK retries it by status.
17924
18610
  Every other 5xx code keeps the status-based retry.
17925
18611
  🔴 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
@@ -18165,6 +18851,8 @@ components:
18165
18851
  (cancel is giving it up). ABSENT = the server cannot say a client way out (the card sits on a plain park of an already-terminal run, the run is running, the row's owner is
18166
18852
  unreadable, or no durable run store) - ask the operator; do NOT render "decide again" from `retriable`. Not carried: a refusal of the decision body's own cell (fix that
18167
18853
  cell and decide again), a deployment-fact refusal, `POST /v1/sessions/{sessionId}/wake`. SDK: `err.extra.wayOut` (`ResumeRefusalExtra.wayOut`).
18854
+ server >= 7.156.0: the same word also rides `409 conflict.resume_context_unavailable`, the four wrong-door guards, `409 approval_stale` and
18855
+ `410 gone.ask_parked` when the card they name cannot take a decision, beside the reason word `stuck` (see `ErrorResponse.stuck`).
18168
18856
  retriable:
18169
18857
  type: boolean
18170
18858
  enum: [true]
@@ -18286,6 +18974,8 @@ components:
18286
18974
  # DURABLE-only per-call request reading `model_call_request` (the `GET /v1/runs/{taskId}/events` ledger replay only).
18287
18975
  - $ref: '#/components/schemas/Event_prefix_changed'
18288
18976
  - $ref: '#/components/schemas/Event_model_call_request'
18977
+ # server >= 7.156.0 (engine 7.69.0): the LIVE-ONLY hook review start / end frame `hook_progress` (capability bit `hookProgress`).
18978
+ - $ref: '#/components/schemas/Event_hook_progress'
18289
18979
  discriminator:
18290
18980
  propertyName: type
18291
18981
  mapping:
@@ -18340,6 +19030,7 @@ components:
18340
19030
  tool_progress: '#/components/schemas/Event_tool_progress'
18341
19031
  prefix_changed: '#/components/schemas/Event_prefix_changed'
18342
19032
  model_call_request: '#/components/schemas/Event_model_call_request'
19033
+ hook_progress: '#/components/schemas/Event_hook_progress'
18343
19034
 
18344
19035
  # design/99 §E2 (SHIPPED, core TaskEventIdentity) — additive per-event identity on every CONTENT event (NOT on
18345
19036
  # the lifecycle arms turn_end/compacted/suspended/done/failed). eventId = uuidv7 dedup/resume handle (the durable
@@ -18364,13 +19055,23 @@ components:
18364
19055
  condition: durable-ledger leg only (no ledger => neither header nor frame). sessionId rides along
18365
19056
  (needed to bind subsequent turns when the server minted a fresh session). Always precedes any content
18366
19057
  frame. NOT an engine event — server-minted, no EventIdentity.
18367
- # 封闭:铸造点 routes/tasks.ts 是逐字写死的三键字面量(sessionId 条件在场);server >= 7.133.0 起第四个条件键 `warnings`(有才发)。
19058
+ # 封闭:铸造点 routes/tasks.ts 是逐字写死的三键字面量(sessionId 条件在场);server >= 7.133.0 起第四个条件键 `warnings`(有才发);server >= 7.156.0 起第五个条件键 `detachAccepted`(有才发)。
18368
19059
  additionalProperties: false
18369
19060
  required: [type, taskId]
18370
19061
  properties:
18371
19062
  type: { const: meta }
18372
19063
  taskId: { type: string }
18373
19064
  sessionId: { type: string }
19065
+ detachAccepted:
19066
+ const: true
19067
+ description: >-
19068
+ server >= 7.156.0 — the RECEIPT of `x-detach-on-disconnect` (only `true`, present only then): the request carried the header as the exact string
19069
+ `true`, passed the entry replay checks, the server armed the disconnect arm and row creation did not answer "this submission does not run" — from
19070
+ here on a disconnect does not abort the run this submission starts. A receipt for the header, NOT a promise that this submission runs: forms still
19071
+ undecided when `meta` is written (joined an in-flight same-key submission inside the leg, refused after open) carry it, their terminal frame says so
19072
+ and the stream has no content frame of this submission — hand off on "this bit AND the first content frame". Absent = not said (no header / not the
19073
+ exact `true` / an entry same-key replay / row creation already knew it does not run / an older server) ⇒ stay in the foreground. Only on the submit
19074
+ stream's `meta`; the resume faces (`GET /v1/runs/{taskId}/events`) do not carry it.
18374
19075
  warnings:
18375
19076
  type: array
18376
19077
  items: { $ref: '#/components/schemas/EntryProblem' }
@@ -18562,10 +19263,10 @@ components:
18562
19263
  # 每只闭集 = 引擎今天的词 ∪ 引擎退役词表里那一集。这五张 enum 与引擎 `RETIRED_MEMBERS` 逐集逐词同(由 `server-7129-wire` 对拍);卡面 / 队列行 / 请求面的同名闭集只取今天的词。
18563
19264
  GateRecordAskClass:
18564
19265
  type: string
18565
- enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, policy_rra, artifact_shared_read, mode, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary, write_protection_unresolved, governance_unavailable]
19266
+ enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, unfinished_check, policy_rra, artifact_shared_read, mode, a2a_inside, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary, write_protection_unresolved, governance_unavailable]
18566
19267
  description: >-
18567
19268
  The class word on a GATE RECORD (`tool_end.gate.disposition.askClass` / `.classes` on the mode-refusal arm, `ModeRelease.askClass` / `.classes`) — server >= 7.129.0 reads the record as an ARCHIVE:
18568
- today's `AskClass` set (thirty-one words; `org_unreadable` / `call_unreadable` / `sandbox_override` / `sandbox_network` from server >= 7.155.0, `write_protection_on_disk` from server >= 7.138.0, `cross_boundary` from server >= 7.134.0) PLUS the words the engine retired (`write_protection_unresolved`, retired in core 7.49.0 — renamed `target_unresolved`; `governance_unavailable`,
19269
+ today's `AskClass` set (thirty-three words; `unfinished_check` / `a2a_inside` from server >= 7.157.0, `org_unreadable` / `call_unreadable` / `sandbox_override` / `sandbox_network` from server >= 7.155.0, `write_protection_on_disk` from server >= 7.138.0, `cross_boundary` from server >= 7.134.0) PLUS the words the engine retired (`write_protection_unresolved`, retired in core 7.49.0 — renamed `target_unresolved`; `governance_unavailable`,
18569
19270
  retired in core 7.51.0 — merged into `rule_unreadable`). A record the previous engine generation legally wrote is replayed byte for byte (a 7.50.x mode refusal can carry `governance_unavailable`);
18570
19271
  a word NO engine generation ever minted (a case variant, the empty string, a future word) withholds the whole `gate` and counts `server.trace.gate-outcome-defective`.
18571
19272
  Render a known archive word normally and an unknown one generically; never drop the record because the word is not in today's set.
@@ -18875,9 +19576,10 @@ components:
18875
19576
  `UNATTENDED_PERMISSION_MODE=dontAsk`).
18876
19577
  AskClass:
18877
19578
  type: string
18878
- enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, policy_rra, artifact_shared_read, mode, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary]
19579
+ enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, unfinished_check, policy_rra, artifact_shared_read, mode, a2a_inside, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary]
18879
19580
  description: >
18880
- core `ASK_CLASSES` (THIRTY-ONE words as of engine 7.69.0 / server >= 7.155.0: `org_unreadable` / `call_unreadable` joined beside `rule_unreadable`, `sandbox_override` /
19581
+ core `ASK_CLASSES` (THIRTY-THREE words as of engine 7.70.0 / server >= 7.157.0: `unfinished_check` joined after `tool_marks_a2a` and `a2a_inside` after `mode` — see below;
19582
+ THIRTY-ONE words as of engine 7.69.0 / server >= 7.155.0: `org_unreadable` / `call_unreadable` joined beside `rule_unreadable`, `sandbox_override` /
18881
19583
  `sandbox_network` joined after `mode`, and `unverifiable_delete` / `unverifiable_shell_text` moved to just after `mode` — see below;
18882
19584
  TWENTY-SEVEN as of core 7.58.0 / server >= 7.138.0: `write_protection_on_disk` joined after `probe`, before `write_protection` — see below;
18883
19585
  TWENTY-SIX as of core 7.54.0 / server >= 7.134.0: `cross_boundary` joined after `requires_user_interaction` — the device lane's
@@ -18933,8 +19635,15 @@ components:
18933
19635
  `shell_floor` =the operator's `shellGate: "always"` floor on a shell-running seat (the question the `operator_always` mandate
18934
19636
  word discloses), a class of its own so a set that holds another forced question still holds it; like `operator_forced` it is
18935
19637
  bypass-IMMUNE (not releasable).
18936
- CLOSED: the card / queue-row / request faces carry exactly today's thirty-one words; the GATE RECORD (`tool_end.gate` and the replay faces) carries today's words PLUS the engine's retired words (`GateRecordAskClass`). `bypassPermissions` releases only the RELEASABLE classes (core
18937
- `releasableAskClassesFor(face)`). Server >= 7.155.0 (engine 7.69.0): shell 16, other faces 15 — the ten below plus, on every face, `rule_unreadable` (now only the person's
19638
+ `unfinished_check` (engine 7.70.0, server >= 7.157.0) = the read station's check that DID NOT FINISH: the environment left a lookup of the command's reads unanswered, or the
19639
+ station's own judgment timed out or threw, so the safety checks on what the command reads did not run. Only a person answers it under every mode (no classifier, no allow
19640
+ rule, no unattended leg); the ask carries `requiresRealApproval: true` and this class explains that bit. bypass-IMMUNE.
19641
+ `a2a_inside` (engine 7.70.0, server >= 7.157.0) = a call to an A2A peer registered INSIDE the trust boundary (no egress mark stands on it): only a grant bound to the peer's
19642
+ CURRENT identity stamp clears it — a standing rule without that stamp, a hook's allow and a skill's grant never do. It is not a mandate: the auto-mode classifier answers it,
19643
+ `bypassPermissions` releases it (RELEASABLE), and a person's answer is a plain one.
19644
+ CLOSED: the card / queue-row / request faces carry exactly today's thirty-three words; the GATE RECORD (`tool_end.gate` and the replay faces) carries today's words PLUS the engine's retired words (`GateRecordAskClass`). `bypassPermissions` releases only the RELEASABLE classes (core
19645
+ `releasableAskClassesFor(face)`). Server >= 7.157.0 (engine 7.70.0): shell 17, other faces 16 — the generation below plus `a2a_inside` on every face (`unfinished_check` is
19646
+ bypass-IMMUNE). Server 7.155.0 – 7.156.x (engine 7.69.x): shell 16, other faces 15 — the ten below plus, on every face, `rule_unreadable` (now only the person's
18938
19647
  own rules being unreadable: a release mode releases it, `auto` asks the classifier), `unverifiable_delete` / `unverifiable_shell_text` (an ordinary ask since server 7.154.5:
18939
19648
  an allow rule clears it, `auto` asks the classifier, `dontAsk` refuses) and the two new classes `sandbox_override` / `sandbox_network`; the shell face still adds
18940
19649
  `target_unresolved`. The same generation's classifier also answers `rule_unreadable` / `write_protection_on_disk` / `artifact_shared_read` (a person did before).
@@ -18947,7 +19656,7 @@ components:
18947
19656
  by any mode (bypass asks too, and the run gets one `permission.rule_store_unavailable` notice). Server 7.122.0–7.126.x (core 7.47.0–7.49.x) also
18948
19657
  released `rule_unreadable` on every face: ten RELEASABLE classes plus an eleventh on the SHELL face (shell 11, other faces 10). Up to 7.121.x the
18949
19658
  `RELEASABLE_ASK_CLASSES` constant (deleted in core 7.47.0) held ten, face-blind. Every other class (deployment-authored `operator_forced`, ask / org
18950
- rules, hook, ancestor, content question, `unverifiable_shell_text` up to server 7.154.4, `org_unreadable` / `call_unreadable` from server 7.155.0, …) asks under every mode.
19659
+ rules, hook, ancestor, content question, `unverifiable_shell_text` up to server 7.154.4, `org_unreadable` / `call_unreadable` from server 7.155.0, `unfinished_check` from server 7.157.0, …) asks under every mode.
18951
19660
  GateClassifierAsked:
18952
19661
  type: object
18953
19662
  additionalProperties: false
@@ -19145,6 +19854,31 @@ components:
19145
19854
  type: array
19146
19855
  items: { $ref: '#/components/schemas/McpProbeFaceRow' }
19147
19856
  description: 'One row per declaration, the wiring-manifest row shape plus (server >= 7.133.0) this face''s two optional keys, index-aligned (see this schema''s description).'
19857
+ droppedEntries:
19858
+ type: array
19859
+ items: { $ref: '#/components/schemas/McpDroppedEntry' }
19860
+ description: >-
19861
+ server >= 7.156.0, PRESENT-IFF a deployment-declared MCP entry that is visible in the scenario this read names is NOT served by this replica (dropped at the read leg, or skipped at mount time);
19862
+ ABSENT = nothing was dropped, or an older server. `GET /v1/capabilities/mcp` ONLY — `POST /v1/capabilities/mcp/probe` never carries it (it dials the caller's own declarations). Each row names
19863
+ the entry (when its name is a disclosable identifier) and says why in a closed word; rows may gain keys, read unknown ones as absent.
19864
+
19865
+ McpDroppedReasonCode:
19866
+ type: string
19867
+ enum: [entry-schema-invalid, entry-key-invalid, entry-unreadable, entry-unknown-key, name-unusable, tool-faces-invalid, tool-axes-invalid, session-meta-key-invalid, env-missing, credentials-unverified]
19868
+ description: >-
19869
+ server >= 7.156.0 — why a deployment-declared MCP entry is not served (`GET /v1/capabilities/mcp` `droppedEntries[].reasonCode`; ten words, a closed set the server projects exhaustively). The first four are the
19870
+ contract package's read-leg words, passed through (the same words, same meaning, as `GET /v1/models` `droppedEntries[].reasonCode`); the other six are the mount-time reasons this server mints (the entry
19871
+ was read, the mount skipped it): `name-unusable` (the name is empty, over the bound, or carries leading / trailing white space), `tool-faces-invalid` (the entry's `toolFaces` overlay was refused by the engine's judge),
19872
+ `tool-axes-invalid` (its `toolAxes` effect-axis declaration was refused), `session-meta-key-invalid` (its `sessionMetaKey` was refused), `env-missing` (an environment variable the entry refers to — a stdio
19873
+ `envRefs` or an http `headerRefs` — is not set in this service's environment), `credentials-unverified` (an http entry carries `transport.credentials` that this deployment can neither verify nor mint an assertion for).
19874
+ McpDroppedEntry:
19875
+ type: object
19876
+ additionalProperties: true
19877
+ description: 'server >= 7.156.0 — one row of `GET /v1/capabilities/mcp` `droppedEntries`: the entry that is not served and the closed reason word. `name` is present iff the entry''s name is a disclosable identifier and the row is not a `name-unusable` one (a name outside that set leaves the key absent; the row stays). The row is open on purpose: the server may add keys without a version word.'
19878
+ required: [reasonCode]
19879
+ properties:
19880
+ name: { type: string }
19881
+ reasonCode: { $ref: '#/components/schemas/McpDroppedReasonCode' }
19148
19882
 
19149
19883
  McpLivenessState:
19150
19884
  type: string
@@ -19248,6 +19982,18 @@ components:
19248
19982
  description: >-
19249
19983
  server >= 7.153.0 (MINTED BY THIS SERVER, not an engine key): the top-level members of this record whose bytes the redaction rewrote — a CLOSED five-word set in record order (`structuredSkeleton` since 7.154.0); zero hits => ABSENT (never `[]`).
19250
19984
  Replay reads the ledger's copy. Read this instead of comparing redaction marker literals.
19985
+ cardRedactedKeys:
19986
+ type: array
19987
+ uniqueItems: true
19988
+ items: { type: string }
19989
+ description: >-
19990
+ server >= 7.156.0 (MINTED BY THIS SERVER): the members of the CARD (`structured`; `structuredSkeleton` when the card did not ride) whose bytes the
19991
+ server's exit redaction rewrote (a leaf replaced by a marker, a cycle / over-deep subtree replaced by a visible marker, an authorization record narrowed).
19992
+ OPEN set of member names (they depend on the tool card: `originalFile`, `edits`, `content` ...), names only, no values, no duplicates. Absence law: a
19993
+ plain-object card ⇒ ALWAYS present, `[]` = the card crossed verbatim; a card without this key = minted by a server older than 7.156.0 (not known);
19994
+ no card / a card that is not a plain object ⇒ absent. Treat a named member as rewritten (do not rebuild a patch from it); do not compare marker
19995
+ literals. Live stream · ledger row (minted before the write, replayed verbatim) · turns / trace replay blocks carry the same value; the session
19996
+ view's `toolResult` rows carry the same-named key describing that row's `details`.
19251
19997
  toolCallId: { type: string }
19252
19998
  toolName: { type: string }
19253
19999
  requestedBy:
@@ -19348,7 +20094,10 @@ components:
19348
20094
  core >= 5.55.0 (#333) — WHICH tool call a durable park is holding, minted by the engine from the
19349
20095
  committed checkpoint''s pending action (a tool may not self-report it). Present only on a park
19350
20096
  frame; absent on a park that holds no tool call (resource_limit / plan_review / task_done) —
19351
- ABSENT, never guessed.
20097
+ ABSENT, never guessed. Server >= 7.157.0 (engine 7.70.0): the held call's own placeholder frame (`gatedCallId` = its own
20098
+ `toolCallId`) is `isError: false` + `notExecuted: true` + a "not run yet" sentence ("not answered yet" on a question card);
20099
+ `errorCode: "gate.parked"` and this key stay; the other calls the park cut short stay `isError: true`. Read a park by
20100
+ `errorCode: "gate.parked"`, not by `isError`.
19352
20101
  # 🔴 core >=5.9.0 (W3 / [2535]). OPEN SET — deliberately a bare `type: string`, NOT an enum.
19353
20102
  # This arm is `additionalProperties: false`, and the server's `toolEndEventData` has been emitting
19354
20103
  # `errorCode` since 5.9.0, so omitting it made every legitimate frame carrying one fail strict
@@ -19441,6 +20190,7 @@ components:
19441
20190
  # `usageMissing` 缺了,「没有 usage」会被读成「用量是 0」而不是「未知」。
19442
20191
  usageMissing: { const: true, description: '本轮用量不可信/缺失的诚实标记。缺席 ⇒ usage 可信。' }
19443
20192
  stopReason: { type: string, description: '这一轮为什么停(max_tokens / stop_sequence / …),core 原词。' }
20193
+ responseModel: { type: string, description: 'The model name the provider itself reported for this turn — present ONLY when it differs from the model id the request carried (and it passes the server''s provider-echo shape check). UNTRUSTED display text (the provider''s own statement). ABSENT = reported the same name / reported none / the check failed / an older server — one reading: the requested model is `TaskResult.model`; absence does not mean the provider echoed nothing.' }
19444
20194
  eventId: { type: string }
19445
20195
  parentToolCallId: { type: string }
19446
20196
  sourceTaskId: { type: string }
@@ -19660,6 +20410,7 @@ components:
19660
20410
  durationMs: { type: integer }
19661
20411
  status: { type: string, description: 'running 为主;core [1414]#3 的 settle 终态 tick 亦可为 completed/failed(开集,按未知值兜底渲染)。' }
19662
20412
  name: { type: string, description: '子代的人类展示名(UNTRUSTED,已 redactSecrets)。缺席 ⇒ 无名,别回退到 objective。' }
20413
+ spawnName: { type: string, description: 'core 7.25.0 — the TEAMMATE key: the explicit birth name of `Agent({ name })`, a separate domain from the display label `name`. The engine validated its character set at birth and the server passes it VERBATIM (not redacted): it is an identity key — bind a progress tick to a fleet / roster row by string equality. ABSENT = an anonymous delegation. Same reading as `Event_task_started.spawnName`.' }
19663
20414
  model:
19664
20415
  type: string
19665
20416
  description: >-
@@ -19790,6 +20541,9 @@ components:
19790
20541
  required: [type]
19791
20542
  properties:
19792
20543
  type: { const: wiring_manifest }
20544
+ fastMode:
20545
+ allOf: [{ $ref: '#/components/schemas/FastModeReading' }]
20546
+ description: 'server >= 7.156.0 (engine 7.69.0; tenant and operator frames alike; effective half only): this leg''s fast-mode reading at its start — the engine''s `FastModeReading`, `{ state, reason?, cooldown? }`, forwarded as is (the server judges the shape, not the words). PRESENT-IFF the leg asks for fast mode (`TaskRequest.fastMode`) or its session has sent fast speed; ABSENT = the leg neither asked nor sent (or an older server), which is not a statement that fast mode is off. The reading BEFORE any submit is on `GET /v1/models` rows (`fastMode`).'
19793
20547
  declaredPlaces:
19794
20548
  allOf: [{ $ref: '#/components/schemas/WiringManifestDeclaredPlaces' }]
19795
20549
  description: 'server >= 7.155.0 (engine 7.69.1; tenant and operator frames alike; effective half only): how many declared places guard this leg''s configuration directory and home, and where each came from. ABSENT = no declared place (the engine''s own homes only) or an older server.'
@@ -19813,7 +20567,20 @@ components:
19813
20567
  leg:
19814
20568
  type: object
19815
20569
  additionalProperties: false
19816
- properties: { kind: { type: string, description: 'root | child | resume. Open on read.' } }
20570
+ properties:
20571
+ kind: { type: string, description: 'root | child | resume. Open on read.' }
20572
+ runOrigin: { type: string, description: 'server >= 7.148.0 — the leg''s scheduler origin (the engine''s `RunOrigin`; open on read). ABSENT = the engine recorded none.' }
20573
+ teamRole:
20574
+ type: string
20575
+ description: >-
20576
+ core 7.30.0 — TENANT-visible (same nature as `leg.kind`: an engine-derived self-statement of the assembly): this leg's role in agent teams — `lead` for the
20577
+ top-level leg, `teammate` for a named delegation, `none` for an anonymous one. The server judges it against the engine's exported word list and drops a word
20578
+ outside it, so a new engine word arrives with a server pickup: read it as an OPEN set. Effective half only; ABSENT = an older engine.
20579
+ hands:
20580
+ allOf: [{ $ref: '#/components/schemas/WiringManifestHands' }]
20581
+ description: >-
20582
+ core 7.33.1 — TENANT and OPERATOR frames alike: does this leg have hands. Always present on an engine-minted effective half; ABSENT = an older engine or an
20583
+ external derivation, not "no hands". `mounted: true` is not "a shell is reachable" (a stub environment or an excluded Bash also reads true).
19817
20584
  sessionRules:
19818
20585
  type: object
19819
20586
  additionalProperties: false
@@ -19835,6 +20602,15 @@ components:
19835
20602
  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`) = `[]`.
19836
20603
  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.
19837
20604
  items: { $ref: '#/components/schemas/WiringManifestSkill' }
20605
+ shadowedSkills:
20606
+ type: array
20607
+ items: { type: string }
20608
+ description: >-
20609
+ server >= 7.157.0 (server-minted section; present with `skills` and absent with it): the request body's `skills[]` entries NOT handed to the
20610
+ engine because the name was already taken, one item each, in request order; names compared byte for byte. The taker is the first same-named
20611
+ entry of this frame's `skills` (`factory` / `center` = shadowed by a deployment skill; `request` = a duplicate within the request). `[]` = none
20612
+ dropped (including `disableSkills: true`); absent is never `[]` (a ledger row an older server wrote replays with `skills` alone; child frames carry
20613
+ neither).
19838
20614
  ask:
19839
20615
  $ref: '#/components/schemas/WiringManifestAsk'
19840
20616
  question:
@@ -19964,6 +20740,7 @@ components:
19964
20740
  properties:
19965
20741
  armed: { type: boolean }
19966
20742
  reason: { type: string, description: 'core''s word (`armed` / `no_intent` / `no_face` / `denied` / `resolver_fault` / `latch_open` today). Open on read — branch known, keep a default arm.' }
20743
+ deniedSource: { type: string, description: 'core 7.14.0 — which plane''s ratchet turned AUTO off (`org` / `local` / `settings` today): "your organization turned auto off" and "your own settings did" ask a person for different things, while `reason: denied` is one word for both. Passed through verbatim, open on read; ABSENT = the resolver does not track sources (never part of the whole-section rule).' }
19967
20744
  mcp:
19968
20745
  type: array
19969
20746
  description: >
@@ -20223,6 +21000,48 @@ components:
20223
21000
  totalBytes: { type: integer, description: 'Bytes observed BEFORE the tail cap, so it keeps growing after `output` stops being able to. Rides iff `output` does.' }
20224
21001
  eventId: { type: string }
20225
21002
  parentToolCallId: { type: string }
21003
+ Event_hook_progress:
21004
+ description: >
21005
+ A HOOK REVIEW's start / end (server >= 7.156.0 / engine 7.69.0; capability bit `hookProgress`). LIVE ONLY: never on
21006
+ `GET /v1/runs/{id}/events`, never replayed on reconnect, and not on the sync leg's child-forwarding channel or the per-child tail.
21007
+ A review that holds its subject past one interval (one second) ⇒ one `phase: start`; the review ending (answered / refused /
21008
+ handler failure or budget spent / cancelled / leg over) ⇒ one `phase: end`. One review = one pair, paired by `screen` only.
21009
+ 🔴 THE FRAME'S ABSENCE IS NEVER EVIDENCE: a review that finishes inside one interval emits none. No hook name, budget, duration
21010
+ or verdict rides (a call's verdict is its `tool_end.gate`). Two arms by `event`: a call review (`classic.PreToolUse`,
21011
+ `toolCallId` joins the call's own frames) and an input review (`classic.UserPromptSubmit`, `source` = the entry word, read open;
21012
+ `inputId` only when the entry has one). The server drops the whole frame when `phase` / `screen` / the subject's join key cannot be read.
21013
+ oneOf:
21014
+ - type: object
21015
+ additionalProperties: false
21016
+ required: [type, phase, screen, event, toolCallId]
21017
+ properties:
21018
+ type: { const: hook_progress }
21019
+ phase: { type: string, enum: [start, end] }
21020
+ screen: { type: string, description: 'The review''s identity (an engine-minted opaque string); both frames of one review carry the same one.' }
21021
+ event: { const: classic.PreToolUse }
21022
+ toolCallId: { type: string, description: 'The reviewed call''s id — the same id as its `tool_start` / `tool_progress` / `tool_end`.' }
21023
+ eventId: { type: string }
21024
+ parentToolCallId: { type: string }
21025
+ sourceTaskId: { type: string }
21026
+ bgAgentId: { type: string }
21027
+ - type: object
21028
+ additionalProperties: false
21029
+ required: [type, phase, screen, event, source]
21030
+ properties:
21031
+ type: { const: hook_progress }
21032
+ phase: { type: string, enum: [start, end] }
21033
+ screen: { type: string }
21034
+ event: { const: classic.UserPromptSubmit }
21035
+ source:
21036
+ type: string
21037
+ description: >-
21038
+ The entry the reviewed input came through — engine words `objective` / `steer` / `resume_message` / `followUp` /
21039
+ `parked_redelivery` / `system`, read as an OPEN set.
21040
+ inputId: { type: string, description: 'Present only when the entry has an input id (the objective entry has none); equals `human_input.inputId` / `message_committed.inputId` on the same stream.' }
21041
+ eventId: { type: string }
21042
+ parentToolCallId: { type: string }
21043
+ sourceTaskId: { type: string }
21044
+ bgAgentId: { type: string }
20226
21045
  ToolRosterDelta:
20227
21046
  type: object
20228
21047
  description: >
@@ -20479,6 +21298,17 @@ components:
20479
21298
  detail's free-text redaction and truncation); a `reason` word outside the closed set drops the pair as a whole, so `reason` is PRESENT IFF its word is in the closed set (read `reason` as optional; servers before 7.150.0 always carry it), and `authorizeUrl` is not let through today (always absent). `server` / `principal` / `sessionId` / `runId` stay as they were. NOT on the user whitelist, though core's register holds it: `route.credential_rebound` (the HOST moved a per-model credential's binding, outside any run) is audience `operator` (core 7.59.0 through 7.68.2) — it never reaches this stream.
20480
21299
  `model.role_defaulted` (a role seat names a model word the catalog does not hold, so the role reads as unset and the run goes on) was audience `operator` in core 7.59.0 - 7.66.x and is `user` since core 7.67.0:
20481
21300
  server >= 7.153.0 puts it on the stream, `{ seat, role, model, reason, fallback, sessionId, runId? }` (`reason` is `unknown_model_ref` today; read it OPEN).
21301
+ server >= 7.157.0 (engine 7.70.0; whitelist 73 → 85 codes): five codes are RETIRED (zero alias) into one, `config.entries_not_applied` ("an entry the person
21302
+ wrote did not apply"), `detail: { kind, entries, count, identity, sessionId, runId?, … }` with `kind` in the engine's seven words (`stored_rule_row`,
21303
+ `rule_text_unreadable`, `mcp_injection_dropped`, `model_word_unknown`, `allow_entry_inert`, `session_rule_unread`, `session_rule_named_no_tool`; read it OPEN):
21304
+ `mcp.injection_dropped` ⇒ `mcp_injection_dropped`, `permission.allowed_tool_not_granted` ⇒ `allow_entry_inert`, `permission.rule_row_dropped` ⇒
21305
+ `stored_rule_row`, `permission.settings_rules_skipped` ⇒ `rule_text_unreadable`, `model.role_defaulted` ⇒ `model_word_unknown`; what the person wrote is in
21306
+ `detail.entries[].entry` (the redacted original, the same reading as every rule-text code). Sixteen user codes join the whitelist:
21307
+ `config.skill_deny_unreadable`, `config.session_rules_reread`, `mods.stop_continue_dropped`, `peer.inbound_unread`, `peer.notice_user_only`,
21308
+ `peer.receipt_delivered_user_only`, `peer.held_approval_unhonored`, `peer.held_decision_applied`, `peer.idle_subscription_declined`,
21309
+ `classifier.unavailable_handed_on`, `classifier.review_skipped`, `mcp.server_connecting`, `route.stream_content_dropped`, `mods.turn_aborted`,
21310
+ `mods.turn_abort_unconsumed`, `memory.capture_switched_off` (render by `message` when a code is not known). The paragraphs on the five retired codes
21311
+ describe servers <= 7.156.x.
20482
21312
  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
20483
21313
  `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 —
20484
21314
  neutralize at render); before it was the engine-neutralized single-line form (at most 201 code points). Same keys.
@@ -20612,6 +21442,13 @@ components:
20612
21442
  type: array
20613
21443
  items: { $ref: '#/components/schemas/WorkspaceChangedDirectory' }
20614
21444
  description: 'server >= 7.155.0: the additional roots this leg ACTUALLY mounted (same constructor on the live stream and both ledger legs). ABSENT = none mounted (not sent / not honoured / none landed), not "an empty list".'
21445
+ session:
21446
+ type: array
21447
+ items: { $ref: '#/components/schemas/SessionCheckoutEntry' }
21448
+ description: 'server >= 7.156.0 (engine 7.69.0): the session''s checkout — one entry per repository, fixed by the session''s first leg (the submit body''s `workspace`). Present together with `declaration` or not at all: ABSENT = the session declared no workspace, or this leg sent `workspace: null`. The path members are path identity (not redacted, not truncated: compare them byte for byte). The session row does not store it — this frame is where it surfaces.'
21449
+ declaration:
21450
+ allOf: [{ $ref: '#/components/schemas/SessionCheckoutDeclaration' }]
21451
+ description: 'server >= 7.156.0 (engine 7.69.0): the NORMALIZED declaration the session''s checkout was opened under — the value every later leg sends back as the submit body''s `workspace` (it screens to itself). Present together with `session`. It is what to send, not a verdict (the record judges each leg). When the server cannot read either of the two it drops BOTH — never half a declaration, because half of one sent back is a different declaration.'
20615
21452
  eventId: { type: string }
20616
21453
  parentToolCallId: { type: string }
20617
21454
  sourceTaskId: { type: string }
@@ -20987,8 +21824,16 @@ components:
20987
21824
  type: array
20988
21825
  description: >-
20989
21826
  server >= 7.154.0 (engine 7.68.0): the asks of this background task that nobody could answer and that were refused, one entry per refused call (the same facts as the result`s `refusedAsks`);
20990
- `toolName` / `remedy` pass the egress seat. present-iff at least one was refused.
21827
+ `toolName` / `remedy` pass the egress seat. present-iff at least one was refused. Server >= 7.157.0 (engine 7.70.0) lists the first 20 only; the rest is counted in `refusedAsksUnlisted`.
20991
21828
  items: { $ref: '#/components/schemas/RefusedAsk' }
21829
+ refusedAsksUnlisted:
21830
+ type: integer
21831
+ minimum: 1
21832
+ description: >-
21833
+ server >= 7.157.0 — how many refused asks were NOT listed (a positive integer; the engine's member outcome `unlisted`). Present ⇒ `refusedAsks`
21834
+ is present and incomplete; `refusedAsks` present with this key absent = the engine listed them all (20 or fewer). Neither key is sent when the
21835
+ count cannot be read. Live frame, ledger row (`GET /v1/runs/:id/events`) and the parked back-fill frame carry the same shape.
21836
+ noteKey: { type: string, description: 'server >= 7.156.0 (engine word `task_notification.note_key` true) — the key this notification was handed to the model with: the same value as the `noteKey` of the committed row (`message_committed`, `origin: queued_note`); join frame and row by value. Absent = an older server / an older ledger row.' }
20992
21837
  summary: { type: string, description: 'UNTRUSTED display text.' }
20993
21838
  sessionId: { type: string }
20994
21839
  toolUseId: { type: string }
@@ -21037,6 +21882,22 @@ components:
21037
21882
  allOf: [{ $ref: '#/components/schemas/PayloadTruncated' }]
21038
21883
  description: 'server >= 7.147.0 — present iff this PARKED REDELIVERY frame exceeded the inbox byte budget and is the minimal form (every other key absent). Live frames and durable ledger rows never carry it.'
21039
21884
  resumable: { type: boolean }
21885
+ resumableUntil:
21886
+ type: number
21887
+ description: >-
21888
+ server >= 7.156.0 (engine 7.69.0): the continuation DEADLINE that came with `resumable: true` (epoch ms) — the engine's value, never rewritten or
21889
+ recomputed. An UPPER BOUND, not a remaining time (the retention ledger's capacity, session reclaim or the parent run ending can release the slot
21890
+ earlier); on a parked re-delivery it is the reading at park time. Absent = the engine set no deadline / not resumable / an older server. Same reader
21891
+ and value as the fleet terminal `task` row and `bg_notification`.
21892
+ unreviewed:
21893
+ type: object
21894
+ required: [handback]
21895
+ properties:
21896
+ handback: { allOf: [{ $ref: '#/components/schemas/AutoModeFallbackCause' }], description: 'The engine''s cause word (`AUTO_MODE_FALLBACK_CAUSES`).' }
21897
+ description: >-
21898
+ server >= 7.156.0 (engine 7.69.0): this hand-back was NOT reviewed by auto mode (the classifier gave no verdict; the child's report was handed to
21899
+ the parent anyway) — do not render it as "reviewed". This frame and the parked re-delivery only (the fleet frames have no such bit). Unreadable ⇒ the
21900
+ whole key is absent; absent = reviewed / not auto mode / an older server.
21040
21901
  result: { type: string, description: 'UNTRUSTED display text.' }
21041
21902
  output_file: { type: string }
21042
21903
  usage: { description: 'open shape — usage rollup of the background task.' }
@@ -21311,6 +22172,10 @@ components:
21311
22172
  liveFactsUnknown:
21312
22173
  const: true
21313
22174
  description: 'server >= 7.143.0 — ONLY on a disconnect-replay frame: the row was minted before this version (its card envelope has no live-facts seat) or that seat cannot be read, so the top-level live facts are all absent and this key says "unknown" (not "none"). Absent = the live facts on this frame are verbatim (a live frame, or a replay frame whose envelope carries the seat).'
22175
+ consumerState:
22176
+ type: string
22177
+ enum: [absent]
22178
+ description: 'server >= 7.156.0 — ONLY on a stream-open replay (preamble) frame of `GET /v1/runs/{id}/events` / `POST /v1/tasks/stream`: this replica''s registration of the ask is an adopted one (no engine leg waits on it) ⇒ `"absent"`, the same name and value as the livePending row; absent otherwise (truth only). Live frames and the frame embedded in a list row never carry it.'
21314
22179
 
21315
22180
  ApprovalRuleEvidence:
21316
22181
  type: object
@@ -21500,6 +22365,17 @@ components:
21500
22365
  items: { $ref: '#/components/schemas/AskReason' }
21501
22366
  description: 'server >= 7.143.0 (core 7.61.0): WHO asked and WHY — one entry per asker with its own words. Structured approval UIs render reason lines from this, not from `message`. Words are credential-redacted and length-capped; any malformed entry ⇒ the whole seat is withheld. Absent = an older engine / the engine''s generic question.'
21502
22367
  sourceAgentName: { type: string, description: 'The child agent''s display name, redacted. UNTRUSTED.' }
22368
+ workflowRunId: { type: string, minLength: 1, maxLength: 200, description: 'server >= 7.156.0 (engine word `ask.workflow_member`) — the workflow this ask comes from: the engine''s opaque run id, verbatim, capped at 200 code units. Present iff the ask is a workflow member''s; when absent the two keys below are absent too. Display / grouping only, never decision routing. Same key and value on the operator queue row, the inbox row and the live question frame.' }
22369
+ workflowAgentLabel: { type: string, minLength: 1, maxLength: 200, description: 'server >= 7.156.0 — the workflow member''s display text (script-authored, UNTRUSTED: exit-redacted and capped at 200 code units; not unique, never a key). Present only beside `workflowRunId` and when non-empty.' }
22370
+ workflowStepAskedAgain: { type: boolean, enum: [true], description: 'server >= 7.156.0 — this ask re-runs a step whose earlier card stopped waiting without a decision. Literal true only, never false; names no cause. Only beside `workflowRunId`.' }
22371
+ redactedKeys:
22372
+ type: array
22373
+ items: { $ref: '#/components/schemas/ApprovalCardRedactedKey' }
22374
+ description: >-
22375
+ server >= 7.156.0 — the card members whose bytes the server's exit redaction rewrote (closed set `args`, in table order, no repeats):
22376
+ `[]` = nothing rewritten (a card whose args fold into `argsOmitted` carries `[]` too), `["args"]` = the human-facing args were rewritten.
22377
+ ALWAYS on cards minted from 7.156.0; ABSENT has one reading only: the card was minted by an older server (unknown). Live frame, `card_json`,
22378
+ replay frames and the per-ask read carry the same value.
21503
22379
  # A-057.④(#314):三键 server 早已随卡投出(与 tool_approval 帧同一窄读函数 ⇒ 帧与 card 同值),
21504
22380
  # 但本 schema 只在帧上公示过 —— 按 spec 生成的卡消费方拿不到。定义与帧上同构段逐字同源,
21505
22381
  # 长 description 不复制(单一真源在 ApprovalRequestLiveFacts / ApprovalCard 的同名键)。
@@ -22518,6 +23394,20 @@ components:
22518
23394
  server >= 7.152.0 — "Yes, and add directory": the card's `readRootCandidate.dir` echoed back verbatim. ONLY with `decision: "approve"` and no `remember`; accepted only where capability
22519
23395
  `approvalReadRootGrant` is true (a single-user host-lane deployment); a PARKED card does not take it. Violations => 400 `request.body_shape` (before the decision). The server judges the SHAPE only —
22520
23396
  the ENGINE judges the value; the outcome is announced (`approval.read_root_granted` / `approval.read_root_grant_rejected`), never in the 200.
23397
+ feedback:
23398
+ type: string
23399
+ description: >-
23400
+ server >= 7.156.0 (capability `approvalFeedback`) — the person's words to the agent ("approved, next do this"), handed to the engine verbatim: the
23401
+ live form gives them to the engine leg waiting on this replica after this request wins the CAS; the parked form puts them into the redemption's
23402
+ resume outcome. Read exactly as on `/decide`: non-string ⇒ 400 `request.field_invalid`; direct-door deployment ⇒ 400 `feedback_not_in_proof`;
23403
+ only a person's approve — on `deny` or `decidedBy: policy` ⇒ 400 `request.field_conflict` (`reason: approval_feedback`); an engine reminder tag in
23404
+ the words ⇒ 400 `request.field_invalid` + `field: feedback`. Delivered or not: the receipt's `feedbackForwarded`. Servers <= 7.155.x: 400 `request.body_shape`.
23405
+ mcpServers:
23406
+ allOf: [{ $ref: '#/components/schemas/ResumeRestatement/properties/mcpServers' }]
23407
+ description: 'server >= 7.156.0 — the resume restatement, read like `/decide` and ONLY when this answer is accepted as a parked redemption (the live form reads past the value-shape gate and ignores it). A parked background child''s card / a still-running workflow child''s card ⇒ 400 `decide.parked_restatement_unsupported`; a direct-door deployment ⇒ 400 `restatement_not_in_proof` when present (null included). Servers <= 7.155.x: 400 `request.body_shape`.'
23408
+ a2aPeers:
23409
+ allOf: [{ $ref: '#/components/schemas/ResumeRestatement/properties/a2aPeers' }]
23410
+ description: 'server >= 7.156.0 — the other resume restatement key; read exactly like `mcpServers` here.'
22521
23411
 
22522
23412
  ApprovalDecideGateKind:
22523
23413
  type: string
@@ -22677,6 +23567,9 @@ components:
22677
23567
  TRUE-ONLY disclosure (present as `absent`): no engine leg on THIS replica is waiting for this ask — the decision is on the row (an idempotent replay will read it, the audit surface keeps it)
22678
23568
  but nothing running here resumes because of it (the holder of the suspended promise may be another replica, or this replica restarted and its local window is empty). Read the RUN surface to
22679
23569
  learn whether anything continued; NEVER take a 200 without this key as proof the run continued (older servers never send it). Not a 409 / 410: the decision DID take effect.
23570
+ pickupDueAtMs: { type: number, description: 'server >= 7.156.0 — only beside `consumerState`: the latest moment the replica holding this ask STARTS reading this decision (epoch ms = the moment the decision write finished + the maintenance beat length). Present iff `consumerState` is present ∧ this replica held no registration of the ask at the decision ∧ a maintenance beat was declared; holds only for a live holder that reads every beat (a dead holder waits for the run''s liveness verdict); both numbers carry the two machines'' clock skew.' }
23571
+ pickupDueInMs: { type: number, description: 'server >= 7.156.0 — present iff `pickupDueAtMs` is: ms from the answering moment to it (the answering replica''s clock), clamped to 0.' }
23572
+ feedbackForwarded: { type: boolean, enum: [true], description: 'server >= 7.156.0 — first decisions only, truth only: the request''s `feedback` was handed to the engine with the decision that took effect. Absent on a first decision = not delivered (the decision still took effect); never on an idempotent replay (unknown).' }
22680
23573
  rememberApplied:
22681
23574
  type: boolean
22682
23575
  description: 'server >= 7.152.0: only on a FIRST decision whose request carried `remember`: did it land. `false` on a card that carries grants and when the decision landed on a replica that does not hold the engine leg. Absent on a replay.'
@@ -22718,6 +23611,7 @@ components:
22718
23611
  decidedAtMs: { type: integer }
22719
23612
  actor: { $ref: '#/components/schemas/ActorAssertion' }
22720
23613
  accepted: { type: string, enum: [parked_redeemed] }
23614
+ feedbackForwarded: { type: boolean, enum: [true], description: 'server >= 7.156.0 — truth only: the request''s `feedback` went into the resume outcome landed with the decision.' }
22721
23615
  decisionNote: { type: string }
22722
23616
  noteRecorded: { type: boolean }
22723
23617
  rememberApplied: { type: boolean, description: 'server >= 7.152.0: only when the request carried `remember` and this was the FIRST redemption. Always `false` on a workflow-member card (the `recorded` / `delivered` receipts of server >= 7.155.0): that lane cannot record the grant, so this door takes the decision and allows this once; no exemption is stored. (The same request on POST /v1/approvals/{sessionId}/decide is answered 400 `decide.workflow_remember_unsupported` on a workflow-member card, so the /decide workflow-member arms never carry this key.)' }
@@ -22729,6 +23623,7 @@ components:
22729
23623
  status: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/status' }
22730
23624
  sessionId: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/sessionId' }
22731
23625
  bindingEnforced: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/bindingEnforced' }
23626
+ turnRefused: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/turnRefused' }
22732
23627
  decisionCommitted: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/decisionCommitted' }
22733
23628
  checkpointId: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/checkpointId' }
22734
23629
  checkpointIdMissing: { $ref: '#/components/schemas/CheckpointIdMissingWord' }
@@ -22771,6 +23666,9 @@ components:
22771
23666
  serverNowMs:
22772
23667
  type: integer
22773
23668
  description: 'server >= 7.3.0, ADDITIVE: the server-signed emit timestamp. A server-minted side-frame has no core-stream eventId to carry, so this is its own time coordinate. Absent on older servers.'
23669
+ workflowRunId: { type: string, minLength: 1, maxLength: 200, description: '"question" only (server >= 7.156.0, engine word `ask.workflow_member`): the workflow this question comes from — the engine''s opaque run id, verbatim, capped at 200 code units. Present iff the question is a workflow member''s; the same reader and value as the approval card''s, the queue row''s and the inbox row''s.' }
23670
+ workflowAgentLabel: { type: string, minLength: 1, maxLength: 200, description: '"question" only (server >= 7.156.0): the workflow member''s display text (script-authored, UNTRUSTED: exit-redacted, capped at 200 code units; not unique, never a key). Present only beside `workflowRunId` and when non-empty.' }
23671
+ workflowStepAskedAgain: { type: boolean, enum: [true], description: '"question" only (server >= 7.156.0): this question re-runs a step whose earlier card stopped waiting without a decision. Literal true only, never false. Only beside `workflowRunId`.' }
22774
23672
 
22775
23673
  AskQuestion:
22776
23674
  type: object
@@ -22896,7 +23794,8 @@ components:
22896
23794
  type: string
22897
23795
  description: >
22898
23796
  Human-readable exit route, VARIES by the occupying run's state (running => steer/cancel; parked =>
22899
- decide at `pendingGate.decidePath` / cancel). Display only — branch on `activeTaskStatus`/`pendingGate`.
23797
+ decide at `pendingGate.decidePath` / cancel; server >= 7.156.0 parked on a card no decision lands on => no `pendingGate`, the sentence
23798
+ follows `stuck` / `wayOut`). Display only — branch on `activeTaskStatus` / `pendingGate` / `stuck`.
22900
23799
  activeTaskId:
22901
23800
  type: [string, 'null']
22902
23801
  description: 'The run occupying the session; `null` when the claim holder could not be identified.'
@@ -22916,6 +23815,14 @@ components:
22916
23815
  description: >
22917
23816
  Present when the occupying run is parked on a pending durable gate: `decidePath` is THE ONE correct
22918
23817
  resume entry for its `kind` (gate-kind routed; sessionId-addressed).
23818
+ stuck:
23819
+ allOf: [{ $ref: '#/components/schemas/StuckCardWord' }]
23820
+ description: >-
23821
+ server >= 7.156.0 — present iff the card the parked holder waits on cannot take a decision on this engine (the same reader and the same projection as the pending rows' `stuck`, the
23822
+ 409 body root's `stuck`); then `pendingGate` is absent (the frame does not point at a decision door that would refuse). Same key and meaning as the 409 body.
23823
+ wayOut:
23824
+ allOf: [{ $ref: '#/components/schemas/ApprovalWayOut' }]
23825
+ description: 'server >= 7.156.0 — the way out for that card, beside `stuck` when the server can say one (the closed set `ApprovalWayOut`, the same minting as the decision-door refusals and the pending rows). Same key and meaning as the 409 body root''s `wayOut`.'
22919
23826
  Event_failed:
22920
23827
  type: object
22921
23828
  # 封闭 + 回填 `activeTaskId`(census 轴一,2026-07-30):[1833] G10 —— session 已有活跃 run 的冲突
@@ -23361,6 +24268,9 @@ components:
23361
24268
  expiresAtMs:
23362
24269
  type: integer
23363
24270
  description: 'server >= 7.39.0, OPEN frame only: `serverNowMs + expiresInMs` — the absolute deadline on the server''s clock.'
24271
+ workflowRunId: { type: string, minLength: 1, maxLength: 200, description: 'server >= 7.156.0 (engine word `ask.workflow_member`), OPEN frame only (never on `question_complete`) — the workflow this question comes from: the engine''s opaque run id, verbatim, capped at 200 code units. Present iff the question is a workflow member''s; the same reader and value as the approval card''s, the pending queue row''s and the inbox row''s.' }
24272
+ workflowAgentLabel: { type: string, minLength: 1, maxLength: 200, description: 'server >= 7.156.0 — the workflow member''s display text (script-authored, UNTRUSTED: exit-redacted and capped at 200 code units; not unique, never a key). Present only beside `workflowRunId` and when non-empty.' }
24273
+ workflowStepAskedAgain: { type: boolean, enum: [true], description: 'server >= 7.156.0 — this question re-runs a step whose earlier card stopped waiting without a decision. Literal true only, never false; names no cause. Only beside `workflowRunId`.' }
23364
24274
  Event_question_complete:
23365
24275
  type: object
23366
24276
  description: >
@@ -23590,6 +24500,16 @@ components:
23590
24500
  wayOut:
23591
24501
  allOf: [{ $ref: '#/components/schemas/ApprovalWayOut' }]
23592
24502
  description: '`pending` frames only (server >= 7.155.0): the spread PendingCheckpoint row''s `wayOut` (a changed value re-sends that row''s `pending` frame).'
24503
+ stuck:
24504
+ allOf: [{ $ref: '#/components/schemas/StuckCardWord' }]
24505
+ description: 'Parked-door `pending` frames only (server >= 7.156.0): the spread PendingCheckpoint row''s `stuck`.'
24506
+ redactedKeys:
24507
+ type: array
24508
+ items: { $ref: '#/components/schemas/ParkedRowRedactedKey' }
24509
+ description: 'Parked-door `pending` frames only (server >= 7.156.0): the spread PendingCheckpoint row''s `redactedKeys`.'
24510
+ workflowRunId: { type: string, description: 'Parked-door `pending` frames only (server >= 7.156.0): the spread PendingCheckpoint row''s `workflowRunId`.' }
24511
+ workflowAgentLabel: { type: string, description: 'Parked-door `pending` frames only (server >= 7.156.0): the spread PendingCheckpoint row''s `workflowAgentLabel`.' }
24512
+ workflowStepAskedAgain: { type: boolean, enum: [true], description: 'Parked-door `pending` frames only (server >= 7.156.0): the spread PendingCheckpoint row''s `workflowStepAskedAgain`.' }
23593
24513
  fromSubagent: { type: boolean, const: true, description: 'Parked-door `pending` frames only (server >= 7.155.0): the spread PendingCheckpoint row''s `fromSubagent`.' }
23594
24514
  sourceSessionId: { type: string, description: 'Parked-door `pending` frames only (server >= 7.155.0): the spread PendingCheckpoint row''s `sourceSessionId`.' }
23595
24515
  agentId: { type: string, description: 'Parked-door `pending` frames only (server >= 7.155.0): the spread PendingCheckpoint row''s `agentId`.' }
@@ -23721,7 +24641,7 @@ components:
23721
24641
 
23722
24642
  WorkflowParkDecisionRecorded:
23723
24643
  type: object
23724
- description: 'server >= 7.155.0 — the `recorded` arm of `WorkflowParkDecisionReceipt`: exactly five receipt keys, all required; NO `taskId` / `sessionId` (not "unreadable": this word''s key set has none). The only optional keys are the request-conditioned rule slot (`rulePersisted` / `ruleRefusal`, present only when the request carried `persistRule`).'
24644
+ description: 'server >= 7.155.0 — the `recorded` arm of `WorkflowParkDecisionReceipt`: exactly five receipt keys, all required; NO `taskId` / `sessionId` (not "unreadable": this word''s key set has none). The optional keys are the request-conditioned rule slot (`rulePersisted` / `ruleRefusal`, present only when the request carried `persistRule`) and the later-added `turnRefused` (its first server version is stated on that property).'
23725
24645
  required: [status, runId, decisionId, decision, bindingEnforced]
23726
24646
  additionalProperties: false
23727
24647
  properties:
@@ -23732,6 +24652,7 @@ components:
23732
24652
  bindingEnforced: { type: boolean, enum: [true] }
23733
24653
  rulePersisted: { type: boolean, enum: [false], description: 'Request-conditioned rule slot: present only when the request carried `persistRule`; always `false` on this lane (the server cannot prove the engine committed the decision when it answers, so the rule is not stored). The verdict itself stands. Not a discriminant.' }
23734
24654
  ruleRefusal: { type: string, enum: [rule_lane_unavailable], description: 'Present with `rulePersisted` (and only then): always `rule_lane_unavailable` on this lane.' }
24655
+ turnRefused: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/turnRefused' }
23735
24656
 
23736
24657
  WorkflowParkDecisionDelivered:
23737
24658
  type: object
@@ -23783,6 +24704,7 @@ components:
23783
24704
  parentTaskId: { type: string }
23784
24705
  stoppedBy: { type: string, description: 'Verbatim open enum (who/what stopped a killed child).' }
23785
24706
  resumable: { type: boolean }
24707
+ resumableUntil: { type: number, description: 'server >= 7.156.0: the continuation deadline (epoch ms, an UPPER BOUND) — same reader and value as the terminal `task` row and the run stream''s `task_notification`.' }
23786
24708
  recentSteps:
23787
24709
  type: array
23788
24710
  items:
@@ -23844,6 +24766,7 @@ components:
23844
24766
  additionalProperties: true
23845
24767
  properties:
23846
24768
  kind: { type: string, enum: [hook_decision_unavailable] }
24769
+ groupKey: { type: string, pattern: '^[0-9a-f]{24}$', description: 'server >= 7.156.0 — the four kinds'' MERGE KEY: a fixed-length digest (24 lowercase hex, same across replicas and restarts) of the identity members present on the frame (`kind` · `event` · `reason` · `hookName` · `entryType` · `source` · `lane` · `optionCause`, plus the entry''s plugin identity name + root); equal ⇔ the same hook failing the same way. Per-occurrence members (`exitCode` · `toolName` · `stderr` · `detail`) are not in it. Fold repeated hook failures into one row by this key and count on your side (the server still emits one frame per occurrence); do not fold by `hookName` + `reason`. Fleet stream and run event stream carry the same key for the same frame. Absent = an older server, or a run-ledger row written before 7.156.0.' }
23847
24770
  event: { type: string, description: 'Which hook event (Stop / PreToolUse / …) — defined by "a hook adjudication did not complete", not any single feature.' }
23848
24771
  reason:
23849
24772
  # 🔴 NO `enum` — same ruling as `FleetTaskRow.retiredBy` (codex R1-F3, family case): the description
@@ -23864,6 +24787,7 @@ components:
23864
24787
  additionalProperties: true
23865
24788
  properties:
23866
24789
  kind: { type: string, enum: [hook_non_blocking_failure] }
24790
+ groupKey: { type: string, pattern: '^[0-9a-f]{24}$', description: 'server >= 7.156.0 — merge key (same reading as `FleetHookDecisionUnavailable.groupKey`).' }
23867
24791
  event: { type: string, description: 'Which hook event (PreToolUse / Stop / …).' }
23868
24792
  reason:
23869
24793
  # 🔴 NO `enum` — same open-on-read ruling as kind 1 (SDK type is `... | (string & {})`).
@@ -23887,6 +24811,7 @@ components:
23887
24811
  additionalProperties: true
23888
24812
  properties:
23889
24813
  kind: { type: string, enum: [hook_managed_unrun] }
24814
+ groupKey: { type: string, pattern: '^[0-9a-f]{24}$', description: 'server >= 7.156.0 — merge key (same reading as `FleetHookDecisionUnavailable.groupKey`).' }
23890
24815
  event: { type: string, description: 'Which hook event. On PreToolUse this entry sets the managed lane: with no veto the call folds to `ask`.' }
23891
24816
  reason:
23892
24817
  # NO `enum` — same open-on-read ruling as kinds 1 and 2.
@@ -23913,6 +24838,7 @@ components:
23913
24838
  additionalProperties: true
23914
24839
  properties:
23915
24840
  kind: { type: string, enum: [hook_verdict_untrusted] }
24841
+ groupKey: { type: string, pattern: '^[0-9a-f]{24}$', description: 'server >= 7.156.0 — merge key (same reading as `FleetHookDecisionUnavailable.groupKey`).' }
23916
24842
  event: { type: string, description: 'Which hook event (today always PreToolUse).' }
23917
24843
  reason:
23918
24844
  # NO `enum` — same open-on-read ruling as kinds 1–3.
@@ -24270,7 +25196,7 @@ components:
24270
25196
  🔴 ONE RULE FOR EVERY "EFFECTIVE HALF ONLY" KEY (sdk 9.7.0, after a codex adversarial-review [high]):
24271
25197
  this schema's only consumer today is `GET /v1/diagnostics/wiring`'s `static` half, and every key marked
24272
25198
  "effective half only" (`leg`, `ask.effective`, `configFingerprint`, `tools`, `mods`, `lsp`,
24273
- `modelGate`, `autoMode`, `writeProtection`, `readDeny`, `autoConsolidation`, `fileHistory`, `instructions`, `sessionRules`, `projectMemory`, `declaredPlaces`) is ALWAYS ABSENT on that
25199
+ `modelGate`, `autoMode`, `writeProtection`, `readDeny`, `autoConsolidation`, `fileHistory`, `instructions`, `sessionRules`, `projectMemory`, `declaredPlaces`, `fastMode`) is ALWAYS ABSENT on that
24274
25200
  wire ⇒ THEIR ABSENCE HERE CARRIES NO INFORMATION. The per-key absence readings ("absent = not armed",
24275
25201
  "absent = a third state", …) hold for the LIVE FRAME (`Event_wiring_manifest`) and must not be carried
24276
25202
  over to this response. For the facts behind those keys: a tenant reads
@@ -24299,6 +25225,9 @@ components:
24299
25225
  additionalProperties: true
24300
25226
  properties:
24301
25227
  schemaVersion: { type: integer }
25228
+ fastMode:
25229
+ allOf: [{ $ref: '#/components/schemas/FastModeReading' }]
25230
+ description: 'server >= 7.156.0 (engine 7.69.0; effective half only — this half never carries it, see the rule at the top): the leg''s fast-mode reading at its start. The reading before any submit is on `GET /v1/models` rows.'
24302
25231
  declaredPlaces:
24303
25232
  allOf: [{ $ref: '#/components/schemas/WiringManifestDeclaredPlaces' }]
24304
25233
  description: 'server >= 7.155.0 (engine 7.69.1; effective half only — this half never carries it, see the rule at the top): the declared places guarding the leg.'
@@ -24326,6 +25255,15 @@ components:
24326
25255
  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`) = `[]`.
24327
25256
  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.
24328
25257
  items: { $ref: '#/components/schemas/WiringManifestSkill' }
25258
+ shadowedSkills:
25259
+ type: array
25260
+ items: { type: string }
25261
+ description: >-
25262
+ server >= 7.157.0 (server-minted section; present with `skills` and absent with it): the request body's `skills[]` entries NOT handed to the
25263
+ engine because the name was already taken, one item each, in request order; names compared byte for byte. The taker is the first same-named
25264
+ entry of this frame's `skills` (`factory` / `center` = shadowed by a deployment skill; `request` = a duplicate within the request). `[]` = none
25265
+ dropped (including `disableSkills: true`); absent is never `[]` (a ledger row an older server wrote replays with `skills` alone; child frames carry
25266
+ neither).
24329
25267
  ask:
24330
25268
  $ref: '#/components/schemas/WiringManifestAsk'
24331
25269
  question:
@@ -24426,12 +25364,19 @@ components:
24426
25364
  core >= 7.3.1 (#529), server >= 7.59 — did AUTO mode arm on THIS leg, and if not which arm it stopped
24427
25365
  at. EFFECTIVE half only. 🔴 `reason` is core's closed word list passed through VERBATIM (branch known
24428
25366
  words, keep a default arm); ABSENCE IS NOT "not applicable" — never fold it to `armed: false`. The
24429
- server projects exactly these two keys (core's `breaker` sub-fact is NOT projected onto the wire).
24430
- Full contract: see Event_wiring_manifest.autoMode.
25367
+ server projects these keys only (core's `breaker` sub-fact is NOT projected onto the wire): `armed`, `reason`, and `deniedSource` when
25368
+ the resolver tracks it. Full contract: see Event_wiring_manifest.autoMode.
24431
25369
  required: [armed, reason]
24432
25370
  properties:
24433
25371
  armed: { type: boolean }
24434
25372
  reason: { type: string }
25373
+ deniedSource: { type: string, description: 'core 7.14.0 — which plane''s ratchet turned AUTO off (`org` / `local` / `settings` today; passed through verbatim, open on read). ABSENT = the resolver does not track sources.' }
25374
+ hands:
25375
+ allOf: [{ $ref: '#/components/schemas/WiringManifestHands' }]
25376
+ description: 'core 7.33.1 — does this leg have hands (effective half only — this half never carries it, see the rule at the top). Full contract: see Event_wiring_manifest.hands.'
25377
+ teamRole:
25378
+ type: string
25379
+ description: 'core 7.30.0 — the leg''s role in agent teams (`lead` / `teammate` / `none`; effective half only — this half never carries it). Full contract: see Event_wiring_manifest.teamRole.'
24435
25380
  mods:
24436
25381
  type: array
24437
25382
  description: >
@@ -24702,6 +25647,16 @@ components:
24702
25647
  provenance: { type: string, description: "server >= 7.138.0 - where the registration came from: `server` (minted by this service; every deployment has at least the permission-denial meter row) or `operator` (installed from `MODS_PACKAGES`). Does not share words with `seat`. Engine/service words, read open; absent = an older server." }
24703
25648
  refusedBy: { type: string, description: 'the registration whose judge refused it (registrant text).' }
24704
25649
  reason: { type: string, description: 'the refusing judge''s own words (registrant text, UNTRUSTED-for-display).' }
25650
+ WiringManifestHands:
25651
+ type: object
25652
+ additionalProperties: false
25653
+ required: [mounted]
25654
+ description: >-
25655
+ `wiring_manifest.hands` (core 7.33.1) — does this leg have hands. `mounted` is required: when the server cannot read it the WHOLE section is absent (it never mints a
25656
+ false). `reason` is passed through verbatim (today only beside `mounted: false`, one word `no_execution_env`; the server does not copy the word list — read it open).
25657
+ properties:
25658
+ mounted: { type: boolean }
25659
+ reason: { type: string, description: 'Why there are no hands (`no_execution_env` today; open on read).' }
24705
25660
  WiringManifestLspSeam:
24706
25661
  # sdk 9.5.0:同上 —— live 帧与静态面共用一份段形。
24707
25662
  type: object
@@ -24746,6 +25701,22 @@ components:
24746
25701
  spawnedAt: { type: number, description: 'epoch ms' }
24747
25702
  updatedAt: { type: number, description: 'epoch ms' }
24748
25703
  settledAt: { type: number, description: 'epoch ms; absent until the agent settles.' }
25704
+ AgentRosterUnreadableRow:
25705
+ type: object
25706
+ additionalProperties: false
25707
+ required: [handle, unreadable]
25708
+ description: >-
25709
+ server >= 7.156.0 — a FIRST-PAGE row of `GET /v1/agents/roster` whose stored record the engine's row verdict could not read, listed instead of silently dropped.
25710
+ EXACTLY two keys (no `name` / `status` / timestamps). The marker is the same one a session-list row and a workflow-list row carry. The same agent reads as
25711
+ "unreadable" in the session delete / retire child pre-checks (it cannot be proven not alive).
25712
+ properties:
25713
+ handle: { type: string, description: 'The background agent''s id (the same string as on a readable row).' }
25714
+ unreadable:
25715
+ type: object
25716
+ additionalProperties: false
25717
+ required: [errorCode]
25718
+ properties:
25719
+ errorCode: { type: string, description: 'The engine''s row-verdict code; `agent_record.row_malformed` today (open set).' }
24749
25720
  AgentRosterPage:
24750
25721
  type: object
24751
25722
  additionalProperties: false
@@ -24753,8 +25724,16 @@ components:
24753
25724
  description: >
24754
25725
  The 200 body of `GET /v1/agents/roster`. `total` is the OWNER-scoped row count of the roster window (a row of another tenant is in neither the page nor this number — a count that differed would be an existence oracle);
24755
25726
  `truncated: true` says the tenant has more rows than the 500-row window, so `total` is the window, not the whole. `nextBefore` (present = another page exists) is the opaque cursor to send back as `before`.
25727
+ 🔴 Each `agents[]` item is a UNION (server >= 7.156.0): a readable row (`AgentRosterRow`) OR a row the engine's row verdict could not read (`AgentRosterUnreadableRow`,
25728
+ exactly `{ handle, unreadable: { errorCode } }`) — those are listed on the FIRST page only (no `before`), after that page's readable rows, never counting toward
25729
+ `limit` or the cursor, and they count in `total`. Test `unreadable` before reading `name` / `status`.
24756
25730
  properties:
24757
- agents: { type: array, items: { $ref: '#/components/schemas/AgentRosterRow' } }
25731
+ agents:
25732
+ type: array
25733
+ items:
25734
+ oneOf:
25735
+ - { $ref: '#/components/schemas/AgentRosterRow' }
25736
+ - { $ref: '#/components/schemas/AgentRosterUnreadableRow' }
24758
25737
  total: { type: integer, minimum: 0 }
24759
25738
  nextBefore: { type: string }
24760
25739
  truncated: { type: boolean, enum: [true] }
@@ -24957,6 +25936,165 @@ components:
24957
25936
  description: >
24958
25937
  server >= 7.5x (#324, design/338) — the mid-turn MCP revocation list. `null` = this process has no
24959
25938
  config pipeline (it cannot say). NOT YET MIRRORED KEY-BY-KEY in this SDK generation — read as opaque.
25939
+ outbound:
25940
+ oneOf:
25941
+ - $ref: '#/components/schemas/WiringOutbound'
25942
+ - type: 'null'
25943
+ description: >-
25944
+ The OUTBOUND segment (the server has sent it since 7.108.0; declared here from this version): which variable supplies the effective proxy
25945
+ (the NAME, never the value), whether `NO_PROXY` is set, whether the loopback-direct rule is in effect in this runtime, when the proxy variables
25946
+ were read, and this process's last connect failure — the same facts as the ops log line `outbound_connect_failed`. `null` = this process cannot say.
25947
+ storeDurability:
25948
+ $ref: '#/components/schemas/StoreDurabilityWiring'
25949
+ description: >-
25950
+ server >= 7.148.0 (the server has sent it since then; declared here from 48.0.0) — store durability: the three-state summary plus the per-root
25951
+ detail. Same assembled value as the capability `store.durability` / `store.weakest` and `/health.store`; the per-root paths, mount points, mount
25952
+ sources and filesystem types appear on this operator face only. Absent = an older server.
25953
+ executionLane:
25954
+ $ref: '#/components/schemas/Capabilities/properties/executionLane'
25955
+ description: >-
25956
+ server >= 7.106.0 (the server has sent it since then; declared here from 48.0.0) — the execution lane's self-report, produced by the SAME
25957
+ projection as the capability `executionLane` (operator face and caller face agree by construction). Absent = an older server.
25958
+ sealedKeyCustody:
25959
+ oneOf:
25960
+ - $ref: '#/components/schemas/SealedKeyCustody'
25961
+ - type: 'null'
25962
+ description: >-
25963
+ server >= 7.157.0 — sealed-key custody read-back: the key ids each of this process's two domains holds, and the `SEALED_KEY_IMPORT_FROM` import
25964
+ reading. Ids only — key bytes and custody paths are not in this shape. `null` = this process cannot say (it was not assembled by the service entry);
25965
+ absent = an older server. To check two engines hold the same keys, read both engines' `held` (no promise they hold the same set at the same moment).
25966
+ StoreDurabilityWiring:
25967
+ type: object
25968
+ additionalProperties: false
25969
+ description: >-
25970
+ `WiringDiagnostics.storeDurability` (server >= 7.148.0; server `StoreDurabilityWiring`, mint `projectStoreDurabilityWiring`): `durability` = the
25971
+ weakest of the roots (the capability `store.durability`); `roots` = per-root verdicts in the order data root, sealed key directory, file memory root
25972
+ (the memory root only when the file memory engine is wired).
25973
+ required: [durability, roots]
25974
+ properties:
25975
+ durability: { type: string, enum: [durable, ephemeral, unknown] }
25976
+ roots:
25977
+ type: array
25978
+ items: { $ref: '#/components/schemas/StoreRootDurability' }
25979
+ StoreRootDurability:
25980
+ type: object
25981
+ additionalProperties: false
25982
+ description: >-
25983
+ One root of `StoreDurabilityWiring.roots` (server `StoreRootDurability`). `root` and `rule` use the same two word tables as `StoreWeakestRoot`
25984
+ (open on read). `path` = the physical path judged (links resolved); `null` for a SQL / memory data root, which has no path. `mountPoint` /
25985
+ `mountSource` / `fsType` = the mount seen through that path; all three `null` when it could not be told.
25986
+ required: [root, path, mountPoint, mountSource, fsType, rule, verdict]
25987
+ properties:
25988
+ root: { type: string }
25989
+ path: { type: ['string', 'null'] }
25990
+ mountPoint: { type: ['string', 'null'] }
25991
+ mountSource: { type: ['string', 'null'] }
25992
+ fsType: { type: ['string', 'null'] }
25993
+ rule: { type: string }
25994
+ verdict: { type: string, enum: [durable, ephemeral, unknown] }
25995
+ SealedKeyCustody:
25996
+ type: object
25997
+ additionalProperties: false
25998
+ description: >-
25999
+ `WiringDiagnostics.sealedKeyCustody` (server >= 7.157.0; server `SealedKeyCustody`, sole mint `buildSealedKeyCustodyReport`). `model` /
26000
+ `checkpointCtx` = every key id the domain's store holds, `null` when this process has no store for that domain. `import` = the
26001
+ `SEALED_KEY_IMPORT_FROM` reading, `null` when not declared; `at` = when this import's planning started (ISO). No word here means "the source may
26002
+ be deleted": `complete` only says every copy read this time is in this process's store and was proven on disk.
26003
+ required: [model, checkpointCtx, import]
26004
+ properties:
26005
+ model:
26006
+ oneOf:
26007
+ - { type: object, additionalProperties: false, required: [held], properties: { held: { type: array, items: { type: string } } } }
26008
+ - type: 'null'
26009
+ checkpointCtx:
26010
+ oneOf:
26011
+ - { type: object, additionalProperties: false, required: [held], properties: { held: { type: array, items: { type: string } } } }
26012
+ - type: 'null'
26013
+ import:
26014
+ oneOf:
26015
+ - type: object
26016
+ additionalProperties: false
26017
+ required: [at, sources]
26018
+ properties:
26019
+ at: { type: string }
26020
+ sources:
26021
+ type: array
26022
+ items: { $ref: '#/components/schemas/SealedKeyImportSource' }
26023
+ - type: 'null'
26024
+ SealedKeyImportSource:
26025
+ type: object
26026
+ additionalProperties: false
26027
+ description: >-
26028
+ One declared import source (server `SealedKeyImportSource`; `dir` = the declaration's spelling). `complete` has one definition, judged per domain:
26029
+ each domain on its own is `absent`, or `listed` with an empty `refused` — `true` when both domains pass (one `absent` and the other `listed` with no refusal
26030
+ passes too); either domain `unread`, or `listed` with refusals, makes it `false`.
26031
+ required: [dir, complete, model, checkpointCtx]
26032
+ properties:
26033
+ dir: { type: string }
26034
+ complete: { type: boolean }
26035
+ model: { $ref: '#/components/schemas/SealedKeyImportReading' }
26036
+ checkpointCtx: { $ref: '#/components/schemas/SealedKeyImportReading' }
26037
+ SealedKeyImportReading:
26038
+ description: >-
26039
+ One source's reading in one domain (server `SealedKeyImportReading`, discriminated by `read`): `absent` = the source is not there; `unread` = it
26040
+ could not be read (`why`: `unreadable` not a directory / cannot be listed · `overlap` two of the directories are the same one · `not_run` this
26041
+ domain ran no import); `listed` = listed, `refused` = the copies not held (empty = all held).
26042
+ oneOf:
26043
+ - { type: object, additionalProperties: false, required: [read], properties: { read: { type: string, enum: [absent] } } }
26044
+ - type: object
26045
+ additionalProperties: false
26046
+ required: [read, why]
26047
+ properties:
26048
+ read: { type: string, enum: [unread] }
26049
+ why: { type: string, enum: [unreadable, overlap, not_run] }
26050
+ - type: object
26051
+ additionalProperties: false
26052
+ required: [read, refused]
26053
+ properties:
26054
+ read: { type: string, enum: [listed] }
26055
+ refused:
26056
+ type: array
26057
+ items: { $ref: '#/components/schemas/SealedKeyImportRefusal' }
26058
+ SealedKeyImportRefusal:
26059
+ type: object
26060
+ additionalProperties: false
26061
+ description: >-
26062
+ A copy that was not held (server `SealedKeyImportRefusal`): `file` = the directory entry name in the source; `id` = the key id inside it, when
26063
+ readable; `why` = `untrusted` not a regular file itself or refused by the trust judge · `unreadable` skipped by the loader · `unpaired` the
26064
+ private key does not derive the public key in the file · `conflict` same id, different material (not overwritten) · `name_taken` the custody
26065
+ directory already has that file name holding another key (not overwritten) · `unproven` publishing failed, or the final load lacks it / the
26066
+ on-disk proof failed · `lock_held` the write lock stayed held until its deadline, not published.
26067
+ required: [file, why]
26068
+ properties:
26069
+ file: { type: string }
26070
+ id: { type: string }
26071
+ why: { type: string, enum: [untrusted, unreadable, unpaired, conflict, name_taken, unproven, lock_held] }
26072
+ WiringOutbound:
26073
+ type: object
26074
+ additionalProperties: false
26075
+ required: [proxy, noProxy, loopbackDirect, proxyReadAtMs, lastConnectFailure]
26076
+ properties:
26077
+ proxy:
26078
+ type: object
26079
+ additionalProperties: false
26080
+ required: [http, https]
26081
+ properties:
26082
+ http: { type: ['string', 'null'], enum: [HTTP_PROXY, null] }
26083
+ https: { type: ['string', 'null'], enum: [HTTPS_PROXY, HTTP_PROXY, null] }
26084
+ noProxy: { type: boolean }
26085
+ loopbackDirect: { type: boolean }
26086
+ proxyReadAtMs: { type: number, description: 'When the proxy variables were read (epoch ms; read once at start-up — a later VPN / proxy change is unknown to this process, so this moment is the "restart?" criterion).' }
26087
+ lastConnectFailure:
26088
+ oneOf:
26089
+ - type: object
26090
+ additionalProperties: false
26091
+ required: [targetHost, code, proxyInUse, atMs]
26092
+ properties:
26093
+ targetHost: { type: string }
26094
+ code: { type: string, enum: [UND_ERR_CONNECT_TIMEOUT, ECONNREFUSED, ENOTFOUND, EAI_AGAIN, EHOSTUNREACH, ENETUNREACH] }
26095
+ proxyInUse: { type: ['string', 'null'], description: 'The proxy VARIABLE NAME this hop used; `null` = direct.' }
26096
+ atMs: { type: number }
26097
+ - type: 'null'
24960
26098
 
24961
26099
  SendfileLinkRow:
24962
26100
  type: object
@@ -25359,6 +26497,8 @@ components:
25359
26497
  field: { type: string }
25360
26498
  entry: { type: string }
25361
26499
  reason: { type: string }
26500
+ currentName: { type: string, minLength: 1, description: 'server >= 7.156.0 — present iff the name judge gave the current spelling of this entry''s tool name (the name segment only: `BASH(*)` → `Bash`); never an empty string; redacted like `entry`.' }
26501
+ guidance: { type: string, minLength: 1, description: 'server >= 7.156.0 — present iff the name judge gave its own one-line sentence for this entry (retired names, unmintable protocol segments), verbatim; never an empty string; redacted like `entry`.' }
25362
26502
  PrincipalInboxMessage:
25363
26503
  type: object
25364
26504
  description: 'The request body of POST /v1/principal-inbox/messages: a CLOSED three-key shape (`from` is minted by the server from the verified identity and cannot be sent).'
@@ -25699,6 +26839,77 @@ components:
25699
26839
  expectedGeneration: { type: string, pattern: '^(0|[1-9][0-9]*)$', description: 'The fleet generation as a canonical decimal string (`/health.generation`); absent against absent — omit it only for a non-member.' }
25700
26840
  instanceId: { type: string, minLength: 1, description: The engine's per-process identity (`/health.instanceId`); compared only when present. }
25701
26841
  term: { type: string, minLength: 1, description: The claim term the sending executor holds for this action (center-issued, opaque); absent on a direct or hand-issued call. }
26842
+ CredentialDrainRequest:
26843
+ type: object
26844
+ additionalProperties: false
26845
+ description: >-
26846
+ server >= 7.156.0 — the drain endpoint's CREDENTIAL-NAMED form (contract `CredentialDrainRequest`, `@sema-agent/settings-schema` 33.1.0): the sender
26847
+ names the engine by the `launch`-class credential it presents, so the body carries no action id, worker or deadline. STRICT: one key more, a word
26848
+ off, a negative / fractional count ⇒ not this form. Every key optional; `{}` is the whole default form.
26849
+ properties:
26850
+ instanceId: { type: string, minLength: 1, description: 'The engine''s per-process identity (`/health.instanceId`); compared when present, refused on a mismatch.' }
26851
+ turns: { allOf: [{ $ref: '#/components/schemas/DrainTurns' }], description: 'How the turns running at acceptance give way: `yield` (absent = this) parks them at the next clean boundary; `halt` also asks every running turn to stop now (operator halt authority only, else 403 `auth.operator_only` + `reason: halt_needs_operate`).' }
26852
+ attachedAtMost: { type: integer, minimum: 0, maximum: 9007199254740991, description: 'Accept only if at most this many streams are attached when the engine judges the request; more ⇒ 409 `conflict.drain_condition_unmet` (root `attached` / `attachedAtMost`), nothing changed.' }
26853
+ LeaderRequest:
26854
+ type: object
26855
+ description: >-
26856
+ The body of `POST /v1/leader`. Closed (since server 7.156.0): these nine keys are every key the door reads; any other top-level key is
26857
+ 400 `request.body_shape` naming it (<= 7.155.x dropped unknown keys silently). A production deployment requires `objective`, `durableRemote`,
26858
+ `testCmd`, `seedCmd` and `baseSha` as non-blank strings. Only the top level is closed: extra keys inside `subtasks[]` / `oracleFiles[]` entries
26859
+ are not judged at admission.
26860
+ required: [objective, durableRemote, testCmd, seedCmd, baseSha]
26861
+ additionalProperties: false
26862
+ properties:
26863
+ objective: { type: string }
26864
+ durableRemote: { type: string }
26865
+ testCmd: { type: string }
26866
+ seedCmd: { type: string }
26867
+ baseSha: { type: string }
26868
+ subtasks:
26869
+ type: array
26870
+ items:
26871
+ type: object
26872
+ required: [workerId, branch, files, objective]
26873
+ properties:
26874
+ workerId: { type: string }
26875
+ branch: { type: string }
26876
+ files: { type: array, items: { type: string } }
26877
+ objective: { type: string }
26878
+ planContext: { type: string }
26879
+ targetRef: { type: string }
26880
+ oracleFiles:
26881
+ type: array
26882
+ items:
26883
+ type: object
26884
+ required: [path, content]
26885
+ properties:
26886
+ path: { type: string }
26887
+ content: { type: string }
26888
+ DrainTurns:
26889
+ type: string
26890
+ enum: ['yield', halt]
26891
+ description: 'server >= 7.156.0 — the two words of `CredentialDrainRequest.turns` (contract `DRAIN_TURNS`, same order). Closed.'
26892
+ DrainBody:
26893
+ description: >-
26894
+ server >= 7.156.0 — the drain endpoint's body: EXACTLY ONE of the identity form `DrainRequest` or the credential-named form `CredentialDrainRequest`.
26895
+ The identity form must not carry the credential form's own keys `turns` / `attachedAtMost` (the server answers that body 400 `request.field_invalid`
26896
+ + `reason: not_a_drain_form`); the credential form is strict, so any identity key makes it not that form. Servers <= 7.155.x accept only `DrainRequest`.
26897
+ oneOf:
26898
+ - allOf:
26899
+ - $ref: '#/components/schemas/DrainRequest'
26900
+ - not:
26901
+ anyOf:
26902
+ - required: [turns]
26903
+ - required: [attachedAtMost]
26904
+ - $ref: '#/components/schemas/CredentialDrainRequest'
26905
+ DrainOperatorOnlyReason:
26906
+ type: string
26907
+ enum: [principal_not_on_roster, principal_absent, halt_needs_operate]
26908
+ description: 'server >= 7.156.0 — the root `reason` of the drain endpoint''s 403 `auth.operator_only`: not on the operator roster · no principal presented · `turns: halt` without the stop-any-run authority. Closed.'
26909
+ DrainFieldInvalidReason:
26910
+ type: string
26911
+ enum: [not_a_drain_form, deadline_beyond_bound]
26912
+ description: 'server >= 7.156.0 — the root `reason` of the drain endpoint''s 400 `request.field_invalid`: the body is neither form · the deadline is beyond the bound. Closed.'
25702
26913
  DrainReceipt:
25703
26914
  type: object
25704
26915
  required: [actionId, since, deadlineAt, state]
@@ -26548,6 +27759,11 @@ components:
26548
27759
  deployment shape). This is the SAME bit the submit-time admission chain judges: `offline` ⇒ a submit
26549
27760
  carrying that `deviceId` answers 409 `device.offline`.
26550
27761
  lastSeenAt: { type: string, format: date-time, description: 'ISO-8601. ABSENT if the device has never connected (not `null`, not epoch 0).' }
27762
+ ownedByCaller:
27763
+ type: boolean
27764
+ description: >-
27765
+ server >= 7.156.0 — is this row the caller's own: `true` iff the row's owner (tenant, subject) is exactly the caller's own pair; `false` when it differs
27766
+ or the caller cannot form its own pair. Present on EVERY row from 7.156.0; absent only on an older server = UNKNOWN, never `false`. No capability bit.
26551
27767
 
26552
27768
  DeviceListResult:
26553
27769
  type: object