@sema-agent/sdk 38.1.0 → 40.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/openapi.yaml CHANGED
@@ -10668,6 +10668,15 @@ components:
10668
10668
  description: >-
10669
10669
  server >= 7.147.0 (config-dependent): the project registry read face (`GET /v1/projects[?archived]` · `GET /v1/projects/{id}`) resolves. true iff a registry exists — it is published only by the configuration center
10670
10670
  (a center configured and not dry-run); false => both doors answer 501 `capability.unavailable`. Read-only: the bit does not cover write verbs (none exist; a write face gets its own bit). ABSENT = an older server (both doors 404).
10671
+ projectInheritance:
10672
+ type: boolean
10673
+ description: >-
10674
+ server >= 7.150.0 (config-dependent; a predicate-class bit): a submitted run that carries `projectId` (or whose session row declared a project earlier) INHERITS the project brief (`goal` / `notes` / `note` items folded into the system prompt's
10675
+ append fold, after `appendSystemPrompt` and before `settings.outputStyle`, one 16384-character cap) from this deployment's project registry. The working directory (the first `folder` item fills an absent request `cwd`) and the `folder` / `file`
10676
+ item names are inherited ONLY where `projectContext` is true (single-owner host deployments): `projectInheritance: true` does not promise an inherited `cwd`. Read the bit; do not infer it
10677
+ from `projects` (today both read the one "a registry exists" fact, which is not a promise they stay one). True is NOT "every project is inherited": only a registration that carries the center's content attestation (`ProjectRow.contentAttestedAt`)
10678
+ is inherited. A client that already folds project content into `appendSystemPrompt` stops folding on `true` (else the brief repeats); an append segment near the cap plus the brief answers 400 `request.field_conflict` (`reason: "system_prompt_fold"`,
10679
+ `fields` includes `projectId`). ABSENT = server <= 7.149.x (no inheritance).
10671
10680
  sessionRewindFiles:
10672
10681
  type: boolean
10673
10682
  description: >-
@@ -11370,7 +11379,7 @@ components:
11370
11379
  additionalProperties: true
11371
11380
  properties:
11372
11381
  enabled: { type: boolean, enum: [true] }
11373
- 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).' }
11382
+ protocolVersion: { type: integer, description: 'The protocol REVISION this server speaks (the `challenge` frame carries the same value). Server >= 7.151.0 reads 6 (7.150.x read 5, 7.143.x-7.149.x read 4, 7.137.x-7.142.x read 3, 7.133.x-7.136.x read 2, <= 7.132.x read 1). The accepted window is [lowest accepted revision, this value]: <= 7.149.x accept [1, this value]; server >= 7.150.0 accepts only revisions >= 5 (every path an instruction carries arrives anchored but unfolded, and an executor written for revision <= 4 expects folded paths) — 7.150.x accepts [5, 5], server >= 7.151.0 accepts [5, 6] (revision 6 does not raise the floor: the instruction kind it adds, `openBound`, is sent only to a connection that declared revision >= 6 and listed `openBound` in `hello.supports`) — so a hello declaring <= 4 is answered with `helloReject` / `protocol_version_unsupported` carrying `minProtocolVersion: 5` and a human `message`. An executor declares the SMALLER of its own highest revision and this value, takes its outcome-code set from the declared revision (revision 2 added `liveness_no_output`; revision 3 added `name_too_long`; revision 4 added `symlink_loop` — file instructions only; revisions 5 and 6 added no word) and its instruction-kind set likewise (revision 6 added `openBound`).' }
11374
11383
  maxInflightPerDevice: { type: integer }
11375
11384
  wsPath: { type: string }
11376
11385
  relayUrl: { type: string, description: 'server >= 7.137.0. PRESENT-IFF the operator declared `DEVICE_RELAY_URL` as a ws(s) 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. server >= 7.141.0 requires the env on the device lane (a ws(s) URL, or the literal `none` = no relay => this key absent); on <= 7.140.x absence may also mean the operator wrote nothing.' }
@@ -13272,6 +13281,7 @@ components:
13272
13281
  registeredBy: { type: string }
13273
13282
  registeredAt: { type: string, format: date-time }
13274
13283
  archivedAt: { type: string, format: date-time }
