@sema-agent/sdk 27.0.0 → 28.1.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/openapi.yaml CHANGED
@@ -423,7 +423,7 @@ paths:
423
423
  prepare-time refusal code that HAS a status in the server's per-code triage table (`resume_at.*` — `resume_at.not_found` is 404, the rest 422 —, governance codes,
424
424
  `rewind.store_unconfigured` / `rewind.capture_disabled` / `rewind.child_scope_unsupported` / `rewind_snapshot.unresolvable`, the
425
425
  registered `config.*` codes incl. the three roster-bound ones and — server >= 7.116.0 — `config.invalid_checkpoint_store` (400) and
426
- `config.user_invoked_skill_unknown` (400: top-level `userInvokedSkills` named a skill this run does not carry) and — server >= 7.117.0 — `config.image_invalid` (400: an inline image failed the engine's byte admission; `error` starts with `TaskSpec.images: `) and — server >= 7.126.0 — `config.tool_face_control` (400: `allowTools: ["mcp__*"]`, `excludeTools: ["*"]` (and, on server 7.126.0–7.128.x only, a name in `allowTools` / `excludeTools` that no tool of this run answers to — server >= 7.129.0 runs those as written and announces each once with the operator row `runner_config_advisory`), or an `excludeTools` entry that reaches a protocol tool this leg depends on; the engine rejects before the run starts, never silently ignoring the name; `error` is the engine's sentence naming the entry, its list and why) and — server >= 7.132.0, BREAKING (200 + failed body before) — `config.agent.unknown_tool` (400: a delegated agent's `allowTools` names a near-miss / a retired name with a successor / an impossible spelling, judged by the engine before the run; the intake refusal of `agents[i].denyTools` entries that read as nothing has answered this 400 since 7.131.0) and `config.legacy_tool_name` (400: a stored session-rule row names a tool the engine reads as nothing) and `prompt.assembled_role_refused` (400: `systemPrompt` / `appendSystemPrompt` — `settings.outputStyle` folded in — carries the engine's locked prompt text verbatim; send role text only) and — server >= 7.131.0 — `config.user_attachment_invalid` (400; server >= 7.132.0 the body adds `detail: { path, index? }`), `corrupt_session`; these registered codes answer 400 on all three submit legs without spending the `Idempotency-Key` (async / live legs: 2xx with the same code on the terminal run row); codes outside the table, e.g. `rewind.invalid_spec`, stay
426
+ `config.user_invoked_skill_unknown` (400: top-level `userInvokedSkills` named a skill this run does not carry) and — server >= 7.117.0 — `config.image_invalid` (400: an inline image failed the engine's byte admission; `error` starts with `TaskSpec.images: `) and — server >= 7.126.0 — `config.tool_face_control` (400: `allowTools: ["mcp__*"]`, `excludeTools: ["*"]` (on server 7.126.0–7.136.x; server >= 7.137.0 accepts it as a whole-name glob) (and, on server 7.126.0–7.128.x only, a name in `allowTools` / `excludeTools` that no tool of this run answers to — server >= 7.129.0 runs those as written and announces each once with the operator row `runner_config_advisory`), or an `excludeTools` entry that reaches a protocol tool this leg depends on (server >= 7.137.0 that includes `*` on a run with `outputSchema`); the engine rejects before the run starts, never silently ignoring the name; `error` is the engine's sentence naming the entry, its list and why) and — server >= 7.132.0, BREAKING (200 + failed body before) — `config.agent.unknown_tool` (400: a delegated agent's `allowTools` names a near-miss / a retired name with a successor / an impossible spelling, judged by the engine before the run; the intake refusal of `agents[i].denyTools` entries that read as nothing has answered this 400 since 7.131.0) and `config.legacy_tool_name` (400: a stored session-rule row names a tool the engine reads as nothing) and `prompt.assembled_role_refused` (400: `systemPrompt` / `appendSystemPrompt` — `settings.outputStyle` folded in — carries the engine's locked prompt text verbatim; send role text only) and — server >= 7.131.0 — `config.user_attachment_invalid` (400; server >= 7.132.0 the body adds `detail: { path, index? }`), `corrupt_session`; these registered codes answer 400 on all three submit legs without spending the `Idempotency-Key` (async / live legs: 2xx with the same code on the terminal run row); codes outside the table, e.g. `rewind.invalid_spec`, stay
427
427
  200 with a failed body) answers its 4xx / 5xx ERROR BODY only when the whole submission did ZERO WORK (cumulative
428
428
  `stats.turns === 0` AND `stats.tokens === 0` — the common case: nothing billed, not idempotency-cached). When a
429
429
  `verify` / `cascade` run's earlier tier already ran turns and only the last tier is refused, the SAME code arrives
@@ -517,6 +517,9 @@ paths:
517
517
  no meta header; SQL backends: one `session_event.payload` row is not a readable entry). Nothing ran, nothing
518
518
  billed; `error` is the engine / store sentence (no on-disk path). DETERMINISTIC: a retry cannot change it (the SDK
519
519
  does not auto-retry this code); the repair is the operator's. Also `internal.error` (unclassified).
520
+ server >= 7.137.0: `invalid_session` — the session's stored log reads but is structurally broken (a dangling parent, a self-parent, a cycle or
521
+ a missing leaf); on the synchronous leg it replaces the earlier `200` + a failed body. Nothing ran. DETERMINISTIC like `corrupt_session`: a retry
522
+ cannot change it (the SDK does not auto-retry this code) — switch to a new session or fork from an entry above the break.
520
523
  content:
521
524
  application/json:
522
525
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -1851,6 +1854,14 @@ paths:
1851
1854
  properties:
1852
1855
  error: { type: string }
1853
1856
  total: { type: integer, description: 'present on the out-of-range `?message=` 404 — the message count available.' }
1857
+ '500':
1858
+ description: >-
1859
+ server >= 7.137.0: `invalid_session` — the session's stored log reads but is structurally broken (a dangling parent, a self-parent, a cycle or a
1860
+ missing leaf); this read answers it instead of `internal.error`. DETERMINISTIC: a retry cannot change it (the SDK does not auto-retry this code) —
1861
+ switch to a new session or fork from an entry above the break. Also `internal.error` (unclassified).
1862
+ content:
1863
+ application/json:
1864
+ schema: { $ref: '#/components/schemas/ErrorResponse' }
1854
1865
  patch:
1855
1866
  tags: [sessions]
1856
1867
  operationId: sessionsPatch
@@ -1981,6 +1992,14 @@ paths:
1981
1992
  '400': { $ref: '#/components/responses/BadRequest' }
1982
1993
  '401': { $ref: '#/components/responses/Unauthorized' }
1983
1994
  '404': { $ref: '#/components/responses/NotFound' }
1995
+ '500':
1996
+ description: >-
1997
+ server >= 7.137.0: `invalid_session` — 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: an `invalid_session` error
1998
+ (the SQL session stores raise it while copying a structurally broken stored log) answers 500 `invalid_session` (it was `internal.error` before 7.137.0), `corrupt_session` answers 500 `corrupt_session` as before.
1999
+ DETERMINISTIC: a retry cannot change either (the SDK does not auto-retry these codes) — start a new session. Also `internal.error` (unclassified).
2000
+ content:
2001
+ application/json:
2002
+ schema: { $ref: '#/components/schemas/ErrorResponse' }
1984
2003
  '501': { $ref: '#/components/responses/NotImplemented' }
1985
2004
 
1986
2005
  /v1/sessions/{sessionId}/head:
@@ -2075,6 +2094,9 @@ paths:
2075
2094
  (declared 2026-07-31) errorCode "internal.error" — `routes/sessions.ts`'s catch around the owner
2076
2095
  lookup / subscribe setup, sent only when it fires BEFORE the SSE `200` headers went out
