@sema-agent/sdk 48.0.0 → 49.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 +72 -0
- package/dist/boot-refusal/tables.d.ts +3 -0
- package/dist/boot-refusal/tables.d.ts.map +1 -1
- package/dist/boot-refusal/tables.js +2 -1
- package/dist/boot-refusal/tables.js.map +1 -1
- package/dist/errors.d.ts +46 -23
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +34 -23
- package/dist/errors.js.map +1 -1
- package/dist/events.d.ts +119 -12
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +6 -3
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/approvals.d.ts +39 -11
- package/dist/resources/approvals.d.ts.map +1 -1
- package/dist/resources/approvals.js +20 -10
- package/dist/resources/approvals.js.map +1 -1
- package/dist/resources/projects.d.ts +25 -5
- package/dist/resources/projects.d.ts.map +1 -1
- package/dist/resources/projects.js +24 -4
- package/dist/resources/projects.js.map +1 -1
- package/dist/resources/rules.d.ts +2 -2
- package/dist/resources/runs.d.ts +8 -3
- package/dist/resources/runs.d.ts.map +1 -1
- package/dist/resources/runs.js.map +1 -1
- package/dist/resources/session-sync.d.ts +3 -1
- package/dist/resources/session-sync.d.ts.map +1 -1
- package/dist/resources/session-sync.js +3 -1
- package/dist/resources/session-sync.js.map +1 -1
- package/dist/resources/tool-approvals.d.ts +8 -4
- package/dist/resources/tool-approvals.d.ts.map +1 -1
- package/dist/resources/tool-approvals.js +6 -3
- package/dist/resources/tool-approvals.js.map +1 -1
- package/dist/resources/workflows.d.ts +6 -0
- package/dist/resources/workflows.d.ts.map +1 -1
- package/dist/resources/workflows.js.map +1 -1
- package/dist/types.d.ts +181 -26
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +7 -2
- package/dist/types.js.map +1 -1
- package/openapi.yaml +383 -43
- package/package.json +1 -1
package/openapi.yaml
CHANGED
|
@@ -3805,6 +3805,8 @@ paths:
|
|
|
3805
3805
|
'422':
|
|
3806
3806
|
description: >-
|
|
3807
3807
|
422 — `missing_blob` (first phase from server >= 7.135.0), `restore_failed`, and (server >= 7.135.0) `adopt_failed` (+ optional `permanence`) for the file-history replay; `invalid_entries` etc. as before. Branch on `errorCode`.
|
|
3808
|
+
Server >= 7.158.0 (BREAKING on the wire): when a blob the envelope references is over the cloud store's cap, the replay answers `too_large` instead of `adopt_failed`
|
|
3809
|
+
(both phases' replay arms; `permanence: "terminal"` still carried). A reader that branches on `adopt_failed` must also read `too_large`; one that reads only `permanence` needs no change.
|
|
3808
3810
|
content:
|
|
3809
3811
|
application/json:
|
|
3810
3812
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -4145,8 +4147,8 @@ paths:
|
|
|
4145
4147
|
a `parks[]` entry (the record naming the card at the highest generation, exactly one ⇒ it takes the decision). The EIGHTH group
|
|
4146
4148
|
widens and now has two causes under one code (the body carries no cause word; the sentence differs): an entry written by an older
|
|
4147
4149
|
engine (cards still parked at the upgrade) ⇒ resume `runId` and decide again; a record that cannot be read (a malformed entry,
|
|
4148
|
-
or `parks` present but not a list) ⇒ resuming does NOT clear it — an operator must repair that record
|
|
4149
|
-
`readableHolderRunId
|
|
4150
|
+
or `parks` present but not a list) ⇒ resuming does NOT clear it — an operator must repair that record (servers 7.118.0 – 7.157.x
|
|
4151
|
+
may add a clue key `readableHolderRunId`; server >= 7.158.0 does not). A record with NO `parks` key holds nothing: a card only it names answers 409
|
|
4150
4152
|
`conflict.resume_context_unavailable` (no `runId`). NINTH group: `decide.workflow_park_forked` (409, body `runIds`) — the same
|
|
4151
4153
|
run was resumed more than once and the copies all hold this card; nothing delivered, the card stays PENDING; resume one of
|
|
4152
4154
|
`runIds` and decide again (SDK → `DecideWorkflowParkForkedError`).
|
|
@@ -4244,10 +4246,13 @@ paths:
|
|
|
4244
4246
|
carry `cause` — core's CAUSE WORD for this startup failure, relayed from the engine receipt's `details`
|
|
4245
4247
|
(no default; absent when the engine did not say, i.e. every server before S-818 and every core before
|
|
4246
4248
|
#1161). The closed set is core's (#1161; core 7.51.0 exports it as `RESUME_STARTUP_CAUSES`); since server >= 7.129.0
|
|
4247
|
-
the key is one of
|
|
4249
|
+
the key is one of the engine's closed set — SDK `RESUME_STARTUP_CAUSES` (`ResumeStartupCause`), seven words today in the engine's order: `environment` /
|
|
4250
|
+
`session_gone` / `transcript_corrupt` / `tool_unavailable` / `configuration` / `decision_rejected` / `superseded` (the last from server >= 7.158.0)
|
|
4248
4251
|
— the server screens it, a word outside the set is dropped; servers <= 7.128.x relay the word unscreened. Absent ⇒ "cannot tell": offer both
|
|
4249
|
-
ways out. SDK → `ParkedResumeStartupError.startupCause` (23.0.0: `ResumeStartupCause`; `undefined` when absent, not a string, or outside
|
|
4252
|
+
ways out. SDK → `ParkedResumeStartupError.startupCause` (23.0.0: `ResumeStartupCause`; `undefined` when absent, not a string, or outside `RESUME_STARTUP_CAUSES` — the raw value stays at `err.extra.cause`;
|
|
4250
4253
|
the wire key stays `cause` — the SDK does not put it on the standard `Error.cause`, which means a chained error).
|
|
4254
|
+
server >= 7.158.0: the body root may also carry `wayOut` — only on the `resume.parent_constraint_mismatch` arm and only when the
|
|
4255
|
+
settlement answers one word: `cancel_run` / `void_card` (SDK: `err.extra.wayOut`, typed `ResumeRefusalExtra.wayOut`).
|
|
4251
4256
|
content:
|
|
4252
4257
|
application/json:
|
|
4253
4258
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -5024,11 +5029,13 @@ paths:
|
|
|
5024
5029
|
x-status: live # server >= 7.147.0 (contract GET /v1/projects). SDK projects.list().
|
|
5025
5030
|
summary: List the project registry (read-only).
|
|
5026
5031
|
description: >
|
|
5027
|
-
server >= 7.147.0 — the project registry's LIST face. The registry
|
|
5032
|
+
server >= 7.147.0 — the project registry's LIST face. The registry comes from the running configuration: through 7.157.x ONLY the configuration center publishes it, from
|
|
5033
|
+
7.158.0 also a local-file configuration (`CONFIG_PROVIDER=local`, `config.d/projects.json`); a deployment with neither has no registry
|
|
5028
5034
|
and answers 501 `capability.unavailable` (capability bit `projects === false` reads the same fact — gate on the bit, never trial-by-501; ABSENT bit = an older server, both faces 404).
|
|
5029
5035
|
Visibility fails closed: a fleet caller sees every registration; a caller with a verified principal sees only the registrations whose `registeredBy` is itself; no identity => 401.
|
|
5030
5036
|
Archived registrations (`archivedAt` present) are NOT listed by default; `?archived=true` lists ONLY the archived ones; `?archived=false` = the default; any other value => 400 `request.query_invalid`.
|
|
5031
|
-
|
|
5037
|
+
Servers 7.147.0 – 7.157.x have no write verb (create / update / archive answer 405 + `Allow: GET`); server >= 7.158.0 adds `POST` (below) and `PATCH /v1/projects/{projectId}`
|
|
5038
|
+
on deployments whose configuration lives in a local file (capability bit `projectsWrite`).
|
|
5032
5039
|
parameters:
|
|
5033
5040
|
- in: query
|
|
5034
5041
|
name: archived
|
|
@@ -5043,6 +5050,40 @@ paths:
|
|
|
5043
5050
|
'400': { $ref: '#/components/responses/BadRequest' }
|
|
5044
5051
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
5045
5052
|
'501': { $ref: '#/components/responses/NotImplemented' }
|
|
5053
|
+
post:
|
|
5054
|
+
tags: [projects]
|
|
5055
|
+
operationId: projectsCreate
|
|
5056
|
+
x-status: live # server >= 7.158.0 (contract §20.4). SDK projects.create().
|
|
5057
|
+
summary: Create a project registration (local-file configuration only).
|
|
5058
|
+
description: >
|
|
5059
|
+
server >= 7.158.0 — the registry's CREATE face; capability bit `projectsWrite` (a deployment whose configuration is served by the configuration center answers
|
|
5060
|
+
501 `capability.unavailable` and `projectsWrite: false` — projects are created in the center there). Writes `config.d/projects.json` through the settings
|
|
5061
|
+
contract's conditional writer, then triggers the configuration refresh and answers only once the running configuration holds exactly what was written.
|
|
5062
|
+
The server mints `id` (a lower-case uuid), `registeredBy` (the caller's principal; a caller that reports none and speaks for the deployment writes the
|
|
5063
|
+
reserved string `_`) and `registeredAt`. Body: closed (`ProjectCreateBody`) — a key outside it => 400 `request.body_shape` with top-level `unknownKeys`
|
|
5064
|
+
(each key named) and `unsupportedKeys` (always empty); not an object or no `displayName` => 400 `request.body_shape` without the two lists; a value the
|
|
5065
|
+
contract refuses => 400 `request.field_invalid` with `field`; the project brief (goal / notes / contextItems folded) over the submit door's system-prompt
|
|
5066
|
+
fold cap (capability `appendSystemPromptMaxChars`) => 400 `request.field_invalid`, `field: "(project brief)"`, nothing written. Content attestation:
|
|
5067
|
+
a deployment that declares one user (`OPERATOR_SINGLE_USER=true`) or sets `PROJECT_WRITE_ATTESTS_CONTENT=true` stamps it; any other leaves it off and the
|
|
5068
|
+
row carries `contentWithheld: "unattested"`. Concurrency: the file changed after the read or its lock is held => 409 `conflict.project_registry_busy`
|
|
5069
|
+
(`reason` `changed` / `locked`; nothing written, retry); the file holds something the contract cannot read back => 409 `config.project_registry_unreadable`
|
|
5070
|
+
(`paths`, never the values; nothing written); written but the running configuration did not take it => 409 `config.project_write_unapplied` (`id`: the file
|
|
5071
|
+
already holds it — do not create again). A read-only trace credential => 401. There is no delete verb (`DELETE` => 405).
|
|
5072
|
+
requestBody:
|
|
5073
|
+
required: true
|
|
5074
|
+
content:
|
|
5075
|
+
application/json:
|
|
5076
|
+
schema: { $ref: '#/components/schemas/ProjectCreateBody' }
|
|
5077
|
+
responses:
|
|
5078
|
+
'201':
|
|
5079
|
+
description: The new registration row (the same projection as the read faces).
|
|
5080
|
+
content:
|
|
5081
|
+
application/json:
|
|
5082
|
+
schema: { $ref: '#/components/schemas/ProjectRow' }
|
|
5083
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
5084
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
5085
|
+
'409': { $ref: '#/components/responses/Conflict' }
|
|
5086
|
+
'501': { $ref: '#/components/responses/NotImplemented' }
|
|
5046
5087
|
/v1/projects/{projectId}:
|
|
5047
5088
|
parameters:
|
|
5048
5089
|
- $ref: '#/components/parameters/PrincipalHeader'
|
|
@@ -5069,6 +5110,35 @@ paths:
|
|
|
5069
5110
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
5070
5111
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
5071
5112
|
'501': { $ref: '#/components/responses/NotImplemented' }
|
|
5113
|
+
patch:
|
|
5114
|
+
tags: [projects]
|
|
5115
|
+
operationId: projectsPatch
|
|
5116
|
+
x-status: live # server >= 7.158.0 (contract §20.4). SDK projects.patch().
|
|
5117
|
+
summary: Change or archive a project registration (local-file configuration only).
|
|
5118
|
+
description: >
|
|
5119
|
+
server >= 7.158.0 — the registry's CHANGE face (capability bit `projectsWrite`; same deployment rule, write path, refresh check and three 409s as `POST /v1/projects`).
|
|
5120
|
+
Body: closed (`ProjectPatchBody`), at least one member; an optional member given `null` is cleared (`displayName` cannot be cleared). `archived: true` stamps
|
|
5121
|
+
`archivedAt` (an archived row keeps its first time), `false` clears it; archiving only decides whether the default list shows the project — sessions attached
|
|
5122
|
+
to it stay attached. Who may write: the registrant (`registeredBy` = the caller's principal), a caller with no identity boundary on a single-user deployment,
|
|
5123
|
+
or a service credential; a read-only trace credential cannot (401); an operator does not override. Not visible or no such project => 404 `not_found.project`
|
|
5124
|
+
(same body). A write that changes goal / notes / contextItems on a deployment that does not stamp attestation REMOVES the existing attestation (the row then
|
|
5125
|
+
carries `contentWithheld: "unattested"`); renaming / archiving / icon / color leave it alone. `:projectId` not a uuid => 400 `request.id_invalid`.
|
|
5126
|
+
requestBody:
|
|
5127
|
+
required: true
|
|
5128
|
+
content:
|
|
5129
|
+
application/json:
|
|
5130
|
+
schema: { $ref: '#/components/schemas/ProjectPatchBody' }
|
|
5131
|
+
responses:
|
|
5132
|
+
'200':
|
|
5133
|
+
description: The changed registration row.
|
|
5134
|
+
content:
|
|
5135
|
+
application/json:
|
|
5136
|
+
schema: { $ref: '#/components/schemas/ProjectRow' }
|
|
5137
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
5138
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
5139
|
+
'404': { $ref: '#/components/responses/NotFound' }
|
|
5140
|
+
'409': { $ref: '#/components/responses/Conflict' }
|
|
5141
|
+
'501': { $ref: '#/components/responses/NotImplemented' }
|
|
5072
5142
|
/v1/sessions/{sessionId}/rewind-files:
|
|
5073
5143
|
parameters:
|
|
5074
5144
|
- $ref: '#/components/parameters/PrincipalHeader'
|
|
@@ -8383,10 +8453,11 @@ components:
|
|
|
8383
8453
|
→ 400 (not silently truncated). The SDK auto-generates one if absent.
|
|
8384
8454
|
systemPrompt:
|
|
8385
8455
|
type: string
|
|
8386
|
-
maxLength: 16384
|
|
8387
8456
|
description: >
|
|
8388
8457
|
Business/UX system prompt the CLIENT owns — STABLE per integrator version (cacheable prefix).
|
|
8389
|
-
Server cap
|
|
8458
|
+
Server cap = this deployment's capability `appendSystemPromptMaxChars` (server >= 7.158.0 read per deployment: the operator's
|
|
8459
|
+
`SYSTEM_PROMPT_MAX_CHARS`, otherwise 16384 on a multi-principal and 131072 on a single-principal deployment; <= 7.157.x a fixed 16384);
|
|
8460
|
+
over it → 400. Read the cap from each server; this schema states no fixed limit.
|
|
8390
8461
|
skills:
|
|
8391
8462
|
type: array
|
|
8392
8463
|
description: >
|
|
@@ -8628,6 +8699,31 @@ components:
|
|
|
8628
8699
|
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
|
|
8629
8700
|
call); `false` = absent. Non-boolean => 400 `request.field_invalid`. Re-read by resume / delivery legs from the stored body; inherited by engine-built
|
|
8630
8701
|
children and workflow members. Not accepted from `settings`. A server without the bit answers 400 `request.body_shape` for this key.
|
|
8702
|
+
instructionFamily:
|
|
8703
|
+
type: object
|
|
8704
|
+
additionalProperties: false
|
|
8705
|
+
description: >-
|
|
8706
|
+
server >= 7.158.0 (engine word `instruction_family.external_includes`, read per deployment) — the CALLER's members of the instruction-file family seat; today one,
|
|
8707
|
+
`externalIncludes`: `false` (the host records that the user did not approve) or a list of absolute paths, each the `detail.target` of an `instructions.withheld`
|
|
8708
|
+
notice (`reason: "outside_its_root"`) sent back as it came — the user's approval of instruction files outside the task root, per file. `{}` / `false` / `[]`
|
|
8709
|
+
ask nothing. The deployment's own members (`files`, `rulesDirs`, `alternate`, `includes`, `hostRules`) are not the caller's: 400 `request.body_shape`
|
|
8710
|
+
listing `instructionFamily.<member>` in `unsupportedKeys` (a name outside the family lands in `unknownKeys`); not an object => 400 `request.field_invalid`
|
|
8711
|
+
`field: "instructionFamily"`; a deployment that declares no family (`PROJECT_MEMORY_ENABLED=false`) => 400 `request.field_invalid`
|
|
8712
|
+
`{ field: "instructionFamily.externalIncludes", reason: "instruction_family_off" }`. Frozen with the stored body: a resume whose stored member this deployment
|
|
8713
|
+
can no longer honour answers 409 `resume_blocked_by_policy` with the same `field` / `reason`. Older servers answer 400 `request.body_shape` for this key.
|
|
8714
|
+
properties:
|
|
8715
|
+
externalIncludes:
|
|
8716
|
+
oneOf:
|
|
8717
|
+
- { type: boolean, enum: [false] }
|
|
8718
|
+
- { type: array, items: { type: string } }
|
|
8719
|
+
transcriptPath:
|
|
8720
|
+
type: string
|
|
8721
|
+
description: >-
|
|
8722
|
+
server >= 7.158.0 (capability bit `transcriptPath`, present only where it is honoured) — the absolute host path of the caller's own transcript file for this
|
|
8723
|
+
session: the hooks this server runs receive it as `transcript_path` (otherwise the empty string). Honoured only where the caller and the hook process share
|
|
8724
|
+
the machine and the principal (`REMOTE_EXEC=host` without `REQUIRE_PRINCIPAL`); elsewhere => 400 `request.precondition_unmet` (`field: "transcriptPath"`); not an
|
|
8725
|
+
absolute host path => 400 `request.field_invalid` (`field: "transcriptPath"`); both before any write, the value never echoed. The server never opens it, and
|
|
8726
|
+
does not store it: send it on every submit. Older servers answer 400 `request.body_shape` for this key.
|
|
8631
8727
|
fastMode:
|
|
8632
8728
|
type: boolean
|
|
8633
8729
|
description: >-
|
|
@@ -9434,6 +9530,7 @@ components:
|
|
|
9434
9530
|
`unexpected.needs_review` and carries that pause on `nestedPause`.
|
|
9435
9531
|
Consumers MUST branch with a `default` arm. Absent = the failure never had a code.
|
|
9436
9532
|
message: { type: string, description: 'Human-readable failure text. Absent when there was none.' }
|
|
9533
|
+
rewind: { $ref: '#/components/schemas/TaskRewindSettlement' }
|
|
9437
9534
|
nestedPause:
|
|
9438
9535
|
allOf: [{ $ref: '#/components/schemas/PausedCause' }]
|
|
9439
9536
|
description: >
|
|
@@ -9507,6 +9604,22 @@ components:
|
|
|
9507
9604
|
type: object
|
|
9508
9605
|
description: 'The thrown error''s `detail`: a JSON-plain snapshot (strings, finite numbers, booleans, null, arrays / plain objects of those; bounded). A member under a credential name stands as `"[redacted]"` (from server 7.154.0: `"«redacted»"`, the one mark table of the engine); every string leaf passes the error-sentence redaction (credential shapes masked, paths kept).'
|
|
9509
9606
|
additionalProperties: true
|
|
9607
|
+
omitted: { type: array, items: { type: string }, description: 'server >= 7.158.0 (engine 7.71.0): the `detail` members the snapshot bound left out whole or cut, by name in member order (at most 64; credential-named / invisible-byte keys are neither named nor counted). Absent = none cut.' }
|
|
9608
|
+
omittedMore: { type: integer, minimum: 1, description: 'server >= 7.158.0: how many more members the bound cut than `omitted` names.' }
|
|
9609
|
+
|
|
9610
|
+
TaskRewindSettlement:
|
|
9611
|
+
type: object
|
|
9612
|
+
additionalProperties: false
|
|
9613
|
+
required: [moved]
|
|
9614
|
+
description: >-
|
|
9615
|
+
server >= 7.158.0 (engine 7.71.0 `TaskRewindSettlement`, verbatim) — on a `failed` / `blocked` terminal of a leg whose request asked for a rewind (`resumeAt`,
|
|
9616
|
+
`rewindFilesTo`, `restoreFiles`), whatever code ended it: what the leg did to the working tree and to its conversation. `moved`: `none` no write / delete /
|
|
9617
|
+
mode change / directory was asked of the tree · `some` at least one answered done · `unknown` some were asked and none answered done (a failed write may have
|
|
9618
|
+
written part of a file). `branch`: `untouched` the request moved no leaf · `put_back` it branched and the refused leg put the leaf back · `left_moved` the leaf
|
|
9619
|
+
stays off where the request found it; ABSENT = not known.
|
|
9620
|
+
properties:
|
|
9621
|
+
moved: { type: string, enum: [none, some, unknown] }
|
|
9622
|
+
branch: { type: string, enum: [untouched, put_back, left_moved] }
|
|
9510
9623
|
|
|
9511
9624
|
TerminalModelOutputInvalidDetail:
|
|
9512
9625
|
type: object
|
|
@@ -9547,6 +9660,7 @@ components:
|
|
|
9547
9660
|
NOT submitted (the objective never became a message and the loop never started), so changing it and sending again is
|
|
9548
9661
|
meaningful. PRESENT only on that terminal; ABSENT means the agent reported `ReportBlocked` ("I cannot go on"), or a server
|
|
9549
9662
|
before 7.113.0.
|
|
9663
|
+
rewind: { $ref: '#/components/schemas/TaskRewindSettlement' }
|
|
9550
9664
|
|
|
9551
9665
|
TerminalBlockedDetail:
|
|
9552
9666
|
type: object
|
|
@@ -9658,6 +9772,26 @@ components:
|
|
|
9658
9772
|
server >= 7.154.0 (engine 7.68.0): the asks of this run that nobody could answer and that were refused, one per refused call, in refusal order (the same facts as the `delegation.ask_unresolvable` notice); the terminal is unchanged.
|
|
9659
9773
|
`toolName` / `remedy` pass the egress seat. present-iff at least one was refused — never empty.
|
|
9660
9774
|
items: { $ref: '#/components/schemas/RefusedAsk' }
|
|
9775
|
+
fileRestore:
|
|
9776
|
+
allOf: [{ $ref: '#/components/schemas/TaskFileRestore' }]
|
|
9777
|
+
description: >-
|
|
9778
|
+
server >= 7.158.0 (engine 7.71.0; paths and reasons pass the egress seat): the file restore this run carried out (`rewindFilesTo`, `resumeAt` + `restoreFiles`) —
|
|
9779
|
+
the same rows as the out-of-run rewind door's `restore`, except a store fault keeps the engine's `code` key (that door renames it `errorCode`). Present exactly when the run's restore was accepted, whatever terminal the run then reached;
|
|
9780
|
+
absent when no restore was asked, or it was refused or failed (whether the tree moved is then `terminal.rewind`).
|
|
9781
|
+
effectiveSandbox:
|
|
9782
|
+
type: object
|
|
9783
|
+
additionalProperties: true
|
|
9784
|
+
description: >-
|
|
9785
|
+
server >= 7.158.0 (engine 7.71.0 observation): the command-sandbox requirement this leg ran its commands under (`TaskSpec.sandbox` as judged). Its members are the
|
|
9786
|
+
engine's; this document does not spell them. Server 7.158.0 writes no `TaskSpec.sandbox`, so on this service the cell is structurally absent.
|
|
9787
|
+
effectiveBlockReadsOutsideRoots:
|
|
9788
|
+
type: boolean
|
|
9789
|
+
enum: [true]
|
|
9790
|
+
description: 'server >= 7.158.0 (engine 7.71.0 observation, always `true`): the leg refused reads outside its declared directories. Absent when it did not.'
|
|
9791
|
+
effectiveExternalContentTarget:
|
|
9792
|
+
type: boolean
|
|
9793
|
+
enum: [true]
|
|
9794
|
+
description: 'server >= 7.158.0 (engine 7.71.0 observation, always `true`): the leg treated what its execution environment produced as content from outside the deployment''s trust boundary. Absent when the fold is off.'
|
|
9661
9795
|
continuesFrom:
|
|
9662
9796
|
oneOf:
|
|
9663
9797
|
- type: object
|
|
@@ -10316,9 +10450,17 @@ components:
|
|
|
10316
10450
|
not: { required: [persistMiss] }
|
|
10317
10451
|
- properties: { persisted: { const: false } }
|
|
10318
10452
|
required: [persistMiss]
|
|
10453
|
+
not: { required: [revision] }
|
|
10319
10454
|
properties:
|
|
10320
10455
|
taskId: { type: string }
|
|
10321
10456
|
sessionId: { type: string }
|
|
10457
|
+
revision:
|
|
10458
|
+
type: integer
|
|
10459
|
+
description: >-
|
|
10460
|
+
server >= 7.159.0, PRESENT-IFF `persisted: true`: the revision the store minted, inside the write-back's atomic step, for this switch's write-back
|
|
10461
|
+
(a safe integer, opaque — compare only). Within one `taskId` a larger number landed later; it orders LANDED writes only, not the engine's live-mode
|
|
10462
|
+
transitions, and decides nothing. Keep the largest per `taskId`; `persisted: false` ⇒ the order is unknown (wait for the next numbered receipt or the next
|
|
10463
|
+
leg's `wiring_manifest`); `persisted: true` without it ⇒ a replica that does not number (an older server).
|
|
10322
10464
|
status: { type: string, enum: [running], description: 'Always `running` — only a running run can switch (a run that is not running answers 409).' }
|
|
10323
10465
|
permissionMode:
|
|
10324
10466
|
allOf: [{ $ref: '#/components/schemas/WiringManifestPermissionMode' }]
|
|
@@ -11273,6 +11415,9 @@ components:
|
|
|
11273
11415
|
(the engine's `unplacedHistoryRecordedUnder`)? ALWAYS `false` on 7.154.x; server >= 7.155.0 reads whether the out-of-run rewind door `POST /v1/sessions/{sessionId}/rewind-files` accepts its
|
|
11274
11416
|
vouching member `unplacedHistoryRecordedInCwd` (the door resolves AND the caller's `cwd` is honoured). A false bit only tells a shell not to send it — the per-file refusals (`recorded_elsewhere` / `place_unrecorded`)
|
|
11275
11417
|
do not read this bit and happen regardless, and it is not the "is rewind usable" bit (that is `sessionRewindFiles`). ABSENT = an older server.
|
|
11418
|
+
🔴 server >= 7.158.0 (engine 7.71.0) CHANGES ITS MEANING: always `true` — it states only the engine's invariant that every version records the
|
|
11419
|
+
directory it was recorded under; the meaning above moved to `file_history.unplaced_recorded_under`. One reading: look at
|
|
11420
|
+
`file_history.unplaced_recorded_under` first and read it alone when present; only when it is absent (server <= 7.157.x) read `file_history.recorded_place` the old way.
|
|
11276
11421
|
ask.workflow_member:
|
|
11277
11422
|
type: boolean
|
|
11278
11423
|
description: 'ENGINE CAPABILITY WORD (seventh; server >= 7.155.0 projects it, always `false`): the engine''s workflow-member asks and pending rows carry `workflowRunId` / `workflowAgentLabel`. A false word = this service does not promise it. ABSENT = an older server.'
|
|
@@ -11296,7 +11441,7 @@ components:
|
|
|
11296
11441
|
description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): the engine''s conversation-rewind entry. This service has no door that calls it (taking a turn back goes through the submit door''s `resumeAt` + `resumeAtMode`). ABSENT = an older server.'
|
|
11297
11442
|
instruction_family.external_includes:
|
|
11298
11443
|
type: boolean
|
|
11299
|
-
description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it
|
|
11444
|
+
description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it): a member of the instruction-file family declaration. On server 7.157.x always `false`; server >= 7.158.0 reads it per deployment — `true` when the deployment declares the instruction-file family (`PROJECT_MEMORY_ENABLED` is not `false`), and the submit body then accepts `instructionFamily.externalIncludes` (the caller''s approval list for instruction files outside the task root). ABSENT = an older server.'
|
|
11300
11445
|
instruction_family.host_text:
|
|
11301
11446
|
type: boolean
|
|
11302
11447
|
description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): a member of the instruction-file family declaration. The declaration this service hands the engine does not write it. ABSENT = an older server.'
|
|
@@ -11318,6 +11463,14 @@ components:
|
|
|
11318
11463
|
task.agent_home_dirs:
|
|
11319
11464
|
type: boolean
|
|
11320
11465
|
description: 'ENGINE CAPABILITY WORD (twelfth up to engine 7.69.x, twentieth from engine 7.70.0; server >= 7.155.0): this deployment accepts `settings.agentHomeDirs` (the caller''s homes) — same deployment column and the same reading as `task.agent_config_dirs`.'
|
|
11466
|
+
file_history.unplaced_recorded_under:
|
|
11467
|
+
type: boolean
|
|
11468
|
+
description: >-
|
|
11469
|
+
ENGINE CAPABILITY WORD (engine 7.71.0, twenty-second and last in its order; server >= 7.158.0 projects it, read per deployment): the former meaning of
|
|
11470
|
+
`file_history.recorded_place` — this service accepts the out-of-run rewind door's vouching member `unplacedHistoryRecordedInCwd` (a version with no recorded
|
|
11471
|
+
place may be rewound). Same value as `file_history.recorded_place` answered on the same deployment at 7.157.x. One reading: look at
|
|
11472
|
+
`file_history.unplaced_recorded_under` first and read it alone when present; only when it is absent (server <= 7.157.x) read `file_history.recorded_place` the old way.
|
|
11473
|
+
ABSENT = an older server.
|
|
11321
11474
|
artifact_host.libraries:
|
|
11322
11475
|
type: boolean
|
|
11323
11476
|
description: 'ENGINE CAPABILITY WORD (engine 7.70.0, last in its order; server >= 7.157.0 projects it, always `false`): the libraries an Artifact host declares available. This service mounts no Artifact host seat. ABSENT = an older server.'
|
|
@@ -11333,15 +11486,16 @@ components:
|
|
|
11333
11486
|
projects:
|
|
11334
11487
|
type: boolean
|
|
11335
11488
|
description: >-
|
|
11336
|
-
server >= 7.147.0 (config-dependent): the project registry read face (`GET /v1/projects[?archived]` · `GET /v1/projects/{id}`) resolves. true iff a registry exists — it is published only by the configuration center
|
|
11337
|
-
(a center configured and not dry-run); false => both doors answer 501 `capability.unavailable`. Read-only: the bit does not cover
|
|
11489
|
+
server >= 7.147.0 (config-dependent): the project registry read face (`GET /v1/projects[?archived]` · `GET /v1/projects/{id}`) resolves. true iff a registry exists — through 7.157.x it is published only by the configuration center
|
|
11490
|
+
(a center configured and not dry-run), from 7.158.0 also by a local-file configuration; false => both doors answer 501 `capability.unavailable`. Read-only: the bit does not cover
|
|
11491
|
+
write verbs — server >= 7.158.0 reports them in `projectsWrite`. ABSENT = an older server (both doors 404).
|
|
11338
11492
|
projectInheritance:
|
|
11339
11493
|
type: boolean
|
|
11340
11494
|
description: >-
|
|
11341
11495
|
server >= 7.150.0 (config-dependent; a predicate-class bit): a submitted run that carries `projectId` (or whose session row declared a project earlier) INHERITS the project brief (`goal` / `notes` / `note` items folded into the system prompt's
|
|
11342
|
-
append fold, after `appendSystemPrompt` and before `settings.outputStyle`, one
|
|
11496
|
+
append fold, after `appendSystemPrompt` and before `settings.outputStyle`, one cap: this deployment's `appendSystemPromptMaxChars`) from this deployment's project registry. The working directory (the first `folder` item fills an absent request `cwd`) and the `folder` / `file`
|
|
11343
11497
|
item names are inherited ONLY where `projectContext` is true (single-owner host deployments): `projectInheritance: true` does not promise an inherited `cwd`. Read the bit; do not infer it
|
|
11344
|
-
from `projects` (today both read the one "a registry exists" fact, which is not a promise they stay one). True is NOT "every project is inherited": only a registration that carries
|
|
11498
|
+
from `projects` (today both read the one "a registry exists" fact, which is not a promise they stay one). True is NOT "every project is inherited": only a registration that carries a content attestation (`ProjectRow.contentAttestedAt`: stamped by the configuration center's publisher write path or, server >= 7.158.0, by this deployment's own project write door where it declares one user or sets `PROJECT_WRITE_ATTESTS_CONTENT=true`)
|
|
11345
11499
|
is inherited. A client that already folds project content into `appendSystemPrompt` stops folding on `true` (else the brief repeats); an append segment near the cap plus the brief answers 400 `request.field_conflict` (`reason: "system_prompt_fold"`,
|
|
11346
11500
|
`fields` includes `projectId`). ABSENT = server <= 7.149.x (no inheritance).
|
|
11347
11501
|
sessionRewindFiles:
|
|
@@ -12551,8 +12705,20 @@ components:
|
|
|
12551
12705
|
`TaskSpec.instructionFamily` declaration form, the same value every leg's spec carries). `null` = the deployment declares none
|
|
12552
12706
|
(`PROJECT_MEMORY_ENABLED=false`). It says what the deployment declares, not what a run read (that is the leg's `wiring_manifest.instructions`).
|
|
12553
12707
|
Absent = an older server.
|
|
12554
|
-
appendSystemPromptMaxChars: { type: integer, minimum: 1, description: 'server >= 7.156.0, always present (a
|
|
12555
|
-
settingsOutputStyleMaxChars: { type: integer, minimum: 1, description: 'server >= 7.156.0, always present — the cap on `settings.outputStyle` (the style BODY), the same
|
|
12708
|
+
appendSystemPromptMaxChars: { type: integer, minimum: 1, description: 'server >= 7.156.0, always present (a positive integer) — the cap on the top-level `appendSystemPrompt` (JS string length); over it ⇒ 400 `request.field_invalid` with `cap` of the same number. 7.156.x – 7.157.x a build fact, 16384. server >= 7.158.0 read PER DEPLOYMENT: the operator''s `SYSTEM_PROMPT_MAX_CHARS`, otherwise 16384 on a multi-principal deployment (`REQUIRE_PRINCIPAL=true`) and 131072 on a single-principal one — read it from each server, never copy it across deployments.' }
|
|
12709
|
+
settingsOutputStyleMaxChars: { type: integer, minimum: 1, description: 'server >= 7.156.0, always present — the cap on `settings.outputStyle` (the style BODY), the same number and the same refusal as `appendSystemPromptMaxChars` (per deployment from server 7.158.0).' }
|
|
12710
|
+
projectsWrite:
|
|
12711
|
+
type: boolean
|
|
12712
|
+
description: >-
|
|
12713
|
+
server >= 7.158.0, always present (config-dependent) — the project write face `POST /v1/projects` / `PATCH /v1/projects/{projectId}` (archive included) is
|
|
12714
|
+
usable: a registry exists, the configuration lives in a local file, and the configuration refresh can be triggered. `false` ⇒ both doors answer 501
|
|
12715
|
+
`capability.unavailable` (projects are created in the configuration center there). ABSENT = an older server (both doors 405).
|
|
12716
|
+
transcriptPath:
|
|
12717
|
+
type: boolean
|
|
12718
|
+
enum: [true]
|
|
12719
|
+
description: >-
|
|
12720
|
+
server >= 7.158.0, PRESENT-IFF this deployment honours the submit key `transcriptPath` (single-principal host lane: `REMOTE_EXEC=host` without
|
|
12721
|
+
`REQUIRE_PRINCIPAL`); never `false`. Send the key only when this is present. ABSENT = this deployment does not honour it, or an older server.
|
|
12556
12722
|
mcpHostReads: { type: boolean, description: 'server >= 7.156.0, constant true — the session MCP panel''s engine host reads: each `GET /v1/sessions/{id}/mcp` `servers[]` entry MAY carry `prompts` / `resources` / `resourceTemplates`, and `POST /v1/sessions/{id}/mcp/prompts/get` exists. It says the server supports them, not that a given answer carries all three. Absent = an older server.' }
|
|
12557
12723
|
a2aPeers: { type: boolean, description: 'server >= 7.156.0 (facility-dependent) — `GET /v1/a2a/peers` is available (this replica''s per-peer state `published` / `pending` / `effective` / `revoked` + the publish switch). Absent = an older server (the door answers 404 `not_found.route`).' }
|
|
12558
12724
|
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`).' }
|
|
@@ -14303,7 +14469,44 @@ components:
|
|
|
14303
14469
|
registeredBy: { type: string }
|
|
14304
14470
|
registeredAt: { type: string, format: date-time }
|
|
14305
14471
|
archivedAt: { type: string, format: date-time }
|
|
14306
|
-
contentAttestedAt: { type: string, format: date-time, description: "server >= 7.150.0, PRESENT-IFF the registration carries the configuration center's
|
|
14472
|
+
contentAttestedAt: { type: string, format: date-time, description: "server >= 7.150.0, PRESENT-IFF the registration carries a content attestation: the time a write path entitled to attest last admitted the project's goal / notes / contextItems. Two write paths attest: the configuration center's, under the publisher role (settings-schema 25.1.0), and, server >= 7.158.0, this deployment's own project write door (`POST /v1/projects` / `PATCH /v1/projects/{projectId}`) on a deployment that declares one user (`OPERATOR_SINGLE_USER=true`) or sets the knob `PROJECT_WRITE_ATTESTS_CONTENT` to `true`, and only when it creates the project or actually changes a brief field (`goal` / `notes` / `contextItems`) — an unchanged re-write does not stamp; elsewhere a write that changes a brief field removes an existing attestation. Present = the project is eligible for context inheritance (`capabilities.projectInheritance`); absent = the content did not pass an attesting write path (written before the upgrade / an older server / a deployment that does not attest) — the row is still listed and readable. A proof of admission, not a freshness claim." }
|
|
14473
|
+
contentWithheld:
|
|
14474
|
+
type: string
|
|
14475
|
+
enum: [unattested]
|
|
14476
|
+
description: >-
|
|
14477
|
+
server >= 7.158.0, PRESENT-IFF the project's goal / notes / contextItems are not given to the model right now; the value is the reason word (closed set:
|
|
14478
|
+
`unattested` = the registration carries no `contentAttestedAt`, the same test the project brief uses). Rides the read faces and the write faces' rows alike.
|
|
14479
|
+
|
|
14480
|
+
ProjectCreateBody:
|
|
14481
|
+
type: object
|
|
14482
|
+
additionalProperties: false
|
|
14483
|
+
required: [displayName]
|
|
14484
|
+
description: >-
|
|
14485
|
+
server >= 7.158.0 — the `POST /v1/projects` body, a closed set (the server's `PROJECT_CREATE_KEYS`; value shapes and limits are the settings contract's
|
|
14486
|
+
registration). `gitRemotes` / `defaultScopes` / identity keys / attestation keys are not accepted (400 `request.body_shape`, named in `unknownKeys`).
|
|
14487
|
+
properties:
|
|
14488
|
+
displayName: { type: string }
|
|
14489
|
+
goal: { type: string }
|
|
14490
|
+
notes: { type: string }
|
|
14491
|
+
contextItems: { type: array, items: { $ref: '#/components/schemas/ProjectContextItem' } }
|
|
14492
|
+
icon: { type: string }
|
|
14493
|
+
color: { type: string }
|
|
14494
|
+
|
|
14495
|
+
ProjectPatchBody:
|
|
14496
|
+
type: object
|
|
14497
|
+
additionalProperties: false
|
|
14498
|
+
minProperties: 1
|
|
14499
|
+
description: >-
|
|
14500
|
+
server >= 7.158.0 — the `PATCH /v1/projects/{projectId}` body, a closed set (`PROJECT_PATCH_KEYS` = the create keys + `archived`), at least one member;
|
|
14501
|
+
an optional member given `null` is cleared (`displayName` cannot be cleared). `archived: true` stamps `archivedAt`, `false` clears it.
|
|
14502
|
+
properties:
|
|
14503
|
+
displayName: { type: string }
|
|
14504
|
+
goal: { type: [string, 'null'] }
|
|
14505
|
+
notes: { type: [string, 'null'] }
|
|
14506
|
+
contextItems: { type: [array, 'null'], items: { $ref: '#/components/schemas/ProjectContextItem' } }
|
|
14507
|
+
icon: { type: [string, 'null'] }
|
|
14508
|
+
color: { type: [string, 'null'] }
|
|
14509
|
+
archived: { type: boolean }
|
|
14307
14510
|
|
|
14308
14511
|
ProjectsPage:
|
|
14309
14512
|
type: object
|
|
@@ -14333,7 +14536,8 @@ components:
|
|
|
14333
14536
|
unplacedHistoryRecordedInCwd:
|
|
14334
14537
|
type: boolean
|
|
14335
14538
|
description: >-
|
|
14336
|
-
server >= 7.155.0 (gate on the engine capability
|
|
14539
|
+
server >= 7.155.0 (gate on the engine capability words — one reading: look at `file_history.unplaced_recorded_under` first and read it alone when present;
|
|
14540
|
+
only when it is absent (server <= 7.157.x) read `file_history.recorded_place` the old way; send this member only on `true`): the session owner's GUARANTEE that the file history
|
|
14337
14541
|
with no recorded place (recorded before the upgrade / synced in) was recorded in THIS request's `cwd` - restored by root in this one rewind; `false` =
|
|
14338
14542
|
absent. Non-boolean => 400 `request.field_invalid`. Refusals (before `to` is resolved, before any file is touched): a caller let in only by operator
|
|
14339
14543
|
override => 403 `auth.forbidden`; no honoured `cwd` in the same request => 400 `request.field_conflict` (`reason: unplaced_history_cwd`,
|
|
@@ -14403,10 +14607,10 @@ components:
|
|
|
14403
14607
|
zero counts and `files` full of refused rows. The preview is the projection of the real restore's plan. ABSENT = an older server (or an engine that does not answer per-file facts) — not "nothing was refused".
|
|
14404
14608
|
server >= 7.155.0 (engine 7.69.0): the preview ALSO carries the plan's `refused` / `failed` / `leftAsIs` (below).
|
|
14405
14609
|
refused:
|
|
14406
|
-
allOf: [{ $ref: '#/components/schemas/
|
|
14610
|
+
allOf: [{ $ref: '#/components/schemas/SessionRewindLedgerRows/properties/refused' }]
|
|
14407
14611
|
description: 'server >= 7.155.0 (engine 7.69.0): the plan''s refused rows, row for row the ledger''s `refused`. Both `refused` and `failed` empty = a complete plan. ABSENT = an engine that does not answer them (<= 7.154.x) — never "none".'
|
|
14408
14612
|
failed:
|
|
14409
|
-
allOf: [{ $ref: '#/components/schemas/
|
|
14613
|
+
allOf: [{ $ref: '#/components/schemas/SessionRewindLedgerRows/properties/failed' }]
|
|
14410
14614
|
description: 'server >= 7.155.0 (engine 7.69.0): what the restore could not judge or reach before any write (an unreadable version record or blob, an aborted attempt), row for row the ledger''s `failed`.'
|
|
14411
14615
|
leftAsIs:
|
|
14412
14616
|
type: array
|
|
@@ -14455,10 +14659,11 @@ components:
|
|
|
14455
14659
|
reason: { type: string }
|
|
14456
14660
|
outsideRoot: { type: boolean, description: 'server >= 7.155.0 (engine 7.69.0): whether `targetPath` lies outside the root this rewind is handed, whatever the row''s action, refusal or failure. On every row the engine answers; ABSENT = an engine before 7.69.0 — never "inside".' }
|
|
14457
14661
|
|
|
14458
|
-
|
|
14662
|
+
SessionRewindLedgerRows:
|
|
14459
14663
|
type: object
|
|
14460
14664
|
description: >-
|
|
14461
|
-
The
|
|
14665
|
+
The rows both restore ledgers share — `SessionRewindLedger` (the out-of-run rewind door's `restore`) and `TaskFileRestore` (the run result's `fileRestore`) are this plus their own
|
|
14666
|
+
`error`. The per-file restore ledger (engine `FileHistoryRestoreResult`; `outcome` is only `complete` or `partial` here — `failed` is a thrown engine refusal answered as an error code). `partial` lists EVERY refused / failed file;
|
|
14462
14667
|
per-file idempotent. Free-text leaves pass the egress seat (paths one line, unbounded; reasons one line, bounded to 500 code units; credential-shaped spans masked).
|
|
14463
14668
|
additionalProperties: true
|
|
14464
14669
|
required: [outcome, filesChanged, identicalSkipped, refused, failed]
|
|
@@ -14475,7 +14680,7 @@ components:
|
|
|
14475
14680
|
properties:
|
|
14476
14681
|
path: { type: string }
|
|
14477
14682
|
reason: { type: string }
|
|
14478
|
-
class: { type: string, description: 'The engine''s word (`link_safety` / `base_unavailable` / `key_unresolvable` / server >= 7.154.0 `recorded_elsewhere` / `place_unrecorded`); read as an open set.' }
|
|
14683
|
+
class: { type: string, description: 'The engine''s word (`link_safety` / `base_unavailable` / `key_unresolvable` / server >= 7.154.0 `recorded_elsewhere` / `place_unrecorded` / server >= 7.158.0 `changed_since_plan` — the file differed from what the restore''s plan read, so it was left with the other writer''s bytes); read as an open set.' }
|
|
14479
14684
|
recordedUnder: { type: string, description: 'server >= 7.154.0, on a `recorded_elsewhere` row: the directory the version was recorded under (its absolute real path).' }
|
|
14480
14685
|
action: { type: string, enum: [write, delete], description: 'server >= 7.154.0: what the rewind would have done at that file.' }
|
|
14481
14686
|
failed:
|
|
@@ -14492,21 +14697,61 @@ components:
|
|
|
14492
14697
|
type: array
|
|
14493
14698
|
items: { $ref: '#/components/schemas/SessionRewindFileRow' }
|
|
14494
14699
|
description: 'server >= 7.154.0: one row per changed or refused file (and per failed file whose write / delete landed); the per-file failure reason still reads from `failed[]`. ABSENT = an older server.'
|
|
14495
|
-
error: { $ref: '#/components/schemas/SessionRewindLedgerError' }
|
|
14496
14700
|
leftAsIs:
|
|
14497
14701
|
type: array
|
|
14498
14702
|
items: { $ref: '#/components/schemas/SessionRewindLeftAsIsRow' }
|
|
14499
14703
|
description: 'server >= 7.155.0 (engine 7.69.0): the tracked files this restore LEFT as they are, one row each with its class; never counted in `outcome`. ABSENT = none.'
|
|
14500
14704
|
|
|
14705
|
+
SessionRewindLedger:
|
|
14706
|
+
description: 'The out-of-run rewind door''s ledger (`POST /v1/sessions/{sessionId}/rewind-files` `restore`): the shared rows plus a store fault whose code key is `errorCode` (`SessionRewindLedgerError`).'
|
|
14707
|
+
allOf:
|
|
14708
|
+
- { $ref: '#/components/schemas/SessionRewindLedgerRows' }
|
|
14709
|
+
- type: object
|
|
14710
|
+
properties:
|
|
14711
|
+
error: { $ref: '#/components/schemas/SessionRewindLedgerError' }
|
|
14712
|
+
|
|
14713
|
+
TaskFileRestore:
|
|
14714
|
+
description: >-
|
|
14715
|
+
server >= 7.158.0 (engine 7.71.0): the run result's `fileRestore` — the same rows as the out-of-run door's ledger, but the store fault keeps the engine's own shape
|
|
14716
|
+
(`TaskFileRestoreError`: the code key is `code`). Only the out-of-run door renames it to `errorCode`.
|
|
14717
|
+
allOf:
|
|
14718
|
+
- { $ref: '#/components/schemas/SessionRewindLedgerRows' }
|
|
14719
|
+
- type: object
|
|
14720
|
+
properties:
|
|
14721
|
+
error: { $ref: '#/components/schemas/TaskFileRestoreError' }
|
|
14722
|
+
|
|
14501
14723
|
SessionRewindLedgerError:
|
|
14502
14724
|
type: object
|
|
14503
|
-
description: 'A store fault on the ledger (present iff the store answered one). The engine''s `code` member is `errorCode` on this
|
|
14725
|
+
description: 'A store fault on the out-of-run door''s ledger (present iff the store answered one). The engine''s `code` member is `errorCode` on this door; `permanence` verbatim (absent = the store did not judge). The run result''s ledger keeps `code` (`TaskFileRestoreError`).'
|
|
14504
14726
|
additionalProperties: true
|
|
14505
14727
|
required: [errorCode, message]
|
|
14506
14728
|
properties:
|
|
14507
14729
|
errorCode: { type: string }
|
|
14508
14730
|
message: { type: string }
|
|
14509
14731
|
permanence: { type: string, enum: [transient, terminal] }
|
|
14732
|
+
limit: { $ref: '#/components/schemas/FileHistoryLimit' }
|
|
14733
|
+
|
|
14734
|
+
TaskFileRestoreError:
|
|
14735
|
+
type: object
|
|
14736
|
+
description: 'server >= 7.158.0: a store fault on the run result''s `fileRestore` — the engine''s `FileHistoryError` as it is (`code`, not `errorCode`); `message` passes the egress seat.'
|
|
14737
|
+
additionalProperties: true
|
|
14738
|
+
required: [code, message]
|
|
14739
|
+
properties:
|
|
14740
|
+
code: { type: string }
|
|
14741
|
+
message: { type: string }
|
|
14742
|
+
permanence: { type: string, enum: [transient, terminal] }
|
|
14743
|
+
limit: { $ref: '#/components/schemas/FileHistoryLimit' }
|
|
14744
|
+
|
|
14745
|
+
FileHistoryLimit:
|
|
14746
|
+
type: object
|
|
14747
|
+
additionalProperties: false
|
|
14748
|
+
required: [bytes, source]
|
|
14749
|
+
description: >-
|
|
14750
|
+
server >= 7.158.0 (engine 7.71.0), only on a `too_large` fault (a version to store is over the store's cap): how many bytes one version may hold and
|
|
14751
|
+
where that cap comes from (`store_option` = the store's configuration; `backend` = the storage medium's own bound). Absent on every other code.
|
|
14752
|
+
properties:
|
|
14753
|
+
bytes: { type: integer, minimum: 0 }
|
|
14754
|
+
source: { type: string, enum: [store_option, backend] }
|
|
14510
14755
|
|
|
14511
14756
|
SessionRewindFilesPreviewResult:
|
|
14512
14757
|
type: object
|
|
@@ -14741,7 +14986,7 @@ components:
|
|
|
14741
14986
|
|
|
14742
14987
|
ResumeStartupCause:
|
|
14743
14988
|
type: string
|
|
14744
|
-
enum: [environment, session_gone, transcript_corrupt, tool_unavailable, configuration, decision_rejected]
|
|
14989
|
+
enum: [environment, session_gone, transcript_corrupt, tool_unavailable, configuration, decision_rejected, superseded]
|
|
14745
14990
|
description: >-
|
|
14746
14991
|
WHY a parked resume could not start its approved action — the engine's closed `RESUME_STARTUP_CAUSES` (core 7.51.0; six words since core 7.52.0, server >= 7.132.0), word for word and in order. The body key of the 422 `parked_resume.startup_failed`
|
|
14747
14992
|
(`ErrorResponse.cause`; SDK `ParkedResumeStartupError.startupCause`). Server >= 7.129.0 screens the engine's word against this set before it goes out (a word the engine did not say, or one outside the set => the key is absent).
|
|
@@ -14749,6 +14994,8 @@ components:
|
|
|
14749
14994
|
`tool_unavailable` the approved tool is not available to the resumed leg (gone, or replaced by a different contract) — this approval cannot run, decide afresh · `configuration` the deployment's
|
|
14750
14995
|
configuration refuses the resumed leg; a retry under the same configuration fails the same way · `decision_rejected` the decision does not fit the checkpoint (another gate's answer, an input the constraints
|
|
14751
14996
|
refuse) — correct it and resubmit. The shared `ErrorResponse.cause` stays an open string in this document because the key is shared by other codes and by servers <= 7.128.x (which relay the engine's word unscreened).
|
|
14997
|
+
`superseded` (core 7.71.0, server >= 7.158.0): this run's claim won, then the grant was taken over by another holder and the card was reopened for
|
|
14998
|
+
whoever holds it now — do not resume again, do not decide again, do not void it from here; re-read the pending list. Seven words since core 7.71.0.
|
|
14752
14999
|
|
|
14753
15000
|
ElicitResponse:
|
|
14754
15001
|
type: object
|
|
@@ -15320,11 +15567,17 @@ components:
|
|
|
15320
15567
|
decision: { type: string, enum: [approve, deny] }
|
|
15321
15568
|
state:
|
|
15322
15569
|
description: >
|
|
15323
|
-
the engine's reading,
|
|
15570
|
+
the engine's reading, five states (in play = `open` / `carried`; out = `driven` / `spent`; `blocked` = in play but not used in this state): `open` — no record speaks of it; `carried` — a continuation
|
|
15324
15571
|
(`runId`) carried it and ended before reaching the parked step (not spent; the server holds it back on its own only while that continuation is the current holder
|
|
15325
15572
|
— then it rides along with another decision for the same holder run, and the pull leg still hands it over — otherwise it is delivered like `open`); `driven` — a
|
|
15326
15573
|
continuation (`runId`) drove the parked step with it; `spent` — no later hand-over continues the run (`reason`: the engine's settling word, today
|
|
15327
|
-
`decision_spent` / `card_unresumable` / `launch_unreadable` / `denied`, read open; `code` optional
|
|
15574
|
+
`decision_spent` / `card_unresumable` / `launch_unreadable` / `denied`, read open; `code` optional; `by`, server >= 7.158.0 and always there from that
|
|
15575
|
+
release: `mark` = a continuation told it and recorded the final mark, `drive` = a run of the tree driving it was refused and no continuation has told it
|
|
15576
|
+
yet); `blocked` (server >= 7.157.0 — it could appear from that release on, this schema missed it until SDK 49.0.0) — the engine's continuation judged
|
|
15577
|
+
it in the state `condition` names and did not use it: handed over again in that same state it is set aside again, a person's new decision for the card
|
|
15578
|
+
is judged on its own (`reason` the engine's unused-reason word, read open; `code` optional; `inputs` the fold inputs a `host_changed` named;
|
|
15579
|
+
`condition` a fixed-length opaque string — compare it, never parse it). `class` (server >= 7.158.0, on `spent` / `blocked` only, when the engine's
|
|
15580
|
+
reason table answers): what is left to do with the decision (`WorkflowParkDecisionClass`).
|
|
15328
15581
|
oneOf:
|
|
15329
15582
|
- type: object
|
|
15330
15583
|
additionalProperties: false
|
|
@@ -15336,8 +15589,35 @@ components:
|
|
|
15336
15589
|
properties: { kind: { type: string, enum: [carried, driven] }, runId: { type: string } }
|
|
15337
15590
|
- type: object
|
|
15338
15591
|
additionalProperties: false
|
|
15339
|
-
required: [kind, runId, reason]
|
|
15340
|
-
properties:
|
|
15592
|
+
required: [kind, runId, reason, by]
|
|
15593
|
+
properties:
|
|
15594
|
+
kind: { const: spent }
|
|
15595
|
+
runId: { type: string }
|
|
15596
|
+
reason: { type: string }
|
|
15597
|
+
code: { type: string }
|
|
15598
|
+
by: { type: string, enum: [mark, drive], description: 'server >= 7.158.0, minted every time (the engine''s type requires it); required here because this schema describes the server it locksteps with — older servers omit it.' }
|
|
15599
|
+
class: { $ref: '#/components/schemas/WorkflowParkDecisionClass' }
|
|
15600
|
+
- type: object
|
|
15601
|
+
additionalProperties: false
|
|
15602
|
+
required: [kind, runId, reason, condition]
|
|
15603
|
+
description: server >= 7.157.0 (engine 7.70.0).
|
|
15604
|
+
properties:
|
|
15605
|
+
kind: { const: blocked }
|
|
15606
|
+
runId: { type: string }
|
|
15607
|
+
reason: { type: string }
|
|
15608
|
+
code: { type: string }
|
|
15609
|
+
inputs: { type: array, items: { type: string } }
|
|
15610
|
+
condition: { type: string }
|
|
15611
|
+
class: { $ref: '#/components/schemas/WorkflowParkDecisionClass' }
|
|
15612
|
+
|
|
15613
|
+
WorkflowParkDecisionClass:
|
|
15614
|
+
type: string
|
|
15615
|
+
enum: [deliverable, decide_again, start_over, withdraw]
|
|
15616
|
+
description: >-
|
|
15617
|
+
server >= 7.158.0 (engine 7.71.0 `WorkflowParkUnusedClass`, word for word) — on a decision cell's `spent` / `blocked` state: what is left to do with the
|
|
15618
|
+
decision. `deliverable` the same decision is still usable, the next hand-over judges it again · `decide_again` only a person's new decision for this card lets
|
|
15619
|
+
the run go on · `start_over` this card cannot be continued, restart the workflow · `withdraw` the card no longer waits, nothing to do (the server does not
|
|
15620
|
+
hand the card's pending state to the judge, so this word does not appear today). Branch by word; read a word you do not know as absent.
|
|
15341
15621
|
|
|
15342
15622
|
# ── B4 命名化(2026-07-31):以下 10 个 component 与 SDK resources/* 的同名导出类型 1:1;内容为
|
|
15343
15623
|
# 原端点内联 schema 的字节级搬运(零语义变更),使用点换 $ref。census 封闭注随迁。
|
|
@@ -15488,6 +15768,14 @@ components:
|
|
|
15488
15768
|
resultChars: { type: integer, description: 'server >=7.9.0 (A-002.6): the ORIGINAL result length in characters; present only alongside resultTruncated.' }
|
|
15489
15769
|
tokens: { type: integer, description: 'present only when the result carried stats.' }
|
|
15490
15770
|
turns: { type: integer, description: 'present only when the result carried stats.' }
|
|
15771
|
+
stopped:
|
|
15772
|
+
type: boolean
|
|
15773
|
+
enum: [true]
|
|
15774
|
+
description: >-
|
|
15775
|
+
server >= 7.158.0 (engine 7.71.0, the journal's third arm) — PRESENT-IFF this ordinal's member was stopped by a stop of its own (the workflow script
|
|
15776
|
+
called `stop()` on the member's stream handle, or the workflow handle stopped the member); never `false`. The rest of the row is the stopped leg's
|
|
15777
|
+
result, projected as any other row; a resume replays it as stopped and never runs it again.
|
|
15778
|
+
stoppedBy: { type: string, description: 'server >= 7.158.0, present-iff `stopped`: who stopped it — the engine''s open word verbatim (the same word family as `stoppedBy` on fleet rows).' }
|
|
15491
15779
|
parked:
|
|
15492
15780
|
type: boolean
|
|
15493
15781
|
enum: [true]
|
|
@@ -16296,7 +16584,7 @@ components:
|
|
|
16296
16584
|
executionOutcome?}` — it carries NO `status` and NO `taskId` (nothing was accepted this time). Its named schema is
|
|
16297
16585
|
`DecisionReplayReceipt` (the plan-review door's replay is the same mint). So no key
|
|
16298
16586
|
is guaranteed by all four shapes; discriminate: `idempotent` -> replay; otherwise `decision` present ->
|
|
16299
|
-
parked receipt (`ParkedDecideAccepted`,
|
|
16587
|
+
parked receipt (`ParkedDecideAccepted`, five arms, read `status`: `resuming` / `failed` / `killed` (server >= 7.158.0) / `recorded` / `delivered`);
|
|
16300
16588
|
no `decision` -> task-level acceptance / terminal. (The older reading "`decision` without `sessionId`" fails on
|
|
16301
16589
|
the server >= 7.155.0 `delivered` arm, which carries `sessionId`.)
|
|
16302
16590
|
`taskId` rides `getActiveTaskId` on the terminal leg (omitted when there is no active row).
|
|
@@ -16365,7 +16653,7 @@ components:
|
|
|
16365
16653
|
OPEN string — do NOT narrow. Task-level acceptance (server >= 7.37): the literal `resuming` (= accepted,
|
|
16366
16654
|
resume in flight — follow the run stream). Terminal leg: the run's resulting status (`completed`/`failed`/
|
|
16367
16655
|
`suspended`/`needs_review`). Parked leg: the literal `resuming` (= accepted, revive in flight) — or, server >= 7.136.0, the literal `failed` on the VOIDED receipt (a deny that closed a card which could never revive; nothing resumes) —
|
|
16368
|
-
or, server >= 7.155.0 on a workflow-member card, `recorded` / `delivered` (closed; see `WorkflowParkDecisionReceipt`). The parked receipt's words are a closed set of
|
|
16656
|
+
or, server >= 7.155.0 on a workflow-member card, `recorded` / `delivered` (closed; see `WorkflowParkDecisionReceipt`) — or, server >= 7.158.0 on a background agent, `killed` (a deny that stopped the agent; nothing resumes). The parked receipt's words are a closed set of five (`ParkedDecideAccepted`; `ParkedRedeemStatus` ∪ `WorkflowParkDecisionReceiptStatus`).
|
|
16369
16657
|
decision:
|
|
16370
16658
|
type: string
|
|
16371
16659
|
enum: [approve, deny]
|
|
@@ -18650,13 +18938,6 @@ components:
|
|
|
18650
18938
|
🔴 NOT interchangeable with `taskId`: the workflow-child park lane mints no taskId at all (this
|
|
18651
18939
|
decision never landed on any run, so minting one would be a lie), and the other two decide lanes
|
|
18652
18940
|
mint no runId. Branch by `errorCode`, never fall back from one handle to the other.
|
|
18653
|
-
readableHolderRunId:
|
|
18654
|
-
type: string
|
|
18655
|
-
description: >-
|
|
18656
|
-
server >= 7.118.0, on `decide.workflow_parks_unreadable` (409) ONLY and only on its "the record cannot be read" cause: the
|
|
18657
|
-
readable record that holds the card at the highest generation (absent when there is none or a tie — never null). Where the
|
|
18658
|
-
work can be carried on — a CLUE, not a way to unblock this decision (the damaged record `runId` names keeps it undeliverable
|
|
18659
|
-
until it is repaired). SDK reads it as `DecideWorkflowParksUnreadableError.readableHolderRunId`.
|
|
18660
18941
|
runIds:
|
|
18661
18942
|
type: array
|
|
18662
18943
|
items: { type: string }
|
|
@@ -21242,6 +21523,9 @@ components:
|
|
|
21242
21523
|
Server >= 7.155.0 (engine 7.69.0): on a delegated leg `sessionId` = the delegation tree's ROOT session, the child session whose call was refused rides in
|
|
21243
21524
|
`sourceSessionId?` and the agent id in `agentId?` (both only on delegated legs; a top-level leg is unchanged) — so a child's refusal now reaches the root
|
|
21244
21525
|
session's stream; read "whose call was refused" as `sourceSessionId ?? sessionId`.
|
|
21526
|
+
Server >= 7.158.0 (engine 7.71.0): when a durable approval park was tried for the call and could not be minted, the detail also carries `parkFailed` (the park's own
|
|
21527
|
+
sentence — the deployment fact to change so such asks can wait for a person) and, when the failure is a missing park facility, `parkFailedReason` (the same closed words as
|
|
21528
|
+
`RefusedAsk.parkFailedReason`); `remedies` then starts with `{ kind: "park" }` (the arm carries nothing else — read the two keys beside it). The same fact is on the run result's `RefusedAsk`.
|
|
21245
21529
|
Deduplicated ONCE PER TOOL CALL. 🔴 `parkLaneExisted` is a DISCRIMINANT, not a count: `true` = a park lane
|
|
21246
21530
|
was armed but declined/failed (check the store, check authorisation), `false` = there was no lane at all
|
|
21247
21531
|
(wire one up). The two recovery verbs differ, so a consumer MUST render them apart — NEVER fold them into
|
|
@@ -21403,6 +21687,23 @@ components:
|
|
|
21403
21687
|
keep the byte floor, `READ_DENY_FLOOR_REQUIRED` is not set; when it is set the run does not go: the synchronous `POST /v1/tasks` answers 409 with the same code). `detail` =
|
|
21404
21688
|
`{ rowCount, sessionId, runId }` - the table's row count and the run it speaks of (a ladder level / verifier / subagent leg is its own run id); `message` is rewritten by the server per lane.
|
|
21405
21689
|
The same `{ code, message }` pair lands once more on the terminal result as `readDenyFloor` (`TaskResult.readDenyFloor`).
|
|
21690
|
+
server 7.158.0 (engine 7.71.0; contract appendix D.3, six new user codes): `task.tool_turn_unrecovered` (attention `act`) — split off `task.tool_turn_incomplete`: the turn that dropped the
|
|
21691
|
+
calls did NOT say what became of them (a refusal, an abort, a completion with nothing to run, a torn stream), plus the `bad_frame` / `missing_result_synthesized` causes;
|
|
21692
|
+
`{cause, count, toolCallIds?, sessionId, runId}`, never `outcome`; per run per code per cause. From 7.158.0 `task.tool_turn_incomplete` carries only the shapes whose turn says
|
|
21693
|
+
the outcome (`outcome` always present, attention `inform`). · `task.wait_ceiling_reached` (`act`) — a one-shot submission's ending waited for the loop-type background tasks it started and
|
|
21694
|
+
gave up at the ceiling (engine default 600000 ms); the answer stands as the result. `{sessionId, runId, taskId?, ceilingMs, waitedFor}`, `waitedFor` never empty, each row
|
|
21695
|
+
`{taskId, taskType?, status?, description?, stopped?}` (the same reading `task.interrupt_unconsumed` carries); once per such run. · `instructions.outside_root` (`inform`) — a member the instruction
|
|
21696
|
+
family names was LOADED although its real location (links followed) lies outside its root and the task root, as the reference reads it; `{path, target, sessionId, runId}`, never the
|
|
21697
|
+
contents; once per session per (`path`, `target`); a delegated leg records it without telling. · `workflow.parked_decision_used` (`audit`) — the positive pair of
|
|
21698
|
+
`workflow.parked_decision_unused`: the decisions this leg carried started a continuation; `{runId, decisionIds, decisionKey, continuedAs, sessionId}`, `decisionKey` the same value on both
|
|
21699
|
+
codes (compare it, never parse it); once per continuation the engine started. · `approval.session_call_granted` (`audit`) — the approver's "allow this command for the session" took:
|
|
21700
|
+
`{rule, cwd, programs, toolName, toolCallId, checkpointId, sessionId, runId, taskId}` (`rule` = the written row's text, no word of the command) · `approval.session_call_grant_rejected` (`audit`) —
|
|
21701
|
+
it did not take: `{reason, offered?, requested?, toolName, toolCallId, checkpointId, sessionId, runId, taskId}`, `reason` in the engine's closed set (`not_a_string` / `no_offer` / `mismatch` /
|
|
21702
|
+
`edited` / `not_written`; read OPEN); both once per answered ask. This server does not reach the two `approval.session_call_*` codes today: the engine offers that choice only when
|
|
21703
|
+
the deployment hands it a revocable session-rule partition, and this server hands only the durable one.
|
|
21704
|
+
`instructions.withheld` (engine 7.70.0, server >= 7.157.0) also carries, beside `{path, reason, sessionId, runId}`: `target` on the `outside_its_root` shape only (the real location the engine
|
|
21705
|
+
judged — the value a user approval sends back in `TaskRequest.instructionFamily.externalIncludes`, server >= 7.158.0) and `includedBy` / `spelled` only when the refused probe came through an
|
|
21706
|
+
`@` include (`includedBy` = the including file's real path or the host text's name, `spelled` = the path after the `@` as the engine read it).
|
|
21406
21707
|
A notice whose `detail.sessionId` is absent is HONESTLY NOT DELIVERED (the server never guesses a session),
|
|
21407
21708
|
so the frame's absence does NOT mean "did not happen" — the operator-facing structured log always has the
|
|
21408
21709
|
full family. `detail` is already redacted + size-bounded by the server; still treat it as external text.
|
|
@@ -21825,6 +22126,7 @@ components:
|
|
|
21825
22126
|
description: >-
|
|
21826
22127
|
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`);
|
|
21827
22128
|
`toolName` / `remedy` pass the egress seat. present-iff at least one was refused. Server >= 7.157.0 (engine 7.70.0) lists the first 20 only; the rest is counted in `refusedAsksUnlisted`.
|
|
22129
|
+
Each entry on this frame carries only `toolName` / `toolCallId` / `cause` / `remedy` (the run result's `modelRemedy` / `parkFailed` / `parkFailedReason` are not projected here).
|
|
21828
22130
|
items: { $ref: '#/components/schemas/RefusedAsk' }
|
|
21829
22131
|
refusedAsksUnlisted:
|
|
21830
22132
|
type: integer
|
|
@@ -22703,11 +23005,15 @@ components:
|
|
|
22703
23005
|
offers it as `{ kind: single, rule: <tool name>, match: tool, command: "" }` on a tool no rule grammar speaks for (the service's own
|
|
22704
23006
|
host tools, MCP tools) — render it as "don't ask again for this tool"; the card's edit face never mints a whole-tool rule.
|
|
22705
23007
|
|
|
22706
|
-
🔴
|
|
23008
|
+
🔴 TWELVE MEMBERS, closed (server >= 7.135.0 / core 7.55.0 added `pattern`, between `wildcard` and `subpath`; server >= 7.138.0 added `tool`; engine 7.71.0 / server 7.158.0 added `call`, last — the engine's order): the server validates the member on both faces. A consumer type narrower than the
|
|
22707
23009
|
mint point is a lie — it lets a `switch` claim exhaustiveness the wire does not honour (SDK <= 16 declared
|
|
22708
23010
|
four here, so a `path` offer and every 7.118.0 skill-card offer were dropped as malformed; SDK <= 21 declared
|
|
22709
23011
|
seven, so every domain grant row on `GET /v1/rules` was dropped the same way; SDK <= 28 declared ten, so every 7.138.0 whole-tool offer was).
|
|
22710
|
-
|
|
23012
|
+
`call` (engine 7.71.0, server 7.158.0) is a SESSION-scoped grant of one shell call, which exists only as the allow the
|
|
23013
|
+
engine writes from an approver's answer; no rule text parses to it and the engine never offers it on a card. Server 7.158.0 does not emit it
|
|
23014
|
+
(a session call grant needs a session partition with a revoke door; this service hands the engine only the durable partition) — the vocabulary
|
|
23015
|
+
follows its owner word for word.
|
|
23016
|
+
enum: [exact, prefix, wildcard, pattern, subpath, path, name, name_prefix, host, subdomain, tool, call]
|
|
22711
23017
|
|
|
22712
23018
|
RuleOfferUncoveredReason:
|
|
22713
23019
|
type: string
|
|
@@ -23930,6 +24236,8 @@ components:
|
|
|
23930
24236
|
description: >-
|
|
23931
24237
|
server >= 7.153.0 (engine 7.67.0 `COMPACTION_FAILURE_CAUSES`, today one word `leaf_moved`): the cause of a `failed` outcome — a compaction commits ONLY onto the leaf it summarised; another writer moved the leaf during
|
|
23932
24238
|
the summary call => zero writes (the spend already happened). A word outside the engine's closed set drops only this key. Same on the run stream and on `POST /v1/sessions/{id}/compact`'s `events`. ABSENT = no cause.
|
|
24239
|
+
Engine 7.71.0 (server >= 7.158.0) adds `holder.superseded`: the session refused the summary record for the grant the writer acts under (another leg holds the run,
|
|
24240
|
+
or the grant has ended) — zero writes; do not ask again under that grant.
|
|
23933
24241
|
outcome: { type: string }
|
|
23934
24242
|
trigger: { type: string, description: 'engine-shaped; current emitters send auto | manual | forced' }
|
|
23935
24243
|
reason: { type: string }
|
|
@@ -24133,6 +24441,9 @@ components:
|
|
|
24133
24441
|
toolCallId: { type: string, description: 'The refused call id (the same key as the `tool_start` / `tool_end` frames).' }
|
|
24134
24442
|
cause: { type: string, description: 'approver_unavailable / no_approver_wired / mandate_unreconstructible (open set).' }
|
|
24135
24443
|
remedy: { type: string, description: 'The way out the refusal named; ABSENT when it named none.' }
|
|
24444
|
+
modelRemedy: { type: string, description: 'server >= 7.157.0 (engine 7.70.0; passes the egress seat): the way out the MODEL read for this ask (where nobody on the leg could answer it), as the refusal minted it — disclosure prose beside `remedy` (what the host must change). On the run result only; the `task_notification` per-member projection does not carry it. ABSENT when the refusal gave the model none.' }
|
|
24445
|
+
parkFailed: { type: string, description: 'server >= 7.158.0 (engine 7.71.0): a durable approval park was attempted for this ask and could not be minted — the park''s own sentence (a fact of the deployment). Absent where no park was attempted; when present, `remedy` names the park first.' }
|
|
24446
|
+
parkFailedReason: { type: string, enum: [no_checkpoint_store, leg_not_resumable, volatile_tool_results, env_not_remote, env_suspend_undeclared, env_restore_incomplete], description: 'Beside `parkFailed`: the missing piece of durable-suspend infrastructure the failure is, when it is one (the engine''s `SUSPEND_LANE_REASONS`).' }
|
|
24136
24447
|
|
|
24137
24448
|
VerdictRefusal:
|
|
24138
24449
|
type: object
|
|
@@ -24350,6 +24661,14 @@ components:
|
|
|
24350
24661
|
runId: { type: string }
|
|
24351
24662
|
status: { type: string }
|
|
24352
24663
|
summary: { type: string }
|
|
24664
|
+
errorCode:
|
|
24665
|
+
type: string
|
|
24666
|
+
description: >-
|
|
24667
|
+
server >= 7.158.0 (engine 7.71.0; verbatim): the FAILURE code the engine put on this workflow's completion — present only on a `failed` terminal and only
|
|
24668
|
+
when the engine gave one (never an empty string / null). OPEN SET: the one fixed word is `workflow.agent_parked` (the run ended on a parked card); otherwise
|
|
24669
|
+
the code of the run's FIRST failed member. Same name and value as the live `task_notification` frame of the same completion; the bg / resume ledger rows and
|
|
24670
|
+
the session inbox entries carry it alike. For display and triage only — never derive a recovery action from it (read the engine's way out). Absent on the
|
|
24671
|
+
crash-recovery redelivery and on an orphan workflow this server ends.
|
|
24353
24672
|
completionId:
|
|
24354
24673
|
type: string
|
|
24355
24674
|
description: >
|
|
@@ -24575,8 +24894,9 @@ components:
|
|
|
24575
24894
|
description: >
|
|
24576
24895
|
The 200 body of POST /v1/approvals/{sessionId}/decide when the pending checkpoint belongs to a
|
|
24577
24896
|
PARKED child: a background agent (server 1.267, ASSISTANT-WIRE-CONTRACT §4a parked variant; server
|
|
24578
|
-
parked-decide.ts — exact literal shapes) or, server >= 7.155.0, a workflow member.
|
|
24579
|
-
`ParkedDecideAccepted` is their union; arms (1) / (2) are the background agent's, arms (3) / (4) the workflow member's
|
|
24897
|
+
parked-decide.ts — exact literal shapes) or, server >= 7.155.0, a workflow member. FIVE ARMS, read by `status` (the SDK type
|
|
24898
|
+
`ParkedDecideAccepted` is their union; arms (1) / (2) / (5) are the background agent's, arms (3) / (4) the workflow member's;
|
|
24899
|
+
arm (5), `status: "killed"`, server >= 7.158.0, is described on its own schema below):
|
|
24580
24900
|
(1) `status: "resuming"` — the background agent's ACCEPTANCE receipt. The revive drives ASYNCHRONOUSLY — 200 means accepted,
|
|
24581
24901
|
not completed; a failed drive honestly re-parks the row and the pending re-appears on the list.
|
|
24582
24902
|
(2) `status: "failed"` (server >= 7.136.0; `decision` is always `deny`) — the VOIDED receipt: on the two forms that can
|
|
@@ -24587,7 +24907,7 @@ components:
|
|
|
24587
24907
|
void CAS is the existing `409 decide.gate_moved`.
|
|
24588
24908
|
(3) / (4) server >= 7.155.0, a PARKED WORKFLOW-MEMBER card: `status: "recorded"` / `"delivered"` — the two arms of
|
|
24589
24909
|
`WorkflowParkDecisionReceipt` (fixed key sets; `recorded` has no `taskId` / `sessionId`). Both cards look the same on the queue
|
|
24590
|
-
(no origin mark), so this is one union over
|
|
24910
|
+
(no origin mark), so this is one union over five words. SERVER-VERSION RANGES: servers [7.148.0, 7.155.0) answered a
|
|
24591
24911
|
workflow-member card whose holding run was still running with arm (1)'s exact key set, `taskId` then being the workflow run id
|
|
24592
24912
|
(not in the run store); servers [7.69.0, 7.155.0) answered one whose run had ended with the task-level acceptance shape
|
|
24593
24913
|
(no `decision`; not an arm of this union — read it on `ApprovalDecisionResult`). From 7.155.0 arm (1) is background agents only.
|
|
@@ -24615,6 +24935,22 @@ components:
|
|
|
24615
24935
|
decisionCommitted: { type: boolean, enum: [true], description: 'server >= 7.138.0 - SETTLEMENT EVIDENCE: `true` = the gate this request named was durably settled with THIS request''s decision (historical evidence, not the card''s current state). Always the literal `true`, never `false`. Absent = unprovable or deliberately omitted => read as "not committed" (fail-closed); do not infer it from the absence of `errorCode`. It coexists with `errorCode: cancelled` / `retriable: true`; `retriable: true` only says the run re-parked.' }
|
|
24616
24936
|
checkpointId: { type: string, description: 'server >= 7.138.0 - only alongside `decisionCommitted`: the gate identity of the row selected before execution (same name and value as the operator queue / inbox row / park ledger row). Absent when the identity is unreadable or not applicable (an idempotent replay carries none); absence infers nothing.' }
|
|
24617
24937
|
checkpointIdMissing: { $ref: '#/components/schemas/CheckpointIdMissingWord' }
|
|
24938
|
+
- type: object
|
|
24939
|
+
description: >-
|
|
24940
|
+
server >= 7.158.0 - the KILLED receipt (`decision` is always `deny`): a deny on a parked background agent whose recorded constraints this
|
|
24941
|
+
server's current configuration no longer supplies in the same form (a card parked under an earlier release, or the command list / permission
|
|
24942
|
+
settings changed while it was parked) - the engine stops the agent and expires the card instead of resuming it. The denial is recorded, nothing
|
|
24943
|
+
resumes, the card can no longer be decided (settlement boundary as the voided receipt). Handle it as `failed`. Servers 7.157.x answered the
|
|
24944
|
+
same case `resuming`; an engine answer whose situation word the server cannot read is `500 decide.revive_failed`, never `resuming`.
|
|
24945
|
+
required: [taskId, status, decision]
|
|
24946
|
+
additionalProperties: true
|
|
24947
|
+
properties:
|
|
24948
|
+
taskId: { type: string, description: 'The background agent handle (a* domain).' }
|
|
24949
|
+
status: { type: string, enum: [killed] }
|
|
24950
|
+
decision: { type: string, enum: [deny] }
|
|
24951
|
+
decisionCommitted: { type: boolean, enum: [true], description: 'server >= 7.138.0 - settlement evidence, read as on the other two background-agent arms.' }
|
|
24952
|
+
checkpointId: { type: string, description: 'server >= 7.138.0 - only alongside `decisionCommitted`: the gate identity of the row selected before execution.' }
|
|
24953
|
+
checkpointIdMissing: { $ref: '#/components/schemas/CheckpointIdMissingWord' }
|
|
24618
24954
|
- $ref: '#/components/schemas/WorkflowParkDecisionRecorded'
|
|
24619
24955
|
- $ref: '#/components/schemas/WorkflowParkDecisionDelivered'
|
|
24620
24956
|
|
|
@@ -24638,6 +24974,10 @@ components:
|
|
|
24638
24974
|
type: string
|
|
24639
24975
|
enum: [recorded, delivered]
|
|
24640
24976
|
description: 'server >= 7.155.0 — the closed word set of `WorkflowParkDecisionReceipt.status` (SDK constant `WORKFLOW_PARK_DECISION_RECEIPT_STATUSES`, in this order).'
|
|
24977
|
+
ParkedRedeemStatus:
|
|
24978
|
+
type: string
|
|
24979
|
+
enum: [resuming, failed, killed]
|
|
24980
|
+
description: 'The closed word set of `status` on the three background-agent arms of `ParkedDecideAccepted` (`killed` server >= 7.158.0; SDK constant `PARKED_REDEEM_STATUSES`, in this order). Together with `WorkflowParkDecisionReceiptStatus` it gives the five words of the parked receipt.'
|
|
24641
24981
|
|
|
24642
24982
|
WorkflowParkDecisionRecorded:
|
|
24643
24983
|
type: object
|