13284
+ contentAttestedAt: { type: string, format: date-time, description: "server >= 7.150.0, PRESENT-IFF the registration carries the configuration center's content attestation (settings-schema 25.1.0): the time the center's write path last admitted the project's goal / notes / contextItems under the publisher role. Present = the project is eligible for context inheritance (`capabilities.projectInheritance`); absent = the content did not pass the publisher write path (written before the upgrade / an older server) — the row is still listed and readable. A proof of admission, not a freshness claim." }
13275
13285
 
13276
13286
  ProjectsPage:
13277
13287
  type: object
@@ -14841,7 +14851,7 @@ components:
14841
14851
  type: boolean
14842
14852
  enum: [true]
14843
14853
  description: >-
14844
- server >= 7.116.0, ADDITIVE, present ONLY when true (never `false`): the "remember for this session" answer (live `allow_session` / durable `/decide` `remember:"session"`) will NOT be remembered on this card — the decision is accepted and applies once, the receipt's `rememberApplied` is `false` (existing key, not a new one), later cards of the same kind still ask. A shell reads this to decide whether to render the "allow for the session" choice instead of inferring it from `requiresRealApproval` / `mandated` / `governanceForced`. One bit for four reasons: the operator-governance gate / a human must approve each time / a mandated card / the answer would also grant more than this one call (new in 7.116.0: approving an engine `Skill` card activates the skill and frees its listed tools for the run, which the card cannot show, so it is not remembered). ABSENT = remember works on this card, OR an older server (<= 7.115.x never carries the key). Same bit on the live frame, the `approval_request` card (= `card_json`, incl. the reconnect replay), the `livePending` row, and the `/v1/approvals` `pending[]` row (+ their `/stream` frames); NOT on inbox rows.
14854
+ server >= 7.116.0, ADDITIVE, present ONLY when true (never `false`): the "remember for this session" answer (live `allow_session` / durable `/decide` `remember:"session"`) will NOT be remembered on this card — the decision is accepted and applies once, the receipt's `rememberApplied` is `false` (existing key, not a new one), later cards of the same kind still ask. A shell reads this to decide whether to render the "allow for the session" choice instead of inferring it from `requiresRealApproval` / `mandated` / `governanceForced`. One bit for four reasons: the operator-governance gate / a human must approve each time / a mandated card / the answer would also grant more than this one call (new in 7.116.0: approving an engine `Skill` card activates the skill and frees its listed tools for the run, which the card cannot show, so it is not remembered). server >= 7.150.0 reads this bit as "this question + this leg" (the card and the `allow_session` receipt read one judge): a leg with no session, or one whose session-occupant token cannot be read (the session store carries no execution seat — the engine's default in-memory store), carries it too; the card carries it IFF a click on `allow_session` receipts `rememberApplied: false` (a write failure or an ambiguous commit is known only after the decision settles and is still reported on the receipt alone). ABSENT = remember works on this card, OR an older server (<= 7.115.x never carries the key) — and on <= 7.149.x ABSENT is also what those two leg shapes showed while `allow_session` still receipted `false`, so "absent = remembered" does not hold there for them. Same bit on the live frame, the `approval_request` card (= `card_json`, incl. the reconnect replay), the `livePending` row, and the `/v1/approvals` `pending[]` row (+ their `/stream` frames); NOT on inbox rows.
14845
14855
  governanceForced: { type: boolean, enum: [true] }
14846
14856
  mandated: { type: boolean, enum: [true], description: 'server >= 7.101.0 (T4①): the mandated bit, same layer and shape as the two flags above (present only when true); the SAME value as `frame.mandated` (read once when the entry is minted).' }
14847
14857
  mandate:
@@ -15299,7 +15309,7 @@ components:
15299
15309
  type: boolean
15300
15310
  enum: [true]
15301
15311
  description: >-