2077
2096
  (`!res.headersSent`); once streaming has started a failure just ends the connection instead.
2097
+ That catch maps a session error through the shared table first: a session error with a mapped code answers that code (`corrupt_session`; since server 7.137.0 the table also maps `invalid_session` for a structurally broken stored log —
2098
+ DETERMINISTIC: a retry cannot change it; the SDK does not auto-retry either code); any other failure stays `internal.error`. The mapping is there but this response does not occur on the stores the server ships:
2099
+ none of the three stores the server ships (local file, PostgreSQL, MySQL-protocol) raises `invalid_session` before the stream starts — their head read does not walk the log's parent chain — so only a store of your own can reach it.
2078
2100
  content:
2079
2101
  application/json:
2080
2102
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -2784,7 +2806,10 @@ paths:
2784
2806
  '404': { $ref: '#/components/responses/NotFound' }
2785
2807
  '500':
2786
2808
  description: >-
2787
- errorCode "internal.error" — `routes/sessions.ts`'s catch around `face.status(sessionId)`: core
2809
+ Two codes. server >= 7.137.0: `invalid_session` — the session's stored log reads but is structurally broken (a dangling parent, a self-parent,
2810
+ a cycle or a missing leaf); this read answers it instead of `internal.error`. DETERMINISTIC: a retry cannot change it (the SDK does not
2811
+ auto-retry this code) — switch to a new session or fork from an entry above the break.
2812
+ Otherwise errorCode "internal.error" — `routes/sessions.ts`'s catch around `face.status(sessionId)`: core
2788
2813
  promises the face never throws, so reaching this arm is an assembly defect; the server fails LOUD
2789
2814
  (500) rather than answering a plausible all-keys-absent body. The SDK maps it to
