@sema-agent/sdk 47.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 +152 -0
- package/dist/boot-refusal/index.d.ts +67 -0
- package/dist/boot-refusal/index.d.ts.map +1 -0
- package/dist/boot-refusal/index.js +36 -0
- package/dist/boot-refusal/index.js.map +1 -0
- package/dist/boot-refusal/tables.d.ts +494 -0
- package/dist/boot-refusal/tables.d.ts.map +1 -0
- package/dist/boot-refusal/tables.js +176 -0
- package/dist/boot-refusal/tables.js.map +1 -0
- package/dist/errors.d.ts +73 -28
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +56 -26
- package/dist/errors.js.map +1 -1
- package/dist/events.d.ts +188 -36
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +17 -2
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +21 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/approvals.d.ts +41 -12
- 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/sessions.d.ts +5 -2
- package/dist/resources/sessions.d.ts.map +1 -1
- package/dist/resources/sessions.js +4 -1
- package/dist/resources/sessions.js.map +1 -1
- package/dist/resources/tasks.d.ts +12 -1
- package/dist/resources/tasks.d.ts.map +1 -1
- package/dist/resources/tasks.js +12 -1
- package/dist/resources/tasks.js.map +1 -1
- package/dist/resources/tool-approvals.d.ts +11 -5
- 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/settings.d.ts +3 -2
- package/dist/settings.d.ts.map +1 -1
- package/dist/types.d.ts +298 -32
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +23 -1
- package/dist/types.js.map +1 -1
- package/openapi.yaml +595 -53
- package/package.json +5 -1
package/openapi.yaml
CHANGED
|
@@ -2801,6 +2801,9 @@ paths:
|
|
|
2801
2801
|
`near_miss` a near-miss of a valid form · `earlier_grammar` (engine 7.51.2) a body echoed back with its `rev` but no `grammar` stamp is read in the stored row's grammar 0, where a rule-spelled allow entry named no tool — send the three buckets alone to write in the current grammar), `verdict` (optional; only on `tool_name`: `retired` an engine-retired name / `unprefixed_namespace` a `__` name without a protocol prefix / `unmintable_segment` a protocol
|
|
2802
2802
|
name whose peer segment or tool segment the engine cannot mint, or whose tool segment is EMPTY — `mcp__<server>__`, `a2a__<peer>__`), `currentName` (optional; present when there is a 1:1 successor, e.g. `bash` => `Bash`), `guidance` (optional; the engine judge's wording
|
|
2803
2803
|
of the fix, byte for byte — carried by `retired` and `unmintable_segment`). The sentence is the engine's own: match on the code. Rewrite that entry and write again.
|
|
2804
|
+
Server >= 7.157.0 (engine 7.70.0): a retired name WITH a successor (`Task` => `Agent`, `bash` => `Bash`) is accepted by both write doors, stored as written and read as its successor
|
|
2805
|
+
(before, this code with `verdict: retired` + `currentName`); a stored row's such entry is live too, so a non-operator owner removing a live deny gets `403 loosen_forbidden` (an operator write can remove it).
|
|
2806
|
+
A retired name WITHOUT a successor (`MultiEdit`) is still this code with `verdict: retired`, `guidance` and no `currentName`.
|
|
2804
2807
|
`rules.invalid_shape`: the rules body itself has the wrong shape — not an object (`rules` absent, `null`, an array, a scalar), a key that is not a bucket (including the RETIRED `commandAllow` / `commandDeny`:
|
|
2805
2808
|
never silently dropped, a dropped deny is enforced by nobody), a bucket that is not a list of strings, an `allowDirs` member that is empty / blank. Body keys: `field` (which key; the empty string when the
|
|
2806
2809
|
body as a whole is not an object), `got` (the TYPE of that value, e.g. `a string` / `not a rule bucket` — the value is never echoed); `error` is the engine's sentence.
|
|
@@ -3802,6 +3805,8 @@ paths:
|
|
|
3802
3805
|
'422':
|
|
3803
3806
|
description: >-
|
|
3804
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.
|
|
3805
3810
|
content:
|
|
3806
3811
|
application/json:
|
|
3807
3812
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -4142,8 +4147,8 @@ paths:
|
|
|
4142
4147
|
a `parks[]` entry (the record naming the card at the highest generation, exactly one ⇒ it takes the decision). The EIGHTH group
|
|
4143
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
|
|
4144
4149
|
engine (cards still parked at the upgrade) ⇒ resume `runId` and decide again; a record that cannot be read (a malformed entry,
|
|
4145
|
-
or `parks` present but not a list) ⇒ resuming does NOT clear it — an operator must repair that record
|
|
4146
|
-
`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
|
|
4147
4152
|
`conflict.resume_context_unavailable` (no `runId`). NINTH group: `decide.workflow_park_forked` (409, body `runIds`) — the same
|
|
4148
4153
|
run was resumed more than once and the copies all hold this card; nothing delivered, the card stays PENDING; resume one of
|
|
4149
4154
|
`runIds` and decide again (SDK → `DecideWorkflowParkForkedError`).
|
|
@@ -4241,10 +4246,13 @@ paths:
|
|
|
4241
4246
|
carry `cause` — core's CAUSE WORD for this startup failure, relayed from the engine receipt's `details`
|
|
4242
4247
|
(no default; absent when the engine did not say, i.e. every server before S-818 and every core before
|
|
4243
4248
|
#1161). The closed set is core's (#1161; core 7.51.0 exports it as `RESUME_STARTUP_CAUSES`); since server >= 7.129.0
|
|
4244
|
-
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)
|
|
4245
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
|
|
4246
|
-
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`;
|
|
4247
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`).
|
|
4248
4256
|
content:
|
|
4249
4257
|
application/json:
|
|
4250
4258
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -5021,11 +5029,13 @@ paths:
|
|
|
5021
5029
|
x-status: live # server >= 7.147.0 (contract GET /v1/projects). SDK projects.list().
|
|
5022
5030
|
summary: List the project registry (read-only).
|
|
5023
5031
|
description: >
|
|
5024
|
-
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
|
|
5025
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).
|
|
5026
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.
|
|
5027
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`.
|
|
5028
|
-
|
|
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`).
|
|
5029
5039
|
parameters:
|
|
5030
5040
|
- in: query
|
|
5031
5041
|
name: archived
|
|
@@ -5040,6 +5050,40 @@ paths:
|
|
|
5040
5050
|
'400': { $ref: '#/components/responses/BadRequest' }
|
|
5041
5051
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
5042
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' }
|
|
5043
5087
|
/v1/projects/{projectId}:
|
|
5044
5088
|
parameters:
|
|
5045
5089
|
- $ref: '#/components/parameters/PrincipalHeader'
|
|
@@ -5066,6 +5110,35 @@ paths:
|
|
|
5066
5110
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
5067
5111
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
5068
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' }
|
|
5069
5142
|
/v1/sessions/{sessionId}/rewind-files:
|
|
5070
5143
|
parameters:
|
|
5071
5144
|
- $ref: '#/components/parameters/PrincipalHeader'
|
|
@@ -8380,10 +8453,11 @@ components:
|
|
|
8380
8453
|
→ 400 (not silently truncated). The SDK auto-generates one if absent.
|
|
8381
8454
|
systemPrompt:
|
|
8382
8455
|
type: string
|
|
8383
|
-
maxLength: 16384
|
|
8384
8456
|
description: >
|
|
8385
8457
|
Business/UX system prompt the CLIENT owns — STABLE per integrator version (cacheable prefix).
|
|
8386
|
-
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.
|
|
8387
8461
|
skills:
|
|
8388
8462
|
type: array
|
|
8389
8463
|
description: >
|
|
@@ -8625,6 +8699,31 @@ components:
|
|
|
8625
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
|
|
8626
8700
|
call); `false` = absent. Non-boolean => 400 `request.field_invalid`. Re-read by resume / delivery legs from the stored body; inherited by engine-built
|
|
8627
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.
|
|
8628
8727
|
fastMode:
|
|
8629
8728
|
type: boolean
|
|
8630
8729
|
description: >-
|
|
@@ -9431,6 +9530,7 @@ components:
|
|
|
9431
9530
|
`unexpected.needs_review` and carries that pause on `nestedPause`.
|
|
9432
9531
|
Consumers MUST branch with a `default` arm. Absent = the failure never had a code.
|
|
9433
9532
|
message: { type: string, description: 'Human-readable failure text. Absent when there was none.' }
|
|
9533
|
+
rewind: { $ref: '#/components/schemas/TaskRewindSettlement' }
|
|
9434
9534
|
nestedPause:
|
|
9435
9535
|
allOf: [{ $ref: '#/components/schemas/PausedCause' }]
|
|
9436
9536
|
description: >
|
|
@@ -9504,6 +9604,22 @@ components:
|
|
|
9504
9604
|
type: object
|
|
9505
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).'
|
|
9506
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] }
|
|
9507
9623
|
|
|
9508
9624
|
TerminalModelOutputInvalidDetail:
|
|
9509
9625
|
type: object
|
|
@@ -9544,6 +9660,7 @@ components:
|
|
|
9544
9660
|
NOT submitted (the objective never became a message and the loop never started), so changing it and sending again is
|
|
9545
9661
|
meaningful. PRESENT only on that terminal; ABSENT means the agent reported `ReportBlocked` ("I cannot go on"), or a server
|
|
9546
9662
|
before 7.113.0.
|
|
9663
|
+
rewind: { $ref: '#/components/schemas/TaskRewindSettlement' }
|
|
9547
9664
|
|
|
9548
9665
|
TerminalBlockedDetail:
|
|
9549
9666
|
type: object
|
|
@@ -9655,6 +9772,26 @@ components:
|
|
|
9655
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.
|
|
9656
9773
|
`toolName` / `remedy` pass the egress seat. present-iff at least one was refused — never empty.
|
|
9657
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.'
|
|
9658
9795
|
continuesFrom:
|
|
9659
9796
|
oneOf:
|
|
9660
9797
|
- type: object
|
|
@@ -10313,9 +10450,17 @@ components:
|
|
|
10313
10450
|
not: { required: [persistMiss] }
|
|
10314
10451
|
- properties: { persisted: { const: false } }
|
|
10315
10452
|
required: [persistMiss]
|
|
10453
|
+
not: { required: [revision] }
|
|
10316
10454
|
properties:
|
|
10317
10455
|
taskId: { type: string }
|
|
10318
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).
|
|
10319
10464
|
status: { type: string, enum: [running], description: 'Always `running` — only a running run can switch (a run that is not running answers 409).' }
|
|
10320
10465
|
permissionMode:
|
|
10321
10466
|
allOf: [{ $ref: '#/components/schemas/WiringManifestPermissionMode' }]
|
|
@@ -11270,6 +11415,9 @@ components:
|
|
|
11270
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
|
|
11271
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`)
|
|
11272
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.
|
|
11273
11421
|
ask.workflow_member:
|
|
11274
11422
|
type: boolean
|
|
11275
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.'
|
|
@@ -11282,15 +11430,50 @@ components:
|
|
|
11282
11430
|
task_notification.note_key:
|
|
11283
11431
|
type: boolean
|
|
11284
11432
|
description: 'ENGINE CAPABILITY WORD (tenth; server >= 7.155.0 projects it, always `false`): every `task_notification` the engine pushes states `noteKey`. A false word = this service does not promise it. ABSENT = an older server.'
|
|
11433
|
+
task.continues_from:
|
|
11434
|
+
type: boolean
|
|
11435
|
+
description: 'ENGINE CAPABILITY WORD (engine 7.70.0, eleventh in its order; server >= 7.157.0 projects it, always `false`): the engine hands back on a run result the value to continue from next time. This service''s submit door takes `resumeAt` as an event handle this service minted, never the engine''s value — so it does not promise the word. ABSENT = an older server.'
|
|
11436
|
+
execution_env.workspace_sync:
|
|
11437
|
+
type: boolean
|
|
11438
|
+
description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): the engine calls the execution environment''s workspace-sync seat. This service''s execution-environment adapters carry no such seat. ABSENT = an older server.'
|
|
11439
|
+
session.rewind_conversation:
|
|
11440
|
+
type: boolean
|
|
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.'
|
|
11442
|
+
instruction_family.external_includes:
|
|
11443
|
+
type: boolean
|
|
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.'
|
|
11445
|
+
instruction_family.host_text:
|
|
11446
|
+
type: boolean
|
|
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.'
|
|
11448
|
+
instruction_family.local_files:
|
|
11449
|
+
type: boolean
|
|
11450
|
+
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.'
|
|
11451
|
+
session_changes.checkpoints:
|
|
11452
|
+
type: boolean
|
|
11453
|
+
description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): one of the two sources the engine reads "what this session changed" from. This service has no door for it. ABSENT = an older server.'
|
|
11454
|
+
session_changes.git:
|
|
11455
|
+
type: boolean
|
|
11456
|
+
description: 'ENGINE CAPABILITY WORD (engine 7.70.0; server >= 7.157.0 projects it, always `false`): one of the two sources the engine reads "what this session changed" from. This service has no door for it. ABSENT = an older server.'
|
|
11285
11457
|
task.agent_config_dirs:
|
|
11286
11458
|
type: boolean
|
|
11287
11459
|
description: >-
|
|
11288
|
-
ENGINE CAPABILITY WORD (eleventh; server >= 7.155.0): this deployment ACCEPTS the request seat `settings.agentConfigDirs` (the caller's configuration roots; see
|
|
11460
|
+
ENGINE CAPABILITY WORD (eleventh up to engine 7.69.x, nineteenth from engine 7.70.0; server >= 7.155.0): this deployment ACCEPTS the request seat `settings.agentConfigDirs` (the caller's configuration roots; see
|
|
11289
11461
|
`TaskRequest.settings`) — `true` only where the tools run on this host; `false` on cloud sandbox / device / ssh / adb / handless lanes (a non-empty list there is
|
|
11290
11462
|
400 `request.field_invalid` with `reason: lane_not_host`). Send the key only when this is strictly `true`. ABSENT = an older server (the key is 400 `request.body_shape`).
|
|
11291
11463
|
task.agent_home_dirs:
|
|
11292
11464
|
type: boolean
|
|
11293
|
-
description: 'ENGINE CAPABILITY WORD (twelfth; server >= 7.155.0): this deployment accepts `settings.agentHomeDirs` (the caller''s homes) — same deployment column and the same reading as `task.agent_config_dirs`.'
|
|
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.
|
|
11474
|
+
artifact_host.libraries:
|
|
11475
|
+
type: boolean
|
|
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.'
|
|
11294
11477
|
credentialPlane:
|
|
11295
11478
|
allOf: [{ $ref: '#/components/schemas/CredentialPlaneCapability' }]
|
|
11296
11479
|
description: >-
|
|
@@ -11303,15 +11486,16 @@ components:
|
|
|
11303
11486
|
projects:
|
|
11304
11487
|
type: boolean
|
|
11305
11488
|
description: >-
|
|
11306
|
-
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
|
|
11307
|
-
(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).
|
|
11308
11492
|
projectInheritance:
|
|
11309
11493
|
type: boolean
|
|
11310
11494
|
description: >-
|
|
11311
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
|
|
11312
|
-
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`
|
|
11313
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
|
|
11314
|
-
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`)
|
|
11315
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"`,
|
|
11316
11500
|
`fields` includes `projectId`). ABSENT = server <= 7.149.x (no inheritance).
|
|
11317
11501
|
sessionRewindFiles:
|
|
@@ -12521,8 +12705,20 @@ components:
|
|
|
12521
12705
|
`TaskSpec.instructionFamily` declaration form, the same value every leg's spec carries). `null` = the deployment declares none
|
|
12522
12706
|
(`PROJECT_MEMORY_ENABLED=false`). It says what the deployment declares, not what a run read (that is the leg's `wiring_manifest.instructions`).
|
|
12523
12707
|
Absent = an older server.
|
|
12524
|
-
appendSystemPromptMaxChars: { type: integer, minimum: 1, description: 'server >= 7.156.0, always present (a
|
|
12525
|
-
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.
|
|
12526
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.' }
|
|
12527
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`).' }
|
|
12528
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`).' }
|
|
@@ -14273,7 +14469,44 @@ components:
|
|
|
14273
14469
|
registeredBy: { type: string }
|
|
14274
14470
|
registeredAt: { type: string, format: date-time }
|
|
14275
14471
|
archivedAt: { type: string, format: date-time }
|
|
14276
|
-
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 }
|
|
14277
14510
|
|
|
14278
14511
|
ProjectsPage:
|
|
14279
14512
|
type: object
|
|
@@ -14303,7 +14536,8 @@ components:
|
|
|
14303
14536
|
unplacedHistoryRecordedInCwd:
|
|
14304
14537
|
type: boolean
|
|
14305
14538
|
description: >-
|
|
14306
|
-
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
|
|
14307
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` =
|
|
14308
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
|
|
14309
14543
|
override => 403 `auth.forbidden`; no honoured `cwd` in the same request => 400 `request.field_conflict` (`reason: unplaced_history_cwd`,
|
|
@@ -14373,10 +14607,10 @@ components:
|
|
|
14373
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".
|
|
14374
14608
|
server >= 7.155.0 (engine 7.69.0): the preview ALSO carries the plan's `refused` / `failed` / `leftAsIs` (below).
|
|
14375
14609
|
refused:
|
|
14376
|
-
allOf: [{ $ref: '#/components/schemas/
|
|
14610
|
+
allOf: [{ $ref: '#/components/schemas/SessionRewindLedgerRows/properties/refused' }]
|
|
14377
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".'
|
|
14378
14612
|
failed:
|
|
14379
|
-
allOf: [{ $ref: '#/components/schemas/
|
|
14613
|
+
allOf: [{ $ref: '#/components/schemas/SessionRewindLedgerRows/properties/failed' }]
|
|
14380
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`.'
|
|
14381
14615
|
leftAsIs:
|
|
14382
14616
|
type: array
|
|
@@ -14425,10 +14659,11 @@ components:
|
|
|
14425
14659
|
reason: { type: string }
|
|
14426
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".' }
|
|
14427
14661
|
|
|
14428
|
-
|
|
14662
|
+
SessionRewindLedgerRows:
|
|
14429
14663
|
type: object
|
|
14430
14664
|
description: >-
|
|
14431
|
-
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;
|
|
14432
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).
|
|
14433
14668
|
additionalProperties: true
|
|
14434
14669
|
required: [outcome, filesChanged, identicalSkipped, refused, failed]
|
|
@@ -14445,7 +14680,7 @@ components:
|
|
|
14445
14680
|
properties:
|
|
14446
14681
|
path: { type: string }
|
|
14447
14682
|
reason: { type: string }
|
|
14448
|
-
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.' }
|
|
14449
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).' }
|
|
14450
14685
|
action: { type: string, enum: [write, delete], description: 'server >= 7.154.0: what the rewind would have done at that file.' }
|
|
14451
14686
|
failed:
|
|
@@ -14462,21 +14697,61 @@ components:
|
|
|
14462
14697
|
type: array
|
|
14463
14698
|
items: { $ref: '#/components/schemas/SessionRewindFileRow' }
|
|
14464
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.'
|
|
14465
|
-
error: { $ref: '#/components/schemas/SessionRewindLedgerError' }
|
|
14466
14700
|
leftAsIs:
|
|
14467
14701
|
type: array
|
|
14468
14702
|
items: { $ref: '#/components/schemas/SessionRewindLeftAsIsRow' }
|
|
14469
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.'
|
|
14470
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
|
+
|
|
14471
14723
|
SessionRewindLedgerError:
|
|
14472
14724
|
type: object
|
|
14473
|
-
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`).'
|
|
14474
14726
|
additionalProperties: true
|
|
14475
14727
|
required: [errorCode, message]
|
|
14476
14728
|
properties:
|
|
14477
14729
|
errorCode: { type: string }
|
|
14478
14730
|
message: { type: string }
|
|
14479
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] }
|
|
14480
14755
|
|
|
14481
14756
|
SessionRewindFilesPreviewResult:
|
|
14482
14757
|
type: object
|
|
@@ -14711,7 +14986,7 @@ components:
|
|
|
14711
14986
|
|
|
14712
14987
|
ResumeStartupCause:
|
|
14713
14988
|
type: string
|
|
14714
|
-
enum: [environment, session_gone, transcript_corrupt, tool_unavailable, configuration, decision_rejected]
|
|
14989
|
+
enum: [environment, session_gone, transcript_corrupt, tool_unavailable, configuration, decision_rejected, superseded]
|
|
14715
14990
|
description: >-
|
|
14716
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`
|
|
14717
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).
|
|
@@ -14719,6 +14994,8 @@ components:
|
|
|
14719
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
|
|
14720
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
|
|
14721
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.
|
|
14722
14999
|
|
|
14723
15000
|
ElicitResponse:
|
|
14724
15001
|
type: object
|
|
@@ -15290,11 +15567,17 @@ components:
|
|
|
15290
15567
|
decision: { type: string, enum: [approve, deny] }
|
|
15291
15568
|
state:
|
|
15292
15569
|
description: >
|
|
15293
|
-
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
|
|
15294
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
|
|
15295
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
|
|
15296
15573
|
continuation (`runId`) drove the parked step with it; `spent` — no later hand-over continues the run (`reason`: the engine's settling word, today
|
|
15297
|
-
`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`).
|
|
15298
15581
|
oneOf:
|
|
15299
15582
|
- type: object
|
|
15300
15583
|
additionalProperties: false
|
|
@@ -15306,8 +15589,35 @@ components:
|
|
|
15306
15589
|
properties: { kind: { type: string, enum: [carried, driven] }, runId: { type: string } }
|
|
15307
15590
|
- type: object
|
|
15308
15591
|
additionalProperties: false
|
|
15309
|
-
required: [kind, runId, reason]
|
|
15310
|
-
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.
|
|
15311
15621
|
|
|
15312
15622
|
# ── B4 命名化(2026-07-31):以下 10 个 component 与 SDK resources/* 的同名导出类型 1:1;内容为
|
|
15313
15623
|
# 原端点内联 schema 的字节级搬运(零语义变更),使用点换 $ref。census 封闭注随迁。
|
|
@@ -15458,6 +15768,14 @@ components:
|
|
|
15458
15768
|
resultChars: { type: integer, description: 'server >=7.9.0 (A-002.6): the ORIGINAL result length in characters; present only alongside resultTruncated.' }
|
|
15459
15769
|
tokens: { type: integer, description: 'present only when the result carried stats.' }
|
|
15460
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).' }
|
|
15461
15779
|
parked:
|
|
15462
15780
|
type: boolean
|
|
15463
15781
|
enum: [true]
|
|
@@ -16266,7 +16584,7 @@ components:
|
|
|
16266
16584
|
executionOutcome?}` — it carries NO `status` and NO `taskId` (nothing was accepted this time). Its named schema is
|
|
16267
16585
|
`DecisionReplayReceipt` (the plan-review door's replay is the same mint). So no key
|
|
16268
16586
|
is guaranteed by all four shapes; discriminate: `idempotent` -> replay; otherwise `decision` present ->
|
|
16269
|
-
parked receipt (`ParkedDecideAccepted`,
|
|
16587
|
+
parked receipt (`ParkedDecideAccepted`, five arms, read `status`: `resuming` / `failed` / `killed` (server >= 7.158.0) / `recorded` / `delivered`);
|
|
16270
16588
|
no `decision` -> task-level acceptance / terminal. (The older reading "`decision` without `sessionId`" fails on
|
|
16271
16589
|
the server >= 7.155.0 `delivered` arm, which carries `sessionId`.)
|
|
16272
16590
|
`taskId` rides `getActiveTaskId` on the terminal leg (omitted when there is no active row).
|
|
@@ -16335,7 +16653,7 @@ components:
|
|
|
16335
16653
|
OPEN string — do NOT narrow. Task-level acceptance (server >= 7.37): the literal `resuming` (= accepted,
|
|
16336
16654
|
resume in flight — follow the run stream). Terminal leg: the run's resulting status (`completed`/`failed`/
|
|
16337
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) —
|
|
16338
|
-
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`).
|
|
16339
16657
|
decision:
|
|
16340
16658
|
type: string
|
|
16341
16659
|
enum: [approve, deny]
|
|
@@ -18620,13 +18938,6 @@ components:
|
|
|
18620
18938
|
🔴 NOT interchangeable with `taskId`: the workflow-child park lane mints no taskId at all (this
|
|
18621
18939
|
decision never landed on any run, so minting one would be a lie), and the other two decide lanes
|
|
18622
18940
|
mint no runId. Branch by `errorCode`, never fall back from one handle to the other.
|
|
18623
|
-
readableHolderRunId:
|
|
18624
|
-
type: string
|
|
18625
|
-
description: >-
|
|
18626
|
-
server >= 7.118.0, on `decide.workflow_parks_unreadable` (409) ONLY and only on its "the record cannot be read" cause: the
|
|
18627
|
-
readable record that holds the card at the highest generation (absent when there is none or a tie — never null). Where the
|
|
18628
|
-
work can be carried on — a CLUE, not a way to unblock this decision (the damaged record `runId` names keeps it undeliverable
|
|
18629
|
-
until it is repaired). SDK reads it as `DecideWorkflowParksUnreadableError.readableHolderRunId`.
|
|
18630
18941
|
runIds:
|
|
18631
18942
|
type: array
|
|
18632
18943
|
items: { type: string }
|
|
@@ -19233,10 +19544,10 @@ components:
|
|
|
19233
19544
|
# 每只闭集 = 引擎今天的词 ∪ 引擎退役词表里那一集。这五张 enum 与引擎 `RETIRED_MEMBERS` 逐集逐词同(由 `server-7129-wire` 对拍);卡面 / 队列行 / 请求面的同名闭集只取今天的词。
|
|
19234
19545
|
GateRecordAskClass:
|
|
19235
19546
|
type: string
|
|
19236
|
-
enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, policy_rra, artifact_shared_read, mode, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary, write_protection_unresolved, governance_unavailable]
|
|
19547
|
+
enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, unfinished_check, policy_rra, artifact_shared_read, mode, a2a_inside, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary, write_protection_unresolved, governance_unavailable]
|
|
19237
19548
|
description: >-
|
|
19238
19549
|
The class word on a GATE RECORD (`tool_end.gate.disposition.askClass` / `.classes` on the mode-refusal arm, `ModeRelease.askClass` / `.classes`) — server >= 7.129.0 reads the record as an ARCHIVE:
|
|
19239
|
-
today's `AskClass` set (thirty-
|
|
19550
|
+
today's `AskClass` set (thirty-three words; `unfinished_check` / `a2a_inside` from server >= 7.157.0, `org_unreadable` / `call_unreadable` / `sandbox_override` / `sandbox_network` from server >= 7.155.0, `write_protection_on_disk` from server >= 7.138.0, `cross_boundary` from server >= 7.134.0) PLUS the words the engine retired (`write_protection_unresolved`, retired in core 7.49.0 — renamed `target_unresolved`; `governance_unavailable`,
|
|
19240
19551
|
retired in core 7.51.0 — merged into `rule_unreadable`). A record the previous engine generation legally wrote is replayed byte for byte (a 7.50.x mode refusal can carry `governance_unavailable`);
|
|
19241
19552
|
a word NO engine generation ever minted (a case variant, the empty string, a future word) withholds the whole `gate` and counts `server.trace.gate-outcome-defective`.
|
|
19242
19553
|
Render a known archive word normally and an unknown one generically; never drop the record because the word is not in today's set.
|
|
@@ -19546,9 +19857,10 @@ components:
|
|
|
19546
19857
|
`UNATTENDED_PERMISSION_MODE=dontAsk`).
|
|
19547
19858
|
AskClass:
|
|
19548
19859
|
type: string
|
|
19549
|
-
enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, policy_rra, artifact_shared_read, mode, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary]
|
|
19860
|
+
enum: [content_question, hook, ancestor, dangerous_delete, transcript_write, org_rule, org_unreadable, rule_unreadable, call_unreadable, ask_rule, denial_limit_fallback, classifier_no_ruling, requires_user_interaction, cross_boundary, operator_forced, shell_floor, target_unresolved, probe, write_protection_on_disk, write_protection, tool_marks_mcp, tool_marks_a2a, unfinished_check, policy_rra, artifact_shared_read, mode, a2a_inside, unverifiable_delete, unverifiable_shell_text, sandbox_override, sandbox_network, unstated, ordinary]
|
|
19550
19861
|
description: >
|
|
19551
|
-
core `ASK_CLASSES` (THIRTY-
|
|
19862
|
+
core `ASK_CLASSES` (THIRTY-THREE words as of engine 7.70.0 / server >= 7.157.0: `unfinished_check` joined after `tool_marks_a2a` and `a2a_inside` after `mode` — see below;
|
|
19863
|
+
THIRTY-ONE words as of engine 7.69.0 / server >= 7.155.0: `org_unreadable` / `call_unreadable` joined beside `rule_unreadable`, `sandbox_override` /
|
|
19552
19864
|
`sandbox_network` joined after `mode`, and `unverifiable_delete` / `unverifiable_shell_text` moved to just after `mode` — see below;
|
|
19553
19865
|
TWENTY-SEVEN as of core 7.58.0 / server >= 7.138.0: `write_protection_on_disk` joined after `probe`, before `write_protection` — see below;
|
|
19554
19866
|
TWENTY-SIX as of core 7.54.0 / server >= 7.134.0: `cross_boundary` joined after `requires_user_interaction` — the device lane's
|
|
@@ -19604,8 +19916,15 @@ components:
|
|
|
19604
19916
|
`shell_floor` =the operator's `shellGate: "always"` floor on a shell-running seat (the question the `operator_always` mandate
|
|
19605
19917
|
word discloses), a class of its own so a set that holds another forced question still holds it; like `operator_forced` it is
|
|
19606
19918
|
bypass-IMMUNE (not releasable).
|
|
19607
|
-
|
|
19608
|
-
|
|
19919
|
+
`unfinished_check` (engine 7.70.0, server >= 7.157.0) = the read station's check that DID NOT FINISH: the environment left a lookup of the command's reads unanswered, or the
|
|
19920
|
+
station's own judgment timed out or threw, so the safety checks on what the command reads did not run. Only a person answers it under every mode (no classifier, no allow
|
|
19921
|
+
rule, no unattended leg); the ask carries `requiresRealApproval: true` and this class explains that bit. bypass-IMMUNE.
|
|
19922
|
+
`a2a_inside` (engine 7.70.0, server >= 7.157.0) = a call to an A2A peer registered INSIDE the trust boundary (no egress mark stands on it): only a grant bound to the peer's
|
|
19923
|
+
CURRENT identity stamp clears it — a standing rule without that stamp, a hook's allow and a skill's grant never do. It is not a mandate: the auto-mode classifier answers it,
|
|
19924
|
+
`bypassPermissions` releases it (RELEASABLE), and a person's answer is a plain one.
|
|
19925
|
+
CLOSED: the card / queue-row / request faces carry exactly today's thirty-three words; the GATE RECORD (`tool_end.gate` and the replay faces) carries today's words PLUS the engine's retired words (`GateRecordAskClass`). `bypassPermissions` releases only the RELEASABLE classes (core
|
|
19926
|
+
`releasableAskClassesFor(face)`). Server >= 7.157.0 (engine 7.70.0): shell 17, other faces 16 — the generation below plus `a2a_inside` on every face (`unfinished_check` is
|
|
19927
|
+
bypass-IMMUNE). Server 7.155.0 – 7.156.x (engine 7.69.x): shell 16, other faces 15 — the ten below plus, on every face, `rule_unreadable` (now only the person's
|
|
19609
19928
|
own rules being unreadable: a release mode releases it, `auto` asks the classifier), `unverifiable_delete` / `unverifiable_shell_text` (an ordinary ask since server 7.154.5:
|
|
19610
19929
|
an allow rule clears it, `auto` asks the classifier, `dontAsk` refuses) and the two new classes `sandbox_override` / `sandbox_network`; the shell face still adds
|
|
19611
19930
|
`target_unresolved`. The same generation's classifier also answers `rule_unreadable` / `write_protection_on_disk` / `artifact_shared_read` (a person did before).
|
|
@@ -19618,7 +19937,7 @@ components:
|
|
|
19618
19937
|
by any mode (bypass asks too, and the run gets one `permission.rule_store_unavailable` notice). Server 7.122.0–7.126.x (core 7.47.0–7.49.x) also
|
|
19619
19938
|
released `rule_unreadable` on every face: ten RELEASABLE classes plus an eleventh on the SHELL face (shell 11, other faces 10). Up to 7.121.x the
|
|
19620
19939
|
`RELEASABLE_ASK_CLASSES` constant (deleted in core 7.47.0) held ten, face-blind. Every other class (deployment-authored `operator_forced`, ask / org
|
|
19621
|
-
rules, hook, ancestor, content question, `unverifiable_shell_text` up to server 7.154.4, `org_unreadable` / `call_unreadable` from server 7.155.0, …) asks under every mode.
|
|
19940
|
+
rules, hook, ancestor, content question, `unverifiable_shell_text` up to server 7.154.4, `org_unreadable` / `call_unreadable` from server 7.155.0, `unfinished_check` from server 7.157.0, …) asks under every mode.
|
|
19622
19941
|
GateClassifierAsked:
|
|
19623
19942
|
type: object
|
|
19624
19943
|
additionalProperties: false
|
|
@@ -20056,7 +20375,10 @@ components:
|
|
|
20056
20375
|
core >= 5.55.0 (#333) — WHICH tool call a durable park is holding, minted by the engine from the
|
|
20057
20376
|
committed checkpoint''s pending action (a tool may not self-report it). Present only on a park
|
|
20058
20377
|
frame; absent on a park that holds no tool call (resource_limit / plan_review / task_done) —
|
|
20059
|
-
ABSENT, never guessed.
|
|
20378
|
+
ABSENT, never guessed. Server >= 7.157.0 (engine 7.70.0): the held call's own placeholder frame (`gatedCallId` = its own
|
|
20379
|
+
`toolCallId`) is `isError: false` + `notExecuted: true` + a "not run yet" sentence ("not answered yet" on a question card);
|
|
20380
|
+
`errorCode: "gate.parked"` and this key stay; the other calls the park cut short stay `isError: true`. Read a park by
|
|
20381
|
+
`errorCode: "gate.parked"`, not by `isError`.
|
|
20060
20382
|
# 🔴 core >=5.9.0 (W3 / [2535]). OPEN SET — deliberately a bare `type: string`, NOT an enum.
|
|
20061
20383
|
# This arm is `additionalProperties: false`, and the server's `toolEndEventData` has been emitting
|
|
20062
20384
|
# `errorCode` since 5.9.0, so omitting it made every legitimate frame carrying one fail strict
|
|
@@ -20561,6 +20883,15 @@ components:
|
|
|
20561
20883
|
server >= 7.137.0 (server-minted section; present only on NON-subagent frames): the skills this run handed to the engine, same set and order. Zero skills (including `disableSkills: true`) = `[]`.
|
|
20562
20884
|
It lists what was HANDED to the engine, not what the engine installed (a single skill over the engine's load gate is listed but not installed). A resume leg reports the roster of that resume's assembly.
|
|
20563
20885
|
items: { $ref: '#/components/schemas/WiringManifestSkill' }
|
|
20886
|
+
shadowedSkills:
|
|
20887
|
+
type: array
|
|
20888
|
+
items: { type: string }
|
|
20889
|
+
description: >-
|
|
20890
|
+
server >= 7.157.0 (server-minted section; present with `skills` and absent with it): the request body's `skills[]` entries NOT handed to the
|
|
20891
|
+
engine because the name was already taken, one item each, in request order; names compared byte for byte. The taker is the first same-named
|
|
20892
|
+
entry of this frame's `skills` (`factory` / `center` = shadowed by a deployment skill; `request` = a duplicate within the request). `[]` = none
|
|
20893
|
+
dropped (including `disableSkills: true`); absent is never `[]` (a ledger row an older server wrote replays with `skills` alone; child frames carry
|
|
20894
|
+
neither).
|
|
20564
20895
|
ask:
|
|
20565
20896
|
$ref: '#/components/schemas/WiringManifestAsk'
|
|
20566
20897
|
question:
|
|
@@ -21192,6 +21523,9 @@ components:
|
|
|
21192
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
|
|
21193
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
|
|
21194
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`.
|
|
21195
21529
|
Deduplicated ONCE PER TOOL CALL. 🔴 `parkLaneExisted` is a DISCRIMINANT, not a count: `true` = a park lane
|
|
21196
21530
|
was armed but declined/failed (check the store, check authorisation), `false` = there was no lane at all
|
|
21197
21531
|
(wire one up). The two recovery verbs differ, so a consumer MUST render them apart — NEVER fold them into
|
|
@@ -21248,6 +21582,17 @@ components:
|
|
|
21248
21582
|
detail's free-text redaction and truncation); a `reason` word outside the closed set drops the pair as a whole, so `reason` is PRESENT IFF its word is in the closed set (read `reason` as optional; servers before 7.150.0 always carry it), and `authorizeUrl` is not let through today (always absent). `server` / `principal` / `sessionId` / `runId` stay as they were. NOT on the user whitelist, though core's register holds it: `route.credential_rebound` (the HOST moved a per-model credential's binding, outside any run) is audience `operator` (core 7.59.0 through 7.68.2) — it never reaches this stream.
|
|
21249
21583
|
`model.role_defaulted` (a role seat names a model word the catalog does not hold, so the role reads as unset and the run goes on) was audience `operator` in core 7.59.0 - 7.66.x and is `user` since core 7.67.0:
|
|
21250
21584
|
server >= 7.153.0 puts it on the stream, `{ seat, role, model, reason, fallback, sessionId, runId? }` (`reason` is `unknown_model_ref` today; read it OPEN).
|
|
21585
|
+
server >= 7.157.0 (engine 7.70.0; whitelist 73 → 85 codes): five codes are RETIRED (zero alias) into one, `config.entries_not_applied` ("an entry the person
|
|
21586
|
+
wrote did not apply"), `detail: { kind, entries, count, identity, sessionId, runId?, … }` with `kind` in the engine's seven words (`stored_rule_row`,
|
|
21587
|
+
`rule_text_unreadable`, `mcp_injection_dropped`, `model_word_unknown`, `allow_entry_inert`, `session_rule_unread`, `session_rule_named_no_tool`; read it OPEN):
|
|
21588
|
+
`mcp.injection_dropped` ⇒ `mcp_injection_dropped`, `permission.allowed_tool_not_granted` ⇒ `allow_entry_inert`, `permission.rule_row_dropped` ⇒
|
|
21589
|
+
`stored_rule_row`, `permission.settings_rules_skipped` ⇒ `rule_text_unreadable`, `model.role_defaulted` ⇒ `model_word_unknown`; what the person wrote is in
|
|
21590
|
+
`detail.entries[].entry` (the redacted original, the same reading as every rule-text code). Sixteen user codes join the whitelist:
|
|
21591
|
+
`config.skill_deny_unreadable`, `config.session_rules_reread`, `mods.stop_continue_dropped`, `peer.inbound_unread`, `peer.notice_user_only`,
|
|
21592
|
+
`peer.receipt_delivered_user_only`, `peer.held_approval_unhonored`, `peer.held_decision_applied`, `peer.idle_subscription_declined`,
|
|
21593
|
+
`classifier.unavailable_handed_on`, `classifier.review_skipped`, `mcp.server_connecting`, `route.stream_content_dropped`, `mods.turn_aborted`,
|
|
21594
|
+
`mods.turn_abort_unconsumed`, `memory.capture_switched_off` (render by `message` when a code is not known). The paragraphs on the five retired codes
|
|
21595
|
+
describe servers <= 7.156.x.
|
|
21251
21596
|
Value change: `permission.rule_row_dropped`'s `detail.rows[].rule` is, since core 7.53.0, the rule's original text (the same reading as
|
|
21252
21597
|
`allowed_tool_not_granted`'s `entries[].entry`: at most 1 024 code points, longer cut to 1 024 + a truncation mark, CONTROL CHARACTERS RIDE AS DATA —
|
|
21253
21598
|
neutralize at render); before it was the engine-neutralized single-line form (at most 201 code points). Same keys.
|
|
@@ -21342,6 +21687,23 @@ components:
|
|
|
21342
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` =
|
|
21343
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.
|
|
21344
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).
|
|
21345
21707
|
A notice whose `detail.sessionId` is absent is HONESTLY NOT DELIVERED (the server never guesses a session),
|
|
21346
21708
|
so the frame's absence does NOT mean "did not happen" — the operator-facing structured log always has the
|
|
21347
21709
|
full family. `detail` is already redacted + size-bounded by the server; still treat it as external text.
|
|
@@ -21763,8 +22125,16 @@ components:
|
|
|
21763
22125
|
type: array
|
|
21764
22126
|
description: >-
|
|
21765
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`);
|
|
21766
|
-
`toolName` / `remedy` pass the egress seat. present-iff at least one was refused.
|
|
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).
|
|
21767
22130
|
items: { $ref: '#/components/schemas/RefusedAsk' }
|
|
22131
|
+
refusedAsksUnlisted:
|
|
22132
|
+
type: integer
|
|
22133
|
+
minimum: 1
|
|
22134
|
+
description: >-
|
|
22135
|
+
server >= 7.157.0 — how many refused asks were NOT listed (a positive integer; the engine's member outcome `unlisted`). Present ⇒ `refusedAsks`
|
|
22136
|
+
is present and incomplete; `refusedAsks` present with this key absent = the engine listed them all (20 or fewer). Neither key is sent when the
|
|
22137
|
+
count cannot be read. Live frame, ledger row (`GET /v1/runs/:id/events`) and the parked back-fill frame carry the same shape.
|
|
21768
22138
|
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.' }
|
|
21769
22139
|
summary: { type: string, description: 'UNTRUSTED display text.' }
|
|
21770
22140
|
sessionId: { type: string }
|
|
@@ -22635,11 +23005,15 @@ components:
|
|
|
22635
23005
|
offers it as `{ kind: single, rule: <tool name>, match: tool, command: "" }` on a tool no rule grammar speaks for (the service's own
|
|
22636
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.
|
|
22637
23007
|
|
|
22638
|
-
🔴
|
|
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
|
|
22639
23009
|
mint point is a lie — it lets a `switch` claim exhaustiveness the wire does not honour (SDK <= 16 declared
|
|
22640
23010
|
four here, so a `path` offer and every 7.118.0 skill-card offer were dropped as malformed; SDK <= 21 declared
|
|
22641
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).
|
|
22642
|
-
|
|
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]
|
|
22643
23017
|
|
|
22644
23018
|
RuleOfferUncoveredReason:
|
|
22645
23019
|
type: string
|
|
@@ -23862,6 +24236,8 @@ components:
|
|
|
23862
24236
|
description: >-
|
|
23863
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
|
|
23864
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.
|
|
23865
24241
|
outcome: { type: string }
|
|
23866
24242
|
trigger: { type: string, description: 'engine-shaped; current emitters send auto | manual | forced' }
|
|
23867
24243
|
reason: { type: string }
|
|
@@ -24065,6 +24441,9 @@ components:
|
|
|
24065
24441
|
toolCallId: { type: string, description: 'The refused call id (the same key as the `tool_start` / `tool_end` frames).' }
|
|
24066
24442
|
cause: { type: string, description: 'approver_unavailable / no_approver_wired / mandate_unreconstructible (open set).' }
|
|
24067
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`).' }
|
|
24068
24447
|
|
|
24069
24448
|
VerdictRefusal:
|
|
24070
24449
|
type: object
|
|
@@ -24282,6 +24661,14 @@ components:
|
|
|
24282
24661
|
runId: { type: string }
|
|
24283
24662
|
status: { type: string }
|
|
24284
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.
|
|
24285
24672
|
completionId:
|
|
24286
24673
|
type: string
|
|
24287
24674
|
description: >
|
|
@@ -24507,8 +24894,9 @@ components:
|
|
|
24507
24894
|
description: >
|
|
24508
24895
|
The 200 body of POST /v1/approvals/{sessionId}/decide when the pending checkpoint belongs to a
|
|
24509
24896
|
PARKED child: a background agent (server 1.267, ASSISTANT-WIRE-CONTRACT §4a parked variant; server
|
|
24510
|
-
parked-decide.ts — exact literal shapes) or, server >= 7.155.0, a workflow member.
|
|
24511
|
-
`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):
|
|
24512
24900
|
(1) `status: "resuming"` — the background agent's ACCEPTANCE receipt. The revive drives ASYNCHRONOUSLY — 200 means accepted,
|
|
24513
24901
|
not completed; a failed drive honestly re-parks the row and the pending re-appears on the list.
|
|
24514
24902
|
(2) `status: "failed"` (server >= 7.136.0; `decision` is always `deny`) — the VOIDED receipt: on the two forms that can
|
|
@@ -24519,7 +24907,7 @@ components:
|
|
|
24519
24907
|
void CAS is the existing `409 decide.gate_moved`.
|
|
24520
24908
|
(3) / (4) server >= 7.155.0, a PARKED WORKFLOW-MEMBER card: `status: "recorded"` / `"delivered"` — the two arms of
|
|
24521
24909
|
`WorkflowParkDecisionReceipt` (fixed key sets; `recorded` has no `taskId` / `sessionId`). Both cards look the same on the queue
|
|
24522
|
-
(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
|
|
24523
24911
|
workflow-member card whose holding run was still running with arm (1)'s exact key set, `taskId` then being the workflow run id
|
|
24524
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
|
|
24525
24913
|
(no `decision`; not an arm of this union — read it on `ApprovalDecisionResult`). From 7.155.0 arm (1) is background agents only.
|
|
@@ -24547,6 +24935,22 @@ components:
|
|
|
24547
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.' }
|
|
24548
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.' }
|
|
24549
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' }
|
|
24550
24954
|
- $ref: '#/components/schemas/WorkflowParkDecisionRecorded'
|
|
24551
24955
|
- $ref: '#/components/schemas/WorkflowParkDecisionDelivered'
|
|
24552
24956
|
|
|
@@ -24570,6 +24974,10 @@ components:
|
|
|
24570
24974
|
type: string
|
|
24571
24975
|
enum: [recorded, delivered]
|
|
24572
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.'
|
|
24573
24981
|
|
|
24574
24982
|
WorkflowParkDecisionRecorded:
|
|
24575
24983
|
type: object
|
|
@@ -25187,6 +25595,15 @@ components:
|
|
|
25187
25595
|
server >= 7.137.0 (server-minted section; present only on NON-subagent frames): the skills this run handed to the engine, same set and order. Zero skills (including `disableSkills: true`) = `[]`.
|
|
25188
25596
|
It lists what was HANDED to the engine, not what the engine installed (a single skill over the engine's load gate is listed but not installed). A resume leg reports the roster of that resume's assembly.
|
|
25189
25597
|
items: { $ref: '#/components/schemas/WiringManifestSkill' }
|
|
25598
|
+
shadowedSkills:
|
|
25599
|
+
type: array
|
|
25600
|
+
items: { type: string }
|
|
25601
|
+
description: >-
|
|
25602
|
+
server >= 7.157.0 (server-minted section; present with `skills` and absent with it): the request body's `skills[]` entries NOT handed to the
|
|
25603
|
+
engine because the name was already taken, one item each, in request order; names compared byte for byte. The taker is the first same-named
|
|
25604
|
+
entry of this frame's `skills` (`factory` / `center` = shadowed by a deployment skill; `request` = a duplicate within the request). `[]` = none
|
|
25605
|
+
dropped (including `disableSkills: true`); absent is never `[]` (a ledger row an older server wrote replays with `skills` alone; child frames carry
|
|
25606
|
+
neither).
|
|
25190
25607
|
ask:
|
|
25191
25608
|
$ref: '#/components/schemas/WiringManifestAsk'
|
|
25192
25609
|
question:
|
|
@@ -25867,6 +26284,131 @@ components:
|
|
|
25867
26284
|
The OUTBOUND segment (the server has sent it since 7.108.0; declared here from this version): which variable supplies the effective proxy
|
|
25868
26285
|
(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
26286
|
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.
|
|
26287
|
+
storeDurability:
|
|
26288
|
+
$ref: '#/components/schemas/StoreDurabilityWiring'
|
|
26289
|
+
description: >-
|
|
26290
|
+
server >= 7.148.0 (the server has sent it since then; declared here from 48.0.0) — store durability: the three-state summary plus the per-root
|
|
26291
|
+
detail. Same assembled value as the capability `store.durability` / `store.weakest` and `/health.store`; the per-root paths, mount points, mount
|
|
26292
|
+
sources and filesystem types appear on this operator face only. Absent = an older server.
|
|
26293
|
+
executionLane:
|
|
26294
|
+
$ref: '#/components/schemas/Capabilities/properties/executionLane'
|
|
26295
|
+
description: >-
|
|
26296
|
+
server >= 7.106.0 (the server has sent it since then; declared here from 48.0.0) — the execution lane's self-report, produced by the SAME
|
|
26297
|
+
projection as the capability `executionLane` (operator face and caller face agree by construction). Absent = an older server.
|
|
26298
|
+
sealedKeyCustody:
|
|
26299
|
+
oneOf:
|
|
26300
|
+
- $ref: '#/components/schemas/SealedKeyCustody'
|
|
26301
|
+
- type: 'null'
|
|
26302
|
+
description: >-
|
|
26303
|
+
server >= 7.157.0 — sealed-key custody read-back: the key ids each of this process's two domains holds, and the `SEALED_KEY_IMPORT_FROM` import
|
|
26304
|
+
reading. Ids only — key bytes and custody paths are not in this shape. `null` = this process cannot say (it was not assembled by the service entry);
|
|
26305
|
+
absent = an older server. To check two engines hold the same keys, read both engines' `held` (no promise they hold the same set at the same moment).
|
|
26306
|
+
StoreDurabilityWiring:
|
|
26307
|
+
type: object
|
|
26308
|
+
additionalProperties: false
|
|
26309
|
+
description: >-
|
|
26310
|
+
`WiringDiagnostics.storeDurability` (server >= 7.148.0; server `StoreDurabilityWiring`, mint `projectStoreDurabilityWiring`): `durability` = the
|
|
26311
|
+
weakest of the roots (the capability `store.durability`); `roots` = per-root verdicts in the order data root, sealed key directory, file memory root
|
|
26312
|
+
(the memory root only when the file memory engine is wired).
|
|
26313
|
+
required: [durability, roots]
|
|
26314
|
+
properties:
|
|
26315
|
+
durability: { type: string, enum: [durable, ephemeral, unknown] }
|
|
26316
|
+
roots:
|
|
26317
|
+
type: array
|
|
26318
|
+
items: { $ref: '#/components/schemas/StoreRootDurability' }
|
|
26319
|
+
StoreRootDurability:
|
|
26320
|
+
type: object
|
|
26321
|
+
additionalProperties: false
|
|
26322
|
+
description: >-
|
|
26323
|
+
One root of `StoreDurabilityWiring.roots` (server `StoreRootDurability`). `root` and `rule` use the same two word tables as `StoreWeakestRoot`
|
|
26324
|
+
(open on read). `path` = the physical path judged (links resolved); `null` for a SQL / memory data root, which has no path. `mountPoint` /
|
|
26325
|
+
`mountSource` / `fsType` = the mount seen through that path; all three `null` when it could not be told.
|
|
26326
|
+
required: [root, path, mountPoint, mountSource, fsType, rule, verdict]
|
|
26327
|
+
properties:
|
|
26328
|
+
root: { type: string }
|
|
26329
|
+
path: { type: ['string', 'null'] }
|
|
26330
|
+
mountPoint: { type: ['string', 'null'] }
|
|
26331
|
+
mountSource: { type: ['string', 'null'] }
|
|
26332
|
+
fsType: { type: ['string', 'null'] }
|
|
26333
|
+
rule: { type: string }
|
|
26334
|
+
verdict: { type: string, enum: [durable, ephemeral, unknown] }
|
|
26335
|
+
SealedKeyCustody:
|
|
26336
|
+
type: object
|
|
26337
|
+
additionalProperties: false
|
|
26338
|
+
description: >-
|
|
26339
|
+
`WiringDiagnostics.sealedKeyCustody` (server >= 7.157.0; server `SealedKeyCustody`, sole mint `buildSealedKeyCustodyReport`). `model` /
|
|
26340
|
+
`checkpointCtx` = every key id the domain's store holds, `null` when this process has no store for that domain. `import` = the
|
|
26341
|
+
`SEALED_KEY_IMPORT_FROM` reading, `null` when not declared; `at` = when this import's planning started (ISO). No word here means "the source may
|
|
26342
|
+
be deleted": `complete` only says every copy read this time is in this process's store and was proven on disk.
|
|
26343
|
+
required: [model, checkpointCtx, import]
|
|
26344
|
+
properties:
|
|
26345
|
+
model:
|
|
26346
|
+
oneOf:
|
|
26347
|
+
- { type: object, additionalProperties: false, required: [held], properties: { held: { type: array, items: { type: string } } } }
|
|
26348
|
+
- type: 'null'
|
|
26349
|
+
checkpointCtx:
|
|
26350
|
+
oneOf:
|
|
26351
|
+
- { type: object, additionalProperties: false, required: [held], properties: { held: { type: array, items: { type: string } } } }
|
|
26352
|
+
- type: 'null'
|
|
26353
|
+
import:
|
|
26354
|
+
oneOf:
|
|
26355
|
+
- type: object
|
|
26356
|
+
additionalProperties: false
|
|
26357
|
+
required: [at, sources]
|
|
26358
|
+
properties:
|
|
26359
|
+
at: { type: string }
|
|
26360
|
+
sources:
|
|
26361
|
+
type: array
|
|
26362
|
+
items: { $ref: '#/components/schemas/SealedKeyImportSource' }
|
|
26363
|
+
- type: 'null'
|
|
26364
|
+
SealedKeyImportSource:
|
|
26365
|
+
type: object
|
|
26366
|
+
additionalProperties: false
|
|
26367
|
+
description: >-
|
|
26368
|
+
One declared import source (server `SealedKeyImportSource`; `dir` = the declaration's spelling). `complete` has one definition, judged per domain:
|
|
26369
|
+
each domain on its own is `absent`, or `listed` with an empty `refused` — `true` when both domains pass (one `absent` and the other `listed` with no refusal
|
|
26370
|
+
passes too); either domain `unread`, or `listed` with refusals, makes it `false`.
|
|
26371
|
+
required: [dir, complete, model, checkpointCtx]
|
|
26372
|
+
properties:
|
|
26373
|
+
dir: { type: string }
|
|
26374
|
+
complete: { type: boolean }
|
|
26375
|
+
model: { $ref: '#/components/schemas/SealedKeyImportReading' }
|
|
26376
|
+
checkpointCtx: { $ref: '#/components/schemas/SealedKeyImportReading' }
|
|
26377
|
+
SealedKeyImportReading:
|
|
26378
|
+
description: >-
|
|
26379
|
+
One source's reading in one domain (server `SealedKeyImportReading`, discriminated by `read`): `absent` = the source is not there; `unread` = it
|
|
26380
|
+
could not be read (`why`: `unreadable` not a directory / cannot be listed · `overlap` two of the directories are the same one · `not_run` this
|
|
26381
|
+
domain ran no import); `listed` = listed, `refused` = the copies not held (empty = all held).
|
|
26382
|
+
oneOf:
|
|
26383
|
+
- { type: object, additionalProperties: false, required: [read], properties: { read: { type: string, enum: [absent] } } }
|
|
26384
|
+
- type: object
|
|
26385
|
+
additionalProperties: false
|
|
26386
|
+
required: [read, why]
|
|
26387
|
+
properties:
|
|
26388
|
+
read: { type: string, enum: [unread] }
|
|
26389
|
+
why: { type: string, enum: [unreadable, overlap, not_run] }
|
|
26390
|
+
- type: object
|
|
26391
|
+
additionalProperties: false
|
|
26392
|
+
required: [read, refused]
|
|
26393
|
+
properties:
|
|
26394
|
+
read: { type: string, enum: [listed] }
|
|
26395
|
+
refused:
|
|
26396
|
+
type: array
|
|
26397
|
+
items: { $ref: '#/components/schemas/SealedKeyImportRefusal' }
|
|
26398
|
+
SealedKeyImportRefusal:
|
|
26399
|
+
type: object
|
|
26400
|
+
additionalProperties: false
|
|
26401
|
+
description: >-
|
|
26402
|
+
A copy that was not held (server `SealedKeyImportRefusal`): `file` = the directory entry name in the source; `id` = the key id inside it, when
|
|
26403
|
+
readable; `why` = `untrusted` not a regular file itself or refused by the trust judge · `unreadable` skipped by the loader · `unpaired` the
|
|
26404
|
+
private key does not derive the public key in the file · `conflict` same id, different material (not overwritten) · `name_taken` the custody
|
|
26405
|
+
directory already has that file name holding another key (not overwritten) · `unproven` publishing failed, or the final load lacks it / the
|
|
26406
|
+
on-disk proof failed · `lock_held` the write lock stayed held until its deadline, not published.
|
|
26407
|
+
required: [file, why]
|
|
26408
|
+
properties:
|
|
26409
|
+
file: { type: string }
|
|
26410
|
+
id: { type: string }
|
|
26411
|
+
why: { type: string, enum: [untrusted, unreadable, unpaired, conflict, name_taken, unproven, lock_held] }
|
|
25870
26412
|
WiringOutbound:
|
|
25871
26413
|
type: object
|
|
25872
26414
|
additionalProperties: false
|