@sema-agent/sdk 46.0.0 → 47.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.
- package/README.md +109 -0
- package/dist/bitless-surfaces.d.ts +5 -0
- package/dist/bitless-surfaces.d.ts.map +1 -1
- package/dist/bitless-surfaces.js +7 -0
- package/dist/bitless-surfaces.js.map +1 -1
- package/dist/client.d.ts +7 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +9 -0
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +55 -12
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +28 -8
- package/dist/errors.js.map +1 -1
- package/dist/events.d.ts +97 -7
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js.map +1 -1
- package/dist/health.d.ts +8 -1
- package/dist/health.d.ts.map +1 -1
- package/dist/health.js.map +1 -1
- package/dist/index.d.ts +31 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/resources/admin.d.ts +95 -5
- package/dist/resources/admin.d.ts.map +1 -1
- package/dist/resources/admin.js +58 -4
- package/dist/resources/admin.js.map +1 -1
- package/dist/resources/approvals.d.ts +54 -14
- package/dist/resources/approvals.d.ts.map +1 -1
- package/dist/resources/approvals.js +82 -9
- package/dist/resources/approvals.js.map +1 -1
- package/dist/resources/assistant.d.ts +5 -3
- package/dist/resources/assistant.d.ts.map +1 -1
- package/dist/resources/assistant.js +5 -3
- package/dist/resources/assistant.js.map +1 -1
- package/dist/resources/attachments.d.ts +5 -1
- package/dist/resources/attachments.d.ts.map +1 -1
- package/dist/resources/attachments.js +6 -2
- package/dist/resources/attachments.js.map +1 -1
- package/dist/resources/fleet.d.ts +38 -2
- package/dist/resources/fleet.d.ts.map +1 -1
- package/dist/resources/fleet.js +4 -0
- package/dist/resources/fleet.js.map +1 -1
- package/dist/resources/leader.d.ts +30 -8
- package/dist/resources/leader.d.ts.map +1 -1
- package/dist/resources/leader.js.map +1 -1
- package/dist/resources/questions.d.ts +9 -0
- package/dist/resources/questions.d.ts.map +1 -1
- package/dist/resources/questions.js.map +1 -1
- package/dist/resources/scheduled.d.ts +60 -0
- package/dist/resources/scheduled.d.ts.map +1 -0
- package/dist/resources/scheduled.js +36 -0
- package/dist/resources/scheduled.js.map +1 -0
- package/dist/resources/sessions.d.ts +16 -2
- package/dist/resources/sessions.d.ts.map +1 -1
- package/dist/resources/sessions.js +23 -1
- package/dist/resources/sessions.js.map +1 -1
- package/dist/resources/tool-approvals.d.ts +53 -6
- package/dist/resources/tool-approvals.d.ts.map +1 -1
- package/dist/resources/tool-approvals.js +31 -0
- package/dist/resources/tool-approvals.js.map +1 -1
- package/dist/resources/worktree.d.ts +38 -0
- package/dist/resources/worktree.d.ts.map +1 -0
- package/dist/resources/worktree.js +38 -0
- package/dist/resources/worktree.js.map +1 -0
- package/dist/retired-capability-bits.d.ts +63 -0
- package/dist/retired-capability-bits.d.ts.map +1 -0
- package/dist/retired-capability-bits.js +68 -0
- package/dist/retired-capability-bits.js.map +1 -0
- package/dist/transport.d.ts +6 -0
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +8 -0
- package/dist/transport.js.map +1 -1
- package/dist/types.d.ts +455 -32
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +33 -8
- package/dist/types.js.map +1 -1
- package/openapi.yaml +1055 -41
- package/package.json +1 -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;
|
|
@@ -3038,6 +3051,189 @@ paths:
|
|
|
3038
3051
|
'501': { $ref: '#/components/responses/NotImplemented' }
|
|
3039
3052
|
'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
3053
|
|
|
3054
|
+
# ── server >= 7.156.0:定时任务四口(调用方的两口 + 会话的两口;事实只有调度后端那一份)与工作树能力探针 ──
|
|
3055
|
+
/v1/scheduled:
|
|
3056
|
+
parameters:
|
|
3057
|
+
- $ref: '#/components/parameters/PrincipalHeader'
|
|
3058
|
+
get:
|
|
3059
|
+
tags: [sessions]
|
|
3060
|
+
operationId: scheduledList
|
|
3061
|
+
x-status: gated # server 7.156.0; capability bit `scheduledTasks` (no scheduler ⇒ 501). SDK scheduled.list.
|
|
3062
|
+
summary: The caller's scheduled tasks (durable entries filed under the caller's verified principal).
|
|
3063
|
+
description: >
|
|
3064
|
+
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
|
|
3065
|
+
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
|
|
3066
|
+
own). 200 `{ rows, reach }`: each row is the engine's `ScheduledTaskSummary` key by key (absent stays absent; the server mints no row key); `reach`
|
|
3067
|
+
is the one-word closed set `replica_store` — one list reads the scheduled-task store THIS replica opened (other replicas reading another file are
|
|
3068
|
+
not seen here). Session-level entries (session-shaped cron, pending wake-ups) are only in their own session's list
|
|
3069
|
+
(`GET /v1/sessions/{sessionId}/scheduled`). Known limits: a row carries no task content (the engine's row type has no prompt); no pause / edit /
|
|
3070
|
+
create; on a deployment without the principal gate, list and stop are not per person.
|
|
3071
|
+
Refusals: 501 `capability.scheduler_required` (this deployment has no scheduler — NOT an empty list; probe `capabilities.scheduledTasks`) ·
|
|
3072
|
+
401 (a `REQUIRE_PRINCIPAL` deployment and no verified principal) · 500 `internal.scheduler_store_unreadable` (the store could not be read; no
|
|
3073
|
+
partial list). An older server answers 404 (no such route).
|
|
3074
|
+
responses:
|
|
3075
|
+
'200':
|
|
3076
|
+
description: The caller's durable scheduled entries and which store was read.
|
|
3077
|
+
content:
|
|
3078
|
+
application/json:
|
|
3079
|
+
schema: { $ref: '#/components/schemas/ScheduledTaskList' }
|
|
3080
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
3081
|
+
'404': { $ref: '#/components/responses/NotFound' }
|
|
3082
|
+
'500':
|
|
3083
|
+
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).'
|
|
3084
|
+
content:
|
|
3085
|
+
application/json:
|
|
3086
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
3087
|
+
'501': { $ref: '#/components/responses/NotImplemented' }
|
|
3088
|
+
|
|
3089
|
+
/v1/scheduled/{id}:
|
|
3090
|
+
parameters:
|
|
3091
|
+
- $ref: '#/components/parameters/PrincipalHeader'
|
|
3092
|
+
- in: path
|
|
3093
|
+
name: id
|
|
3094
|
+
required: true
|
|
3095
|
+
schema: { type: string }
|
|
3096
|
+
delete:
|
|
3097
|
+
tags: [sessions]
|
|
3098
|
+
operationId: scheduledCancel
|
|
3099
|
+
x-status: gated # server 7.156.0; capability bit `scheduledTasks`. SDK scheduled.cancel.
|
|
3100
|
+
summary: Stop one of the caller's scheduled entries (irreversible).
|
|
3101
|
+
description: >
|
|
3102
|
+
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
|
|
3103
|
+
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
|
|
3104
|
+
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
|
|
3105
|
+
sentence for all of them. Inside the credential-gated write door (effect class `durable-write`): no service credential and no
|
|
3106
|
+
`ALLOW_UNAUTHED_WRITES` ⇒ 503 `auth.service_token_required` before routing; rate-limited. 501 `capability.scheduler_required` as for the list.
|
|
3107
|
+
responses:
|
|
3108
|
+
'200':
|
|
3109
|
+
description: The stopped entry's id.
|
|
3110
|
+
content:
|
|
3111
|
+
application/json:
|
|
3112
|
+
schema: { $ref: '#/components/schemas/ScheduledTaskCancelResult' }
|
|
3113
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
3114
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
3115
|
+
'404': { $ref: '#/components/responses/NotFound' }
|
|
3116
|
+
'429': { $ref: '#/components/responses/RateLimited' }
|
|
3117
|
+
'500':
|
|
3118
|
+
description: '`internal.scheduler_store_unreadable` — as for the list.'
|
|
3119
|
+
content:
|
|
3120
|
+
application/json:
|
|
3121
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
3122
|
+
'501': { $ref: '#/components/responses/NotImplemented' }
|
|
3123
|
+
'503': { $ref: '#/components/responses/Unauthorized' } # `auth.service_token_required` — the credential-gated write door, before routing.
|
|
3124
|
+
|
|
3125
|
+
/v1/sessions/{sessionId}/scheduled:
|
|
3126
|
+
parameters:
|
|
3127
|
+
- $ref: '#/components/parameters/PrincipalHeader'
|
|
3128
|
+
- in: path
|
|
3129
|
+
name: sessionId
|
|
3130
|
+
required: true
|
|
3131
|
+
schema: { type: string }
|
|
3132
|
+
get:
|
|
3133
|
+
tags: [sessions]
|
|
3134
|
+
operationId: sessionsScheduledList
|
|
3135
|
+
x-status: gated # server 7.156.0; capability bit `sessionScheduledTasks`. SDK sessions.scheduled.
|
|
3136
|
+
summary: The session's scheduled tasks — its own entries first, then the session owner's durable entries.
|
|
3137
|
+
description: >
|
|
3138
|
+
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
|
|
3139
|
+
on someone's behalf reads the owner's entries. Gate order: identity front door → path → capability (501 `capability.scheduler_required`, or 501
|
|
3140
|
+
`capability.session_ownership_required` when the session store has no head read — `sessionScheduledTasks: false` while `scheduledTasks: true`
|
|
3141
|
+
means only the session doors are missing) → owner gate (404 `not_found.session`: unknown and someone else's answer the same). The capability is
|
|
3142
|
+
judged BEFORE the session, so a deployment without a scheduler answers 501 for an unknown session too. 500 `internal.scheduler_store_unreadable`.
|
|
3143
|
+
responses:
|
|
3144
|
+
'200':
|
|
3145
|
+
description: The session's entries, then the owner's durable entries.
|
|
3146
|
+
content:
|
|
3147
|
+
application/json:
|
|
3148
|
+
schema: { $ref: '#/components/schemas/ScheduledTaskList' }
|
|
3149
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
3150
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
3151
|
+
'404': { $ref: '#/components/responses/NotFound' }
|
|
3152
|
+
'500':
|
|
3153
|
+
description: '`internal.scheduler_store_unreadable` — as for `GET /v1/scheduled`.'
|
|
3154
|
+
content:
|
|
3155
|
+
application/json:
|
|
3156
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
3157
|
+
'501': { $ref: '#/components/responses/NotImplemented' }
|
|
3158
|
+
|
|
3159
|
+
/v1/sessions/{sessionId}/scheduled/{entryId}:
|
|
3160
|
+
parameters:
|
|
3161
|
+
- $ref: '#/components/parameters/PrincipalHeader'
|
|
3162
|
+
- in: path
|
|
3163
|
+
name: sessionId
|
|
3164
|
+
required: true
|
|
3165
|
+
schema: { type: string }
|
|
3166
|
+
- in: path
|
|
3167
|
+
name: entryId
|
|
3168
|
+
required: true
|
|
3169
|
+
schema: { type: string }
|
|
3170
|
+
delete:
|
|
3171
|
+
tags: [sessions]
|
|
3172
|
+
operationId: sessionsScheduledCancel
|
|
3173
|
+
x-status: gated # server 7.156.0; capability bit `sessionScheduledTasks`. SDK sessions.scheduledCancel.
|
|
3174
|
+
summary: Stop one entry on the session's lanes (irreversible).
|
|
3175
|
+
description: >
|
|
3176
|
+
server >= 7.156.0. Same gates as `GET /v1/sessions/{sessionId}/scheduled`; an id outside the session's lanes ⇒ 404 `not_found.scheduled_task`
|
|
3177
|
+
(same code and sentence). Credential-gated write door (503 `auth.service_token_required` before routing) and rate-limited, as `DELETE /v1/scheduled/{id}`.
|
|
3178
|
+
responses:
|
|
3179
|
+
'200':
|
|
3180
|
+
description: The stopped entry's id.
|
|
3181
|
+
content:
|
|
3182
|
+
application/json:
|
|
3183
|
+
schema: { $ref: '#/components/schemas/ScheduledTaskCancelResult' }
|
|
3184
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
3185
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
3186
|
+
'404': { $ref: '#/components/responses/NotFound' }
|
|
3187
|
+
'429': { $ref: '#/components/responses/RateLimited' }
|
|
3188
|
+
'500':
|
|
3189
|
+
description: '`internal.scheduler_store_unreadable` — as for `GET /v1/scheduled`.'
|
|
3190
|
+
content:
|
|
3191
|
+
application/json:
|
|
3192
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
3193
|
+
'501': { $ref: '#/components/responses/NotImplemented' }
|
|
3194
|
+
'503': { $ref: '#/components/responses/Unauthorized' } # `auth.service_token_required` — the credential-gated write door, before routing.
|
|
3195
|
+
|
|
3196
|
+
/v1/worktree-capability:
|
|
3197
|
+
parameters:
|
|
3198
|
+
- $ref: '#/components/parameters/PrincipalHeader'
|
|
3199
|
+
- in: query
|
|
3200
|
+
name: cwd
|
|
3201
|
+
required: true
|
|
3202
|
+
schema: { type: string }
|
|
3203
|
+
description: The folder to ask about — exactly once, an absolute HOST path.
|
|
3204
|
+
- in: query
|
|
3205
|
+
name: name
|
|
3206
|
+
required: false
|
|
3207
|
+
schema: { type: string }
|
|
3208
|
+
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.
|
|
3209
|
+
get:
|
|
3210
|
+
tags: [sessions]
|
|
3211
|
+
operationId: worktreeCapability
|
|
3212
|
+
x-status: gated # server 7.156.0; capability bit `sessionWorktree` (501 otherwise). SDK worktree.capability.
|
|
3213
|
+
summary: Can this folder hold a session's own worktree? The engine judge's answer, verbatim.
|
|
3214
|
+
description: >
|
|
3215
|
+
server >= 7.156.0 (mint `src/http/routes/capabilities.ts`). Projects the engine's `probeWorktreeCapability` — the same judge a session's first leg
|
|
3216
|
+
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
|
|
3217
|
+
500 code units; `gitRoot` through the path-identity seat, withheld when it cannot leave as one). Gate order (dispatcher, before the handler):
|
|
3218
|
+
credential-gated door (effect class `host-action`: no credential the gate accepts and no `ALLOW_UNAUTHED_WRITES` ⇒ 503
|
|
3219
|
+
`auth.service_token_required`) → rate limiter; (handler) principal gate (401) → capability fact `sessionWorktree` (501 `capability.unavailable`,
|
|
3220
|
+
answered BEFORE `cwd` is read: only a single-user host-lane deployment with the local session store answers) → query (400
|
|
3221
|
+
`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
|
|
3222
|
+
older server's 404 both read "not known". Known limits (engine readings projected verbatim): a path that does not exist ⇒ `git_unavailable`; a
|
|
3223
|
+
subfolder of a plain linked worktree ⇒ `gitRoot` is that subfolder.
|
|
3224
|
+
responses:
|
|
3225
|
+
'200':
|
|
3226
|
+
description: The engine's answer (capable, or not capable with a `reason` from the closed set and a one-sentence `detail`).
|
|
3227
|
+
content:
|
|
3228
|
+
application/json:
|
|
3229
|
+
schema: { $ref: '#/components/schemas/WorktreeCapability' }
|
|
3230
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
3231
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
3232
|
+
'404': { $ref: '#/components/responses/NotFound' }
|
|
3233
|
+
'429': { $ref: '#/components/responses/RateLimited' }
|
|
3234
|
+
'501': { $ref: '#/components/responses/NotImplemented' }
|
|
3235
|
+
'503': { $ref: '#/components/responses/Unauthorized' } # `auth.service_token_required` — the credential-gated door (effect class host-action), before routing.
|
|
3236
|
+
|
|
3041
3237
|
/v1/sessions/{sessionId}/memory-status:
|
|
3042
3238
|
parameters:
|
|
3043
3239
|
- $ref: '#/components/parameters/PrincipalHeader'
|
|
@@ -3997,6 +4193,11 @@ paths:
|
|
|
3997
4193
|
`not_found.approval` (it used to 409 — a single-bit cross-tenant "who is parked on an approval"
|
|
3998
4194
|
oracle); a legitimately-owned old token (a shell retrying its own already-decided row) keeps the
|
|
3999
4195
|
attributable 409 + `terminal:"resolved"` verbatim.
|
|
4196
|
+
server >= 7.156.0 — `terminal` is a closed set of two words, `resolved` | `expired` (that row's status now; never beside
|
|
4197
|
+
`currentPending`): a decide retried by `boundCallId` with no gate pending answers 409 + `terminal` where it answered 404 before —
|
|
4198
|
+
a changed verdict / payload / digest, a checkpoint id naming another gate, someone deciding first, or the window's auto-deny ⇒
|
|
4199
|
+
`resolved`; a voided / reaped card, or an unrevivable parked child voided by a deny ⇒ `expired` (a timeout or void, not a verdict).
|
|
4200
|
+
An echoed old token whose row is still pending (superseded) carries no `terminal`. SDK `ApprovalStaleError.terminal`.
|
|
4000
4201
|
PARKED-CHILD lane, K-24 (server >= 7.104.0 / S-790) — two codes gain a trigger, same code, same body keys:
|
|
4001
4202
|
`decide.not_parked` (DecideParkMovedError) now also answers when the child's ROOT SESSION was deleted, or deleted
|
|
4002
4203
|
and the same id re-registered as a new session (the decide leg reads the root session's occupant before and after
|
|
@@ -4110,7 +4311,7 @@ paths:
|
|
|
4110
4311
|
application/json:
|
|
4111
4312
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
4112
4313
|
'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.'
|
|
4314
|
+
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
4315
|
content:
|
|
4115
4316
|
application/json:
|
|
4116
4317
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -4398,12 +4599,25 @@ paths:
|
|
|
4398
4599
|
responses:
|
|
4399
4600
|
'200':
|
|
4400
4601
|
# 2026-07-25:同 resume —— 两条共用 `driveResumeIntoRunLog`,响应体逐字相同。
|
|
4602
|
+
# server 7.156.0 起多一支:计划门已结束而这份 `reject` 记着且相等 ⇒ 幂等重放体(铸点 `idempotentReplayBody`,与 /decide 的回放同一只)。
|
|
4401
4603
|
description: >
|
|
4402
4604
|
Resolved. 🔴 A 200 does NOT mean success — see `status`/`errorCode`/`retriable` (same body as §4b
|
|
4403
|
-
resume; the two share one handler).
|
|
4605
|
+
resume; the two share one handler). TWO ARMS, discriminated by `idempotent`: the acceptance / synchronous-terminal
|
|
4606
|
+
body (`AssistantTaskStatus`) or, server >= 7.156.0, the idempotent replay (`DecisionReplayReceipt`, `decision: reject`) — only when this is
|
|
4607
|
+
a `reject` that carries `checkpointId` naming the plan gate and carries no resume restatement (`mcpServers` / `a2aPeers`), that gate has already
|
|
4608
|
+
ended, and the decision recorded on it is the same `reject` (equal reason); nothing resumes: no `taskId`, no `status`. A resend without the
|
|
4609
|
+
gate id, with a restatement, or of `approve` / `edit` never reaches the replay.
|
|
4404
4610
|
content:
|
|
4405
4611
|
application/json:
|
|
4406
|
-
schema:
|
|
4612
|
+
schema:
|
|
4613
|
+
oneOf:
|
|
4614
|
+
- { $ref: '#/components/schemas/AssistantTaskStatus' }
|
|
4615
|
+
# 重放支 = 共用的闭形重放体 ∧ 这扇口只重放 `reject`(服务端 `idempotentReplayBody(run.sessionId, "reject")`)。
|
|
4616
|
+
- allOf:
|
|
4617
|
+
- { $ref: '#/components/schemas/DecisionReplayReceipt' }
|
|
4618
|
+
- type: object
|
|
4619
|
+
properties:
|
|
4620
|
+
decision: { type: string, enum: [reject] }
|
|
4407
4621
|
'400':
|
|
4408
4622
|
description: >
|
|
4409
4623
|
`ErrorResponse`-shaped. Codes: "request.body_shape" (bad/missing `decision`, OR an unrecognised
|
|
@@ -4431,6 +4645,9 @@ paths:
|
|
|
4431
4645
|
NOT a session-CAS conflict. SDK → GateNotPlanReviewError.
|
|
4432
4646
|
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
4647
|
($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).
|
|
4648
|
+
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`
|
|
4649
|
+
(`resolved` | `expired`, never beside `currentPending`; SDK `ApprovalStaleError.terminal`) where it answered 404 before; a `reject` recorded and equal to this body
|
|
4650
|
+
answers `200` instead, the idempotent replay (`DecisionReplayReceipt`: `{ sessionId, idempotent: true, decision: "reject", bindingEnforced: true, decisionCommitted: true }`) with no `taskId` / `status`.
|
|
4434
4651
|
content:
|
|
4435
4652
|
application/json:
|
|
4436
4653
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -5533,14 +5750,7 @@ paths:
|
|
|
5533
5750
|
required: true
|
|
5534
5751
|
content:
|
|
5535
5752
|
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 }
|
|
5753
|
+
schema: { $ref: '#/components/schemas/LeaderRequest' }
|
|
5544
5754
|
responses:
|
|
5545
5755
|
'202':
|
|
5546
5756
|
description: Leader run accepted.
|
|
@@ -5552,6 +5762,10 @@ paths:
|
|
|
5552
5762
|
errorCode "request.body_shape" — a missing/blank `objective` or required field, OR a malformed
|
|
5553
5763
|
`Idempotency-Key` (must be 1-255 chars with no leading/trailing whitespace). The key is validated
|
|
5554
5764
|
LOUDLY rather than ignored: silently dropping a dedupe key permits a second real git push.
|
|
5765
|
+
Since server 7.156.0 a top-level key outside the nine is also `request.body_shape`, with
|
|
5766
|
+
`unknownKeys` / `unsupportedKeys` at the body root naming it (checked after `objective`, before the
|
|
5767
|
+
required fields); and a `durableRemote` the push step would certainly refuse is
|
|
5768
|
+
`request.field_invalid` at submit time (the message does not echo the address).
|
|
5555
5769
|
content:
|
|
5556
5770
|
application/json:
|
|
5557
5771
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -6644,11 +6858,18 @@ paths:
|
|
|
6644
6858
|
RETIRED (zero alias): the 7.35.0–7.120.x `{reason}` "shutdown reason declaration" body (it only recorded a sentence and never
|
|
6645
6859
|
drained) now answers 400 `request.field_invalid`; `/health.drainReason` and the `reason` key on 503 `draining` bodies are gone too.
|
|
6646
6860
|
Gate order (same as every operator face): identity -> authorization -> body shape -> drain entry -> four-part identity.
|
|
6861
|
+
SERVER >= 7.156.0 — TWO BODY FORMS, exactly one: the identity form `DrainRequest` above, or the CREDENTIAL-NAMED form `CredentialDrainRequest`
|
|
6862
|
+
(gate on `capabilities.engine.credentialDrain`): the caller presents this process's `launch`-class service credential and the strict body names
|
|
6863
|
+
only `instanceId?` / `turns?` / `attachedAtMost?` (`{}` is the whole default form). An identity body that also carries `turns` / `attachedAtMost`
|
|
6864
|
+
⇒ 400 `request.field_invalid` + `reason: not_a_drain_form` (it used to be accepted with the two keys stripped); `{}` on a deployment without
|
|
6865
|
+
`launch` ⇒ 409 `conflict.fleet_identity` (it used to be 400). Refusal bodies carry a machine `reason` on 403 `auth.operator_only`
|
|
6866
|
+
(`principal_not_on_roster` / `principal_absent` / `halt_needs_operate`) and on 400 `request.field_invalid` (`not_a_drain_form` /
|
|
6867
|
+
`deadline_beyond_bound`); an unmet `attachedAtMost` ⇒ 409 `conflict.drain_condition_unmet` with root `attached` / `attachedAtMost`.
|
|
6647
6868
|
requestBody:
|
|
6648
6869
|
required: true
|
|
6649
6870
|
content:
|
|
6650
6871
|
application/json:
|
|
6651
|
-
schema: { $ref: '#/components/schemas/
|
|
6872
|
+
schema: { $ref: '#/components/schemas/DrainBody' }
|
|
6652
6873
|
responses:
|
|
6653
6874
|
'200':
|
|
6654
6875
|
description: Draining (this call entered it) or already draining (the first drain's facts, unchanged).
|
|
@@ -8404,6 +8625,13 @@ components:
|
|
|
8404
8625
|
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
8626
|
call); `false` = absent. Non-boolean => 400 `request.field_invalid`. Re-read by resume / delivery legs from the stored body; inherited by engine-built
|
|
8406
8627
|
children and workflow members. Not accepted from `settings`. A server without the bit answers 400 `request.body_shape` for this key.
|
|
8628
|
+
fastMode:
|
|
8629
|
+
type: boolean
|
|
8630
|
+
description: >-
|
|
8631
|
+
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),
|
|
8632
|
+
passed verbatim to the engine seat; all three submit doors; resume / delivery legs re-read the stored body; delegated children follow the parent leg.
|
|
8633
|
+
Non-boolean ⇒ 400 `request.field_invalid` (with `field`). An unsupporting model is NOT refused: the engine sends at standard speed and emits
|
|
8634
|
+
`model.capability_downgraded` (`capability: fast_mode`); read `GET /v1/models` rows' `fastMode` first. Servers <= 7.155.x answer 400 `request.body_shape`.
|
|
8407
8635
|
userAttachments:
|
|
8408
8636
|
type: array
|
|
8409
8637
|
maxItems: 20
|
|
@@ -8725,7 +8953,7 @@ components:
|
|
|
8725
8953
|
type: string
|
|
8726
8954
|
enum: [sidechain]
|
|
8727
8955
|
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
|
|
8956
|
+
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
8957
|
cwd:
|
|
8730
8958
|
type: string
|
|
8731
8959
|
description: >-
|
|
@@ -10692,9 +10920,8 @@ components:
|
|
|
10692
10920
|
allOf: [{ $ref: '#/components/schemas/LeaderRunResult' }]
|
|
10693
10921
|
description: >
|
|
10694
10922
|
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`.
|
|
10696
|
-
`LeaderRecord.result
|
|
10697
|
-
which RELEASE.md reserves for a major. Cast it: `record.result as LeaderRunResult`.)
|
|
10923
|
+
(`conflict` / `salvaged`) and leaves the rest open — see `LeaderRunResult`. sdk 47.0.0: the SDK's TS side
|
|
10924
|
+
types `LeaderRecord.result` as `LeaderRunResult` too (it was `unknown` before, read through a cast; the cast still compiles).
|
|
10698
10925
|
error: { type: string }
|
|
10699
10926
|
cancelRequested:
|
|
10700
10927
|
type: boolean
|
|
@@ -10815,7 +11042,7 @@ components:
|
|
|
10815
11042
|
additionalProperties: true
|
|
10816
11043
|
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
11044
|
properties:
|
|
10818
|
-
trigger: { type: string, description: 'suspended | budget | verify-fail | worker-failed.' }
|
|
11045
|
+
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
11046
|
redispatched: { type: array, items: { type: string } }
|
|
10820
11047
|
collapsed: { type: string }
|
|
10821
11048
|
|
|
@@ -10913,9 +11140,11 @@ components:
|
|
|
10913
11140
|
(`decision: "approve"`, `decidedBy` absent or `person`): on a deny or a `decidedBy: "policy"` decision ⇒ 400 `request.field_conflict` with
|
|
10914
11141
|
`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
11142
|
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.
|
|
10917
|
-
|
|
10918
|
-
|
|
11143
|
+
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
|
|
11144
|
+
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
|
|
11145
|
+
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.
|
|
11146
|
+
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
|
|
11147
|
+
(capability `approvalFeedback`), not before. Servers <= 7.133.x refuse the key (400 `request.body_shape`, `unknownKeys: ["feedback"]`).
|
|
10919
11148
|
decidedVia:
|
|
10920
11149
|
allOf: [{ $ref: '#/components/schemas/ApprovalDecidedVia' }]
|
|
10921
11150
|
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 +11246,7 @@ components:
|
|
|
11017
11246
|
items: { type: string, enum: [sidechain] }
|
|
11018
11247
|
description: >-
|
|
11019
11248
|
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
|
|
11249
|
+
where `sessionKind` on a submit answers 400 `request.precondition_unmet`). ABSENT = an older server.
|
|
11021
11250
|
sessionRewindFilesCwd:
|
|
11022
11251
|
type: boolean
|
|
11023
11252
|
description: >-
|
|
@@ -11661,6 +11890,7 @@ components:
|
|
|
11661
11890
|
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
11891
|
hooks: { type: boolean, description: 'Single-user deployments only (`requirePrincipal !== true`).' }
|
|
11663
11892
|
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`).' }
|
|
11893
|
+
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
11894
|
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
11895
|
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
11896
|
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 +12174,13 @@ components:
|
|
|
11944
12174
|
model: { type: string }
|
|
11945
12175
|
refusedBy:
|
|
11946
12176
|
type: string
|
|
11947
|
-
enum: [center.autoMode
|
|
12177
|
+
enum: [center.autoMode]
|
|
11948
12178
|
description: >-
|
|
11949
12179
|
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
|
|
12180
|
+
center entitlement key refused it. Absent when the center could not answer (the server's
|
|
11951
12181
|
fail-closed refusal), when the local `PERMISSIONS_DISABLE_AUTO_MODE` wins (`local_denied`), and on servers <= 7.147.x.
|
|
12182
|
+
server >= 7.156.0 has one word left, `center.autoMode` (the contract package folds the center's auto refusal into one source);
|
|
12183
|
+
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
12184
|
readFace:
|
|
11953
12185
|
type: ["string", "null"]
|
|
11954
12186
|
enum: [open, roots, null]
|
|
@@ -12271,6 +12503,86 @@ components:
|
|
|
12271
12503
|
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
12504
|
promised. It describes what this BUILD accepts, not what this deployment honours. The decision verbs that take `checkpointId` as gate-identity echo
|
|
12273
12505
|
are the rows whose value contains it (today decide / void / plan_review). ABSENT = an older server: read that generation's per-key bits.
|
|
12506
|
+
attachmentIdsInSeat:
|
|
12507
|
+
type: boolean
|
|
12508
|
+
description: >-
|
|
12509
|
+
server >= 7.156.0, constant true — uploaded handles `attachmentIds` go through the attachment seat: their count cap = `userAttachments.limits.maxEntries`
|
|
12510
|
+
(the same number), and handle-derived entries share the one seat with inline `userAttachments` entries (over the seat ⇒ 400
|
|
12511
|
+
`config.user_attachment_invalid`, whole seat, no `index`; over the handle table itself ⇒ 400 `request.rejected`). ABSENT on servers <= 7.154.x
|
|
12512
|
+
(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
|
|
12513
|
+
version to tell those two apart). It answers only "do handles take seats", not the cap (read `userAttachments`) nor "is `attachmentIds` accepted".
|
|
12514
|
+
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.' }
|
|
12515
|
+
instructionFamily:
|
|
12516
|
+
oneOf:
|
|
12517
|
+
- $ref: '#/components/schemas/InstructionFamilyCapability'
|
|
12518
|
+
- type: 'null'
|
|
12519
|
+
description: >-
|
|
12520
|
+
server >= 7.156.0 (config-dependent) — the project instruction-file family the deployment declares to the engine (sub-keys verbatim the engine's
|
|
12521
|
+
`TaskSpec.instructionFamily` declaration form, the same value every leg's spec carries). `null` = the deployment declares none
|
|
12522
|
+
(`PROJECT_MEMORY_ENABLED=false`). It says what the deployment declares, not what a run read (that is the leg's `wiring_manifest.instructions`).
|
|
12523
|
+
Absent = an older server.
|
|
12524
|
+
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.' }
|
|
12525
|
+
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`.' }
|
|
12526
|
+
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.' }
|
|
12527
|
+
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`).' }
|
|
12528
|
+
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`).' }
|
|
12529
|
+
permissionModeArbitration:
|
|
12530
|
+
type: array
|
|
12531
|
+
items: { $ref: '#/components/schemas/PermissionModeArbitrationRow' }
|
|
12532
|
+
description: >-
|
|
12533
|
+
server >= 7.156.0 (per caller) — what this deployment turns each submitted permission-mode word into: one row per word, in `permissionModes` order,
|
|
12534
|
+
each the answer of the ONE admission judge the submit doors and the in-flight mode-switch door share. Unavailable ⇔ `deny` present or
|
|
12535
|
+
`admitted ≠ mode`; unknown ⇔ `admitted = mode`, no `deny` and `engine: "unknown"` (no row reads as "certainly runs as the word" today). Absent = an older server.
|
|
12536
|
+
permissionModeWhenUnset:
|
|
12537
|
+
oneOf:
|
|
12538
|
+
- $ref: '#/components/schemas/PermissionMode'
|
|
12539
|
+
- type: 'null'
|
|
12540
|
+
description: >-
|
|
12541
|
+
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):
|
|
12542
|
+
`plan` ⇔ operator `AUTONOMY=plan`; `auto` ⇔ an isolating sandbox lane ∧ `SANDBOX_DEFAULT_PERMISSION_MODE=auto` ∧ auto arms for this caller now;
|
|
12543
|
+
otherwise `null` (the submit door stamps no word). ABSENT = an older server, NOT `null`.
|
|
12544
|
+
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).' }
|
|
12545
|
+
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.' }
|
|
12546
|
+
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).' }
|
|
12547
|
+
InstructionFamilyCapability:
|
|
12548
|
+
type: object
|
|
12549
|
+
description: 'server >= 7.156.0 — `Capabilities.instructionFamily`: the four members are always present; sub-keys verbatim the engine''s declaration form.'
|
|
12550
|
+
additionalProperties: false
|
|
12551
|
+
required: [files, rulesDirs, alternate, includes]
|
|
12552
|
+
properties:
|
|
12553
|
+
files: { type: array, items: { type: string }, description: 'The file names each layer reads (relative, `/`-separated; declaration order = read order).' }
|
|
12554
|
+
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).' }
|
|
12555
|
+
alternate:
|
|
12556
|
+
type: object
|
|
12557
|
+
additionalProperties: false
|
|
12558
|
+
required: [files, when]
|
|
12559
|
+
properties:
|
|
12560
|
+
files: { type: array, items: { type: string } }
|
|
12561
|
+
when: { type: string, enum: [absent, also], description: '`absent` = read only when no main-family name member exists under the task root; `also` = read both.' }
|
|
12562
|
+
includes: { type: boolean, description: 'Whether `@path` includes inside instruction files are followed (only targets inside the root).' }
|
|
12563
|
+
PermissionModeArbitrationRow:
|
|
12564
|
+
type: object
|
|
12565
|
+
description: 'server >= 7.156.0 — one row of `Capabilities.permissionModeArbitration` (the admission judge''s answer for one mode word, projected verbatim).'
|
|
12566
|
+
additionalProperties: false
|
|
12567
|
+
required: [mode, admitted, engine]
|
|
12568
|
+
properties:
|
|
12569
|
+
mode: { $ref: '#/components/schemas/PermissionMode' }
|
|
12570
|
+
admitted: { $ref: '#/components/schemas/PermissionMode' }
|
|
12571
|
+
foldedBy:
|
|
12572
|
+
allOf: [{ $ref: '#/components/schemas/PermissionModeAdmissionFold' }]
|
|
12573
|
+
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).'
|
|
12574
|
+
engine: { type: string, enum: [unknown], description: 'The engine-side fold reading; today always `unknown` (the service cannot read the engine''s fold).' }
|
|
12575
|
+
deny: { $ref: '#/components/schemas/PermissionModeDeny' }
|
|
12576
|
+
PermissionModeDeny:
|
|
12577
|
+
type: object
|
|
12578
|
+
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).'
|
|
12579
|
+
additionalProperties: false
|
|
12580
|
+
required: [bit]
|
|
12581
|
+
properties:
|
|
12582
|
+
bit: { type: string, enum: [bypassPermissions, autoMode] }
|
|
12583
|
+
source: { type: string, enum: [org, local, settings], description: 'The auto deny bit''s source (engine `AUTO_MODE_DENY_SOURCES`); absent on bypass rows.' }
|
|
12584
|
+
refusedBy: { type: string, enum: [center.autoMode], description: 'When the center itself refused auto: which entitlement key (same word set as `permissionModeAuto.refusedBy`).' }
|
|
12585
|
+
fault: { type: boolean, enum: [true], description: 'The caps read threw this time; read as denied (then `source` / `refusedBy` are absent).' }
|
|
12274
12586
|
GateEchoedLiteral:
|
|
12275
12587
|
type: object
|
|
12276
12588
|
additionalProperties: false
|
|
@@ -12318,6 +12630,38 @@ components:
|
|
|
12318
12630
|
properties:
|
|
12319
12631
|
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
12632
|
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.' }
|
|
12633
|
+
FastModeReading:
|
|
12634
|
+
type: object
|
|
12635
|
+
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`.'
|
|
12636
|
+
additionalProperties: false
|
|
12637
|
+
required: [state]
|
|
12638
|
+
properties:
|
|
12639
|
+
state: { type: string, enum: ['off', cooldown, 'on'] }
|
|
12640
|
+
reason: { type: string, enum: [not_first_party, model_not_allowed, unknown, preference, extra_usage_disabled] }
|
|
12641
|
+
cooldown:
|
|
12642
|
+
type: object
|
|
12643
|
+
additionalProperties: false
|
|
12644
|
+
required: [until, reason]
|
|
12645
|
+
properties:
|
|
12646
|
+
until: { type: number, description: 'epoch ms' }
|
|
12647
|
+
reason: { type: string, enum: [rate_limit, overloaded] }
|
|
12648
|
+
ApprovalCardRedactedKey:
|
|
12649
|
+
type: string
|
|
12650
|
+
enum: [args]
|
|
12651
|
+
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.'
|
|
12652
|
+
ParkedRowRedactedKey:
|
|
12653
|
+
type: string
|
|
12654
|
+
enum: [input]
|
|
12655
|
+
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.'
|
|
12656
|
+
StuckCardWord:
|
|
12657
|
+
type: string
|
|
12658
|
+
enum: [row, resume_input_absent, gate_unlisted]
|
|
12659
|
+
description: >-
|
|
12660
|
+
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,
|
|
12661
|
+
the inbox row, the per-ask read's parked arm, the decision-family refusal bodies): `row` = the engine row judge reads it not ok;
|
|
12662
|
+
`resume_input_absent` = judged ok, but the task-level decision leg's resume context is missing and no parked background / workflow lane owns it;
|
|
12663
|
+
`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.
|
|
12664
|
+
|
|
12321
12665
|
ApprovalWayOut:
|
|
12322
12666
|
type: string
|
|
12323
12667
|
enum: [cancel_run, void_card, newer_worker]
|
|
@@ -12337,7 +12681,120 @@ components:
|
|
|
12337
12681
|
declared: { type: string, description: 'The caller''s own string (`additionalDirectories` / `additionalReadDirectories` entry), byte-identical to the request.' }
|
|
12338
12682
|
access: { type: string, description: '`read` (from `additionalReadDirectories`) | `write` (from `additionalDirectories`); engine closed set, passed through - keep a default arm.' }
|
|
12339
12683
|
at: { type: string, description: 'Where it landed after the engine canonicalized it.' }
|
|
12340
|
-
tree: { type: string, description: 'Present iff the
|
|
12684
|
+
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.' }
|
|
12685
|
+
SessionCheckoutRoot:
|
|
12686
|
+
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).'
|
|
12687
|
+
oneOf:
|
|
12688
|
+
- { type: string, enum: [taskRoot] }
|
|
12689
|
+
- type: object
|
|
12690
|
+
additionalProperties: false
|
|
12691
|
+
required: [directory]
|
|
12692
|
+
properties:
|
|
12693
|
+
directory: { type: string, minLength: 1 }
|
|
12694
|
+
SessionCheckoutSource:
|
|
12695
|
+
type: object
|
|
12696
|
+
additionalProperties: false
|
|
12697
|
+
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.'
|
|
12698
|
+
required: [remote, sha]
|
|
12699
|
+
properties:
|
|
12700
|
+
remote: { type: string, minLength: 1 }
|
|
12701
|
+
sha: { type: string, minLength: 1 }
|
|
12702
|
+
ref: { type: string }
|
|
12703
|
+
SessionCheckoutEntry:
|
|
12704
|
+
type: object
|
|
12705
|
+
additionalProperties: false
|
|
12706
|
+
description: >-
|
|
12707
|
+
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
|
|
12708
|
+
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
|
|
12709
|
+
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.
|
|
12710
|
+
required: [repository, root, baseSha]
|
|
12711
|
+
properties:
|
|
12712
|
+
repository: { type: string, minLength: 1 }
|
|
12713
|
+
root: { $ref: '#/components/schemas/SessionCheckoutRoot' }
|
|
12714
|
+
baseSha: { type: string, minLength: 1 }
|
|
12715
|
+
dir: { type: string, minLength: 1, description: 'The session''s own tree of this repository (with `name` / `branch` / `baseRef`).' }
|
|
12716
|
+
name: { type: string, minLength: 1 }
|
|
12717
|
+
branch: { type: string, minLength: 1 }
|
|
12718
|
+
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`).' }
|
|
12719
|
+
source: { $ref: '#/components/schemas/SessionCheckoutSource' }
|
|
12720
|
+
SessionCheckoutDeclarationSource:
|
|
12721
|
+
type: object
|
|
12722
|
+
additionalProperties: false
|
|
12723
|
+
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.'
|
|
12724
|
+
required: [root, remote, sha]
|
|
12725
|
+
properties:
|
|
12726
|
+
root: { $ref: '#/components/schemas/SessionCheckoutRoot' }
|
|
12727
|
+
remote: { type: string, minLength: 1 }
|
|
12728
|
+
sha: { type: string, minLength: 1 }
|
|
12729
|
+
ref: { type: string }
|
|
12730
|
+
SessionCheckoutDeclaration:
|
|
12731
|
+
type: object
|
|
12732
|
+
additionalProperties: false
|
|
12733
|
+
description: >-
|
|
12734
|
+
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
|
|
12735
|
+
`workspace` on every later leg. Every member is optional.
|
|
12736
|
+
properties:
|
|
12737
|
+
isolation: { type: string, enum: [worktree] }
|
|
12738
|
+
baseRef: { type: string, enum: [fresh, head] }
|
|
12739
|
+
name: { type: string, minLength: 1 }
|
|
12740
|
+
roots:
|
|
12741
|
+
type: array
|
|
12742
|
+
items: { $ref: '#/components/schemas/SessionCheckoutRoot' }
|
|
12743
|
+
sources:
|
|
12744
|
+
type: array
|
|
12745
|
+
items: { $ref: '#/components/schemas/SessionCheckoutDeclarationSource' }
|
|
12746
|
+
SessionCheckoutTree:
|
|
12747
|
+
type: object
|
|
12748
|
+
additionalProperties: true
|
|
12749
|
+
description: >-
|
|
12750
|
+
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
|
|
12751
|
+
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).
|
|
12752
|
+
required: [path, removed]
|
|
12753
|
+
properties:
|
|
12754
|
+
path: { type: string, description: 'The tree''s directory as the engine named it.' }
|
|
12755
|
+
removed: { type: boolean, description: 'true = the tree was removed; false = it stays on disk (then `kept` says why).' }
|
|
12756
|
+
kept:
|
|
12757
|
+
type: string
|
|
12758
|
+
enum: [dirty, ignored, commits, unverifiable, requested, not_owned]
|
|
12759
|
+
description: >-
|
|
12760
|
+
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
|
|
12761
|
+
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
|
|
12762
|
+
(this service never asks; the word is in the set and does not occur today).
|
|
12763
|
+
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).' }
|
|
12764
|
+
detail: { type: string, description: 'Present iff the engine gave a sentence for this tree (human text, not a branch point).' }
|
|
12765
|
+
SessionCheckoutReceipt:
|
|
12766
|
+
description: >-
|
|
12767
|
+
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
|
|
12768
|
+
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),
|
|
12769
|
+
`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
|
|
12770
|
+
reports, it never blocks the delete. Every arm is open on purpose (the server may add keys without a version word).
|
|
12771
|
+
oneOf:
|
|
12772
|
+
- type: object
|
|
12773
|
+
additionalProperties: true
|
|
12774
|
+
required: [outcome, trees]
|
|
12775
|
+
properties:
|
|
12776
|
+
outcome: { type: string, enum: [released] }
|
|
12777
|
+
trees:
|
|
12778
|
+
type: array
|
|
12779
|
+
items: { $ref: '#/components/schemas/SessionCheckoutTree' }
|
|
12780
|
+
description: 'One row per tree the engine''s release door judged, `[]` when the session had none.'
|
|
12781
|
+
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.' }
|
|
12782
|
+
- type: object
|
|
12783
|
+
additionalProperties: true
|
|
12784
|
+
required: [outcome, reason]
|
|
12785
|
+
properties:
|
|
12786
|
+
outcome: { type: string, enum: [not_attempted] }
|
|
12787
|
+
reason:
|
|
12788
|
+
type: string
|
|
12789
|
+
enum: [retained_process, background_reap_failed, session_unopenable]
|
|
12790
|
+
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.'
|
|
12791
|
+
- type: object
|
|
12792
|
+
additionalProperties: true
|
|
12793
|
+
required: [outcome, code, message]
|
|
12794
|
+
properties:
|
|
12795
|
+
outcome: { type: string, enum: [failed] }
|
|
12796
|
+
code: { type: [string, 'null'], description: 'The engine''s code verbatim, `null` when it gave none.' }
|
|
12797
|
+
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
12798
|
WiringManifestAsk:
|
|
12342
12799
|
type: object
|
|
12343
12800
|
additionalProperties: false
|
|
@@ -13737,6 +14194,9 @@ components:
|
|
|
13737
14194
|
items: { type: string }
|
|
13738
14195
|
description: 'E7 (SHIPPED) — the /effort picker default set (minimal/low/medium/high); present ONLY for a reasoning model.'
|
|
13739
14196
|
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.' }
|
|
14197
|
+
fastMode:
|
|
14198
|
+
$ref: '#/components/schemas/FastModeReading'
|
|
14199
|
+
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
14200
|
routePairing:
|
|
13741
14201
|
$ref: '#/components/schemas/RoutePairingStatus'
|
|
13742
14202
|
description: >-
|
|
@@ -13781,6 +14241,7 @@ components:
|
|
|
13781
14241
|
required: [handover]
|
|
13782
14242
|
properties:
|
|
13783
14243
|
handover: { type: boolean }
|
|
14244
|
+
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
14245
|
|
|
13785
14246
|
ProjectContextItem:
|
|
13786
14247
|
type: object
|
|
@@ -14466,7 +14927,7 @@ components:
|
|
|
14466
14927
|
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
14928
|
`spentTokens + unsettledTokens - budgetTokens`; a run whose overshoot rests ENTIRELY on `unsettledTokens` is a best-effort disclosure, not a measurement ("this run appears to
|
|
14468
14929
|
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
|
-
|
|
14930
|
+
Since server >= 7.148.0 the detail face (`GET /v1/workflows/:id`) answers the same key (`WorkflowRun.budgetOvershoot`) in the same shape.
|
|
14470
14931
|
required: [budgetTokens, spentTokens]
|
|
14471
14932
|
additionalProperties: false
|
|
14472
14933
|
properties:
|
|
@@ -14482,7 +14943,7 @@ components:
|
|
|
14482
14943
|
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
14944
|
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
14945
|
(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
|
-
|
|
14946
|
+
Since server >= 7.148.0 the detail face (`GET /v1/workflows/:id`) answers the same key (`WorkflowRun.timeoutInterruption`) in the same shape.
|
|
14486
14947
|
required: [timeoutMs, agentsCompleted, agentsFailed, agentsInFlight]
|
|
14487
14948
|
additionalProperties: false
|
|
14488
14949
|
properties:
|
|
@@ -14661,8 +15122,21 @@ components:
|
|
|
14661
15122
|
description: { type: string, description: "The workflow script's declared `meta.description` (redacted, one-liner)." }
|
|
14662
15123
|
status: { $ref: '#/components/schemas/WorkflowRunStatus' }
|
|
14663
15124
|
agentFailures: { type: integer, description: 'run-level count of agents whose status ended failed — stamped at run end, only when > 0.' }
|
|
15125
|
+
budgetOvershoot:
|
|
15126
|
+
allOf: [{ $ref: '#/components/schemas/WorkflowBudgetOvershoot' }]
|
|
15127
|
+
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.)'
|
|
15128
|
+
timeoutInterruption:
|
|
15129
|
+
allOf: [{ $ref: '#/components/schemas/WorkflowTimeoutInterruption' }]
|
|
15130
|
+
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
15131
|
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
15132
|
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.)' }
|
|
15133
|
+
recordArtifact:
|
|
15134
|
+
allOf: [{ $ref: '#/components/schemas/WorkflowRecordArtifact' }]
|
|
15135
|
+
description: >-
|
|
15136
|
+
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
|
|
15137
|
+
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
|
|
15138
|
+
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
|
|
15139
|
+
that did not land all leave it absent.
|
|
14666
15140
|
stats: { $ref: '#/components/schemas/WorkflowRunStats' }
|
|
14667
15141
|
startedAt: { type: integer }
|
|
14668
15142
|
endedAt: { type: integer }
|
|
@@ -14734,6 +15208,27 @@ components:
|
|
|
14734
15208
|
word-for-word the same rank as `parks`). It does NOT fold into the absence of `parks`, which has
|
|
14735
15209
|
its own two meanings (above).
|
|
14736
15210
|
|
|
15211
|
+
WorkflowRecordArtifact:
|
|
15212
|
+
description: >-
|
|
15213
|
+
server >= 7.154.0 (engine 7.68.0) — `WorkflowRun.recordArtifact`, three shapes (the engine's closed set; a value outside them reads as absent):
|
|
15214
|
+
`{ 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,
|
|
15215
|
+
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
|
|
15216
|
+
record is still readable: a result store whose retention is shorter than the run record's answers a later read as expired.
|
|
15217
|
+
`{ 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.
|
|
15218
|
+
`{ kind: no_store }` = the run started with no result store: no `ref`.
|
|
15219
|
+
oneOf:
|
|
15220
|
+
- type: object
|
|
15221
|
+
additionalProperties: false
|
|
15222
|
+
required: [kind, ref]
|
|
15223
|
+
properties:
|
|
15224
|
+
kind: { type: string, enum: [stored] }
|
|
15225
|
+
ref: { type: string, description: 'The key `ReadToolResult` reads the whole record back with.' }
|
|
15226
|
+
- type: object
|
|
15227
|
+
additionalProperties: false
|
|
15228
|
+
required: [kind]
|
|
15229
|
+
properties:
|
|
15230
|
+
kind: { type: string, enum: [unconfirmed, no_store] }
|
|
15231
|
+
|
|
14737
15232
|
WorkflowRunPark:
|
|
14738
15233
|
# sdk 9.5.0:具名行形(同 `WiringManifestMcpEntry` 的裁定),并且**封闭** —— 服务端逐键挑出这四位,
|
|
14739
15234
|
# 多出来的键意味着有人在别处手拼了第二份形(凭据位就是这样漏出去的)。
|
|
@@ -15052,6 +15547,7 @@ components:
|
|
|
15052
15547
|
additionalProperties: true
|
|
15053
15548
|
properties:
|
|
15054
15549
|
id: { type: string, description: 'Stable identity (durable runId/taskId; subagent child = "<runId> <taskId>"). Update/remove by this.' }
|
|
15550
|
+
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
15551
|
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
15552
|
name: { type: string }
|
|
15057
15553
|
description: { type: string }
|
|
@@ -15097,6 +15593,7 @@ components:
|
|
|
15097
15593
|
turns: { type: integer }
|
|
15098
15594
|
costMicroUsd: { type: integer }
|
|
15099
15595
|
resumable: { type: boolean }
|
|
15596
|
+
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
15597
|
editedFiles:
|
|
15101
15598
|
type: array
|
|
15102
15599
|
items:
|
|
@@ -15166,6 +15663,7 @@ components:
|
|
|
15166
15663
|
# 按它 codegen 的第三方会得到一个永远 undefined 的 `workflowRow.sourceLane`,并照 FleetTaskRow 那条
|
|
15167
15664
|
# 「run-leg composite rows only」的描述写出一个**永不触发**的 workflow 行去重分支。
|
|
15168
15665
|
id: { type: string }
|
|
15666
|
+
unattributed: { const: true, description: 'server >= 7.156.0 — same as `FleetTaskRow.unattributed` (only `true`): this row was projected through the `?session=` demotion.' }
|
|
15169
15667
|
name: { type: string }
|
|
15170
15668
|
description: { type: string }
|
|
15171
15669
|
status: { type: string, description: 'Neutral workflow run status (running|completed|failed; open).' }
|
|
@@ -15332,6 +15830,7 @@ components:
|
|
|
15332
15830
|
parentTaskId: { type: string }
|
|
15333
15831
|
stoppedBy: { type: string, description: 'Verbatim open enum (who/what stopped a killed child).' }
|
|
15334
15832
|
resumable: { type: boolean }
|
|
15833
|
+
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
15834
|
recentSteps:
|
|
15336
15835
|
type: array
|
|
15337
15836
|
items:
|
|
@@ -15574,6 +16073,7 @@ components:
|
|
|
15574
16073
|
ts: { type: number, description: 'Registration time (ms epoch).' }
|
|
15575
16074
|
expiresAtMs: { type: number, description: 'Absolute window deadline — the SAME number minted once for the tool_approval frame (never recomputed).' }
|
|
15576
16075
|
sessionId: { type: string }
|
|
16076
|
+
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
16077
|
requiresRealApproval: { type: boolean, enum: [true] }
|
|
15578
16078
|
deploymentListQuestion:
|
|
15579
16079
|
type: boolean
|
|
@@ -15763,7 +16263,8 @@ components:
|
|
|
15763
16263
|
Both say only what held when the answer was given; neither means the gate is resolved.
|
|
15764
16264
|
A FOURTH shape, the #368 IDEMPOTENT REPLAY (server >= 7.4x; declared 2026-09-08 — it shipped without
|
|
15765
16265
|
ever reaching this schema): `{sessionId, idempotent:true, decision, bindingEnforced:true,
|
|
15766
|
-
executionOutcome?}` — it carries NO `status` and NO `taskId` (nothing was accepted this time).
|
|
16266
|
+
executionOutcome?}` — it carries NO `status` and NO `taskId` (nothing was accepted this time). Its named schema is
|
|
16267
|
+
`DecisionReplayReceipt` (the plan-review door's replay is the same mint). So no key
|
|
15767
16268
|
is guaranteed by all four shapes; discriminate: `idempotent` -> replay; otherwise `decision` present ->
|
|
15768
16269
|
parked receipt (`ParkedDecideAccepted`, four arms, read `status`: `resuming` / `failed` / `recorded` / `delivered`);
|
|
15769
16270
|
no `decision` -> task-level acceptance / terminal. (The older reading "`decision` without `sessionId`" fails on
|
|
@@ -15872,6 +16373,13 @@ components:
|
|
|
15872
16373
|
persistedRule: { type: string, description: 'server >= 7.152.0: free-text arm only — the canonical spelling written.' }
|
|
15873
16374
|
persistedRules: { type: array, items: { type: string }, description: 'server >= 7.152.0: batch arm only — the canonical texts of every member written.' }
|
|
15874
16375
|
persistedRuleAnchors: { type: array, items: { $ref: '#/components/schemas/PersistedRuleAnchor' }, description: 'server >= 7.152.0: index-aligned with `persistedRules`.' }
|
|
16376
|
+
turnRefused:
|
|
16377
|
+
type: object
|
|
16378
|
+
additionalProperties: true
|
|
16379
|
+
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.'
|
|
16380
|
+
properties:
|
|
16381
|
+
errorCode: { type: string }
|
|
16382
|
+
error: { type: string }
|
|
15875
16383
|
|
|
15876
16384
|
ApprovalExemption:
|
|
15877
16385
|
type: object
|
|
@@ -16003,6 +16511,16 @@ components:
|
|
|
16003
16511
|
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
16512
|
wayOut:
|
|
16005
16513
|
$ref: '#/components/schemas/ApprovalWayOut'
|
|
16514
|
+
stuck:
|
|
16515
|
+
allOf: [{ $ref: '#/components/schemas/StuckCardWord' }]
|
|
16516
|
+
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.'
|
|
16517
|
+
redactedKeys:
|
|
16518
|
+
type: array
|
|
16519
|
+
items: { $ref: '#/components/schemas/ParkedRowRedactedKey' }
|
|
16520
|
+
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.'
|
|
16521
|
+
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).' }
|
|
16522
|
+
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.' }
|
|
16523
|
+
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
16524
|
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
16525
|
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
16526
|
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 +16553,12 @@ components:
|
|
|
16035
16553
|
🔴 OPEN SET — deliberately NOT an enum: observed values include `human`, `irreversible_ask`,
|
|
16036
16554
|
`plan_review`, `needs_review`, `resource_limit`, and core keeps adding. Pinning an enum would make a
|
|
16037
16555
|
new gate kind "not exist" for generated clients.
|
|
16038
|
-
🔴
|
|
16039
|
-
|
|
16040
|
-
`
|
|
16041
|
-
|
|
16042
|
-
|
|
16556
|
+
🔴 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
|
|
16557
|
+
projects, else the store's own cell — and a row whose kind is not one this release registers is LISTED without this key, carrying
|
|
16558
|
+
`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
|
|
16559
|
+
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`,
|
|
16560
|
+
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
|
|
16561
|
+
an absent key is "unreadable — fail closed": never assume `human`, never route it. Not in `required`.
|
|
16043
16562
|
input:
|
|
16044
16563
|
description: >
|
|
16045
16564
|
The pending tool call's args (post-hook), REDACTED + size-bounded — for a tool gate the write
|
|
@@ -16265,6 +16784,12 @@ components:
|
|
|
16265
16784
|
wayOut:
|
|
16266
16785
|
allOf: [{ $ref: '#/components/schemas/ApprovalWayOut' }]
|
|
16267
16786
|
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.'
|
|
16787
|
+
stuck:
|
|
16788
|
+
allOf: [{ $ref: '#/components/schemas/StuckCardWord' }]
|
|
16789
|
+
description: 'server >= 7.156.0 — the same reader and projection as `PendingCheckpoint.stuck`.'
|
|
16790
|
+
workflowRunId: { type: string, description: 'server >= 7.156.0 — the same reader and value as `PendingCheckpoint.workflowRunId`.' }
|
|
16791
|
+
workflowAgentLabel: { type: string, description: 'server >= 7.156.0 — as `PendingCheckpoint.workflowAgentLabel` (UNTRUSTED display text).' }
|
|
16792
|
+
workflowStepAskedAgain: { type: boolean, enum: [true], description: 'server >= 7.156.0 — as `PendingCheckpoint.workflowStepAskedAgain`.' }
|
|
16268
16793
|
rowVerdict:
|
|
16269
16794
|
allOf: [{ $ref: '#/components/schemas/CheckpointRowVerdict' }]
|
|
16270
16795
|
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 +16931,6 @@ components:
|
|
|
16406
16931
|
key at its resource boundary (`resources/assistant.ts` `RawAssistantGate` + `normalizeGate()`), so a
|
|
16407
16932
|
TS consumer never observes the null. Both are correct for their layer — do NOT "fix" either to match
|
|
16408
16933
|
the other. A non-TS client generated from this file MUST tolerate the nulls itself.
|
|
16409
|
-
required: [kind]
|
|
16410
16934
|
additionalProperties: true
|
|
16411
16935
|
properties:
|
|
16412
16936
|
kind:
|
|
@@ -16415,6 +16939,11 @@ components:
|
|
|
16415
16939
|
Same open set as `CheckpointSummary.gateKind` — the FLATTENED projection of core's
|
|
16416
16940
|
`CheckpointGate`. (Nested-as-`gate` ⇒ the discriminator is named `kind`; flattened onto a row ⇒
|
|
16417
16941
|
`gateKind`. Same value domain, different position — a naming CONVENTION, not an inconsistency.)
|
|
16942
|
+
🔴 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
|
|
16943
|
+
`gate_kind` column is empty or not a kind this release registers) is LISTED — `gate` present, `kind` absent, `needsAttention: true`, no
|
|
16944
|
+
`stuck` here (read the inbox row or the operator queue row for why it is stuck). Same reading as an absent `PendingCheckpoint.gateKind`:
|
|
16945
|
+
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
|
|
16946
|
+
(that run read `gate: null`).
|
|
16418
16947
|
enum: [human, irreversible_ask, resource_limit, needs_review, plan_review, task_done]
|
|
16419
16948
|
x-open-enum: true # a future core kind must render generically, never crash — do not close this union
|
|
16420
16949
|
severity:
|
|
@@ -16544,6 +17073,30 @@ components:
|
|
|
16544
17073
|
meaningful. Emitted only when the store CONFIRMED the reopen — never inferred.
|
|
16545
17074
|
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
17075
|
|
|
17076
|
+
DecisionReplayReceipt:
|
|
17077
|
+
type: object
|
|
17078
|
+
description: >
|
|
17079
|
+
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
|
|
17080
|
+
mint serves two doors: the `POST /v1/approvals/{sessionId}/decide` replay (`decision` approve | deny; this key set is also the fourth shape
|
|
17081
|
+
`ApprovalDecisionResult` describes) and, server >= 7.156.0, the `POST /v1/assistant/tasks/{taskId}/plan_review` replay of a recorded `reject`
|
|
17082
|
+
(`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
|
|
17083
|
+
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
|
|
17084
|
+
condition — see the doors). `idempotent: true` is the discriminator.
|
|
17085
|
+
required: [sessionId, idempotent, decision, bindingEnforced]
|
|
17086
|
+
additionalProperties: false
|
|
17087
|
+
properties:
|
|
17088
|
+
sessionId: { type: string }
|
|
17089
|
+
idempotent: { type: boolean, enum: [true], description: 'The discriminator — always the literal true.' }
|
|
17090
|
+
decision:
|
|
17091
|
+
type: string
|
|
17092
|
+
enum: [approve, deny, reject]
|
|
17093
|
+
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.'
|
|
17094
|
+
bindingEnforced: { type: boolean, enum: [true] }
|
|
17095
|
+
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`.' }
|
|
17096
|
+
executionOutcome:
|
|
17097
|
+
$ref: '#/components/schemas/GateOutcome'
|
|
17098
|
+
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.'
|
|
17099
|
+
|
|
16547
17100
|
PlanReviewRequest:
|
|
16548
17101
|
type: object
|
|
16549
17102
|
description: >
|
|
@@ -17203,6 +17756,28 @@ components:
|
|
|
17203
17756
|
authorization:
|
|
17204
17757
|
allOf: [{ $ref: '#/components/schemas/McpAuthorization' }]
|
|
17205
17758
|
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.'
|
|
17759
|
+
prompts:
|
|
17760
|
+
allOf: [{ $ref: '#/components/schemas/McpHostReadAnswer' }]
|
|
17761
|
+
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.'
|
|
17762
|
+
resources:
|
|
17763
|
+
allOf: [{ $ref: '#/components/schemas/McpHostReadAnswer' }]
|
|
17764
|
+
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`.'
|
|
17765
|
+
resourceTemplates:
|
|
17766
|
+
allOf: [{ $ref: '#/components/schemas/McpHostReadAnswer' }]
|
|
17767
|
+
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`.'
|
|
17768
|
+
|
|
17769
|
+
McpHostReadAnswer:
|
|
17770
|
+
type: object
|
|
17771
|
+
additionalProperties: true
|
|
17772
|
+
description: >-
|
|
17773
|
+
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
|
|
17774
|
+
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` /
|
|
17775
|
+
`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
|
|
17776
|
+
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
|
|
17777
|
+
are read open.
|
|
17778
|
+
required: [outcome]
|
|
17779
|
+
properties:
|
|
17780
|
+
outcome: { type: string, description: '`read` | `refused` | `not_declared` (the engine''s closed set, one word per arm; read open).' }
|
|
17206
17781
|
|
|
17207
17782
|
McpStatusPanel:
|
|
17208
17783
|
type: object
|
|
@@ -17524,6 +18099,62 @@ components:
|
|
|
17524
18099
|
description: >-
|
|
17525
18100
|
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
18101
|
or an older server. Only ever on a `background_agent` row.
|
|
18102
|
+
ScheduledTaskSummary:
|
|
18103
|
+
type: object
|
|
18104
|
+
description: >
|
|
18105
|
+
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
|
|
18106
|
+
row key and forwards no key outside these seven).
|
|
18107
|
+
required: [id, when]
|
|
18108
|
+
additionalProperties: false
|
|
18109
|
+
properties:
|
|
18110
|
+
id: { type: string, description: 'The entry id (opaque to the caller); hand it back verbatim in the stop path.' }
|
|
18111
|
+
when: { type: string, description: 'Human-readable summary of the schedule (cron expression / at instant / delay seconds).' }
|
|
18112
|
+
label: { type: string }
|
|
18113
|
+
nextRunMs: { type: number, description: 'Next fire time, epoch ms (cron / at, when computable).' }
|
|
18114
|
+
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.' }
|
|
18115
|
+
lifetime: { type: string, enum: [durable, session], description: '`durable` = filed under the principal; `session` = a session-level entry. Absent = the backend did not say.' }
|
|
18116
|
+
recurring: { type: boolean, description: 'One-shot vs recurring (cron intents only); absent = not said or not a cron intent.' }
|
|
18117
|
+
|
|
18118
|
+
ScheduledTaskList:
|
|
18119
|
+
type: object
|
|
18120
|
+
description: 'server >= 7.156.0 — the 200 body of both scheduled-task list doors.'
|
|
18121
|
+
required: [rows, reach]
|
|
18122
|
+
additionalProperties: false
|
|
18123
|
+
properties:
|
|
18124
|
+
rows:
|
|
18125
|
+
type: array
|
|
18126
|
+
items: { $ref: '#/components/schemas/ScheduledTaskSummary' }
|
|
18127
|
+
reach: { allOf: [{ $ref: '#/components/schemas/ScheduledListReach' }], description: 'Which store this list read.' }
|
|
18128
|
+
|
|
18129
|
+
ScheduledListReach:
|
|
18130
|
+
type: string
|
|
18131
|
+
enum: [replica_store]
|
|
18132
|
+
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.'
|
|
18133
|
+
|
|
18134
|
+
ScheduledTaskCancelResult:
|
|
18135
|
+
type: object
|
|
18136
|
+
description: 'server >= 7.156.0 — the 200 body of both scheduled-task stop doors: the stopped entry''s id as the path named it.'
|
|
18137
|
+
required: [id]
|
|
18138
|
+
additionalProperties: false
|
|
18139
|
+
properties:
|
|
18140
|
+
id: { type: string }
|
|
18141
|
+
|
|
18142
|
+
WorktreeCapability:
|
|
18143
|
+
type: object
|
|
18144
|
+
description: 'server >= 7.156.0 — `GET /v1/worktree-capability` 200: the engine''s `WorktreeCapability`, four keys verbatim.'
|
|
18145
|
+
required: [worktreeCapable]
|
|
18146
|
+
additionalProperties: false
|
|
18147
|
+
properties:
|
|
18148
|
+
worktreeCapable: { type: boolean }
|
|
18149
|
+
gitRoot: { type: string, description: 'The repository root the managed parent hangs at (present once the location is known to be a repository).' }
|
|
18150
|
+
reason: { allOf: [{ $ref: '#/components/schemas/WorktreeIncapableReason' }], description: 'Why not (only when `worktreeCapable: false`).' }
|
|
18151
|
+
detail: { type: string, description: 'One human sentence for the refusal; absent when capable.' }
|
|
18152
|
+
|
|
18153
|
+
WorktreeIncapableReason:
|
|
18154
|
+
type: string
|
|
18155
|
+
enum: [name_invalid, git_unavailable, not_a_repository, bare_repository, no_commit, managed_parent_symlinked, parent_not_writable, name_in_use]
|
|
18156
|
+
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).'
|
|
18157
|
+
|
|
17527
18158
|
SessionBackgroundList:
|
|
17528
18159
|
type: object
|
|
17529
18160
|
description: '`GET /v1/sessions/{sessionId}/background` 200 body (contract §16). An idle session answers `{ rows: [] }`.'
|
|
@@ -17856,6 +18487,23 @@ components:
|
|
|
17856
18487
|
sends `code` yields `errorCode: undefined` and no typed subclass.
|
|
17857
18488
|
additionalProperties: true
|
|
17858
18489
|
properties:
|
|
18490
|
+
started:
|
|
18491
|
+
type: boolean
|
|
18492
|
+
enum: [false]
|
|
18493
|
+
description: >-
|
|
18494
|
+
server >= 7.156.0 — ONLY on the JSON refusal bodies of the three submit doors (`POST /v1/tasks`, `POST /v1/tasks/stream` before the
|
|
18495
|
+
stream opens, `POST /v1/runs`): `false` when the service can assert this attempt never started the engine. The ONLY value is `false`
|
|
18496
|
+
(`true` is never minted); ABSENT = UNKNOWN (after launch, on a same-key replay / in-flight follower, on any other route, on an older
|
|
18497
|
+
server). Never on an in-stream terminal frame. NOT a promise that a same-key resend executes — always send an `Idempotency-Key`.
|
|
18498
|
+
stuck:
|
|
18499
|
+
allOf: [{ $ref: '#/components/schemas/StuckCardWord' }]
|
|
18500
|
+
description: >-
|
|
18501
|
+
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`).
|
|
18502
|
+
On the decision-family resume refusals (`/decide` · `plan_review` · `assistant.resume` · `sessions.wake`) that are the row's own refusal it is
|
|
18503
|
+
always `row`; on `409 conflict.resume_context_unavailable`, the four wrong-door guards, `409 approval_stale` and `410 gone.ask_parked` it is one
|
|
18504
|
+
of the three words when the named card cannot take a decision — those refusals then also carry `wayOut` (the closed set `ApprovalWayOut`, see
|
|
18505
|
+
`ResumeLegConflictError.wayOut`) when the server can say a way out, and no longer point back at any decision door. Absent = an older server, or
|
|
18506
|
+
the card can take a decision. SDK `ResumeRefusalExtra.stuck`.
|
|
17859
18507
|
errorCode:
|
|
17860
18508
|
type: string
|
|
17861
18509
|
description: >
|
|
@@ -17920,6 +18568,14 @@ components:
|
|
|
17920
18568
|
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
18569
|
`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
18570
|
the answer of the exported `resendIsMeaningless`).
|
|
18571
|
+
One more 500, server code family `deterministic`: `internal.session_erase_incomplete` (server >= 7.156.0, `DELETE /v1/sessions/{sessionId}` on the local
|
|
18572
|
+
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
|
|
18573
|
+
`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
|
|
18574
|
+
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
|
|
18575
|
+
(idempotent). A `DELETE` is never auto-retried by the SDK either way — what changes is the answer of the exported `resendIsMeaningless`.
|
|
18576
|
+
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
|
|
18577
|
+
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
|
|
18578
|
+
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
18579
|
`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
18580
|
Every other 5xx code keeps the status-based retry.
|
|
17925
18581
|
🔴 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 +18821,8 @@ components:
|
|
|
18165
18821
|
(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
18822
|
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
18823
|
cell and decide again), a deployment-fact refusal, `POST /v1/sessions/{sessionId}/wake`. SDK: `err.extra.wayOut` (`ResumeRefusalExtra.wayOut`).
|
|
18824
|
+
server >= 7.156.0: the same word also rides `409 conflict.resume_context_unavailable`, the four wrong-door guards, `409 approval_stale` and
|
|
18825
|
+
`410 gone.ask_parked` when the card they name cannot take a decision, beside the reason word `stuck` (see `ErrorResponse.stuck`).
|
|
18168
18826
|
retriable:
|
|
18169
18827
|
type: boolean
|
|
18170
18828
|
enum: [true]
|
|
@@ -18286,6 +18944,8 @@ components:
|
|
|
18286
18944
|
# DURABLE-only per-call request reading `model_call_request` (the `GET /v1/runs/{taskId}/events` ledger replay only).
|
|
18287
18945
|
- $ref: '#/components/schemas/Event_prefix_changed'
|
|
18288
18946
|
- $ref: '#/components/schemas/Event_model_call_request'
|
|
18947
|
+
# server >= 7.156.0 (engine 7.69.0): the LIVE-ONLY hook review start / end frame `hook_progress` (capability bit `hookProgress`).
|
|
18948
|
+
- $ref: '#/components/schemas/Event_hook_progress'
|
|
18289
18949
|
discriminator:
|
|
18290
18950
|
propertyName: type
|
|
18291
18951
|
mapping:
|
|
@@ -18340,6 +19000,7 @@ components:
|
|
|
18340
19000
|
tool_progress: '#/components/schemas/Event_tool_progress'
|
|
18341
19001
|
prefix_changed: '#/components/schemas/Event_prefix_changed'
|
|
18342
19002
|
model_call_request: '#/components/schemas/Event_model_call_request'
|
|
19003
|
+
hook_progress: '#/components/schemas/Event_hook_progress'
|
|
18343
19004
|
|
|
18344
19005
|
# design/99 §E2 (SHIPPED, core TaskEventIdentity) — additive per-event identity on every CONTENT event (NOT on
|
|
18345
19006
|
# the lifecycle arms turn_end/compacted/suspended/done/failed). eventId = uuidv7 dedup/resume handle (the durable
|
|
@@ -18364,13 +19025,23 @@ components:
|
|
|
18364
19025
|
condition: durable-ledger leg only (no ledger => neither header nor frame). sessionId rides along
|
|
18365
19026
|
(needed to bind subsequent turns when the server minted a fresh session). Always precedes any content
|
|
18366
19027
|
frame. NOT an engine event — server-minted, no EventIdentity.
|
|
18367
|
-
# 封闭:铸造点 routes/tasks.ts 是逐字写死的三键字面量(sessionId 条件在场);server >= 7.133.0 起第四个条件键 `warnings`(有才发)。
|
|
19028
|
+
# 封闭:铸造点 routes/tasks.ts 是逐字写死的三键字面量(sessionId 条件在场);server >= 7.133.0 起第四个条件键 `warnings`(有才发);server >= 7.156.0 起第五个条件键 `detachAccepted`(有才发)。
|
|
18368
19029
|
additionalProperties: false
|
|
18369
19030
|
required: [type, taskId]
|
|
18370
19031
|
properties:
|
|
18371
19032
|
type: { const: meta }
|
|
18372
19033
|
taskId: { type: string }
|
|
18373
19034
|
sessionId: { type: string }
|
|
19035
|
+
detachAccepted:
|
|
19036
|
+
const: true
|
|
19037
|
+
description: >-
|
|
19038
|
+
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
|
|
19039
|
+
`true`, passed the entry replay checks, the server armed the disconnect arm and row creation did not answer "this submission does not run" — from
|
|
19040
|
+
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
|
|
19041
|
+
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
|
|
19042
|
+
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
|
|
19043
|
+
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
|
|
19044
|
+
stream's `meta`; the resume faces (`GET /v1/runs/{taskId}/events`) do not carry it.
|
|
18374
19045
|
warnings:
|
|
18375
19046
|
type: array
|
|
18376
19047
|
items: { $ref: '#/components/schemas/EntryProblem' }
|
|
@@ -19145,6 +19816,31 @@ components:
|
|
|
19145
19816
|
type: array
|
|
19146
19817
|
items: { $ref: '#/components/schemas/McpProbeFaceRow' }
|
|
19147
19818
|
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).'
|
|
19819
|
+
droppedEntries:
|
|
19820
|
+
type: array
|
|
19821
|
+
items: { $ref: '#/components/schemas/McpDroppedEntry' }
|
|
19822
|
+
description: >-
|
|
19823
|
+
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);
|
|
19824
|
+
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
|
|
19825
|
+
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.
|
|
19826
|
+
|
|
19827
|
+
McpDroppedReasonCode:
|
|
19828
|
+
type: string
|
|
19829
|
+
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]
|
|
19830
|
+
description: >-
|
|
19831
|
+
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
|
|
19832
|
+
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
|
|
19833
|
+
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),
|
|
19834
|
+
`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
|
|
19835
|
+
`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).
|
|
19836
|
+
McpDroppedEntry:
|
|
19837
|
+
type: object
|
|
19838
|
+
additionalProperties: true
|
|
19839
|
+
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.'
|
|
19840
|
+
required: [reasonCode]
|
|
19841
|
+
properties:
|
|
19842
|
+
name: { type: string }
|
|
19843
|
+
reasonCode: { $ref: '#/components/schemas/McpDroppedReasonCode' }
|
|
19148
19844
|
|
|
19149
19845
|
McpLivenessState:
|
|
19150
19846
|
type: string
|
|
@@ -19248,6 +19944,18 @@ components:
|
|
|
19248
19944
|
description: >-
|
|
19249
19945
|
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
19946
|
Replay reads the ledger's copy. Read this instead of comparing redaction marker literals.
|
|
19947
|
+
cardRedactedKeys:
|
|
19948
|
+
type: array
|
|
19949
|
+
uniqueItems: true
|
|
19950
|
+
items: { type: string }
|
|
19951
|
+
description: >-
|
|
19952
|
+
server >= 7.156.0 (MINTED BY THIS SERVER): the members of the CARD (`structured`; `structuredSkeleton` when the card did not ride) whose bytes the
|
|
19953
|
+
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).
|
|
19954
|
+
OPEN set of member names (they depend on the tool card: `originalFile`, `edits`, `content` ...), names only, no values, no duplicates. Absence law: a
|
|
19955
|
+
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);
|
|
19956
|
+
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
|
|
19957
|
+
literals. Live stream · ledger row (minted before the write, replayed verbatim) · turns / trace replay blocks carry the same value; the session
|
|
19958
|
+
view's `toolResult` rows carry the same-named key describing that row's `details`.
|
|
19251
19959
|
toolCallId: { type: string }
|
|
19252
19960
|
toolName: { type: string }
|
|
19253
19961
|
requestedBy:
|
|
@@ -19441,6 +20149,7 @@ components:
|
|
|
19441
20149
|
# `usageMissing` 缺了,「没有 usage」会被读成「用量是 0」而不是「未知」。
|
|
19442
20150
|
usageMissing: { const: true, description: '本轮用量不可信/缺失的诚实标记。缺席 ⇒ usage 可信。' }
|
|
19443
20151
|
stopReason: { type: string, description: '这一轮为什么停(max_tokens / stop_sequence / …),core 原词。' }
|
|
20152
|
+
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
20153
|
eventId: { type: string }
|
|
19445
20154
|
parentToolCallId: { type: string }
|
|
19446
20155
|
sourceTaskId: { type: string }
|
|
@@ -19660,6 +20369,7 @@ components:
|
|
|
19660
20369
|
durationMs: { type: integer }
|
|
19661
20370
|
status: { type: string, description: 'running 为主;core [1414]#3 的 settle 终态 tick 亦可为 completed/failed(开集,按未知值兜底渲染)。' }
|
|
19662
20371
|
name: { type: string, description: '子代的人类展示名(UNTRUSTED,已 redactSecrets)。缺席 ⇒ 无名,别回退到 objective。' }
|
|
20372
|
+
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
20373
|
model:
|
|
19664
20374
|
type: string
|
|
19665
20375
|
description: >-
|
|
@@ -19790,6 +20500,9 @@ components:
|
|
|
19790
20500
|
required: [type]
|
|
19791
20501
|
properties:
|
|
19792
20502
|
type: { const: wiring_manifest }
|
|
20503
|
+
fastMode:
|
|
20504
|
+
allOf: [{ $ref: '#/components/schemas/FastModeReading' }]
|
|
20505
|
+
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
20506
|
declaredPlaces:
|
|
19794
20507
|
allOf: [{ $ref: '#/components/schemas/WiringManifestDeclaredPlaces' }]
|
|
19795
20508
|
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 +20526,20 @@ components:
|
|
|
19813
20526
|
leg:
|
|
19814
20527
|
type: object
|
|
19815
20528
|
additionalProperties: false
|
|
19816
|
-
properties:
|
|
20529
|
+
properties:
|
|
20530
|
+
kind: { type: string, description: 'root | child | resume. Open on read.' }
|
|
20531
|
+
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.' }
|
|
20532
|
+
teamRole:
|
|
20533
|
+
type: string
|
|
20534
|
+
description: >-
|
|
20535
|
+
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
|
|
20536
|
+
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
|
|
20537
|
+
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.
|
|
20538
|
+
hands:
|
|
20539
|
+
allOf: [{ $ref: '#/components/schemas/WiringManifestHands' }]
|
|
20540
|
+
description: >-
|
|
20541
|
+
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
|
|
20542
|
+
external derivation, not "no hands". `mounted: true` is not "a shell is reachable" (a stub environment or an excluded Bash also reads true).
|
|
19817
20543
|
sessionRules:
|
|
19818
20544
|
type: object
|
|
19819
20545
|
additionalProperties: false
|
|
@@ -19964,6 +20690,7 @@ components:
|
|
|
19964
20690
|
properties:
|
|
19965
20691
|
armed: { type: boolean }
|
|
19966
20692
|
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.' }
|
|
20693
|
+
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
20694
|
mcp:
|
|
19968
20695
|
type: array
|
|
19969
20696
|
description: >
|
|
@@ -20223,6 +20950,48 @@ components:
|
|
|
20223
20950
|
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
20951
|
eventId: { type: string }
|
|
20225
20952
|
parentToolCallId: { type: string }
|
|
20953
|
+
Event_hook_progress:
|
|
20954
|
+
description: >
|
|
20955
|
+
A HOOK REVIEW's start / end (server >= 7.156.0 / engine 7.69.0; capability bit `hookProgress`). LIVE ONLY: never on
|
|
20956
|
+
`GET /v1/runs/{id}/events`, never replayed on reconnect, and not on the sync leg's child-forwarding channel or the per-child tail.
|
|
20957
|
+
A review that holds its subject past one interval (one second) ⇒ one `phase: start`; the review ending (answered / refused /
|
|
20958
|
+
handler failure or budget spent / cancelled / leg over) ⇒ one `phase: end`. One review = one pair, paired by `screen` only.
|
|
20959
|
+
🔴 THE FRAME'S ABSENCE IS NEVER EVIDENCE: a review that finishes inside one interval emits none. No hook name, budget, duration
|
|
20960
|
+
or verdict rides (a call's verdict is its `tool_end.gate`). Two arms by `event`: a call review (`classic.PreToolUse`,
|
|
20961
|
+
`toolCallId` joins the call's own frames) and an input review (`classic.UserPromptSubmit`, `source` = the entry word, read open;
|
|
20962
|
+
`inputId` only when the entry has one). The server drops the whole frame when `phase` / `screen` / the subject's join key cannot be read.
|
|
20963
|
+
oneOf:
|
|
20964
|
+
- type: object
|
|
20965
|
+
additionalProperties: false
|
|
20966
|
+
required: [type, phase, screen, event, toolCallId]
|
|
20967
|
+
properties:
|
|
20968
|
+
type: { const: hook_progress }
|
|
20969
|
+
phase: { type: string, enum: [start, end] }
|
|
20970
|
+
screen: { type: string, description: 'The review''s identity (an engine-minted opaque string); both frames of one review carry the same one.' }
|
|
20971
|
+
event: { const: classic.PreToolUse }
|
|
20972
|
+
toolCallId: { type: string, description: 'The reviewed call''s id — the same id as its `tool_start` / `tool_progress` / `tool_end`.' }
|
|
20973
|
+
eventId: { type: string }
|
|
20974
|
+
parentToolCallId: { type: string }
|
|
20975
|
+
sourceTaskId: { type: string }
|
|
20976
|
+
bgAgentId: { type: string }
|
|
20977
|
+
- type: object
|
|
20978
|
+
additionalProperties: false
|
|
20979
|
+
required: [type, phase, screen, event, source]
|
|
20980
|
+
properties:
|
|
20981
|
+
type: { const: hook_progress }
|
|
20982
|
+
phase: { type: string, enum: [start, end] }
|
|
20983
|
+
screen: { type: string }
|
|
20984
|
+
event: { const: classic.UserPromptSubmit }
|
|
20985
|
+
source:
|
|
20986
|
+
type: string
|
|
20987
|
+
description: >-
|
|
20988
|
+
The entry the reviewed input came through — engine words `objective` / `steer` / `resume_message` / `followUp` /
|
|
20989
|
+
`parked_redelivery` / `system`, read as an OPEN set.
|
|
20990
|
+
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.' }
|
|
20991
|
+
eventId: { type: string }
|
|
20992
|
+
parentToolCallId: { type: string }
|
|
20993
|
+
sourceTaskId: { type: string }
|
|
20994
|
+
bgAgentId: { type: string }
|
|
20226
20995
|
ToolRosterDelta:
|
|
20227
20996
|
type: object
|
|
20228
20997
|
description: >
|
|
@@ -20612,6 +21381,13 @@ components:
|
|
|
20612
21381
|
type: array
|
|
20613
21382
|
items: { $ref: '#/components/schemas/WorkspaceChangedDirectory' }
|
|
20614
21383
|
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".'
|
|
21384
|
+
session:
|
|
21385
|
+
type: array
|
|
21386
|
+
items: { $ref: '#/components/schemas/SessionCheckoutEntry' }
|
|
21387
|
+
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.'
|
|
21388
|
+
declaration:
|
|
21389
|
+
allOf: [{ $ref: '#/components/schemas/SessionCheckoutDeclaration' }]
|
|
21390
|
+
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
21391
|
eventId: { type: string }
|
|
20616
21392
|
parentToolCallId: { type: string }
|
|
20617
21393
|
sourceTaskId: { type: string }
|
|
@@ -20989,6 +21765,7 @@ components:
|
|
|
20989
21765
|
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
21766
|
`toolName` / `remedy` pass the egress seat. present-iff at least one was refused.
|
|
20991
21767
|
items: { $ref: '#/components/schemas/RefusedAsk' }
|
|
21768
|
+
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
21769
|
summary: { type: string, description: 'UNTRUSTED display text.' }
|
|
20993
21770
|
sessionId: { type: string }
|
|
20994
21771
|
toolUseId: { type: string }
|
|
@@ -21037,6 +21814,22 @@ components:
|
|
|
21037
21814
|
allOf: [{ $ref: '#/components/schemas/PayloadTruncated' }]
|
|
21038
21815
|
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
21816
|
resumable: { type: boolean }
|
|
21817
|
+
resumableUntil:
|
|
21818
|
+
type: number
|
|
21819
|
+
description: >-
|
|
21820
|
+
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
|
|
21821
|
+
recomputed. An UPPER BOUND, not a remaining time (the retention ledger's capacity, session reclaim or the parent run ending can release the slot
|
|
21822
|
+
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
|
|
21823
|
+
and value as the fleet terminal `task` row and `bg_notification`.
|
|
21824
|
+
unreviewed:
|
|
21825
|
+
type: object
|
|
21826
|
+
required: [handback]
|
|
21827
|
+
properties:
|
|
21828
|
+
handback: { allOf: [{ $ref: '#/components/schemas/AutoModeFallbackCause' }], description: 'The engine''s cause word (`AUTO_MODE_FALLBACK_CAUSES`).' }
|
|
21829
|
+
description: >-
|
|
21830
|
+
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
|
|
21831
|
+
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
|
|
21832
|
+
whole key is absent; absent = reviewed / not auto mode / an older server.
|
|
21040
21833
|
result: { type: string, description: 'UNTRUSTED display text.' }
|
|
21041
21834
|
output_file: { type: string }
|
|
21042
21835
|
usage: { description: 'open shape — usage rollup of the background task.' }
|
|
@@ -21311,6 +22104,10 @@ components:
|
|
|
21311
22104
|
liveFactsUnknown:
|
|
21312
22105
|
const: true
|
|
21313
22106
|
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).'
|
|
22107
|
+
consumerState:
|
|
22108
|
+
type: string
|
|
22109
|
+
enum: [absent]
|
|
22110
|
+
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
22111
|
|
|
21315
22112
|
ApprovalRuleEvidence:
|
|
21316
22113
|
type: object
|
|
@@ -21500,6 +22297,17 @@ components:
|
|
|
21500
22297
|
items: { $ref: '#/components/schemas/AskReason' }
|
|
21501
22298
|
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
22299
|
sourceAgentName: { type: string, description: 'The child agent''s display name, redacted. UNTRUSTED.' }
|
|
22300
|
+
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.' }
|
|
22301
|
+
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.' }
|
|
22302
|
+
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`.' }
|
|
22303
|
+
redactedKeys:
|
|
22304
|
+
type: array
|
|
22305
|
+
items: { $ref: '#/components/schemas/ApprovalCardRedactedKey' }
|
|
22306
|
+
description: >-
|
|
22307
|
+
server >= 7.156.0 — the card members whose bytes the server's exit redaction rewrote (closed set `args`, in table order, no repeats):
|
|
22308
|
+
`[]` = nothing rewritten (a card whose args fold into `argsOmitted` carries `[]` too), `["args"]` = the human-facing args were rewritten.
|
|
22309
|
+
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`,
|
|
22310
|
+
replay frames and the per-ask read carry the same value.
|
|
21503
22311
|
# A-057.④(#314):三键 server 早已随卡投出(与 tool_approval 帧同一窄读函数 ⇒ 帧与 card 同值),
|
|
21504
22312
|
# 但本 schema 只在帧上公示过 —— 按 spec 生成的卡消费方拿不到。定义与帧上同构段逐字同源,
|
|
21505
22313
|
# 长 description 不复制(单一真源在 ApprovalRequestLiveFacts / ApprovalCard 的同名键)。
|
|
@@ -22518,6 +23326,20 @@ components:
|
|
|
22518
23326
|
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
23327
|
`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
23328
|
the ENGINE judges the value; the outcome is announced (`approval.read_root_granted` / `approval.read_root_grant_rejected`), never in the 200.
|
|
23329
|
+
feedback:
|
|
23330
|
+
type: string
|
|
23331
|
+
description: >-
|
|
23332
|
+
server >= 7.156.0 (capability `approvalFeedback`) — the person's words to the agent ("approved, next do this"), handed to the engine verbatim: the
|
|
23333
|
+
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
|
|
23334
|
+
resume outcome. Read exactly as on `/decide`: non-string ⇒ 400 `request.field_invalid`; direct-door deployment ⇒ 400 `feedback_not_in_proof`;
|
|
23335
|
+
only a person's approve — on `deny` or `decidedBy: policy` ⇒ 400 `request.field_conflict` (`reason: approval_feedback`); an engine reminder tag in
|
|
23336
|
+
the words ⇒ 400 `request.field_invalid` + `field: feedback`. Delivered or not: the receipt's `feedbackForwarded`. Servers <= 7.155.x: 400 `request.body_shape`.
|
|
23337
|
+
mcpServers:
|
|
23338
|
+
allOf: [{ $ref: '#/components/schemas/ResumeRestatement/properties/mcpServers' }]
|
|
23339
|
+
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`.'
|
|
23340
|
+
a2aPeers:
|
|
23341
|
+
allOf: [{ $ref: '#/components/schemas/ResumeRestatement/properties/a2aPeers' }]
|
|
23342
|
+
description: 'server >= 7.156.0 — the other resume restatement key; read exactly like `mcpServers` here.'
|
|
22521
23343
|
|
|
22522
23344
|
ApprovalDecideGateKind:
|
|
22523
23345
|
type: string
|
|
@@ -22677,6 +23499,9 @@ components:
|
|
|
22677
23499
|
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
23500
|
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
23501
|
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.
|
|
23502
|
+
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.' }
|
|
23503
|
+
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.' }
|
|
23504
|
+
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
23505
|
rememberApplied:
|
|
22681
23506
|
type: boolean
|
|
22682
23507
|
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 +23543,7 @@ components:
|
|
|
22718
23543
|
decidedAtMs: { type: integer }
|
|
22719
23544
|
actor: { $ref: '#/components/schemas/ActorAssertion' }
|
|
22720
23545
|
accepted: { type: string, enum: [parked_redeemed] }
|
|
23546
|
+
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
23547
|
decisionNote: { type: string }
|
|
22722
23548
|
noteRecorded: { type: boolean }
|
|
22723
23549
|
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 +23555,7 @@ components:
|
|
|
22729
23555
|
status: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/status' }
|
|
22730
23556
|
sessionId: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/sessionId' }
|
|
22731
23557
|
bindingEnforced: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/bindingEnforced' }
|
|
23558
|
+
turnRefused: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/turnRefused' }
|
|
22732
23559
|
decisionCommitted: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/decisionCommitted' }
|
|
22733
23560
|
checkpointId: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/checkpointId' }
|
|
22734
23561
|
checkpointIdMissing: { $ref: '#/components/schemas/CheckpointIdMissingWord' }
|
|
@@ -22771,6 +23598,9 @@ components:
|
|
|
22771
23598
|
serverNowMs:
|
|
22772
23599
|
type: integer
|
|
22773
23600
|
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.'
|
|
23601
|
+
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.' }
|
|
23602
|
+
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.' }
|
|
23603
|
+
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
23604
|
|
|
22775
23605
|
AskQuestion:
|
|
22776
23606
|
type: object
|
|
@@ -22896,7 +23726,8 @@ components:
|
|
|
22896
23726
|
type: string
|
|
22897
23727
|
description: >
|
|
22898
23728
|
Human-readable exit route, VARIES by the occupying run's state (running => steer/cancel; parked =>
|
|
22899
|
-
decide at `pendingGate.decidePath` / cancel
|
|
23729
|
+
decide at `pendingGate.decidePath` / cancel; server >= 7.156.0 parked on a card no decision lands on => no `pendingGate`, the sentence
|
|
23730
|
+
follows `stuck` / `wayOut`). Display only — branch on `activeTaskStatus` / `pendingGate` / `stuck`.
|
|
22900
23731
|
activeTaskId:
|
|
22901
23732
|
type: [string, 'null']
|
|
22902
23733
|
description: 'The run occupying the session; `null` when the claim holder could not be identified.'
|
|
@@ -22916,6 +23747,14 @@ components:
|
|
|
22916
23747
|
description: >
|
|
22917
23748
|
Present when the occupying run is parked on a pending durable gate: `decidePath` is THE ONE correct
|
|
22918
23749
|
resume entry for its `kind` (gate-kind routed; sessionId-addressed).
|
|
23750
|
+
stuck:
|
|
23751
|
+
allOf: [{ $ref: '#/components/schemas/StuckCardWord' }]
|
|
23752
|
+
description: >-
|
|
23753
|
+
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
|
|
23754
|
+
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.
|
|
23755
|
+
wayOut:
|
|
23756
|
+
allOf: [{ $ref: '#/components/schemas/ApprovalWayOut' }]
|
|
23757
|
+
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
23758
|
Event_failed:
|
|
22920
23759
|
type: object
|
|
22921
23760
|
# 封闭 + 回填 `activeTaskId`(census 轴一,2026-07-30):[1833] G10 —— session 已有活跃 run 的冲突
|
|
@@ -23361,6 +24200,9 @@ components:
|
|
|
23361
24200
|
expiresAtMs:
|
|
23362
24201
|
type: integer
|
|
23363
24202
|
description: 'server >= 7.39.0, OPEN frame only: `serverNowMs + expiresInMs` — the absolute deadline on the server''s clock.'
|
|
24203
|
+
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.' }
|
|
24204
|
+
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.' }
|
|
24205
|
+
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
24206
|
Event_question_complete:
|
|
23365
24207
|
type: object
|
|
23366
24208
|
description: >
|
|
@@ -23590,6 +24432,16 @@ components:
|
|
|
23590
24432
|
wayOut:
|
|
23591
24433
|
allOf: [{ $ref: '#/components/schemas/ApprovalWayOut' }]
|
|
23592
24434
|
description: '`pending` frames only (server >= 7.155.0): the spread PendingCheckpoint row''s `wayOut` (a changed value re-sends that row''s `pending` frame).'
|
|
24435
|
+
stuck:
|
|
24436
|
+
allOf: [{ $ref: '#/components/schemas/StuckCardWord' }]
|
|
24437
|
+
description: 'Parked-door `pending` frames only (server >= 7.156.0): the spread PendingCheckpoint row''s `stuck`.'
|
|
24438
|
+
redactedKeys:
|
|
24439
|
+
type: array
|
|
24440
|
+
items: { $ref: '#/components/schemas/ParkedRowRedactedKey' }
|
|
24441
|
+
description: 'Parked-door `pending` frames only (server >= 7.156.0): the spread PendingCheckpoint row''s `redactedKeys`.'
|
|
24442
|
+
workflowRunId: { type: string, description: 'Parked-door `pending` frames only (server >= 7.156.0): the spread PendingCheckpoint row''s `workflowRunId`.' }
|
|
24443
|
+
workflowAgentLabel: { type: string, description: 'Parked-door `pending` frames only (server >= 7.156.0): the spread PendingCheckpoint row''s `workflowAgentLabel`.' }
|
|
24444
|
+
workflowStepAskedAgain: { type: boolean, enum: [true], description: 'Parked-door `pending` frames only (server >= 7.156.0): the spread PendingCheckpoint row''s `workflowStepAskedAgain`.' }
|
|
23593
24445
|
fromSubagent: { type: boolean, const: true, description: 'Parked-door `pending` frames only (server >= 7.155.0): the spread PendingCheckpoint row''s `fromSubagent`.' }
|
|
23594
24446
|
sourceSessionId: { type: string, description: 'Parked-door `pending` frames only (server >= 7.155.0): the spread PendingCheckpoint row''s `sourceSessionId`.' }
|
|
23595
24447
|
agentId: { type: string, description: 'Parked-door `pending` frames only (server >= 7.155.0): the spread PendingCheckpoint row''s `agentId`.' }
|
|
@@ -23721,7 +24573,7 @@ components:
|
|
|
23721
24573
|
|
|
23722
24574
|
WorkflowParkDecisionRecorded:
|
|
23723
24575
|
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
|
|
24576
|
+
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
24577
|
required: [status, runId, decisionId, decision, bindingEnforced]
|
|
23726
24578
|
additionalProperties: false
|
|
23727
24579
|
properties:
|
|
@@ -23732,6 +24584,7 @@ components:
|
|
|
23732
24584
|
bindingEnforced: { type: boolean, enum: [true] }
|
|
23733
24585
|
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
24586
|
ruleRefusal: { type: string, enum: [rule_lane_unavailable], description: 'Present with `rulePersisted` (and only then): always `rule_lane_unavailable` on this lane.' }
|
|
24587
|
+
turnRefused: { $ref: '#/components/schemas/ApprovalDecisionResult/properties/turnRefused' }
|
|
23735
24588
|
|
|
23736
24589
|
WorkflowParkDecisionDelivered:
|
|
23737
24590
|
type: object
|
|
@@ -23783,6 +24636,7 @@ components:
|
|
|
23783
24636
|
parentTaskId: { type: string }
|
|
23784
24637
|
stoppedBy: { type: string, description: 'Verbatim open enum (who/what stopped a killed child).' }
|
|
23785
24638
|
resumable: { type: boolean }
|
|
24639
|
+
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
24640
|
recentSteps:
|
|
23787
24641
|
type: array
|
|
23788
24642
|
items:
|
|
@@ -23844,6 +24698,7 @@ components:
|
|
|
23844
24698
|
additionalProperties: true
|
|
23845
24699
|
properties:
|
|
23846
24700
|
kind: { type: string, enum: [hook_decision_unavailable] }
|
|
24701
|
+
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
24702
|
event: { type: string, description: 'Which hook event (Stop / PreToolUse / …) — defined by "a hook adjudication did not complete", not any single feature.' }
|
|
23848
24703
|
reason:
|
|
23849
24704
|
# 🔴 NO `enum` — same ruling as `FleetTaskRow.retiredBy` (codex R1-F3, family case): the description
|
|
@@ -23864,6 +24719,7 @@ components:
|
|
|
23864
24719
|
additionalProperties: true
|
|
23865
24720
|
properties:
|
|
23866
24721
|
kind: { type: string, enum: [hook_non_blocking_failure] }
|
|
24722
|
+
groupKey: { type: string, pattern: '^[0-9a-f]{24}$', description: 'server >= 7.156.0 — merge key (same reading as `FleetHookDecisionUnavailable.groupKey`).' }
|
|
23867
24723
|
event: { type: string, description: 'Which hook event (PreToolUse / Stop / …).' }
|
|
23868
24724
|
reason:
|
|
23869
24725
|
# 🔴 NO `enum` — same open-on-read ruling as kind 1 (SDK type is `... | (string & {})`).
|
|
@@ -23887,6 +24743,7 @@ components:
|
|
|
23887
24743
|
additionalProperties: true
|
|
23888
24744
|
properties:
|
|
23889
24745
|
kind: { type: string, enum: [hook_managed_unrun] }
|
|
24746
|
+
groupKey: { type: string, pattern: '^[0-9a-f]{24}$', description: 'server >= 7.156.0 — merge key (same reading as `FleetHookDecisionUnavailable.groupKey`).' }
|
|
23890
24747
|
event: { type: string, description: 'Which hook event. On PreToolUse this entry sets the managed lane: with no veto the call folds to `ask`.' }
|
|
23891
24748
|
reason:
|
|
23892
24749
|
# NO `enum` — same open-on-read ruling as kinds 1 and 2.
|
|
@@ -23913,6 +24770,7 @@ components:
|
|
|
23913
24770
|
additionalProperties: true
|
|
23914
24771
|
properties:
|
|
23915
24772
|
kind: { type: string, enum: [hook_verdict_untrusted] }
|
|
24773
|
+
groupKey: { type: string, pattern: '^[0-9a-f]{24}$', description: 'server >= 7.156.0 — merge key (same reading as `FleetHookDecisionUnavailable.groupKey`).' }
|
|
23916
24774
|
event: { type: string, description: 'Which hook event (today always PreToolUse).' }
|
|
23917
24775
|
reason:
|
|
23918
24776
|
# NO `enum` — same open-on-read ruling as kinds 1–3.
|
|
@@ -24270,7 +25128,7 @@ components:
|
|
|
24270
25128
|
🔴 ONE RULE FOR EVERY "EFFECTIVE HALF ONLY" KEY (sdk 9.7.0, after a codex adversarial-review [high]):
|
|
24271
25129
|
this schema's only consumer today is `GET /v1/diagnostics/wiring`'s `static` half, and every key marked
|
|
24272
25130
|
"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
|
|
25131
|
+
`modelGate`, `autoMode`, `writeProtection`, `readDeny`, `autoConsolidation`, `fileHistory`, `instructions`, `sessionRules`, `projectMemory`, `declaredPlaces`, `fastMode`) is ALWAYS ABSENT on that
|
|
24274
25132
|
wire ⇒ THEIR ABSENCE HERE CARRIES NO INFORMATION. The per-key absence readings ("absent = not armed",
|
|
24275
25133
|
"absent = a third state", …) hold for the LIVE FRAME (`Event_wiring_manifest`) and must not be carried
|
|
24276
25134
|
over to this response. For the facts behind those keys: a tenant reads
|
|
@@ -24299,6 +25157,9 @@ components:
|
|
|
24299
25157
|
additionalProperties: true
|
|
24300
25158
|
properties:
|
|
24301
25159
|
schemaVersion: { type: integer }
|
|
25160
|
+
fastMode:
|
|
25161
|
+
allOf: [{ $ref: '#/components/schemas/FastModeReading' }]
|
|
25162
|
+
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
25163
|
declaredPlaces:
|
|
24303
25164
|
allOf: [{ $ref: '#/components/schemas/WiringManifestDeclaredPlaces' }]
|
|
24304
25165
|
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.'
|
|
@@ -24426,12 +25287,19 @@ components:
|
|
|
24426
25287
|
core >= 7.3.1 (#529), server >= 7.59 — did AUTO mode arm on THIS leg, and if not which arm it stopped
|
|
24427
25288
|
at. EFFECTIVE half only. 🔴 `reason` is core's closed word list passed through VERBATIM (branch known
|
|
24428
25289
|
words, keep a default arm); ABSENCE IS NOT "not applicable" — never fold it to `armed: false`. The
|
|
24429
|
-
server projects
|
|
24430
|
-
Full contract: see Event_wiring_manifest.autoMode.
|
|
25290
|
+
server projects these keys only (core's `breaker` sub-fact is NOT projected onto the wire): `armed`, `reason`, and `deniedSource` when
|
|
25291
|
+
the resolver tracks it. Full contract: see Event_wiring_manifest.autoMode.
|
|
24431
25292
|
required: [armed, reason]
|
|
24432
25293
|
properties:
|
|
24433
25294
|
armed: { type: boolean }
|
|
24434
25295
|
reason: { type: string }
|
|
25296
|
+
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.' }
|
|
25297
|
+
hands:
|
|
25298
|
+
allOf: [{ $ref: '#/components/schemas/WiringManifestHands' }]
|
|
25299
|
+
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.'
|
|
25300
|
+
teamRole:
|
|
25301
|
+
type: string
|
|
25302
|
+
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
25303
|
mods:
|
|
24436
25304
|
type: array
|
|
24437
25305
|
description: >
|
|
@@ -24702,6 +25570,16 @@ components:
|
|
|
24702
25570
|
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
25571
|
refusedBy: { type: string, description: 'the registration whose judge refused it (registrant text).' }
|
|
24704
25572
|
reason: { type: string, description: 'the refusing judge''s own words (registrant text, UNTRUSTED-for-display).' }
|
|
25573
|
+
WiringManifestHands:
|
|
25574
|
+
type: object
|
|
25575
|
+
additionalProperties: false
|
|
25576
|
+
required: [mounted]
|
|
25577
|
+
description: >-
|
|
25578
|
+
`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
|
|
25579
|
+
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).
|
|
25580
|
+
properties:
|
|
25581
|
+
mounted: { type: boolean }
|
|
25582
|
+
reason: { type: string, description: 'Why there are no hands (`no_execution_env` today; open on read).' }
|
|
24705
25583
|
WiringManifestLspSeam:
|
|
24706
25584
|
# sdk 9.5.0:同上 —— live 帧与静态面共用一份段形。
|
|
24707
25585
|
type: object
|
|
@@ -24746,6 +25624,22 @@ components:
|
|
|
24746
25624
|
spawnedAt: { type: number, description: 'epoch ms' }
|
|
24747
25625
|
updatedAt: { type: number, description: 'epoch ms' }
|
|
24748
25626
|
settledAt: { type: number, description: 'epoch ms; absent until the agent settles.' }
|
|
25627
|
+
AgentRosterUnreadableRow:
|
|
25628
|
+
type: object
|
|
25629
|
+
additionalProperties: false
|
|
25630
|
+
required: [handle, unreadable]
|
|
25631
|
+
description: >-
|
|
25632
|
+
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.
|
|
25633
|
+
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
|
|
25634
|
+
"unreadable" in the session delete / retire child pre-checks (it cannot be proven not alive).
|
|
25635
|
+
properties:
|
|
25636
|
+
handle: { type: string, description: 'The background agent''s id (the same string as on a readable row).' }
|
|
25637
|
+
unreadable:
|
|
25638
|
+
type: object
|
|
25639
|
+
additionalProperties: false
|
|
25640
|
+
required: [errorCode]
|
|
25641
|
+
properties:
|
|
25642
|
+
errorCode: { type: string, description: 'The engine''s row-verdict code; `agent_record.row_malformed` today (open set).' }
|
|
24749
25643
|
AgentRosterPage:
|
|
24750
25644
|
type: object
|
|
24751
25645
|
additionalProperties: false
|
|
@@ -24753,8 +25647,16 @@ components:
|
|
|
24753
25647
|
description: >
|
|
24754
25648
|
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
25649
|
`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`.
|
|
25650
|
+
🔴 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`,
|
|
25651
|
+
exactly `{ handle, unreadable: { errorCode } }`) — those are listed on the FIRST page only (no `before`), after that page's readable rows, never counting toward
|
|
25652
|
+
`limit` or the cursor, and they count in `total`. Test `unreadable` before reading `name` / `status`.
|
|
24756
25653
|
properties:
|
|
24757
|
-
agents:
|
|
25654
|
+
agents:
|
|
25655
|
+
type: array
|
|
25656
|
+
items:
|
|
25657
|
+
oneOf:
|
|
25658
|
+
- { $ref: '#/components/schemas/AgentRosterRow' }
|
|
25659
|
+
- { $ref: '#/components/schemas/AgentRosterUnreadableRow' }
|
|
24758
25660
|
total: { type: integer, minimum: 0 }
|
|
24759
25661
|
nextBefore: { type: string }
|
|
24760
25662
|
truncated: { type: boolean, enum: [true] }
|
|
@@ -24957,6 +25859,40 @@ components:
|
|
|
24957
25859
|
description: >
|
|
24958
25860
|
server >= 7.5x (#324, design/338) — the mid-turn MCP revocation list. `null` = this process has no
|
|
24959
25861
|
config pipeline (it cannot say). NOT YET MIRRORED KEY-BY-KEY in this SDK generation — read as opaque.
|
|
25862
|
+
outbound:
|
|
25863
|
+
oneOf:
|
|
25864
|
+
- $ref: '#/components/schemas/WiringOutbound'
|
|
25865
|
+
- type: 'null'
|
|
25866
|
+
description: >-
|
|
25867
|
+
The OUTBOUND segment (the server has sent it since 7.108.0; declared here from this version): which variable supplies the effective proxy
|
|
25868
|
+
(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
|
|
25869
|
+
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.
|
|
25870
|
+
WiringOutbound:
|
|
25871
|
+
type: object
|
|
25872
|
+
additionalProperties: false
|
|
25873
|
+
required: [proxy, noProxy, loopbackDirect, proxyReadAtMs, lastConnectFailure]
|
|
25874
|
+
properties:
|
|
25875
|
+
proxy:
|
|
25876
|
+
type: object
|
|
25877
|
+
additionalProperties: false
|
|
25878
|
+
required: [http, https]
|
|
25879
|
+
properties:
|
|
25880
|
+
http: { type: ['string', 'null'], enum: [HTTP_PROXY, null] }
|
|
25881
|
+
https: { type: ['string', 'null'], enum: [HTTPS_PROXY, HTTP_PROXY, null] }
|
|
25882
|
+
noProxy: { type: boolean }
|
|
25883
|
+
loopbackDirect: { type: boolean }
|
|
25884
|
+
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).' }
|
|
25885
|
+
lastConnectFailure:
|
|
25886
|
+
oneOf:
|
|
25887
|
+
- type: object
|
|
25888
|
+
additionalProperties: false
|
|
25889
|
+
required: [targetHost, code, proxyInUse, atMs]
|
|
25890
|
+
properties:
|
|
25891
|
+
targetHost: { type: string }
|
|
25892
|
+
code: { type: string, enum: [UND_ERR_CONNECT_TIMEOUT, ECONNREFUSED, ENOTFOUND, EAI_AGAIN, EHOSTUNREACH, ENETUNREACH] }
|
|
25893
|
+
proxyInUse: { type: ['string', 'null'], description: 'The proxy VARIABLE NAME this hop used; `null` = direct.' }
|
|
25894
|
+
atMs: { type: number }
|
|
25895
|
+
- type: 'null'
|
|
24960
25896
|
|
|
24961
25897
|
SendfileLinkRow:
|
|
24962
25898
|
type: object
|
|
@@ -25359,6 +26295,8 @@ components:
|
|
|
25359
26295
|
field: { type: string }
|
|
25360
26296
|
entry: { type: string }
|
|
25361
26297
|
reason: { type: string }
|
|
26298
|
+
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`.' }
|
|
26299
|
+
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
26300
|
PrincipalInboxMessage:
|
|
25363
26301
|
type: object
|
|
25364
26302
|
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 +26637,77 @@ components:
|
|
|
25699
26637
|
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
26638
|
instanceId: { type: string, minLength: 1, description: The engine's per-process identity (`/health.instanceId`); compared only when present. }
|
|
25701
26639
|
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. }
|
|
26640
|
+
CredentialDrainRequest:
|
|
26641
|
+
type: object
|
|
26642
|
+
additionalProperties: false
|
|
26643
|
+
description: >-
|
|
26644
|
+
server >= 7.156.0 — the drain endpoint's CREDENTIAL-NAMED form (contract `CredentialDrainRequest`, `@sema-agent/settings-schema` 33.1.0): the sender
|
|
26645
|
+
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
|
|
26646
|
+
off, a negative / fractional count ⇒ not this form. Every key optional; `{}` is the whole default form.
|
|
26647
|
+
properties:
|
|
26648
|
+
instanceId: { type: string, minLength: 1, description: 'The engine''s per-process identity (`/health.instanceId`); compared when present, refused on a mismatch.' }
|
|
26649
|
+
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`).' }
|
|
26650
|
+
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.' }
|
|
26651
|
+
LeaderRequest:
|
|
26652
|
+
type: object
|
|
26653
|
+
description: >-
|
|
26654
|
+
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
|
|
26655
|
+
400 `request.body_shape` naming it (<= 7.155.x dropped unknown keys silently). A production deployment requires `objective`, `durableRemote`,
|
|
26656
|
+
`testCmd`, `seedCmd` and `baseSha` as non-blank strings. Only the top level is closed: extra keys inside `subtasks[]` / `oracleFiles[]` entries
|
|
26657
|
+
are not judged at admission.
|
|
26658
|
+
required: [objective, durableRemote, testCmd, seedCmd, baseSha]
|
|
26659
|
+
additionalProperties: false
|
|
26660
|
+
properties:
|
|
26661
|
+
objective: { type: string }
|
|
26662
|
+
durableRemote: { type: string }
|
|
26663
|
+
testCmd: { type: string }
|
|
26664
|
+
seedCmd: { type: string }
|
|
26665
|
+
baseSha: { type: string }
|
|
26666
|
+
subtasks:
|
|
26667
|
+
type: array
|
|
26668
|
+
items:
|
|
26669
|
+
type: object
|
|
26670
|
+
required: [workerId, branch, files, objective]
|
|
26671
|
+
properties:
|
|
26672
|
+
workerId: { type: string }
|
|
26673
|
+
branch: { type: string }
|
|
26674
|
+
files: { type: array, items: { type: string } }
|
|
26675
|
+
objective: { type: string }
|
|
26676
|
+
planContext: { type: string }
|
|
26677
|
+
targetRef: { type: string }
|
|
26678
|
+
oracleFiles:
|
|
26679
|
+
type: array
|
|
26680
|
+
items:
|
|
26681
|
+
type: object
|
|
26682
|
+
required: [path, content]
|
|
26683
|
+
properties:
|
|
26684
|
+
path: { type: string }
|
|
26685
|
+
content: { type: string }
|
|
26686
|
+
DrainTurns:
|
|
26687
|
+
type: string
|
|
26688
|
+
enum: ['yield', halt]
|
|
26689
|
+
description: 'server >= 7.156.0 — the two words of `CredentialDrainRequest.turns` (contract `DRAIN_TURNS`, same order). Closed.'
|
|
26690
|
+
DrainBody:
|
|
26691
|
+
description: >-
|
|
26692
|
+
server >= 7.156.0 — the drain endpoint's body: EXACTLY ONE of the identity form `DrainRequest` or the credential-named form `CredentialDrainRequest`.
|
|
26693
|
+
The identity form must not carry the credential form's own keys `turns` / `attachedAtMost` (the server answers that body 400 `request.field_invalid`
|
|
26694
|
+
+ `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`.
|
|
26695
|
+
oneOf:
|
|
26696
|
+
- allOf:
|
|
26697
|
+
- $ref: '#/components/schemas/DrainRequest'
|
|
26698
|
+
- not:
|
|
26699
|
+
anyOf:
|
|
26700
|
+
- required: [turns]
|
|
26701
|
+
- required: [attachedAtMost]
|
|
26702
|
+
- $ref: '#/components/schemas/CredentialDrainRequest'
|
|
26703
|
+
DrainOperatorOnlyReason:
|
|
26704
|
+
type: string
|
|
26705
|
+
enum: [principal_not_on_roster, principal_absent, halt_needs_operate]
|
|
26706
|
+
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.'
|
|
26707
|
+
DrainFieldInvalidReason:
|
|
26708
|
+
type: string
|
|
26709
|
+
enum: [not_a_drain_form, deadline_beyond_bound]
|
|
26710
|
+
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
26711
|
DrainReceipt:
|
|
25703
26712
|
type: object
|
|
25704
26713
|
required: [actionId, since, deadlineAt, state]
|
|
@@ -26548,6 +27557,11 @@ components:
|
|
|
26548
27557
|
deployment shape). This is the SAME bit the submit-time admission chain judges: `offline` ⇒ a submit
|
|
26549
27558
|
carrying that `deviceId` answers 409 `device.offline`.
|
|
26550
27559
|
lastSeenAt: { type: string, format: date-time, description: 'ISO-8601. ABSENT if the device has never connected (not `null`, not epoch 0).' }
|
|
27560
|
+
ownedByCaller:
|
|
27561
|
+
type: boolean
|
|
27562
|
+
description: >-
|
|
27563
|
+
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
|
|
27564
|
+
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
27565
|
|
|
26552
27566
|
DeviceListResult:
|
|
26553
27567
|
type: object
|