2790
2815
  `InternalServerError`. (codex R1 of the 7.3.1 batch: the arm exists in the shipped 7.53.0 route and
@@ -3899,6 +3924,8 @@ paths:
3899
3924
  `errorCode:"gate_not_plan_review"` — a non-`plan_review` gate. A plan decision must NEVER resolve a
3900
3925
  tool approval / resource_limit suspend (the checkpoint is never consumed). SEMANTIC (wrong-gate),
3901
3926
  NOT a session-CAS conflict. SDK → GateNotPlanReviewError.
3927
+ server >= 7.137.0: `errorCode:"approval_stale"` — the body carried `checkpointId` and it is not the session's pending plan gate; body `currentPending: { checkpointId }`
3928
+ ($ref ApprovalStalePlanGate; SDK `ApprovalStaleError.currentPlanGate`). A narrow window after the stale check answers `conflict.not_resumable` (the claim-loser code; the decision is not recorded either).
3902
3929
  content:
3903
3930
  application/json:
3904
3931
  schema: { $ref: '#/components/schemas/ErrorResponse' }
@@ -6876,7 +6903,7 @@ components:
6876
6903
  schema: { $ref: '#/components/schemas/Principal' }
6877
6904
  description: >
6878
6905
  Authenticated end-user identity (REQUIRED; principal-first, CORE-PRINCIPLES §3). Opaque to the service
6879
- (memory scope + session owner key; format NOT validated server-side). The SDK normalizes; anonymous must
6906
+ (memory scope + session owner key; its meaning is not interpreted, but the server refuses a value that is not a principal name: 400 `principal_not_a_name` (server >= 7.137.0 — empty / whitespace-only, control, line-separator or invisible format characters; a proxy that writes raw UTF-8 bytes into the header is read as latin1 and refused), 400 `principal_reserved` (a reserved sentinel) and 400 `principal_too_long` (over 190 characters)). The SDK normalizes; anonymous must
6880
6907
  be explicit (`anon:<id>`). On the multi-tenant doors this is set PER REQUEST.
6881
6908
  IdempotencyKey:
6882
6909
  in: header
@@ -7217,7 +7244,7 @@ components:
7217
7244
  whenToUse: { type: string, description: 'when the model should delegate to this agent (shown in the Task tool''s agent list). ≤4096 chars.' }
7218
7245
  whenToUseLean: { type: string, description: 'compact variant of `whenToUse` for lean tool listings. ≤4096 chars.' }
7219
7246
  allowTools: { type: array, items: { type: string }, description: 'allowlist of tool names. Omit ⇒ inherit ALL tools. server >= 7.126.0: the names are judged by the ENGINE, one selector shared with the root run''s `allowTools` / `excludeTools`; a name no tool answers to => the run is rejected with the terminal code `config.agent.unknown_tool` (not an HTTP code) on server 7.126.0–7.128.x, and RUNS AS WRITTEN on server >= 7.129.0 (the entry is kept, an operator row `runner_config_advisory` announces it once; `denyTools: ["bash"]` does not deny `Bash`).' }
7220
- denyTools: { type: array, items: { type: string }, description: 'denylist (SUBTRACTIVE — applied after `allowTools`). server >= 7.126.0: same engine-judged selector as `allowTools`; `Tool(content)` => the whole tool.' }
7247
+ denyTools: { type: array, items: { type: string }, description: 'denylist (SUBTRACTIVE — applied after `allowTools`). server >= 7.126.0: same engine-judged selector as `allowTools`; `Tool(content)` => the whole tool. server >= 7.137.0: a `*` inside a restrict-side name is a whole-name glob (`Bas*` withholds the tools whose names match). `denyTools: ["*"]` is accepted at intake, but this is the own list of the delegated sub-agent leg, which depends on the protocol tool `ReportBlocked`: the glob takes it away too, so every spawn of this sub-agent is refused before it starts with `config.tool_face_control` (reason `protocol_denied`; `Re*` reaches `ReportBlocked` as well). For a sub-agent with no tools write `allowTools: []` (a leg''s protocol tools need no mention).' }
7221
7248
  skills:
7222
7249
  type: array
7223
7250
  description: 'skills preloaded into the agent.'
@@ -7531,7 +7558,7 @@ components:
7531
7558
  THIS field is omitted the bundled mode (if any) still supplies one; only when neither carrier supplies
7532
7559
  a mode is there no mode-derived gate (the same posture as `bypassPermissions`). Sending this field is
7533
7560
  also NOT the same as leaving it unset — an explicit `default` actively installs the ask gate. A fresh
7534
- submit with an unknown string is rejected fail-loud with 400 (sibling of `promptProfile`); the old
7561
+ submit with an unknown string is rejected fail-loud with 400 (same fail-loud posture as `promptLean`); the old
7535
7562
  silent most-asking-mode fallback no longer applies to fresh submits — a lenient version of that
7536
7563
  fallback survives only internally, for RESUME replay of a pre-gate persisted
7537
7564
  body. Carrying the intent (not pre-interpreted core fields) = one interpretation across frontends +
@@ -7678,10 +7705,14 @@ components:
7678
7705
  properties:
7679
7706
  name: { type: string, minLength: 1, maxLength: 256 }
7680
7707
  turnReminder: { type: string, minLength: 1 }
7681
- promptProfile:
7682
- type: string
7683
- enum: [simple, classic]
7684
- description: Which prompt-assembly profile to use.
7708
+ promptLean:
7709
+ type: boolean
7710
+ description: >
7711
+ server >=7.137.0 (core 7.56.0 `TaskSpec.promptLean`) — the prompt's SHAPE: `true` = the lean short form, `false` = the long
7712
+ classic form, omitted = the model catalog entry's own declaration. Pure presentation axis (no policy change); inherits through the
7713
+ whole delegation tree. A boolean replaces the retired two-word profile key (the old `classic` is `false`, the old `simple` is
7714
+ "send no key"). A non-boolean value => 400 `request.field_invalid`; a server older than 7.137.0 answers 400 `request.body_shape`
7715
+ (`unknownKeys`) because its request-key closure does not know the key, and 7.137.0 refuses the retired key the same way.
7685
7716
  toolMaterializeStrategy:
7686
7717
  type: string
7687
7718
  enum: [static, swap]
@@ -7801,7 +7832,7 @@ components:
7801
7832
  server >= 7.117.0 (`allowLayer === true`, core 7.42.0): the WHOLE list goes to the engine's allow layer and a listed call is NOT ASKED — the engine's ordinary and
7802
7833
  "nobody stated it" questions are cleared, built-in write gates and shell checks included (like the reference implementation's `permissions.allow`); content forms
7803
7834
  (`Bash(git:*)`, `Read(//dir/**)`) are accepted; entries the engine reads as nothing (`*`, write-path forms such as `Edit(src/**)`, domain forms, names with whitespace) are NOT
7804
- refused — the run opens with an `engine_notice` `permission.allowed_tool_not_granted`. Any layer's deny / ask rule, operator `APPROVAL_REQUIRE` / `APPROVAL_NEVER_AUTO` /
7835
+ refused — the run opens with an `engine_notice` `permission.allowed_tool_not_granted` (server >= 7.137.0: a lone `*` still grants nothing and is still announced, but the other entries of the same list now apply — through 7.136.x one `*` voided the whole list). Any layer's deny / ask rule, operator `APPROVAL_REQUIRE` / `APPROVAL_NEVER_AUTO` /
7805
7836
  `MANUAL_MODE_SHELL_GATE=always`, write protection, governance, a hook's ask and plan-mode asks still ask (a matching `request` member then shows as `allowRuleShadowed` on the
7806
7837
  card). The submit gate judges only the shape (array of strings, at most 1000 entries => 400) and the NAMES (the same judge and the same sentence as `deny` / `ask`: a retired name,
7807
7838
  an unprefixed short name, or a protocol name whose server segment cannot be minted / is missing / is a wildcard (`mcp__*`) is a whole-request 422) — never the content.
@@ -7948,7 +7979,13 @@ components:
7948
7979
  Tool names to withhold from this task's roster. server >= 7.126.0 (engine 7.49.0, contract G.9e): read with the SAME grammar as `allowTools`; a name that
7949
7980
  NO tool answers to rejects the run before it starts with `config.tool_face_control` on server 7.126.0–7.128.x (sync leg 400, no token burned; streamed / background legs: a `failed` terminal with
7950
7981
  the same code); server >= 7.129.0 RUNS it as written (the entry is kept and takes effect if a tool of that name is mounted later; an operator row `runner_config_advisory` announces it once, with the spelling to write —
7951
- names are read verbatim, so `excludeTools: ["bash"]` does not withhold `Bash`). `"*"` is rejected on this list too (unmount-everything is only `excludeAllTools`).
7982
+ names are read verbatim, so `excludeTools: ["bash"]` does not withhold `Bash`). `"*"` is rejected on this list too (unmount-everything is only `excludeAllTools`) — that is the <= 7.136.x reading: server >= 7.137.0 reads a `*` inside a restrict-side name as a whole-name glob (engine session-rule grammar 5), so `excludeTools: ["*"]` is no longer refused for the `*` itself and withholds every tool, `Bas*` the tools whose names match.
7983
+ 🔴 Accepted does not mean always withheld — a protocol tool the run depends on is the exception: when this list takes it away the engine still refuses with `config.tool_face_control`
7984
+ (reason `protocol_denied`): a run with `outputSchema` depends on `StructuredOutput`, a delegated leg on `ReportBlocked`; it is refused when the leg's own list or a list it inherits (for example the `excludeTools` of the run that spawned it) reaches
7985
+ the protocol tool — the same judgement for both (a teammate leg's `SendMessage` and its siblings look at the leg's own list only). `*` reaches them too,
7986
+ so `excludeTools: ["*"]` together with `outputSchema` is refused, and only a run with no protocol leg (no `outputSchema`, and not a delegated / teammate / goal / observer leg the engine starts itself — their protocol tools are `ReportBlocked`, `SendMessage` and its siblings, `DeclareDone`, `ObserverReport`) is accepted and emptied. For "no tools, structured output" write `allowTools: []`
7987
+ (a leg's protocol tools need no mention), not `*`.
7988
+ Accepted has a consequence on the other side too: `excludeTools: ["Re*"]` on a run with no protocol leg is accepted and the run goes on, but every delegated sub-agent it spawns is refused before it starts (`Re*` reaches `ReportBlocked`; this list is the sub-agent's inherited list). A sub-agent definition's own `denyTools` is that leg's own list, judged the same way (see `agents[].denyTools`).
7952
7989
  allowTools:
7953
7990
  type: array
7954
7991
  items: { type: string }
@@ -7973,7 +8010,7 @@ components:
7973
8010
  and the stream carries zero `tool_start` / `tool_end` / `tool_disclosure` frames.
7974
8011
  🔴 DELIBERATELY NOT FOLDED INTO `excludeTools`: `"*"` is a LEGAL caller tool name, so "unmount
7975
8012
  everything" cannot be spelled `excludeTools:["*"]` without collapsing it with "unmount the one tool
7976
- called `*`". Both keys may ride together and each takes effect — no conflict, no 400.
8013
+ called `*`". Both keys may ride together and each takes effect — no conflict, no 400 (the one refusal is the protocol-tool case below). (Server >= 7.137.0: `excludeTools:["*"]` is no longer refused for the `*` itself and reads as the whole-name glob = every tool — except that only a run with no protocol leg (no `outputSchema`, and not a delegated / teammate / goal / observer leg the engine starts itself) is accepted and emptied; on any other run the glob also takes away the protocol tool the run depends on and the engine refuses with `config.tool_face_control` (reason `protocol_denied`), together with `excludeAllTools: true` as well — `excludeAllTools: true` alone is not refused; the two stay separate keys with separate read paths.)
7977
8014
  🔴 `true` IS THE ONLY VALUE THAT MEANS ANYTHING: the server writes only a literal `true` onto the
7978
8015
  engine's TaskSpec, because sending `false` merely restates a default the ENGINE owns (absent /
7979
8016
  `false` ⇒ roster unchanged). A non-boolean is a 400 `request.field_invalid` on the synchronous submit
@@ -8075,6 +8112,12 @@ components:
8075
8112
  agentListing: { type: boolean }
8076
8113
  skillsListing: { type: boolean }
8077
8114
  mcpInstructions: { type: boolean }
8115
+ mcpUnavailable:
8116
+ type: boolean
8117
+ description: >-
8118
+ server >= 7.137.0 (engine 7.56.0): the "an MCP server could not be attached this turn" attachment frame — DEFAULT ON; send `false` to turn it off.
8119
+ A non-boolean value => 400 `request.field_invalid` (`attachments.mcpUnavailable must be a boolean`). A server <= 7.136.x silently drops the key
8120
+ (the frame stays on), so sending it there is a harmless no-op — never sniff the version.
8078
8121
  limits:
8079
8122
  type: object
8080
8123
  description: >
@@ -8461,6 +8504,12 @@ components:
8461
8504
  cause (`terminal`), not the eight parallel plane keys — see `TerminalCause`.
8462
8505
  required: [taskId, sessionId, terminal, stats]
8463
8506
  properties:
8507
+ resultEntryIds:
8508
+ type: array
8509
+ items: { type: string }
8510
+ description: >-
8511
+ server >= 7.137.0 (engine 7.56.0 `TaskResult`; passed through verbatim on all four result faces): the session-entry ids (session order; the same batch as the `message_committed` frames) of the COMMITTED
8512
+ messages `result` was read from. EMPTY list = this run's `result` was read from no committed message; ABSENT = provenance unknown (records written by an earlier engine, results rebuilt from a parked row) — the two read differently.
8464
8513
  warnings:
8465
8514
  type: array
8466
8515
  items: { $ref: '#/components/schemas/EntryProblem' }
@@ -9743,10 +9792,28 @@ components:
9743
9792
  inherit_env.own_credentials_withheld:
9744
9793
  type: boolean
9745
9794
  description: >-
9746
- ENGINE CAPABILITY WORD (core `ENGINE_CAPABILITIES`, core 7.51.1; the key IS the word, dotted, value always `true` when present; sdk 23.0.0 `ENGINE_CAPABILITY_WORDS` derives the typed key from the engine's list):
9795
+ ENGINE CAPABILITY WORD (core `ENGINE_CAPABILITIES`, core 7.51.1; the key IS the word, dotted; the first two words are `true` when present (the second can be `false`, see below), the third (`mods.skill_seat`) is a FACT bit that is `false` here; sdk 23.0.0 `ENGINE_CAPABILITY_WORDS` derives the typed key from the engine's list):
9747
9796
  a child process spawned on this host NEVER inherits a name the deployment declared as its own credential — every `inheritEnv` policy (`"all"` and `"scrub"` alike) subtracts that list first, and an allow list naming one is
9748
9797
  refused. It speaks of INHERITANCE only (the engine process's own environment stays readable to same-user processes on the host; a credential that never enters it remains the root fix).
9749
9798
  ABSENT = an old server (<= 7.128.x) or a word this deployment does not wire: read it as "not promised", not as "absent capability". A shell gates on the word, never on a version number.
9799
+ mods.skill_seat:
9800
+ type: boolean
9801
+ description: >-
9802
+ ENGINE CAPABILITY WORD (core `ENGINE_CAPABILITIES`' third word, core 7.56.0; server >= 7.137.0 projects it; the key IS the word, dotted): does this service compile a skill's own
9803
+ hooks (the frontmatter `hooks:`) into skill-seat registrations (`SkillSpec.mods`)? 🔴 This service does NOT, so the bit is always `false` (present, not absent): a request skill
9804
+ (`skills[]` / `agents[].skills[]`) carrying `mods` is refused 400 `request.field_invalid` (registrations are code the deployment mounts, not request data). Do not project a skill
9805
+ frontmatter's hooks into the request until this reads `true`. ABSENT = a server <= 7.136.x (does not compile them either).
9806
+ modsDeploymentPackages: { type: boolean, enum: [true], description: 'server >= 7.138.0 - this process loaded operator-declared mod packages at boot (`MODS_ROOT` / `MODS_PACKAGES`, at least one): the literal `true`; otherwise the key is ABSENT (never `false`, so absence means none declared or an older server). Same fact as `/health` `mods.deploymentPackages`.' }
9807
+ planReviewCheckpointId:
9808
+ type: boolean
9809
+ description: >-
9810
+ server >= 7.137.0 (always true — a version fact, hangs on no facility): `POST /v1/assistant/tasks/{taskId}/plan_review` accepts the gate-identity key `checkpointId` (the gate you decided on
9811
+ changed => 409 `approval_stale`, nothing recorded). It answers "does this binary's gate accept the key", not "is plan_review usable on this deployment". Read the bit BEFORE sending the
9812
+ key: ABSENT = an older server (7.86.0-7.136.x answer the key with 400 `request.body_shape`; older ones drop it silently).
9813
+ credentialPlane:
9814
+ allOf: [{ $ref: '#/components/schemas/CredentialPlaneCapability' }]
9815
+ description: >-
9816
+ server >= 7.137.0 (config-dependent; the object is always present): the member git credential plane's one reading — see `CredentialPlaneCapability`. ABSENT = an older server: render "plane off, reason unknown".
9750
9817
  inherit_env.own_credential_values_withheld:
9751
9818
  type: boolean
9752
9819
  description: >-
@@ -10361,7 +10428,7 @@ components:
10361
10428
  server >= 7.135.0 (predicate class "always true", read per request from the engine's protocol table): the session-rule write faces (`PUT /v1/sessions/{id}/policy`, the `policy` face of `POST /v1/sessions/{id}/sync/import`)
10362
10429
  accept — in `toolAllow` / `toolDeny` — the three COVERING FORMS of every protocol namespace the engine knows (today `mcp__` and `a2a__`): the whole peer (`mcp__srv`), a tool-segment wildcard (`mcp__srv__*`)
10363
10430
  and a tool-segment glob (`mcp__srv__get_*`); the engine's matcher reads each as ONE GROUP of tools. A client may stop refusing those three forms losslessly on this bit alone (never on a version guess).
10364
- The bit says NOTHING about other wildcards: `*`, partial peer-segment wildcards (`mcp__git*`) and a trailing-separator `mcp__srv__` are still refused by the write face (`400 rules.inert_entry`); the whole-protocol
10431
+ The bit says NOTHING about other wildcards: `*`, partial peer-segment wildcards (`mcp__git*`) and a trailing-separator `mcp__srv__` are refused by the write face on the GRANT side (`toolAllow`: `400 rules.inert_entry`); on the RESTRICT side (`toolDeny`) server >= 7.137.0 reads a `*` inside a name as a whole-name glob and accepts `*`, `mcp__git*`, `Bas*`; the whole-protocol
10365
10432
  name `mcp__*` is accepted only in `toolDeny`. Orthogonal to `sessionPolicy` (does the deployment have a session-rules write face at all): read `sessionPolicy` AND this bit. ABSENT (older server) and `false` ⇒ read as "do not widen".
10366
10433
  projectMemory:
10367
10434
  type: boolean
@@ -10401,9 +10468,10 @@ components:
10401
10468
  additionalProperties: true
10402
10469
  properties:
10403
10470
  enabled: { type: boolean, enum: [true] }
10404
- protocolVersion: { type: integer, description: 'The protocol REVISION this server speaks (the `challenge` frame carries the same value; accepted window [1, 2] on server >= 7.133.0). Server >= 7.133.0 reads 2 (<= 7.132.x read 1). An executor declares the SMALLER of its own highest revision and this value, and takes its outcome-code set from the declared revision (revision 2 added `liveness_no_output`).' }
10471
+ protocolVersion: { type: integer, description: 'The protocol REVISION this server speaks (the `challenge` frame carries the same value; accepted window [1, 3] on server >= 7.137.0). Server >= 7.137.0 reads 3 (7.133.x-7.136.x read 2, <= 7.132.x read 1). An executor declares the SMALLER of its own highest revision and this value, and takes its outcome-code set from the declared revision (revision 2 added `liveness_no_output`; revision 3 added `name_too_long`, file instructions only).' }
10405
10472
  maxInflightPerDevice: { type: integer }
10406
10473
  wsPath: { type: string }
10474
+ relayUrl: { type: string, description: 'server >= 7.137.0. PRESENT-IFF the operator declared `DEVICE_RELAY_URL`: the device-facing direct entry — an absolute ws(s) URL (no userinfo / query / fragment), verbatim. A dialer dials it instead of building engine address + `wsPath`; absent = build it as before.' }
10407
10475
  management: { type: boolean, description: 'server >= 7.88.0. `/v1/devices/*` admin verbs present. PRESENT-IFF — absent means a pre-7.88.0 peer (unknown), not false.' }
10408
10476
  memoryEngine:
10409
10477
  description: >
@@ -10994,6 +11062,7 @@ components:
10994
11062
  server >= 7.116.0. The skill's run-scoped DENY-RULE source (same grammar / gates / probe as `allowedTools`): once the skill
10995
11063
  is activated these tools are refused for the run (no execution, no card; `tool_end.gate.disposition` is
10996
11064
  `{ kind: "denied", deniedBy: "policy" }`); write-path forms and command rules compile into deny rows too.
11065
+ 🔁 server >= 7.137.0: a `*` inside a restrict-side name is a whole-name glob (engine session-rule grammar 5) — `disallowedTools: ["*"]` is ACCEPTED (200) and refuses every tool; `mcp__*`, `mcp__git*`, `mcp__srv__get_*` and the domain form `WebFetch(domain:…)` are accepted too (checked entry by entry against the 7.137.0 admission door). The next paragraph's list (`*`, the domain form, a protocol name with a wildcard) is the <= 7.136.x reading; what 7.137.0 still refuses: an entry the engine reads as nothing — exactly four reason words: `near_miss` (differs from a mounted tool name only by case: `BASH`, `agent`), `tool_name` (a retired name or a short name without its protocol prefix: `bash`, `Task`, `figma__x`; a protocol name whose tool segment cannot be minted: `mcp__srv__`), `content_unsupported` (the tool takes no content form: `WebSearch(foo)`), `grammar` (surrounding whitespace, unbalanced parentheses, invisible characters, an empty string, a wildcard domain `WebFetch(domain:*)`).
10997
11066
  🔴 server >= 7.117.0: an entry the engine reads as nothing (`*`, a domain form `WebFetch(domain:…)`, a protocol name with a wildcard, a name with
10998
11067
  whitespace or malformed) is refused AT SUBMIT — 400 `request.field_invalid`, `error` = `skill.disallowedTools entry "<entry>" reads as nothing (<reason>): <how to write it>`
10999
11068
  (delegated level: prefix `agents[<i>]: skills[<j>]: `), top-level `skills[]` and `agents[].skills[]` alike — because an entry that looks like a refusal but refuses nothing is
@@ -11945,6 +12014,7 @@ components:
11945
12014
  provider: { type: string }
11946
12015
  reasoning: { type: boolean, description: 'a reasoning-tier model (picker can badge it). THREE states since server 7.131.0: `true` / `false` when the row declares it, ABSENT when undeclared (env lane without MODEL_REASONING; center entry without `reasoning`) — absent is not false.' }
11947
12016
  vision: { type: boolean, description: 'Whether this catalog row accepts image input — THREE states (server >= 7.117.0; before it a row that declared no `input` reported `false`): `true` = the row declares `input` and it contains "image"; `false` = declares `input` without it; ABSENT = the row declared no `input` (a hand-written catalog entry; the env lane and the config-center lane always declare it). ABSENT means UNKNOWN, not false: treat it as "send the image anyway and tell the user", do not read it as `false` and block the image locally — the server hands the image to the model for that same row at run time. Only an explicit `false` justifies "this model does not take images".' }
12017
+ supportsThinkingOff: { type: boolean, description: "Whether this model's reasoning can be turned off — the engine's one reading `thinkingOffSpelled` (derived from the row's API family, `compat`, `thinkingLevelMap.off` and `reasoning` declaration; the catalog carries no key for it). ALWAYS PRESENT on a server >= 7.138.0 (a plain boolean, not three-state); ABSENT = an older server (unknown, not `false`)." }
11948
12018
  contextWindow: { type: integer, description: 'E4 (SHIPPED) — context-window token DENOMINATOR for the %-used gauge; omitted when unknown.' }
11949
12019
  maxOutputTokens: { type: integer, description: 'E4 (SHIPPED) — single-call max output tokens; omitted when unknown.' }
11950
12020
  supportedEffortLevels:
@@ -13291,6 +13361,64 @@ components:
13291
13361
  boundCallId: { type: string, description: 'The current pending''s pendingAction.toolCallId — the D-1 anchor to echo back on the relocated decide.' }
13292
13362
  boundInputHash: { type: string, description: 'Server-minted; present only when the row has one. Echo verbatim, never recompute.' }
13293
13363
 
13364
+ CredentialPlaneCapability:
13365
+ type: object
13366
+ description: >-
13367
+ server >= 7.137.0 (config-dependent; the object is always present): the member git credential plane's one reading. Member `sandboxGit` is a discriminated union —
13368
+ `{ state: "on", origins: [{ origin, delivers: true } | { origin, delivers: false, reason: "insecure_transport" }] }` or `{ state: "off", reason }` where `reason` is the first unmet premise in a fixed order:
13369
+ `single_user` -> `lane_without_boundary` -> `no_caller_credential` -> `center_not_https` -> `secret_seat_unverified` -> `secret_seat_denied` -> `pod_patch_reaches_broker` -> `broker_image_unset` -> `no_origins`.
13370
+ 🔴 7.137.0 is always `off` (the caller-credential and the effective `sandboxGit` config are not wired yet). Only words and origins go on the wire (no image, namespace or credential).
13371
+ required: [sandboxGit]
13372
+ additionalProperties: true
13373
+ properties:
13374
+ sandboxGit:
13375
+ oneOf:
13376
+ - type: object
13377
+ required: [state, origins]
13378
+ properties:
13379
+ state: { type: string, enum: [on] }
13380
+ origins:
13381
+ type: array
13382
+ items:
13383
+ oneOf:
13384
+ - type: object
13385
+ required: [origin, delivers]
13386
+ properties:
13387
+ origin: { type: string }
13388
+ delivers: { type: boolean, enum: [true] }
13389
+ - type: object
13390
+ required: [origin, delivers, reason]
13391
+ properties:
13392
+ origin: { type: string }
13393
+ delivers: { type: boolean, enum: [false] }
13394
+ reason: { type: string, description: '`insecure_transport` (a non-https origin: still forwarded through the broker, never carries the credential). Open set on the read side.' }
13395
+ - type: object
13396
+ required: [state, reason]
13397
+ properties:
13398
+ state: { type: string, enum: [off] }
13399
+ reason: { type: string, description: 'Open set on the read side; today `single_user` / `lane_without_boundary` / `no_caller_credential` / `center_not_https` / `secret_seat_unverified` / `secret_seat_denied` / `pod_patch_reaches_broker` / `broker_image_unset` / `no_origins`.' }
13400
+
13401
+ WiringManifestSkill:
13402
+ type: object
13403
+ description: >-
13404
+ server >= 7.137.0 — one row of `wiring_manifest.skills[]`: `{ name, description, source }`, no body; the same row shape as the scenario card's skill list, with one more source word (`request`).
13405
+ required: [name, description, source]
13406
+ additionalProperties: false
13407
+ properties:
13408
+ name: { type: string }
13409
+ description: { type: string }
13410
+ source: { type: string, enum: [factory, center, request], description: '`factory` = the deployment''s own; `center` = from the deployment''s config source; `request` = this request body''s `skills` (a same-name scenario skill shadows it and is not listed).' }
13411
+
13412
+ ApprovalStalePlanGate:
13413
+ type: object
13414
+ description: >-
13415
+ server >= 7.137.0 — the `currentPending` key of the plan_review door's 409 `approval_stale`: the plan gate this session has pending NOW. Whole-or-absent (absent when the current gate has no trustworthy identity
13416
+ or was consumed concurrently). Never carries a token. The decide door's `currentPending` is the other shape (`ApprovalStaleCurrentPending`).
13417
+ required: [checkpointId]
13418
+ additionalProperties: false
13419
+ properties:
13420
+ checkpointId: { type: string, description: 'The identity of the current pending plan gate (the same value as the park result''s `terminal.checkpointId` and the queue / inbox row''s `checkpointId`).' }
13421
+
13294
13422
  ExemptionList:
13295
13423
  type: object
13296
13424
  description: Envelope for a session's approval exemptions (; key `exemptions`, NOT a bare array).
@@ -13379,6 +13507,8 @@ components:
13379
13507
  Always true on the resumed-leg 200; the parked receipt does not carry it.
13380
13508
  taskId: { type: string, description: 'Resumed leg: the active run id (OMITTED when no active row). Parked leg: the background-agent handle (`a*`), always present.' }
13381
13509
  sessionId: { type: string, description: 'Resumed leg only — absent from the parked-agent receipt.' }
13510
+ decisionCommitted: { type: boolean, enum: [true], description: 'server >= 7.138.0 - SETTLEMENT EVIDENCE: `true` = the gate this request named was durably settled with THIS request''s decision (historical evidence, not the card''s current state). Always the literal `true`, never `false`. Absent = unprovable or deliberately omitted => read as "not committed" (fail-closed); do not infer it from the absence of `errorCode`. It coexists with `errorCode: cancelled` / `retriable: true`; `retriable: true` only says the run re-parked.' }
13511
+ checkpointId: { type: string, description: 'server >= 7.138.0 - only alongside `decisionCommitted`: the gate identity of the row selected before execution (same name and value as the operator queue / inbox row / park ledger row). Absent when the identity is unreadable or not applicable (an idempotent replay carries none); absence infers nothing.' }
13382
13512
  status:
13383
13513
  type: string
13384
13514
  description: >
@@ -13933,6 +14063,8 @@ components:
13933
14063
  [2400] HITL-12: present (true) on the resume/plan_review 200 (same casting point as the decide leg);
13934
14064
  absent on the preempt 202.
13935
14065
  taskId: { type: string, description: 'always present (all three response bodies carry it).' }
14066
+ decisionCommitted: { type: boolean, enum: [true], description: 'server >= 7.138.0 - SETTLEMENT EVIDENCE: `true` = the gate this request named was durably settled with THIS request''s decision (historical evidence, not the card''s current state). Always the literal `true`, never `false`. Absent = unprovable or deliberately omitted => read as "not committed" (fail-closed); do not infer it from the absence of `errorCode`. It coexists with `errorCode: cancelled` / `retriable: true`; `retriable: true` only says the run re-parked.' }
14067
+ checkpointId: { type: string, description: 'server >= 7.138.0 - only alongside `decisionCommitted`: the gate identity of the row selected before execution (same name and value as the operator queue / inbox row / park ledger row). Absent when the identity is unreadable or not applicable (an idempotent replay carries none); absence infers nothing.' }
13936
14068
  status:
13937
14069
  type: string
13938
14070
  description: >
@@ -13964,6 +14096,17 @@ components:
13964
14096
  decision: { type: string, enum: [approve, edit, reject] }
13965
14097
  editedPlan: { type: string, description: 'the operator''s revised plan — required iff decision==="edit".' }
13966
14098
  reason: { type: string }
14099
+ checkpointId:
14100
+ type: string
14101
+ minLength: 1
14102
+ maxLength: 128
14103
+ description: >-
14104
+ server >= 7.137.0 (read `capabilities.planReviewCheckpointId` first) — the identity of the plan gate you decided on. If it is not the plan gate this session has pending NOW (another end answered, the run
14105
+ re-planned and parked on a NEW plan gate) => 409 `approval_stale` (the same code and sentence as `/decide`), nothing recorded (plan not approved, card still pending), body `currentPending: { checkpointId }`
14106
+ (the current gate; absent when it has no trustworthy identity or was consumed concurrently). Absent key => accepted as before (no stale protection). Value: non-empty string, at most 128 chars, else 400
14107
+ `request.field_invalid` (existence-independent). Sources: the park result's `terminal.checkpointId`, the queue / inbox row `checkpointId`, the `needs_review` ledger row `data.checkpointId` (same value).
14108
+ On a direct-door (D-G) deployment the key must be signed into the 6th (extension-object) position of the proof envelope; sent unsigned => 401 `approval_mac_invalid`.
14109
+ A server 7.86.0-7.136.x answers this key with 400 `request.body_shape` (`unknownKeys`). Do NOT blindly resend after a 409: re-fetch THAT gate's plan, show it to the human, then decide with the new identity.
13967
14110
  decidedBy:
13968
14111
  allOf: [{ $ref: '#/components/schemas/ApprovalDecidedBy' }]
13969
14112
  description: >
@@ -15022,7 +15165,9 @@ components:
15022
15165
  principal is dangling; only re-pointing the assignment, or adding the scenario back to the deployment, helps) and
15023
15166
  `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
15024
15167
  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`
15025
- (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).
15168
+ (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) and
15169
+ `invalid_session` (500, server >= 7.137.0 — a session whose stored log is structurally broken: a dangling parent, a self-parent, a cycle or a missing leaf; `GET /v1/sessions/{id}` and `…/memory-status` answer it instead of
15170
+ `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).
15026
15171
  Every other 5xx code keeps the status-based retry.
15027
15172
  🔴 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
15028
15173
  `/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
@@ -15120,6 +15265,17 @@ components:
15120
15265
  `index`); server >= 7.132.0 widens that group to every tool-name list on the body, the agent definitions and the two host-path lists, and adds
15121
15266
  `too_long` (a text over its character cap; beside `count` + `cap`) — closed words `over_cap` / `too_long` / `bad_entry` (SDK `RequestFieldRefusalExtra`); server >= 7.133.0 adds `too_large` (a payload over its BYTE cap, only on 413 `request.payload_too_large`: `{ field: "body", reason: "too_large", cap }` — `count` ABSENT when the read stopped at the cap and cannot measure; a request body over 8 MiB is now always that 413) and the `request.invalid_json` reasons `not_json` | `not_object` (400, every JSON-body door; formerly `request.rejected`/`request.body_shape` by door).
15122
15267
  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.)
15268
+ 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
15269
+ `unknown_word` / `not_a_string` / `lane_not_host` / `no_authorizer_session` (SDK `INHERIT_ENV_REFUSAL_REASONS`); sentence, code and status are unchanged.
15270
+ acceptableForm:
15271
+ description: >-
15272
+ 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`
15273
+ (redacted + byte-capped; over the cap => the key is absent). The card stays `pending` (retriable); a human who approves this form decides again with it as `updatedInput`. ABSENT = the engine gave no form (the edit itself was refused): re-decide as before.
15274
+ ruleRejectCode:
15275
+ type: string
15276
+ description: >-
15277
+ server >= 7.137.0 (engine 7.56.0), on 400 `request.body_shape` when a hand-edited rule text (`persistRule: { rule, edited: true }`) has leading / trailing whitespace or a space between the tool name and `(`: the engine's code, `invalid.grammar`.
15278
+ The refusal lands BEFORE any decision (the card is still pending, nothing stored); the `error` sentence names the form without the whitespace. Trim the text before submitting. Open set on the read side.
15123
15279
  retryAfterSec:
15124
15280
  type: number
15125
15281
  description: >-
@@ -15679,6 +15835,7 @@ components:
15679
15835
  type: { const: tool_start }
15680
15836
  toolCallId: { type: string }
15681
15837
  toolName: { type: string }
15838
+ requestedBy: { type: object, additionalProperties: false, required: [kind, name], properties: { kind: { type: string, enum: [extension] }, name: { type: string } }, description: 'server >= 7.138.0 (core 7.56.0 `ExtensionRequester`): this call was initiated by an extension registration through `$.tool.call` (appears only when the deployment seat mounted operator-declared packages); `name` = that registration (registrant text, UNTRUSTED-for-display). Absent = model-initiated.' }
15682
15839
  # 🔴 census 轴一(2026-07-30)回填:server 白名单 builder `toolStartEventData`(trace/project.ts)
15683
15840
  # 真发 `label`(core 展示名,与 tool_end 同待遇),spec 此前漏声明 —— 封闭前必须先补,否则真帧变假红。
15684
15841
  label: { type: string, description: 'core 展示名(缺席 ⇒ 用 toolName 渲染)。' }
@@ -16297,6 +16454,8 @@ components:
16297
16454
  type: { const: tool_end }
16298
16455
  toolCallId: { type: string }
16299
16456
  toolName: { type: string }
16457
+ requestedBy: { type: object, additionalProperties: false, required: [kind, name], properties: { kind: { type: string, enum: [extension] }, name: { type: string } }, description: 'server >= 7.138.0 (core 7.56.0 `ExtensionRequester`): this call was initiated by an extension registration through `$.tool.call` (appears only when the deployment seat mounted operator-declared packages); `name` = that registration (registrant text, UNTRUSTED-for-display). Absent = model-initiated.' }
16458
+ answeredBy: { type: string, description: 'server >= 7.138.0 (core 7.56.0): the registration that stood in for the tool body at the `tool.call` station with its own result or refusal (always beside `notExecuted: true`). Absent = no extension answered for the call.' }
16300
16459
  # 🔴 census 轴一(2026-07-30)回填:`toolEndEventData`(trace/project.ts)真发 `label` 与
16301
16460
  # `structured`,spec 此前两者都漏 —— SDK 的 events.ts 早已声明,漂移只在 spec 这一侧。
16302
16461
  label: { type: string, description: 'core 展示名(同 tool_start.label)。' }
@@ -16763,6 +16922,12 @@ components:
16763
16922
  description: >
16764
16923
  server >= 7.135.0 (engine 7.55.0; effective half only, both faces): did this leg call the deployment's project-context seat — `on` = it did; `disabled` = the seat is wired but the request's `projectMemory: "disabled"` turned it off;
16765
16924
  `absent` = the deployment wired no seat (whatever the request said). On `disabled` / `absent` legs the server-minted `instructions` section is ABSENT. Open on read (a new engine word passes through); ABSENT = an older engine.
16925
+ skills:
16926
+ type: array
16927
+ description: >-
16928
+ server >= 7.137.0 (server-minted section; present only on NON-subagent frames): the skills this run handed to the engine, same set and order. Zero skills (including `disableSkills: true`) = `[]`.
16929
+ It lists what was HANDED to the engine, not what the engine installed (a single skill over the engine's load gate is listed but not installed). A resume leg reports the roster of that resume's assembly.
16930
+ items: { $ref: '#/components/schemas/WiringManifestSkill' }
16766
16931
  ask:
16767
16932
  type: object
16768
16933
  additionalProperties: false
@@ -17331,8 +17496,9 @@ components:
17331
17496
  NOBODY having ruled on it: the approver consulted for the call answered `unavailable` and no durable park
17332
17497
  caught it afterwards. The deny itself is unchanged (`tool_end.gate.settlement.kind:"approver_unavailable"`
17333
17498
  — that sentence IS the tool result); this code is the half the person watching notices could not see.
17334
- `{sessionId, toolName, toolCallId, settlementKind, parkLaneExisted}`; `toolCallId` joins to the
17335
- `tool_approval` card frame, `settlementKind` is passed through verbatim (the vocabulary's owner is core).
17499
+ `{sessionId, toolName, toolCallId, cause, parkLaneExisted, remedy?, remedies?}`; `toolCallId` joins to the
17500
+ `tool_approval` card frame, `cause` (`approver_unavailable` / `no_approver_wired` / `mandate_unreconstructible`; the older name `settlementKind` was retired in server 7.74.0) is passed through verbatim (the vocabulary's owner is core).
17501
+ Server >= 7.137.0: `remedies` = the ways out as data (a non-empty list over `approver` / `permission_mode`), riding with the headless remedy sentence `remedy` — a binding's own refusal sentence carries `remedy` but no `remedies`.
17336
17502
  Deduplicated ONCE PER TOOL CALL. 🔴 `parkLaneExisted` is a DISCRIMINANT, not a count: `true` = a park lane
17337
17503
  was armed but declined/failed (check the store, check authorisation), `false` = there was no lane at all
17338
17504
  (wire one up). The two recovery verbs differ, so a consumer MUST render them apart — NEVER fold them into
@@ -17358,6 +17524,18 @@ components:
17358
17524
  `{ advisorModel, mainModel, reason, sessionId, runId? }` — the two model names are the catalog id / the reference the request wrote (display spelling); `reason` is an engine word (`unknown_model` / `advisor_unranked` /
17359
17525
  `weakest_tier` / `main_unranked` / `pairing` / `hold_unknown`; the server echoes it — read OPEN). Unreachable on this server today: it does not accept `advisorModel` (the request body does not take it, and the
17360
17526
  `advisor` section is not projected on either `wiring_manifest` face).
17527
+ `inherit_env.names_withheld` (server >= 7.137.0 / core 7.56.0; audience `user`; D.3 is now 44 codes) — which variables of the engine's environment the TOOL SHELL does not receive: the half that credential
17528
+ scrubbing withholds (a run whose inherit posture — `"all"` or a list naming them — could hand them down) and the half that is the deployment's own credentials (no posture hands those down).
17529
+ NAMES ONLY, never values; the model is not told. `{ state, names?, ownCredentials?, sessionId, runId? }`: `state` is `withheld` or `unknown` (engine words, the server echoes them — read OPEN; `unknown` = the
17530
+ execution environment cannot say, no names ride, it means "cannot tell"); `names` = the withheld variable names; `ownCredentials` (only when there are any) = those among them that are the deployment's own
17531
+ credentials. Each of the two arrays carries at most 32 items (the server's notice projector caps every `detail` array at 32 — reading 32 names does not mean only 32 were withheld). Once per session per name set (said again when the set grows). The operator-side fact is `config.secret_env_scrubbed` (audience `operator` — ops log only, not on this stream).
17532
+ `model.capability_downgraded` (server >= 7.137.0 / core 7.56.0; audience `user`) — a capability the request used was held back from the model. Today only images: the catalog entry DECLARES its input kinds without `image`
17533
+ (`Model.input` present, no `image` in it), so every image reaches the model as a placeholder sentence (`[image omitted: the serving model does not support image input]`; how several images are folded depends on the provider and on where they sit — one `[N images omitted: …]` line, one line per image, or a single base line for all of them)
17534
+ and the notice's `message` names the model and the way out (declare `input: ["text","image"]` if it reads images, otherwise switch to a model that does). An entry with no `input` declaration is read as able to take images:
17535
+ the images go out unchanged and this notice is NOT sent. `{ model, capability, status,
17536
+ sessionId, runId }`: `capability` is `image` today; `status` is `declared_off` or `unknown` (engine words, the server echoes them — read OPEN; for images 7.56.0 only emits `declared_off`). Once per session per (model, capability). It replaces the server's
17537
+ 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);
17538
+ a reasoning knob the model declares off is not reported here (that is `effectiveReasoning.dropped`).
17361
17539
  Value change: `permission.rule_row_dropped`'s `detail.rows[].rule` is, since core 7.53.0, the rule's original text (the same reading as
17362
17540
  `allowed_tool_not_granted`'s `entries[].entry`: at most 1 024 code points, longer cut to 1 024 + a truncation mark, CONTROL CHARACTERS RIDE AS DATA —
17363
17541
  neutralize at render); before it was the engine-neutralized single-line form (at most 201 code points). Same keys.
@@ -17562,6 +17740,9 @@ components:
17562
17740
  description: >
17563
17741
  The tool call the run is parked on (a tool-approval gate; ABSENT for a tool-less park / when it could not be read — never `null`). Same value as the `tool_approval` card's `toolCallId`. The server's park ledger row has
17564
17742
  always carried it (sdk 23.0.0 declares it; this arm is closed, so a strict validator rejected a real replay row before).
17743
+ checkpointId:
17744
+ type: string
17745
+ description: 'server >= 7.137.0, PRESENT-IFF: the stable non-secret identity of this park — the same value as the run row''s `result.terminal.checkpointId` and the queue / inbox row''s `checkpointId` (absent when it did not cross the identity trust boundary). Feed it to `plan_review` `checkpointId` for a plan gate.'
17565
17746
  ModelUsageDelta:
17566
17747
  # 新增(2026-07-25 回填批)。SDK 的 facade 审计把这个形状命名了一次(此前是在两个使用点各写一遍的匿名内联形:
17567
17748
  # `AgentEvent` 的 `model_usage` 臂 与 `done.result.stats.modelUsage` 的值类型,同源同形)。
@@ -19911,6 +20092,9 @@ components:
19911
20092
  toolCallId:
19912
20093
  type: string
19913
20094
  description: 'Same as `suspended.toolCallId` (ABSENT when the park has no tool call; never `null`).'
20095
+ checkpointId:
20096
+ type: string
20097
+ description: 'Same as `suspended.checkpointId` (server >= 7.137.0, PRESENT-IFF): the plan gate''s identity — send it as `plan_review` `checkpointId`.'
19914
20098
  Event_message_committed:
19915
20099
  type: object
19916
20100
  description: >
@@ -20291,6 +20475,8 @@ components:
20291
20475
  taskId: { type: string, description: 'The background agent handle (a* domain).' }
20292
20476
  status: { type: string, enum: [resuming] }
20293
20477
  decision: { type: string, enum: [approve, deny] }
20478
+ decisionCommitted: { type: boolean, enum: [true], description: 'server >= 7.138.0 - SETTLEMENT EVIDENCE: `true` = the gate this request named was durably settled with THIS request''s decision (historical evidence, not the card''s current state). Always the literal `true`, never `false`. Absent = unprovable or deliberately omitted => read as "not committed" (fail-closed); do not infer it from the absence of `errorCode`. It coexists with `errorCode: cancelled` / `retriable: true`; `retriable: true` only says the run re-parked.' }
20479
+ checkpointId: { type: string, description: 'server >= 7.138.0 - only alongside `decisionCommitted`: the gate identity of the row selected before execution (same name and value as the operator queue / inbox row / park ledger row). Absent when the identity is unreadable or not applicable (an idempotent replay carries none); absence infers nothing.' }
20294
20480
  - type: object
20295
20481
  required: [taskId, status, decision]
20296
20482
  additionalProperties: true
@@ -20298,6 +20484,8 @@ components:
20298
20484
  taskId: { type: string, description: 'The background agent handle (a* domain).' }
20299
20485
  status: { type: string, enum: [failed] }
20300
20486
  decision: { type: string, enum: [deny] }
20487
+ decisionCommitted: { type: boolean, enum: [true], description: 'server >= 7.138.0 - SETTLEMENT EVIDENCE: `true` = the gate this request named was durably settled with THIS request''s decision (historical evidence, not the card''s current state). Always the literal `true`, never `false`. Absent = unprovable or deliberately omitted => read as "not committed" (fail-closed); do not infer it from the absence of `errorCode`. It coexists with `errorCode: cancelled` / `retriable: true`; `retriable: true` only says the run re-parked.' }
20488
+ checkpointId: { type: string, description: 'server >= 7.138.0 - only alongside `decisionCommitted`: the gate identity of the row selected before execution (same name and value as the operator queue / inbox row / park ledger row). Absent when the identity is unreadable or not applicable (an idempotent replay carries none); absence infers nothing.' }
20301
20489
 
20302
20490
  FleetMeta:
20303
20491
  type: object
@@ -20844,6 +21032,12 @@ components:
20844
21032
  type: string
20845
21033
  description: >
20846
21034
  server >= 7.135.0 (engine 7.55.0; effective half only): did the leg call the deployment's project-context seat — `on` / `disabled` (the request's `projectMemory: "disabled"`) / `absent` (no seat wired). Open on read; ABSENT = an older engine, or this half.
21035
+ skills:
21036
+ type: array
21037
+ description: >-
21038
+ server >= 7.137.0 (server-minted section; present only on NON-subagent frames): the skills this run handed to the engine, same set and order. Zero skills (including `disableSkills: true`) = `[]`.
21039
+ It lists what was HANDED to the engine, not what the engine installed (a single skill over the engine's load gate is listed but not installed). A resume leg reports the roster of that resume's assembly.
21040
+ items: { $ref: '#/components/schemas/WiringManifestSkill' }
20847
21041
  ask:
20848
21042
  type: object
20849
21043
  description: 'Approval seam: wired form, which seat it came from, and (effective half) what it adjudicates to.'
@@ -21111,6 +21305,7 @@ components:
21111
21305
  name: { type: string, description: 'the registration name (registrant text, through the server''s wire-text exit; UNTRUSTED-for-display).' }
21112
21306
  seat: { type: string, description: 'which seat it came from — core `MOD_SEATS` (`deployment` / `task`). Engine word, passed through verbatim; read open.' }
21113
21307
  tier: { type: string, description: 'its tier — core `MOD_TIERS` (`prepend` / `user` / `append` / `builtin` / `core`). Engine word, passed through verbatim; read open.' }
21308
+ provenance: { type: string, description: "server >= 7.138.0 - where the registration came from: `server` (minted by this service; every deployment has at least the permission-denial meter row) or `operator` (installed from `MODS_PACKAGES`). Does not share words with `seat`. Engine/service words, read open; absent = an older server." }
21114
21309
  events: { type: array, items: { type: string }, description: 'the event patterns it actually hung (engine words, verbatim).' }
21115
21310
  observe: { type: array, items: { type: string }, description: 'the patterns it hung observe-only (engine words, verbatim); absent = none.' }
21116
21311
  skipped:
@@ -21136,6 +21331,7 @@ components:
21136
21331
  name: { type: string, description: 'the refused registration (registrant text).' }
21137
21332
  seat: { type: string, description: 'core `MOD_SEATS` word, verbatim; read open.' }
21138
21333
  tier: { type: string, description: 'core `MOD_TIERS` word, verbatim; read open.' }
21334
+ provenance: { type: string, description: "server >= 7.138.0 - where the registration came from: `server` (minted by this service; every deployment has at least the permission-denial meter row) or `operator` (installed from `MODS_PACKAGES`). Does not share words with `seat`. Engine/service words, read open; absent = an older server." }
21139
21335
  refusedBy: { type: string, description: 'the registration whose judge refused it (registrant text).' }
21140
21336
  reason: { type: string, description: 'the refusing judge''s own words (registrant text, UNTRUSTED-for-display).' }
21141
21337
  WiringManifestLspSeam:
@@ -22028,6 +22224,8 @@ components:
22028
22224
  required: [approvalId, askId, accepted]
22029
22225
  additionalProperties: false
22030
22226
  properties:
22227
+ decisionCommitted: { type: boolean, enum: [true], description: 'server >= 7.138.0 - settlement evidence carried over from the redeemed decide receipt (present on the late-redeemed card and on a same-direction retry; a reverse-direction retry replay omits it). Absent = read as "not committed".' }
22228
+ checkpointId: { type: string, description: 'server >= 7.138.0 - only alongside `decisionCommitted`: the gate identity of the redeemed row; absent when unreadable.' }
22031
22229
  approvalId: { type: string }
22032
22230
  askId: { type: string }
22033
22231
  accepted: { type: string, enum: [parked_redeemed] }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/sdk",
3
- "version": "27.0.0",
3
+ "version": "28.1.0",
4
4
  "description": "Typed, zero-runtime-dependency SDK for the Sema agent fleet usage plane. The shared substrate for all doors (CC/Codex MCP façade + web). Server-side only — tokens never enter the browser.",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",