@sema-agent/core 7.71.0 → 7.72.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.
Files changed (158) hide show
  1. package/CHANGELOG.md +193 -0
  2. package/dist/agents/cross-session-ref.d.ts +2 -2
  3. package/dist/agents/cross-session-ref.js +7 -2
  4. package/dist/agents/inherited-tool-pool.d.ts +4 -1
  5. package/dist/agents/inherited-tool-pool.js +7 -5
  6. package/dist/agents/send-message-tool.js +6 -2
  7. package/dist/agents/subagent.js +5 -1
  8. package/dist/agents/verify.js +1 -0
  9. package/dist/core/a2a.d.ts +24 -3
  10. package/dist/core/a2a.js +27 -8
  11. package/dist/core/agent-state.d.ts +28 -7
  12. package/dist/core/agent-state.js +19 -6
  13. package/dist/core/approval-object.d.ts +7 -3
  14. package/dist/core/approval-object.js +30 -9
  15. package/dist/core/checkpoint-features.d.ts +13 -3
  16. package/dist/core/checkpoint-features.js +34 -5
  17. package/dist/core/checkpoint-requirements.d.ts +14 -1
  18. package/dist/core/checkpoint-row-verdict.d.ts +1 -1
  19. package/dist/core/checkpoint-row-verdict.js +3 -3
  20. package/dist/core/checkpoint-store.d.ts +4 -0
  21. package/dist/core/effective-path-target.d.ts +19 -0
  22. package/dist/core/effective-path-target.js +95 -38
  23. package/dist/core/engine-notice.d.ts +4 -1
  24. package/dist/core/engine-version.js +1 -1
  25. package/dist/core/file-history-store.d.ts +15 -4
  26. package/dist/core/file-history-store.js +53 -23
  27. package/dist/core/gate-fold.js +3 -1
  28. package/dist/core/governance-codes.d.ts +4 -1
  29. package/dist/core/governance-codes.js +4 -0
  30. package/dist/core/judged-read.d.ts +57 -0
  31. package/dist/core/judged-read.js +1 -0
  32. package/dist/core/mcp-host-seat.d.ts +5 -0
  33. package/dist/core/mcp-host-seat.js +7 -1
  34. package/dist/core/mcp.js +3 -1
  35. package/dist/core/memory-engine/index.d.ts +1 -1
  36. package/dist/core/memory-engine/index.js +1 -1
  37. package/dist/core/memory-engine/layout.js +6 -4
  38. package/dist/core/memory-engine/scope-contract.d.ts +59 -6
  39. package/dist/core/memory-engine/scope-contract.js +90 -25
  40. package/dist/core/mounted-mcp.d.ts +7 -2
  41. package/dist/core/mounted-mcp.js +10 -1
  42. package/dist/core/param-rule-reach.d.ts +8 -3
  43. package/dist/core/param-rule-reach.js +9 -1
  44. package/dist/core/parent-spec-seat.d.ts +11 -1
  45. package/dist/core/parent-spec-seat.js +14 -0
  46. package/dist/core/peer-registration.d.ts +52 -0
  47. package/dist/core/peer-registration.js +37 -0
  48. package/dist/core/peer-seat.d.ts +3 -1
  49. package/dist/core/permission-rule-model.js +1 -1
  50. package/dist/core/runner/chain-mismatch.d.ts +32 -0
  51. package/dist/core/runner/chain-mismatch.js +29 -0
  52. package/dist/core/runner/changes-history.d.ts +1 -0
  53. package/dist/core/runner/changes-history.js +2 -2
  54. package/dist/core/runner/contracts.d.ts +3 -0
  55. package/dist/core/runner/file-history-restore.d.ts +3 -1
  56. package/dist/core/runner/file-history-restore.js +9 -6
  57. package/dist/core/runner/loaded-skills.d.ts +2 -0
  58. package/dist/core/runner/loaded-skills.js +10 -0
  59. package/dist/core/runner/person-path-rows.d.ts +2 -4
  60. package/dist/core/runner/person-path-rows.js +2 -3
  61. package/dist/core/runner/prepare-caps-and-workflow.d.ts +4 -0
  62. package/dist/core/runner/prepare-caps-and-workflow.js +7 -2
  63. package/dist/core/runner/prepare-file-history.js +1 -1
  64. package/dist/core/runner/prepare-hands-readface.d.ts +5 -0
  65. package/dist/core/runner/prepare-hands-readface.js +24 -21
  66. package/dist/core/runner/prepare-inherited-gate.d.ts +2 -2
  67. package/dist/core/runner/prepare-inherited-gate.js +1 -1
  68. package/dist/core/runner/prepare-memory-engine-session.d.ts +2 -2
  69. package/dist/core/runner/prepare-memory-engine-session.js +2 -2
  70. package/dist/core/runner/prepare-memory.js +3 -15
  71. package/dist/core/runner/prepare-project-context.d.ts +1 -1
  72. package/dist/core/runner/prepare-project-context.js +3 -7
  73. package/dist/core/runner/prepare-protocol-tools.d.ts +5 -0
  74. package/dist/core/runner/prepare-protocol-tools.js +2 -2
  75. package/dist/core/runner/prepare-task.js +20 -16
  76. package/dist/core/runner/prepare-wiring-manifest.d.ts +2 -0
  77. package/dist/core/runner/prepare-wiring-manifest.js +4 -3
  78. package/dist/core/runner/read-session-changes.js +1 -1
  79. package/dist/core/runner/resume-checkpoint-screen.d.ts +8 -7
  80. package/dist/core/runner/resume-checkpoint-screen.js +7 -6
  81. package/dist/core/runner/rewind-files.js +3 -2
  82. package/dist/core/runner/run-leg.js +6 -2
  83. package/dist/core/runner/terminal-account.d.ts +4 -0
  84. package/dist/core/runner/terminal-account.js +7 -2
  85. package/dist/core/runner/tool-face-overlay.d.ts +2 -11
  86. package/dist/core/runner/tool-face-overlay.js +39 -0
  87. package/dist/core/runner/trim-stretch.js +7 -2
  88. package/dist/core/scheduler.d.ts +47 -7
  89. package/dist/core/scheduler.js +19 -7
  90. package/dist/core/secret-env.d.ts +7 -0
  91. package/dist/core/secret-env.js +1 -1
  92. package/dist/core/sensitive-path-policy.js +14 -7
  93. package/dist/core/shell-read-silence.js +1 -0
  94. package/dist/core/store-contracts/checkpoint-store-contract.js +7 -0
  95. package/dist/core/task-event.d.ts +4 -3
  96. package/dist/core/task-notification.d.ts +2 -1
  97. package/dist/core/task-spec.d.ts +13 -5
  98. package/dist/core/tool-catalog-entries.js +2 -0
  99. package/dist/core/tool-face-reader.js +1 -1
  100. package/dist/core/tool-face.d.ts +7 -0
  101. package/dist/core/tool-face.js +1 -0
  102. package/dist/core/tool-mount-facts.d.ts +4 -2
  103. package/dist/core/tool-mount-facts.js +3 -3
  104. package/dist/core/tool-mount-plan.d.ts +4 -2
  105. package/dist/core/tool-mount-plan.js +5 -5
  106. package/dist/core/tool-mount-static.d.ts +1 -1
  107. package/dist/core/tool-mount-static.js +25 -13
  108. package/dist/core/tool-registry.d.ts +33 -1
  109. package/dist/core/tool-registry.js +33 -0
  110. package/dist/core/tool-roster.d.ts +16 -0
  111. package/dist/core/tool-roster.js +6 -0
  112. package/dist/core/tool-spec.d.ts +4 -2
  113. package/dist/core/tools.d.ts +6 -0
  114. package/dist/core/tools.js +1 -1
  115. package/dist/core/wiring-manifest.d.ts +66 -12
  116. package/dist/core/wiring-manifest.js +37 -1
  117. package/dist/engine/harness/messages.d.ts +1 -1
  118. package/dist/engine/harness/messages.js +2 -1
  119. package/dist/engine/loop/types.d.ts +2 -0
  120. package/dist/engine/session/session.js +1 -1
  121. package/dist/index.d.ts +11 -7
  122. package/dist/index.js +9 -6
  123. package/dist/orchestration/workflow.js +2 -1
  124. package/dist/stores/file/adoption/marker.d.ts +2 -27
  125. package/dist/stores/file/adoption/marker.js +12 -0
  126. package/dist/stores/file/index.d.ts +1 -1
  127. package/dist/stores/file/index.js +1 -1
  128. package/dist/tools/artifact/artifact-tool.js +11 -6
  129. package/dist/tools/fs/file-read-check.d.ts +45 -11
  130. package/dist/tools/fs/file-read-check.js +200 -57
  131. package/dist/tools/fs/judged-reads.d.ts +51 -0
  132. package/dist/tools/fs/judged-reads.js +68 -0
  133. package/dist/tools/fs/safety.d.ts +8 -0
  134. package/dist/tools/fs/safety.js +12 -1
  135. package/dist/tools/fs/shell-read-check.d.ts +16 -3
  136. package/dist/tools/fs/shell-read-check.js +4 -1
  137. package/dist/tools/fs/shell-read-establish.js +13 -3
  138. package/dist/tools/scheduler-store-move.d.ts +74 -0
  139. package/dist/tools/scheduler-store-move.js +103 -0
  140. package/dist/tools/scheduler-tools.d.ts +43 -29
  141. package/dist/tools/scheduler-tools.js +161 -118
  142. package/package.json +2 -2
  143. package/test/export-surface.snapshot.json +47 -3
  144. package/wire-changes/answers/core-stores-sql@7.72.0.json +12 -0
  145. package/wire-changes/answers/core@7.72.0.json +84 -0
  146. package/wire-changes/answers/mods-kernel@7.72.0.json +7 -0
  147. package/wire-changes/answers/primitives@7.72.0.json +6 -0
  148. package/wire-changes/answers/wiki-gate@7.72.0.json +7 -0
  149. package/wire-changes/core-stores-sql@7.71.1.json +40 -0
  150. package/wire-changes/core-stores-sql@7.72.0.json +215 -0
  151. package/wire-changes/core@7.71.1.json +118 -0
  152. package/wire-changes/core@7.72.0.json +2426 -0
  153. package/wire-changes/mods-kernel@7.71.1.json +40 -0
  154. package/wire-changes/mods-kernel@7.72.0.json +147 -0
  155. package/wire-changes/primitives@7.71.1.json +40 -0
  156. package/wire-changes/primitives@7.72.0.json +143 -0
  157. package/wire-changes/wiki-gate@7.71.1.json +40 -0
  158. package/wire-changes/wiki-gate@7.72.0.json +145 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,196 @@