15302
- server >= 7.116.0, ADDITIVE, present ONLY when true (never `false`): the "remember for this session" answer (live `allow_session` / durable `/decide` `remember:"session"`) will NOT be remembered on this card — the decision is accepted and applies once, the receipt's `rememberApplied` is `false` (existing key, not a new one), later cards of the same kind still ask. A shell reads this to decide whether to render the "allow for the session" choice instead of inferring it from `requiresRealApproval` / `mandated` / `governanceForced`. One bit for four reasons: the operator-governance gate / a human must approve each time / a mandated card / the answer would also grant more than this one call (new in 7.116.0: approving an engine `Skill` card activates the skill and frees its listed tools for the run, which the card cannot show, so it is not remembered). ABSENT = remember works on this card, OR an older server (<= 7.115.x never carries the key). Same bit on the live frame, the `approval_request` card (= `card_json`, incl. the reconnect replay), the `livePending` row, and the `/v1/approvals` `pending[]` row (+ their `/stream` frames); NOT on inbox rows.
15312
+ server >= 7.116.0, ADDITIVE, present ONLY when true (never `false`): the "remember for this session" answer (live `allow_session` / durable `/decide` `remember:"session"`) will NOT be remembered on this card — the decision is accepted and applies once, the receipt's `rememberApplied` is `false` (existing key, not a new one), later cards of the same kind still ask. A shell reads this to decide whether to render the "allow for the session" choice instead of inferring it from `requiresRealApproval` / `mandated` / `governanceForced`. One bit for four reasons: the operator-governance gate / a human must approve each time / a mandated card / the answer would also grant more than this one call (new in 7.116.0: approving an engine `Skill` card activates the skill and frees its listed tools for the run, which the card cannot show, so it is not remembered). server >= 7.150.0 reads this bit as "this question + this leg" (the card and the `allow_session` receipt read one judge): a leg with no session, or one whose session-occupant token cannot be read (the session store carries no execution seat — the engine's default in-memory store), carries it too; the card carries it IFF a click on `allow_session` receipts `rememberApplied: false` (a write failure or an ambiguous commit is known only after the decision settles and is still reported on the receipt alone). ABSENT = remember works on this card, OR an older server (<= 7.115.x never carries the key) — and on <= 7.149.x ABSENT is also what those two leg shapes showed while `allow_session` still receipted `false`, so "absent = remembered" does not hold there for them. Same bit on the live frame, the `approval_request` card (= `card_json`, incl. the reconnect replay), the `livePending` row, and the `/v1/approvals` `pending[]` row (+ their `/stream` frames); NOT on inbox rows.
15303
15313
  governanceForced:
15304
15314
  type: boolean
15305
15315
  enum: [true]
@@ -19336,10 +19346,11 @@ components:
19336
19346
  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,
19337
19347
  at most 8 per transcript; the model can still call the tool); once per refusal). All three audience `user`.
19338
19348
  `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
19339
- 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
19349
+ 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
19340
19350
  `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
19341
19351
  has none, so it is always absent and the sentence points at connector settings); `principal` is the run's principal when it has one. Once per leg per server (a resume is a new leg and may announce again). The same fact on the status faces is
