@sema-agent/sdk 32.0.0 → 34.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 +119 -0
- package/dist/device/index.d.ts +2 -1
- package/dist/device/index.d.ts.map +1 -1
- package/dist/device/index.js +4 -2
- package/dist/device/index.js.map +1 -1
- package/dist/errors.d.ts +44 -11
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +34 -12
- package/dist/errors.js.map +1 -1
- package/dist/events.d.ts +122 -29
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +8 -0
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +23 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/normalize.d.ts +2 -2
- package/dist/normalize.d.ts.map +1 -1
- package/dist/normalize.js +0 -1
- package/dist/normalize.js.map +1 -1
- package/dist/resources/approvals.d.ts +66 -11
- package/dist/resources/approvals.d.ts.map +1 -1
- package/dist/resources/approvals.js +56 -3
- package/dist/resources/approvals.js.map +1 -1
- package/dist/resources/assistant.d.ts +9 -5
- package/dist/resources/assistant.d.ts.map +1 -1
- package/dist/resources/assistant.js +9 -4
- package/dist/resources/assistant.js.map +1 -1
- package/dist/resources/memory.d.ts +15 -8
- package/dist/resources/memory.d.ts.map +1 -1
- package/dist/resources/memory.js +15 -8
- package/dist/resources/memory.js.map +1 -1
- package/dist/resources/rules.d.ts +18 -11
- package/dist/resources/rules.d.ts.map +1 -1
- package/dist/resources/session-sync.d.ts +7 -5
- package/dist/resources/session-sync.d.ts.map +1 -1
- package/dist/resources/session-sync.js +7 -5
- package/dist/resources/session-sync.js.map +1 -1
- package/dist/resources/sessions.d.ts +24 -12
- package/dist/resources/sessions.d.ts.map +1 -1
- package/dist/resources/sessions.js +18 -8
- package/dist/resources/sessions.js.map +1 -1
- package/dist/resources/side-query.d.ts +5 -2
- package/dist/resources/side-query.d.ts.map +1 -1
- package/dist/resources/side-query.js.map +1 -1
- package/dist/resources/tool-approvals.d.ts +77 -26
- package/dist/resources/tool-approvals.d.ts.map +1 -1
- package/dist/resources/tool-approvals.js +50 -14
- package/dist/resources/tool-approvals.js.map +1 -1
- package/dist/settings.d.ts +13 -7
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +3 -3
- package/dist/transport.d.ts +4 -2
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +4 -3
- package/dist/transport.js.map +1 -1
- package/dist/types.d.ts +198 -34
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +37 -0
- package/dist/types.js.map +1 -1
- package/openapi.yaml +473 -137
- package/package.json +1 -1
package/openapi.yaml
CHANGED
|
@@ -294,11 +294,19 @@ paths:
|
|
|
294
294
|
application/json:
|
|
295
295
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
296
296
|
'429': { $ref: '#/components/responses/RateLimited' } # limit.rate_exceeded — 12/60s per identity, OR the replica-wide in-flight cap (32, ACROSS identities: one caller can be refused because of another). Retry-After and the body's `retryAfterSec` are the same value; the body's absence means no header either
|
|
297
|
+
'409':
|
|
298
|
+
description: >
|
|
299
|
+
server >= 7.143.0: errorCode `config.mcp_server_name_collision` — two declared MCP servers would mount under the same tool-namespace
|
|
300
|
+
prefix; the same code, status and sentence as the synchronous submit leg (which answered 200 + a `failed` body before). Fix the
|
|
301
|
+
deployment's declarations; retrying does not change it. (7.142.x and earlier answered this case with the codeless 500 below.)
|
|
302
|
+
content:
|
|
303
|
+
application/json:
|
|
304
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
297
305
|
'500':
|
|
298
306
|
description: >
|
|
299
307
|
errorCode `internal.error` — the engine refused THIS DEPLOYMENT'S declaration SET as a whole (the one
|
|
300
|
-
documented cause: two servers would mount under the same tool-namespace prefix, refused BEFORE any
|
|
301
|
-
transport is touched). 🔴 WHOEVER WROTE THE DECLARATIONS OWNS THE ERROR: on this door they are the
|
|
308
|
+
documented cause on servers <= 7.142.x: two servers would mount under the same tool-namespace prefix, refused BEFORE any
|
|
309
|
+
transport is touched; server >= 7.143.0 answers that cause with the 409 above). 🔴 WHOEVER WROTE THE DECLARATIONS OWNS THE ERROR: on this door they are the
|
|
302
310
|
deployment's, so this machine's configuration is broken and a 5xx is the honest direction — folding it
|
|
303
311
|
into a 4xx would report an operator's mistake as the caller's. The cause is NOT echoed (it comes from
|
|
304
312
|
the declaration set itself); it is in this worker's logs. Retrying does not change it.
|
|
@@ -482,6 +490,11 @@ paths:
|
|
|
482
490
|
checkout's `.sema/project` marker), `config.memory_project_marker` (the marker is unreadable and this leg needs a project identity) and `config.memory_project_marker_nested` (the marker is nested below the repo root) —
|
|
483
491
|
refused before the run starts, zero tokens; the request is well-formed, the checkout state conflicts with it (declare the marker's id / fix the marker / use another session; a verbatim retry does not change the verdict). `activeTaskId` is
|
|
484
492
|
absent. Async / live legs answer 2xx with the same code on the terminal run row / `done` frame's `terminal.code`.
|
|
493
|
+
Server >= 7.144.0, zero-work submissions only: `env.home_unconfirmed` — on the host lane (including `run-local`) the execution environment's home-directory claim
|
|
494
|
+
(`REMOTE_EXEC_HOME_DIR`, absent ⇒ the service process's home) does not match the `HOME` the child process gets, cannot be read, or is not an absolute path ⇒ the
|
|
495
|
+
environment is not minted: no command ran, no model call, nothing billed, the idempotency key is not taken. The request is well-formed, the deployment state conflicts
|
|
496
|
+
with it (drop the claim or set it to `HOME`'s value, or remove `HOME` from the session's `settings.env`); a verbatim retry does not change the verdict. `activeTaskId` is
|
|
497
|
+
absent. Async / live legs answer 2xx with the same code on the terminal run row / `done` frame's `terminal.code`. The only member of the server's `env.*` family today.
|
|
485
498
|
K-24 (server >= 7.104.0 / S-724, zero-work submissions only): `rewind.store_unconfigured` — this
|
|
486
499
|
deployment has NO file-history store but the request asks to restore files; the request is well-formed, the
|
|
487
500
|
deployment shape conflicts with it (change the deployment, not the request; `capabilities.rewindFiles` is false
|
|
@@ -522,9 +535,10 @@ paths:
|
|
|
522
535
|
no meta header; SQL backends: one `session_event.payload` row is not a readable entry). Nothing ran, nothing
|
|
523
536
|
billed; `error` is the engine / store sentence (no on-disk path). DETERMINISTIC: a retry cannot change it (the SDK
|
|
524
537
|
does not auto-retry this code); the repair is the operator's. Also `internal.error` (unclassified).
|
|
525
|
-
server >= 7.
|
|
526
|
-
a missing leaf)
|
|
527
|
-
|
|
538
|
+
server >= 7.144.0: the same `corrupt_session` also answers a stored log that reads but is structurally broken (a dangling parent, a self-parent, a cycle or
|
|
539
|
+
a missing leaf) when the replay dropped no record — switch to a new session or fork from an entry above the break. Servers 7.137.0–7.143.x answered that form
|
|
540
|
+
`invalid_session` (retired at 7.144.0; this SDK no longer exempts the retired code, so against those servers it is retried by status). A log whose replay DID drop
|
|
541
|
+
records and whose branch broke at the missing parent is no longer refused: the run continues from the break (200).
|
|
528
542
|
content:
|
|
529
543
|
application/json:
|
|
530
544
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -1944,9 +1958,11 @@ paths:
|
|
|
1944
1958
|
total: { type: integer, description: 'present on the out-of-range `?message=` 404 — the message count available.' }
|
|
1945
1959
|
'500':
|
|
1946
1960
|
description: >-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1961
|
+
`corrupt_session` — the session's stored log cannot be read, or (server >= 7.144.0) reads but is structurally broken (a dangling parent, a self-parent,
|
|
1962
|
+
a cycle or a missing leaf). DETERMINISTIC: a retry cannot change it (the SDK does not auto-retry this code) — switch to a new session or fork from an entry
|
|
1963
|
+
above the break. Servers 7.137.0–7.143.x answered the structurally broken form `invalid_session` (retired at 7.144.0). Known difference (7.144.0): when the
|
|
1964
|
+
replay dropped records and the branch broke at the missing parent, a run continues from the break while this view still answers 500 `corrupt_session`.
|
|
1965
|
+
Also `internal.error` (unclassified).
|
|
1950
1966
|
content:
|
|
1951
1967
|
application/json:
|
|
1952
1968
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -2102,6 +2118,9 @@ paths:
|
|
|
2102
2118
|
description: >-
|
|
2103
2119
|
`conflict.fork_id_taken` (server >= 7.139.0, keyed fork): `forkId` already names ANOTHER session of yours (a different fork, or a session this fork request did not create); nothing was forked; top-level `forkId`.
|
|
2104
2120
|
FINAL — pick a new `forkId` and `forkNonce`. (Someone else's session answers `404 not_found.session`, byte-identical to an unknown source.)
|
|
2121
|
+
`conflict.session_archive_stamped` (server >= 7.144.0, `DB_BACKEND=local` only): the source session's stored archive still carries an owner stamp written by an earlier server version (left in place
|
|
2122
|
+
by the one-time data-root migration), so it cannot be forked; nothing was written. The only way out: delete that session and push it again (reads, resumes and pulls work as before). Servers
|
|
2123
|
+
7.141.0–7.143.x answered it with the bare `conflict` (no `relation`). A plain ConflictError (the `conflict.` prefix family).
|
|
2105
2124
|
content:
|
|
2106
2125
|
application/json:
|
|
2107
2126
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -2114,9 +2133,10 @@ paths:
|
|
|
2114
2133
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
2115
2134
|
'500':
|
|
2116
2135
|
description: >-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
DETERMINISTIC: a retry cannot change
|
|
2136
|
+
This route has no error mapping of its own; a session error it raises reaches the server's top-level catch, which maps it through the shared table: `corrupt_session` answers 500 `corrupt_session` —
|
|
2137
|
+
server >= 7.144.0 that includes a structurally broken stored log met while copying (the SQL session stores walk the log through the engine). Servers 7.137.0–7.143.x answered that form
|
|
2138
|
+
500 `invalid_session` (retired at 7.144.0); before 7.137.0 it was `internal.error`. DETERMINISTIC: a retry cannot change it (the SDK does not auto-retry this code) — start a new session.
|
|
2139
|
+
Also `internal.error` (unclassified).
|
|
2120
2140
|
content:
|
|
2121
2141
|
application/json:
|
|
2122
2142
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -2292,9 +2312,9 @@ paths:
|
|
|
2292
2312
|
(declared 2026-07-31) errorCode "internal.error" — `routes/sessions.ts`'s catch around the owner
|
|
2293
2313
|
lookup / subscribe setup, sent only when it fires BEFORE the SSE `200` headers went out
|
|
2294
2314
|
(`!res.headersSent`); once streaming has started a failure just ends the connection instead.
|
|
2295
|
-
That catch maps a session error through the shared table first: a session error with a mapped code answers that code (`corrupt_session
|
|
2296
|
-
|
|
2297
|
-
none of the three stores the server ships (local file, PostgreSQL, MySQL-protocol)
|
|
2315
|
+
That catch maps a session error through the shared table first: a session error with a mapped code answers that code (`corrupt_session` — DETERMINISTIC: a retry cannot change it; the SDK does not
|
|
2316
|
+
auto-retry it); any other failure stays `internal.error`. A structurally broken stored log (server >= 7.144.0 `corrupt_session`; 7.137.0–7.143.x `invalid_session`, retired) does not reach this
|
|
2317
|
+
response: none of the three stores the server ships (local file, PostgreSQL, MySQL-protocol) walks the log's parent chain in its head read before the stream starts — only a store of your own can.
|
|
2298
2318
|
content:
|
|
2299
2319
|
application/json:
|
|
2300
2320
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -2433,10 +2453,7 @@ paths:
|
|
|
2433
2453
|
required: false
|
|
2434
2454
|
content:
|
|
2435
2455
|
application/json:
|
|
2436
|
-
schema:
|
|
2437
|
-
type: object
|
|
2438
|
-
properties:
|
|
2439
|
-
message: { type: string, minLength: 1 }
|
|
2456
|
+
schema: { $ref: '#/components/schemas/SessionWakeRequest' }
|
|
2440
2457
|
responses:
|
|
2441
2458
|
'200':
|
|
2442
2459
|
# 🔴 census 批2 第三段(2026-07-30)spec 谎修正:此前这里写的是 **202** + required [taskId,…]。
|
|
@@ -3017,10 +3034,10 @@ paths:
|
|
|
3017
3034
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
3018
3035
|
'500':
|
|
3019
3036
|
description: >-
|
|
3020
|
-
Two codes.
|
|
3021
|
-
a cycle or a missing leaf
|
|
3022
|
-
auto-retry this code) — switch to a new session or fork from an entry above the break.
|
|
3023
|
-
Otherwise errorCode
|
|
3037
|
+
Two codes. `corrupt_session` — the session's stored log cannot be read, or (server >= 7.144.0) reads but is structurally broken (a dangling parent,
|
|
3038
|
+
a self-parent, a cycle or a missing leaf; servers 7.137.0–7.143.x answered that form `invalid_session`, retired at 7.144.0). DETERMINISTIC: a retry cannot change it
|
|
3039
|
+
(the SDK does not auto-retry this code) — switch to a new session or fork from an entry above the break.
|
|
3040
|
+
Otherwise errorCode `internal.error` — `routes/sessions.ts`'s catch around `face.status(sessionId)`: core
|
|
3024
3041
|
promises the face never throws, so reaching this arm is an assembly defect; the server fails LOUD
|
|
3025
3042
|
(500) rather than answering a plausible all-keys-absent body. The SDK maps it to
|
|
3026
3043
|
`InternalServerError`. (codex R1 of the 7.3.1 batch: the arm exists in the shipped 7.53.0 route and
|
|
@@ -3048,8 +3065,8 @@ paths:
|
|
|
3048
3065
|
there is no operator override arm), and the attestation's `select` echoes exactly that. The body is
|
|
3049
3066
|
`SessionMemoryEraseRequest` handed through as sent: no `select` (a body carrying one is a loud 400
|
|
3050
3067
|
`request.body_shape`, never silently ignored — while any OTHER unknown key IS silently ignored and not forwarded),
|
|
3051
|
-
`allowUnevidenced` NEVER INJECTED (the degraded lane is a human authorization statement).
|
|
3052
|
-
|
|
3068
|
+
`allowUnevidenced` NEVER INJECTED (the degraded lane is a human authorization statement). Server 7.140.0–7.142.x also read an optional layer seat
|
|
3069
|
+
`scope`; server >= 7.143.0 refuses a body carrying `scope` (any value) with a loud 400 `request.body_shape` — the erasure spans the whole deployment.
|
|
3053
3070
|
|
|
3054
3071
|
🔴 `requestId` IS THIS ERASURE'S IDEMPOTENCY IDENTITY — the same two-lane law as the operator face (read
|
|
3055
3072
|
`evidenceCapability`): `"journal"` ⇒ a resend with the SAME id reads back the anchor's pinned ids and never re-resolves
|
|
@@ -3060,13 +3077,12 @@ paths:
|
|
|
3060
3077
|
server 7.108.0 this face classifies it like the operator face does — <= 7.107.x answered 500 `internal.error`). 🔴 DO NOT put an
|
|
3061
3078
|
automatic retry policy on this endpoint.
|
|
3062
3079
|
|
|
3063
|
-
🔴 ERASURE
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
the engine's sentence goes to the operator log). 400 `request.memory_layer` here means the `scope` (or this deployment's configured layer) cannot be read.
|
|
3080
|
+
🔴 ERASURE ANSWERS THE WHOLE DEPLOYMENT (server >= 7.143.0; the engine's one deployment object): this session's share in EACH store is erased by that store and
|
|
3081
|
+
the attestations are merged into one; a `requestId` names one request across the whole deployment (the same id first executed in another store ⇒ 409
|
|
3082
|
+
`memory.erasure_selector_mismatch`, nothing erased or recorded). The 7.140.0–7.142.x body layer seat `scope` is retired (there is no "which store" to name):
|
|
3083
|
+
a body carrying it ⇒ 400 `request.body_shape`; the 7.140.0–7.142.x 409 code (erasure store unjudged) is retired with it (those requests now execute).
|
|
3084
|
+
`DB_BACKEND=local`: an owner that cannot be judged (no row fact and the archive unreadable) ⇒ 404 `not_found.session`, same code and sentence as non-owner.
|
|
3085
|
+
The audience is the session owner, so every refusal on this face is a FIXED sentence (layer keys and paths never ride the wire; the engine's sentence goes to the operator log).
|
|
3070
3086
|
|
|
3071
3087
|
GATE ORDER (release bytes): 503 destructive-session-write guard → 401 → 501 (no owner audit face — BEFORE the 404: a
|
|
3072
3088
|
deployment without one must not fake a 404) → 404 (unknown AND non-owner, SAME code SAME message) → 501 (compliance face
|
|
@@ -3087,12 +3103,12 @@ paths:
|
|
|
3087
3103
|
'400':
|
|
3088
3104
|
description: >
|
|
3089
3105
|
errorCode "request.body_shape" — the body is not a JSON object, or it carries `select` (the selector is fixed by the
|
|
3090
|
-
path; the operator face takes explicit selectors)
|
|
3106
|
+
path; the operator face takes explicit selectors), or (server >= 7.143.0) it carries `scope` (the retired layer seat: this face erases the
|
|
3107
|
+
session's contributions in every store of the deployment, so there is no layer to name). "request.request_id_required" — `requestId` missing / empty /
|
|
3091
3108
|
non-string. "request.field_invalid" — `allowUnevidenced` present but not a boolean. "request.path_malformed" — the
|
|
3092
3109
|
session id segment is not valid percent-encoding. "config.memory_erasure_request" — core's own selector verdict (the
|
|
3093
|
-
route keeps the arm; today the server's own gates answer first, so it is not reached). Server >= 7.140.0: "request.memory_layer" —
|
|
3094
|
-
|
|
3095
|
-
covers a `scope` that is present but not a non-empty string.
|
|
3110
|
+
route keeps the arm; today the server's own gates answer first, so it is not reached). Server >= 7.140.0: "request.memory_layer" — a
|
|
3111
|
+
memory layer this deployment keeps cannot be read (a FIXED sentence for the session owner; on 7.140.0–7.142.x also the body's `scope`).
|
|
3096
3112
|
content:
|
|
3097
3113
|
application/json:
|
|
3098
3114
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -3106,9 +3122,7 @@ paths:
|
|
|
3106
3122
|
the operator to remove the link, then resend with the SAME `requestId`. Since server 7.108.0 the other classified refusals of the
|
|
3107
3123
|
operator face arrive here too, each with its own code and a FIXED sentence: "memory.erasure_selector_mismatch" /
|
|
3108
3124
|
"memory.erasure_evidence_unavailable" / "memory.erasure_census_incomplete"; "memory.scope_home_not_directory" (server >= 7.118.0, same
|
|
3109
|
-
reading as the link code).
|
|
3110
|
-
deployment's (a `scope` naming a personal-mount layer, or no `scope` and this session has contributions there / that store's ledger cannot be
|
|
3111
|
-
read): NOTHING erased; a transitional guard, do NOT retry.
|
|
3125
|
+
reading as the link code). The 7.140.0–7.142.x store guard code is retired at server 7.143.0 (erasure answers the whole deployment).
|
|
3112
3126
|
content:
|
|
3113
3127
|
application/json:
|
|
3114
3128
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
@@ -3180,10 +3194,17 @@ paths:
|
|
|
3180
3194
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
3181
3195
|
'404': { description: 'errorCode "not_found.session" — unknown session AND another principal''s session, byte-identical (anti-enumeration).' }
|
|
3182
3196
|
'409':
|
|
3183
|
-
description:
|
|
3197
|
+
description: >-
|
|
3198
|
+
`conflict.session_memory_unobserved` — no read set; carries `activeTaskId` when a run is in flight. server >= 7.143.0: the body ALWAYS carries
|
|
3199
|
+
`reason` (SessionMemoryUnobservedExtra; closed set, judged in this order) and the sentence follows it; a latest settled run whose memory was configured
|
|
3200
|
+
but did not mount (`memory_not_mounted`) answered 200 with an empty report on 7.142.x. Branch on `errorCode` + `reason`, never on the sentence;
|
|
3201
|
+
an unknown word reads as "no read set".
|
|
3184
3202
|
content:
|
|
3185
3203
|
application/json:
|
|
3186
|
-
schema:
|
|
3204
|
+
schema:
|
|
3205
|
+
allOf:
|
|
3206
|
+
- { $ref: '#/components/schemas/ErrorResponse' }
|
|
3207
|
+
- { $ref: '#/components/schemas/SessionMemoryUnobservedExtra' }
|
|
3187
3208
|
'500': { description: 'errorCode "internal.error" — the engine refused to mint the report.' }
|
|
3188
3209
|
'501': { description: '`feature.memory_sync_disabled` (no local sync leg) · `capability.run_store_required` · `capability.session_ownership_required` — capability bit `sessionMemorySync` is false.' }
|
|
3189
3210
|
/v1/sessions/{sessionId}/sync/manifest:
|
|
@@ -3554,7 +3575,12 @@ paths:
|
|
|
3554
3575
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
3555
3576
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
3556
3577
|
'409':
|
|
3557
|
-
description:
|
|
3578
|
+
description: >-
|
|
3579
|
+
409 `conflict` — a commit-time TOCTOU re-classify flipped to fork/stale (carries `relation`; SyncConflictError), or the owner cell changed while the import
|
|
3580
|
+
streamed (no `relation`; restart the sync from Phase A). `conflict.session_archive_stamped` (server >= 7.144.0, `DB_BACKEND=local` only; every
|
|
3581
|
+
log-changing push shape, the payload-fork `fast_forward` included, answers the same code and sentence): the target's stored archive still carries an owner
|
|
3582
|
+
stamp written by an earlier server version — nothing written; the only way out is to delete that session and push it again (restarting the sync hits the
|
|
3583
|
+
same refusal). Servers 7.141.0–7.143.x answered it with the bare `conflict` (no `relation`). A plain ConflictError.
|
|
3558
3584
|
content:
|
|
3559
3585
|
application/json:
|
|
3560
3586
|
schema: { $ref: '#/components/schemas/SyncConflict' }
|
|
@@ -3665,6 +3691,7 @@ paths:
|
|
|
3665
3691
|
- in: path
|
|
3666
3692
|
name: sessionId
|
|
3667
3693
|
required: true
|
|
3694
|
+
description: 'The row''s door id: a `checkpoint` row''s `sessionId`, or a `peer_inbound` row''s `id` (server >= 7.143.0; opaque, `peer_inbound:` prefix — pass it back verbatim).'
|
|
3668
3695
|
schema: { type: string }
|
|
3669
3696
|
post:
|
|
3670
3697
|
tags: [approvals]
|
|
@@ -3676,11 +3703,19 @@ paths:
|
|
|
3676
3703
|
continues its durable stream (`/v1/runs/:id/events`). design/80 D-1: the decision SHOULD carry the
|
|
3677
3704
|
action binding (boundCallId + boundInputHash, read off the PendingCheckpoint) — the server resolves THAT
|
|
3678
3705
|
exact checkpoint, fail-closed on mismatch. (Path param stays `sessionId`; the binding travels in the body.)
|
|
3706
|
+
🔴 server >= 7.143.0 ONE DOOR, TWO FAMILIES (every `pending[]` row names its family in `kind`): a `checkpoint` row is decided at
|
|
3707
|
+
`:sessionId` with ApprovalDecision (the binding pair REQUIRED — 400 `decide_requires_binding` + `missingKeys`); a `peer_inbound`
|
|
3708
|
+
row is decided at its `id` with exactly `{ decision: "approve" | "deny" }` (any other key ⇒ 400 naming it) and answers
|
|
3709
|
+
`200 PeerInboundDecideResult` / `404 not_found.approval` / `503 state.peer_decision_unrecorded` (retriable: the decision was not
|
|
3710
|
+
recorded). Branch on the row's `kind` first; skip a row whose `kind` you do not know.
|
|
3679
3711
|
requestBody:
|
|
3680
3712
|
required: true
|
|
3681
3713
|
content:
|
|
3682
3714
|
application/json:
|
|
3683
|
-
schema:
|
|
3715
|
+
schema:
|
|
3716
|
+
oneOf:
|
|
3717
|
+
- { $ref: '#/components/schemas/ApprovalDecision' }
|
|
3718
|
+
- { $ref: '#/components/schemas/PeerInboundDecision' }
|
|
3684
3719
|
responses:
|
|
3685
3720
|
'200':
|
|
3686
3721
|
description: >-
|
|
@@ -3689,7 +3724,10 @@ paths:
|
|
|
3689
3724
|
(see `ParkedDecideAccepted`, `ApprovalDecisionResult`).
|
|
3690
3725
|
content:
|
|
3691
3726
|
application/json:
|
|
3692
|
-
schema:
|
|
3727
|
+
schema:
|
|
3728
|
+
oneOf:
|
|
3729
|
+
- { $ref: '#/components/schemas/ApprovalDecisionResult' }
|
|
3730
|
+
- { $ref: '#/components/schemas/PeerInboundDecideResult' }
|
|
3693
3731
|
'400':
|
|
3694
3732
|
description: >-
|
|
3695
3733
|
(declared 2026-07-31) `routes/approvals-assistant.ts` has 9+ distinct 400 sites on this verb, all
|
|
@@ -3706,7 +3744,11 @@ paths:
|
|
|
3706
3744
|
the proof's binding. A compliant client never sends it: this SDK deleted the field at 1.0.0)
|
|
3707
3745
|
· "request.field_invalid" ALSO covers an unrecognised key inside `answer` (server >= 7.87.0 /
|
|
3708
3746
|
S-452: the closed answer shape — the message names the key paths and the body carries `unknownKeys`)
|
|
3709
|
-
· "
|
|
3747
|
+
· "decide_requires_binding" (server >= 7.143.0: `boundCallId` or `boundInputHash` missing / empty on a checkpoint-family
|
|
3748
|
+
decide — judged after the gate-type guard, nothing driven, card still pending; body `missingKeys` (in the order
|
|
3749
|
+
boundCallId, boundInputHash) + `bindingEnforced`; it also replaces the retired remember-only binding code)
|
|
3750
|
+
· "decide.parked_restatement_unsupported" (server >= 7.143.0: `mcpServers` / `a2aPeers` restated on a card parked by a
|
|
3751
|
+
background child) · "restatement_not_in_proof" (the same two keys on a direct-door worker). PARKED variant (server 5.12.0, core 5.7.0 RB-459):
|
|
3710
3752
|
`decide.parked_answer_required` — the parked child's pending action is an AskUserQuestion and the
|
|
3711
3753
|
approve carried no `answer` (the ONLY pre-claim rejection left on that leg; the retired codes
|
|
3712
3754
|
`decide.parked_answer_unsupported` / `decide.parked_question_unsupported` are gone — an answer HAS
|
|
@@ -4122,9 +4164,15 @@ paths:
|
|
|
4122
4164
|
summary: Resume a resource_limit-suspended task (CONTINUE).
|
|
4123
4165
|
description: >
|
|
4124
4166
|
ASSISTANT-WIRE-CONTRACT §4b — resumes a task durably SUSPENDED on a `resource_limit` gate (scheduler
|
|
4125
|
-
preempt OR a budget/turns/walltime slice).
|
|
4167
|
+
preempt OR a budget/turns/walltime slice). 🔴 GATE-KIND GUARD: a `human`/`policy_ask`
|
|
4126
4168
|
gate → 409 `gate_not_resumable` (a "continue" must NEVER bypass a human approval — use `/decide`).
|
|
4127
4169
|
Owner-gated (NOT D-G); non-owner → 404. SDK → GateNotResumableError on the 409.
|
|
4170
|
+
Body: server >= 7.143.0 takes the resume restatement `mcpServers` / `a2aPeers` (see ApprovalDecision.mcpServers); older servers ignore a body.
|
|
4171
|
+
requestBody:
|
|
4172
|
+
required: false
|
|
4173
|
+
content:
|
|
4174
|
+
application/json:
|
|
4175
|
+
schema: { $ref: '#/components/schemas/ResumeRestatement' }
|
|
4128
4176
|
responses:
|
|
4129
4177
|
'200':
|
|
4130
4178
|
# 2026-07-25:此前只声明 `{status}`。真体(`src/http/routes/approvals-assistant.ts`,与 plan_review 共用
|
|
@@ -4736,6 +4784,9 @@ paths:
|
|
|
4736
4784
|
and a word outside the closed set are both 400 `request.body_shape`, refused BEFORE the decision (the card is
|
|
4737
4785
|
still open; answer it again with the same `approvalId`). 🔴 An older server (no `approvalDecidedBy`
|
|
4738
4786
|
capability bit) DROPS this key silently and answers 200 — probe the bit first.
|
|
4787
|
+
decidedVia:
|
|
4788
|
+
allOf: [{ $ref: '#/components/schemas/ApprovalDecidedVia' }]
|
|
4789
|
+
description: 'server >= 7.143.0 (capability `approvalDecidedVia`): see ApprovalDecision.decidedVia.'
|
|
4739
4790
|
note:
|
|
4740
4791
|
type: string
|
|
4741
4792
|
maxLength: 2048
|
|
@@ -5682,7 +5733,7 @@ paths:
|
|
|
5682
5733
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
5683
5734
|
'501': { $ref: '#/components/responses/NotImplemented' }
|
|
5684
5735
|
|
|
5685
|
-
/
|
|
5736
|
+
/v2/memory/sync/{scope}:
|
|
5686
5737
|
parameters:
|
|
5687
5738
|
- $ref: '#/components/parameters/PrincipalHeader'
|
|
5688
5739
|
- in: path
|
|
@@ -5703,6 +5754,11 @@ paths:
|
|
|
5703
5754
|
`memory_sync_invalid_body`). A 500 after partial application is an HONEST signal: replaying with the
|
|
5704
5755
|
same baseRevs is idempotent self-healing (identical revs no-op throughout) — never silently swallowed.
|
|
5705
5756
|
Server >= 7.140.0: a `:scope` the engine cannot read as a layer key ⇒ 400 `request.memory_layer` (it was a 500 before).
|
|
5757
|
+
🔴 Server >= 7.143.0 (engine 7.61.0): the path is `/v2/memory/sync/{scope}`; `/v1/memory/sync/…` is unclaimed (404 `not_found.route`) — new clients
|
|
5758
|
+
and old centers answer each other 404 and write nothing until both ends run the same version. Each layer partition has an INCARNATION
|
|
5759
|
+
(born the first time the partition is synced, kept in the center database): the result always carries `cursor.incarnation`; the request's
|
|
5760
|
+
`peerIncarnation` is compared BEFORE any read or write — not this partition's, or a non-empty baseline without one ⇒ 200
|
|
5761
|
+
`{ refused: "baseline_incarnation", incarnation }` (an answer, zero reads and writes); the incarnation changed after the round's last write ⇒ 500.
|
|
5706
5762
|
requestBody:
|
|
5707
5763
|
required: true
|
|
5708
5764
|
content:
|
|
@@ -5710,10 +5766,13 @@ paths:
|
|
|
5710
5766
|
schema: { type: object, additionalProperties: true, description: 'The sync request (peer/baseRevs/patches — core reconcile contract).' }
|
|
5711
5767
|
responses:
|
|
5712
5768
|
'200':
|
|
5713
|
-
description: 'The sync outcome (core reconcile/nextSyncBaseline projection).'
|
|
5769
|
+
description: 'The sync outcome (core reconcile/nextSyncBaseline projection), or (server >= 7.143.0) the incarnation refusal — told apart by `refused`.'
|
|
5714
5770
|
content:
|
|
5715
5771
|
application/json:
|
|
5716
|
-
schema:
|
|
5772
|
+
schema:
|
|
5773
|
+
oneOf:
|
|
5774
|
+
- { $ref: '#/components/schemas/MemorySyncResponse' }
|
|
5775
|
+
- { $ref: '#/components/schemas/MemorySyncIncarnationRefusal' }
|
|
5717
5776
|
'400': { $ref: '#/components/responses/BadRequest' }
|
|
5718
5777
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
5719
5778
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
@@ -5813,13 +5872,14 @@ paths:
|
|
|
5813
5872
|
enumerating every id in the attestation). `residuals.propagation` is core's self-declared boundary:
|
|
5814
5873
|
deletion is a THIS-STORE fact, remote-peer convergence is the sync deployment's half to prove.
|
|
5815
5874
|
|
|
5816
|
-
🔴 LAYER SEAT (
|
|
5875
|
+
🔴 LAYER SEAT (contract §9 head): This face has NO top-level `scope` key (the body goes to the engine as sent): `select.scope` names the layer.
|
|
5817
5876
|
|
|
5818
|
-
🔴 ERASURE
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5877
|
+
🔴 ERASURE ANSWERS THE WHOLE DEPLOYMENT (server >= 7.143.0; the engine's one deployment object): a `requestId` names one request across the whole deployment —
|
|
5878
|
+
every store's anchors are read before executing; the same id first used under another selector or executed in another store ⇒ 409
|
|
5879
|
+
`memory.erasure_selector_mismatch`, under another authorization set ⇒ 400 `config.memory_erasure_scope` (nothing erased or recorded); a personal-layer
|
|
5880
|
+
erasure executes normally; `select.ids` / `select.sessionId` without `expectedScopes` ⇒ each store erases its own share and the attestations are merged; an
|
|
5881
|
+
authorization set whose layers live in two stores ⇒ 400 `config.memory_erasure_scope`. The 7.140.0–7.142.x store guard code and the two-store
|
|
5882
|
+
400 `request.memory_layer` arms are retired at 7.143.0 (`request.memory_layer` remains only for a layer key the engine cannot read).
|
|
5823
5883
|
requestBody:
|
|
5824
5884
|
required: true
|
|
5825
5885
|
content:
|
|
@@ -5849,10 +5909,8 @@ paths:
|
|
|
5849
5909
|
'403': { description: 'errorCode "auth.operator_only" — provenance and erasure are operator-only deployment actions. With an EMPTY `OPERATOR_PRINCIPALS` the answer is instead 501 `capability.operator_principals_required` (server >= 7.116.0; any identity, ahead of authorization — branch on `errorCode`, not the status).' }
|
|
5850
5910
|
'409':
|
|
5851
5911
|
description: >
|
|
5852
|
-
Core-minted codes passed through verbatim
|
|
5853
|
-
|
|
5854
|
-
(the named layer lives on the personal mount, or the session has contributions there / that store's ledger cannot be read): NOTHING erased, nothing
|
|
5855
|
-
recorded; the request is legal; do NOT retry. "memory.erasure_evidence_unavailable": this backend has NO evidence face and the caller did not
|
|
5912
|
+
Core-minted codes passed through verbatim; branch on `errorCode` (the status cannot tell them apart). (The 7.140.0–7.142.x server-minted store
|
|
5913
|
+
guard code is retired at 7.143.0.) "memory.erasure_evidence_unavailable": this backend has NO evidence face and the caller did not
|
|
5856
5914
|
opt into the degraded lane — deliberately NOT 501, because the caller holds a real choice
|
|
5857
5915
|
(`allowUnevidenced: true`) and a 501 would send someone off to change a deployment that is fine.
|
|
5858
5916
|
"memory.erasure_selector_mismatch": this `requestId` was first executed under a DIFFERENT selector —
|
|
@@ -8168,8 +8226,9 @@ components:
|
|
|
8168
8226
|
`SEMA_CONFIG_DIR`, default `~/.sema`; sandbox lanes the forwarded `SEMA_CONFIG_DIR`, else `.sema` under the execution home;
|
|
8169
8227
|
unresolvable => whole-request 422 `request.unprocessable` with entry-problem reason `home_unresolvable`), every other layer
|
|
8170
8228
|
reads under the task root like a plain string; `~/`, `//` and relative forms read the same in every layer. `allow` takes
|
|
8171
|
-
|
|
8172
|
-
|
|
8229
|
+
the same layered form from server 7.143.0 (gate `capabilities.settings.permissions.layeredAllow`; a user-layer `/`-form allow reads
|
|
8230
|
+
at the execution environment's configuration root, `home_unresolvable` like the other buckets); 7.141.0–7.142.x refuse a layered
|
|
8231
|
+
allow entry (400 `bad_entry`). A malformed layered entry => 400 `bad_entry` + the first bad index. Up to 1000 entries per bucket, both forms counted.
|
|
8173
8232
|
🔴 ON THIS SUBMIT FACE THE KEY SET IS CLOSED (server >= 7.57.0 for the sub-tree): accepted top-level keys
|
|
8174
8233
|
are `env` / `hooks` / `model` / `outputStyle` / `permissions` / `skillListingBudgetFraction` /
|
|
8175
8234
|
`skillListingMaxDescChars` / `ultracode` / `webSearch` (server >= 7.133.0 adds the three TIGHTEN-ONLY seats `complianceAdditionalDenies` / `readDenyPatterns` / `writeProtectedExtra`; server >= 7.134.0 adds `approvalFrameFamilies`;
|
|
@@ -9002,6 +9061,14 @@ components:
|
|
|
9002
9061
|
verdict: { type: string, enum: [PASS, FAIL, PARTIAL, unverified] }
|
|
9003
9062
|
rounds: { type: integer }
|
|
9004
9063
|
findings: { type: array, items: { type: string } }
|
|
9064
|
+
allowanceExhausted:
|
|
9065
|
+
type: object
|
|
9066
|
+
additionalProperties: false
|
|
9067
|
+
required: [axis]
|
|
9068
|
+
description: 'server >= 7.143.0 (core 7.61.0 `AllowanceExhausted`): the task''s caps bound the whole implementation side; one axis ran out, so no further repair round runs and the verdict stops at that FAIL. `remaining` present = the balance (0 when spent); a priced cap with an unpriced leg reads as no balance (`axis: "cost"`, no `remaining`). Absent = no axis ran out (or an older server).'
|
|
9069
|
+
properties:
|
|
9070
|
+
axis: { type: string, enum: [cost, tokens, turns] }
|
|
9071
|
+
remaining: { type: number }
|
|
9005
9072
|
cancelContext:
|
|
9006
9073
|
allOf: [{ $ref: '#/components/schemas/CancelContext' }]
|
|
9007
9074
|
description: >
|
|
@@ -10154,8 +10221,12 @@ components:
|
|
|
10154
10221
|
the request key `settings.approvalFrameFamilies` (which families this run's client renders).
|
|
10155
10222
|
ApprovalDecision:
|
|
10156
10223
|
type: object
|
|
10157
|
-
description:
|
|
10158
|
-
|
|
10224
|
+
description: >
|
|
10225
|
+
HITL decision (`POST /v1/approvals/:sessionId/decide`, checkpoint family). server >= 7.143.0: `boundCallId` and `boundInputHash`
|
|
10226
|
+
are BOTH required (echo the pair off the `pending[]` row / `pending` frame you showed the person); a missing or empty one ⇒
|
|
10227
|
+
400 `decide_requires_binding` with `missingKeys` naming the missing seats. A `peer_inbound` row is decided with
|
|
10228
|
+
`{ decision }` only (see the path).
|
|
10229
|
+
required: [decision, boundCallId, boundInputHash]
|
|
10159
10230
|
properties:
|
|
10160
10231
|
decision: { type: string, enum: [approve, deny] }
|
|
10161
10232
|
answer:
|
|
@@ -10188,11 +10259,11 @@ components:
|
|
|
10188
10259
|
reason: { type: string }
|
|
10189
10260
|
# design/80 D-1 — action binding (TOCTOU guard). Read the TWO off the PendingCheckpoint the human saw
|
|
10190
10261
|
# and echo VERBATIM; server resolves THAT exact checkpoint, fail-closed on mismatch (approval_binding_mismatch).
|
|
10191
|
-
#
|
|
10262
|
+
# server >= 7.143.0: both required (400 decide_requires_binding). boundInputHash is OPAQUE — never hashed/recomputed client-side.
|
|
10192
10263
|
# 🔴 `checkpointToken` REMOVED (SDK 1.0.0): §4a makes it server-INTERNAL and it is NEVER surfaced on a
|
|
10193
10264
|
# /v1/approvals row, so a compliant client has no way to obtain a correct value for it.
|
|
10194
|
-
boundCallId: { type: string, description: '= PendingCheckpoint.boundCallId (the bound pendingAction.toolCallId).' }
|
|
10195
|
-
boundInputHash: { type: string, description: 'Echo PendingCheckpoint.boundInputHash byte-for-byte; server-minted opaque, NEVER recompute.' }
|
|
10265
|
+
boundCallId: { type: string, minLength: 1, description: '= PendingCheckpoint.boundCallId (the bound pendingAction.toolCallId). An empty string reads as missing (400 decide_requires_binding).' }
|
|
10266
|
+
boundInputHash: { type: string, minLength: 1, description: 'Echo PendingCheckpoint.boundInputHash byte-for-byte; server-minted opaque, NEVER recompute. An empty string reads as missing (400 decide_requires_binding).' }
|
|
10196
10267
|
updatedInput:
|
|
10197
10268
|
description: >
|
|
10198
10269
|
Approve-with-edit (design/37 last-wins): operator's rewritten tool args, applied AFTER the binding
|
|
@@ -10206,8 +10277,8 @@ components:
|
|
|
10206
10277
|
`routes/approvals-assistant.ts` reads it; the SDK has typed it since the facade audit, the spec had
|
|
10207
10278
|
not). It is an approval MEMORY, not a policy loosen — a deny / neverAuto always outranks it.
|
|
10208
10279
|
Constraints (all server-enforced): only with `decision:"approve"` (else 400
|
|
10209
|
-
`request.field_conflict`);
|
|
10210
|
-
`
|
|
10280
|
+
`request.field_conflict`); the binding pair is required on every decide (server >= 7.143.0: 400
|
|
10281
|
+
`decide_requires_binding`, no separate remember-only gate); REFUSED on a direct-door worker (400 `remember_not_in_proof` — it is
|
|
10211
10282
|
not inside the HMAC payload, so accepting it unsigned would be tamperable); 501 without an exemption
|
|
10212
10283
|
store. On the parked-background-agent leg the grant lands on the child's ROOT/HOST session (the whole
|
|
10213
10284
|
session tree shares it). The 200 body echoes `rememberApplied` when a store is wired.
|
|
@@ -10230,6 +10301,42 @@ components:
|
|
|
10230
10301
|
carrying `<system-reminder>` ⇒ server >= 7.135.0 (engine 7.55.0): 409 `resume_outcome_invalid` + `field: "feedback"` + `retriable: true` (the engine's sentence naming `feedback`; refused before the CAS, the card stays pending — ask the person to change
|
|
10231
10302
|
or drop the words, do not auto-refetch and re-decide on the code); server 7.134.x: 409 `approval_binding_mismatch` (no `field`). The same door serves parked background-agent cards and workflow child cards; the live
|
|
10232
10303
|
`POST /v1/tool-approvals/{id}/respond` does NOT take it. Servers <= 7.133.x refuse the key (400 `request.body_shape`, `unknownKeys: ["feedback"]`).
|
|
10304
|
+
decidedVia:
|
|
10305
|
+
allOf: [{ $ref: '#/components/schemas/ApprovalDecidedVia' }]
|
|
10306
|
+
description: 'server >= 7.143.0 (capability `approvalDecidedVia`): which seat answered a `decidedBy: "policy"` decision. Only beside `decidedBy: "policy"`; `null` is not absence (400); any value on a direct-door worker ⇒ 400.'
|
|
10307
|
+
mcpServers: { $ref: '#/components/schemas/ResumeRestatement/properties/mcpServers' }
|
|
10308
|
+
a2aPeers: { $ref: '#/components/schemas/ResumeRestatement/properties/a2aPeers' }
|
|
10309
|
+
|
|
10310
|
+
ResumeRestatement:
|
|
10311
|
+
type: object
|
|
10312
|
+
description: >
|
|
10313
|
+
server >= 7.143.0 — the resume restatement the four resume doors take (`/decide`, `plan_review`, `/resume`, `/wake`): the submit body's
|
|
10314
|
+
`mcpServers` / `a2aPeers`. A key present (non-null) REPLACES the parked task's stored table of that name for this resume (and is written
|
|
10315
|
+
back with the resume input, so a later resume that sends nothing replays it); the value shape is judged like `POST /v1/tasks` (same code
|
|
10316
|
+
and sentence on a bad shape). A key absent or `null` ⇒ the FROZEN reading (the table stored at submit). The two keys are independent; an
|
|
10317
|
+
empty array is an empty table, not absence. A task parked on an MCP call whose target is not in the sent table is judged by the engine
|
|
10318
|
+
(`resume.tool_unavailable` / `resume.tool_contract_mismatch` reopen the card; `resume.target_moved` consumes the approval). `/decide` on a card
|
|
10319
|
+
parked by a background child ⇒ 400 `decide.parked_restatement_unsupported`; the two keys on a direct-door worker's `/decide` / `plan_review`
|
|
10320
|
+
⇒ 400 `restatement_not_in_proof`. Servers <= 7.142.x: `/decide` / `plan_review` refuse the keys (400), `/resume` / `/wake` ignore them.
|
|
10321
|
+
properties:
|
|
10322
|
+
mcpServers: { type: ['array', 'null'], maxItems: 32, items: { $ref: '#/components/schemas/McpServerSpec' }, description: 'Same element shape as `TaskRequest.mcpServers`.' }
|
|
10323
|
+
a2aPeers: { type: ['array', 'null'], maxItems: 32, items: { $ref: '#/components/schemas/A2aServerSpec' }, description: 'Same element shape as `TaskRequest.a2aPeers`.' }
|
|
10324
|
+
|
|
10325
|
+
SessionWakeRequest:
|
|
10326
|
+
type: object
|
|
10327
|
+
description: 'Body of `POST /v1/sessions/{sessionId}/wake`: an optional non-empty `message` (an empty string is 400) plus the resume restatement (server >= 7.143.0; see ResumeRestatement).'
|
|
10328
|
+
properties:
|
|
10329
|
+
message: { type: string, minLength: 1 }
|
|
10330
|
+
mcpServers: { $ref: '#/components/schemas/ResumeRestatement/properties/mcpServers' }
|
|
10331
|
+
a2aPeers: { $ref: '#/components/schemas/ResumeRestatement/properties/a2aPeers' }
|
|
10332
|
+
|
|
10333
|
+
ApprovalDecidedVia:
|
|
10334
|
+
type: string
|
|
10335
|
+
enum: [policy, permission_request_hook]
|
|
10336
|
+
description: >
|
|
10337
|
+
server >= 7.143.0 (engine `DECIDED_VIA`, verbatim and in order) — the seat a `decidedBy: "policy"` decision was answered from:
|
|
10338
|
+
`policy` = the deployment's own policy; `permission_request_hook` = a PermissionRequest hook answered the card (the model reads
|
|
10339
|
+
"a PermissionRequest hook refused this call", not the deployment-policy sentence). ABSENT = `policy`.
|
|
10233
10340
|
|
|
10234
10341
|
Capabilities:
|
|
10235
10342
|
type: object
|
|
@@ -10307,7 +10414,7 @@ components:
|
|
|
10307
10414
|
itself. The memory ENGINE that replaced it is model-facing skills over an injected memory dir and
|
|
10308
10415
|
has NO service HTTP verbs, so this flag is not its availability signal. The SDK removed the five
|
|
10309
10416
|
legacy verbs in 1.0.0; the live face is `client.memory.exportScope` / `.sync`
|
|
10310
|
-
(`GET /v1/memory/export`, `POST /
|
|
10417
|
+
(`GET /v1/memory/export`, `POST /v2/memory/sync/{scope}`), which this flag does NOT gate.
|
|
10311
10418
|
Kept on the wire so an older shell that still reads it honestly hides the dead affordances.
|
|
10312
10419
|
adoption:
|
|
10313
10420
|
type: boolean
|
|
@@ -10691,6 +10798,11 @@ components:
|
|
|
10691
10798
|
server >= 7.118.0, hardcoded true (a version bit): the three approval decision doors read `decidedBy` (ApprovalDecidedBy).
|
|
10692
10799
|
Send it only when this is present; absent = an older server (the durable doors and `plan_review` 400 it, the live
|
|
10693
10800
|
`respond` drops it silently and answers 200).
|
|
10801
|
+
approvalDecidedVia:
|
|
10802
|
+
type: boolean
|
|
10803
|
+
description: >-
|
|
10804
|
+
server >= 7.143.0, hardcoded true (a version bit): the four decision doors (live `respond`, durable ask `decision`, `/decide`,
|
|
10805
|
+
`plan_review`) read `decidedVia` (ApprovalDecidedVia) beside `decidedBy: "policy"`. Send it only when this is present.
|
|
10694
10806
|
sessionReadRedaction:
|
|
10695
10807
|
type: boolean
|
|
10696
10808
|
description: >-
|
|
@@ -10853,6 +10965,7 @@ components:
|
|
|
10853
10965
|
allowGrant: { type: boolean, description: 'Constant `true` on server >= 7.115.0: `settings.permissions.allow` is read as allow RULES, not as a list. The whole `settings` key being absent = an older server.' }
|
|
10854
10966
|
allowLayer: { type: boolean, description: 'Constant `true` on server >= 7.117.0 (core 7.42.0): the whole `settings.permissions.allow` list goes to the engine allow layer (listed calls are not asked; content forms accepted; entries read as nothing get an `engine_notice` `permission.allowed_tool_not_granted`). Absent = a server without it (7.115.0–7.116.x: allow is a statement; older: a list).' }
|
|
10855
10967
|
layers: { type: boolean, description: 'Constant `true` on server >= 7.141.0 (both deployment shapes): `settings.permissions.deny` / `ask` accept a layered entry `{ rule, layer }` beside a plain string (see `TaskRequest.settings`). Send layered entries only when this bit is `true`: an older server refuses them (a new submit 400, a resume 409) — loud, never silently dropped.' }
|
|
10968
|
+
layeredAllow: { type: boolean, description: 'Constant `true` on server >= 7.143.0: `settings.permissions.allow` entries accept the same layered form `{ rule, layer }` as `deny` / `ask` (a user-layer `/`-form allow reads at the execution environment''s config root). Send layered allow entries only when this bit is `true`.' }
|
|
10856
10969
|
callerTrust: { type: string, description: 'server >= 7.133.0 — THIS caller''s trust tier (per caller / per credential, NOT a version bit). Request rule tables that take effect without a person answering (`settings.permissions` buckets; a named-invoked skill''s `allowedTools` / `disallowedTools`) are admitted by it: `allow` loosens the no-ask surface and needs `global`; `deny` / `ask` only tighten and are admitted at any tier. Today `global` (single-user turnkey; multi-tenant with the deployment service credential; multi-tenant sign-in token whose scope role >= the governance write role) or `project` (everything else). Read OPEN: an unknown word is treated as `project` (fail-closed). A request below the floor is refused whole with 400 `request.field_invalid` (`detail.problems[].reason: below_trust_floor`, `detail.callerTrust`). ABSENT = server <= 7.132.x: no per-tier admission.' }
|
|
10857
10970
|
memoryWrite:
|
|
10858
10971
|
type: boolean
|
|
@@ -11039,7 +11152,7 @@ components:
|
|
|
11039
11152
|
memorySyncServe:
|
|
11040
11153
|
description: >
|
|
11041
11154
|
server >= 7.142.0 — the MEMORY-SYNC CENTER's identity bit: `{ identity }` iff this is a DB memory plane (`MEMORY_ENGINE_BACKEND=pg|mysql`) with the sync perform
|
|
11042
|
-
seat AND the operator declared `MEMORY_SYNC_SERVE_IDENTITY`; otherwise `false` (not a center, or no identity declared — then `POST /
|
|
11155
|
+
seat AND the operator declared `MEMORY_SYNC_SERVE_IDENTITY`; otherwise `false` (not a center, or no identity declared — then `POST /v2/memory/sync/{scope}` (server >= 7.143.0; `/v1` before) answers
|
|
11043
11156
|
501 `feature.memory_sync_serve_disabled`). A composite bit (the server's composite-member table `memorySyncServe: ["identity"]`); there is no `true`.
|
|
11044
11157
|
`identity` = the canonical base address clients reach this center's sync face at (lower-case scheme and host, no default port, no trailing slash, no query /
|
|
11045
11158
|
fragment / credential), verbatim: a local shell passes it as the `target` of `POST /v1/sessions/{sessionId}/memory/sync`; the center compares an inbound `peer`
|
|
@@ -11731,7 +11844,7 @@ components:
|
|
|
11731
11844
|
type: object
|
|
11732
11845
|
description: >
|
|
11733
11846
|
core `MemoryEntry` (@sema-agent/core memory-engine/types.d.ts) — one memory-engine (DB twins)
|
|
11734
|
-
note. Used verbatim by both GET /v1/memory/export's `entries` and POST /
|
|
11847
|
+
note. Used verbatim by both GET /v1/memory/export's `entries` and POST /v2/memory/sync/{scope}'s
|
|
11735
11848
|
`serverEntries` (server never re-shapes it — memory-policy.ts / memory-sync.ts pass the core
|
|
11736
11849
|
array straight to `sendJson`).
|
|
11737
11850
|
required: [id, slug, frontmatter, body, rev, scope]
|
|
@@ -11747,7 +11860,7 @@ components:
|
|
|
11747
11860
|
MemorySyncResponse:
|
|
11748
11861
|
type: object
|
|
11749
11862
|
description: >
|
|
11750
|
-
200 body of POST /
|
|
11863
|
+
200 body of POST /v2/memory/sync/{scope} (server >= 7.143.0; `/v1` before) — core `MemorySyncResponse` (server memory-sync.ts),
|
|
11751
11864
|
`sendJson`'d verbatim (memory-policy.ts). `pullTruncated` is OMIT-when-absent (present+`true`
|
|
11752
11865
|
only when `serverEntries` was cut by `?pull.limit`).
|
|
11753
11866
|
required: [applied, conflicts, serverEntries, serverDeletes, cursor]
|
|
@@ -11783,14 +11896,27 @@ components:
|
|
|
11783
11896
|
baseRev: { type: string }
|
|
11784
11897
|
cursor:
|
|
11785
11898
|
type: object
|
|
11786
|
-
required: [peer, baseRevs, updatedAtMs]
|
|
11899
|
+
required: [peer, incarnation, baseRevs, updatedAtMs]
|
|
11787
11900
|
additionalProperties: false
|
|
11788
11901
|
properties:
|
|
11789
11902
|
peer: { type: string }
|
|
11903
|
+
incarnation: { type: string, description: 'server >= 7.143.0 (always present; only that version serves this path): the incarnation of the layer partition that answered — every write of this exchange committed under it; the next cursor carries it as its `peerIncarnation`.' }
|
|
11790
11904
|
baseRevs: { type: object, additionalProperties: { type: string } }
|
|
11791
11905
|
updatedAtMs: { type: integer }
|
|
11792
11906
|
pullTruncated: { type: boolean, enum: [true] }
|
|
11793
11907
|
|
|
11908
|
+
MemorySyncIncarnationRefusal:
|
|
11909
|
+
type: object
|
|
11910
|
+
description: >
|
|
11911
|
+
server >= 7.143.0 — the OTHER 200 answer of POST /v2/memory/sync/{scope}: the request's `peerIncarnation` is not this partition's, or the
|
|
11912
|
+
request carries a non-empty baseline and no incarnation claim. Judged before any read or write — nothing was read or written. `incarnation`
|
|
11913
|
+
= this partition's incarnation. It is an answer, not an error: branch on `refused`.
|
|
11914
|
+
required: [refused, incarnation]
|
|
11915
|
+
additionalProperties: false
|
|
11916
|
+
properties:
|
|
11917
|
+
refused: { const: baseline_incarnation }
|
|
11918
|
+
incarnation: { type: string }
|
|
11919
|
+
|
|
11794
11920
|
MemoryTransferEvidence:
|
|
11795
11921
|
type: object
|
|
11796
11922
|
description: >
|
|
@@ -11943,8 +12069,11 @@ components:
|
|
|
11943
12069
|
One memory request lands on ONE store: the store the named layer lives in (file backend: the typed personal layers `user:` / `userproj:` / `org:` live in a
|
|
11944
12070
|
SECOND store under the personal mount; the project layers and the un-typed layers, `local` included, live in the deployment's store). It rides the query string
|
|
11945
12071
|
(`GET /v1/memory/entries/{entryId}/provenance`, `GET /v1/memory/origin/clearances`, `GET /v1/sessions/{sessionId}/memory-status`) or the body
|
|
11946
|
-
(`MemoryOriginClearRequest
|
|
11947
|
-
|
|
12072
|
+
(`MemoryOriginClearRequest`); `POST /v1/memory/erase` has no such key (the layer comes from `select.scope` / `expectedScopes`), and the session self-service
|
|
12073
|
+
erase no longer has one (server >= 7.143.0: it erases across the whole deployment; 7.140.0–7.142.x read it from the body).
|
|
12074
|
+
Needed only on a TWO-STORE deployment for verbs that name no layer. Server >= 7.143.0 reads the deployment's store set FROM DISK: the personal mount counts
|
|
12075
|
+
once a store exists there (for instance after a personal-layer erasure wrote its anchor), whether or not the configuration names a personal layer;
|
|
12076
|
+
7.140.0–7.142.x derived it from the configured layers. A single-store deployment answers byte-for-byte as 7.139.x. This schema is open: it only
|
|
11948
12077
|
defines the key, and is embedded by property reference — it is not a request body of its own.
|
|
11949
12078
|
additionalProperties: true
|
|
11950
12079
|
properties:
|
|
@@ -11953,7 +12082,7 @@ components:
|
|
|
11953
12082
|
minLength: 1
|
|
11954
12083
|
description: >
|
|
11955
12084
|
The memory layer key (e.g. `user:alice`, `local`) whose store answers. Absent ⇒ no layer named: on a two-store deployment the verbs that name no layer
|
|
11956
|
-
answer 400 `request.memory_layer` (the session-id verbs
|
|
12085
|
+
answer 400 `request.memory_layer` (the session-id verbs need no seat: memory-status folds every store; the self-service erase spans the whole deployment, server >= 7.143.0); present but not a non-empty string ⇒ 400
|
|
11957
12086
|
`request.field_invalid` (sentence only); a layer key the engine cannot read ⇒ 400 `request.memory_layer`. It only decides WHICH store answers — it never
|
|
11958
12087
|
reaches the engine.
|
|
11959
12088
|
|
|
@@ -11987,10 +12116,8 @@ components:
|
|
|
11987
12116
|
description: >
|
|
11988
12117
|
The authorization set of this erasure (server >= 7.138.0; the judge is core): when present, the selector's own scope and the bound scope of EVERY
|
|
11989
12118
|
resolved id must lie in the set, else the whole request is refused 400 `config.memory_erasure_scope` (nothing erased or recorded; an id whose scope the
|
|
11990
|
-
store cannot attribute, or that never existed, counts as outside). The empty set authorizes no scope; absent = no narrowing. Server >= 7.
|
|
11991
|
-
|
|
11992
|
-
400 `request.memory_layer`; a personal-mount store ⇒ 409 `memory.erasure_store_unjudged`; `select.ids` without it on a two-store deployment ⇒ 400
|
|
11993
|
-
`request.memory_layer`).
|
|
12119
|
+
store cannot attribute, or that never existed, counts as outside). The empty set authorizes no scope; absent = no narrowing. Server >= 7.143.0: a set whose
|
|
12120
|
+
layers live in two stores ⇒ 400 `config.memory_erasure_scope`; without it, `select.ids` / `select.sessionId` erase each store's share (attestations merged).
|
|
11994
12121
|
|
|
11995
12122
|
SessionMemorySyncRequest:
|
|
11996
12123
|
type: object
|
|
@@ -12054,8 +12181,9 @@ components:
|
|
|
12054
12181
|
additionalProperties: false
|
|
12055
12182
|
required: [axis, found]
|
|
12056
12183
|
properties:
|
|
12057
|
-
axis: { type: string, enum: [scope, peer, store] }
|
|
12184
|
+
axis: { type: string, enum: [scope, peer, store, incarnation], description: 'server >= 7.143.0 adds `incarnation` (the center partition''s incarnation does not match: a center database rebuilt / restored, or a cursor written before the upgrade reads `absent`; the way out is the same — delete the cursor).' }
|
|
12058
12185
|
found: { type: string, enum: [absent, other] }
|
|
12186
|
+
want: { type: string }
|
|
12059
12187
|
outs: { type: array, minItems: 2, maxItems: 2, items: { type: string } }
|
|
12060
12188
|
message: { type: string }
|
|
12061
12189
|
error: { type: string }
|
|
@@ -12096,29 +12224,41 @@ components:
|
|
|
12096
12224
|
oneOf:
|
|
12097
12225
|
- required: [layers]
|
|
12098
12226
|
- required: [refused]
|
|
12227
|
+
SessionMemoryUnobservedReason:
|
|
12228
|
+
type: string
|
|
12229
|
+
enum: [no_settled_run, run_result_missing, run_result_unobserved, memory_not_mounted, no_leaf]
|
|
12230
|
+
description: >
|
|
12231
|
+
server >= 7.143.0 — why the session memory sync has no read set, judged in this order: `no_settled_run` (no settled run); `run_result_missing` /
|
|
12232
|
+
`run_result_unobserved` (the latest settled run has no memory observation on record — an earlier run is never read in its place);
|
|
12233
|
+
`memory_not_mounted` (memory was configured for the latest settled run but did not mount, so which layers it reads is unknown); `no_leaf`
|
|
12234
|
+
(the session has no transcript yet, so there is no revision to sync from).
|
|
12235
|
+
|
|
12236
|
+
SessionMemoryUnobservedExtra:
|
|
12237
|
+
type: object
|
|
12238
|
+
description: 'server >= 7.143.0 — the machine-readable keys of 409 `conflict.session_memory_unobserved`.'
|
|
12239
|
+
required: [reason]
|
|
12240
|
+
properties:
|
|
12241
|
+
reason: { $ref: '#/components/schemas/SessionMemoryUnobservedReason' }
|
|
12242
|
+
activeTaskId: { type: string, description: 'Present when a run is in flight in the session.' }
|
|
12243
|
+
|
|
12099
12244
|
SessionMemoryEraseRequest:
|
|
12100
12245
|
type: object
|
|
12101
12246
|
description: >
|
|
12102
12247
|
Request body of POST /v1/sessions/{sessionId}/memory/erase (contract §12.5; release bytes server 7.107.0
|
|
12103
|
-
`dist/http/routes/sessions.js:508-523
|
|
12104
|
-
carrying it is a loud 400 `request.body_shape`). Any OTHER unknown key is NOT refused — the route silently ignores it and
|
|
12248
|
+
`dist/http/routes/sessions.js:508-523`). Two NAMED keys. `select` is FORBIDDEN (the selector is minted by the path; a body
|
|
12249
|
+
carrying it is a loud 400 `request.body_shape`); so is `scope` from server 7.143.0 (the 7.140.0–7.142.x layer seat, retired — erasure answers the whole deployment). Any OTHER unknown key is NOT refused — the route silently ignores it and
|
|
12105
12250
|
forwards only `requestId` / `allowUnevidenced` (`:526`) — so this schema is open except for `select` (codex r1 F1: a closed
|
|
12106
12251
|
schema would make a strict consumer reject a body the server accepts). `requestId` has the SAME meaning as
|
|
12107
12252
|
`MemoryErasureRequest.requestId` (idempotency identity on the journal lane; a new request on the degraded lane) and is never
|
|
12108
12253
|
minted by the server or the engine.
|
|
12109
12254
|
required: [requestId]
|
|
12110
12255
|
additionalProperties: true
|
|
12111
|
-
not: { required: [select] }
|
|
12256
|
+
not: { anyOf: [{ required: [select] }, { required: [scope] }] }
|
|
12112
12257
|
properties:
|
|
12113
12258
|
requestId: { type: string, minLength: 1 }
|
|
12114
12259
|
allowUnevidenced:
|
|
12115
12260
|
type: boolean
|
|
12116
12261
|
description: "Opt-in to the evidence-capability-ABSENT degradation lane — a human signature; never injected. Non-boolean ⇒ 400 `request.field_invalid`."
|
|
12117
|
-
scope:
|
|
12118
|
-
# the one definition of the layer seat key: `components.schemas.MemoryLayerSeat`. On THIS face (server >= 7.140.0): a layer living in the deployment's store
|
|
12119
|
-
# (e.g. `local`) ⇒ the erasure runs there (200; the attestation covers that store only, the seat reaches neither the engine nor the attestation); a layer on the
|
|
12120
|
-
# personal mount ⇒ 409 `memory.erasure_store_unjudged`; unreadable ⇒ 400 `request.memory_layer`.
|
|
12121
|
-
$ref: '#/components/schemas/MemoryLayerSeat/properties/scope'
|
|
12122
12262
|
|
|
12123
12263
|
MemoryErasedBinding:
|
|
12124
12264
|
description: "core `ErasedBinding` — one erased row's coordinates: the scope it was bound in, NEVER its file name (a model-chosen name can restate the content being erased; attestation v2)."
|
|
@@ -12536,6 +12676,7 @@ components:
|
|
|
12536
12676
|
catalog: { type: string, description: '`absent` | `adopted` | `refused` (open on read).' }
|
|
12537
12677
|
refusalCode: { type: string, description: '`config.model_route_endpoint_missing` | `config.gateway_fallback_without_primary` (open on read); ABSENT = the judge passed.' }
|
|
12538
12678
|
gap: { type: string, description: '`endpoint_missing` | `lane_credential_missing` (open on read); ABSENT = the judge passed.' }
|
|
12679
|
+
planeRefusalCode: { type: string, description: 'server >= 7.143.0: the code the model-plane group judge refused the LATEST ARRIVED catalog candidate with (present <=> that candidate was refused there; one of the settings-schema `MODEL_PLANE_REFUSAL_CODES`, open on read). `catalog: "refused"` with this key absent <=> the latest candidate was refused whole by the candidate judge (read `candidateRejected`). It names the latest candidate, `refusalCode` the table serving now.' }
|
|
12539
12680
|
ModelsResponse:
|
|
12540
12681
|
type: object
|
|
12541
12682
|
description: >
|
|
@@ -13915,7 +14056,14 @@ components:
|
|
|
13915
14056
|
properties:
|
|
13916
14057
|
pending:
|
|
13917
14058
|
type: array
|
|
13918
|
-
|
|
14059
|
+
description: >
|
|
14060
|
+
server >= 7.143.0: TWO families, every row names its own in `kind` — `checkpoint` (PendingCheckpoint; door id = `sessionId`)
|
|
14061
|
+
and `peer_inbound` (PeerInboundPendingRow; door id = `id`). Branch on `kind` before reading family keys; skip an unknown `kind`.
|
|
14062
|
+
Servers <= 7.142.x list checkpoint rows only, without `kind`.
|
|
14063
|
+
items:
|
|
14064
|
+
oneOf:
|
|
14065
|
+
- { $ref: '#/components/schemas/PendingCheckpoint' }
|
|
14066
|
+
- { $ref: '#/components/schemas/PeerInboundPendingRow' }
|
|
13919
14067
|
serverNowMs:
|
|
13920
14068
|
type: integer
|
|
13921
14069
|
description: >
|
|
@@ -13933,6 +14081,47 @@ components:
|
|
|
13933
14081
|
decide route, no run revival). Present iff the local-lane ask audit store is wired; `[]` = the face exists and nothing was converged;
|
|
13934
14082
|
absent = no such face on this deployment (or an older server).
|
|
13935
14083
|
|
|
14084
|
+
PeerInboundPendingRow:
|
|
14085
|
+
type: object
|
|
14086
|
+
description: >
|
|
14087
|
+
server >= 7.143.0 — a held cross-session message awaiting the RECIPIENT's review (`GET /v1/approvals` `pending[]` and the
|
|
14088
|
+
`/v1/approvals/stream` `pending` frame; server `PeerInboundPendingRow`, key-for-key). Held because the sender's permission mode
|
|
14089
|
+
does not match the recipient's. Decided at `POST /v1/approvals/{id}/decide` with `{ decision }`. A per-replica in-process
|
|
14090
|
+
projection (like `livePending`). Deliberately carries NO `sessionId` (in this array that name is the checkpoint door id).
|
|
14091
|
+
additionalProperties: false
|
|
14092
|
+
required: [kind, id, recipientSessionId, lane, cause, content, sentAt, heldAt]
|
|
14093
|
+
properties:
|
|
14094
|
+
kind: { const: peer_inbound }
|
|
14095
|
+
id: { type: string, description: 'The door id (opaque, `peer_inbound:` prefix) — pass back verbatim, never parse.' }
|
|
14096
|
+
recipientSessionId: { type: string }
|
|
14097
|
+
lane: { type: string, enum: [session, principal_inbox] }
|
|
14098
|
+
cause: { type: string, enum: [mode-mismatch, no-mode-asserted, invalid-mode-attestation] }
|
|
14099
|
+
content: { type: string }
|
|
14100
|
+
sentAt: { type: number, description: 'epoch ms.' }
|
|
14101
|
+
heldAt: { type: number, description: 'epoch ms.' }
|
|
14102
|
+
deadline: { type: number, description: 'server >= 7.144.0: the message''s expiry (epoch ms) = the core card''s `deadlineAt`, present only while the expiry timer is armed (absent = no timer, or an older server; never compute one from `heldAt`).' }
|
|
14103
|
+
fromSession: { type: string }
|
|
14104
|
+
fromName: { type: string }
|
|
14105
|
+
fromScope: { type: string }
|
|
14106
|
+
|
|
14107
|
+
PeerInboundDecision:
|
|
14108
|
+
type: object
|
|
14109
|
+
description: 'server >= 7.143.0 — the `peer_inbound` family decide body: exactly `{ decision }` (any other key ⇒ 400 naming it).'
|
|
14110
|
+
additionalProperties: false
|
|
14111
|
+
required: [decision]
|
|
14112
|
+
properties:
|
|
14113
|
+
decision: { type: string, enum: [approve, deny] }
|
|
14114
|
+
|
|
14115
|
+
PeerInboundDecideResult:
|
|
14116
|
+
type: object
|
|
14117
|
+
description: 'server >= 7.143.0 — 200 body of a `peer_inbound` decide (server `PeerInboundDecideReply`): `outcome` = the engine''s settle answer (`gone` never reaches the wire, it answers 404).'
|
|
14118
|
+
additionalProperties: false
|
|
14119
|
+
required: [kind, id, outcome]
|
|
14120
|
+
properties:
|
|
14121
|
+
kind: { const: peer_inbound }
|
|
14122
|
+
id: { type: string }
|
|
14123
|
+
outcome: { type: string, enum: [delivered, released_pending, dropped, dropped_by_policy, denied, expired, decided_elsewhere] }
|
|
14124
|
+
|
|
13936
14125
|
CrashConvergedRow:
|
|
13937
14126
|
type: object
|
|
13938
14127
|
description: >
|
|
@@ -14013,6 +14202,9 @@ components:
|
|
|
14013
14202
|
approvalCard:
|
|
14014
14203
|
allOf: [{ $ref: '#/components/schemas/ToolApprovalCardWord' }]
|
|
14015
14204
|
description: 'server >= 7.126.0 (core 7.49.0 #1414): which card this ask renders on — the engine-minted card word, the SAME value as `frame.approvalCard` (the row reads the frame''s own seat, no second read), same layer and shape as the operator queue row''s `approvalCard`. It REPLACES `contentKind` (server <= 7.125.x derived it from the tool name; deleted at 7.126.0, no alias). ABSENT = the engine minted none. Display / triage only; it NEVER takes part in decision routing.'
|
|
14205
|
+
liveFactsUnknown:
|
|
14206
|
+
const: true
|
|
14207
|
+
description: 'server >= 7.143.0 — a row ADOPTED at boot from the ask ledger (see `consumerState`) whose ask was minted before this version: top-level `mandated` / `mandate` / `origin` are absent and this key says "unknown". The same fact as `frame.liveFactsUnknown`.'
|
|
14016
14208
|
frame:
|
|
14017
14209
|
oneOf:
|
|
14018
14210
|
- $ref: '#/components/schemas/ToolApprovalFrame'
|
|
@@ -14281,6 +14473,33 @@ components:
|
|
|
14281
14473
|
while the row was minted earlier, so a hot governance change can make an old row's attribution
|
|
14282
14474
|
drift in either direction. It feeds no gate/decision path — display only.
|
|
14283
14475
|
|
|
14476
|
+
CheckpointRowVerdict:
|
|
14477
|
+
description: >
|
|
14478
|
+
server >= 7.144.0 (core 7.62.0 `CheckpointRowVerdict`, projected verbatim) — WHETHER THIS ENGINE CAN RESUME THIS PARKED ROW: the verdict of the engine's row judge
|
|
14479
|
+
(`judgeCheckpointRow`) on the row's stored bytes. The same type on the operator queue row (`PendingCheckpoint.rowVerdict`), the `/v1/approvals/stream` `pending` frame and the
|
|
14480
|
+
assistant inbox row (`InboxRow.rowVerdict`). ONE JUDGE, TWO FACES: the first-stage resume / decide refusal (409, body carries `reason`) comes from the same judge, so a row
|
|
14481
|
+
listed with a non-`ok` verdict is refused for the same reason when decided — present it as NOT APPROVABLE; the way out is cancelling the run or leaving the row to a
|
|
14482
|
+
replica / version that can resume it. `ok` carries only `kind`; `lacking` / `damaged` carry `code` (the engine's checkpoint error code), `reason` (which arm of a multi-arm code), `requires` (capabilities the row needs and this engine lacks) and `sentence` (the engine's human line —
|
|
14483
|
+
display only, never a match key); `code` / `reason` are open strings (owned by core). Match the two faces on `reason`, not on `code`: the refusal
|
|
14484
|
+
face translates `checkpoint.invalid_outcome` (e.g. `requirements_damaged`) to `approval_binding_mismatch` on a `policy_ask` gate and to `resume_outcome_invalid` on other gates, and that
|
|
14485
|
+
engine refusal carries no `detail.code` (so no `blockedBy`); `checkpoint.unsupported_version` passes through unchanged. The refusal body's `reason` is the verdict's `reason`. ABSENT IS NOT `ok`: the listing did not judge the row (its stored body could not be
|
|
14486
|
+
decoded, it left pending or its bytes changed between two reads, or an older server).
|
|
14487
|
+
oneOf:
|
|
14488
|
+
- type: object
|
|
14489
|
+
additionalProperties: false
|
|
14490
|
+
required: [kind]
|
|
14491
|
+
properties:
|
|
14492
|
+
kind: { const: ok }
|
|
14493
|
+
- type: object
|
|
14494
|
+
additionalProperties: false
|
|
14495
|
+
required: [kind, code, sentence]
|
|
14496
|
+
properties:
|
|
14497
|
+
kind: { type: string, enum: [lacking, damaged] }
|
|
14498
|
+
code: { type: string }
|
|
14499
|
+
reason: { type: string }
|
|
14500
|
+
requires: { type: array, items: { type: string } }
|
|
14501
|
+
sentence: { type: string }
|
|
14502
|
+
|
|
14284
14503
|
PendingCheckpoint:
|
|
14285
14504
|
type: object
|
|
14286
14505
|
description: >
|
|
@@ -14302,7 +14521,11 @@ components:
|
|
|
14302
14521
|
required: [sessionId, scope, createdAt]
|
|
14303
14522
|
additionalProperties: true
|
|
14304
14523
|
properties:
|
|
14524
|
+
kind: { const: checkpoint, description: 'server >= 7.143.0: the row family (always `checkpoint` on this schema); absent on servers <= 7.142.x, which list this family only.' }
|
|
14305
14525
|
checkpointId: { type: string, minLength: 1, maxLength: 128, description: 'server >= 7.133.0: the NON-SECRET stable identity of the pause this row parks on — the join key where the token cannot go; the SAME value as `PausedCause.checkpointId`. Carried on three durable read surfaces (GET /v1/approvals `pending[]` rows, the /v1/approvals/stream `pending` frame, GET /v1/assistant/inbox rows). A row whose value is unreadable or untrusted (non-string / empty / over 128 / contains the token / an old row / an older server) is STILL LISTED with the key ABSENT — read absence as "this row has no joinable identity", never as a required key.' }
|
|
14526
|
+
rowVerdict:
|
|
14527
|
+
allOf: [{ $ref: '#/components/schemas/CheckpointRowVerdict' }]
|
|
14528
|
+
description: 'server >= 7.144.0: the engine row judge''s verdict on this row (ABSENT IS NOT `ok`). A non-`ok` row is refused for the same reason when decided (409). SQL backends read each pending row''s stored body once on the first listing after boot (then memoized by body digest); a row whose body cannot be decoded is listed without it.'
|
|
14306
14529
|
sessionId: { type: string, description: 'The decide handle: POST /v1/approvals/:sessionId/decide.' }
|
|
14307
14530
|
scope: { type: string, description: 'Principal; "_" = submitted without one.' }
|
|
14308
14531
|
taskId: { type: ['string', 'null'], description: 'Suspended run holding the session claim (service-pinned) — join key to trace tool-call blocks + context link.' }
|
|
@@ -14437,6 +14660,10 @@ components:
|
|
|
14437
14660
|
minItems: 1
|
|
14438
14661
|
items: { $ref: '#/components/schemas/AskClass' }
|
|
14439
14662
|
description: 'server >= 7.109.0 (S-934 ②): every class this parked ask belongs to (non-empty, first member = `askClass`); read the whole set.'
|
|
14663
|
+
askReasons:
|
|
14664
|
+
type: array
|
|
14665
|
+
items: { $ref: '#/components/schemas/AskReason' }
|
|
14666
|
+
description: 'server >= 7.143.0 (core 7.61.0): WHO asked and WHY — the park-row twin seat, read through the same narrow read as the live frame and the card (same value). Absent = an older engine / row.'
|
|
14440
14667
|
hasBidiControls:
|
|
14441
14668
|
type: boolean
|
|
14442
14669
|
enum: [true]
|
|
@@ -14480,7 +14707,8 @@ components:
|
|
|
14480
14707
|
(they carry a RiskDescriptor); ABSENT for resource_limit/needs_review/plan_review — UI tolerates undefined.
|
|
14481
14708
|
spentMicroUsd: { type: number, description: 'cumulative spend on the suspend chain (when a resource ledger is attached).' }
|
|
14482
14709
|
deadline: { type: integer, description: 'awaiting-human SLA deadline (epoch ms).' }
|
|
14483
|
-
|
|
14710
|
+
sourceSessionId: { type: string, description: 'server >= 7.143.0 (core 7.61.0 rename of `sourceTaskId`, same value, no alias): the SESSION id of the leg that raised this ask — it names a session, not a task.' }
|
|
14711
|
+
agentId: { type: string, description: 'server >= 7.143.0: the agent id of the parked leg when it is a delegated child (a background child''s registry row id, otherwise its session id); absent on the host''s own row.' }
|
|
14484
14712
|
principal: { type: string, description: 'The submitting principal, when the deployment records one.' }
|
|
14485
14713
|
createdAt: { type: integer, description: 'Creation time, epoch ms (NOTE — SessionRecord.createdAt is an ISO string).' }
|
|
14486
14714
|
preview:
|
|
@@ -14509,6 +14737,9 @@ components:
|
|
|
14509
14737
|
properties:
|
|
14510
14738
|
sessionId: { type: string, description: 'The suspended task/session id.' }
|
|
14511
14739
|
checkpointId: { type: string, minLength: 1, maxLength: 128, description: 'server >= 7.133.0: the NON-SECRET stable identity of the pause this row parks on — the join key where the token cannot go; the SAME value as `PausedCause.checkpointId`. Carried on three durable read surfaces (GET /v1/approvals `pending[]` rows, the /v1/approvals/stream `pending` frame, GET /v1/assistant/inbox rows). A row whose value is unreadable or untrusted (non-string / empty / over 128 / contains the token / an old row / an older server) is STILL LISTED with the key ABSENT — read absence as "this row has no joinable identity", never as a required key.' }
|
|
14740
|
+
rowVerdict:
|
|
14741
|
+
allOf: [{ $ref: '#/components/schemas/CheckpointRowVerdict' }]
|
|
14742
|
+
description: 'server >= 7.144.0: the same verdict as `PendingCheckpoint.rowVerdict` (ABSENT IS NOT `ok`; both backends).'
|
|
14512
14743
|
scope: { type: string, description: 'Multi-tenant owner scope.' }
|
|
14513
14744
|
createdAt: { type: number, description: 'Ask creation time (epoch ms).' }
|
|
14514
14745
|
gateKind:
|
|
@@ -14839,6 +15070,11 @@ components:
|
|
|
14839
15070
|
versions are 401 in both directions.
|
|
14840
15071
|
⚠️ The key name is final: `permissionModeAfter` (the build brief once said `nextPermissionMode`,
|
|
14841
15072
|
which never shipped — zero aliases).
|
|
15073
|
+
decidedVia:
|
|
15074
|
+
allOf: [{ $ref: '#/components/schemas/ApprovalDecidedVia' }]
|
|
15075
|
+
description: 'server >= 7.143.0 (capability `approvalDecidedVia`): see ApprovalDecision.decidedVia.'
|
|
15076
|
+
mcpServers: { $ref: '#/components/schemas/ResumeRestatement/properties/mcpServers' }
|
|
15077
|
+
a2aPeers: { $ref: '#/components/schemas/ResumeRestatement/properties/a2aPeers' }
|
|
14842
15078
|
|
|
14843
15079
|
SessionAgent:
|
|
14844
15080
|
type: object
|
|
@@ -15917,7 +16153,7 @@ components:
|
|
|
15917
16153
|
additionalProperties: true
|
|
15918
16154
|
properties:
|
|
15919
16155
|
error: { type: string }
|
|
15920
|
-
errorCode: { type: string, enum: [conflict, session_active, import_in_flight] }
|
|
16156
|
+
errorCode: { type: string, enum: [conflict, session_active, import_in_flight, conflict.session_archive_stamped], description: '`conflict.session_archive_stamped` (server >= 7.144.0, `DB_BACKEND=local`): the stored archive still carries an earlier version''s owner stamp — no `relation`, delete the session and push it again.' }
|
|
15921
16157
|
relation: { $ref: '#/components/schemas/SyncRelation' }
|
|
15922
16158
|
activeTaskId: { type: string, description: Present on `session_active` — the task holding the session lock. }
|
|
15923
16159
|
|
|
@@ -15998,7 +16234,9 @@ components:
|
|
|
15998
16234
|
the branch to the 400 (the fix is the caller's either way: re-encode the id).
|
|
15999
16235
|
🔴 DETERMINISTIC failure codes (K-24): a few codes arrive on a status that normally means "retry may help" (500 /
|
|
16000
16236
|
503) while the server contract says a verbatim retry NEVER changes the verdict. The SDK's retry arm exempts them
|
|
16001
|
-
by code: `corrupt_session` (500, server >= 7.104.0 / S-612 — the session's saved log cannot be read
|
|
16237
|
+
by code: `corrupt_session` (500, server >= 7.104.0 / S-612 — the session's saved log cannot be read; server >= 7.144.0 also a stored log that reads but is
|
|
16238
|
+
structurally broken — a dangling parent, a self-parent, a cycle or a missing leaf — on every open face: `GET /v1/sessions/{id}`, `…/memory-status`, the synchronous `POST /v1/tasks`
|
|
16239
|
+
leg and `POST /v1/sessions/{id}/fork`; switch to a new session or fork from an entry above the break),
|
|
16002
16240
|
`config.tool_name_too_long` / `config.tool_contract_too_long` / `config.tool_roster_bound` (503, server >=
|
|
16003
16241
|
7.104.0 / S-271 — a deployment-declared tool exceeds the roster bound), `config.tool_schema_bound` (503, server >=
|
|
16004
16242
|
7.106.0 / core 7.35.0 #765 — a tool's `parameters` schema exceeds the roster row's key bound; "same family, same tier";
|
|
@@ -16008,9 +16246,8 @@ components:
|
|
|
16008
16246
|
principal is dangling; only re-pointing the assignment, or adding the scenario back to the deployment, helps) and
|
|
16009
16247
|
`approvals.read_corrupt` (500, server >= 7.134.0 on `GET /v1/approvals` — a queue row's stored body cannot be read; an operator has to repair or
|
|
16010
16248
|
delete the row; server >= 7.135.0 the same judge answers `GET /v1/assistant/inbox` and `GET /v1/assistant/tasks` too) and `workflow.journal_incompatible`
|
|
16011
|
-
(500, server >= 7.135.0 on `GET /v1/workflows/{id}/journal` — a journal row the engine's judge rejects; the body carries `ordinal`; repair the row from the retained copy, never by deleting it)
|
|
16012
|
-
`invalid_session` (500
|
|
16013
|
-
`internal.error`, and the synchronous `POST /v1/tasks` leg answers it instead of `200` + a failed body, and so does `POST /v1/sessions/{id}/fork`, whose route has no mapping of its own and lets a session error escape to the server's top-level catch (`GET /v1/sessions/{id}/events` maps a session error through the same table before the stream starts, but none of the three stores the server ships raises `invalid_session` there — the code is mapped, the response does not occur on them); a retry cannot change it — switch to a new session or fork from an entry above the break).
|
|
16249
|
+
(500, server >= 7.135.0 on `GET /v1/workflows/{id}/journal` — a journal row the engine's judge rejects; the body carries `ordinal`; repair the row from the retained copy, never by deleting it).
|
|
16250
|
+
`invalid_session` (500 on servers 7.137.0–7.143.x for the structurally broken form) is RETIRED at server 7.144.0 and no longer exempt: against those older servers the SDK retries it by status.
|
|
16014
16251
|
Every other 5xx code keeps the status-based retry.
|
|
16015
16252
|
🔴 server >= 7.135.0 read-failure and store-fault codes (all additive; branch on the code, never the sentence): `503 approvals.read_unavailable` on `GET /v1/approvals`, `/v1/assistant/inbox` and
|
|
16016
16253
|
`/v1/assistant/tasks` (the queue cannot be read RIGHT NOW — transient, retried by status; until a read succeeds an answer does NOT mean nothing is pending; it moved from the SSE-only table into the status-bearing catalog, status `-` → 503) and, on
|
|
@@ -16110,6 +16347,12 @@ components:
|
|
|
16110
16347
|
On 409 refusals of a resume (server >= 7.132.0) and on 422 `parked_resume.startup_failed` (server >= 7.134.0 — the parked background agent's pre-claim failure; absent when the engine gave none): the engine's `CheckpointErrorReason` arm (`detail.reason` passed through; see `blockedBy`). On 409 `conflict.checkpoint_ctx_unsealable` (server >= 7.134.0): why the request's credentials cannot be sealed into, or unsealed from, the stored resume context — a closed five-word set (SDK `CHECKPOINT_CTX_UNSEALABLE_REASONS`); which doors can answer which word is written once, in the SDK documentation of `CHECKPOINT_CTX_UNSEALABLE_REASONS`, not here: `no_key_store` (this server has no sealed-key store) / `key_not_held` (sealed with a key this server does not hold — another replica's, or a replaced sealed-key directory) / `unopenable` (the sealed value is damaged or belongs to another session) / `plaintext` (an older server stored it unsealed) / `unrecognized_seal` (a seal format this version does not know) — the way out depends on the door and the `reason`: `key_not_held` (a resume door) — have the operator restore the sealed-key directory that sealed it and restart that replica (it reads its keys only at startup), then resend the same request; `no_key_store` on the submit door — give the service a writable sealed-key directory (`<data root>/sealed-key/`, read at startup), or resubmit WITHOUT those credentials — resending the same submit body is refused again; `no_key_store` on a resume door — the same way out as `key_not_held`: restore the directory that sealed it and restart, then resend (a fresh empty directory does not help: it holds no such key, so the next read says `key_not_held`); `unopenable` / `plaintext` / `unrecognized_seal` — submit the work as a new task (cancel the still-suspended one first); never auto-retry, never match the sentence. A resume door's refusal decides nothing and starts no resume (the card stays pending; the known exception is a terminal run's steer race arm, which first opens a wake card and, when the second read fails for any of the five reasons, withdraws it and then answers 409 — if the withdrawal fails the server only logs it); a submit door's refusal lands before the task runs (nothing runs; a run row already opened for it is closed as `failed` and its idempotency key released, both best-effort — a failed step is only logged by the server and the answer is still the 409). On 400 `rules.inert_entry` (server >= 7.129.0): the engine's `ALLOW_ENTRY_INERT_REASONS` (`tool_name` / `wildcard_all` / `namespace_wildcard` / `content_unsupported` / `grammar` / `near_miss` / `earlier_grammar`). Out-of-vocabulary word ⇒ treat as unknown. (Other codes carry their own `reason` words.)
|
|
16111
16348
|
server >= 7.137.0: the THREE 400 `request.field_invalid` refusals of `inheritEnv` (a value outside the word set / a non-string / `"all"` on a non-host lane or a deployment with no authorizer session) carry `field: "inheritEnv"` and `reason` — one of
|
|
16112
16349
|
`unknown_word` / `not_a_string` / `lane_not_host` / `no_authorizer_session` (SDK `INHERIT_ENV_REFUSAL_REASONS`); sentence, code and status are unchanged.
|
|
16350
|
+
thrownName:
|
|
16351
|
+
type: string
|
|
16352
|
+
minLength: 1
|
|
16353
|
+
description: >-
|
|
16354
|
+
server >= 7.144.0 (core 7.62.0): on a resume / decide 409 whose engine reason is `requirements_damaged` — the name of what the engine's row judge saw thrown while reading the
|
|
16355
|
+
parked row (present iff the engine named it as a non-empty string; absent otherwise). Diagnostic only, never a match key; beside `reason`. SDK `ResumeRefusalExtra.thrownName`.
|
|
16113
16356
|
acceptableForm:
|
|
16114
16357
|
description: >-
|
|
16115
16358
|
server >= 7.137.0 (engine 7.56.0), on 409 `resume.constraint_rejected` only: the edit re-judgement (the deployment's resume-edit policy) accepts only the REWRITTEN form — this key is that form's input, read like a card's `args`
|
|
@@ -16582,7 +16825,10 @@ components:
|
|
|
16582
16825
|
bgAgentId: { type: string }
|
|
16583
16826
|
Event_text:
|
|
16584
16827
|
type: object
|
|
16585
|
-
description:
|
|
16828
|
+
description: >-
|
|
16829
|
+
durable stream only — turn-aggregated answer text (carries the E18 resume-handle eventId). server >= 7.144.0: one row = one SEGMENT (the live text segment's redaction
|
|
16830
|
+
unit is the same one); `text` = each block's original text in order — a block's per-chunk frame bytes, or for a block that has ONLY a `text_end` (no per-chunk frames) its
|
|
16831
|
+
text, which is in the row too (<= 7.143.x concatenated per-chunk bytes only, so such a block was missing).
|
|
16586
16832
|
allOf: [{ $ref: '#/components/schemas/EventIdentity' }]
|
|
16587
16833
|
additionalProperties: false # 封闭 + identity 本地镜像:见 Event_reasoning 处的长注
|
|
16588
16834
|
required: [type, text]
|
|
@@ -16608,7 +16854,9 @@ components:
|
|
|
16608
16854
|
bgAgentId: { type: string }
|
|
16609
16855
|
Event_text_delta:
|
|
16610
16856
|
type: object
|
|
16611
|
-
description:
|
|
16857
|
+
description: >-
|
|
16858
|
+
live stream only — per-token answer fragment. server >= 7.144.0: the text segment's redaction state spans the engine's text blocks (the segment = the durable `text`
|
|
16859
|
+
row's unit; the engine's `text_end` only delivers a block) — for a block with per-chunk frames, their concatenation = that block's `text_end.content`.
|
|
16612
16860
|
allOf: [{ $ref: '#/components/schemas/EventIdentity' }]
|
|
16613
16861
|
additionalProperties: false # 封闭 + identity 本地镜像:见 Event_reasoning 处的长注
|
|
16614
16862
|
required: [type, delta]
|
|
@@ -16622,9 +16870,11 @@ components:
|
|
|
16622
16870
|
Event_text_end:
|
|
16623
16871
|
type: object
|
|
16624
16872
|
description: >
|
|
16625
|
-
LIVE stream only (server >= 7.66.0, core 5.62.0) — the
|
|
16626
|
-
|
|
16627
|
-
|
|
16873
|
+
LIVE stream only (server >= 7.66.0, core 5.62.0) — the end signal of one engine assistant text BLOCK.
|
|
16874
|
+
server >= 7.144.0: it DELIVERS that block and does not close the segment (the segment = the durable `text` row's unit and may span blocks): `content` = this block's text,
|
|
16875
|
+
judged after the same segment's earlier text and delivering only this block's slice (a credential whose anchor sits in an earlier block is masked here too; <= 7.143.x
|
|
16876
|
+
judged each block alone). A block with per-chunk frames: their concatenation = `content`; a block with only this frame: its text is only here (and in the durable row).
|
|
16877
|
+
`content` is the block's AUTHORITATIVE text (same trust class as `text_delta`, same zero content transformation). It retires the "no delta for N ms => the segment must be over" idle-flush
|
|
16628
16878
|
heuristic: the boundary is now stated by the engine, not guessed by a timer.
|
|
16629
16879
|
🔴 A TRUNCATED segment gets NO such frame (core deliberately withholds it) — "no text_end" does NOT
|
|
16630
16880
|
mean "the segment is still going". 🔴 The durable leg does not append it (the batched `text` event
|
|
@@ -17533,6 +17783,9 @@ components:
|
|
|
17533
17783
|
summaryMs: { type: integer }
|
|
17534
17784
|
persistMs: { type: integer }
|
|
17535
17785
|
ptlRetries: { type: integer }
|
|
17786
|
+
requestedBy:
|
|
17787
|
+
allOf: [{ $ref: '#/components/schemas/ExtensionRequester' }]
|
|
17788
|
+
description: 'server >= 7.143.0 (core 7.61.0): this compaction was requested by an extension registration through `$.session.compact`. Absent = a host / manual request, or an automatic compaction.'
|
|
17536
17789
|
pass:
|
|
17537
17790
|
type: string
|
|
17538
17791
|
description: 'server >= 7.132.0 (core 7.53.0 #2008): the id of the compaction pass that LANDED — the same opaque value its `compaction_started.pass` carried. Pair the start with its end on `pass`, not on "the next `compacted`" (legs interleave on one stream). Absent = an older server / a pass that never announced a start.'
|
|
@@ -17758,6 +18011,14 @@ components:
|
|
|
17758
18011
|
kind: { type: string }
|
|
17759
18012
|
outcome: { type: string }
|
|
17760
18013
|
label: { type: string }
|
|
18014
|
+
rewrittenBy:
|
|
18015
|
+
type: array
|
|
18016
|
+
items: { type: string }
|
|
18017
|
+
description: >-
|
|
18018
|
+
server >= 7.144.0 (core 7.62.0): this input's text was REWRITTEN before delivery by the leg's prompt screen (an extension's `prompt.submit`) — the extensions that
|
|
18019
|
+
changed it, in the order they did (registration names). The model saw the rewritten text (the caller's own words were not delivered). Rides the frame the screening
|
|
18020
|
+
entrance mints (an objective's `"applied"` frame, a parked steer's or a wake message's, a live steer's `"queued"` frame). ABSENT = the text went as it came (or an older
|
|
18021
|
+
server); the server projects only non-empty names and omits an empty list. Attribution only, never authority.
|
|
17761
18022
|
eventId: { type: string }
|
|
17762
18023
|
parentToolCallId: { type: string }
|
|
17763
18024
|
sourceTaskId: { type: string }
|
|
@@ -18322,7 +18583,7 @@ components:
|
|
|
18322
18583
|
activity: { type: string }
|
|
18323
18584
|
summaryParams: { type: array, items: { type: string } }
|
|
18324
18585
|
resultCards: { type: array, items: { type: string } }
|
|
18325
|
-
approvalCard: { type: string, enum: [file-edit, file-write, notebook-edit, shell, fetch, plan, question, generic] }
|
|
18586
|
+
approvalCard: { type: string, enum: [file-edit, file-write, notebook-edit, shell, fetch, skill, workflow, plan, question, generic, computer-access, computer-control] }
|
|
18326
18587
|
McpToolRuleFace:
|
|
18327
18588
|
type: object
|
|
18328
18589
|
additionalProperties: false
|
|
@@ -18421,9 +18682,16 @@ components:
|
|
|
18421
18682
|
own submit-time image pre-check (ops-log line `images_omitted_no_vision_model` and counter `images_omitted_total`, both retired in 7.137.0: the engine mints the fact at the moment it really replaces the image);
|
|
18422
18683
|
a reasoning knob the model declares off is not reported here (that is `effectiveReasoning.dropped`).
|
|
18423
18684
|
server 7.138.0 adds two codes to the user whitelist (appendix D.3 44 -> 46; both audience `user` in core's register), described here because their `detail` is not self-evident:
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18685
|
+
the image-removal code (core 7.59.0; RENAMED at server 7.143.0 / core 7.61.0 to `context.media_removed`, no alias — the old code no longer appears). `context.media_removed`
|
|
18686
|
+
(server >= 7.143.0) — media (images / documents) left a request the model saw; the session transcript keeps the originals; each block's place reads `[<image|document> N removed: <why>]`.
|
|
18687
|
+
`{ reason, images, documents, sessionId, runId }`: `reason` is `rejected_by_provider` (the provider could not process an image in this turn — the failed turn's `errorKind` is `image_unprocessable` — so the
|
|
18688
|
+
images of the NEWEST message still carrying any were taken out and the turn re-sent; every later request of the session reads the same removal; `documents` is 0; once per run per refusal) or
|
|
18689
|
+
`media_budget` (the request's media went over the block cap / the deployment's base64 budget: the oldest blocks were left out; `images` / `documents` count the blocks this notice is the first to report). No body text.
|
|
18690
|
+
The way out for `rejected_by_provider` is another image format (admission separately refuses png / jpeg / gif / webp images whose header is incomplete, without this code).
|
|
18691
|
+
server 7.143.0 also adds `classifier.seat_rate_limited` (`{ model, to, rung, consecutive, sessionId?, runId? }`: the classifier seat hit the provider's rate limit `consecutive` times in a row, so for the rest
|
|
18692
|
+
of the run every gated call is judged from `to` on — the seat left the ladder; once per run per seat) and `context.tool_schema_removed` (`{ tool, sessionId, runId }`: the provider refused the request because of one
|
|
18693
|
+
tool's input schema and named it — the failed turn's `errorKind` is `tool_schema_refused` — so that tool's parameters are sent as an empty object schema from then on for this transcript (MCP and A2A tools only,
|
|
18694
|
+
at most 8 per transcript; the model can still call the tool); once per refusal). All three audience `user`.
|
|
18427
18695
|
`mcp.authorization_required` (core 7.59.0) — an MCP server the user must authorize before it serves them: the leg's dial failed `unauthorized`, or a request was refused that way and that refusal is its answer (a repeat-safe call refused with 401
|
|
18428
18696
|
and sent once more on a renewed credential announces only if that send is refused too). The leg does not park on it. `{ server, reason, authorizeUrl?, principal?, sessionId, runId }` — `reason` is `rejected` (401) / `scope` (403
|
|
18429
18697
|
`insufficient_scope`) / `none` (the authorization seat holds no authorization for this user), the engine's closed set, echoed by the server (read OPEN); `authorizeUrl` only ever comes from the deployment's authorization seat (this deployment
|
|
@@ -18444,21 +18712,21 @@ components:
|
|
|
18444
18712
|
`detail.taskId`; absent when the leg has no run resource (a streaming leg on a deployment without a run store) or on an older
|
|
18445
18713
|
server. NO `runId` (the model-call layer cannot see the engine's run identity): a resume leg and its original leg share the
|
|
18446
18714
|
`taskId`. Once per leg per target; it says "this endpoint is unreachable", not "this run failed".
|
|
18447
|
-
`session.records_skipped` (
|
|
18448
|
-
|
|
18449
|
-
|
|
18450
|
-
|
|
18451
|
-
|
|
18452
|
-
|
|
18453
|
-
|
|
18454
|
-
|
|
18455
|
-
|
|
18456
|
-
|
|
18457
|
-
|
|
18458
|
-
|
|
18459
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
18715
|
+
`session.records_skipped` (RETIRED at server 7.144.0, no alias; server-minted on 7.104.0–7.143.x with `{ dropped, entriesKept, sessionId }`) — the same fact is
|
|
18716
|
+
now the engine's `session.lineage_rerooted` (below). A consumer branching on the old code reads the new one: `recordsDropped` = the old `dropped`; `entriesOnPath`
|
|
18717
|
+
(the entries the run's context keeps) is NOT the old `entriesKept` (all surviving entries).
|
|
18718
|
+
`session.lineage_rerooted` (server >= 7.144.0 / core 7.62.0; audience `user`; D.3 stays at 48 codes — one code out, one in; file session backend only) — the session this run continues
|
|
18719
|
+
has a log whose replay dropped records it could not read, and this says what the run lost. Two forms, told apart by `detail.break`: `true` — the branch the run reads broke at a parent the
|
|
18720
|
+
log does not hold, and the run continues from the entry that names that parent instead of failing (the synchronous leg answers 200); `false` — the branch is whole (the log's last records
|
|
18721
|
+
were unreadable and its head fell back to the last one still readable, or the damage sat off the branch) and the run continues from `leaf`.
|
|
18722
|
+
`{ break, recordsDropped, recordsTotal, leaf, entriesOnPath, sessionId, runId }` and, when `break` is `true`, `{ missingParentId, rootedAt, entriesCut }` — the replay's count (records, not
|
|
18723
|
+
entries) and its total records (`recordsDropped` of them unreadable), the entry the run continues from (`null` = nothing of the log is readable; always a string when `break` is `true`), the branch's length, the parent not in the
|
|
18724
|
+
log, the entry the branch starts at, and how many entries the log holds that do not descend from `rootedAt`. Counts and entry ids only, never a record's words. Once per prepared leg for a
|
|
18725
|
+
whole branch, once per break for a broken one (and then the whole-branch form is not said); a turn served from the session cache announces too. A break the replay cannot account for (it
|
|
18726
|
+
dropped nothing: a dangling parent, a self-parent, a cycle or a missing leaf) is NOT re-rooted — that turn is refused `corrupt_session` (500 on the synchronous leg; the same code and the
|
|
18727
|
+
same client action as a log that cannot be read at all: do not retry — start a new session or fork from an entry above the break). Servers 7.137.0–7.143.x answered that form
|
|
18728
|
+
`invalid_session`; 7.144.0 retires it from every open face. ⚠️ Known difference: the run continues, while the session view (`GET /v1/sessions/{id}` / `…/memory-status`) still
|
|
18729
|
+
answers 500 `corrupt_session` for the same break.
|
|
18462
18730
|
PERMISSION-MODE FIVE (K-32; server >= 7.106.0 / core 7.34.0 design/1111 + C-R172; contract appendix D.3 26 → 31 codes; owner
|
|
18463
18731
|
core, words passed through verbatim): `classifier.unavailable` — the auto-mode classifier could not judge the call (error, or
|
|
18464
18732
|
the per-rung `AUTO_MODE_CLASSIFIER_TIMEOUT_MS` budget ran out), `{ toolName, toolCallId, cause, disposition, sessionId?, runId? }`,
|
|
@@ -19224,9 +19492,16 @@ components:
|
|
|
19224
19492
|
type: boolean
|
|
19225
19493
|
enum: [true]
|
|
19226
19494
|
description: 'Present ⇔ the ask comes from a DELEGATED background/nested child — the EXPLICIT discriminator (trusted engine fact).'
|
|
19227
|
-
|
|
19495
|
+
sourceSessionId:
|
|
19496
|
+
type: string
|
|
19497
|
+
description: 'server >= 7.143.0 (core 7.61.0 BREAKING rename of `sourceTaskId`, same value, no alias): the delegated child''s core SESSION id — row-join value. Read attribution off `fromSubagent`, not off this key''s presence.'
|
|
19498
|
+
agentId:
|
|
19228
19499
|
type: string
|
|
19229
|
-
description: '
|
|
19500
|
+
description: 'server >= 7.143.0: the agent id of the leg that raised the ask (a background child''s registry row id `a…`, a foreground child''s session id); a directly started workflow''s agent carries it WITHOUT `fromSubagent`; absent on the host''s own ask.'
|
|
19501
|
+
askReasons:
|
|
19502
|
+
type: array
|
|
19503
|
+
items: { $ref: '#/components/schemas/AskReason' }
|
|
19504
|
+
description: 'server >= 7.143.0 (core 7.61.0): WHO asked and WHY — one entry per asker with its own words. Structured approval UIs render reason lines from this, not from `message`. Words are credential-redacted and length-capped; any malformed entry ⇒ the whole seat is withheld. Absent = an older engine / the engine''s generic question.'
|
|
19230
19505
|
sourceAgentName: { type: string, description: 'Display name of the child agent, redacted. UNTRUSTED.' }
|
|
19231
19506
|
delegation:
|
|
19232
19507
|
type: object
|
|
@@ -19524,6 +19799,9 @@ components:
|
|
|
19524
19799
|
readRootCandidate: { $ref: '#/components/schemas/ToolApprovalFrame/properties/readRootCandidate' }
|
|
19525
19800
|
probeReason: { $ref: '#/components/schemas/ToolApprovalFrame/properties/probeReason' }
|
|
19526
19801
|
requestedBy: { $ref: '#/components/schemas/ToolApprovalFrame/properties/requestedBy' }
|
|
19802
|
+
liveFactsUnknown:
|
|
19803
|
+
const: true
|
|
19804
|
+
description: 'server >= 7.143.0 — ONLY on a disconnect-replay frame: the row was minted before this version (its card envelope has no live-facts seat) or that seat cannot be read, so the top-level live facts are all absent and this key says "unknown" (not "none"). Absent = the live facts on this frame are verbatim (a live frame, or a replay frame whose envelope carries the seat).'
|
|
19527
19805
|
|
|
19528
19806
|
ApprovalCard:
|
|
19529
19807
|
type: object
|
|
@@ -19577,7 +19855,12 @@ components:
|
|
|
19577
19855
|
the ABSENT != "you have no rule" clause and the separation from `governanceForced` are stated verbatim on ToolApprovalFrame.allowRuleShadowed
|
|
19578
19856
|
— the live frame, the stored `card_json`, the replayed frame and the `approval_request` card carry the SAME material.
|
|
19579
19857
|
fromSubagent: { type: boolean, enum: [true], description: 'Present ⇔ the ask comes from a DELEGATED child — the explicit discriminator (a worker cannot forge it).' }
|
|
19580
|
-
|
|
19858
|
+
sourceSessionId: { type: string, description: 'server >= 7.143.0 (rename of `sourceTaskId`, same value, no alias): the child''s core session id — same as ToolApprovalFrame.sourceSessionId.' }
|
|
19859
|
+
agentId: { type: string, description: 'server >= 7.143.0: same as ToolApprovalFrame.agentId.' }
|
|
19860
|
+
askReasons:
|
|
19861
|
+
type: array
|
|
19862
|
+
items: { $ref: '#/components/schemas/AskReason' }
|
|
19863
|
+
description: 'server >= 7.143.0: same value as ToolApprovalFrame.askReasons (one narrow read for frame, card and queue row).'
|
|
19581
19864
|
sourceAgentName: { type: string, description: 'The child agent''s display name, redacted. UNTRUSTED.' }
|
|
19582
19865
|
# A-057.④(#314):三键 server 早已随卡投出(与 tool_approval 帧同一窄读函数 ⇒ 帧与 card 同值),
|
|
19583
19866
|
# 但本 schema 只在帧上公示过 —— 按 spec 生成的卡消费方拿不到。定义与帧上同构段逐字同源,
|
|
@@ -20520,6 +20803,9 @@ components:
|
|
|
20520
20803
|
not move): a `policy` allow on a person-required card ⇒ 400 `request.field_conflict`; outside the closed set ⇒
|
|
20521
20804
|
400 `request.field_invalid`; any value on a direct-door worker ⇒ 400 `decided_by_not_in_proof`. An older server
|
|
20522
20805
|
(no `approvalDecidedBy` bit) has a strict body here ⇒ 400 `request.body_shape`, nothing decided.
|
|
20806
|
+
decidedVia:
|
|
20807
|
+
allOf: [{ $ref: '#/components/schemas/ApprovalDecidedVia' }]
|
|
20808
|
+
description: 'server >= 7.143.0 (capability `approvalDecidedVia`): see ApprovalDecision.decidedVia.'
|
|
20523
20809
|
|
|
20524
20810
|
ApprovalDecideGateKind:
|
|
20525
20811
|
type: string
|
|
@@ -20537,6 +20823,31 @@ components:
|
|
|
20537
20823
|
description: >
|
|
20538
20824
|
server >= 7.126.0 (sdk 21.1.0 `PLAN_REVIEW_GATE_KINDS`) — the parked gate kind the plan-review door
|
|
20539
20825
|
`POST /v1/assistant/tasks/{taskId}/plan_review` accepts (3-state approve | edit | reject).
|
|
20826
|
+
AskReason:
|
|
20827
|
+
description: >
|
|
20828
|
+
server >= 7.143.0 (core 7.61.0) — one asker and its own words. Two arms: a hook / extension question `{ by: "hook", cause, registration?, words? }`
|
|
20829
|
+
(`cause` = engine `HOOK_QUESTION_CAUSES`), or a policy-chain question `{ by, words }` (`by` = the AskOrigin words minus `hook`).
|
|
20830
|
+
oneOf:
|
|
20831
|
+
- type: object
|
|
20832
|
+
additionalProperties: false
|
|
20833
|
+
required: [by, cause]
|
|
20834
|
+
properties:
|
|
20835
|
+
by: { const: hook }
|
|
20836
|
+
cause: { $ref: '#/components/schemas/HookQuestionCause' }
|
|
20837
|
+
registration: { type: string }
|
|
20838
|
+
words: { type: string }
|
|
20839
|
+
- type: object
|
|
20840
|
+
additionalProperties: false
|
|
20841
|
+
required: [by, words]
|
|
20842
|
+
properties:
|
|
20843
|
+
by: { type: string, enum: [content_question, plan_review, ancestor_marked, org_unavailable, org_rule, rule_store_unavailable, ask_rule, denial_limit_fallback, shell_gate_tighten, safety_tighten, policy], description: 'AskOrigin words minus `hook` (the server card schema''s table; an entry outside it withholds the whole seat).' }
|
|
20844
|
+
words: { type: string }
|
|
20845
|
+
|
|
20846
|
+
HookQuestionCause:
|
|
20847
|
+
type: string
|
|
20848
|
+
enum: [asked, verdict_unreadable, verdict_unfinished]
|
|
20849
|
+
description: 'server >= 7.143.0 (engine `HOOK_QUESTION_CAUSES`, verbatim and in order): why a hook / extension question asks — `asked` (it answered "ask"), `verdict_unreadable` (its verdict could not be read), `verdict_unfinished` (it did not finish in time). Only on the hook arm of AskReason.'
|
|
20850
|
+
|
|
20540
20851
|
ApprovalDecidedBy:
|
|
20541
20852
|
type: string
|
|
20542
20853
|
enum: [person, policy]
|
|
@@ -20556,8 +20867,11 @@ components:
|
|
|
20556
20867
|
|
|
20557
20868
|
ToolApprovalCardWord:
|
|
20558
20869
|
type: string
|
|
20559
|
-
enum: [file-edit, file-write, notebook-edit, shell, fetch, plan, question, generic]
|
|
20870
|
+
enum: [file-edit, file-write, notebook-edit, shell, fetch, skill, workflow, plan, question, generic, computer-access, computer-control]
|
|
20560
20871
|
description: >
|
|
20872
|
+
sdk 34.0.0: twelve words = core 7.62.0 / server 7.144.0 `TOOL_APPROVAL_CARDS` (`skill` / `workflow` were already in the engine's register at core 7.59.0 and were missing here;
|
|
20873
|
+
`computer-access` — the consent card of a tool that hands the model the user's screen, the call carries `apps`, the list asked for — and `computer-control` — that tool's
|
|
20874
|
+
other consent card, the call carries nothing the card needs — are new in core 7.62.0; what each grants is per connection).
|
|
20561
20875
|
server >= 7.126.0 (core 7.49.0 `TOOL_APPROVAL_CARDS`, verbatim and in order; contract table B `approvalCard` row) — WHICH CARD an approval ask renders on: the one word the engine mints at the gate, the
|
|
20562
20876
|
ONLY card-word source (it replaces the tool-name-derived `contentKind`). `question` = a question put to the user (the engine's reserved question tool — not a side-effecting tool; a consumer that read
|
|
20563
20877
|
`contentKind === "content_ask"` reads `approvalCard === "question"`); `generic` = a card with no dedicated renderer. CLOSED set; new words join with a core minor, so a switch on it keeps a default arm.
|
|
@@ -20943,6 +21257,9 @@ components:
|
|
|
20943
21257
|
so only on `failed` / `mooted` (a pass that ran its summary and did not land, or was cut while it ran — `mooted` with `reason: "task_ending"` = the task's
|
|
20944
21258
|
own end cut the running summary, a form this frame closes since core 7.53.0). `blocked` / `suppressed` / `disabled` / `noop` and a manual request no
|
|
20945
21259
|
boundary served carry none (those passes never started).
|
|
21260
|
+
requestedBy:
|
|
21261
|
+
allOf: [{ $ref: '#/components/schemas/ExtensionRequester' }]
|
|
21262
|
+
description: 'server >= 7.143.0 (core 7.61.0): the compaction was requested by an extension registration through `$.session.compact` (carried here when that requested pass did not land; same as `compacted.requestedBy`).'
|
|
20946
21263
|
eventId: { type: string }
|
|
20947
21264
|
parentToolCallId: { type: string }
|
|
20948
21265
|
Event_compaction_started:
|
|
@@ -21353,9 +21670,18 @@ components:
|
|
|
21353
21670
|
type:
|
|
21354
21671
|
type: string
|
|
21355
21672
|
description: 'Open on read. Known values: pending / resolved / synced / heartbeat / meta / error.'
|
|
21356
|
-
|
|
21673
|
+
kind: { type: string, enum: [checkpoint, peer_inbound], description: 'server >= 7.143.0, `pending` / `resolved` frames: the row family. A `pending` frame spreads that family''s row (PendingCheckpoint or PeerInboundPendingRow); a `resolved` frame carries `sessionId` + `toolCallId` (checkpoint) or `id` (peer_inbound). Branch on it before settling a card; absent on servers <= 7.142.x.' }
|
|
21674
|
+
id: { type: string, description: 'server >= 7.143.0, `peer_inbound` `pending` / `resolved` frames: the door id (PeerInboundPendingRow.id).' }
|
|
21675
|
+
askReasons:
|
|
21676
|
+
type: array
|
|
21677
|
+
items: { $ref: '#/components/schemas/AskReason' }
|
|
21678
|
+
description: '`pending` frames only (server >= 7.143.0) — see PendingCheckpoint.askReasons.'
|
|
21679
|
+
sessionId: { type: string, description: '`resolved` frames (checkpoint family): which pending settled.' }
|
|
21357
21680
|
toolCallId: { type: string, description: '`resolved` frames: the settled pending''s bound tool-call id (absent when the pending carried none).' }
|
|
21358
21681
|
count: { type: integer, description: '`synced` frames: how many pendings the connect-time snapshot carried.' }
|
|
21682
|
+
rowVerdict:
|
|
21683
|
+
allOf: [{ $ref: '#/components/schemas/CheckpointRowVerdict' }]
|
|
21684
|
+
description: '`pending` frames only (server >= 7.144.0): the spread PendingCheckpoint row''s `rowVerdict` (ABSENT IS NOT `ok`).'
|
|
21359
21685
|
checkpointId: { type: string, description: '`pending` frames only (server >= 7.133.0): the spread PendingCheckpoint row''s `checkpointId` (key absent when the row has no trusted value — read as "no joinable identity").' }
|
|
21360
21686
|
consumerState: { type: string, enum: [absent], description: '`live_pending` frames only (server >= 7.133.0): the spread LivePendingRow''s true-only `consumerState` (no engine leg on this replica is waiting for the ask).' }
|
|
21361
21687
|
errorCode: { type: string, description: '`error` frames: the machine code (`STREAM_MAX_DURATION` / `draining` / server >= 7.133.0 `approvals.read_unavailable` — the stream STAYS open, do NOT reconnect on it — / `approvals.read_corrupt` — a corrupt row was read, the server closes the stream after the frame).' }
|
|
@@ -22838,8 +23164,8 @@ components:
|
|
|
22838
23164
|
`http` / `stream_torn` / `refusal` / `length_empty`). ABSENT on success and on older servers.
|
|
22839
23165
|
errorKind:
|
|
22840
23166
|
type: string
|
|
22841
|
-
enum: [input_too_long, degenerate, length_empty, image_unprocessable]
|
|
22842
|
-
description: 'server >= 7.135.0 (failure only): the STRUCTURAL failure kind the reply carried, forwarded as is — `input_too_long` (the provider refused the request as over its window), `degenerate`, `length_empty`; server >= 7.138.0 (engine 7.59.0) also `image_unprocessable` (the provider could not process an image in the request). Absent when the reply carried none. Closed (the engine''s
|
|
23167
|
+
enum: [input_too_long, degenerate, length_empty, image_unprocessable, tool_schema_refused]
|
|
23168
|
+
description: 'server >= 7.135.0 (failure only): the STRUCTURAL failure kind the reply carried, forwarded as is — `input_too_long` (the provider refused the request as over its window), `degenerate`, `length_empty`; server >= 7.138.0 (engine 7.59.0) also `image_unprocessable` (the provider could not process an image in the request); server >= 7.143.0 (engine 7.61.0) also `tool_schema_refused` (the provider refused the request over one tool''s input schema — the side query does not carry the tool name; read `errorMessage` for display). Absent when the reply carried none. Closed (the engine''s five words): adding a word is an output-type widening.'
|
|
22843
23169
|
account:
|
|
22844
23170
|
allOf: [{ $ref: '#/components/schemas/SideQueryAccountRow' }]
|
|
22845
23171
|
description: 'server >= 7.138.0 (engine 7.59.0; always present on newer servers, absent on older ones): this side query''s line in the session''s account — see `SideQueryAccountRow`. This server mints no session total.'
|
|
@@ -23587,21 +23913,31 @@ components:
|
|
|
23587
23913
|
cloud deployment has no access to the user's filesystem — that is the deployment shape, not a bypass:
|
|
23588
23914
|
what is read is still only the allow bucket.
|
|
23589
23915
|
|
|
23590
|
-
🔴
|
|
23591
|
-
`
|
|
23592
|
-
|
|
23593
|
-
|
|
23916
|
+
🔴 TWO ARMS BY `layer` (server >= 7.143.0 / engine 7.61.0, BREAKING, no alias): a `userSettings` layer is `{ layer, path, content }` and carries
|
|
23917
|
+
NO `root` (a body sending one ⇒ 400 `request.body_shape`; its `/`-rooted path rules stay in the settings file, reported as
|
|
23918
|
+
`unsupported.layer_root:` candidates); a `projectSettings` / `localSettings` layer is `{ layer, path, root, content }`.
|
|
23919
|
+
`root` follows the RuleScope rule (server >= 7.120.0: a complete absolute path; otherwise 400 `request.body_shape` and no ticket minted — the `error` is
|
|
23920
|
+
"layers[<i>].root must be an absolute path" on server >= 7.121.0, naming the first refused layer).
|
|
23594
23921
|
Its TRUTHFULNESS is deliberately NOT validated: the server has no such tree to check against, and pretending
|
|
23595
23922
|
to validate would be a lie. It is the user's own label for "which cwds should this rule be live under".
|
|
23596
23923
|
# 封闭:server 侧 zod 是 `.strict()`(把 `content` 拼成 `contents` 的客户端应当场 400,而不是拿到
|
|
23597
23924
|
# 一份「零候选」的预览去纳闷)。
|
|
23598
|
-
|
|
23599
|
-
|
|
23600
|
-
|
|
23601
|
-
|
|
23602
|
-
|
|
23603
|
-
|
|
23604
|
-
|
|
23925
|
+
oneOf:
|
|
23926
|
+
- type: object
|
|
23927
|
+
additionalProperties: false
|
|
23928
|
+
required: [layer, path, content]
|
|
23929
|
+
properties:
|
|
23930
|
+
layer: { const: userSettings }
|
|
23931
|
+
path: { type: string, minLength: 1, maxLength: 1024 }
|
|
23932
|
+
content: { type: string, maxLength: 16384, description: 'The layer file''s raw JSON text (16 KiB cap — a settings file is hand-written, not a dataset; the cap keeps this from becoming an upload channel).' }
|
|
23933
|
+
- type: object
|
|
23934
|
+
additionalProperties: false
|
|
23935
|
+
required: [layer, path, root, content]
|
|
23936
|
+
properties:
|
|
23937
|
+
layer: { type: string, enum: [projectSettings, localSettings] }
|
|
23938
|
+
path: { type: string, minLength: 1, maxLength: 1024 }
|
|
23939
|
+
root: { type: string, minLength: 1, maxLength: 1024 }
|
|
23940
|
+
content: { type: string, maxLength: 16384 }
|
|
23605
23941
|
|
|
23606
23942
|
CcImportPreview:
|
|
23607
23943
|
type: object
|