1
+ ## 7.72.0 — 2026-11-25
2
+
3
+ ### The wire-change manifest is schema 2: what may break a consumer is judged from the compiler's findings, the cases it cannot decide and a person's answers, not read off the spelling; the generator refuses to write a path under `wire-changes/` (or an existing symlink or case alias of it) that a release tag holds; every reader takes the declared `schema` (#5296; behavior change: release tooling only — the ship gate refuses a manifest that does not declare schema 2 from 7.72.0, and the generator refuses a path a release tag holds; hard-breaking: one, below, open to veto @server @cli @test; closed sets: none; exports: none; wire: `wire-changes/<package>@<version>.json` gains `schema` and `judge`, a row's `breaking` / `uncertain` are read from the judge's findings — the compiler's and the cases it cannot decide — and the answers to them (a finding answered `not-breaking` stops counting; a version-literal or export-kind row can still report the change independently, and asks no answer), `signatures[].changes[]` no longer carry `breaking` / `uncertain`, `breakingItems` gains the form `closed set gained members: <S> +<member>,…`)
4
+
5
+ - **Rule.** A change breaks a consumer when code that compiled against the old declarations no longer compiles against the new ones: the two ends' emitted declarations are compared through one table of consumer postures (`scripts/wire-compat.mjs`), not guessed from the spelling. The failures fold into leaves (one change each, on the row where it is at home); a person answers each leaf once (`wire-changes/answers/<package>@<version>.json`); `breakingItems` has one line per changed thing. Every manifest cut from 7.72.0 on is schema 2 (`schema: 2`, a `judge` block, rows that carry the judge's `breaking` / `uncertain`). A manifest with no `schema` is schema 1 — the syntactic reader's verdicts — and stays what its release said. Rules and tables: `docs/RELEASE-TIERS.md`.
6
+ - **A shipped manifest is not rewritten.** The generator refuses to write a file some release tag's tree holds (read from the repository's own tags, not from a file name) and names the tag; the file is judged as the filesystem resolves it, so another letter case on a case-insensitive filesystem, a path through a symlink and a symlink named as the target are the same file. A hard link is not one of these: another name outside `wire-changes/` for a shipped manifest's bytes is a report path, and a report written there goes through the link to the shared bytes, as on 7.71.1 — and likewise a dangling symlink outside the checkout that points at a tag-held path absent from the checkout is not resolved to `wire-changes/` (the check resolves only targets that exist, so a write follows the dangling link) — what is kept is a path under `wire-changes/` and its existing aliases, not a file's bytes under every name. A version that has a `v<version>` tag gains no new file or subdirectory under `wire-changes/` either. A retrospective report for a shipped range goes to an explicit `--out` path outside `wire-changes/`. A checkout that lists no release tag (a shallow clone) cannot tell what shipped and refuses to write into `wire-changes/` at all; a tag that exists only on a remote, or one without the `v`, is not seen. Measured on the tree: the new judge reads 7.70.0..7.71.0 as 76 breaking lines against the 24 the shipped `wire-changes/core@7.71.0.json` says — 52 more subjects: 31 closed-set or union gains (19 set rows, 12 union rows), 14 retyped keys, 7 call shapes; every shipped subject is kept and six of those lines read differently. The shipped file is the one 7.71.0 published, byte for byte.
7
+ - **Readers take the declared schema.** `schema` absent is 1; 1 and 2 are read; any other number, a schema-1 document that carries a `judge`, and a schema-2 document that carries none are refused. The post lint (WIRE leg and wiki leg), the release preflight, the stale-range check, the capability-row renderer and the notes gate read the number at their entry, not the presence of members; the preflight reads the root manifest through the same function the post lint's WIRE leg does, so a root the post lint would refuse for its schema is refused before the tag. A satellite package's manifest is checked on its own — it must declare schema 2 from 7.72.0, and the same schema as its release's root — before it is joined to the root's.
8
+ - **One grammar for the member-list lines.** The lines `closed set lost|gained members`, `type lost keys`, `type gained required keys`, `type made keys optional|required` are written by the generator and read by `gate:changelog-breaking` with one grammar and vocabulary (`scripts/wire-manifest-format.mjs`); the gate no longer spells it a second time. No line changed; a member that holds a line break is read the same way on every form.
9
+ - **Hard-breaking (a reader of the shipped manifests that parses schema 1 only; open to veto @server @cli @test).** From 7.72.0 the files in `wire-changes/` are schema 2: (1) `signatures[].changes[]` carry no `breaking` — a strict reader that requires the boolean there rejects the document, and one that decides a row from `changes.some(c => c.breaking)` reads `false` for a row whose own `breaking` is `true` (read the row's `breaking`); (2) a row's `breaking` is read from the judge's findings — the compiler's and the cases it cannot decide — unless a person answered them `not-breaking`, so a closed set or union that gains a member now reads breaking where schema 1 read it as an addition, and `breakingItems` has the new `closed set gained members` form; (3) the document carries `schema: 2` and a `judge` block. Accept both versions, treat an absent `schema` as 1, and refuse any other number. Inferred (not measured): a pickup gate that reads the installed tree's manifest (`docs/RELEASE-TIERS.md`) is such a reader.
10
+ - **Not moved.** Every manifest up to and including 7.71.1 keeps its bytes (`git diff v7.71.1 -- wire-changes` lists only files of this release; measured empty on the frozen candidate, before this release's own manifests are cut). `## 7.71.1` and every section below it are unchanged (`git diff v7.71.1 -- CHANGELOG.md` is one insertion above them). No `src/` file, no package export.
11
+ - **Not breaking: `clampValuesOf`.** This release's manifest lists `signature changed: clampValuesOf` because the judge could not take apart its old overload list (`uncertain`; its leaf holds other rest-parameter functions too — `foldClampSources`, `toolPolicySkippedRules`, `joinFloors`, `joinedFloors`) — no posture failed, and the files that declare them are byte-identical to 7.71.1 (`git diff v7.71.1 -- src/core/child-clamp-seats.ts src/core/permission-rules.ts src/tools/fs/shell-read-bindings.ts` is empty on the frozen candidate).
12
+ - **Pins.** `test/backlog5296-repair-manifest-boundaries.test.ts` (the generator in a throwaway repository with tags: the shipped default path and an explicit `--out` onto it refused with the tag named and the bytes unmoved, a retrospective report to a path outside, an unshipped version written, a tag-less checkout refused aloud; the declared schema at every entry — floor, declared-versus-present, unknown number, package alone and against the root, the stale-range check, the capability renderer, the notes gate; one grammar for every form) beside `test/backlog5296-judge-manifest.test.ts`.
13
+
14
+ ### A scheduler lane's key is its lane's name, `:` and its owner — `session:<session id>` / `durable:<isolation scope>` — so a session named like a person and that person's durable jobs no longer reach each other; a scheduler backend declares which keys it answers at its port, and the engine mounts the scheduler tools only on one that says lane keys; rows written under bare keys are placed under lane keys with `migrateSchedulerStore` (by moving the store once or placing rows at the port on every read), which lists the rows it cannot place instead of guessing (#5088; hard-breaking: six, below, open to veto @server @cli @test; narrowing: four, below; widening: none; closed sets: `EngineNoticeCode` +1 `config.scheduler_store_unmoved`, new `SchedulerScopeKeys` (`lane` / `bare`), new `SchedulerRowRefusalCode` (six words); exports: +2 functions (`migrateSchedulerStore`, `rollbackSchedulerStore`) and +5 types (`SchedulerScopeKeys`, `SchedulerStoredRow`, `SchedulerStoreRows`, `SchedulerStoreMove`, `SchedulerRowRefusalCode`), −1 (`sessionLaneScopeOf`); wire: the key a backend is handed (`SchedulerContext.scope`) changes value, `SchedulerCapability.schedulerCapabilities` +1 member `scopeKeys` that a backend must declare `"lane"` for the tools to mount, `SchedulerToolContext.scope` removed, `SchedulerLanes.session` optional, one notice code) (@server @cli @test)
15
+
16
+ - **Rule.** One spelling of a key: the lane's name, `:`, the owner. The session lane is `session:<sessionId>` and exists only when the run has a session; the durable lane is `durable:<isolationScope>` (else the principal, else `durable:default`). Neither lane name contains `:`, so the two lanes' keys never coincide. Which lane an intent is filed on is one predicate, read off the intent's `lifetime` and `mode` only (`lifetime: "session"` or `mode: "session-wakeup"` ⇒ session lane), used both when scheduling and by `migrateSchedulerStore`. The readers' existing refusal now judges the form (lane name, `:`, non-empty owner) instead of "a non-empty string". The key stays opaque to a backend. The session lane's owner is the session id alone, so a session id must be unique across everything that shares one scheduler backend: two tenants whose hosts mint tenant-local session ids over one backend share a session lane and read and stop each other's session jobs — as on 7.71.1, whose Runner keyed the session lane by the bare session id (unchanged, now stated).
17
+ - **The port says its keys (`schedulerCapabilities.scopeKeys`).** The declaration is about the port: `"lane"` means the backend takes and answers lane keys at its verbs (every row it lists, cancels or fires is filed, as the engine sees it, under exactly one lane key; how the backend keeps its rows is its own business) and `"bare"` means it answers keys as a release before 7.72.0 filed them. The engine speaks to a backend only in lane keys, so only `"lane"` mounts the scheduler tools (`hasScheduler` now also requires it) and is read by `listScheduled` / `cancelScheduled`. Absent, `"bare"` or any other value: no `CronCreate` / `CronDelete` / `CronList` / `ScheduleWakeup` on any leg (sub-agents and workflow members included, the same mount), the two readers answer `unsupported` with a sentence naming the move, the backend is called zero times, and — when the seam is otherwise there (`schedule`, `cancel` and `list` present, `supported: true`; any other seam is silent) — the operator is told once per notice sink for each value as the notice renders it: a word of the set (`"bare"`) as written, a number or a boolean as its value, any other string masked, so two strings that mask alike (`"oldA"`, `"oldB"`) are told once (`config.scheduler_store_unmoved`, operator × act). `schedulerCapabilities` is read once per leg when the seam's three methods are there (the mount, the tools' capability bits, the notice), and again on each call of the two host readers that finds `list` and `cancel`, including the calls of `CronList` / `CronDelete`, which go through them; within one reading, `scopeKeys` may be read again to name it in a refusal or the notice (declare both fixed for the backend's lifetime; measured by the release review: a counting getter on `schedulerCapabilities` read once at the mount, once more per `CronList`). Measured: on 7.72.0 before this change (the review's probe, reproduced by `K1` / `K2` on the base), a backend answering bare keys was read with lane keys silently — old jobs listed as none, `CronDelete` answered "already gone or not yours", `ScheduleWakeup(stop)` cancelled zero, a re-created job fired twice, and a bare key shaped like another lane's key listed and cancelled another person's job.
18
+ - **Before (7.71.0, measured: the car's collision probe on the base tree, in-memory and file stand-in stores).** The session key was `sessionId ?? isolation scope ?? taskId ?? "default"` and the durable key `isolation scope ?? "default"`, bare, in one namespace. A run in session `alice` (principal `bob`) listed, stopped (`CronDelete`) and, by a `ScheduleWakeup` replace, deleted the durable job of principal `alice`; principal `dave` listed and stopped the session job of session `dave`; a session named `default` listed and stopped an anonymous run's durable job. With the task text on the row (7.70.0) the other side also read what those tasks were to do.
19
+ - **Now (measured: the same probe on this tree).** All of those read `No scheduled tasks` / `not_found`; the other side's row is untouched. A principal named `session:x` and a session named `durable:alice` stay on their own lanes (`durable:session:x`, `session:durable:alice`).
20
+ - **Hard-breaking (open to veto @server @cli @test).** (1) `SchedulerContext.scope` — the key a backend is handed — changes value with no compile error: a store written by 7.71.0 or older holds bare keys, and its backend must answer lane keys at the port — by moving the store once or by placing its rows at the port on every read (below). (2) A backend that does not declare `schedulerCapabilities.scopeKeys: "lane"` gets no scheduler tool and is not read by the host readers (`unsupported`) — a backend that worked on 7.71.0 mounts nothing on 7.72.0 until the backend answers lane keys and declares it — by moving its store or by placing its rows at the port (below); no compile error (the member is optional), one operator notice. **Make the backend answer lane keys and declare it first, then upgrade the engine — in the same deployment**: the engine has no clock and no firing verb (firing is the host's trigger, which the engine does not stop), so while an upgraded engine runs over a backend not yet declaring `"lane"`, whatever that trigger fires keeps firing and none of it can be listed or cancelled through the engine until the backend declares it. (3) `sessionLaneScopeOf` is removed from the root and `SchedulerToolContext.scope` is removed: derive the lanes with `schedulerLanesOf({ sessionId, principal, isolationScope })` from what the host verified; a call of `schedulerLanesOf` or `createSchedulerTools` that passes `scope` in an object literal fails to compile (`createSchedulerTools` also gains an optional third parameter, the leg's one reading of the declaration, which a caller need not pass). (4) `SchedulerLanes.session` is optional: absent for a context with no session — a reader of `lanes.session` that does not check for it fails to compile under `strictNullChecks`. (5) A run with no session no longer reads a session lane (its fallback chain is retired): it reads `durable:<scope>` alone, once. (6) `EngineNoticeCode` (`ENGINE_NOTICE_CODES`) gains `config.scheduler_store_unmoved` (operator × act, minted by the engine): a table typed `Record<EngineNoticeCode, …>` or a switch that is exhaustive over the codes fails to compile until it places the word; `NOTICE_MINTER` gains its row (`engine`), so a host value typed `typeof NOTICE_MINTER` (or `typeof ENGINE_NOTICE_CODES`, a fixed-length list) fails the same way.
21
+ - **Narrowing.** A principal whose name equals some session id (or the reverse) no longer sees or stops the other lane's jobs — the fix itself. A host that keyed a session lane with a bare owner by hand is now refused (`config.invalid_argument`). A backend that does not declare lane keys is no longer spoken to at all (the hard-breaking (2) above). A durable row written before 2026-08-03 under its session's bare key `S` — which 7.71.1 still listed and stopped from inside session `S` through the bare session-lane key — is placed by `migrateSchedulerStore` in `moved` under `durable:S` (or in `refused` as `lane_unknown` if it carries no `mode` and `label: "loop-wakeup"` and no lane is stated): session id `S` alone no longer reaches it; a session whose effective durable owner is `S` lists and stops it (isolation scope `S`; with no isolation scope, principal `S`; for `S` = `default`, also a session with neither) — the owners 7.71.1's durable lane already showed it to (KL-5089-b, below). A moved row fires as the host's trigger fires it; a refused row is held back from firing and reported by a backend that places rows on every read, and settled before the write by one that moves its store. The backend's owner sees such rows under `durable:<sessionId>` in `moved` or in `refused` and surfaces them to the operator.
22
+ - **The move (`migrateSchedulerStore({ scopeKeys, rows })` → `{ moved, refused }`).** Pure: the store's owner hands every row (each `{ scope, lifetime?, mode?, label?, sessionId?, lane? }` plus whatever else the row holds, untouched) with the stored rows' form (absent or `"bare"`; `"lane"` is refused whole, `config.invalid_argument` — the move is not idempotent and a bare key may read like a lane key), and gets back each placed row with its new key in input order, and each row it will not place with a code (`SchedulerRowRefusalCode`) and a sentence. The function writes nothing and answers each row it is handed with one lane key or one refusal. It may also be called on every read by a backend that keeps its stored form; such a backend must: (a) hand it the whole store on each read — the shared-key check below sees only the rows of one call, so placing rows one at a time, or filtering by bare key before placing, misses a shared lane key; (b) keep every refused row out of every verb — listed, cancelled, fired — and report it to the operator; (c) store each row written through the port so that it reads back under the lane key it was written with: the intent's `lifetime` / `mode` as written and the key's lane as `lane` (a durable job labelled `loop-wakeup` with no `lifetime` or `mode` — `CronCreate` with `durable: true` and that label writes one — otherwise reads back `lane_unknown`); a durable row under its owner as its stored key (one stored as `durable:alice` reads back as `durable:durable:alice`); a session row with its `sessionId`, under one bare key for every row of that session lane — the one its stored rows already use (an older explicit-scope row `A/42` and a new row stored under `42` both land on `session:42` and are both refused `lane_key_shared`); (d) declare `"lane"` as its own constant, fixed for its lifetime — it then never meets the readers' `unsupported` sentence or the operator notice, which both name the store move. A row's lane is read off its stored `lifetime` / `mode` as scheduling picks one; a row with no `mode`, a `lifetime` absent or `"durable"` and the wakeup's label `loop-wakeup` — a wakeup on a store that kept no `mode`, or a job given that label — is refused `lane_unknown` (it was filed durable, where its session's `stop: true` no longer reached it) unless the owner states `lane: "session" | "durable"` from its own evidence; a stated lane the stored members contradict is `lane_contradicted`. A session-lane row is keyed by the session it fires into, `session:<sessionId>` (an older factory took an explicit session scope, so the bare key was not always the session; prefixing it left such a row listed nowhere); with no recorded `sessionId` it is `destination_unknown`. A durable row is `durable:<bare key>`, the bare key whole. A key or member outside the seam's words is `row_invalid`. Not merged: rows filed under different bare keys that would land on one lane key — two hosts' explicit session scopes over one session id (`A/42` and `B/42`, a session id unique only inside each tenant; measured by the release review: both were placed on `session:42`), or one session's rows under its own id and under an older explicit scope — are each `lane_key_shared`, the sentence naming the lane key and the bare keys (the move's side of the rollback's `bare_key_shared`). When moving a store once, write `moved` and `scopeKeys: "lane"` in one write, and only when `refused` is empty; settle each refused row (state its lane or session, or remove it) and run the move again over the whole store; the write must land atomically with the declaration, and no older writer may write after it (held off by the bytes — a store format an older build will not write — or, where the backend cannot, stopped before the move). Durable rows written before 2026-08-03 under a session id `S` land on `durable:S` in `moved` (or in `refused` as `lane_unknown` if mode-less with `label: "loop-wakeup"` and no lane is stated), where session id `S` alone no longer lists or stops them and a session whose effective durable owner is `S` does (narrowing above): surface them to the operator. The per-row `laneKeyOfBareEntry` of the first round is gone (never released). Both functions retire when no known backend holds rows under bare keys any more — a backend that keeps bare keys stored keeps them alive.
23
+ - **Rollback (`rollbackSchedulerStore({ scopeKeys: "lane", rows })`).** Strips each row's lane name and `:` to give back its bare key (the durable owner for `durable:<owner>`, and the session id for `session:<sessionId>` — not an exact inverse of the move for a lone explicit session scope such as `A/42`, which moves to `session:42` and rolls back to `42`) — except where a session-lane row and a durable-lane row of one owner (a session whose id is some scope's name) would land on one bare key: both are refused `bare_key_shared`, because an older release reads them as one lane's rows and one owner's `ScheduleWakeup(stop)` or delete then reaches the other's (measured by the review: two cancellations, the other person's durable job among them). Settle those rows before rolling back (remove one, or stay on 7.72.0); write `moved` with `scopeKeys: "bare"`. A row whose key is not a lane key is `row_invalid`; a store not declaring `"lane"` is refused whole.
24
+ - **Known.** KL-5089-b is closed, but for one batch of old rows, on either route (a store moved once or rows placed on every read): durable rows written under a session key `S` before 2026-08-03 land in `moved` under `durable:S` (or in `refused` as `lane_unknown` if they carry no `mode` and `label: "loop-wakeup"` and no lane is stated), where a session whose effective durable owner is `S` — a principal named `S` with no isolation scope among them — still lists and stops them and, where the backend lists it, reads their task text — rows a session `S` wrote. Not a regression: 7.71.1's durable lane, keyed by the same owner, showed them to the same sessions (stated narrowing above; the store's owner sees them in `moved` under `durable:<sessionId>` or in `refused`).
25
+ - **Pins.** `test/backlog5088-store-declares-keys.test.ts` (K1 the factory and the readers on a store declaring nothing / `"bare"` / a garbage word, zero backend calls, and the `"lane"` control; K2 the real loading path — two Runner runs, no scheduler tool offered, one notice; M4 – M9 the move: the mode-less wakeup refused and moved by a stated lane, the explicit-scope session row re-keyed by its session, the already-moved store refused, the refused list, a file store end to end, two bare keys one lane key would merge refused `lane_key_shared`; R1 – R2 the rollback's shared keys and its inverse) · `test/backlog5088-lane-key-namespaces.test.ts` (N1 – N4 four collision forms × list / stop / change on an in-memory and a file store; P1 the predicate on both capability bits; M1 / M1b / M1c the move's reading, its bad-value states and a shared lane key; M2 a file store moved and rolled back, M3 not moved and not declared) · `test/backlog2926-scheduler-lane-readers.test.ts` (re-keyed parity table; B1c the form judge; B7 the root exports) · `test/backlog4492-anonymous-one-bucket.test.ts` (#4492 B2 re-keyed: the anonymous run's durable job is stored under `durable:default`; the pin still judges the owner) · declared lane-keyed: the stand-in backends of nineteen more files (three of them fixtures) — the files whose diff from 7.71.1 touches `scopeKeys`, less those named above.
26
+ - **Consumers.** @server: a backend declares `scopeKeys: "lane"` only when it answers lane keys at its port — either after moving its store once with `migrateSchedulerStore` before the scheduler routes open (writing `moved` and the declaration in one write no older writer can follow — a store format an older build will not write, or the older writer stopped first — then reading the declaration from the store's format mark, not as a constant: a store not yet moved must not declare it), or by keeping the stored form and placing each row at the port on every read with `migrateSchedulerStore` under the four duties above (then the declaration is the backend's own constant); refused rows go to the operator, never dropped, never listed, cancelled or fired; `src/scheduled-tasks.ts` drops `scope:` and `sessionLaneScopeOf` (the caller's route has no session: the durable lane alone, the wire answer unchanged); your three test files that build `scope` by hand fail to compile — the intended notice; your documented "both lane keys share one namespace" exception retires; a backend that omits the declaration mounts no scheduler tool and its list / stop routes answer `unsupported`. Do not follow an older build's `fix or remove the file` log line during a store move: removing the file deletes every task. @cli (inferred from the contract for a daemon that fires from the store file and keys nothing, not measured on yours): where the store's owner moves the store, such a daemon is unaffected once the store is moved — but against a store not yet moved, an upgraded engine lists and stops nothing while the daemon keeps firing, so move the store before the upgrade, in the same deployment; lock-step the contract package version with the server's; an old window left open on an upgraded machine reads the moved store only as far as it reads the new format, until it is closed. Where the backend keeps the stored form and places rows at the port, the stored rows keep their bare keys for the daemon and an old window. @test: a probe that pins bare keys (`"sess-1"`, `"default"`) turns red; pin the new keys, and declare `scopeKeys: "lane"` on a stand-in backend or it mounts no scheduler tool.
27
+
28
+ ### Every Runner leg carries its MCP mount (`ToolExecuteContext.mountedMcp`), a leg that declares no server too (`servers: []`); a host seat rides it only along a host server the leg declares, so an agent woken by a leg that hands it no seat for its host server is refused that server's dial by its code and the waker's `SendMessage` receipt says so (#4269; behavior change: yes, below; hard-breaking: one, below, open to veto @server @cli @client-core; narrowing: one, below; widening: none; closed sets: none; exports: none; wire: none — the member was already optional on the type)
29
+
30
+ - **Rule.** One mint for every leg: `mountedMcp()` answers the leg's servers (empty when it declares none), the aggregate tools no server owns, and the seats of the host-transport servers the leg declares, by name — one judge (`hostSeatsAlong`) for the mount, a spawned child (the servers it inherits) and a wake (the woken agent's own servers against the waker's mount). The condition "a mount only on a leg that declares a server" is retired.
31
+ - **Before (7.71.0, measured with request-level host seats on a real Runner).** A leg that declared no server had no mount. A session whose first message declared a host server and started a named background agent (which inherited it), then a second message that declared none, woke the agent by `SendMessage`: the agent's server failed its dial (the woken model's first turn was told so once; a call then reads `Tool mcp__hx__look not found`) and the waker's receipt said nothing of it; the same when the second message parked durably and another Runner resumed it. A waker that declared any server handed every seat it held, by name.
32
+ - **Now (measured: the same cells on this tree).** A root, a child and a workflow agent that declare no server read `{ servers: [], aggregate: [] }` and no seat. A wake that hands the agent no seat for its host server — the waker does not declare it, declares it with another transport, declares it without holding a seat, or runs outside a Runner — asks nothing of any seat the waker holds: the woken agent's dial is refused (`config.mcp_host_seat_missing`, its own sentence on `onError`), and the `SendMessage` receipt (the operator continuation verb's too) adds `Its MCP server "hx" is declared with a host-supplied transport, and this leg hands no host seat for it (a leg hands a seat only for a server it declares with a host-supplied transport and holds a seat for) — not dialed on this wake (config.mcp_host_seat_missing).` (`servers` … `are` … `them` for several). This holds for a seat of another registration and for another principal's seat in a shared isolation scope. A waker that declares the server with a host-supplied transport and holds its seat hands it as before.
33
+ - **Hard-breaking (open to veto @server @cli @client-core).** `ToolExecuteContext.mountedMcp` is present on every Runner leg; a host tool that read "the member is there" as "this run has MCP" now reads a leg with no server as having it. Read `mountedMcp().servers.length` instead. The member is still absent outside a Runner task, so its type stays optional and nothing fails to compile.
34
+ - **Narrowing (@server).** A waker that declares some server but not the woken agent's host server — or declares that name with another transport — no longer hands that agent's seat (7.71.0 handed every seat it held, which is what let one principal's seat reach another's agent); a caller tool on such a leg no longer reads the undeclared seat on `ctx.mountedMcp().hostSeats` either. A host whose messages declare different server sets and that relies on waking a background agent which inherited a host server will see the receipt's `config.mcp_host_seat_missing` sentence — declare that server on the waking leg.
35
+ - **Known.** KNOWN-LIMITS KL-2595-a is closed and removed. New KL-4269-a: a waker that declares a host server of the same name still hands its seat by name — another registration's or another principal's seat is dialed under the woken agent's own declaration (as in 7.71.0); and only `SendMessage` (and the continuation verb built on it) says when a wake hands no seat: a steer handle's `resume` answers a marker only, and a durable (tier-3) revival rebuilds the agent from the waker's mount, so an inherited host server it no longer declares is neither dialed nor told.
36
+ - **Pins.** `test/backlog4269-mount-every-leg.test.ts` (A0 – A2 the root's mount; B1 / B2 a child's; C1 / C1c / C2 the wake from a later message, its control, and the durable resume on another Runner; R1 / R2 / R3 another registration, another principal, another server declared; T1 – T4 the receipt's sentence when the waker declares the server without a seat, declares it over http, the agent holds two such servers, and the continuation verb outside a Runner; K1 the KL-4269-a form as it stands; D1 / D1c a workflow agent's; P1 the sentence and the rows) · `test/backlog3022-3023-run-tree-pool.test.ts` S2 (#3022's file; was held with `it.fails`; now a plain cell: no seat on a non-declaring leg's mount).
37
+
38
+ ### An A2A peer's tool is minted on the tool form that carries the call's context — behavior change: none (#4460, orchestration slice 2-b, car 1)
39
+
40
+ - **What moved.** Each peer tool now carries, beside its executor, the means to compute what one of its calls reaches: it builds the call's ctx through the leg's own per-call builder (the one every mounted tool runs with) and reads off that one ctx the task registry, the completion sink and the background admission every background producer applies. Nothing in a call runs it: this release has no consumer, a call is sent, answered and failed exactly as before, and it reads none of the run's host objects (the session store, the notification lane) that it did not read before. A library materialization (`materializeA2aTools`) hands no builder and its tools carry none.
41
+ - **Behavior change: none.** The tool's face (name, label, description, input schema, permission seat), the message it sends, every result text and structure, the thrown failures a direct caller reads, the ask card for an outside and an inside peer, the tool_end marks, and which host accessors a call reads are unchanged (pins below, green on the tree before this change and after it). The tool keeps the plain `AgentTool` contract, not the `defineTool` product's: a direct caller's schema-invalid call still throws the tool's own sentence and a coded refusal is still the error it was.
42
+ - **Types.** `TaskNotificationPayload.task_type` is now `SemaTaskType | "external"` (derived, not a second hand-written list; the same five words). Root exports are unchanged; `materializeLegA2aTools` (internal) takes a trailing `mount`.
43
+ - **Pins.** `test/orch-s2b-c1-peer-tool-baseline.test.ts` (the seen-from-every-side cells), `test/orch-s2b-c1-peer-tool-context.test.ts` (the means, which tools carry it, a call computes nothing, a real Runner reads none of the session store), and the phase's hand-over cell in `test/prepare-protocol-tools.test.ts`.
44
+
45
+ ### The naming gate refuses every task-handle shape, read off the handle-prefix table — a narrowing (#4460, orchestration slice 2-b, car 1b)
46
+
47
+ - **Rule.** A name of the shape `<letter><16 hex>` (case-folded; for the agent id also with its optional `<label>-` infix) is refused when the letter is one `SEMA_TASK_HANDLE_PREFIXES` holds — today `a`, `b`, `w`, `m` — with the reason and sentence the `a` shape always had (`agent_id_shape`; the Agent tool's `name.reserved`). The letters are read from the table the registry mints handles with, not listed again: a kind added to the table is refused as a name the moment it has a prefix. The labelled agent-id spelling (`a<label>-<16 hex>`) is an extra reservation this gate has always kept, for the agent letter alone — the mint never emits a label, and durable registration does not take it as an id. `worker-<16 hex>` stays an ordinary name.
48
+ - **Where it is asked.** The gate judges a name being minted. A revival (`SendMessage` continuing a settled agent, a yielded agent's adoption by its owner's next leg) hands back the name its row already holds and is not judged again, so an existing agent whose stored name takes one of these shapes still revives. The row is the one source of a revived agent's name: a name handed in beside the claim that is not the claimed row's own is refused (`name.reserved`, nothing written, the claim rolled back) rather than giving the agent two names.
49
+ - **Before / why.** Only the `a` shape was refused, so a background agent could be named `b…`, `w…` or `m…` plus sixteen hex; a stop by a handle of that spelling, once its task row was gone, fell through to the agent of that name.
50
+ - **Narrowing, who meets it.** A name of a `b…` / `w…` / `m…` handle shape that was legal before is refused now: the Agent tool's `name`, and any host that gives a name through `reservedPeerNameReason`. A host whose own revival drive hands, beside the claim, a name that is not the claimed row's own meets the second rule above (`name.reserved`, the claim rolled back): hand the row's name, or none. The population is next to nothing (a name of sixteen hex digits behind one of those letters); the refusal text still says "the shape of an agent id" for these three letters (wording only; unchanged in this release).
51
+ - **Pins.** `test/orch-s2b-c1b-handle-name-gate.test.ts` (① – ③ every letter of the table refused, the gate reads the table, the shape's grammar and the agent id's labelled spelling; ④ ordinary names and near-misses untouched; ⑤ the Agent tool's name face, a real Runner turn) · `test/orch-s2b-c1b-fix1-revival-names.test.ts` (a stored name of a handle shape revives; a handed name that is not the row's is refused `name.reserved`, nothing written, the claim rolled back; the row's own name and no name handed revive) · re-pinned: the hand-built revival drives of `test/agent-park-jian4-durableapproval-forwarding.test.ts`, `test/backlog4732-principal-name-bounds.test.ts` and `test/backlog683-child-inherits-resolved-checkpoint-seat.test.ts` hand the claimed row's name; the one near-miss cell of `test/backlog1057-reserved-names.test.ts` that named a `b…` form as admissible now names a letter in no table.
52
+
53
+ ### `describeStaticWiring(...).toolPlan` states the `Skill` row as a top-level leg runs it: `Skill` is `mounted` exactly when a skill loads (#2411; behavior change: one row of the static plan, below; hard-breaking: none; narrowing: one — a spec the leg's config door refuses is now refused by the static read too, below, @server; widening: none; closed sets: none; exports: none; wire: none — the plan is a function's answer, no frame changes)
54
+
55
+ - **Behavior change (one row, same call as the leg).** `Skill` was always `conditional` on `listing.skills`; it is now `mounted` when `loadedSkills(spec.skills)` is non-empty (the one reading the leg's prepare takes its tool and listing from; a skill over the load limit does not load) and absent (because `listing.skills`) when it is empty.
56
+ - **The shape and values of the row that changes.** A `Skill` member that becomes `mounted` carries no `when` (it was `conditional` with `when: ["listing.skills"]`). With no skill that loads and a caller tool named `Skill`, the row is the caller's: `source` `scenario` and `mountedBy` `scenario` with no builtin `id`, where it was the builtin's (`builtin` / `optional` with `id: "skill"`, `conditional`). No new key and no new `source` / `mountedBy` word appears on a member; `ToolSearch` stays `conditional`, and `executionEnv` is read over the facts the leg holds when it decides whether to start an environment, so it does not move with the skills.
57
+ - **The spec is read the way the Runner reads it.** The static read takes one snapshot by member name (`readCallerSpec`) and reads the skills once: a non-enumerable member is read, and a getter answers once. Narrowing: a spec the leg's config door refuses through that read (a member that cannot be read, a retired key such as `compactionModel`, a key the engine does not read) used to be given a table by the static read and is now refused, synchronously, with the leg's own code and sentence (`config.spec_member_unreadable`, `config.spec_retired_key`, `config.spec_unknown_key`); a spec that reads cleanly is unchanged. Consumers: `@server`'s diagnostic output of the static plan now throws for such a spec.
58
+ - **Hard-breaking: none.** Consumers: `@server`'s diagnostic output of the static plan changes on the `Skill` row; a probe that pinned `Skill` as `conditional` reads `mounted` / absent.
59
+ - **Contract.** The comment on `describeStaticWiring` and `docs/INTEGRATION-CORE.md` §1.12b state what the table answers: `mounted` is on the roster and absent is not (a caller tool with `ToolSpec.withAgents` that the leg rebuilds under another name is the exception in both directions), `conditional` and peer families may be, a name not listed is as a rule not on the roster (besides that rebuild, a declared peer's tools carry its prefix), prepare's whole-roster refusals (a caller `Skill` beside a skill that loads, a name another per-turn station takes, the safety scan, a plan file without hands) are not judged, `ToolSearch` is an honest "not known" (what it depends on is listed).
60
+ - **Pins.** `test/backlog2411-static-facts.test.ts` (the Skill cells read beside a real Runner leg; the execution-environment cells over a factory and a checkpoint store; a non-enumerable exclusion and a once-read skill; the negative cells: `ToolSearch`, member keys and words).
61
+
62
+ ### A yes to a protocol peer's call holds only for the registration it was given under: a parked A2A or MCP call whose peer was re-registered under the same name before the resume is vetoed (`resume.target_moved`) — the approved call is not sent to the new registration (#5333; behavior change: narrowing; hard-breaking: one, wire shape for strict readers, below, @server @cli @client-core; closed sets: none; codes: none new; exports: none named — the tools `materializeA2aTools` / `materializeMcpTools` hand back gain the optional string member `peerRegistration`; wire: `ToolRosterEntry` +1 optional member `registration` (declaration), `schemaVersion` stays 1 as for `remoteName`) (@server @cli @client-core)
63
+
64
+ - **Rule.** A person's yes holds only for the registration it was given under. A one-shot approval bound the tool's identity and declaration, not its peer's registration: a resume whose `a2a` / `mcp` list carried the same name at another address (or another owning team, stamp, side of the boundary, card location, start command) redeemed the approval and sent the call — the person's text and the principal header — to the new registration, with no new card (measured on 7.70.0 / 7.71.0: KL-5333-a). Standing grants are unchanged: an inside A2A peer's compares its stamp only, and an MCP tool's (a stored "do not ask again" rule, `allowedTools`) matches the tool's name, reading neither the registration nor the stamp (KL-5333-a).
65
+ - **The registration is the declaration as the host wrote it.** Its facts — where a call goes, as whom and with which identity — enter the digest as written (canonical JSON, byte-exact): the engine does not judge whether two spellings are one peer (the deployment's peer seat is handed the spelling and may answer each differently). The one equality is a default the declaration type itself states: `boundary` absent is `outside`, `callerMeta` absent is `false`; any other absent fact is no key, never an empty string. An A2A peer: `url`, `cardUrl`, side of the boundary, `ownerTeam`, `fingerprint`, the credential reference, `principalHeader`. An MCP server: its transport (the endpoint, or the whole start command, each with its credential reference; or the host's own pipe), `principalHeader`, `fingerprint`, `sessionMetaKey`, `callerMeta`. A credential reference enters by its content, never a value: its kind always (declaring none and declaring one are two registrations), and the rest as written when it is its own content — `env` (header → variable names), `vault` (its entry), `assertion` (its audience); a `handle` enters as its kind alone, its id (an opaque id the deployment mints, which may differ per process for one credential) not compared (KL-5333-c). A stdio start command's absent `args` reads as `[]`, as the peer seat reads it. Not facts, for example: `displayName`, `allowSkills` / `allowTools` (a tool no longer mounted answers `resume.tool_unavailable`), timeouts, an MCP server's `source`, `elicitation` and `toolFaces`, the axes the row already carries. A host pipe has no address: its stamp and the two caller settings are compared (KL-5333-b).
66
+ - **Narrowing: another spelling is another registration.** A host that rewrites a declaration while a card waits — a host name's case, a default port written out, a fragment, a header name's case, absent → `""` — has changed the registration: that one approval is spent and the call asked again once. No spelling lets a changed registration pass as the old one.
67
+ - **Disclosure.** The digest is deterministic and unsalted (the first 64 bits of SHA-256 over the canonical facts): one registration has one digest in every frame and every deployment, so a reader of roster frames can correlate rows and test a candidate registration against it. It carries no credential value.
68
+ - **Now.** Each MCP and A2A tool carries the registration's digest only (`AgentTool.peerRegistration`, 16 hex digits; one mint, once per peer) — never the facts: the tool object reaches a host's model adapter and the spend meter as it is (38 characters more in its JSON). The roster row copies it (`registration`), a declaration member, so the approval object's declaration digest covers it: a moved registration vetoes the approved call at the resume — that call is not sent, the approval spent, the row resolved, the call's end an error with `resume.target_moved`. The resumed leg still mounts what is registered now (it reads the A2A card; an MCP server is initialized and listed, a stdio one started). The model's re-issued call parks on a new card; an A2A card shows the peer, its side, display name and owning team as registered now (no address), an MCP card looks as before. A changed registration whose tool is also gone or replaced answers `resume.tool_unavailable` / `resume.tool_contract_mismatch` first, the row pending, as before. Rows of other tools, and their digests, are unchanged.
69
+ - **Hard-breaking (wire shape, strict readers; open to veto @server @cli @client-core).** `ToolRosterEntry` is a closed object (`additionalProperties: false`): a reader that validates a `wiring_manifest` roster or a `tool_roster_delta` with the schema exported by 7.71.0 or earlier refuses the whole frame once it carries a row with `registration` — present exactly when the row's `source` is `mcp` or `a2a` and the tool belongs to one peer; a roster of the resource helpers and other tools only is read as before. `schemaVersion` stays 1, as when `remoteName` was added (#2726). Validate with this release's schema, or accept unknown members. On the type side the exported schema `ToolRoster` (at `properties.entries.items.properties.registration`: `entries` is a list of rows) and the classification table `ROSTER_APPROVAL_BINDING` gain the `registration` member: a host that validates with the old strict schema refuses a row carrying `registration`; a host constructing a 7.71.1-shaped schema value as `typeof ToolRoster` must add the `registration` and nested `pathTarget.each` schema entries; a host value typed `typeof ROSTER_APPROVAL_BINDING`, or a switch exhaustive over the table's keys, fails to compile until it places it; a reader of either does not.
70
+ - **Upgrade day.** A parked call to an A2A peer or an MCP server written by an earlier engine is vetoed once at its resume (its declaration digest has no registration in it) — handle-form credential references included: the model re-issues it and the person answers a new card.
71
+ - **Not covered by this change (unchanged from 7.71.0).** An MCP tool's standing grant matches its name, not its registration (KL-5333-a); the three cross-server resource tools bind the server's name, not its registration (KL-5333-d); a stdio declaration's relative `command` / `args` resolve against the engine process's working directory, which is not in the declaration (KL-5333-e).
72
+ - **Consumers.** @server: a resume whose registration changed under a parked peer call answers `resume.target_moved` on the call's end; a probe that pinned "the same name moved, the approval still ran" goes red; the frame validation above. @cli @client-core: the frame validation above.
73
+ - **Pins.** `test/approval-binds-registration.test.ts` (P1 – P8 the six measured shapes, the re-issued card, where a vetoed approval ends; F1 – F6 one A2A fact at a time; H1 a handle id not compared; H2 no reference ↔ a handle; S1 a spelling alone; D1 a declared default; M1 – M5 an MCP server), `test/approval-binds-registration-forms.test.ts` (E1 / E2 the same address spelled another way over the real dial, A2A with a seat answering each spelling on its own, and MCP over HTTP: vetoed; E3 a fragment or an empty query: vetoed; E4 MCP over HTTP, no reference ↔ a handle: vetoed; T1 the tool object holds only the digest, 38 characters more; B1 / B2 a background child, W1 / W2 a workflow member: another spelling or another endpoint is vetoed); re-pinned: #3242 R7 `test/backlog3242-resume-mcp-current-config.test.ts` (a server redefined under the same name: was run on the new definition, now runs on neither), #639 `test/backlog639-parked-identity-face.test.ts` (the digest moves with the new member).
74
+
75
+ ### A parked child's card whose root layer projects no component resumes in either spelling of that layer; `resume.parent_constraint_mismatch` names its cause (KL-5302-d, minimal form; behavior change: a widening — cards 7.71.0 refused now resume, listed below, open to veto @server @cli @client-core @test; hard-breaking: `CheckpointErrorReason` gains `constraint_changed`, `constraint_chain_damaged`, `constraint_unjudgeable`; closed sets: `CheckpointErrorReason` +3; exports: none; wire: `CheckpointError.detail.reason` on `resume.parent_constraint_mismatch`, `CheckpointSummary.rowVerdict.reason` (a damaged chain), `workflow.parked_decision_unused` `detail.rowReason`, `parked_resume.startup_failed` `details.detail.reason`)
76
+
77
+ - **Rule.** The chain digest binds the components each layer projects; a layer that projects none is judged live, whole, and `{ opaque: true }` and `{ components: [], requiresLiveRemainder: true }` are two spellings of that one value (the frozen deny layers execute no component of either; an edited approval is refused under either). The resume's chain comparison reads a re-supplied entry in the spelling the row recorded, then the row's digest decides as before. Both directions; rows parked by 7.69.x (`cpv1:`) and by 7.70.0 – 7.71.0 (`cpv2:`) alike. The mint is unchanged.
78
+ - **Widening (7.71.0 refused these, this release resumes them).** What the comparison cannot see is a layer's live part: an opaque policy swapped for another opaque one resumed before this release too. With the spelling read as one value, a card whose root layer also moved between the two spellings resumes now. Measured on a real Runner, the spawning runner and a fresh one alike: recorded `createApprovalPolicy({ requireApproval, approve })` (no `deny`, no `denyByDefault`) and handed back a bare opaque policy; recorded `combinePolicies(opaque, createAllowDenyPolicy({ deny }))` — the deny list behind an opaque child is not projected — and handed back the opaque child alone; likewise a deny list behind a child that projects with a live remainder (`combinePolicies(createApprovalPolicy({ requireApproval }), createAllowDenyPolicy({ deny }))`, its deny list cut off the same way) handed back as a bare opaque policy; recorded an empty list first (`combinePolicies(createAllowDenyPolicy({}), p)`) and handed back `p`; recorded an empty list last (`combinePolicies(p, createAllowDenyPolicy({}))`, `p` an opaque policy — a `createPermissionRulePolicy` among them) and handed back a bare opaque policy; each of these the other way round; and, read on the comparison alone, two layers that project no component swapped (a 7.69.x row's layers have no kinds; two layers of one kind). The bound: the step the person approved runs (it is not judged again — KL-5302-c), and every later step is judged live under the policy handed back now — a rule the handed policy carries asks or refuses as it does on a fresh run, a rule it dropped is gone (measured: `rm next.txt` under a handed `Bash(rm:*)` ask rule is asked; a handed `createApprovalPolicy` is asked for the next call it covers).
79
+ - **Not moved.** Every other spelling difference still refuses, as in 7.71.0: an observer appended (only the remainder bit flips), the empty list alone (`requiresLiveRemainder: false` is not opaque), an observer in front of a recorded projection (its components are not projected), component order or repeats, name order or repeats, one deny list split in two, and every real change (a deny added or dropped, an allow list changed, a shell field, a layer's kind or mandate, layer count, the order of layers that project components or differ in kind). A row whose own chain was edited to the other spelling authenticates nothing more: the recorded digest is what the comparison ends on. The parked step is still not judged again under the policy handed now (KL-5302-c, measured on this release's integration head).
80
+ - **Hard-breaking (open to veto @server @cli @client-core).** `CheckpointErrorReason` gains `constraint_changed` (the chain the resume runs under is not the row's: another layer count, or a layer whose facts or frozen deny data differ — hand back the chain as parked, or deny the card), `constraint_chain_damaged` (the row's own chain does not match the digest it records — expire it; the row verdict's `reason`, its sentence key `resume.parent_constraint_mismatch|constraint_chain_damaged`, `terminal: true` as before) and `constraint_unjudgeable` (an entry that is neither one policy nor one installation, a judgment that threw — the host checks the chain it hands). Every refusal the engine answers on `resume.parent_constraint_mismatch` now names one of six causes (with the three `installation_record_*`); a table exhaustive over the set is tsc-red until it places the three words — `CheckpointError.detail.reason` is typed by the set, so a switch exhaustive over a refusal's `detail.reason` is too — and a reader that took "no `reason`" to mean a damaged row reads `constraint_chain_damaged` instead. The code, its startup cause (`configuration`), `DeniedBy`, notice codes and exports are unchanged.
81
+ - **One pass-through closed.** A mismatch thrown from inside a layer without a cause (passed through as it was thrown while the chain was rebuilt or judged) is answered with `constraint_unjudgeable` through the engine's one copy of a refusal (`copyOfCheckpointError`), which reads a host instance's message, detail members and `cause` under a guard and carries none that throws when read. So a host's `CheckpointError` whose `cause` getter throws keeps the code on an approve (the refusal is `resume.parent_constraint_mismatch` / `constraint_unjudgeable`, the card pending), and a deny of such a card now stops the agent under that code, its checkpoint expired — 7.71.0 lost the code on that deny (the receipt said `parked_resume.startup_failed` with no code, the card stayed pending).
82
+ - **Readers.** The stopped agent's receipt names `code, reason`; the parked-resume startup receipt (`parked_resume.startup_failed`) carries `details.detail.reason`; a listing's `rowVerdict` for a damaged chain carries `reason: "constraint_chain_damaged"`; a workflow's parked child still reads only the code (`host_changed`, `changed: "parent_chain"`), and its `workflow.parked_decision_unused` notice carries `detail.rowReason: "constraint_chain_damaged"` for a damaged chain. After the upgrade a pending decision whose own card is intact, held back by such a card beside it, is told once more (its state reads differently); the damaged card's own decision, settled for good, is not told again.
83
+ - **Pins.** `test/backlog5302d-one-spelling.test.ts` (A1 – A6 the reading on both row generations and the digest still deciding; A7 – A24 every other spelling refused; E1 – E4 a real Runner, both arms and stores; F1 a v7.69.0 row's own bytes; C4 KL-5302-c as it stands), `test/backlog5302d-mismatch-cause.test.ts` (R1 – R9 each cause where it is minted, the pass-through, the receipt), `test/backlog5302d-live-remainder.test.ts` (L1 – L5 the widening, each shape pinned as the behaviour it is; S1 / L6 / S2 the host seat's shape on a cpv2 row and a v7.69.0 row: resumed, the next call that needs approval reaches `approve`), `test/backlog5302d-host-refusal.test.ts` (H1 – H3 a host refusal whose `cause` getter throws, both runners, a direct resume and the drive, approve and deny; H4 the one copy).
84
+
85
+ ### A caller tool's declared read target is judged by the file read station — element by element, as the Read tool's target is — and the tool reads it only through the judged-read port `ToolExecuteContext.judgedReads` (#4770; behavior change: a narrowing, open to veto @server @cli @client-core @test; hard-breaking: nine, below; closed sets: new `JudgedReadsUnavailable` (`no_read_station` / `not_judged`); new values on members typed `string` (not closed sets — no compiler sees them, a consumer that switches on them does): the engine card `details.type` `read_targets_refused`, `tool_end.errorCode` `read_target_not_a_path` and `read_targets_over_limit` (and `read_unestablished` now also ends a declared read), `probeCause.code` `read.outside_roots`; exports: +5 — types `JudgedRead`, `JudgedFile`, `JudgedReads`, `JudgedReadsUnavailable`, value `JUDGED_READS_UNAVAILABLE`; types widened: `CallTargetReading` (+`each`), `ApprovalTargets` (a list per role); wire: `pathTarget.each` on the declaration, the roster row and the call face; a parked approval's `targets` may hold a list)
86
+
87
+ - **One judge.** A call of a tool the engine did not mount for the leg itself — judged by where the tool was mounted, not by its name: a `TaskSpec.tools` entry or an MCP tool under its server's `toolFaces`, whatever name it answers to — whose face declares `pathTarget.access: "read"` is a member of the file read station, judged on its own declaration: every target resolved as Read resolves one (canonical key, devices, the read-deny table and its built-in tiers, the roots, the read face, `blockReadsOutsideRoots`). A target the read would refuse refuses the whole call at the gate (`deniedBy: "read_boundary"`, the Read tool's sentence and card); targets outside the roots are one question — the Read tool's own (`file_tool`: a person answers it, `bypassPermissions` releases it, `auto` puts it to the classifier, `dontAsk` and headless refuse it) — naming every target a yes admits (a sentence that cannot hold them all says how many more there are; the card's `details.targets` lists every one) and offering a directory only when it holds all of them; the ask a host's `onAsk` receives and the parked row carry the list as `probeCause` (`code: "read.outside_roots"`, `roots: { shown, total }`, at most 8 shown) before anyone answers. Before: such a call met only the Read rules; the deny table, the roots and devices never judged it.
88
+ - **Several targets.** `pathTarget.each: true` (only with `access: "read"`): the slot takes a string or a list of strings, and each element is judged as a single target is — by the station and by every reader of the slot: the permission-rule lanes (a person's, a policy's `Read(...)` deny or ask row on any element reaches the call; an allow by path admits it only when it admits every element), an argument rule on the slot (`Tool(paths:…)` under `primaryFieldGeneric: "allow-lexical"`: a deny or ask on any element reaches the call; an argument rule is a deny or ask rule only — a policy holds no allow rule, `unsupported.allow`, and an allow list refuses a caller tool's rule content, `content_unsupported`, as on 7.71.1), a sensitive-path list whose `tools` names the tool (a guarded element refuses the call), and a parked approval (the row binds every element's landing; one that moved before the approval vetoes it, `resume.target_moved`; the resume compares the very landings its read station judged and its port opens, never a second reading). A call names at most 100 targets (one judgment takes about 1 ms per target on a local environment; the bound keeps a slow remote one well inside the gate's 30 s deadline); one that names more is refused at the gate, the bound named.
89
+ - **One reading of a declared slot.** Which spellings of the slot (`param` and its aliases, deduplicated) are read is decided without reading a value: the spellings that are the call's own keys (`Object.hasOwn`) when at least one is present, otherwise every spelling of the slot by ordinary lookup (inherited keys included, so such a call is still judged). An own key whose value is `undefined` still counts as an own key, so it hides any inherited alias from both readers (`v7.71.1`'s sensitive-path list fell through and read the inherited alias). Each chosen spelling is read once per reader — once by the read station's selection and once by the sensitive-path list, not once across the whole call (other parts of a call read the arguments too), with no fallback to `pathTargetValue` in either reader. One more read belongs to the selection reading (the read station's and the rule lanes'), never to the sensitive-path list: on a slot that carries no value, a face that declares `patternParam` has that key read by ordinary lookup as the pattern — a second read when it names a spelling already read (admitted at the door), the first read of an inherited alias an own key hid. `undefined` is absent (an own `undefined` still selects the own keys and names no explicit target; the absent-slot rule may still select the base); with `each: true` a list expands to its elements (an empty list names none); every other value is handed on as read, and each value or element so selected that is not a non-empty string — `""`, a list in a slot that names one target, a number, a list's element of another type — refuses the call whether own or inherited and whether or not the slot names several (it was read as "no target"), with the card `details: { type: "read_targets_refused", code: "read_target_not_a_path" }` (`tool_end.errorCode` `read_target_not_a_path`); the bound below refuses with `read_targets_over_limit`. This reading is the declared read's only: the engine's file tools, a tool that declares no read target (whatever alias it answers to), and every write judgment — the write fences, the frozen specification surface, a sensitive-path list's write half — read the spelling the tool opens, as before (note: the rule lanes' views of any tool's target are now taken from one selection reading where candidate two took two — with stable arguments, the same spellings selected and candidate two's fallback resolving the same target nothing changes, while a getter returning different values across reads is judged on its first answer rather than its second). At the door a read slot that names one target must take strings only, read off the schema's meaning — `type: "string"` or a list of string types, an `allOf` with a string branch, an `anyOf` / `oneOf` all of whose branches are strings, a string `const` or `enum` — any one of these keywords is enough, since a value meets every keyword of its node (a nullable `type` beside a string `enum` is a string slot); a list, a union that admits something else, an untyped slot or a form the door does not read is refused `config.tool_face_invalid`, the sentence saying which.
90
+ - **The read-only band.** The station judges a declared read there too (it judges none of the file tools, whose own fence answers): a target the Read tool's fence would refuse — outside the directories included — is refused at the gate; there is no question on that band. Before: nothing judged a declared read on it (an MCP server was sent a credentials path under `bypassPermissions`).
91
+ - **The port.** `ToolExecuteContext.judgedReads` is present on every call of a caller tool that declares a read target: `{ kind: "judged", targets }` — per target `{ spelled, key, open() }`, present once the station's judgment of the WHOLE call has landed and let it through; `open` judges the station's key again, binds the object there (`openBound`), judges once more and hands over the held object (`JudgedFile`: `size` / `readBytes` / `list` through the per-entry deny judge / `close`) — or `{ kind: "unavailable", reason }` (`no_read_station`: the leg has no execution environment; `not_judged`: no judgment of the whole call let it through — the call skipped the gate). A declared read the station does not answer before the gate's deadline (or cannot answer) is refused and not run (`errorCode` `read_unestablished`; its later answer is not recorded; the sentence tells a one-target call to try again and a several-target call to split its targets over several calls) — a caller or MCP tool has no fence of its own after the gate; the engine's Read keeps its answer and its fence. A resumed declared read that no station on the resumed leg judged is refused the same way, never read again by name. An execution environment the leg makes from `RunnerDeps.executionEnvFactory` is made for a declared read alone. An environment that cannot hold the object answers `not_supported`: the target is never read by name instead.
92
+ - **`CallTargetReading` (exported).** A slot that names several targets carries every element's views under the new member `each` (`{ protective?, declared? }`, slot order); `protective` / `declared` are absent on such a reading. **Hard-breaking (behavior; @server @test):** a host policy that reads those two members sees no target for such a call — read `each` as well.
93
+ - **Hard-breaking (types; @server).** `ApprovalTargets` (exported) widens: a role's value (`protective`, `declared`) may be a list of landings (`readonly (string | null)[]`) for such a slot — a host that reads a parked row's `targets` as one string per role gets a compile error; an engine before 7.72.0 resuming such a row vetoes it as damaged (`resume.target_moved`). The widening reaches every exported type that holds a parked `tool_approval` row (`PendingAction`) or a store of them; the manifest names `CheckpointPause` (`pendingAction`), `pauseOf`, `RunInternals` (`details`) and, in `@sema-agent/core-stores-sql`, `SqlStorageBackend` (`checkpointStore.get(...).gate.kind`) — each the path where the compiler's comparison failed; read by code, what moved under them is the row's `targets` (the only other change under a parked row is the optional `each` on its `pathTarget`). `RunInternals` carries a second finding too: its `rootPolicy` reaches `ShellReadRefusalDetails` through a decision's `attestation.stationRefusal.details` (`EngineAttestation`), the arm named below — read by code, which of the two its `details` path is was not measured. The same reader breaks through them, and so does code that assigns an engine row to its own 7.71.x copy of the row type or keeps `pauseOf` in a variable of its 7.71.x type (read by code, no compile probe: a store whose method signatures use the 7.71.x copy still compiles, method parameters being compared both ways); one that passes rows through unread does not. `ShellReadQuestion.details` (`ShellReadRefusalDetails`) gains the arm `{ type: "read_targets_refused", code }`: a switch exhaustive over `details.type`, or code that assigns `details` to a type spelled from the 7.71.x arms, fails to compile.
94
+ - **Known limits.** KL-4770-a (no execution environment: no port), -b (an environment that cannot hold the object), -c (paths, not file identity), -d (the port reaches the tool's callback only), -e / -f (an `openBound` an adapter implements in a shell), -g (an MCP tool so declared: judged at the gate once, its server opens the path by name; refused where the leg has no station).
95
+ - **The load warning's sentence** ("a caller's tool that declares no permission seat answers for itself") gains: a read target it declares is judged by the read station whatever its seat.
96
+ - **Hard-breaking (run time; @server @cli).** A caller or MCP tool that already declares a read target: a target on a deny row, a device or outside the roots is now refused or asked about before the tool runs, in every permission mode (bypass releases the out-of-root question only). A probe that pinned "served with no question" turns red.
97
+ - **Hard-breaking (run time).** A list target: one refused element refuses the whole call.
98
+ - **Hard-breaking (run time; @server).** A declared read call that names more than 100 targets, or carries a value that is not a path in its slot (any alias included), is refused at the gate.
99
+ - **Hard-breaking (prepare time).** A read target on a parameter the schema types as a list, a union that admits something other than a string or no type at all (read as above: one keyword that admits strings only makes a string slot), declared without `each`, is refused `config.tool_face_invalid` (its other values were silently never judged); so is `each` on a non-read access, on a parameter typed as a scalar or an object, or with a value that is not a boolean. An MCP overlay so declared is not mounted until it fits (announced `config.tool_face_invalid`), as every refused overlay is.
100
+ - **Hard-breaking (wire; @cli @client-core).** The roster row's and the call face's `pathTarget` carry `each: true` when declared: a strict validator of the row that refuses unknown members refuses such a row until it admits the member. A `path_not_in_root` card that names several targets carries `targets` (every one; `target` stays the first) — a new optional member. `LiveApprovalObject` gains the optional `landings`.
101
+ - **Hard-breaking (wire, new values on string members a consumer may switch on; @server @cli @client-core @test).** None of these members is typed as a closed set, so nothing fails to compile; a consumer that switches exhaustively on any of them meets a word it does not know: the engine card `details.type: "read_targets_refused"` (with `code`, below); `tool_end.errorCode` `read_target_not_a_path` (a value in a declared slot that is not a non-empty string) and `read_targets_over_limit` (more than 100 targets); `read_unestablished` — a word since 7.34.0 for the shell's reads — now also ends a caller or MCP tool's declared read (the station did not answer in time, or the leg has no station; card `read_unestablished`); `AskRequest.probeCause.code` and the parked row's `riskDescriptor.probeCause.code` gain `read.outside_roots` (the targets outside the roots a yes admits; `code` is typed `string`, so a compiler does not see it — a consumer that maps codes to prose does).
102
+ - **Hard-breaking (run time; @server @cli).** An MCP tool whose `toolFaces` declare a read target, on a leg with no execution environment (no `executionEnv`, no `executionEnvFactory`, a factory that gives none, or hands switched off): refused at the gate with `read_unestablished` and never sent to its server, on a fresh leg and on a resumed one — nothing on such a leg can judge the paths, and the server opens them itself. Before: it was dispatched with the model's path unjudged (asked about as any tool in `default`, run outright under `bypassPermissions`). Give the Runner an execution environment or drop the declaration. A caller tool so declared still runs and is handed `no_read_station` (KL-4770-a).
103
+ - **Pins.** `test/backlog4770-caller-read-target.test.ts` (① the station's judgment in four configurations; ② the port hands over the held object only, the station's deadline, an admitted outside element; ③ a person's Read rules on every element; ④ no read station; ⑤ the door's refusals; ⑥ a child's injected tool; ⑦ every reader of a list slot — a parked list approval, a sensitive-path list, an argument rule, the directory offer; ⑧ the read-only band, an MCP tool among them; ⑨ / ⑬ / ⑭ one reading of a slot and of its schema; ⑩ / ⑯ a resumed list approval and a resumed declared read; ⑪ the bound of 100 and the card that lists every target; ⑫ a tool that declares no read slot, and every write, as before; ⑮ the ask, the station's silence, the environment a declared read needs; ⑰ an MCP declared read where no station can judge it) · `test/backlog4770-pdf-one-snapshot.test.ts` (S1 – S3 a PDF read through the held object: rewritten in place, swapped for a link, an adapter that refuses the converter).
104
+ - A command's non-traversal operand that is a bare numeric link to the process's own descriptor (for example `/proc/self/fd/<n>` or `/dev/fd/<n>`; also through `thread-self`, a thread's `task/<tid>/fd/<n>`, the program's own root links, or with a trailing `/`; `<n>` any run of decimal digits) is placed as spelled by the read station's canonical read (#4791): it no longer asks the engine's own process where it leads (that answered for whatever the engine itself held open, never for the command's process); a recursive walk rooted at a descriptor the text rebinds (`grep -rh privateKey /proc/[s]elf/fd/3 3< ../data`) stays unestablishable as before. A spelling the device table exempts (`/dev/fd/<n>`, or `/proc/self/fd/0` – `2`, that the device check establishes as not rebound — a binding it cannot read, or a named one for a descriptor of 3 or more, counts as rebound) is exempt as before; any other such link is judged at its spelling against the configured roots — outside them unless a configured root contains that spelling (for instance, a root at `/proc`); on a roots-limited read face the full shell asks `outside_roots`, and the read-only and rejudge seats refuse it — and a person's path-allow rule, which admits canonical places, does not admit it; the redirection that opens the descriptor is judged on its own target, and other passes (the station's existence checks — a speculative word confirmed missing, an `onlyIf` fact — and the write-protection pass) are unchanged. Pin: `test/backlog4791-own-fd-operand.test.ts`.
105
+
106
+ ### An unreadable park card states which of three causes happened (`AgentPark.unreadableCause`: `no_seat` / `store_failed` / `status_unknown`) and its sentence says the cause (#5236)
107
+
108
+ - **Rule.** `readAgentState` now sets the optional member `AgentPark.unreadableCause` (closed set `AGENT_PARK_UNREADABLE_CAUSES` / `AgentParkUnreadableCause`, exported frozen from the package root) whenever `park.state` is `"unreadable"` and omits it otherwise: `no_seat` when this face was given no checkpoint store, `store_failed` when `store.get` threw on this read (no thrown message or path is surfaced), and `status_unknown` when the card was read but carries a status word outside `"pending" | "resolved" | "expired"` (preserving the card's `gate`, identity and `deadline`).
109
+ - **Behavior change.** `agentParkSentence` now renders a cause-specific sentence for each of the three causes — stating what the host/person can act on without naming implementation words — while keeping the closing clause `"it may be waiting for an approval decision."` word for word. `missing`, an absent `park`, and an `"unreadable"` park without `unreadableCause` keep the existing blind sentence byte for byte.
110
+ - **Additive.** One optional member (`AgentPark.unreadableCause`), one frozen closed set of three words (`AGENT_PARK_UNREADABLE_CAUSES`), and its root exports (`AGENT_PARK_UNREADABLE_CAUSES`, `type AgentParkUnreadableCause`).
111
+ - **Hard-breaking: none.** `AgentParkState` keeps its exact five words (exhaustive consumers over `park.state` do not break), and `unreadableCause` is a new optional member. A consumer that deep-compares the whole `park` object, or pins the old sentence `"cannot be read here"`, will see its probe go red (an `unreadable` park now carries `unreadableCause`, and the sentence differs per cause).
112
+ - **Pins.** `test/backlog5236-park-unreadable-cause.test.ts` ((a) `no_seat`, (b) `store_failed` with thrown-message non-leakage, (c) `status_unknown`, (d) `missing` / `pending` / `resolved` / `expired` controls, (e) frozen root export and closing clause, (f) backward-compat without `unreadableCause`, (g) a real Runner with a parked background sub-agent and a throwing store: `store_failed` on the live and the durable poll, with no marker or path leaked).
113
+
114
+ ### The namespace rule's judge is a root export: `isNamespaceCredentialName(name)` answers whether a name is a credential slot of the engine's own `SEMA_` namespace — the names `inheritEnv: "all"` still withholds (#5240)
115
+
116
+ - **Additive.** One function, exported as the engine holds it (`src/core/secret-env.ts`): a credential word as any `_` segment of a name that starts with `SEMA_` (`SEMA_MODEL_KEY_<entry>`, `SEMA_WEBSEARCH_KEY_<provider>`, `SEMA_TOKENS_TOTAL`). A host that reads the variable names a request names explicitly asks it and gets, name for name, the answer the `"all"` inheritance arm acts on. No word list or prefix constant is exported with it.
117
+ - **Behavior change: none.** The engine's two readers of the rule (the scrub's name judgment and the `"all"` arm) read the same function as before.
118
+ - **Hard-breaking: none.** Exports: +1 (`isNamespaceCredentialName`); closed sets: none; wire: none. Consumers: @server can drop its own copy of the reading and ask this one.
119
+ - **Pins.** `test/backlog5240-namespace-judge-root-export.test.ts` (R1 the root carries the engine's function; R2 / R3 one sample table read by the root export and by `hostChildEnv({ policy: "all", settingsEnv })`, both answers present).
120
+
121
+ ### A refused read of another person's artifact says who refused it: `deniedBy` (`mode` / `classifier` / `ask_resolution`) and, for the ask's resolution, `settlement` — words of the engine's existing `DeniedBy` and `SettlementKind` sets (#5205)
122
+
123
+ - **Rule.** The consent gate on a shared artifact (`read`, and the files face `list_files` / `read_file`) refuses through one of three parties, and its refusal body (`artifact.refused`, `sharedRead: "not_approved"`) now names it as the tool gate names a refuser: `deniedBy: "mode"` (the permission mode refused, e.g. `dontAsk`), `deniedBy: "classifier"` (auto mode's classifier refused), or `deniedBy: "ask_resolution"` (the question was put and its resolution was no yes) with `settlement`, the `SettlementKind` the resolution's own engine record carries — `human_refused` (a person said no), `no_approver` (no approver is wired), `approver_unavailable`, `policy_refused`, a window or an abort, and so on. An approval that edited the request is still refused (it does not authorize the original target); its `settlement` is the allow that ended the wait (`human_allowed` / `policy_allowed`). The setting `sharedArtifactReads` refuses nothing (it allows or asks), so it is no refuser.
124
+ - **Sentences.** The mode's refusal reads "… was refused by the permission mode (…)", the classifier's "… was refused by auto mode's classifier (…)"; the resolution's keeps today's "… was not approved (…)". `sharedRead` keeps its one word.
125
+ - **Hard-breaking: none.** No new word in any closed set, no new set, no export; wire: the refusal body (the `tool_end` result's `details`) gains two members, `deniedBy` always and `settlement` beside `ask_resolution` — additive, absent from an older engine. Behavior: two sentences change, as above. Consumers: @cli @client-core @server can tell "the classifier stopped it" from "you said no" by the member instead of the sentence; a reader with a strict schema over the result body sees two more members.
126
+ - **Not covered.** The classifier's refusal carries its reason only (there is no cause word on it to add); other tools' in-tool consent questions were not swept.
127
+ - **Pins.** `test/backlog5205-shared-read-refused-by.test.ts` (W1 the mode; W2 the classifier; W3 a person's no; W4 no approver; W5 an edited approval; W6 the files face; W7 every word a member of its set).
128
+
129
+ ### The adoption refusal words are a runtime list: `ADOPTION_ERROR_CODES`, and `AdoptionErrorCode` is derived from it (behavior change: none; hard-breaking: none; closed sets: `AdoptionErrorCode` registered, its ten words unchanged; exports: +1 `ADOPTION_ERROR_CODES`; wire: none)
130
+
131
+ - **Additive.** `ADOPTION_ERROR_CODES` — the frozen array of the ten `AdoptionErrorCode` refusal words, exported from the package root and `src/stores/file/index.ts`; the type `AdoptionErrorCode` (exported before) is now derived from it, the same ten words. A host that lists or validates adoption refusals reads the array instead of copying the words.
132
+ - **Pins.** `test/adoption-error-codes-closed-set.test.ts` (the root through the package's `.` entry, the file-store index and the marker module hand one object; frozen; exactly the ten words in order; every `new AdoptionError(...)` code in `src/stores/file/adoption/` is one of them).
133
+
134
+ ### Two compactions whose summaries carry one timestamp no longer leave out rows that fit: the trimmed stretch knows a summary row by the compaction entry it renders, not by its timestamp (#5234)
135
+
136
+ - **Rule.** The context lane keeps the latest trimmed request's start while the view's first row stays, and a different first row (a compaction landed) ends that stretch. The first row was read off its role and timestamp, so two summary rows written in one timestamp unit (a frozen clock, a store that keeps timestamps to the second) read as one row: the earlier start was carried into the rebuilt view, and rows that fit were left out with no notice (measured on the functions: a 4-row view that fits lost 2). The session's entries become context in one place (`buildSessionContext`), and there the summary row now carries the id of the compaction entry it renders (`CompactionSummaryMessage.entryId`, in memory only: no store writes a summary message, the store format is unchanged); the stretch reads a summary row by that id. One compaction rendered again — another window that cuts its retained skills differently — is the same row and keeps the stretch. Every other first row, and a summary row built outside the session that names no entry, is read as before (role and timestamp).
137
+ - **Hard-breaking: none.** No export, no wire key. Type: the internal `CompactionSummaryMessage` gains the optional `entryId`. Behavior: in that one case the request after the second compaction carries the rows that fit (and a cut that is still needed starts afresh, with its notice). KL-5234-a: closed on the session and function levels; two same-millisecond compactions on a real Runner's request lane are not pinned.
138
+ - **Pins.** `test/backlog5234-trim-stretch-summary-identity.test.ts` (S1 two compactions in one millisecond with one summary text: two entry ids on the rendered rows; S2 one compaction under two windows: one entry id; I1 one timestamp, two entries, a view that fits: whole, no carried start; I5 the same entry with other text: holds; I6 one timestamp, text and count, two entries: ends; I2 the same summary read again: holds; I3 another timestamp: ends, as before; I4 a first row that is no summary, rebuilt: holds, as before; I7 a summary row naming no entry: role and timestamp, as before); `test/backlog5049-trimmed-turn-no-anchor.test.ts` TS unchanged.
139
+
140
+ ### Integration guide and known limits: four integration-guide statements, five known-limit rows and one rewritten retirement condition (documentation only; behavior change: none; hard-breaking: none; closed sets: none; exports: none; wire: none)
141
+
142
+ - **Docs.** `docs/INTEGRATION-CORE.md` (host hook re-creation contract across a parked resume, mixed-version reader upgrade order and `real_approval_damaged`, persistent HTTP 503 default retry count/wait and terminal-only provider reason, delegated child compaction frames not forwarded to parent stream), `docs/KNOWN-LIMITS.md` (`KL-4023-a`, `KL-4450-a`, `KL-2881-a`, `KL-2881-b`, `KL-shell-dialect-b`, and `KL-1102-n` retirement condition; with #5296's compiler judge, `KL-1341a` keeps only the bounds of what a manifest row describes, and `KL-5296-a` narrows to the one family the judge reads as not breaking by ruling).
143
+ - **Known (`KL-shell-dialect-b`).** On a host with no bash, where the engine falls back to `sh` to run commands (or where the host points the shell at `sh`), a word with braces or `$'…'` is read by the engine as bash reads it and by `sh` as a literal name: with a symbolic link of that literal name already in the workspace, such a command can read a file a deny rule guards, or a file outside the workspace, without an approval card. Way around: give the execution environment bash, or do not point the shell at `sh`. The fix is planned for 7.74.0.
144
+
145
+ ### Project-identity refusals carry machine-readable detail under a unified closed `kind` vocabulary, v2 memory write keys (`proj:` / `userproj:`) are checked against the leg's verdict before disk adoption, delegated children inherit their parent's project verdict as a low-priority default, and every prepared leg's wiring manifest carries the project verdict or unreadable-marker fact (#5268; behavior change: narrowing on v2 project writes + one case-normalization loosening with a marker, below; hard-breaking: three runtime narrowings under opt-in `scopeContract: "v2"` — a project write on a leg with no verdict, a declared-only leg writing another project, a host resume without `projectId` — below, @server; closed sets: new `PROJECT_IDENTITY_REFUSAL_KINDS`, new `PROJECT_MARKER_UNREADABLE_REASONS`; exports: +5; wire: additive optional `WiringManifest.project` and `WiringManifest.projectMarkerUnreadable`)
146
+
147
+ - **Structured refusal detail (P-e, R2, R3).** Project-identity and v2 memory project-write refusals keep their existing codes (`config.project_identity_mismatch`, `config.memory_project_marker`, `config.memory_project_marker_nested`, `config.memory_project_identity`) and surface machine-readable detail through the existing coded-detail exit (`terminal.detail = { kind: "coded", detail }`), unified on the closed `kind` discriminant (`PROJECT_IDENTITY_REFUSAL_KINDS`, 4 words, built with zero second read of the marker):
148
+ - `{ kind: "mismatch", declared, marker, markerPath }` when the marker was read and differs from `TaskSpec.projectId`;
149
+ - `{ kind: "marker_unreadable", markerPath?, reason }` for `"io_error"` | `"unparseable"` | `"not_uuid"` | `"nested"` — `markerPath` present when the marker sits at the task root itself, absent for one at a directory above it (the repository root above a task root, a nested level between them; measured by the release review: 7.72.0's candidate named `/project/.sema/project` for task root `/project/work`) — or `{ kind: "marker_unreadable", reason: "repo_root_unreadable" }` (omitting `markerPath`) when the ancestor `.git` walk fails — `reason` is strictly a closed word from `PROJECT_MARKER_UNREADABLE_REASONS` (5 words; no file content, no error text, and no out-of-workspace path in `detail`; `terminal.message` is unchanged; `resumeRefusalDetailOf` readers now receive that closed word for `marker_unreadable` where they previously received nothing);
150
+ - `{ kind: "write_project_mismatch", writeScope, writeProjectId, verdictProjectId, verdictSource }` when a v2 `proj:` / `userproj:` write key targets another project than the leg's verdict;
151
+ - `{ kind: "write_without_verdict", writeScope, writeProjectId }` when a v2 `proj:` / `userproj:` write key runs on a leg with no project verdict.
152
+ Delegated sub-agents refused this way surface the same detail on their own terminal.
153
+ - **Memory v2 write-target check against the leg's verdict (P-a, R4, R5, narrowing + one loosening).** Under `scopeContract: "v2"`, any write key carrying a project id (`proj:` or `userproj:`) is checked against the leg's ONE project verdict (marker OR declared `TaskSpec.projectId`) through the same case normalizer (`normalizeProjectId`) the verdict id uses (while preserving the host's written `writeScope` verbatim), and both the `markerFault` rethrow and this write check run BEFORE `adoptLegacyRepoDirs` so a refused leg mutates nothing on disk. **Loosening:** with a `.sema/project` marker present, a v2 `proj:` / `userproj:` write key whose project UUID is spelled in upper or mixed case is now admitted (where 7.71.0 compared case-sensitively and refused it). **Who is affected (narrowing / upgrade notes):** a sub-agent or workflow member in the same or a marker-less workspace under a declared-only parent writing the PARENT'S project is NOT refused (it inherits the parent's verdict via P-c below), and a child launched in another repository B with marker B gets verdict B (can write B's own project, and is refused `write_project_mismatch` if it writes parent A's project); a host declaring `TaskSpec.projectId` without a `.sema/project` marker that writes another project's `proj:` / `userproj:` key is refused (`write_project_mismatch`); a leg with no marker and no `TaskSpec.projectId` (including a child of a verdict-less parent) writing a v2 `proj:` / `userproj:` key is refused (`write_without_verdict` — declare `TaskSpec.projectId` matching the write key); a host that **resumes a parked background child** with a configuration carrying no `projectId` — the hard-breaking line below; and a sub-agent definition targeting another project than its effective verdict is refused (`write_project_mismatch`).
154
+ - **Delegated child default precedence (P-c, R1, F1).** A delegated child leg's (sub-agent or workflow member) project verdict follows one precedence: (1) what the child itself declares on `TaskSpec.projectId`, (2) the child's own workspace `.sema/project` marker (which beats the parent's verdict and never mismatches against it; an unreadable marker on a child declaring nothing yields no verdict and reports `onError`, identical to a root leg), (3) the parent leg's verdict id (passed via `RunInternals.parentProjectId` from the seat bound after `resolveSessionProject`, preserving mounts-first order) ONLY when (1) and (2) yield none. When a child runs in a directory with no marker and inherits its parent's verdict, its `workspace_changed` frame now reports `project: { id: <parent verdict id>, source: "declared" }` where it previously reported no `project` member (`source` stays the two-word union `"marker" | "declared"`). The verification leg (`src/agents/verify.ts`) does not inherit a resolved marker verdict; it receives the caller's `specBase.projectId` declaration directly.
155
+ - **Added (P-f): `WiringManifest.project` and `WiringManifest.projectMarkerUnreadable`.** Two mutually exclusive optional members on `WiringManifest` (effective half only, excluded from `configFingerprint`, projected from the leg's single `resolveSessionProject` read with zero second read):
156
+ - `project?: { id: string; source: "marker" | "declared" }` carries every prepared leg's project verdict from the same mint as `workspace_changed.project`, including legs that emit no workspace snapshot (`hands.reason: "not_needed"`). Absent when the leg has no verdict or the marker could not be read.
157
+ - `projectMarkerUnreadable?: { readonly reason: ProjectMarkerUnreadableReason; readonly markerPath?: string }` is present iff a prepared leg ran in a workspace whose `.sema/project` marker could not be read (or whose ancestor `.git` walk failed), reusing the closed `PROJECT_MARKER_UNREADABLE_REASONS` set with `markerPath` passed through the same `codedDetailStringOf` redaction/size screen as P-e `terminal.detail` (redacted when credential-shaped, omitted when oversized, when the marker sits above the task root, or when `reason === "repo_root_unreadable"`) and carrying no file content or error text (not mirrored on `workspace_changed`; hosts leave their stored project row untouched on it). Never present beside `project` (a leg declaring `TaskSpec.projectId` beside an unreadable marker is refused and emits no manifest; a delegated child in an unreadable-marker checkout gets no inherited `project` and reports `projectMarkerUnreadable` on its own manifest).
158
+ - Limits: only prepared legs emit a manifest (a refused leg has no manifest; its coded refusal detail rides `terminal.detail`), and a delegated child's manifest rides the child's own stream, never forwarded onto the parent's. Readers: the service layer and the client library (`@sema-agent/client-core`).
159
+ - **Contract text (P-g, R3, P-f).** `TaskSpec.projectId` JSDoc and `docs/INTEGRATION-CORE.md` state the host's duty (everything chosen by project for a leg must be picked at the same moment and from the same value as `TaskSpec.projectId`), that every new leg (resume, wake, delegated child, fork) is judged afresh from the declaration handed to it, where to read the verdict (`wiring_manifest.manifest.project` and `workspace_changed.project`, plus the two manifest limits), and all four `kind`s with their members and five `marker_unreadable` reasons.
160
+ - **Root exports (+5 of this release's 21 new root names; the release removes one, `sessionLaneScopeOf`, under #5088 — the export-surface snapshot reads 3912 names on 7.71.1 and 3932 on 7.72.0).** `PROJECT_IDENTITY_REFUSAL_KINDS`, `PROJECT_MARKER_UNREADABLE_REASONS`, `ProjectIdentityRefusalKind`, `ProjectMarkerUnreadableReason`, `ProjectIdentityRefusalDetail`. Both closed sets are registered in `docs/CLOSED-SETS.md`.
161
+ - **What does not change.** Error codes (`config.project_identity_mismatch`, `config.memory_project_marker`, `config.memory_project_marker_nested`, `config.memory_project_identity`, `config.project_id_invalid`); `terminal.message` on unreadable markers; v1 memory keys (without `scopeContract: "v2"`, keys remain opaque and byte-identical); cross-project reads (`scopes` reading other projects, `writeScope: null`); write keys without a project id (`user:`, `userlocal:`, `org:`, legacy); physical memory mount directory keying (still marker-only); `memory.projectKey`; all existing closed sets.
162
+ - **Hard-breaking (run time, opt-in `scopeContract: "v2"`; @server) — three legs that complete on 7.71.1 are refused (measured: the release review's probe, the same cells on the v7.71.1 tree and this one).** 7.71.1 checked a v2 project write key only beside a `.sema/project` marker. (1) A leg with no marker and no `TaskSpec.projectId` whose effective write key (`memory.writeScope`, or the last entry of `scopes` when `writeScope` is omitted — a read-only `scopes` entry with `writeScope: null` is allowed without a verdict) carries a `proj:` / `userproj:` key: completed on 7.71.1, refused now (`config.memory_project_identity`, `detail.kind: "write_without_verdict"`) — declare `TaskSpec.projectId` matching the key. (2) A leg that declares `TaskSpec.projectId` in a checkout with no marker and writes another project's `proj:` / `userproj:` key: completed on 7.71.1, refused now (`write_project_mismatch`) — write the declared project's key, or declare the project it writes. (3) A host that resumes a parked background child under `scopeContract: "v2"` with a configuration carrying no `projectId` gets a leg that is judged anew from what the host hands it and from the leg's own workspace marker (nothing is inherited across a host resume; a readable marker still decides the verdict); with neither, the leg has no verdict, and a project-memory write (`proj:` / `userproj:`) that completed on 7.71.0 now refuses (`config.memory_project_identity`, `detail.kind: "write_without_verdict"`) with the checkpoint card reopened as pending when the hand-back succeeds — pass the same `projectId` on the resume configuration and it runs. (The engine's own wake of a retained child uses the child's birth snapshot, so the two routes differ on purpose: a host resume is the host's word.) (3) is (1) met on a host resume. No compile-time or wire break: the two new root closed sets (`PROJECT_IDENTITY_REFUSAL_KINDS`, `PROJECT_MARKER_UNREADABLE_REASONS`) and three detail/union types are purely additive exports, no existing export is removed or retyped, no existing closed set changes members, and no new error code is added.
163
+ - **Pins.** `test/backlog5268-p15-project-refusal-detail.test.ts` (P-e + R2 + R3: `mismatch` with single read, all 5 closed `marker_unreadable` reasons including `repo_root_unreadable` without `markerPath`, a marker above the task root not named, symlink secret redaction, control-char/envelope-tag redaction, sub-agent terminal detail, root closed-set exports), `test/backlog5268-p15-memory-write-verdict.test.ts` (P-a + R3 + R4 + R5: declared and marker `proj:` / `userproj:` `write_project_mismatch` + match, `write_without_verdict`, cross-project read, non-project write key, v1 opaque byte-identity, sub-agent own memory refusal, empty root, C2 uppercase UUID match + mismatch, no legacy-dir disk adoption on refusal), `test/backlog5268-p15-child-default-declaration.test.ts` (P-c / R1 / F1: B1 declared-only parent + sub-agent, workflow member, marker-verdict parent to marker-less child, wrong-project mismatch, child own declaration wins + judged afresh, no-verdict parent control, verifier leg forwarding `specBase.projectId`, retained wake + parked resume, cross-repo `Agent({ cwd: repoB })` cells F1-1..F1-5), `test/project-verdict-on-wiring-manifest.test.ts` (P-f: root declared + workspace-less `not_needed`, marker, neither absent, delegated child own stream vs parent stream, resumed leg judged afresh, refused leg no manifest, same-leg equivalence with `workspace_changed.project`, and `projectMarkerUnreadable` across all 5 closed reasons, never-both invariant, delegated child in corrupt checkout, and absent on healthy legs + fingerprint exclusion), `test/backlog5268-p15-project-contract-docs.test.ts` (P-g + R3: contract clauses and full 4-kind / 5-reason vocabulary in `TaskSpec.projectId` JSDoc and `docs/INTEGRATION-CORE.md`); re-pinned: `test/backlog2291-session-facts-frame.test.ts` (declared-only write-target cell reversed per P-a; mismatch cell asserts coded detail), `test/memory-dual-root.test.ts` (7 `it()` cells over 11 runs) and `test/backlog4867-memory-tail-segment.test.ts` (`D1 dual roots`) supply matching `projectId` for their v2 `proj:` write scopes.
164
+
165
+ ### A forked session's rewind neither writes, deletes nor re-modes any file outside its root — each such file is left as it is (`leftAsIs`, class `recorded_outside_root`) (#4505; behavior change: a narrowing; hard-breaking: two, below, open to veto @server @cli; closed sets: none; exports: none; wire: none)
166
+
167
+ - **Before.** A forked session's file history can hold entries for files outside the fork's root (legacy pre-7.68.2 whole-copy carries, a fork id reused on a bare-scope host repo, or the fork's own edits). Rewinding the fork could delete or overwrite a file outside its root that belongs to its source session (measured on the base: a source-created outside file written again by the source was deleted by a fork rewinding to the inherited turn, answering `complete` with `leftAsIs` empty).
168
+ - **Rule.** When the session being rewound has a provenance (its row carries `forkedFrom` other than its own id — read at `Runner.rewindFiles` preview/perform, a run's rewind, and `Runner.readSessionChanges` `since` / newest checkpoint), the engine's restore view (`envViewOf`) judges every mutation by the real path `applyFileRestoreViaEnv` states at `REAL_PATH_SEAT`: any file whose real path lies outside the rewind's root is neither written, deleted nor re-moded — one the restore would change is left as it is (`leftAsIs`, class `recorded_outside_root`, `place` = the file's directory, `outsideRoot: true`, not in `files` / `filesChanged`; a restore whose every in-root file converges stays `complete`); one already as recorded needs no change and is reported with the files already as recorded (`identicalSkipped`), not in `leftAsIs`, as on every rewind (measured by the release review, the same on 7.71.1). If the rewind root's real path cannot be read, the file is refused `link_safety` (neither written nor deleted, outcome `partial` rather than `complete`) instead of being called `recorded_outside_root`. In `Runner.readSessionChanges` (`since`), a left outside-root file reads `status: "uncompared"`, `lines.uncounted: "recorded_outside_root"`. While this rule is active, a mutation whose real path the view was not told is refused: a plan with an unplaced mutation is refused as a whole (`rewind.restore_failed`, `permanence: "terminal"`, nothing written or deleted), and a performing view refuses an unplaced mutation with `precondition_failed`.
169
+ - **Who is affected and what they lose (narrowing).** Every forked session whose row carries `forkedFrom` — including every session produced by `warmResume` (which forks before continuing after a failure or timeout, `src/core/warm-resume.ts`), every session created by the terminal's `/branch`, and any host or sub-agent fork — no longer rewinds its own edits to files outside its root (`additionalDirectories` included). Those files the rewind would change are left as they are and named in `leftAsIs` (on the verb's preview and answer), in the run's `restore_left_as_is` note, and in the once-per-session `rewind.file_left_as_is` notice; both the note and the notice now state one unified reason covering both causes (recorded under another root, or a forked session whose rewind leaves every file outside its root untouched) and naming both ways out (for an unforked session, rewinding from the root it was recorded under; for a forked session, rewinding in the source session or restoring it by hand). A host `FileHistoryStore` that does not restore through `applyFileRestoreViaEnv` on the `ExecutionEnv` it is handed has a forked session's rewind refused as a whole instead of performed.
170
+ - **Unchanged.** A non-forked session's rewind of its own outside-root edits restores them as before; a fork's rewind of files inside its root (inherited turns included) restores them as before whenever the rewind root's real path can be read; direct calls to `planFileHistoryRestore` without `forkedSession` plan as before (`planFileHistoryRestore`'s `forkedSession`, its plan's `unplacedForFork` and `witnessEnvOf`'s fourth parameter are new optional members of internal functions and their plan type, none of which is a package export).
171
+ - **Known limits.** `KL-4328-d` updated: three holes remain (a host session repo that does not stamp `forkedFrom` on the row; a non-fork session reusing an id on a bare-scope host repo; two unrelated sessions writing one outside-root file).
172
+ - **Hard-breaking (run time; open to veto @server @cli): two.** (1) Every forked session — each one `warmResume` produces, each `/branch`, any host or sub-agent fork — no longer rewinds its own edits to files outside its root, `additionalDirectories` included: they stay as they are and are named in `leftAsIs` (measured: the release review's probe, a fork's edit in an additional directory rewound — on 7.71.1 restored to the recorded text, on 7.72.0 left as edited, `recorded_outside_root`). A host or a person that relied on undoing such an edit by rewinding the fork rewinds in the source session or restores the file by hand. (2) When a forked session's rewind root's real path cannot be read while a nested parent directory inside the root can, 7.71.1 restored a fork's edit inside the root; 7.72.0 refuses it `link_safety` (outcome `partial` on the verb, `rewind.restore_failed` on a run leg, file untouched), because the rewind cannot establish whether the path lies inside the root (pin R9, `test/backlog4505-forked-rewind-leaves-outside-root.test.ts`). No compile-time or wire break: no export change, no `FileHistoryStore` or `FileHistoryRestoreOptions` contract change, no new closed-set word — `recorded_outside_root` already exists in `FILE_HISTORY_LEFT_AS_IS_CLASSES`, `link_safety` already exists in `FILE_HISTORY_REFUSAL_CLASSES`, no new error or notice code. A probe that pins a forked session's rewind restoring a file outside its root goes red.
173
+ - **Pins.** `test/backlog4505-forked-rewind-leaves-outside-root.test.ts` (R1–R6 across file and memory stores, R2b user-visible `rewind.file_left_as_is` notice and `restore_left_as_is` note on a fork's own outside/inside create-and-rewind, R7 real path vs key spelling through a symlink, R8a/R8b unplaced mutation on whole rewind and performing view, R9 unreadable rewind root refused `link_safety`, C1–C3 controls, K1 `KNOWN LIMIT (KL-4328-d)`), re-pinned `test/backlog4968-frozen-twin-one-outcome.test.ts` (`③` unified `recorded_outside_root` sentence) and `test/backlog4500-reroot-left-as-is.test.ts` (`#4505 readings (2)`).
174
+
175
+ no-notes: #4459(slice 3-a was merged onto this line and taken off it again after failing two review rounds; nothing of it ships in 7.72.0 — behaviour as in 7.71.0)
176
+ no-notes: #4492(named only by the commit that re-keys its B2 half under #5088; the behaviour is the #5088 section's)
177
+ no-notes: #5150(named only by a documentation commit that says the declaration's narrowing as not done, without a version; nothing of #5150 changes), #5156(named only by the same documentation commit, which closes KL-4455-f on a real-Runner reading of what 7.71.0's T3 already does; nothing of #5156 changes on this line)
178
+ no-notes: #5334(shipped in 7.71.1; named here only by the wiki commit that documents its two root exports)
179
+ no-notes: #5329(repository tooling only: the test selector detects repo-anchored directory walks in the import graph; nothing the package ships changes)
180
+ no-notes: #4800(test-only: cherry-picked from 7.73.0 so #5079 B runs each cell alone in `test/backlog4907-past-the-stop.test.ts`; nothing of #4800 ships in 7.72.0)
181
+
182
+ ## 7.71.1 — 2026-11-24
183
+
184
+ ### A row the host mints is stamped with the engine's own stamp — `stampCheckpointRequirements` and `resolveDeclaredFidelity` at the package root (#5334; additive: two root exports; behaviour change: none)
185
+
186
+ - **What was wrong.** 7.71.0 refuses a checkpoint row below the row format (v10) as a retired seat (#1333), and its notes said a row a host puts into the store is held to that floor too — but the package root offered no stamp, and a store's `put` does not stamp. A host therefore had no lawful way to mint a v10 row: the `task_done` wake card a serving layer files when a steer lands on a finished task was refused `checkpoint.unsupported_version` / `seat_retired` at the wake (the same path ran on 7.70.0). This release gives that entrance.
187
+ - **Exports.** `stampCheckpointRequirements(row, fidelity)` — the one stamp the engine's own commit takes before the write (writes `version`, `requires`, `requirementsDigest`, and hands back the row as a store of that fidelity keeps it) — and `resolveDeclaredFidelity(store, storeName)` — a store's declared `StoreFidelity` (absent ⇒ `"json"`, anything unrecognised refused `config.store_fidelity_invalid`). Both are the existing functions, unchanged.
188
+ - **Use.** `put(token, stampCheckpointRequirements(checkpointFrom({ ... }), resolveDeclaredFidelity(store, "checkpointStore")))`. Before the write, judge the stamped row once with `judgeCheckpointRow(row)` (as the engine's own commit does) and do not write it unless the verdict's `kind` is `ok` — anything else means a member the store's fidelity does not keep or the digest cannot encode (a BigInt at `json` fidelity, say). Stamp only rows the host itself mints, never a row another engine release wrote (a re-stamped old row is admitted as a current one — the judgments its old format owed are not re-run); change no member a verdict reads after the stamp (the row then reads `damaged` / `checkpoint.invalid_outcome` / `requirements_damaged`). Read the fidelity from the store's declaration, not a constant: a row stamped for `structured-clone` and written to a `json` store can read back damaged.
189
+ - **Unstamped host cards already in a store.** They stay refused `seat_retired`: expire them and file them again, or mint them again through the stamp (only rows the host itself minted).
190
+ - **Behaviour change: none. Hard-breaking: none.** Exports: +2, none removed. Docs: INTEGRATION-CORE "A row the host mints".
191
+
192
+ no-notes: #4460(named only by the 7.71.0 post-ship bookkeeping commit, which re-windowed its ledger row; nothing of it changes in this release)
193
+
1
194
  ## 7.71.0 — 2026-11-23
2
195
 
3
196
  ### The checkpoint store contract gains a run axis for a session listing, an age backstop for the overdue listing, and a typed refusal from `get` of a row it cannot hand back; the file history gains the code `too_large`, with the bound and where it comes from (#4748, #4749; behavior change: a first-party store's `get` refuses a held row it cannot hand back instead of answering it; hard-breaking: a store that reads its queries through the engine's readers must answer or refuse two new members, two contract-kit callback types widen, `CheckpointIndexFacts` gains a required member, and `FILE_HISTORY_ERROR_CODES` gains `too_large` for an exhaustive reader — see the bullets; closed sets: `FILE_HISTORY_ERROR_CODES` +`too_large`, new `FILE_HISTORY_LIMIT_SOURCES`, new `CheckpointSessionQuery.axis` (`"session"` / `"run"`); exports: +9; a store that does not answer a new query member refuses it and the kit reports it absent — one that ignores it is red)
@@ -53,8 +53,8 @@ export declare const RESERVED_AGENT_NAMES: readonly string[];
53
53
  * design/385 §2.2 namespace protection (CC `qd` in spirit): a candidate spawn/session name is refused
54
54
  * when its normalized key would shadow an explicit address — a reserved box prefix, a transport
55
55
  * scheme (`uds:` / `bridge:` / `did:`), a socket path, an `@`-bearing team form, the `*` broadcast
56
- * token, one of the {@link RESERVED_AGENT_NAMES} (`reserved_name`) or the shape of an agent id
57
- * (`agent_id_shape`). Returns the reason, or `undefined` when the name is admissible. Registration-side
56
+ * token, one of the {@link RESERVED_AGENT_NAMES} (`reserved_name`) or the shape of a task handle — an agent id's among them, and every
57
+ * kind the handle table holds (`agent_id_shape`, the word the `a` shape always had). Returns the reason, or `undefined` when the name is admissible. Registration-side
58
58
  * check (loud refusal at write time); the resolution ladder ranks explicit addresses first regardless.
59
59
  * The spawn face (the Agent tool's `name`) refuses on every reason this returns.
60
60
  *
@@ -1,4 +1,5 @@
1
1
  import { createHash } from "node:crypto";
2
+ import { SEMA_TASK_HANDLE_PREFIXES } from "../core/task-registry-shared.js";
2
3
  export const PEER_REF_MIN = 6;
3
4
  export const PEER_REF_MAX = 12;
4
5
  export const PEER_REF_RE = /^[0-9a-f]{6,12}$/;
@@ -48,7 +49,11 @@ function isSocketPathSpelling(text) {
48
49
  return SOCKET_PATH_RE.test(text) || NAMED_PIPE_RE.test(text);
49
50
  }
50
51
  export const RESERVED_AGENT_NAMES = Object.freeze(["main", "team-lead", "user", "system"]);
51
- const AGENT_ID_SHAPE_RE = /^a(?:[\w-]{1,63}-)?[0-9a-f]{16}$/;
52
+ const LABELLED_AGENT_ID_LETTER = SEMA_TASK_HANDLE_PREFIXES.background_agent;
53
+ const TASK_HANDLE_SHAPE_RE = (() => {
54
+ const letters = Object.values(SEMA_TASK_HANDLE_PREFIXES).join("");
55
+ return new RegExp(`^(?:[${letters}]|${LABELLED_AGENT_ID_LETTER}[\\w-]{1,63}-)[0-9a-f]{16}$`);
56
+ })();
52
57
  export function reservedPeerNameReason(name) {
53
58
  const key = normalizePeerName(name);
54
59
  if (key === "")
@@ -65,7 +70,7 @@ export function reservedPeerNameReason(name) {
65
70
  return "socket_path";
66
71
  if (RESERVED_AGENT_NAMES.includes(key))
67
72
  return "reserved_name";
68
- if (AGENT_ID_SHAPE_RE.test(key))
73
+ if (TASK_HANDLE_SHAPE_RE.test(key))
69
74
  return "agent_id_shape";
70
75
  return undefined;
71
76
  }
@@ -1,6 +1,6 @@
1
1
  import type { AgentDefinition, McpServerSpec, ToolSpec } from "../core/types.js";
2
2
  import type { ToolSelector, ToolSelectorLayer } from "../core/tool-face.js";
3
- import type { MountedMcp } from "../core/mounted-mcp.js";
3
+ import { type MountedMcp } from "../core/mounted-mcp.js";
4
4
  import type { McpHostSeat } from "../core/mcp-host-seat.js";
5
5
  import type { InheritedGate, RunInternals } from "../core/runner/contracts.js";
6
6
  /**
@@ -38,6 +38,9 @@ export declare function inheritedMcpDeclarations(mounted: MountedMcp, selector:
38
38
  * run that spawns it, or, at a wake, the woken leg's own list — whose host-transport entries are inherited ones too, since the definition
39
39
  * door refuses a definition that declares one ({@link import("./agent-definition.js").definitionMcpServers}). */
40
40
  export declare function inheritedHostSeats(held: ReadonlyMap<string, McpHostSeat> | undefined, servers: ReadonlyArray<McpServerSpec>): Pick<RunInternals, "mcpHostSeats">;
41
+ /** The host-transport servers among `servers` that `held` (a waker's mount seats) has no seat for — each fails its dial on the woken leg
42
+ * (`config.mcp_host_seat_missing`), and the wake's receipt says so. */
43
+ export declare function seatlessHostServers(held: ReadonlyMap<string, McpHostSeat> | undefined, servers: ReadonlyArray<McpServerSpec>): string[];
41
44
  /** A child's internals as a retained snapshot keeps them: without the seats that belong to whoever wakes it — the host seats (live objects of
42
45
  * the run that held them), the placement fence (the target of the leg that spawned it), the objective's author (who wrote the spawn's
43
46
  * prompt) and the activity seat (the spawner's, a closure over its row). Each wake hands the waker's own: its seats
@@ -1,3 +1,4 @@
1
+ import { hostSeatsAlong } from "../core/mounted-mcp.js";
1
2
  import { transportKindOf } from "../core/mcp-server-spec.js";
2
3
  import { MCP_NAMESPACE, mintNamespacePrefix } from "@sema-agent/primitives";
3
4
  import { TASK_CREATE_TOOL_NAME, TASK_GET_TOOL_NAME, TASK_LIST_TOOL_NAME, TASK_UPDATE_TOOL_NAME } from "../core/tool-catalog-entries.js";
@@ -15,11 +16,12 @@ export function inheritedMcpDeclarations(mounted, selector) {
15
16
  return mounted.servers.filter((m) => selector.admitsPeer(mintNamespacePrefix(MCP_NAMESPACE, m.server.name))).map((m) => m.server);
16
17
  }
17
18
  export function inheritedHostSeats(held, servers) {
18
- const seats = servers.flatMap((s) => {
19
- const seat = transportKindOf(s) === "host" ? held?.get(s.name) : undefined;
20
- return seat !== undefined ? [[s.name, seat]] : [];
21
- });
22
- return seats.length > 0 ? { mcpHostSeats: new Map(seats) } : {};
19
+ const seats = hostSeatsAlong(held, servers);
20
+ return seats !== undefined ? { mcpHostSeats: seats } : {};
21
+ }
22
+ export function seatlessHostServers(held, servers) {
23
+ const seated = hostSeatsAlong(held, servers);
24
+ return servers.filter((s) => transportKindOf(s) === "host" && seated?.has(s.name) !== true).map((s) => s.name);
23
25
  }
24
26
  export function withoutWakerSeats(internals) {
25
27
  const { mcpHostSeats: _live, placementTarget: _spawnersTarget, objectiveAuthor: _spawnAuthor, onSubtreeActivity: _spawnersActivity, ...kept } = internals;
@@ -20,6 +20,8 @@ import { neutralizePeerBody } from "./cross-session-envelope.js";
20
20
  import { SubagentRetainLedger, durableRungAdmitsRow, getSessionRetainLedger, liveRetainEntryOf } from "./retain-ledger.js";
21
21
  import { createSubagentResume } from "./subagent.js";
22
22
  import { childAnswerCode, childFailureOf } from "./child-failure.js";
23
+ import { seatlessHostServers } from "./inherited-tool-pool.js";
24
+ import { hostSeatNotHandedLine } from "../core/mcp-host-seat.js";
23
25
  import { appendHopToken, judgePeerAdmission, peerAxisToken, resolvePeerLaneConfig, PEER_MESSAGE_NOTICE, } from "./peer-admission.js";
24
26
  import { mountRuleFace, toolFace } from "../core/tool-catalog-entries.js";
25
27
  import { thrownText } from "../core/thrown-value.js";
@@ -1105,6 +1107,7 @@ export function createSendMessageTool(opts) {
1105
1107
  return admissionRefusal(l3Verdict.reason, who);
1106
1108
  assertParentSpecSeatCurrent(ctx.parentSpecSeat);
1107
1109
  const chosenRowName = chosenAgentName(targetId, row.name);
1110
+ const wakerSeats = ctx.mountedMcp?.().hostSeats;
1108
1111
  const resume = createSubagentResume({
1109
1112
  ledger,
1110
1113
  parentToolCallId: resumeToolUseId,
@@ -1135,7 +1138,7 @@ export function createSendMessageTool(opts) {
1135
1138
  ...(ctx.autoModeReview !== undefined ? { currentAutoModeReview: ctx.autoModeReview } : {}),
1136
1139
  ...(ctx.spendSeat !== undefined ? { currentSpendSeat: ctx.spendSeat } : {}),
1137
1140
  continuationTier,
1138
- currentMcpHostSeats: ctx.mountedMcp?.().hostSeats,
1141
+ currentMcpHostSeats: wakerSeats,
1139
1142
  currentPlacementTarget: ctx.placementTarget,
1140
1143
  });
1141
1144
  const fromPrefix = senderIsChild ? `(message from teammate "${senderLabel}")\n` : "";
@@ -1146,8 +1149,9 @@ export function createSendMessageTool(opts) {
1146
1149
  if (entryNow !== undefined && (entryNow !== judgedEntry || entryNow.internalsSnapshot.delegationOwner !== judgedSeat))
1147
1150
  return notReached();
1148
1151
  const marker = await resume(`${fromPrefix}[${safeSummary}] ${safeMessage}`);
1152
+ const seatless = seatlessHostServers(wakerSeats, judgedEntry?.specSnapshot.mcp ?? []);
1149
1153
  return {
1150
- content: continuedReceipt(receiptAgentLabel(to, targetId, row), 0),
1154
+ content: continuedReceipt(receiptAgentLabel(to, targetId, row), 0) + (seatless.length > 0 ? ` ${hostSeatNotHandedLine(seatless)}` : ""),
1151
1155
  details: { type: "send-message", status: "resumed", to, task_id: targetId, marker, summary },
1152
1156
  };
1153
1157
  }
@@ -1701,6 +1701,9 @@ function buildSubagentToolNode(opts, depth, excluded, extraToolsBudget) {
1701
1701
  if (a.name !== undefined && typeof a.name !== "string") {
1702
1702
  return notStartedResult({ isError: true, content: "Sub-agent not started: name must be a string.", details: { error: "name.invalid" } });
1703
1703
  }
1704
+ if (reviveClaim !== undefined && a.name !== undefined && a.name !== reviveClaim.row.name) {
1705
+ return notStartedResult({ isError: true, content: "Sub-agent not started: a revived agent keeps the name its record holds — the name handed in differs from it.", details: { error: "name.reserved" } });
1706
+ }
1704
1707
  const requestedName = reviveClaim !== undefined ? chosenAgentName(reviveClaim.row.handle, a.name) : a.name;
1705
1708
  if (requestedName !== undefined) {
1706
1709
  if (!/^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/.test(requestedName)) {
@@ -1710,7 +1713,7 @@ function buildSubagentToolNode(opts, depth, excluded, extraToolsBudget) {
1710
1713
  details: { error: "name.invalid" },
1711
1714
  });
1712
1715
  }
1713
- if (reservedPeerNameReason(requestedName) !== undefined) {
1716
+ if (reviveClaim === undefined && reservedPeerNameReason(requestedName) !== undefined) {
1714
1717
  return notStartedResult({ isError: true, content: normalizePeerName(requestedName) === "main" ? 'Sub-agent not started: "main" is reserved — SendMessage routes it to the main conversation.' : 'Sub-agent not started: name must not be a reserved name ("main", "team-lead", "user" or "system", in any spelling) or have the shape of an agent id — those already address an agent directly.', details: { error: "name.reserved" } });
1715
1718
  }
1716
1719
  if (ctx.spawnedAgentName !== undefined && reviveClaim === undefined) {
@@ -2355,6 +2358,7 @@ function buildSubagentToolNode(opts, depth, excluded, extraToolsBudget) {
2355
2358
  isDelegatedChild: true,
2356
2359
  objectiveAuthor: reviveClaim !== undefined ? "peer" : "parent_model",
2357
2360
  ...(childPosture !== undefined ? { parentInteractionPosture: childPosture } : {}),
2361
+ ...(parentSpecSeat?.projectId !== undefined ? { parentProjectId: parentSpecSeat.projectId } : {}),
2358
2362
  ...(reviveClaim === undefined
2359
2363
  ? {
2360
2364
  ...(liveCaptureFloor?.optedOut === true ? { memoryCaptureFloor: true } : {}),
@@ -208,6 +208,7 @@ async function verifyCompletedPlaced(runner, result, specBase, objective, config
208
208
  ...(specBase.clientContext !== undefined ? { clientContext: { ...specBase.clientContext } } : {}),
209
209
  ...(specBase.promptLean !== undefined ? { promptLean: specBase.promptLean } : {}),
210
210
  ...(specBase.promptLocale !== undefined ? { promptLocale: specBase.promptLocale } : {}),
211
+ ...(specBase.projectId !== undefined ? { projectId: specBase.projectId } : {}),
211
212
  signal: specBase.signal,
212
213
  }, projectContextSeat);
213
214
  const v = await runner.runTask(verifierSpec, withLegIdentity(verifierLegInternals(round), { kind: "verifier", round }, internals));