19342
- `errorCode: "unauthorized"` + `authorization`. NOT on the user whitelist, though core 7.59.0's register holds them: `model.role_defaulted` (a role seat names a model word the catalog does not hold, so the role reads as unset and the run goes on)
19352
+ `errorCode: "unauthorized"` + `authorization`. server >= 7.150.0: `reason` / `authorizeUrl` are members of the MCP authorization record and leave through the same disposition table as the status faces (structural slots: they do not pass the
19353
+ detail's free-text redaction and truncation); a `reason` word outside the closed set drops the pair as a whole, so `reason` is PRESENT IFF its word is in the closed set (read `reason` as optional; servers before 7.150.0 always carry it), and `authorizeUrl` is not let through today (always absent). `server` / `principal` / `sessionId` / `runId` stay as they were. NOT on the user whitelist, though core 7.59.0's register holds them: `model.role_defaulted` (a role seat names a model word the catalog does not hold, so the role reads as unset and the run goes on)
19343
19354
  and `route.credential_rebound` (the HOST moved a per-model credential's binding, outside any run) are audience `operator` — they never reach this stream.
19344
19355
  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
19345
19356
  `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 —
@@ -19983,7 +19994,7 @@ components:
19983
19994
  type: boolean
19984
19995
  enum: [true]
19985
19996
  description: >-
19986
- server >= 7.116.0, ADDITIVE, present ONLY when true (never `false`): the "remember for this session" answer (live `allow_session` / durable `/decide` `remember:"session"`) will NOT be remembered on this card — the decision is accepted and applies once, the receipt's `rememberApplied` is `false` (existing key, not a new one), later cards of the same kind still ask. A shell reads this to decide whether to render the "allow for the session" choice instead of inferring it from `requiresRealApproval` / `mandated` / `governanceForced`. One bit for four reasons: the operator-governance gate / a human must approve each time / a mandated card / the answer would also grant more than this one call (new in 7.116.0: approving an engine `Skill` card activates the skill and frees its listed tools for the run, which the card cannot show, so it is not remembered). ABSENT = remember works on this card, OR an older server (<= 7.115.x never carries the key). Same bit on the live frame, the `approval_request` card (= `card_json`, incl. the reconnect replay), the `livePending` row, and the `/v1/approvals` `pending[]` row (+ their `/stream` frames); NOT on inbox rows.
19997
+ server >= 7.116.0, ADDITIVE, present ONLY when true (never `false`): the "remember for this session" answer (live `allow_session` / durable `/decide` `remember:"session"`) will NOT be remembered on this card — the decision is accepted and applies once, the receipt's `rememberApplied` is `false` (existing key, not a new one), later cards of the same kind still ask. A shell reads this to decide whether to render the "allow for the session" choice instead of inferring it from `requiresRealApproval` / `mandated` / `governanceForced`. One bit for four reasons: the operator-governance gate / a human must approve each time / a mandated card / the answer would also grant more than this one call (new in 7.116.0: approving an engine `Skill` card activates the skill and frees its listed tools for the run, which the card cannot show, so it is not remembered). server >= 7.150.0 reads this bit as "this question + this leg" (the card and the `allow_session` receipt read one judge): a leg with no session, or one whose session-occupant token cannot be read (the session store carries no execution seat — the engine's default in-memory store), carries it too; the card carries it IFF a click on `allow_session` receipts `rememberApplied: false` (a write failure or an ambiguous commit is known only after the decision settles and is still reported on the receipt alone). ABSENT = remember works on this card, OR an older server (<= 7.115.x never carries the key) — and on <= 7.149.x ABSENT is also what those two leg shapes showed while `allow_session` still receipted `false`, so "absent = remembered" does not hold there for them. Same bit on the live frame, the `approval_request` card (= `card_json`, incl. the reconnect replay), the `livePending` row, and the `/v1/approvals` `pending[]` row (+ their `/stream` frames); NOT on inbox rows.
19987
19998
  governanceForced:
19988
19999
  type: boolean
19989
20000
  enum: [true]
@@ -20501,7 +20512,7 @@ components:
20501
20512
  type: boolean
20502
20513
  enum: [true]
20503
20514
  description: >-
20504
- server >= 7.116.0, ADDITIVE, present ONLY when true (never `false`): the "remember for this session" answer (live `allow_session` / durable `/decide` `remember:"session"`) will NOT be remembered on this card — the decision is accepted and applies once, the receipt's `rememberApplied` is `false` (existing key, not a new one), later cards of the same kind still ask. A shell reads this to decide whether to render the "allow for the session" choice instead of inferring it from `requiresRealApproval` / `mandated` / `governanceForced`. One bit for four reasons: the operator-governance gate / a human must approve each time / a mandated card / the answer would also grant more than this one call (new in 7.116.0: approving an engine `Skill` card activates the skill and frees its listed tools for the run, which the card cannot show, so it is not remembered). ABSENT = remember works on this card, OR an older server (<= 7.115.x never carries the key). Same bit on the live frame, the `approval_request` card (= `card_json`, incl. the reconnect replay), the `livePending` row, and the `/v1/approvals` `pending[]` row (+ their `/stream` frames); NOT on inbox rows.
20515
+ server >= 7.116.0, ADDITIVE, present ONLY when true (never `false`): the "remember for this session" answer (live `allow_session` / durable `/decide` `remember:"session"`) will NOT be remembered on this card — the decision is accepted and applies once, the receipt's `rememberApplied` is `false` (existing key, not a new one), later cards of the same kind still ask. A shell reads this to decide whether to render the "allow for the session" choice instead of inferring it from `requiresRealApproval` / `mandated` / `governanceForced`. One bit for four reasons: the operator-governance gate / a human must approve each time / a mandated card / the answer would also grant more than this one call (new in 7.116.0: approving an engine `Skill` card activates the skill and frees its listed tools for the run, which the card cannot show, so it is not remembered). server >= 7.150.0 reads this bit as "this question + this leg" (the card and the `allow_session` receipt read one judge): a leg with no session, or one whose session-occupant token cannot be read (the session store carries no execution seat — the engine's default in-memory store), carries it too; the card carries it IFF a click on `allow_session` receipts `rememberApplied: false` (a write failure or an ambiguous commit is known only after the decision settles and is still reported on the receipt alone). ABSENT = remember works on this card, OR an older server (<= 7.115.x never carries the key) — and on <= 7.149.x ABSENT is also what those two leg shapes showed while `allow_session` still receipted `false`, so "absent = remembered" does not hold there for them. Same bit on the live frame, the `approval_request` card (= `card_json`, incl. the reconnect replay), the `livePending` row, and the `/v1/approvals` `pending[]` row (+ their `/stream` frames); NOT on inbox rows.
20505
20516
  governanceForced:
20506
20517
  type: boolean
20507
20518
  enum: [true]
@@ -21646,9 +21657,15 @@ components:
21646
21657
  through GET /v1/runs/:id/events — and there it IS registered, as the closed `Event_question` /
21647
21658
  `Event_question_complete` arms (keep the key sets mirrored; a gate enforces it).
21648
21659
  Respond via POST /v1/questions/{questionId}/respond. 🔴 An UNANSWERED ask does NOT "fall back to the headless
21649
- default" (server 7.4.0 / #166): the deployment reports `unavailable` ("nobody was reachable") and CORE
21650
- picks the landing — a DURABLE leg PARKS a checkpoint for an operator to answer later, a non-durable leg
21651
- continues on the `declined_unavailable` synthetic-continuation card. The run never hangs either way.
21660
+ default". server >= 7.150.0: the landing reads ONE fact — did this delivery put the card up on this leg's LIVE face (the
21661
+ direct SSE write)? Shown, window spent, nobody answered ⇒ one FAILED question (no park, no second decider; coded
21662
+ `question.human_channel_failed` on an interactive stream, else the continue-on-your-judgment card with `reason: callback_failed`).
21663
+ Not shown (background / resumed leg whose card reached only the run ledger, a detach stream that dropped before the card,
21664
+ an unwritable open frame, the concurrency / total cap, an over-cap payload, a leg with no question context) ⇒ no answer
21665
+ obtained: a DURABLE deployment PARKS a checkpoint (an operator answers via decide with `answer`), a non-durable deployment
21666
+ continues on the `declined_unavailable` synthetic-continuation card. `permissionMode: dontAsk` is outside the table: on a DURABLE
21667
+ deployment the engine's mode table refuses the ask (no card, no park, tool not executed); a non-durable deployment is unchanged today.
21668
+ The run never hangs either way.
21652
21669
  required: [type, questionId]
21653
21670
  additionalProperties: true
21654
21671
  properties:
@@ -21657,11 +21674,11 @@ components:
21657
21674
  questions:
21658
21675
  type: array
21659
21676
  items: { $ref: '#/components/schemas/AskQuestion' }
21660
- description: '"question" only: the model''s structured questions, secret-redacted. UNTRUSTED — never re-feed to a model. Absent on an over-cap payload — and then NO frame is emitted at all: the ask reports `unavailable` (see this schema''s description).'
21677
+ description: '"question" only: the model''s structured questions, secret-redacted. UNTRUSTED — never re-feed to a model. Absent on an over-cap payload — and then NO frame is emitted at all: no card was shown, so the landing is "no answer obtained" (see this schema''s description).'
21661
21678
  outcome:
21662
21679
  type: string
21663
21680
  enum: [answered, unanswered]
21664
- description: '"question_complete" only: `answered` = a human responded; `unanswered` = ttl/abort/throttle released it and core was told NOBODY WAS REACHABLE (`unavailable`) — on a durable deployment that PARKS rather than handing the model a default. Cosmetic dismiss reason only; never derive the run''s fate from it.'
21681
+ description: '"question_complete" only: `answered` = a human responded; `unanswered` = ttl/abort/throttle released it. Cosmetic dismiss reason only; never derive the run''s fate from it — on server >= 7.150.0 a question that WAS shown and went unanswered does not park, one that never reached the live face parks on a durable deployment.'
21665
21682
  serverNowMs:
21666
21683
  type: integer
21667
21684
  description: 'server >= 7.3.0, ADDITIVE: the server-signed emit timestamp. A server-minted side-frame has no core-stream eventId to carry, so this is its own time coordinate. Absent on older servers.'
@@ -22072,9 +22089,9 @@ components:
22072
22089
  GET /v1/runs/:id/events — that half is what this schema registers.
22073
22090
  🔴 UNTRUSTED-for-display: `questions` is secret-redacted, render only, NEVER re-feed to a model.
22074
22091
  `questions` absent ⇒ the payload exceeded the 16 KiB cap and was dropped — and then NO frame is emitted
22075
- at all: the ask reports `unavailable` (server 7.4.0 / #166), which on a DURABLE deployment PARKS a
22076
- checkpoint for an operator and on a non-durable one continues via the `declined_unavailable`
22077
- synthetic-continuation card. It does NOT "headless-default".
22092
+ at all: no card was shown, so the landing is "no answer obtained" (server >= 7.150.0: a DURABLE deployment
22093
+ PARKS a checkpoint at once, without waiting out the window; a non-durable one continues via the
22094
+ `declined_unavailable` synthetic-continuation card). It does NOT "headless-default".
22078
22095
  additionalProperties: false
22079
22096
  required: [type, questionId]
22080
22097
  properties:
@@ -22094,7 +22111,7 @@ components:
22094
22111
  type: integer
22095
22112
  description: >
22096
22113
  server >= 7.39.0, OPEN frame only: the coordinator's OWN answer window (`QUESTION_TTL_MS`, default 5 minutes) — at expiry the ask is
22097
- released as nobody reachable (`unanswered`) and the engine decides park vs continue. Minted from the SAME ttl the release timer arms
22114
+ released (`unanswered`); on server >= 7.150.0 whether the run then parks reads whether the card was shown on the leg's live face. Minted from the SAME ttl the release timer arms
22098
22115
  (one source, so a countdown rendered from it never disagrees with the release). Relative; with `expiresAtMs` and `serverNowMs` it is a
22099
22116
  clock-skew-proof trio.
22100
22117
  expiresAtMs:
@@ -22104,10 +22121,10 @@ components:
22104
22121
  type: object
22105
22122
  description: >
22106
22123
  AskUserQuestion CLOSE frame (dialog-dismiss signal). `answered` = a human responded; `unanswered` =
22107
- ttl / abort / throttle released it and core was told NOBODY WAS REACHABLE (`unavailable`) — on a durable
22108
- deployment that PARKS rather than handing the model a default (server 7.4.0 / #166; the old "the model
22109
- got the headless default" reading is wrong). Cosmetic dismiss reason — it does not itself change the
22110
- run's status, and the run's fate must never be derived from it.
22124
+ ttl / abort / throttle released it. Cosmetic dismiss reason — it does not itself change the run's status, and
22125
+ the run's fate must never be derived from it (server >= 7.150.0: a question that WAS shown and went unanswered
22126
+ does not park; one that never reached the live face parks on a durable deployment; the old "the model got the
22127
+ headless default" reading is wrong).
22111
22128
  additionalProperties: false
22112
22129
  required: [type, questionId]
22113
22130
  properties:
@@ -23350,6 +23367,10 @@ components:
23350
23367
  and the `GET /v1/sessions/{sessionId}/mcp` panel's `servers[]` (the panel row carries no `errorCode`, so presence there reads "this server is unauthorized"). ONLY the closed word `reason` leaves the server: the engine record's two
23351
23368
  addresses (`authorizeUrl` — only ever from the deployment's authorization seat, which this deployment does not have — and `resourceMetadataUrl`, which the remote self-reports in its challenge header and is untrusted) never go on the wire.
23352
23369
  A record whose word is outside the set, or that is not an object, is absent as a whole (the weakest claim, no minted word). The user-facing "go authorize" is the session notice `mcp.authorization_required`.
23370
+ server >= 7.150.0: every projection face of the record reads this one disposition table — the three faces above, plus the session history (`GET /v1/sessions/{sessionId}` `messages[].details.authorization`, a tool-result card whose `details.code` is
23371
+ `unauthorized`) and `tool_end.structured.authorization` (`GET /v1/runs/{runId}/events` and SSE `tool_end`, a self-registered card whose `structured.code` is `unauthorized`): both carry ONLY `{ reason }`. On <= 7.149.x the history also carried the remote's
23372
+ self-reported `resourceMetadataUrl` and `tool_end.structured.authorization` carried any card member that passed the text redactor; neither member is declared by this contract (`details` / `structured` are open bags), so a reader of
23373
+ `authorization.resourceMetadataUrl` there reads `undefined` on >= 7.150.0. No knob.
23353
23374
  properties:
23354
23375
  reason:
23355
23376
  type: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/sdk",
3
- "version": "38.1.0",
3
+ "version": "40.0.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",