@sema-agent/core 7.68.4 → 7.69.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 (781) hide show
  1. package/CHANGELOG.md +1625 -0
  2. package/dist/agents/agent-definition.d.ts +32 -3
  3. package/dist/agents/agent-definition.js +39 -1
  4. package/dist/agents/agent-transcript-tool.js +16 -5
  5. package/dist/agents/cascade.js +9 -6
  6. package/dist/agents/cc-uds-peer-channel.js +2 -1
  7. package/dist/agents/cumulative-stats.d.ts +3 -1
  8. package/dist/agents/cumulative-stats.js +4 -1
  9. package/dist/agents/delegation-review-faces.d.ts +35 -0
  10. package/dist/agents/delegation-review-faces.js +26 -0
  11. package/dist/agents/inherited-tool-pool.d.ts +4 -2
  12. package/dist/agents/list-agents-tool.d.ts +8 -19
  13. package/dist/agents/list-agents-tool.js +19 -34
  14. package/dist/agents/peer-directory.js +3 -2
  15. package/dist/agents/peer-held-queue.d.ts +6 -1
  16. package/dist/agents/peer-held-queue.js +10 -1
  17. package/dist/agents/peer-idle.d.ts +3 -1
  18. package/dist/agents/peer-idle.js +4 -4
  19. package/dist/agents/peer-session-drain.d.ts +9 -1
  20. package/dist/agents/peer-session-drain.js +185 -116
  21. package/dist/agents/repair-loop.js +12 -8
  22. package/dist/agents/retain-ledger.d.ts +122 -58
  23. package/dist/agents/retain-ledger.js +48 -21
  24. package/dist/agents/root-session-lane.d.ts +17 -0
  25. package/dist/agents/root-session-lane.js +9 -0
  26. package/dist/agents/send-message-tool.js +44 -31
  27. package/dist/agents/subagent-steps.d.ts +0 -11
  28. package/dist/agents/subagent-steps.js +1 -14
  29. package/dist/agents/subagent-transcript-placement.d.ts +4 -3
  30. package/dist/agents/subagent.d.ts +19 -8
  31. package/dist/agents/subagent.js +250 -207
  32. package/dist/agents/tool-filter.d.ts +31 -1
  33. package/dist/agents/tool-filter.js +28 -4
  34. package/dist/agents/verifier-independence.js +3 -2
  35. package/dist/agents/verify.d.ts +5 -1
  36. package/dist/agents/verify.js +10 -6
  37. package/dist/agents/yield-adoption.d.ts +17 -0
  38. package/dist/agents/yield-adoption.js +22 -2
  39. package/dist/brain/anthropic.js +42 -14
  40. package/dist/brain/claude-model-id.d.ts +36 -0
  41. package/dist/brain/claude-model-id.js +44 -0
  42. package/dist/brain/failover.js +14 -3
  43. package/dist/brain/fast-mode.d.ts +272 -0
  44. package/dist/brain/fast-mode.js +130 -0
  45. package/dist/brain/media-degrade.d.ts +5 -0
  46. package/dist/brain/media-degrade.js +1 -0
  47. package/dist/brain/model-capability.d.ts +122 -18
  48. package/dist/brain/model-capability.js +84 -7
  49. package/dist/brain/model-lane.d.ts +40 -16
  50. package/dist/brain/model-lane.js +97 -39
  51. package/dist/brain/model-presets.d.ts +4 -1
  52. package/dist/brain/model-presets.js +10 -1
  53. package/dist/brain/open-responses.js +37 -14
  54. package/dist/brain/openai.js +27 -15
  55. package/dist/brain/provider-dialect.d.ts +9 -0
  56. package/dist/brain/provider-dialect.js +4 -0
  57. package/dist/brain/provider-message.d.ts +2 -2
  58. package/dist/brain/provider-message.js +8 -8
  59. package/dist/brain/reasoning-request.d.ts +19 -0
  60. package/dist/brain/reasoning-request.js +8 -4
  61. package/dist/brain/reasoning-stamp.d.ts +3 -2
  62. package/dist/brain/reasoning.d.ts +8 -4
  63. package/dist/brain/reasoning.js +4 -3
  64. package/dist/brain/reference-model-traits.d.ts +59 -0
  65. package/dist/brain/reference-model-traits.js +46 -0
  66. package/dist/brain/request-params.js +1 -0
  67. package/dist/brain/route-adjudicator.d.ts +107 -106
  68. package/dist/brain/route-adjudicator.js +217 -51
  69. package/dist/brain/route-conformance.d.ts +6 -4
  70. package/dist/brain/routing.d.ts +2 -1
  71. package/dist/brain/routing.js +21 -5
  72. package/dist/brain/status-sink.d.ts +52 -10
  73. package/dist/brain/stream-engine.d.ts +68 -11
  74. package/dist/brain/stream-engine.js +512 -93
  75. package/dist/brain/stream-shared.d.ts +34 -8
  76. package/dist/brain/stream-shared.js +20 -7
  77. package/dist/brain/usage-reading.d.ts +15 -0
  78. package/dist/brain/usage-reading.js +18 -5
  79. package/dist/core/a2a.js +28 -21
  80. package/dist/core/advisor-verdict.d.ts +5 -4
  81. package/dist/core/advisor-verdict.js +2 -2
  82. package/dist/core/agent-definition.d.ts +4 -1
  83. package/dist/core/agent-state.d.ts +25 -2
  84. package/dist/core/agent-state.js +50 -3
  85. package/dist/core/allow-entry.d.ts +6 -6
  86. package/dist/core/allow-entry.js +27 -25
  87. package/dist/core/ask-headline.d.ts +28 -16
  88. package/dist/core/ask-headline.js +18 -8
  89. package/dist/core/ask-origin.d.ts +105 -30
  90. package/dist/core/ask-origin.js +40 -11
  91. package/dist/core/ask-question.d.ts +9 -1
  92. package/dist/core/ask-question.js +3 -0
  93. package/dist/core/ask-unresolvable-notice.d.ts +10 -2
  94. package/dist/core/ask-unresolvable-notice.js +5 -2
  95. package/dist/core/attachment-source.d.ts +1 -1
  96. package/dist/core/attachment-source.js +1 -0
  97. package/dist/core/auto-compaction.d.ts +4 -4
  98. package/dist/core/auto-compaction.js +4 -3
  99. package/dist/core/auto-mode-directive.d.ts +30 -60
  100. package/dist/core/auto-mode-directive.js +36 -38
  101. package/dist/core/auto-mode.d.ts +40 -9
  102. package/dist/core/auto-mode.js +20 -5
  103. package/dist/core/background-agent-store.d.ts +87 -1
  104. package/dist/core/background-agent-store.js +72 -1
  105. package/dist/core/background-shell.d.ts +3 -0
  106. package/dist/core/background-shell.js +1 -0
  107. package/dist/core/cache-break-detector.js +1 -1
  108. package/dist/core/caller-text.d.ts +27 -8
  109. package/dist/core/caller-text.js +47 -1
  110. package/dist/core/checkpoint-features.d.ts +17 -9
  111. package/dist/core/checkpoint-identity.d.ts +53 -0
  112. package/dist/core/checkpoint-identity.js +29 -0
  113. package/dist/core/checkpoint-queries.d.ts +4 -3
  114. package/dist/core/checkpoint-queries.js +5 -3
  115. package/dist/core/checkpoint-rekey.d.ts +70 -0
  116. package/dist/core/checkpoint-rekey.js +107 -0
  117. package/dist/core/checkpoint-requirements.d.ts +65 -10
  118. package/dist/core/checkpoint-requirements.js +47 -13
  119. package/dist/core/checkpoint-row-verdict.d.ts +5 -3
  120. package/dist/core/checkpoint-row-verdict.js +37 -4
  121. package/dist/core/checkpoint-store.d.ts +71 -5
  122. package/dist/core/checkpoint-store.js +38 -7
  123. package/dist/core/child-clamp-seats.js +2 -1
  124. package/dist/core/classifier-category.d.ts +25 -0
  125. package/dist/core/classifier-category.js +93 -0
  126. package/dist/core/classifier-unavailable-arm.d.ts +62 -8
  127. package/dist/core/classifier-unavailable-arm.js +19 -2
  128. package/dist/core/command-sandbox-dispatch.d.ts +14 -2
  129. package/dist/core/command-sandbox.d.ts +209 -28
  130. package/dist/core/command-sandbox.js +195 -20
  131. package/dist/core/config-refusal-codes.d.ts +41 -1
  132. package/dist/core/config-refusal-codes.js +16 -0
  133. package/dist/core/context-edit.d.ts +2 -1
  134. package/dist/core/context-edit.js +2 -1
  135. package/dist/core/context-settings.js +5 -4
  136. package/dist/core/cross-boundary-taint.d.ts +15 -1
  137. package/dist/core/cross-boundary-taint.js +6 -0
  138. package/dist/core/delegation-frames.d.ts +36 -6
  139. package/dist/core/delegation-frames.js +3 -0
  140. package/dist/core/delegation-name.d.ts +10 -4
  141. package/dist/core/delegation-name.js +53 -23
  142. package/dist/core/engine-attestation.d.ts +10 -2
  143. package/dist/core/engine-attestation.js +2 -0
  144. package/dist/core/engine-capabilities.d.ts +40 -3
  145. package/dist/core/engine-capabilities.js +1 -1
  146. package/dist/core/engine-notice.d.ts +197 -90
  147. package/dist/core/engine-notice.js +29 -1
  148. package/dist/core/engine-version.d.ts +1 -0
  149. package/dist/core/engine-version.js +1 -0
  150. package/dist/core/extension-call-id.d.ts +4 -0
  151. package/dist/core/extension-call-id.js +8 -0
  152. package/dist/core/fast-tier-door.d.ts +36 -0
  153. package/dist/core/fast-tier-door.js +65 -0
  154. package/dist/core/file-history-store.d.ts +343 -67
  155. package/dist/core/file-history-store.js +320 -93
  156. package/dist/core/frame-settlement.d.ts +4 -0
  157. package/dist/core/frame-settlement.js +5 -0
  158. package/dist/core/gate-fold.js +13 -4
  159. package/dist/core/gate-lanes.js +27 -20
  160. package/dist/core/gate-outcome.d.ts +87 -11
  161. package/dist/core/gate-outcome.js +94 -4
  162. package/dist/core/git-worktree-env.d.ts +29 -10
  163. package/dist/core/git-worktree-env.js +31 -12
  164. package/dist/core/governance-codes.d.ts +232 -7
  165. package/dist/core/governance-codes.js +195 -6
  166. package/dist/core/hooks.d.ts +27 -16
  167. package/dist/core/hooks.js +84 -82
  168. package/dist/core/host-floor.d.ts +2 -8
  169. package/dist/core/host-floor.js +6 -42
  170. package/dist/core/identity-rekey.d.ts +275 -0
  171. package/dist/core/identity-rekey.js +198 -0
  172. package/dist/core/image-admission.d.ts +7 -4
  173. package/dist/core/image-admission.js +24 -11
  174. package/dist/core/isolation-scope.d.ts +12 -0
  175. package/dist/core/isolation-scope.js +4 -0
  176. package/dist/core/leg-identity.d.ts +32 -2
  177. package/dist/core/leg-identity.js +16 -2
  178. package/dist/core/locked-config.d.ts +26 -6
  179. package/dist/core/locked-config.js +31 -14
  180. package/dist/core/loopback-host.d.ts +18 -0
  181. package/dist/core/loopback-host.js +40 -0
  182. package/dist/core/mcp-connection-pool.d.ts +57 -33
  183. package/dist/core/mcp-connection-pool.js +47 -23
  184. package/dist/core/mcp-failure.d.ts +41 -19
  185. package/dist/core/mcp-failure.js +14 -8
  186. package/dist/core/mcp-host-read.js +5 -4
  187. package/dist/core/mcp-host-seat.js +3 -2
  188. package/dist/core/mcp-name-judge.js +2 -1
  189. package/dist/core/mcp-server-link.js +2 -1
  190. package/dist/core/mcp-server-spec.js +2 -2
  191. package/dist/core/mcp-server-unavailable-notice.d.ts +26 -16
  192. package/dist/core/mcp-server-unavailable-notice.js +25 -4
  193. package/dist/core/mcp.d.ts +15 -9
  194. package/dist/core/mcp.js +46 -34
  195. package/dist/core/memory-engine/consolidation-driver.js +8 -8
  196. package/dist/core/memory-engine/consolidation-write-gate.js +3 -2
  197. package/dist/core/memory-engine/engine.js +9 -9
  198. package/dist/core/memory-engine/layout.d.ts +6 -5
  199. package/dist/core/memory-engine/layout.js +1 -1
  200. package/dist/core/memory.d.ts +5 -0
  201. package/dist/core/memory.js +3 -0
  202. package/dist/core/model-fallbacks.d.ts +13 -7
  203. package/dist/core/model-fallbacks.js +5 -3
  204. package/dist/core/model-receipt.d.ts +15 -0
  205. package/dist/core/model-receipt.js +54 -1
  206. package/dist/core/model-seat.d.ts +17 -15
  207. package/dist/core/mods/agent-stations.js +5 -4
  208. package/dist/core/mods/extension-call.d.ts +0 -4
  209. package/dist/core/mods/extension-call.js +0 -8
  210. package/dist/core/mods/host.d.ts +18 -0
  211. package/dist/core/mods/host.js +7 -0
  212. package/dist/core/mods/kernel/events.d.ts +12 -0
  213. package/dist/core/mods/kernel/events.js +18 -9
  214. package/dist/core/mods/kernel/registration.d.ts +13 -0
  215. package/dist/core/mods/kernel/registration.js +34 -1
  216. package/dist/core/mods/message-display.js +1 -1
  217. package/dist/core/mods/package.js +3 -3
  218. package/dist/core/mods/prompt-submit.js +2 -2
  219. package/dist/core/mods/session-append.js +3 -3
  220. package/dist/core/mods/session-compact.js +5 -5
  221. package/dist/core/mods/session-receive.js +3 -3
  222. package/dist/core/mods/session-send.js +3 -3
  223. package/dist/core/mods/stations.d.ts +8 -5
  224. package/dist/core/mods/stations.js +13 -12
  225. package/dist/core/mods/tool-call.js +12 -12
  226. package/dist/core/mounted-mcp.d.ts +10 -1
  227. package/dist/core/mounted-mcp.js +4 -0
  228. package/dist/core/output-style.d.ts +14 -8
  229. package/dist/core/output-style.js +6 -6
  230. package/dist/core/own-property-receipt.js +3 -5
  231. package/dist/core/owner-identity.d.ts +68 -0
  232. package/dist/core/owner-identity.js +39 -0
  233. package/dist/core/parent-spec-seat.d.ts +5 -1
  234. package/dist/core/parent-spec-seat.js +2 -0
  235. package/dist/core/park-resumability.js +2 -2
  236. package/dist/core/park-selfcheck.js +15 -4
  237. package/dist/core/peer-seat.d.ts +37 -11
  238. package/dist/core/peer-seat.js +35 -9
  239. package/dist/core/permission-rule-model.d.ts +5 -0
  240. package/dist/core/permission-rule-model.js +27 -6
  241. package/dist/core/permission-rules.d.ts +42 -5
  242. package/dist/core/permission-rules.js +74 -10
  243. package/dist/core/persisted-rule-arms.d.ts +8 -6
  244. package/dist/core/persisted-rule-arms.js +13 -20
  245. package/dist/core/physical-path.d.ts +12 -8
  246. package/dist/core/physical-path.js +24 -14
  247. package/dist/core/present-plan-tool.js +2 -1
  248. package/dist/core/pricing.d.ts +65 -8
  249. package/dist/core/pricing.js +51 -0
  250. package/dist/core/prompt-section-seat.js +6 -5
  251. package/dist/core/protocol-http-auth.d.ts +87 -10
  252. package/dist/core/protocol-http-auth.js +155 -23
  253. package/dist/core/reminder-mint.d.ts +4 -0
  254. package/dist/core/reminder-mint.js +1 -0
  255. package/dist/core/remote-env.d.ts +46 -1
  256. package/dist/core/remote-env.js +2 -0
  257. package/dist/core/resume-at-refusal.d.ts +47 -0
  258. package/dist/core/resume-at-refusal.js +9 -0
  259. package/dist/core/resume-startup-cause.d.ts +8 -3
  260. package/dist/core/resume-startup-cause.js +3 -1
  261. package/dist/core/retired-keys.d.ts +4 -0
  262. package/dist/core/retired-keys.js +4 -0
  263. package/dist/core/roles.d.ts +11 -5
  264. package/dist/core/roles.js +14 -3
  265. package/dist/core/rule-store-fault.d.ts +8 -1
  266. package/dist/core/rule-store-fault.js +5 -0
  267. package/dist/core/runner/advisor-instructions.d.ts +12 -12
  268. package/dist/core/runner/advisor-instructions.js +7 -24
  269. package/dist/core/runner/announce-once-ledger.d.ts +23 -8
  270. package/dist/core/runner/announce-once-ledger.js +69 -18
  271. package/dist/core/runner/assemble-result.d.ts +9 -0
  272. package/dist/core/runner/assemble-result.js +3 -2
  273. package/dist/core/runner/auto-strip-notice.js +1 -1
  274. package/dist/core/runner/branch-window.js +5 -3
  275. package/dist/core/runner/call-hook-stations.d.ts +3 -0
  276. package/dist/core/runner/call-hook-stations.js +4 -3
  277. package/dist/core/runner/caller-roster.js +2 -1
  278. package/dist/core/runner/capability-withheld-seat.js +47 -5
  279. package/dist/core/runner/classifier-ladder.d.ts +48 -8
  280. package/dist/core/runner/classifier-ladder.js +88 -38
  281. package/dist/core/runner/clock-and-limits.d.ts +13 -2
  282. package/dist/core/runner/clock-and-limits.js +11 -8
  283. package/dist/core/runner/command-sandbox-frame.d.ts +56 -0
  284. package/dist/core/runner/command-sandbox-frame.js +107 -0
  285. package/dist/core/runner/compact-session.d.ts +3 -1
  286. package/dist/core/runner/compact-session.js +16 -10
  287. package/dist/core/runner/compaction-call-options.d.ts +2 -2
  288. package/dist/core/runner/compaction-restate.d.ts +4 -4
  289. package/dist/core/runner/compaction-restate.js +3 -1
  290. package/dist/core/runner/construction-doors.js +9 -0
  291. package/dist/core/runner/continuation-gate.d.ts +39 -0
  292. package/dist/core/runner/continuation-gate.js +42 -0
  293. package/dist/core/runner/continues-from.d.ts +57 -0
  294. package/dist/core/runner/continues-from.js +76 -0
  295. package/dist/core/runner/contracts.d.ts +133 -55
  296. package/dist/core/runner/credential-refusal-seat.js +31 -12
  297. package/dist/core/runner/cross-boundary-lane.d.ts +2 -2
  298. package/dist/core/runner/cross-boundary-lane.js +26 -13
  299. package/dist/core/runner/delegation-owner.d.ts +99 -9
  300. package/dist/core/runner/delegation-owner.js +107 -4
  301. package/dist/core/runner/denial-limit-arms.js +13 -12
  302. package/dist/core/runner/derived-route-fallback.d.ts +15 -19
  303. package/dist/core/runner/derived-route-fallback.js +4 -4
  304. package/dist/core/runner/earlier-grammar-notice.d.ts +6 -0
  305. package/dist/core/runner/earlier-grammar-notice.js +9 -0
  306. package/dist/core/runner/end-of-run.d.ts +26 -13
  307. package/dist/core/runner/end-of-run.js +43 -12
  308. package/dist/core/runner/env-capability-census.js +2 -1
  309. package/dist/core/runner/execution-record.d.ts +4 -2
  310. package/dist/core/runner/execution-record.js +1 -1
  311. package/dist/core/runner/fast-mode-seat.d.ts +89 -0
  312. package/dist/core/runner/fast-mode-seat.js +215 -0
  313. package/dist/core/runner/file-history-restore.d.ts +52 -14
  314. package/dist/core/runner/file-history-restore.js +50 -8
  315. package/dist/core/runner/forward-sink.js +2 -2
  316. package/dist/core/runner/gate-exit.d.ts +41 -3
  317. package/dist/core/runner/gate-exit.js +55 -10
  318. package/dist/core/runner/git-leg-delivery.js +6 -3
  319. package/dist/core/runner/git-status-frame.d.ts +33 -25
  320. package/dist/core/runner/git-status-frame.js +54 -36
  321. package/dist/core/runner/halt-attribution.js +2 -2
  322. package/dist/core/runner/hook-progress-lane.d.ts +26 -0
  323. package/dist/core/runner/hook-progress-lane.js +72 -0
  324. package/dist/core/runner/initial-run-state.js +2 -2
  325. package/dist/core/runner/language-frame.d.ts +10 -8
  326. package/dist/core/runner/language-frame.js +7 -11
  327. package/dist/core/runner/left-as-is-seat.d.ts +20 -0
  328. package/dist/core/runner/left-as-is-seat.js +11 -0
  329. package/dist/core/runner/leg-receipt.d.ts +38 -0
  330. package/dist/core/runner/leg-receipt.js +22 -0
  331. package/dist/core/runner/listing-fold.d.ts +4 -3
  332. package/dist/core/runner/listing-fold.js +5 -5
  333. package/dist/core/runner/listing-replay.d.ts +41 -0
  334. package/dist/core/runner/listing-replay.js +75 -0
  335. package/dist/core/runner/main-call-account.d.ts +2 -1
  336. package/dist/core/runner/main-call-account.js +18 -5
  337. package/dist/core/runner/mcp-redial.d.ts +4 -2
  338. package/dist/core/runner/mcp-redial.js +3 -0
  339. package/dist/core/runner/memory-consolidation-driver.js +3 -2
  340. package/dist/core/runner/model-fallback-seat.d.ts +12 -9
  341. package/dist/core/runner/model-fallback-seat.js +24 -20
  342. package/dist/core/runner/nested-memory-lane.d.ts +16 -8
  343. package/dist/core/runner/nested-memory-lane.js +64 -53
  344. package/dist/core/runner/permission-rule-lanes.d.ts +4 -3
  345. package/dist/core/runner/permission-rule-lanes.js +2 -0
  346. package/dist/core/runner/person-path-rows.js +1 -1
  347. package/dist/core/runner/placement-fence.js +2 -2
  348. package/dist/core/runner/policy-throw.d.ts +3 -3
  349. package/dist/core/runner/policy-throw.js +7 -5
  350. package/dist/core/runner/prepare-acquire-reconcile.d.ts +7 -1
  351. package/dist/core/runner/prepare-acquire-reconcile.js +9 -5
  352. package/dist/core/runner/prepare-advisor.d.ts +3 -0
  353. package/dist/core/runner/prepare-advisor.js +2 -2
  354. package/dist/core/runner/prepare-artifact.d.ts +7 -2
  355. package/dist/core/runner/prepare-artifact.js +18 -7
  356. package/dist/core/runner/prepare-ask-lane.d.ts +7 -0
  357. package/dist/core/runner/prepare-ask-lane.js +4 -3
  358. package/dist/core/runner/prepare-caps-and-workflow.d.ts +9 -5
  359. package/dist/core/runner/prepare-caps-and-workflow.js +28 -20
  360. package/dist/core/runner/prepare-config-doors.d.ts +13 -3
  361. package/dist/core/runner/prepare-config-doors.js +35 -24
  362. package/dist/core/runner/prepare-context-lane.d.ts +3 -4
  363. package/dist/core/runner/prepare-context-lane.js +12 -15
  364. package/dist/core/runner/prepare-defer-classify.d.ts +12 -0
  365. package/dist/core/runner/prepare-defer-classify.js +5 -2
  366. package/dist/core/runner/prepare-delegation-surface.d.ts +10 -8
  367. package/dist/core/runner/prepare-delegation-surface.js +6 -7
  368. package/dist/core/runner/prepare-execution-env.d.ts +46 -4
  369. package/dist/core/runner/prepare-execution-env.js +47 -18
  370. package/dist/core/runner/prepare-file-history.d.ts +4 -1
  371. package/dist/core/runner/prepare-file-history.js +8 -9
  372. package/dist/core/runner/prepare-gate-stations.d.ts +17 -9
  373. package/dist/core/runner/prepare-gate-stations.js +22 -38
  374. package/dist/core/runner/prepare-hands-readface.d.ts +13 -9
  375. package/dist/core/runner/prepare-hands-readface.js +26 -35
  376. package/dist/core/runner/prepare-inherited-gate.d.ts +9 -2
  377. package/dist/core/runner/prepare-inherited-gate.js +10 -9
  378. package/dist/core/runner/prepare-leg-adoption.d.ts +36 -0
  379. package/dist/core/runner/prepare-leg-adoption.js +24 -0
  380. package/dist/core/runner/prepare-listings.d.ts +3 -0
  381. package/dist/core/runner/prepare-listings.js +2 -2
  382. package/dist/core/runner/prepare-lsp.d.ts +0 -3
  383. package/dist/core/runner/prepare-lsp.js +1 -2
  384. package/dist/core/runner/prepare-memory-engine-session.js +1 -1
  385. package/dist/core/runner/prepare-memory.js +2 -2
  386. package/dist/core/runner/prepare-offload-wrappers.d.ts +5 -5
  387. package/dist/core/runner/prepare-offload-wrappers.js +5 -5
  388. package/dist/core/runner/prepare-park-ask.d.ts +9 -2
  389. package/dist/core/runner/prepare-park-ask.js +5 -3
  390. package/dist/core/runner/prepare-policy-chain.d.ts +20 -5
  391. package/dist/core/runner/prepare-policy-chain.js +32 -26
  392. package/dist/core/runner/prepare-prompt-assembly.d.ts +11 -2
  393. package/dist/core/runner/prepare-prompt-assembly.js +6 -3
  394. package/dist/core/runner/prepare-prompt-inputs.d.ts +3 -3
  395. package/dist/core/runner/prepare-prompt-inputs.js +1 -1
  396. package/dist/core/runner/prepare-protocol-tools.d.ts +9 -4
  397. package/dist/core/runner/prepare-protocol-tools.js +11 -11
  398. package/dist/core/runner/prepare-run-refs.d.ts +7 -0
  399. package/dist/core/runner/prepare-run-refs.js +6 -2
  400. package/dist/core/runner/prepare-suspend-saga.d.ts +4 -1
  401. package/dist/core/runner/prepare-suspend-saga.js +5 -2
  402. package/dist/core/runner/prepare-task.d.ts +1 -30
  403. package/dist/core/runner/prepare-task.js +111 -147
  404. package/dist/core/runner/prepare-turn-wiring.d.ts +10 -3
  405. package/dist/core/runner/prepare-turn-wiring.js +7 -4
  406. package/dist/core/runner/prepare-wiring-manifest.d.ts +12 -3
  407. package/dist/core/runner/prepare-wiring-manifest.js +21 -17
  408. package/dist/core/runner/prompt-block.js +2 -2
  409. package/dist/core/runner/prompt-suggestions.d.ts +3 -8
  410. package/dist/core/runner/prompt-suggestions.js +4 -1
  411. package/dist/core/runner/reply-pricing.d.ts +8 -4
  412. package/dist/core/runner/reply-pricing.js +6 -5
  413. package/dist/core/runner/resume-admission.js +2 -0
  414. package/dist/core/runner/resume-apply.js +4 -4
  415. package/dist/core/runner/resume-checkpoint-screen.d.ts +23 -2
  416. package/dist/core/runner/resume-checkpoint-screen.js +34 -27
  417. package/dist/core/runner/resume-preflight.js +3 -3
  418. package/dist/core/runner/rewind-files.js +21 -14
  419. package/dist/core/runner/role-resolution-table.d.ts +10 -7
  420. package/dist/core/runner/role-resolution-table.js +8 -7
  421. package/dist/core/runner/role-seat-defaulted.js +2 -2
  422. package/dist/core/runner/rule-store-unreadable-notice.d.ts +4 -2
  423. package/dist/core/runner/rule-store-unreadable-notice.js +21 -7
  424. package/dist/core/runner/run-attachment-seats.js +8 -15
  425. package/dist/core/runner/run-brain-sinks.js +1 -0
  426. package/dist/core/runner/run-compaction-machinery.d.ts +1 -1
  427. package/dist/core/runner/run-compaction-machinery.js +2 -3
  428. package/dist/core/runner/run-harness-handlers.d.ts +2 -2
  429. package/dist/core/runner/run-harness-handlers.js +18 -5
  430. package/dist/core/runner/run-identity-wiring.js +11 -9
  431. package/dist/core/runner/run-leg.js +33 -12
  432. package/dist/core/runner/run-notification-lane.d.ts +4 -1
  433. package/dist/core/runner/run-notification-lane.js +21 -8
  434. package/dist/core/runner/run-recovery-lanes.js +1 -1
  435. package/dist/core/runner/run-settle-and-teardown.d.ts +6 -1
  436. package/dist/core/runner/run-settle-and-teardown.js +30 -32
  437. package/dist/core/runner/run-stop-and-final-verify.d.ts +4 -1
  438. package/dist/core/runner/run-stop-and-final-verify.js +12 -49
  439. package/dist/core/runner/run-telemetry-and-budget-seats.js +29 -10
  440. package/dist/core/runner/run-terminal-adoption.js +5 -2
  441. package/dist/core/runner/run-turn-boundary.js +13 -11
  442. package/dist/core/runner/runtask.d.ts +16 -7
  443. package/dist/core/runner/runtask.js +51 -30
  444. package/dist/core/runner/sandbox-network-seat.d.ts +52 -0
  445. package/dist/core/runner/sandbox-network-seat.js +40 -0
  446. package/dist/core/runner/seat-model-doors.d.ts +16 -0
  447. package/dist/core/runner/seat-model-doors.js +13 -0
  448. package/dist/core/runner/session-file-state-replay.d.ts +20 -0
  449. package/dist/core/runner/session-file-state-replay.js +17 -5
  450. package/dist/core/runner/session-read-file-states.d.ts +37 -0
  451. package/dist/core/runner/session-read-file-states.js +19 -0
  452. package/dist/core/runner/session-rule-policy.d.ts +2 -1
  453. package/dist/core/runner/session-rule-policy.js +3 -2
  454. package/dist/core/runner/session-verb-doors.js +2 -1
  455. package/dist/core/runner/session-write-ledger.d.ts +5 -1
  456. package/dist/core/runner/session-write-ledger.js +19 -5
  457. package/dist/core/runner/shared-read-classifier.d.ts +48 -0
  458. package/dist/core/runner/shared-read-classifier.js +33 -0
  459. package/dist/core/runner/shell-env-withheld.d.ts +6 -3
  460. package/dist/core/runner/shell-env-withheld.js +25 -0
  461. package/dist/core/runner/side-call-account.d.ts +30 -2
  462. package/dist/core/runner/side-call-account.js +38 -5
  463. package/dist/core/runner/skipped-rules-notice.d.ts +43 -0
  464. package/dist/core/runner/skipped-rules-notice.js +49 -0
  465. package/dist/core/runner/steering-preview.js +1 -1
  466. package/dist/core/runner/stop-tail-notice.d.ts +40 -0
  467. package/dist/core/runner/stop-tail-notice.js +35 -0
  468. package/dist/core/runner/stream-halt-verbs.js +1 -1
  469. package/dist/core/runner/stream-mode-verb.d.ts +11 -4
  470. package/dist/core/runner/stream-mode-verb.js +19 -7
  471. package/dist/core/runner/stream-settle-backstop.js +3 -1
  472. package/dist/core/runner/stream-steer-verb.js +4 -3
  473. package/dist/core/runner/synthetic-tools.d.ts +11 -11
  474. package/dist/core/runner/synthetic-tools.js +17 -20
  475. package/dist/core/runner/task-start-doors.d.ts +86 -0
  476. package/dist/core/runner/task-start-doors.js +108 -0
  477. package/dist/core/runner/teardown-bounded.d.ts +5 -5
  478. package/dist/core/runner/teardown-bounded.js +6 -6
  479. package/dist/core/runner/terminal-account.d.ts +3 -2
  480. package/dist/core/runner/terminal-account.js +5 -3
  481. package/dist/core/runner/tool-disclosure.js +8 -9
  482. package/dist/core/runner/tool-end-body.d.ts +2 -0
  483. package/dist/core/runner/tool-end-body.js +1 -0
  484. package/dist/core/runner/tool-face-overlay.js +1 -0
  485. package/dist/core/runner/tool-occurrence.d.ts +22 -24
  486. package/dist/core/runner/tool-occurrence.js +9 -15
  487. package/dist/core/runner/tool-progress-lane.js +1 -1
  488. package/dist/core/runner/tool-result-media-seat.d.ts +7 -4
  489. package/dist/core/runner/tool-result-media-seat.js +16 -4
  490. package/dist/core/runner/tool-table-view.d.ts +7 -1
  491. package/dist/core/runner/tool-table-view.js +1 -1
  492. package/dist/core/runner/tool-turn-repair-seat.d.ts +22 -2
  493. package/dist/core/runner/tool-turn-repair-seat.js +23 -5
  494. package/dist/core/runner/turn-attachments.d.ts +74 -148
  495. package/dist/core/runner/turn-attachments.js +153 -223
  496. package/dist/core/runner/usage-accounting.d.ts +15 -0
  497. package/dist/core/runner/usage-accounting.js +12 -4
  498. package/dist/core/runner/verdict-refusal.d.ts +45 -0
  499. package/dist/core/runner/verdict-refusal.js +39 -0
  500. package/dist/core/runner/write-protection-station.d.ts +5 -0
  501. package/dist/core/runner/write-protection-station.js +6 -6
  502. package/dist/core/runner-deps.d.ts +15 -5
  503. package/dist/core/runtime-caps.d.ts +5 -3
  504. package/dist/core/secret-env.d.ts +19 -14
  505. package/dist/core/secret-env.js +19 -12
  506. package/dist/core/session-checkout.d.ts +18 -1
  507. package/dist/core/session-checkout.js +23 -8
  508. package/dist/core/session-log-transfer.js +2 -2
  509. package/dist/core/session-policy-store.d.ts +220 -31
  510. package/dist/core/session-policy-store.js +333 -47
  511. package/dist/core/session-reconcile.d.ts +12 -0
  512. package/dist/core/session-reconcile.js +1 -1
  513. package/dist/core/session-store.d.ts +5 -3
  514. package/dist/core/session-store.js +11 -11
  515. package/dist/core/session.d.ts +31 -22
  516. package/dist/core/session.js +3 -2
  517. package/dist/core/shared-memory/normalize.js +2 -1
  518. package/dist/core/side-query.d.ts +4 -0
  519. package/dist/core/side-query.js +7 -4
  520. package/dist/core/spec-contract.d.ts +4 -2
  521. package/dist/core/store-contracts/background-agent-store-contract.js +149 -0
  522. package/dist/core/store-contracts/checkpoint-store-contract.js +55 -0
  523. package/dist/core/store-contracts/contract-kit-version.d.ts +4 -4
  524. package/dist/core/store-contracts/file-history-store-contract.d.ts +1 -1
  525. package/dist/core/store-contracts/file-history-store-contract.js +282 -22
  526. package/dist/core/store-contracts/session-policy-store-contract.js +202 -0
  527. package/dist/core/store-contracts/session-store-contract.js +48 -14
  528. package/dist/core/store-contracts/tool-result-store-contract.d.ts +1 -1
  529. package/dist/core/store-contracts/tool-result-store-contract.js +128 -0
  530. package/dist/core/store-contracts/workflow-journal-store-contract.js +90 -1
  531. package/dist/core/swappable-deps.d.ts +16 -0
  532. package/dist/core/swappable-deps.js +61 -1
  533. package/dist/core/synthetic-read-verdict.d.ts +23 -0
  534. package/dist/core/synthetic-read-verdict.js +43 -18
  535. package/dist/core/task-event.d.ts +123 -50
  536. package/dist/core/task-intake.d.ts +21 -5
  537. package/dist/core/task-intake.js +29 -3
  538. package/dist/core/task-limits.d.ts +3 -1
  539. package/dist/core/task-notification.d.ts +171 -59
  540. package/dist/core/task-notification.js +162 -104
  541. package/dist/core/task-registry-agent.d.ts +12 -0
  542. package/dist/core/task-registry-agent.js +23 -9
  543. package/dist/core/task-registry-shared.d.ts +4 -2
  544. package/dist/core/task-registry-shared.js +1 -1
  545. package/dist/core/task-registry-workflow.js +8 -5
  546. package/dist/core/task-registry.d.ts +16 -1
  547. package/dist/core/task-registry.js +35 -23
  548. package/dist/core/task-result.d.ts +127 -10
  549. package/dist/core/task-spec-members.d.ts +5 -2
  550. package/dist/core/task-spec-members.js +9 -5
  551. package/dist/core/task-spec.d.ts +31 -12
  552. package/dist/core/task-start-judge.d.ts +41 -0
  553. package/dist/core/task-start-judge.js +26 -0
  554. package/dist/core/task-stream.d.ts +12 -1
  555. package/dist/core/terminal-cause.d.ts +23 -9
  556. package/dist/core/tool-catalog-entries.js +6 -5
  557. package/dist/core/tool-face-lists.d.ts +3 -2
  558. package/dist/core/tool-face-lists.js +6 -0
  559. package/dist/core/tool-face-reader.d.ts +3 -2
  560. package/dist/core/tool-face-reader.js +2 -2
  561. package/dist/core/tool-face.d.ts +27 -3
  562. package/dist/core/tool-face.js +2 -2
  563. package/dist/core/tool-model-gate.js +14 -13
  564. package/dist/core/tool-mount-facts.d.ts +16 -3
  565. package/dist/core/tool-mount-facts.js +10 -0
  566. package/dist/core/tool-mount-plan.d.ts +79 -10
  567. package/dist/core/tool-mount-plan.js +79 -24
  568. package/dist/core/tool-mount-static.d.ts +52 -6
  569. package/dist/core/tool-mount-static.js +82 -28
  570. package/dist/core/tool-name-aliases.js +1 -1
  571. package/dist/core/tool-policy.d.ts +25 -5
  572. package/dist/core/tool-policy.js +8 -6
  573. package/dist/core/tool-registry.d.ts +12 -2
  574. package/dist/core/tool-registry.js +9 -2
  575. package/dist/core/tool-result-budget.d.ts +2 -2
  576. package/dist/core/tool-result-bytes.d.ts +28 -9
  577. package/dist/core/tool-result-bytes.js +7 -5
  578. package/dist/core/tool-result-store.d.ts +310 -38
  579. package/dist/core/tool-result-store.js +325 -30
  580. package/dist/core/tool-roster.d.ts +20 -8
  581. package/dist/core/tool-roster.js +16 -6
  582. package/dist/core/tool-search-setting.js +2 -2
  583. package/dist/core/tool-spec.d.ts +10 -10
  584. package/dist/core/types.d.ts +5 -5
  585. package/dist/core/types.js +2 -2
  586. package/dist/core/unc-spelling.d.ts +114 -3
  587. package/dist/core/unc-spelling.js +110 -0
  588. package/dist/core/untrusted-egress.d.ts +82 -10
  589. package/dist/core/untrusted-egress.js +102 -9
  590. package/dist/core/untrusted-text.d.ts +28 -0
  591. package/dist/core/untrusted-text.js +67 -3
  592. package/dist/core/user-attachment.d.ts +18 -3
  593. package/dist/core/user-attachment.js +37 -31
  594. package/dist/core/user-row-origin.d.ts +22 -0
  595. package/dist/core/user-row-origin.js +15 -0
  596. package/dist/core/version.d.ts +1 -1
  597. package/dist/core/version.js +2 -12
  598. package/dist/core/wiring-manifest.d.ts +124 -30
  599. package/dist/core/wiring-manifest.js +59 -17
  600. package/dist/core/workflow-journal-store.d.ts +186 -16
  601. package/dist/core/workflow-journal-store.js +156 -1
  602. package/dist/core/workflow-run-store-contract.js +82 -1
  603. package/dist/core/workflow-run-store.d.ts +40 -4
  604. package/dist/core/workflow-run-store.js +9 -2
  605. package/dist/core/workspace-snapshot.d.ts +4 -1
  606. package/dist/core/workspace-snapshot.js +1 -1
  607. package/dist/engine/compaction/compaction.d.ts +3 -3
  608. package/dist/engine/compaction/compaction.js +16 -18
  609. package/dist/engine/execution-env/node-execution-env.d.ts +14 -6
  610. package/dist/engine/execution-env/node-execution-env.js +49 -14
  611. package/dist/engine/harness/agent-harness.d.ts +17 -7
  612. package/dist/engine/harness/agent-harness.js +66 -16
  613. package/dist/engine/harness/types.d.ts +31 -2
  614. package/dist/engine/harness/types.js +14 -1
  615. package/dist/engine/llm/tool-turns.d.ts +19 -2
  616. package/dist/engine/llm/tool-turns.js +29 -2
  617. package/dist/engine/llm/types.d.ts +103 -22
  618. package/dist/engine/llm/types.js +1 -1
  619. package/dist/engine/loop/agent-loop.d.ts +18 -9
  620. package/dist/engine/loop/agent-loop.js +115 -24
  621. package/dist/engine/loop/types.d.ts +14 -6
  622. package/dist/engine/lsp/node-lsp-manager.d.ts +6 -4
  623. package/dist/engine/lsp/node-lsp-manager.js +22 -21
  624. package/dist/engine/session/import-validate.js +2 -0
  625. package/dist/engine/session/repo-utils.d.ts +13 -7
  626. package/dist/engine/session/repo-utils.js +9 -4
  627. package/dist/index.d.ts +48 -27
  628. package/dist/index.js +38 -20
  629. package/dist/internal/harness.d.ts +1 -1
  630. package/dist/internal/llm.d.ts +2 -2
  631. package/dist/internal/llm.js +1 -1
  632. package/dist/orchestration/goal.js +1 -1
  633. package/dist/orchestration/governance-baseline-validity.d.ts +20 -5
  634. package/dist/orchestration/governance-baseline-validity.js +87 -16
  635. package/dist/orchestration/run-workflow-tool.d.ts +15 -12
  636. package/dist/orchestration/run-workflow-tool.js +757 -331
  637. package/dist/orchestration/workflow-governance.d.ts +1 -1
  638. package/dist/orchestration/workflow-observe.d.ts +22 -2
  639. package/dist/orchestration/workflow-observe.js +20 -9
  640. package/dist/orchestration/workflow-park-adoption.d.ts +380 -0
  641. package/dist/orchestration/workflow-park-adoption.js +617 -0
  642. package/dist/orchestration/workflow-size-guideline.d.ts +6 -8
  643. package/dist/orchestration/workflow-size-guideline.js +12 -14
  644. package/dist/orchestration/workflow-types.d.ts +97 -17
  645. package/dist/orchestration/workflow-types.js +39 -8
  646. package/dist/orchestration/workflow.d.ts +70 -26
  647. package/dist/orchestration/workflow.js +495 -199
  648. package/dist/prompt-assembly/artifact.js +4 -3
  649. package/dist/prompt-assembly/assemble.d.ts +2 -0
  650. package/dist/prompt-assembly/assemble.js +4 -1
  651. package/dist/prompt-assembly/bands.d.ts +3 -0
  652. package/dist/prompt-assembly/bands.js +6 -0
  653. package/dist/prompt-assembly/catalog/constitution.d.ts +1 -1
  654. package/dist/prompt-assembly/catalog/constitution.js +74 -9
  655. package/dist/prompt-assembly/catalog/core-behavior.d.ts +5 -4
  656. package/dist/prompt-assembly/catalog/core-behavior.js +46 -9
  657. package/dist/prompt-assembly/catalog/engine.d.ts +110 -5
  658. package/dist/prompt-assembly/catalog/engine.js +13 -0
  659. package/dist/prompt-assembly/catalog/events.d.ts +852 -0
  660. package/dist/prompt-assembly/catalog/events.js +62 -0
  661. package/dist/prompt-assembly/catalog/index.js +2 -1
  662. package/dist/prompt-assembly/catalog/locales/index.d.ts +2 -2
  663. package/dist/prompt-assembly/catalog/locales/index.js +4 -2
  664. package/dist/prompt-assembly/catalog/locales/zh-Hans/constitution.js +53 -1
  665. package/dist/prompt-assembly/catalog/locales/zh-Hans/core-behavior.js +45 -9
  666. package/dist/prompt-assembly/catalog/locales/zh-Hans/engine.js +12 -0
  667. package/dist/prompt-assembly/catalog/locales/zh-Hans/events.d.ts +7 -0
  668. package/dist/prompt-assembly/catalog/locales/zh-Hans/events.js +57 -0
  669. package/dist/prompt-assembly/catalog/locales/zh-Hans/mechanism.d.ts +8 -0
  670. package/dist/prompt-assembly/catalog/locales/zh-Hans/mechanism.js +56 -0
  671. package/dist/prompt-assembly/catalog/locales/zh-Hans/modes.js +8 -2
  672. package/dist/prompt-assembly/catalog/locales/zh-Hans/role.js +37 -9
  673. package/dist/prompt-assembly/catalog/mechanism.d.ts +427 -0
  674. package/dist/prompt-assembly/catalog/mechanism.js +62 -0
  675. package/dist/prompt-assembly/catalog/memory.d.ts +3 -3
  676. package/dist/prompt-assembly/catalog/memory.js +12 -3
  677. package/dist/prompt-assembly/catalog/modes.d.ts +2 -2
  678. package/dist/prompt-assembly/catalog/modes.js +7 -1
  679. package/dist/prompt-assembly/catalog/role.d.ts +1 -1
  680. package/dist/prompt-assembly/catalog/role.js +43 -14
  681. package/dist/prompt-assembly/catalog/schema.d.ts +43 -20
  682. package/dist/prompt-assembly/catalog/schema.js +17 -6
  683. package/dist/prompt-assembly/catalog/sections.d.ts +1 -1
  684. package/dist/prompt-assembly/catalog/sections.js +20 -12
  685. package/dist/prompt-assembly/composer.d.ts +3 -0
  686. package/dist/prompt-assembly/composer.js +11 -5
  687. package/dist/prompt-assembly/engine-text.d.ts +14 -4
  688. package/dist/prompt-assembly/engine-text.js +18 -9
  689. package/dist/prompt-assembly/event-registry.d.ts +38 -31
  690. package/dist/prompt-assembly/event-registry.js +185 -25
  691. package/dist/prompt-assembly/explain.d.ts +24 -0
  692. package/dist/prompt-assembly/explain.js +11 -0
  693. package/dist/prompt-assembly/locale-review.js +3 -2
  694. package/dist/prompt-assembly/overlay.d.ts +25 -7
  695. package/dist/prompt-assembly/overlay.js +68 -14
  696. package/dist/prompt-assembly/select.d.ts +4 -3
  697. package/dist/prompt-assembly/select.js +10 -2
  698. package/dist/prompt-assembly/sugar.d.ts +3 -2
  699. package/dist/prompt-assembly/sugar.js +2 -2
  700. package/dist/prompt-assembly/tool-catalog.js +3 -2
  701. package/dist/prompt-assembly/turn-snapshot.d.ts +1 -0
  702. package/dist/prompt-assembly/turn-snapshot.js +1 -0
  703. package/dist/prompt-assembly/types.d.ts +3 -4
  704. package/dist/prompts/default.d.ts +6 -45
  705. package/dist/prompts/default.js +3 -21
  706. package/dist/stores/file/adoption/adopt.d.ts +13 -3
  707. package/dist/stores/file/adoption/adopt.js +90 -95
  708. package/dist/stores/file/adoption/marker.d.ts +2 -1
  709. package/dist/stores/file/background-agent-store.d.ts +61 -0
  710. package/dist/stores/file/background-agent-store.js +64 -15
  711. package/dist/stores/file/checkpoint-store.d.ts +30 -2
  712. package/dist/stores/file/checkpoint-store.js +72 -23
  713. package/dist/stores/file/file-history-store.d.ts +13 -7
  714. package/dist/stores/file/file-history-store.js +170 -46
  715. package/dist/stores/file/fs-atomic.d.ts +57 -2
  716. package/dist/stores/file/fs-atomic.js +116 -48
  717. package/dist/stores/file/index.d.ts +2 -0
  718. package/dist/stores/file/index.js +2 -0
  719. package/dist/stores/file/ledger-damage.d.ts +87 -0
  720. package/dist/stores/file/ledger-damage.js +103 -0
  721. package/dist/stores/file/session-policy-store.d.ts +36 -4
  722. package/dist/stores/file/session-policy-store.js +177 -6
  723. package/dist/stores/file/shared-ledger.d.ts +123 -11
  724. package/dist/stores/file/shared-ledger.js +113 -18
  725. package/dist/stores/file/tool-result-store.d.ts +30 -1
  726. package/dist/stores/file/tool-result-store.js +60 -6
  727. package/dist/stores/file/workflow-journal-store.d.ts +73 -26
  728. package/dist/stores/file/workflow-journal-store.js +195 -32
  729. package/dist/stores/file/workflow-run-store.d.ts +47 -2
  730. package/dist/stores/file/workflow-run-store.js +17 -14
  731. package/dist/tools/artifact/artifact-tool.d.ts +9 -6
  732. package/dist/tools/artifact/artifact-tool.js +76 -40
  733. package/dist/tools/fs/env-error-detail.d.ts +11 -0
  734. package/dist/tools/fs/env-error-detail.js +13 -2
  735. package/dist/tools/fs/fs-bash.js +30 -21
  736. package/dist/tools/fs/fs-pdf.d.ts +1 -1
  737. package/dist/tools/fs/fs-pdf.js +2 -2
  738. package/dist/tools/fs/fs-read.js +4 -4
  739. package/dist/tools/fs/fs-shared.d.ts +26 -9
  740. package/dist/tools/fs/fs-shared.js +12 -6
  741. package/dist/tools/fs/fs-write.d.ts +6 -4
  742. package/dist/tools/fs/fs-write.js +24 -18
  743. package/dist/tools/fs/pattern-kill-guard.js +2 -1
  744. package/dist/tools/fs/pdf.d.ts +8 -0
  745. package/dist/tools/fs/pdf.js +10 -0
  746. package/dist/tools/fs/program-read-model.d.ts +4 -0
  747. package/dist/tools/fs/program-read-model.rows.js +3 -3
  748. package/dist/tools/fs/read-floor.d.ts +11 -9
  749. package/dist/tools/fs/read-floor.js +7 -10
  750. package/dist/tools/fs/removal-targets.d.ts +4 -3
  751. package/dist/tools/fs/removal-targets.js +27 -9
  752. package/dist/tools/fs/safety.d.ts +29 -107
  753. package/dist/tools/fs/safety.js +16 -118
  754. package/dist/tools/fs/shell-read-check.d.ts +4 -2
  755. package/dist/tools/fs/shell-read-check.js +6 -2
  756. package/dist/tools/fs/shell-read-environment.d.ts +10 -2
  757. package/dist/tools/fs/shell-read-environment.js +20 -11
  758. package/dist/tools/fs/shell-read-judge.d.ts +19 -7
  759. package/dist/tools/fs/shell-read-judge.js +9 -3
  760. package/dist/tools/fs/shell-reentry-text.d.ts +8 -0
  761. package/dist/tools/fs/shell-reentry-text.js +56 -0
  762. package/dist/tools/monitor.js +7 -5
  763. package/dist/tools/scheduler-tools.d.ts +39 -1
  764. package/dist/tools/scheduler-tools.js +84 -35
  765. package/dist/tools/task-list.d.ts +12 -4
  766. package/dist/tools/task-list.js +10 -7
  767. package/dist/tools/web.d.ts +2 -8
  768. package/dist/tools/web.js +5 -5
  769. package/dist/tools/worktree.js +18 -15
  770. package/package.json +6 -3
  771. package/test/export-surface.snapshot.json +344 -14
  772. package/wire-changes/core-stores-sql@7.68.5.json +39 -0
  773. package/wire-changes/core-stores-sql@7.69.0.json +39 -0
  774. package/wire-changes/core@7.68.5.json +141 -0
  775. package/wire-changes/core@7.69.0.json +9561 -0
  776. package/wire-changes/mods-kernel@7.68.5.json +39 -0
  777. package/wire-changes/mods-kernel@7.69.0.json +80 -0
  778. package/wire-changes/primitives@7.68.5.json +39 -0
  779. package/wire-changes/primitives@7.69.0.json +79 -0
  780. package/wire-changes/wiki-gate@7.68.5.json +39 -0
  781. package/wire-changes/wiki-gate@7.69.0.json +39 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,1628 @@
1
+ ## 7.69.0 — 2026-11-17
2
+
3
+ **7.69.0 in brief.** A summary only: every line names the sections that are its record, and nothing here is said that they do not say. "Open to veto" items are open to veto as their sections state.
4
+
5
+ **Hard-breaking** (each section's hard-breaking sentences say what changed, who is hurt and how to migrate):
6
+ - Notices and the gate seat (#4695): `permission.ask_released_by_mode` and `permission.read_deny_unapplied` are retired (161 → 159 codes) — a release is read on `tool_end.gate.disposition.released`; `ToolGateInput.onModeReleased`'s `readUnestablished` moves into `release`; `ArtifactToolOptions.onNotice` is removed (@cli @server @client-core @test).
7
+ - Ask classes (#4698): `AskClass` +`org_unreadable` +`call_unreadable`, two existing asks change their class word, `allowRuleShadowSentence` / `cardDisclosureOf` no longer take `origin` (@server @cli @client-core @sdk).
8
+ - Child environments (#4705): `inheritEnv: "all"` no longer hands a child the engine's own `SEMA_` credential names (`SEMA_MODEL_KEY_<entry>`, `SEMA_WEBSEARCH_KEY_<provider>`); a host's explicit grant still does (@server @cli @client-core @test).
9
+ - Stream status (#4223 / #4222): `BrainStatusPhase` −`waiting_first_token` +`waiting` +`continuing`; `WAITING_FIRST_TOKEN_AFTER_MS` / `WAITING_FIRST_TOKEN_EVERY_MS` become `WAITING_AFTER_MS` / `WAITING_EVERY_MS` (@server @cli @client-core @sdk @test).
10
+ - Prompt catalog (#4022 / #4028, #1664, #4297): mechanism and event frames are catalog messages (`buildGitSnapshot`, `PromptCarrier`, `PromptTrust` removed, `EnvironmentFacts` −`gitSnapshot`, `CompiledEventPrompt` reshaped); the prompt-trait vocabulary and its preset table follow the reference's anchor (@server @cli @client-core @sdk).
11
+ - MCP (#3985, #3023, #4010, #4188): `McpAuthorizationReason` +`seat_unavailable`; an agent definition's `{ kind: "host" }` server and a transport kind outside the closed set are refused where they are received; four type members of the session pool are removed (@server @cli @client-core @sdk).
12
+ - Store contracts (#3951, #3964, #4488, #4481, #4552): the identity seats, the checkpoint seat and the tool-result store re-key their own rows (new required members); an offloaded tool result is read back only by a run of the identity that stored it, and entries written before this version are nobody's; a workflow journal store with `resumeClaim` and no `releaseResumeClaim` is refused (@server).
13
+ - File history (#4267 S2 segment A, #4490, #4500 / #4530): `FileHistoryStore.diffStats` is retired; compliance-kit cells K3 / K4; `rewindNotes` codes +`restore_left_as_is`; the preview's two root types change shape (@server @cli @client-core).
14
+ - Delegation (#4408, #4121, #4021, #4321, #1447, #4390 / #4392): a delegated leg's session row records its tree's owner (`SessionPlacement` −`owner`, `SessionStore.acquire` +`owner`); `SubagentRetainEntry` −`resumeCount` (the continuation cap retires); `AgentStateSource.handle` changes; type-level changes to delegation reviews and workflow continuations (@server @cli @client-core @sdk @test).
15
+ - Instructions and execution (#4538, #4267 S1a, #3829): `instructionFamily.rulesDir` becomes `rulesDirs`; `ExecutionEnvFactoryContext.purpose` is required; a leg that needs no execution environment never asks the factory (`ToolMountPlan.executionEnv`) (@server).
16
+ - Events, routes and sandboxes (#4221, #4241, #2274 S2, #4046): `TaskEvent` +`hook_progress`, `ToolGatePhase` +`hook`; the route judgment's types; a run kept in an OS sandbox (#2274 S2) and a sandbox's question about an unlisted host (#4046), each with its own hard-breaking entries (@server @cli @client-core @sdk).
17
+ - Type level only (#4212, #1579, #3017, #1664): `SessionPolicyError.detail`'s union gains three refusal types; `TaskStream` gains the required `setFastMode` (an implementer of `TaskStream` must add it); `RunInternals.receivedPeers` is typed `LegReceipt`; the event registry's rows are `readonly` and frozen (@server @client-core).
18
+ - Money and parked rows (#4298, #4422): a run under a money ceiling that reaches a model with no price table now ends `failed` with `config.limit_invalid` where 7.68.3 completed it; an earlier release's intact parked row that this release reads differently is refused `checkpoint.unsupported_version` / `reading_changed` (its verdict still `damaged`, the way out still cancel), and `CheckpointRowVerdict.terminal` is a required boolean (@server @cli @client-core).
19
+
20
+ **Behavior** (the sections hold the measured before and after):
21
+ - A person is asked and told less under the relaxed modes (the owner's rulings C-R2268 / C-R2273 / C-R2275): a mode release is told to nobody (#4695); every notice carries `attention` and a session's screen shows `user` × `act` only, three repeating codes told once per session (#4696); under auto / bypassPermissions three questions stop reaching a person and the operator is told once per session (#4698, #4711); the removal guard asks about a program word the command's own text supplies (#4702), and one small `xargs … sh -c` class stops asking (#4699 B1).
22
+ - A turn whose only output was a tool call cut before its arguments closed is asked again within the malformed-tool-use cap instead of ending the run, on every lane (#4716, #4719).
23
+ - Messages a person sends while a run works are all read at the next boundary (#4524); a stream that stalls or tears after it started answering says so (#4223); Fast mode (#1579, #4299), and a call priced at the tier that served it (#4298).
24
+ - A damaged file ledger is refused by name instead of folded past (#4482); a workflow continuation whose holder died is taken over at once (#4652); one line of a workflow runs or waits at a time (#4552).
25
+ - Foreign words are redacted where the engine mints them (#4334, #4361, #4435, #4555, #4648); a user-audience notice no longer names the engine's own identifiers (#4639).
26
+
27
+ **Known limits.** Each section's "Known limit" bullets (the `KL-…` rows), and the last section of this block for what this release does not change: on an unattended answer table a shell spelling that feeds a path to a file-reading program reads past the read-deny table (the owner's ruling C-R2308 ①: not fixed in the engine), the removal guard has no reading for `find`'s own removal forms, and five smaller faces the release review found.
28
+
29
+ **Open to veto** (each in its section): the safety loosening the owner ruled — under the relaxed modes a person's unreadable rules are not asked about (#4698) — and the `xargs` data-operand class (#4699 B1); the narrowings and widenings of #4552, #4298, #4334, #4564, #4241, #3829, #4188 slice A′, #4702, #4716 and #4653; the `"all"` reading of #4705, with the fifteen settings that are not credentials and go with the `SEMA_` slots; #4696's one reworded sentence; the divergences of #4698, #4716 and #4223.
30
+
31
+ ### A permission mode's release of an ask is told to nobody: the two release notices are gone, and what each release was — the mode, the class of the question nobody was asked, whether the read-deny table reached the command's reads and, when it did not, which table that was — is read on the released call's own record (#4695; C-R2268; behavior change: two user notices no longer arrive; hard-breaking: three entries — two notice codes retired, one host gate seat's payload member moved into the record it carries, one tool option removed, below, open to veto @cli @server @client-core @test; narrowing: none; widening: none; closed sets: `EngineNoticeCode` −`permission.ask_released_by_mode` −`permission.read_deny_unapplied`; exports: none added, none removed; wire: `tool_end.gate.disposition.released` +`readUnestablished?` (and its `tableUnread?`), the Artifact card +`released?`, two notice codes no longer minted; host seat: `ToolGateInput.readDenyInForce?` added) (@cli @server @client-core @test)
32
+
33
+ - **Rule.** A mode release is a fact of the call it released, not something to tell a person. Under `bypassPermissions` — the one mode that releases an ask (`arbitrateByMode`; screen I7 refuses a `released` record naming any other mode; `auto` never releases: its classifier answers, or a question it may not answer goes to the person) — a call a person would have been asked about runs, and the person who chose the mode is not interrupted to hear it. The account lives where every reader of a call already looks: `tool_end.gate.disposition.released`. One mint writes it (`modeReleaseOf`, `src/core/gate-outcome.ts`) for the allowed disposition, for a direct gate host's `onModeReleased` seat and for the Artifact tool's own shared-read release.
34
+ - **Before (measured; real Runner, real Bash, a read-deny table in force, `bypassPermissions`).** Five opaque shell calls (`node -e`, `sh -c`, `eval`): the v7.68.2 tag's tree told `permission.read_deny_unapplied` five times (once per call) and `permission.ask_released_by_mode` once; the 7.69.0 stage told each once (`read_deny_unapplied` once per session per table since #2146). Five reads out of the root: one `permission.ask_released_by_mode`. A write to `.bashrc`: one. Three shared Artifact reads: one. The records carried no read fact, and a released Artifact read had no record at all.
35
+ - **Now.** None of those notices arrives — the two codes are no longer minted. Each released call's record reads `{ mode: "bypassPermissions", askClass, classes, origin?, mandate?, reason?, readUnestablished? }`; `readUnestablished` says the shell read station could not establish what the command reads (an inline program, a shell's own text, `find … | xargs cat`), so no row of the read-deny table was applied to those reads — and names that table as the retired `permission.read_deny_unapplied` detail did, read by the same reading of the leg's table: `{ tiers, rows, rowCount }` (the active built-in tiers; the first 8 rows beside them — the deployment's and the task's patterns, the read-face rule rows; the count of all rows). The three empty and no `tableUnread` say no read-deny table stood; `tableUnread: true` (the three then empty) says the release could not read the table this time — its seat threw (the person's path tables caught mid-compile) or answered no table — so a table may well have stood. The table is read only when the mode releases such a call, once for the call; no other mode reads it. Absent, the table was applied as usual (a read out of the root, a plain write). A shared Artifact read the mode released carries the same record on its result card (`details.released`, on the wire `tool_end.structured.released`).
36
+ - **Not changed.** Every gate decision, byte for byte on the same calls (the pin asserts the dispositions themselves, and the same assertions pass on the base tree): what bypass releases, what it keeps for a person (an ask rule, a hook's ask, an operator's mandate, an unreadable rule), what `dontAsk` refuses, what `auto`'s classifier answers and what it hands to a person, what the read boundary refuses (a spelled read of a denied file is still refused; the C-R124 residual — a command whose reads cannot be established is released past the table — is unchanged, KL-r2-e); the four hard refusals (credentials leaving, cross-tenant reads and writes, destroying data unasked, running untrusted content) are untouched; `onModeReleased` fires where it fired; every other notice.
37
+ - **Hard-breaking.** (1) *What changed:* `permission.ask_released_by_mode` and `permission.read_deny_unapplied` leave `ENGINE_NOTICE_CODES` / `EngineNoticeCode`, `NOTICE_AUDIENCE` and `NOTICE_MINTER` (161 → 159 codes; the notice audience vocabulary stays `"user" | "operator"` — there is no machine-only audience to move them to, and none is added here). *Who is hurt:* a consumer that pins the catalog as a closed set or keeps a rendering / audience row for either code — @cli (its screen already dropped both lines; delete the transitional match on the two codes), @server and @client-core (notices are forwarded by code: drop any row naming them), @test (criteria that expect either notice — 7.34.0 G-cells on `permission.read_deny_unapplied` / `permission.ask_released_by_mode`, 7.64.0 / 7.65.0 delegated-notice cells — read the record instead). *How to migrate:* a table kept in step with the engine's code by code deletes three things — the two words from its notice-code set, their two rows in its audience table and their two rows in its minter table; read `tool_end.gate.disposition.released` per call instead (`released.readUnestablished` carries what `permission.read_deny_unapplied`'s detail carried — `tiers`, `rows`, `rowCount` — with the mode at `released.mode` and the call's id on the event; the notice's `runId` / address are the event's own). A delegated agent's release is on the agent's own session's stream only (its `tool_end`): the root session no longer receives any line about it — the retired notice was routed to the root, the root stream does not carry a child's `tool_end` (as before). The release's wire manifest lists it under `closedSetMembers` (`ENGINE_NOTICE_CODES`, both words removed) and in `breakingItems`. (2) *What changed:* `ToolGateInput.onModeReleased`'s payload is `{ toolName, toolCallId, release }`; its top-level `readUnestablished` moved into `release.readUnestablished` (one fact, on the record the disposition carries). *Who is hurt:* a host that drives `runToolGate` itself and read `info.readUnestablished`. *How to migrate:* read `info.release.readUnestablished`. (3) *What changed:* `ArtifactToolOptions.onNotice` is removed — its one use was the release notice. *Who is hurt:* a host that builds the Artifact tool with `createArtifactTool` and passes `onNotice` (a type error now). *How to migrate:* drop the member; read `details.released` on the result.
38
+ - **Additive.** `ModeRelease.readUnestablished?: { tiers, rows, rowCount, tableUnread? }` (screen I7: absent or a table — string lists, `rows` at most 8, `rowCount` a whole number no smaller than `rows`, `tableUnread` absent or `true` beside an empty table); the Artifact result card's `released?: ModeRelease`; `ToolGateInput.readDenyInForce?` — a direct gate host hands the table its reads are judged with (read only when a mode releases a call whose reads were not established, once for that call, and copied; absent, a seat that throws, or one that answers no table — a non-string row, a sparse list — ⇒ the record says `tableUnread: true`; a failing seat is traced through `onHookError` once, not on every call: the read never moves a decision). Screen I7 / I9 now read every list member densely (a hole is a defect, not a skipped slot). **Absence is read by the engine version:** on a record this release (or a later one) wrote, an absent `readUnestablished` means the reads were established and the table was applied; on a record an older engine wrote it means "not known" (that engine never wrote the member). The record carries no version or capability word of its own — a reader tells the two apart by the engine version that produced the record.
39
+ - **The reference.** The reference's bypass conversion (`cli321.js` L287879) answers a surviving ask with `{ behavior: "allow", decisionReason: { type: "mode", mode } }` — a record on the decision, no sentence to the person (its only other call on that branch is an event word, `permission_bypass_removal_prompt_waived`). This change moves toward that form; no divergence entry.
40
+ - **Rules.** Accounts of one release 3 → 1 (the disposition record; the two notices are gone); mints of the release record 4 → 1 (`modeReleaseOf`: the exit's, two hand-built copies at the gate's seat calls, the Artifact notice's detail); per-mode notice dedup tables 2 → 0 (the per-run (mode, class) map and the once-per-session (mode, table) seat, `src/core/runner/read-deny-unapplied-notice.ts`, retired); the table's one reading (the leg's, `prepare-task.ts`) is unchanged and moves from the stations phase's notice seat onto the gate input, read where the release record is minted (`releaseRecordOf`, `src/core/runner/gate-exit.ts`) — only for a released call, once; the gate-stations phase's Input loses `announced` (phase-api 1249 → 1248). Added: one optional record member (with its own optional `tableUnread`), one optional gate-input seat.
41
+ - **Known.** A run whose deployment emptied the read-deny table (`readDenyBuiltinTiers: []`, no pattern, no rule) still carries `readUnestablished` on such a release, naming no table (`{ tiers: [], rows: [], rowCount: 0 }`): the member states the station's fact about the call; the retired notice said nothing in that case. After a person edits a command on its card and the mode releases the edited call's question, the read fact (and its table) is still the one judged on the bytes before the edit — the re-judge of the edited bytes runs after that release point and denies on its own (KL-4695-a; the seat already heard the release before that re-judge, as on the base). A release made by an inherited ancestor station reaches the disposition without `onModeReleased` firing (as on the base). When the Artifact tool's dispatch throws on a shared read the mode released, the release recorded for that call goes with the failed call: a thrown dispatch has no result card to carry it (KL-4695-b). #2146's entry below (one notice per session per table) is superseded by this one in the same version: that notice is retired here.
42
+ - **Pins.** `test/backlog4695-mode-release-quiet.test.ts` — G1 the gate, bypass × reads the station could not establish, no table seat handed ⇒ the record and the seat carry `readUnestablished` with `tableUnread: true`, the same value, nothing traced · G1e a seat answering an empty table ⇒ the three empty without `tableUnread` · G1b with a table handed ⇒ its tiers, its first 8 rows of 10, `rowCount: 10`, the table read once for the call · G1c a table seat that throws or answers a malformed / sparse table ⇒ the same release, `tableUnread: true`, one trace · G1f one failing seat over three releases ⇒ three `tableUnread` records, one trace · G5 `default` / `acceptEdits` / `auto` × the same call and a seat that would throw ⇒ the seat never called, nothing traced, the card as on the base; G5b bypass ⇒ read once · G1d the table copied once at the read (a host table changed later changes neither record), frozen on the disposition · G2 reads established ⇒ absent, the table not read · G3 default ⇒ the card, the seat silent · G4 screen I7 (four valid tables, fifteen malformed values, five malformed `tableUnread`) · R1 five opaque calls under a table ⇒ released as on the base tree, each naming the table, zero notices (base: one of each; 7.68.2: five `read_deny_unapplied`) · R1t the table the record names equals the table the base tree's notice detail named (the cell passes on both trees) · R2 a policy ask on five writes ⇒ released without the fact; a spelled denied read still refused; a read in the root asks nothing · R3 five reads out of the root ⇒ released, the table applied, zero notices (base: one) · R4 a write-protected write ⇒ released as `write_protection`, zero notices (base: one) · R5 `auto` × the opaque calls ⇒ five cards to the person (as on the base tree), nothing released · R5b `auto` × policy asks ⇒ the classifier answers, nothing released · R6 `default` ⇒ five cards · R7 Artifact: bypass ⇒ each card carries the release, zero notices (base: one); default ⇒ asked once, no release on a card · R8 the record tells opaque, scan and plain releases apart · C1 the catalog. Rewritten to the record: `test/backlog-cr124-bypass-read-deny-disclosure.test.ts`, `backlog1111` J1, `backlog3479` N5 / N6, `backlog3083-3084` (the delegated release cell and the station's address census), `backlog1293b` G24, `backlog1618` ②b (now on the allowed-tools advisory, a notice that still carries a caller's words). Retired with the notices: `test/backlog2146-read-deny-notice-once.test.ts`, `test/backlog2146-read-deny-notice-reach.test.ts` (its wire cell W1 lives on as R8), `test/backlog3909-released-ask-notice-sentence.test.ts`.
43
+ - **Consumers.** @cli: delete the transitional match on the two codes; nothing to render in their place (a surface that wants to show releases reads `tool_end.gate.disposition.released`). @server / @client-core: forward the record as before; drop any table row for the two codes. @test: the criteria cells that expected either notice read the record (`released.readUnestablished` for the read-deny case) and expect zero notices; `tableUnread: true` there means the table was not read that time, not that none stood; a delegated agent's release is read on the agent's own session's stream.
44
+
45
+ ### A stream that stalls or tears after it started answering is no longer silent: the wait for the next token is a `waiting` frame like the header and first-token waits, every wait frame says what its cut will do, the continuation of a cut answer rides the status channel, and a run that completes on a cut answer says so (#4223 / #4222; C-R1481; behavior change: new status frames on a stream in trouble after output began, an announced wait or retry whose call then ends in a provider-reported error now closes `gave_up` (was `recovered`), and a wait whose call ends cut closes as kept (was `first token arrived`); hard-breaking: four entries — one phase word retired, two root exports removed (renamed), one root type turned from an interface into a union, below, open to veto @server @cli @client-core @sdk @test; narrowing: none; widening: none; closed sets: `BrainStatusPhase` −`waiting_first_token` +`waiting` +`continuing`, `BrainStatus.waitSegment` +`next_token`, `TerminalCompletedDetail.kind` +`response_cut`; exports: `WAITING_AFTER_MS` / `WAITING_EVERY_MS` added, `WAITING_FIRST_TOKEN_AFTER_MS` / `WAITING_FIRST_TOKEN_EVERY_MS` removed; wire: the `status` frame's phase words and its new member `atTimeout`, `terminal.detail`; divergence: one, below, open to veto) (@server @cli @client-core @sdk @test)
46
+
47
+ - **Rule.** The waits an engine watchdog is armed on — the response headers, the first token, the next token once output began — are one fact with three values: one phase `waiting`, one mint (the same disclosure timer: first frame after 30 s of silence, one every 30 s, the threshold tick disclosed before the cut), `waitSegment` naming which. Each `waiting` frame states what its cut will do (`atTimeout`), read off the ONE function the cut itself acts on. The continuation of a cut answer is announced when the request that continues it goes out — a continuation the run ends before sending says nothing — numbered by the one counter the decision moves. A run that completes on a cut answer says so on the seat that already exists for "completes yet may be short".
48
+ - **Before (measured, real Runner over a scripted upstream).** 90 s of silence after the first words: zero `status` frames — the host had a spinner. A stall cut by the idle watchdog at 300 s, then the engine's own continuation: zero frames. Every call cut and the continuations used up (four calls): zero frames, and the result read `terminal: { kind: "completed" }` with nothing saying the answer was cut. A torn connection: the same.
49
+ - **Now.** (a) After output began, silence of 30 s reads `{ phase: "waiting", waitSegment: "next_token", elapsedMs, timeoutMs }` (the ceiling is the idle window, `idleTimeoutMs`, default 300 000 — no new knob), again every 30 s; every content delta restarts the wait, so a stream that trickles emits nothing and a 300 s stall emits at most ten. (b) Every `waiting` frame carries `atTimeout`: `retry` (the cut re-sends: a retry is left on the lane that cut takes), `keep` (output already arrived: the call ends with it, marked cut), `fail` (no retry left). `atTimeout` says what reaching `timeoutMs` does; a call that ends another way ends its own way — a provider error, the run's walltime, a cancel, a spent budget — and on a cancel or the walltime what had arrived is not kept even after a frame said `keep` (measured: the result is empty). (c) When the loop dispatches the request that continues a cut answer (past its preparation and the abort gate): `{ phase: "continuing", attempt: k, maxRetries: 3 }`. A continuation decided and never sent — the run reached its turn limit, its walltime, a stop or a cancel first — emits no `continuing` (measured: a cut first turn under `maxTurns: 1` shows only the call's own frames and the turn-limit terminal). The sequence closes after the next turn that does not continue it, read off that turn's own message — `recovered` when it was not cut (or went on to tool calls the run executes: the reference resumes no cut tool turn, cli321.js L287625), `gave_up` when it was cut again with no continuation left (budget spent, or a steer took the turn) or failed; a loop that ends with the sequence open — the next continuation due and never sent, a throw — closes it `gave_up` on the way out. A cancelled continuation call adds no loop frame: that call's own closing frame ends the sequence when the call had announced a wait, otherwise the run's terminal does (one closing frame per call); a cancel between turns, with the next continuation due and unsent, closes the open sequence `gave_up` as above. The continuation budget is per run: a later run on the same session whose answer is cut again starts at `continuing` 1 of 3 — a host sees `gave_up` (and `response_cut`) end one run and `continuing 1/3` open the next (measured, X1). These three frames' `detail` is the run's locale (`promptLocale`; engine catalog rows `core/engine.continuation-continuing` / `-recovered` / `-gave-up`, zh-Hans rendered). (d) A run that completes on a cut answer: `terminal: { kind: "completed", detail: { kind: "response_cut" } }`; `result` holds what arrived. A continuation that finished leaves no marker. (e) The closing frame of a call that announced a wait or a retry is read off the call's own terminal event: an `error` closes `gave_up` — thrown (the sentences as before) or **reported in the provider's stream — `content_filter`, a body that ended with nothing in it — which closed `recovered` "first token arrived" before (measured; now `gave_up` "the response ended in an error")**; a `done` message marked `partialFinalized` (a cut whose output was kept — by the engine's watchdog, a tear, or a body that ended with no finish reason) closes `recovered` "the response was cut; what had arrived was kept" — after retries too (was "recovered after retrying"), and after a first-token wait whose call then ended cut (was "first token arrived", measured); otherwise "recovered after retrying", "the response went on" (after a next-token wait) or "first token arrived".
50
+ - **Hard-breaking (C-R1481).** (1) *What changed:* the `BrainStatusPhase` word `waiting_first_token` is retired — every observed wait is `waiting`, and `waitSegment` (now `response_headers` / `first_token` / `next_token`) says which; no alias, no second reading. *Who is hurt:* @client-core — `BRAIN_STATUS_PHASES`, the `case 'waiting_first_token'` arm of `mapBrainStatusToRetry` and the engine-vocab gate (`src/retryStatus.ts`); a phase it does not know falls to its `default:` arm, which maps to an error (measured on client-core 0.110.0, the build the cli checkout installs; origin/main 0.112.1 reads the same arm, `src/retryStatus.ts:592`, `:636-638`): a first-token wait that reads "Waiting for the model's first token — 30s so far, limit 10m 0s" today reads "Request failed — retrying" over a new engine, a next-token wait the same, and `continuing` reads "Request failed — retrying, attempt 1 of 3"; @cli — reads no engine phase word itself (`src/sema/modelStatusLine.ts:19`), it is hurt only through client-core; @sdk — the `BrainStatusPhase` type; @test — criteria that pinned the old word; @server — none (`brainStatusEventData` passes `phase` and `waitSegment` verbatim). Mixed versions, by the client-core a face runs: **≤ 0.112.1** — the new `waiting` / `continuing` fall to its `default:` arm and show as failure lines ("Request failed — retrying" / "… attempt k of 3") (measured on 0.110.0's dist; 0.112.1 read: the same arm); **0.113.0** (client-core's own statement, not measured here) — a phase outside its closed set is not rendered: the wait and continuation lines do not show and no failure line does, and `response_cut` takes its unrecognised-kind arm without throwing; **≥ 0.114.0** — follows in full. Pickup order, two levels: the server takes this engine (7.69.0) once every client-core it serves is ≥ 0.113.0 (the minimum) — ≥ 0.114.0 for the full reading; the cli follows through client-core. `waiting_first_token` is retired hard in 7.69.0, not emitted alongside (client-core reads both words on its own side until every face is past 0.114.0). *How to migrate:* read `waiting` with `waitSegment` (render `next_token` as "waiting for the response to continue"), and give `continuing` a row (a cut answer being continued, `attempt` of `maxRetries`). (2) *What changed:* the root export `WAITING_FIRST_TOKEN_AFTER_MS` is removed; the same value (30 000) is `WAITING_AFTER_MS`, which now paces the first frame of every wait. *Who is hurt:* an importer of the old name (none in this repository outside its pins). *How to migrate:* import `WAITING_AFTER_MS`. (3) *What changed:* the root export `WAITING_FIRST_TOKEN_EVERY_MS` is removed; the same value (30 000) is `WAITING_EVERY_MS`, which now paces the repeat of every wait. *Who is hurt:* an importer of the old name (none in this repository outside its pins). *How to migrate:* import `WAITING_EVERY_MS`. (4) *What changed:* the root type `TerminalCompletedDetail` is a discriminated union (`{ kind: "finish_reason_unknown"; finishReasonUnknown: string } | { kind: "response_cut" }`), no longer an interface. *Who is hurt:* a TypeScript reader of `detail.finishReasonUnknown` that does not narrow on `kind` first, and a declaration that merges into the interface. *How to migrate:* narrow on `detail.kind` (keep a default arm).
51
+ - **Additive.** `BrainStatus.atTimeout` (`"retry" | "keep" | "fail"`, on every `waiting` frame); `waitSegment: "next_token"`; phase `continuing` (with `attempt` / `maxRetries`, whose docs now name it); `TerminalCompletedDetail.kind: "response_cut"` (a union now — branch on `kind` with a default arm). @server: `brainStatusEventData` drops `atTimeout` until it is whitelisted (its exhaustiveness gate reds once at pickup); `TERMINAL_COMPLETED_DETAIL_TREATMENT` (`src/observability/run-terminal.ts`) needs a `response_cut` row (tsc reds at pickup); the `next_token` wait has a rate bound (one frame per 30 s of silence) and no count bound — a stream that sends a word every 31 s emits one frame per gap, and each frame is a durable `brain_status` row and one `brain_retry_total{phase}` count there; `continuing` is counted by that retry counter too. @client-core: `RetryStatusArmLike` lacks `atTimeout`. Until each is followed, the new facts do not reach the shell.
52
+ - **Divergence (C-R1481, open to veto).** The reference's own frame for a continuation of a cut answer (the `cut_retry` wait, cli321.js L289115, projected to the SDK's `system/api_retry`, L293880) is gated off by default there (`tengu_dreamy_flute`), so by default it says nothing while it continues; this engine emits `continuing` / `recovered` / `gave_up` by default — additive observability in the reference's own family; whether to show it is the host's. Requested by test [13993], cli L-3047, client-core CC-1555.
53
+ - **Not changed.** Every threshold, ceiling, budget and knob (30 s / 30 s; first-byte, first-token, idle windows; three continuations in a row; tier B's two thinking retries; the shared `maxRetries`); what a cut does (the tiering moved into one function, `cutArmOf`, read by the cut and by the frame, with the same arms in the same order); the retry-wait frames and their sentences; the first-token wait's cadence and members (its closing sentence moved, (e)); `TaskResult` gains no member.
54
+ - **Known limit.** KL-4223-a: the continuation frames' `detail` is localized, the brain's wait / retry hints are fixed English (the brain holds no locale) — render from `phase` and the members, `detail` is a fallback; `atTimeout` is a forecast of the timeout, not of the call's end; the continuation budget is per run.
55
+ - **Rules.** Readings of "which wait" 2 (a phase word that named one segment + a member that named the others) → 1 (`waitSegment` under one phase); the tier choice read once (the cut) → read once and stated in advance from the same function; the closing frame's phase read off "did it throw" + three sentence sites → off the call's one terminal event; continuation facts minted by the loop — opened as the continuing request is dispatched, closed off the next turn's own message or on the loop's exit, never for a cancelled call — kept apart from the continue budget; the completion account gains a kind on its existing seat. Knobs added: 0.
56
+ - **Pins.** `test/backlog4222-4223-midstream-facts.test.ts` — P1 90 s of silence after the first words: `next_token` frames at 30 s / 60 s of the silence, `keep`, closed "the response went on", unmarked · P5 control: a stream trickling a word every 25 s emits nothing, a fast stream nothing · P6 control: the first-token wait under the new word (`first_token`, `retry`, "first token arrived") · P2 idle cut at 300 s + continuation: nine frames, kept, `continuing` 1 of 3, `recovered`, the run UNMARKED · P3 every call cut: `continuing` 1–3 of 3, `gave_up`, `response_cut` · P4 a tear under the threshold: no `waiting`, `continuing`, `recovered` · P7 zh-Hans continuation sentences · A1 `retry` then `fail` on the first token (the cut re-sends once, then fails) · A2 `retry`, `retry`, `fail` mid-stream on thinking only (three calls) · A3 `keep` (one call, kept, `partialFinalized`) · A4 `retry` then `fail` on the response headers (the first-byte lane re-sends once, then fails) · C1 a provider error after a next-token wait closes `gave_up` · C2 a body ended with no finish reason closes as kept · C3 a kept cut after a retry says kept · L1 a continuation that answers, then a requested stop: `recovered` · L2 a throw out of the loop closes `gave_up` · L3 a cut tool turn: `recovered` · L4 a failed continuation turn: `gave_up` · L5 a cancel then a throw: no loop `gave_up` · L6 a stop before a due continuation's request: `continuing` once, `gave_up` · L7 a cancel between turns with a continuation due: `gave_up` · L8 / L8b the continuing request's preparation throws: no `continuing` for it (`gave_up` closes an open sequence) · L9 a cancel during that preparation: no `continuing` · N1 a cut first turn under `maxTurns: 1`: no `continuing`, no loop frame · N2 under `maxTurns: 2`: `continuing` 1, `gave_up`, no `continuing` 2 · N3 / N4 a cancel during the continuation's first-token / next-token wait: one closing frame, the call's · N5 a cancel before any wait: no closing status frame · X1 the budget per run (`continuing 1/3` again in the next run on the session) · the retirement tripwire (`waiting_first_token` absent from `src/` and a built `dist/`). Re-pinned to the new word: `backlog530`, `backlog746`, `backlog2870`, `backlog1121`, `backlog682`, `export-surface.snapshot.json`.
57
+
58
+ ### A managed worktree whose commits sit on its branch but no longer on its HEAD is kept, not removed as "unchanged" — ExitWorktree, a delegated child's worktree and a session checkout's release read one count that reaches the tree's branch as well as its HEAD; a host that mints its own trees gets the one judge as a root export (`judgeManagedTree`); the sentences about a worktree say it is on a branch (#2680, #4294; behavior change: narrowing + wording + one new root function, +3 export names — open to veto @server @cli @client-core @test)
59
+
60
+ - **Rule.** One reading of what a managed tree holds (`treeHoldsOf`, `src/core/git-worktree-env.ts`) counts the commits past the tree's base that its HEAD **or its own branch** reaches: `git rev-list --count refs/heads/<branch> HEAD ^<base> --`, the branch being the one the path law gives the tree (`sema/<slug>`), the only branch a removal may delete. Every door that judges a tree reads that count through the one keep verdict (`keptByHolds`): ExitWorktree, the delegated child's worktree (`createSubagentWorktreeHelper.finish`; `addWorktree` with `onExit: "keep-if-dirty"` for a host-minted tree), `releaseSessionCheckout` and `releaseOrphanSessionTree`. The three doors were already one judgment (#3746); the defect was inside it. A host that mints its own trees (`addWorktree`) and decides on its own when to collect one reads that same verdict through one root export, `judgeManagedTree(env, { path, baseSha })` → `{ collectable: true }` or `{ collectable: false, kept, detail? }` with `kept` one word of the existing closed set (`dirty` · `ignored` · `commits` · `unverifiable`); it only reads. The three engine doors read it through the same function (the internal `treeKeptBecause` is folded into it).
61
+ - **Before.** The count was `git rev-list --count <base>..HEAD`. A tree that committed on its branch and then had its HEAD moved back to the base (`git checkout --detach <base>`) read 0, so all three doors removed it — ExitWorktree with no `discardChanges`, the child's finish answering `pruned`, the session release answering `removed: true`. The commit was not destroyed: the branch rule keeps a branch whose tip is not the base, so it stayed on `sema/<slug>`; the tree was removed without asking. (Measured on real git through the three real doors, `.gate-logs/baseline-run1.log` of the car.) The reference (CC 2.1.304, "removing the worktree and its branch without asking at exit") counts the commits on the tree's branch and at a detached HEAD, not only at HEAD (`A7r` (cli321.js:288415), the worktree-changes reader).
62
+ - **Now.** That tree is kept with its branch: ExitWorktree replies `KEPT at <path> (it has 1 new commit)`, the delegated child's finish answers `kept`, the release answers `kept: "commits"`. A tree whose branch the person deleted while it sat detached is read by HEAD alone, as before — but only when git PROVES the ref is gone: the listing of the ref is empty and clean, and then a transaction that only verifies the ref does not exist and aborts (`git update-ref --stdin`: `start`, `verify <ref>` with no old value, `prepare`, `abort`) exits 0. Any other answer (a ref that is listed, a refs directory git may not open, a ref it cannot read, a repository it cannot write, a git too old for the transaction verbs) leaves the count unread and the tree kept as `unverifiable`. Measured on git 2.54 (local) and git 2.39.5 (the k3s8 container, uid 1000): exit 0 for an absent ref (loose, packed, parent directory missing); 128 for a ref that exists, a refs directory at mode 000, a ref file at mode 000 or broken, and a repository that cannot be written (local only: a disk image attached read-only, and the `chmod` stand-in; the container cannot mount — not superuser — and there the arm simply stays unread, the tree kept, since a removal could not succeed either); no `.lock` file left in any case; in the local run, 150 probes racing a writer that creates and deletes the same ref never made the writer fail (it did 300 of 300 updates), and 150 probes beside `git commit` on another ref never made a commit fail. A probe killed inside its few-millisecond window would leave `<ref>.lock` behind, which blocks creating that one branch name until removed (推断; not provoked). An explicit `discardChanges: true` still removes the tree; the branch that carries the commit is still kept (the branch rule).
63
+ - **Narrowing (open to veto @server @cli @client-core @test).** A tree that used to be removed at exit / release (HEAD back at the base, commits on its branch) is now kept; a host that archives session checkouts and expects `removed: true` there reads `kept: "commits"`, the existing word. A tree whose commits are already merged elsewhere but whose HEAD sits back at the base is kept too: the count does not ask whether a commit is merged (with HEAD on the branch it never did). A path that is no managed tree (`<root>/.sema/worktrees/<slug>`) is no longer counted by HEAD alone: it has no branch the engine knows, so its commits cannot be counted and it is never collectable (a tree otherwise clean reads `unverifiable`) — every tree an engine door or `addWorktree` handles is managed, so this reaches only a caller that hands in another path. Nothing that was kept before is removed now (the new count is a superset of the old one). **@server (inferred from origin/main `fbcb3ff18` of the neighbor checkout, read-only, not fetched):** `src/plugins/worktree-isolation.ts:200-205` runs its own `git status --porcelain` + `git rev-list --count <base>..HEAD` before its teardown — the old count, and no ignored files; it does not read this change. Minting with `addWorktree({ onExit: "keep-if-dirty" })` (7.62.0, #3741), or asking `judgeManagedTree(opts.baseEnvForGit, { path: worktreeDir, baseSha })` before its own teardown (it holds both: `addWorktree` answers them), puts it on the one reading and lets it delete its two git commands (#4294).
64
+ - **The reference's switch.** The reference reads its branch-aware count behind a remote flag: the worktree-changes reader `QXt` (cli321.js:288415) calls `Rt("tengu_wary_ladle",{safe:!0})` — `Rt` (cli321.js:279814) answers its `safe` value when the flag cannot be resolved, so the count is branch-aware by default — and its caller passes the constant `bDe` (cli321.js:285018) as the second argument (`QXt` (cli321.js:312133)), so the flag alone decides. With the flag off it counts HEAD only: that is the reading this change retires. The live value of the flag was not measured (推断: on); this change takes the branch-aware form, which is also the superset one.
65
+ - **Not guarded, by the reference's own reach (KL-2680-a).** A commit only a reflog still names (`git reset --hard <base>` on the tree's branch; a commit made on a detached HEAD and left by switching back to the branch at the base) is not counted — the tree and its branch are removed and the commit is then reached by no ref. A `git stash` entry is not lost: `refs/stash` is shared and outlives the tree. Measured, both, in the same matrix. A refs directory git may not open (`refs/heads/sema` at mode 000) is NOT such a form: git reads it as holding no refs without a word, which the first cut of the deleted-branch arm took for "branch deleted"; the verify-absent transaction above now tells the two apart (the tree is kept `unverifiable`; pinned as cell K, discriminating on a non-root host).
66
+ - **Wording (@cli @client-core @server @test; the model-facing ones are marked M; each pinned in `test/backlog2680-…` S1–S4, X1–X2, `test/backlog3746-…` E4, `test/worktree-tools.test.ts` M19b, `test/rb387-…`, `test/agent-tool-consolidation.test.ts`, `test/prompt-golden-1302.json` refrozen).** ExitWorktree's KEPT reply (M) names the branch: `KEPT at <path> (<why>); its branch is <b>, and commits made on a branch stay on it even when the tree's HEAD has moved off it — inspect or merge it there, …` (was `KEPT at <path> (<why>) — inspect or merge it there, …`; the tree's `git log` does not show a commit once HEAD is back at the base). A tree whose state could not be read: `(its state could not be verified, so it is kept to be safe)` (was `(it has could not verify the worktree state — keeping it to be safe)`). A discard that removes a tree holding commits (M): `had 1 new commit (discardChanges was set — the tree and any uncommitted or ignored files in it are gone; its commits stay on the branches that carry them)` (was `… (discarded — discardChanges was set)`, which said the commits were discarded while the branch rule keeps them); the refuse-and-list pointer (M): `re-invoke with discard_changes: true — the files in it are then discarded for good, its commits stay on the branches that carry them` (was `… permanently discard these changes, re-invoke with discard_changes: true`). ExitWorktree's description and its `discardChanges` / `discard_changes` parameter descriptions (M): the files are permanently discarded, commits made on the worktree's branch stay on it (was: "they are permanently discarded" for files and commits alike); a kept tree's "path" is "path and branch". The delegation report line for a kept child tree (M): `(KEPT — it holds uncommitted changes, files git ignores or commits, or git would not remove it; its branch is sema/<slug>, and commits made on a branch stay on it even when the tree's HEAD has moved off it; inspect/merge it, then remove it)` (was `(KEPT — it holds changes or files git ignores, or git would not remove it; inspect/merge it, then remove it)`; a directory that is no managed tree names no branch). The background launch card (M): `(the agent works in its own git worktree on branch sema/<slug>; …)` (was `… its own detached worktree; …`, while the tree is created on that branch). The Agent tool's description and its `isolation` parameter (M): `its own git worktree on a new branch` (was `its own detached git worktree`). No wire key, no closed-set word and no error code moves.
67
+ - **Not changed.** Uncommitted files, files git ignores, the unreadable-state verdict (`unverifiable`), the branch rule (a branch at the base goes with the tree, any other is kept), `discardChanges` / `keep` on ExitWorktree, the closed sets (`ReleasedTree["kept"]` gains no word), the structured details of ExitWorktree and of a kept delegation (the path only), every wire member.
68
+ - **Exports (`npm run handoff:diff`).** Root +3 names, nothing removed or changed: `judgeManagedTree` (function), `ManagedTreeVerdict` (type), `TreeKeptReason` (type; the closed set a release already answers). The internal `treeKeptBecause` and `branchStateOf` are not root exports.
69
+ - **Rules.** Retired: `treeKeptBecause` (internal; folded into `judgeManagedTree`, one function for the engine's doors and the host's), the "a path that is no managed tree is counted by HEAD alone" arm (such a path is never collectable), and ExitWorktree's `changeDetail.startsWith("could not verify")` sniff (the reading says whether it could count). Added: one arm — a failed count whose branch git proves absent counts HEAD alone (the shape of the reference's own fallback for a missing branch), proved by one listing (`branchListingOf`, the single reader behind `branchLeftOf` too) and one verify-absent transaction (`branchAbsentOf`, asked only after an empty clean listing); one root function.
70
+ - **Pins.** `test/backlog2680-tree-holds-commits-off-head.test.ts` — the matrix, real git × the three real doors: E0 clean ⇒ removed · E1 a commit on the branch ⇒ kept · A a commit on the branch then HEAD detached at the base ⇒ kept (the fix) · A3 a commit on a detached HEAD ⇒ kept · B2 a commit on another branch, HEAD left on it ⇒ kept · B a commit on another branch, HEAD back ⇒ removed, the commit reached by that branch · H / H2 the tree's branch ref unreadable (mode 000 — discriminating only on a non-root host — or overwritten with text that is no object id) ⇒ kept · K the DIRECTORY that holds the branch's ref unreadable (mode 000, non-root hosts) ⇒ kept · G the tree's branch deleted while detached ⇒ removed · A2 / C reflog-only ⇒ removed, documented unguarded · D a stash ⇒ removed, the stash survives; X1 / X2 the ExitWorktree words and `discardChanges`; U1–U5 the command, the deleted-branch arm and every arm that must not take it (a listed branch, another ref listed, a warning beside an empty list, a transaction that cannot lock, a rejected start) on a stub; S1–S4 the launch card, the kept line, the Agent tool's and ExitWorktree's descriptions; J1–J3 `judgeManagedTree` imported from the package root specifier over trees `addWorktree` minted: each kept word, nothing judged collectable on a guess, nothing written. Mutations in the car's `.gate-logs/mutations.md`.
71
+ - **Consumers.** @server: above (#4294) — `judgeManagedTree` replaces its `isChanged()`: `!(await judgeManagedTree(opts.baseEnvForGit, { path: worktreeDir, baseSha })).collectable`. @cli @client-core: an archive / exit that rendered "removed" for such a tree now renders the kept answer (`kept: "commits"` / the KEPT sentence), and the sentences above read as listed; no new word. @test: A × three doors on real git; the wording cells.
72
+ - **Wire.** None.
73
+
74
+ ### A refusal names the member the caller wrote that its door does not take — one shape (`callerKey`) at every door: `"zzStray"`, on one line, at most 80 characters, where the same fault read `«redacted» (7 characters)` at some doors and a raw JSON string or a bare path segment at others; the value held at the name stays withheld (#3845, #3844; sentence change; widening: a stray member's name is no longer withheld)
75
+
76
+ - **Rule.** One function, `callerKey` (`src/core/caller-text.ts`, a root export), is the shape the NAME of a member a door does not take has in a sentence: the name as the caller wrote it, JSON-quoted, folded to one line (the sanitized echo's fold: control, format and separator characters become one space, an envelope tag is defused), cut at 80 characters between the quotes — JSON escapes counted, so a name of backslashes is cut at 40 — with the truncation mark, and followed by its size in UTF-16 units (`String.prototype.length`, the one size that costs nothing to read) when what is shown is not the whole name (`"zz…" (200 UTF-16 units)`); a symbol is `Symbol("<description>")`, the description quoted, folded, escaped and cut by the same function (a `)` or a quote inside it cannot close the parenthesis or forge a suffix); anything else is named by its kind. The work is bounded whatever the size of the name (the fold reads at most 4096 units; a five-million-character name is never walked). `dataKind` (the kind words of both shapes) no longer throws for a revoked Proxy: it is `a record`. A VALUE the caller wrote stays `callerText` (the mark and a length). The author table of `caller-text.ts` gains one row: (a′) the name of a member a door does not take.
77
+ - **Before.** The same fault had four spellings. The shared stray-member sentence (every constructor options bag, the memory-engine and permission-store bags, the reply / answer / declaration readers, the peer answer, the host floor, the face and axes readers, the host transport, the retention bags) gave the mark and a length: an integrator who misspelled an option read `FileMailboxStore options: «redacted» (5 characters) is not an option it takes` and, with no near name within two edits, could not tell which option it was. Ten doors quoted the name raw (`JSON.stringify`): output style, the clamp record, context settings (the overlay, the word the catalog lacks), `swapDeps`, the session-verb request, the SQL package's driver, the unknown-member sentence of `TaskSpec`, the tool-model gate, the session rules and the role map's keys; one put it bare in a path (`TaskSpec.limits.<key>`); the tool catalog's and the prompt artifact's readers quoted then cut it (`JSON.stringify(k).slice(0, 40)`) and the Model reader used its own bounded helper; four doors the first pass missed put the name in raw quotes or bare — the checkpoint queries (`the query carries "<name>"`, and the `after` cursor through the same function), the session list query and its cursor, the execution environment's capability census (`declares capabilities.<key>`), and `clearStaleToolResults`'s options. A hostile name (a newline, a bidi override, 200 characters) was echoed whole at the raw doors.
78
+ - **Now.** `FileMailboxStore options: "fsynk" (did you mean "fsync"?) is not an option it takes — …`; `TaskSpec.limits["zzStray"] is not a limit this engine reads…` (was `TaskSpec.limits.zzStray is …`); `answered the member "zzStray", which a "carry" answer does not have`; `RunnerDeps.hostFloor has a member "zzStray"`; `the face has an unknown member "pathTraget"`; `swapDeps: "zzStray" is not a hot-swappable seat`; a symbol: `answered the member Symbol("zzSym")` (was `a symbol «redacted» (5 characters)`, and `names "Symbol(zzSym)"` at the clamp record, now `names Symbol("zzSym")`); a hostile name: `"zzxxxxxx…" (209 UTF-16 units)`, one line. At every door the value at the name is not in the sentence.
79
+ - **Widening (open to veto @server @cli @client-core @test; safety-shaped — the masking law of the five-author rule is relaxed for names only).** A stray member's name was withheld at every door that takes the engine's name judgment (58 call sites: the options bags of the stores and the memory engine, the reply / answer / declaration readers) and at the doors that spelled it themselves (host floor, auto-mode denial limit, tool-search object form, the face / axes / anchored-entry / host-transport readers, the withheld-env table, the session-log transfer, the peer answer); it is now named. The reading: the name is the defect and the only thing that lets the person find it, and a name is not where a credential lives (the value at it is, and stays withheld). Not defended: a credential pasted as a NAME now rides the sentence (the old pin said so as its own case, `test/backlog2888-…`). Tool and skill names, `_meta` keys, header and variable names, list entries and a word outside a closed vocabulary are not stray members and stay `callerText`.
80
+ - **Not changed.** Every code (`config.invalid_argument`, `config.spec_unknown_key`, `config.limit_unknown_key`, `config.host_floor_invalid`, `config.auto_mode_denial_limit_invalid`, `config.output_style_invalid`, `rewind.invalid_spec`, …) and every structured detail member: on the error object a caller catches in process, `detail.keys` of `config.spec_unknown_key` still carries the names as text (a symbol as `String(symbol)`), `detail.key` of `config.execution_env_capability_invalid` still carries the raw key, and `detail.path` of `config.user_attachment_invalid`, `detail.field` of the hands-band refusal and `detail.key` of the sandbox-settings refusal carry the key as before. On the task's `terminal` the `keys` member of that detail stands as the redaction mark, before and after this change alike (the terminal's detail reading takes a member called `keys` for a credential name); the `onError` surface and notices do not carry it.
81
+ - **Rules.** Spellings of a stray member's name in a sentence 4 → 1; retired: the bare `${key}` in a path, the per-door `JSON.stringify(String(k))`, the sliced JSON of the prompt-assembly readers. Added: `callerKey` (one function, one table row). No door gained a special case.
82
+ - **Exports.** Root: +`callerKey` (advanced tier). Removed: none.
83
+ - **Known.** (#3844, the other half) A VALUE that equals a word the engine knows is still withheld: the engine holds no single table of its known words to read it against (the closed sets are per seat, and a value outside a seat's own set is by definition not in it), and a table made for this would be a second list; the keys of its examples (`utilityGate`, `embedder`, a deny-list key) are named now. Not converted, each for its own reason: (1) words an extension or a source wrote keep the reading of their author — credentials erased first, then the line (`extensionWords`: the mods stations, the prompt-section answers; the prompt overlay's violation sentences); (2) records the engine wrote and reads back — a mailbox's peer metadata and notice keys, a checkpoint's steering and actor fields, a recorded policy floor, the cross-boundary taint record — keep their own sentences (the name is named there already); (3) a key in the path position of a structured wire field — `detail.path` of `config.user_attachment_invalid`, `detail.field` of the hands-band refusal, `detail.key` of the sandbox settings — stays the field's content, and the message carries the same path (KNOWN-LIMITS KL-3845-a); (4) a per-tool table's tool name, a header or variable name a peer answered, a `_meta` key, a prompt argument, a list entry and a word outside a closed vocabulary are not stray members and stay `callerText`. (5) A getter that throws at a key the door has not yet judged prints that key raw in the path of its sentence (`<subject>.<name> threw while it was read`, `src/core/own-property-receipt.ts`): the path also carries the engine's own member names in dozens of pinned sentences, so it is left as it is (KNOWN-LIMITS KL-3845-b). The axes and faces sentences are cut at 240 characters, and the cut never reaches the name: it applies to the detail alone, the name ends well inside it, and the pin spells the worst name (80 escaped characters, a seven-digit size) through the reader, the door's sentence over it and the faces sentence.
84
+ - **Pins.** `test/backlog3845-callers-key-in-refusals.test.ts` (101 cells: K1 the shape — quoting, folding, the bound with escapes counted, a surrogate pair at the bound, symbols quoted and escaped, kinds, a revoked Proxy, and a five-million-character name that no string iteration walks past 4096 units; K2 a value stays withheld; R twenty-four real doors — a constructed store and backend, a Runner's task / deps / swap, a request verb, a resume closure, the SQL driver, the checkpoint queries and their cursor, the session list and its cursor, the capability notice a Runner announces, `clearStaleToolResults` — each naming `zzStray`, one spelling, the value withheld, code kept, plus `detail.keys` on the error and on the terminal; R2 the readers called directly, and the worst name through the axes sentence, the door's sentence over it and the faces sentence; H one hostile name at every door; N a symbol, a numeric key, a Proxy's own-keys answer; S twenty retired spellings are gone from their sources, and a scan of every quote-wrapped bare key variable in a stray-name phrase with a classified row for each of its six legitimate hits). Re-pinned from the masked form: `backlog3186` (32 cells), `backlog3202` (24), `backlog3180`, `backlog1763`, `backlog1973` ×2, `backlog2093`, `backlog2888` (the member-name cases now name it; the value cases stay), `backlog3188-3189`, `backlog3584`, `backlog3591`, `backlog3572`, `backlog3573`, `backlog3682`, `backlog3750`, `backlog1654`, `backlog1754`, `backlog2013`. Every door's own spelling put back = its R / H cell and its S row red (43 mutations — 29 doors, 5 for the shape, 9 for the doors and the bound added by the second pass — each run, each fixture recorded).
85
+ - **Consumers.** @server @cli @client-core @test: sentence text only — a reader that matched `«redacted» (N characters)` at a stray-member position, or `TaskSpec.limits.<key>`, reads the new words; machine readers read `code` and `detail`, which did not move. @server, the SQL package: the driver's unknown-option sentence reads `callerKey` from the root.
86
+
87
+ ### A host-side path reading anchors and never folds — `physicalPathOfExisting` reads a `..` the way the kernel does, and `NodeLspManager` reads every language-server root as the directory it names (#4044 / #4045; server S-3785; behavior change: a spelling with a `..` after a link answers the kernel's directory, and a root reached through a link is handed to the server by its physical path; narrowing: one, below, open to veto @server; widening: one, below, open to veto @server; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @cli)
88
+
89
+ - **Rule.** A spelling is anchored, never folded, on every host-side reader as on the execution seam: absolute as written, relative under the reader's own directory, and a `..` is the filesystem's to resolve. `physicalPathOfExisting` resolves the deepest prefix that exists and applies the missing rest by the fs throat's own tail rule (`rejoinMissingTail`, now exported from the throat's module and read by both): below the first missing name a `..` cancels the name before it; one that returns to a directory that exists hands the rest back to the filesystem, which is probed again. `NodeLspManager` reads every root — the default resolver's and a deployment's `resolveRoot` — through that mint, and keys, spawns, hands `rootUri` / `rootPath` / the workspace folder, evicts and clears by the one answer.
90
+ - **Before.** `physicalPathOfExisting` ran `path.resolve` first, so `D/bridge/../next` (`bridge` a link into `D/elsewhere`) answered `D/next` where the kernel opens `D/elsewhere/next`, and the execution env's `canonicalPath` answered the other one; a file store keyed such a directory under its literal twin, the containment judge compared the twin, the artifact store's overlap check compared the twin against a kernel-read task root. The default language-server root folded the cwd and the file path the same way: a workspace spelled through a link and a `..` was judged in its literal twin (refused when the twin held no marker, rooted in a different project when it did), the walk climbed the spelling (a lexical `..`), and the root the manager keyed by was the resolver's spelling, so a task that evicted by another spelling of its directory evicted nothing.
91
+ - **Now.** The answers above are the kernel's directory. `evict(root)` / `clearFailed(root)` take any spelling of the directory, read when called. A root reached through a link is handed to the server by its physical path (macOS `/private/var/…`, not `/var/…`); the documents the `LSP` tool opens keep the spelling the tool resolved (`resolveLspPath`). The memory plane keeps folding: it builds every path it keys, writes and reads with `join` from its configured roots, and `join` folds, so its `canonicalize` is the mint over `path.resolve(p)` — its keys are what they were (KL-902-b).
92
+ - **Narrowing (open to veto @server).** A containment judged by `isPhysicallyWithin` / an overlap judged against a task root no longer counts a `link/..` spelling inside a root whose kernel directory lies outside it; a `link/..` workspace whose literal twin held a marker is no longer rooted there. `evict` / `clearFailed` by the spelling a server was opened under miss it when a link on that spelling was removed or re-pointed in between, or when a relative resolver answer is evicted after the process changed directory (KL-4045-a; evict before tearing the directory down). On a win32 host a drive-relative spelling (`C:x`) handed to `physicalPathOfExisting` anchors as a name under the process directory, the execution env's anchor (KL-902-a), no longer at that drive's directory.
93
+ - **Widening (open to veto @server).** The reverse: a `link/..` spelling whose kernel directory lies inside a root now counts as inside; a `link/..` workspace whose kernel directory holds a marker is rooted there (it was refused when the twin held none).
94
+ - **Not changed.** Spellings with no `..` after a link answer what they did (`physicalPathOfExisting`); the strict `physicalPathOf` / `physicalPathOfAsync`; the totality of `physicalPathOfExisting` (a resolution failure other than "missing" is still walked past, KL-1094-f); the default root's arms and home ceiling (#2872); the cache, negative cache and eviction semantics; the workflow script store's own lexical arm (KL-902-b, narrowed to it).
95
+ - **Rules.** Retired: the mint's lexical fold and its private `join` rejoin (it reads the throat's tail rule — one tail rule for the tree), the LSP root's lexical folds of the cwd and the file path, the private identity helper with its lexical fallback (`identityOf`), and the spelled-root key. Moved, not added: the memory plane's fold, implicit in the mint until now, is written at the plane's own alias, beside the `join`s it has to agree with. One reading (`physicalPathOfExisting`) at every root seat of the manager (`rootOf`, `evict`, `clearFailed`).
96
+ - **Pins.** `test/backlog4044-4045-path-anchor-not-fold.test.ts` — A1 an existing target behind `link/..` · A2 a not-yet-created tail behind `link/..` · A3 `alias/bridge/../next` · A4 a `..` cancelling a missing name hands the rest back (a link after it is followed) · A5 a `..` out of a missing name under a link climbs the link's target · A6 the execution env's `canonicalPath` and the mint answer one spelling · A7 a file store's key and the containment judge name the kernel's directory · A8 a relative spelling anchored unfolded · A9 the memory plane keys a `link/..` root the way its own `join`s reach it · parity: no-`..` spellings unchanged · L1 / L1b a `link/..` workspace judged and named where the kernel puts it · L2 the walk climbs the kernel's parents · L3 eviction by any spelling (3 × 3) · L4 a deployment resolver's spellings share one server. Nine mutations, each kills its cells.
97
+ - **Consumers.** @server (S-3785): `physicalPathOfExisting` now reads a `link/..` spelling the way `physicalPathOf` does, so either serves the hosted-root judgment; `evictLspOnDestroy(env.cwd)` reaches the server however the cwd is spelled. @cli: a language server started for a workspace reached through a link is handed the physical root. @client-core @test: no read.
98
+
99
+ ### An execution target that never opened refuses a shell call at the gate with its own sentence — a lookup the shell read station asks that the target refuses before it started (`target_unavailable`) is the environment's answer, not its silence: the whole call is refused (`deniedBy: "read_boundary"`), nobody is asked, nothing runs (#4089; sema-server S-3937; behavior change: a plain `mkdir foo` while the sandbox cannot be created is refused with the environment's sentence under every mode, where it raised a card only a person could clear; narrowing: one, below, open to veto @server @cli; widening: none; hard-breaking: none; closed sets: `ShellReadFinding` +1 `target_unavailable`; exports: none added or removed (`ShellReadRefusalDetails` reads one more card, the Bash tool's existing `{ type: "bash", targetUnavailable: true }`); wire: the station's refusal carries that existing card as the tool result's `details`) (@server @cli @test)
100
+
101
+ - **Rule.** One word, one reading. `target_unavailable` (`FileErrorCode`, `src/engine/harness/types.ts`: the target refused the op before commit — it never started, a retry is safe once the target is back) is read by its word at the station's one door to the environment (`src/tools/fs/shell-read-environment.ts`): an absence or `not_supported` is an answer, the target's refusal is an answer of its own — recorded with the environment's own sentence —, every other failure is the silence. The fold makes a command whose door recorded the refusal the finding `target_unavailable` (`src/tools/fs/shell-read-judge.ts`), refused on every seat; its sentence and card are minted once (`targetUnavailableSentence` / `targetUnavailableCard`, `src/tools/fs/fs-shared.ts`, the environment's words read once by `envErrorDetail` where the lookup answered; the catalog registers the card there, `ENGINE_CARDS.bash`) and read by both faces — the Bash tool's execution face answers the same word with them, as it already did in the same words.
102
+ - **Before (v7.66.1, sema-server 7.151.0 on a k8s namespace whose quota was full).** The door recorded the refusal like any lookup that gave no answer, keeping only its code: the command was `unanswered`, the full shell's mandated ask with the real-approval bit and the class `unverifiable_shell_text`. `mkdir foo` raised a card only a person could clear under `auto`, `default`, `plan`, `acceptEdits` and `bypassPermissions` (the auto-mode classifier not consulted), `dontAsk` refused it as "needed approval", and neither the card nor the result said the target was unavailable. The execution face and the file tools already answered the same word with the environment's own sentence; the station was the one face that read it as a question for a person.
103
+ - **Now.** The call is refused at the gate (`gate.disposition`: `denied`, `deniedBy: "read_boundary"`) with `Error (<tool>): the execution target is unavailable (offline/busy/not bound), so the command did NOT start and no effects landed. Retrying the same command is safe once the target is reachable again. (<the environment's sentence>)` and the card `{ type: "bash", targetUnavailable: true }`, under every mode, on the full shell, the read-only face and the re-judge alike. Nobody is asked and the call is not let through to the execution face: a target that opened between an approval and the start would otherwise run a command nobody judged. The refusal is no classifier block and no allow — the auto-mode denial streak is neither counted nor cleared. A deny hit (and an identity change) still outranks it: the deny row's refusal holds whatever the target's state. A station that guards nothing (an open read face, an open write face, no rows) has nothing to refuse for, as before for every non-answer.
104
+ - **One refusal per judgment.** Once the target has refused a lookup, the door answers the rest of that command's lookups with the same refusal and asks the target nothing more. Before, every lookup asked the target again (sema-server measured 24 pod-create attempts, about 24 s, for one `mkdir foo` under its production retry bounds), and a lookup still pending at the gate's 30 s bound (`DEFAULT_GATE_AWAIT_TIMEOUT_MS`) turned the judgment into the fallback's mandated card, even after the refusal was known.
105
+ - **The write judge's sentence.** A write the write-protection table judges while the target refuses its lookups is still refused (`target_unresolved`), and its sentence no longer says "a link on the way could not be followed": a lookup the target refused before it started asked nothing about a link (`src/tools/fs/safety.ts`, the walk's give-up). The leg's one notice for the absence names the environment's refusal rather than a symlink.
106
+ - **Narrowing (open to veto @server @cli).** A call a person could approve on the card (and that then ran if the target had opened meanwhile) is refused; the retry is the model's, once the target is back. Every other word a lookup fails with (`permission_denied`, `timeout`, `unknown`, a throw, a bound) keeps the mandated card.
107
+ - **Rules.** Readings of `target_unavailable`: 2 → 1 (the station's "silence" retired; the execution face's sentence and card are the one mint). Added: one door reading (keyed on the word, not on an adapter's cause; the door then answers the rest of the command with it) and one decision-table row that refuses on every seat; the fold's rank places it above `unanswered`, below `deny_hit`. The walk's link claim: four give-ups that each wrote it → one function that reads the word (`gaveUpOnLink`).
108
+ - **Pins.** `test/backlog4089-target-unavailable-refused.test.ts` — S1 every seat × three command shapes refused with the environment's sentence and the card · S2 a refused lookup beside an errored one decides the call, and a refused judgment places no write · S6 after the refusal the target is asked nothing more (a lookup that would never settle is never asked) · E1 the Bash tool's start refused with the same word answers the same sentence and card · S7 / L1b the field report's shape (an open read face, the write face fencing the roots, `auto`, `mkdir -p`) refused the same way · S3 a deny hit keeps its own refusal · S4 `permission_denied` / `timeout` / `unknown` stay the silence · S5 a station that guards nothing vouches · L1 the Runner × `auto` / `default` / `plan` / `acceptEdits` / `bypassPermissions` / `dontAsk`: zero asks, `denied` by `read_boundary`, the environment's sentence, nothing ran, the classifier not consulted · L2 the three other words keep the mandated card on the Runner · L3 the denial streak (three blocks) is neither counted nor cleared by the refusal · W1 the Write tool's refusal carries the environment's sentence and no link claim. Re-pinned to the moved law: `test/failopen-governance-core.test.ts` (a probe the target refused carries no link flag; the refusal itself is unchanged), `test/backlog1681-one-decision-table.test.ts` and `test/backlog1010-shell-read-face.test.ts` (the eighth finding's row and grid count).
109
+ - **Consumers.** @server (S-3937): the 🚧 `it.fails` cells of `test/env-unopened-shell-gate.test.ts` turn red ⇒ regular; the characterization cells turn red ⇒ deleted; the controls stay green (a lane whose lookups fail with `unknown` keeps the card). The branch key is the word: a lane that says every connect-step failure as `target_unavailable` gets this reading for all of them. @cli: no card for such a call; the tool result names the target's refusal. @test: sbx1's cell (auto × open read face × `mkdir -p`) reads zero asks, `denied`, the quota sentence.
110
+
111
+ ### A person's stored `ask` row that meets an ask another written `ask` rule already raised is a second asker on the card — `mandated`, as the same rule in a second request policy is — the card's rule-offer word reads the input its `mandated` bit reads, and a folded written ask rule no longer takes the table word (`mandate`) away (#4218 with its fix round; C-R1482 with its note 1; server S-4094; behavior change: three card values on the forms below; narrowing: two, open to veto @server @cli @client-core; widening: none; hard-breaking: none; closed sets: none; exports: none added, none removed; wire: values only, plus one optional member on the advanced `AskCarry` export) (@server @cli @client-core @test)
112
+
113
+ - **Rule.** The persisted-rule lane's `ask` row meets a standing ask by rank. A standing ask that already carries a written rule's marker (`matchedAskRule` — an asker of the row's own rank holds the slot) keeps it, and the row joins under it as a fold contributor: it adds its own class to the ask's engine record (`foldedClasses`) and touches no other fact of the standing ask (its table word, origin word, reason and other classes stand), exactly as the same rule in a second request policy does when the policy fold collapses it. A standing ask with no marker takes the row's marker (unchanged). Every rule-offer mint point — the live card, the parked row, the inherited stations (the wrapper, the arbitration adapter, the re-ask after an approver's edit) — hands the clearance derivation the facts the origin stamp reads, the record's folded classes included, so a card's `ruleOffersAbsence` word and its `mandated` bit are one reading. For the table word a folded class reads as it reads standing: a written ask rule's question is a rule speaking, not a door outside the table, so a folded one leaves `mandate` standing (it counts toward the bit and the word as before).
114
+ - **Before.** Measured on the real Runner with a real file rule store (stage-7680 `a5a551626`): (a) a deployment's approval list asking about `Bash` (the operator-ask shape: `matchedAskRule`, `decisionReason: "rule"`) and a stored row `Bash(npm run build)` asking about the same call gave a card and a parked row of `classes: ["ask_rule"]`, no `mandated`, word `ask_rule_matched` — a host that keeps "allow for this session" for a card that is only the list's question kept it, and the next call (the list now silent) was asked again by the row (measured: one card); the same rule in the request's rules gave `mandated`. (b) Every card whose record folded `ask_rule` (the request's rule × the list, either order; an ordinary caller ask, then the request's rule; two request rules in two policies) carried `mandated: true` beside the word `ask_rule_matched`: the stamp read the folded classes, the mint stations did not. (c) A tool-marked ask (irreversibility or egress mark, `shellGate: "always"`) with an ordinary caller ask, then the request's rule, lost its table word `mandate` when the rule folded.
115
+ - **Now.** (a) The live card, the parked row, its `CheckpointSummary` and its `listByScope` entry carry `mandated: true`, the word is `mandated`, and the record folds `["ask_rule"]`, as for the request's rule × the list. The card's sentence still names the row: `… (a persisted ask rule (Bash(npm run build)) also requires approval for this call)` (live `message`, parked `cardMessage`). The same holds for a stored row × the request's own rule (read as two request policies read today: the meeting point cannot tell whose marker it is). (b) The word is `mandated`. (c) The table word stands: `tool_marks` / `operator_always` / `probe_mandate` as the marked ask alone reads, whether the folded rule came from a second request policy or from a stored row.
116
+ - **Narrowing (open to veto @server @cli @client-core).** (a) `mandated` absent → `true` for a stored row × a standing ask carrying a written rule's marker — the list's or the request's own rule. A host that renders a mandated card without "allow for this session" stops offering it there; on the list form that option could not be kept (the host recorded the list's answer, said so, and the next call asked again), the card now says it up front. `ruleOffersAbsence` `ask_rule_matched` → `mandated` on (a) and (b); on the stored row × request rule form a host loses the "review your existing ask rules" line the `ask_rule_matched` word brings (@cli @client-core), and the engine's own baseline sentence for `mandated` (`RULE_OFFERS_ABSENCE_BASELINE`) reads "required by the deployment's policy" there although no deployment asker is on the card.
117
+ - **Value change (@cli @client-core).** (c) `mandate` absent → the table word the marked ask reads alone (measured for `tool_marks`; `operator_always` / `probe_mandate` read through the same line) on a marked ask whose record folds a written ask rule from a second request policy (tool marks with an ordinary caller ask, then the request's rule): a host that writes a reason line from the table word shows one more line there.
118
+ - **Not changed.** A stored row alone — in the default mode it meets the mode gate's ordinary ask, which rides the fold after the caller's chain, and takes its slot — and a stored row × an ordinary caller ask: no `mandated`, `ask_rule_matched`, the same as the request's rule ahead of that ask. The list alone, the request's rule alone, two request rules in one policy, the request's rule then an ordinary ask; the table word, origin word and class set of every standing ask a stored row joins (a hook's ask stays `[hook, ask_rule]`, origin `hook`); every class row, door and `ruleMayClear`.
119
+ - **Known, not in this change (#4263).** The policy fold gives the slot to the first of equal-rank asks, so "an ordinary caller ask, then the request's rule" reads `mandated` and the reverse order does not (measured, both before and after this change); the fixed rank and a wire carrier for "who else asked" (whose marker a standing ask carries) are designed there. The record's folded classes reach a host only through `mandated` and the word: neither `AskRequest`, the parked row nor `CheckpointSummary` carries them (read).
120
+ - **Rules.** Added: none — the row meets a standing ask by the rank the slot is held at; the table word's reading of a folded class is the standing one. Retired: one — the mint points' clearance facts without the record (one input for the word and the bit).
121
+ - **Wire.** No new card or row member, no closed-set word; values only, as above. `AskCarry` (advanced export, the gate's carry to the park closure) gains the optional `foldedClasses` — the record's folded classes, read by the park's clearance facts.
122
+ - **Pins.** `test/backlog4218-second-asker-fact.test.ts` (30 cells) — the row × the list on the live card, the parked row with its summary and listing, and the record; ① a stored row alone ≡ the request's rule alone; ② the row × the list ≡ the request's rule × the list (both orders); ③ the row × an ordinary caller ask ≡ the request's rule ahead of it, ③′ with tool marks; ④ "allow for this session", then the next call; the word = the bit on the three folded forms, live and parked; the table word beside the row for five doors; a hook's and the mode's ask keep class and origin; the policy fold's table word; two request rules in one / two policies and the stored row × request rule; the three inherited mint points; controls. Eleven mutations, each red (`.gate-logs/mutations.md` in the car tree).
123
+ - **Consumers.** @server (S-4094): the stored-row × list card now carries `mandated`, read by the judge as it reads the request-rule × list card today; nothing to change to receive it. @cli @client-core: form (a) renders as a mandated card; `ruleOffersAbsence` reads `mandated` on (a) and (b); form (c) gains its reason line. @test: the black-box cells are (a) on the live card and the parked row, and (c).
124
+
125
+ ### A cross-boundary card that a device command gets after content from beyond the device came in now says so and names the call that let it in, e.g. "after RefreshMcpTools let content from beyond the device into this run" (#4265; reported by test; display only: who is asked, and when, does not change; @server @cli @client-core @test)
126
+
127
+ - **Before.** On a governed tree that runs on a target device, once an allowed call reads beyond the device (an MCP server read, `ListMcpResourcesTool`, `RefreshMcpTools`, `WebFetch`…) every later device-bound call gets a person's confirmation, but the card's `message` was always `tool "Bash" crosses the device boundary of a run that executes on a target device — it needs approval before it runs`. Nothing on the card said why: a person saw the same command go unasked before a `RefreshMcpTools` and asked after it (unchanged listing included).
128
+ - **Now.** The station asks with one of three sentences, picked by why the call is a person's. The cause is read off the same obligation table by asking the same call on the same tree without the off-target-read bit:
129
+ - `tool "Bash" reaches into the target device after RefreshMcpTools let content from beyond the device into this run — it needs approval before it runs`. Used when a call of this run tree set the bit, in this process; the name is the tool's wire name.
130
+ - `tool "Bash" reaches into the target device after this session was read as holding content from beyond the device — it needs approval before it runs`. Used when the bit came from the session's record (an earlier run), from content no record covers, or from a record that could not be read.
131
+ - Unchanged `… crosses the device boundary of a run that executes on a target device — it needs approval before it runs`. Used when the call reaches beyond the device itself (a write beyond it, an environment off the target), which is asked whether or not anything was read.
132
+ The exit's refusal (`needs a person's confirmation: this run executes on a target device and has since let content from beyond it in …`) gains ` (through <tool>)` when the call is known.
133
+ - **Not changed.** Who is asked and when. The first-frame MCP listing and a host's `reconnectMcpServer` still set nothing (they are not calls). `RefreshMcpTools`, `ListMcpResourcesTool` and an MCP server's read tools still set the bit (each is a call that brings the server's answer back), whether or not the listing changed. Also unchanged: the class (`cross_boundary`), the headline, `requiresRealApproval`, `askReasons` (the station's question is still no asker entry), the session record (bits only; the name is not persisted), and another layer's ask (it keeps its words; the station adds only its two members).
134
+ - **Type.** `CrossBoundaryObligation` gains the optional member `afterOffTargetRead?: { by?: string }`. Only the leg's seat (`CrossBoundaryCheck.obligation`) sets it; the table function `crossBoundaryObligation` never does. Additive; display only, no judgment reads it.
135
+ - **Rules.** Decision rules: none added, none retired (the table and the obligation function are untouched). Display: one per-call cause read by counterfactual off the existing table (no cell restated), and one in-process name with one writer (the exit that joins the bit) and two readers (the station's question, the exit's refusal). One comment corrected: the `RefreshMcpTools` catalog row states the real rule (a call to the server) in place of "the refreshed listing is content from beyond the boundary", which read as if the first-frame listing were too.
136
+ - **Consumers.** @server @cli @client-core: a card or transcript that matched the old station sentence on a device-bound call after an off-target read reads the new words. The sentences are engine English like every station's question, with no catalog row. A zh-Hans rendering for a host that localizes `message` is in the car's design note. @test: the reported repro now reads one card whose message names `RefreshMcpTools` (corel0a item 7).
137
+ - **Pins.** `test/backlog4265-mcp-refresh-ask-parity.test.ts`, real Runner over a declared target environment with a host-transport MCP server. Cells:
138
+ - R1 first frame; R2 refresh with the listing unchanged; R3 refresh with one tool more, one tool fewer, one description changed.
139
+ - R4 a server read call; R5 a host re-dial mid-run (no card); R6 park → resume → refresh.
140
+ - R7 a child's refresh reaching the parent; R8 the session's next run (no name).
141
+ - W a write beyond the device keeps its sentence after a refresh; P a policy's own ask keeps its words.
142
+ - L1–L4 the seat's answer and the exit's sentence on the lane, including a later read that does not take over the name, and a per-call definition whose legs list moves after it was read (judged on the list as read, both tree states alike).
143
+
144
+ ### An offloaded card member is read by one function — `offloadedDetailOf(value)` — and the read-state replay that refuses to take a head for the file's bytes now asks the same one (#4279; car-4267 design gap U-9; behavior change: one judgment now follows the writer's grammar; narrowing: none; widening: one, below, open to veto @server @cli; hard-breaking: none; closed sets: none; exports: +2 (`offloadedDetailOf`, type `OffloadedDetail`), none removed; wire: none) (@client-core @web-client @server @cli)
145
+
146
+ - **Rule.** A card member the engine offloads — an Edit card's `originalFile`, `edits[].oldString` / `newString`, the flat `oldString` / `newString`, a NotebookEdit card's `originalFile` / `newSource` / `oldSource`, any oversized string in any card that is not exempt — stays in the card as its first 2,000 characters, then one notice sentence naming the ref. It is still a legal string, so a reader that checks `typeof === "string"` takes a head for the member. `offloadedDetailOf(value: unknown): OffloadedDetail | undefined` answers it: `undefined` = the text in hand is the whole member (also any non-string); otherwise `{ head, totalChars, ref? }` — the head (a preview, never the member's bytes: no diff, hash or replay over it), the member's full length in UTF-16 code units (the coordinate `ToolResultStore.get` reports as `totalChars`), and `ref` when the remainder was stored, to hand to the deployment's tool-results read face for the full text. No `ref` = the remainder was not stored (the write failed or went unconfirmed): the head is all there is. A `ref` does not promise the entry still reads back — retention and ownership are the read face's to answer; the function knows only the first.
147
+ - **Before.** The ref lived only inside a sentence meant for people (`ref "<ref>"`); the engine's own judgment of "this member is a head" was a private substring test (`isOffloadedDetailReplacement`, any `\n…[offloaded — ` anywhere in the string), used by the session-continuation read-state replay alone. A shell that rebuilt an edit from the card (client-core's Edit / update arms judged members by `typeof` only) answered an empty diff when the replaced text lay past the head, and compared two heads when both sides were offloaded.
148
+ - **Now.** One writer and one reader of the notice, side by side in `src/core/tool-result-store.ts`: `mintOffloadedDetailNotice` writes it (the bytes are the ones the engine has always written — a golden pin holds both forms) and `offloadedDetailOf` is the only function that reads it, by the writer's grammar: the notice starts at character 2,000 and the string ends with it, `<N> chars total` with `N` a plain integer above 2,000, then either `ref "<ref>"; …` or the write-lost sentence. `isOffloadedDetailReplacement` is retired; the read-state replay (`session-file-state-replay.ts`, three sites) asks `offloadedDetailOf`. The notice constant is no longer exported.
149
+ - **Widening (open to veto @server @cli).** The replay used to read any string that contained `\n…[offloaded — ` anywhere as a head (a file whose own text mentions the marker was dropped from the read-state record and re-read); it now reads such a string as the whole member it is, and records it. Strings the engine minted read as before: every released engine put the notice at character 2,000 for a member longer than the head (the size floor shipped in the same release as the writer, 5.24.0 — no release wrote a notice for a member at or below the head size).
150
+ - **Facts for a reader of a card** (read from the code and measured on a real Runner, not promises of the function): **Write never offloads** — a create / update card's `content` and `originalFile` are whole at any size (the catalog's `offload: false`, `src/core/tool-catalog-entries.ts` Write row; pinned); on the live `tool_end` a Write card past the frame's bound rides as its skeleton instead (`structuredSkeleton`, #4200) while the session record keeps the whole text. **Edit, NotebookEdit and every other card member offloads** past the threshold: 50,000 characters by default for first-party tools, the deployment's global when it set one (`toolResultThresholdChars`); a member is offloaded on its own, so an Edit can have `originalFile` offloaded with a small `newString` whole, or both sides offloaded with five refs (`originalFile`, flat `oldString` / `newString`, `edits[0].oldString` / `newString`). The head is the member's first 2,000 characters; a surrogate pair at the cut can leave a lone high surrogate. Where a card rides the live frame (`structured`), the frame and the session record carry the same member.
151
+ - **Not changed.** The notice's bytes, the ref shape, the threshold, which tools offload, the wire (no new member on any card); `ToolResultStore`.
152
+ - **Known limit.** A file whose text spells a grammar-legal notice at its 2,000th character reads as offloaded, naming the notice's total and ref (KL-4279-a). The replay errs to the safe side on that form (no read-state record, the model re-reads); a forged ref reads only the offload of the reader's own trust scope (another tenant's reader gets a miss) and the server's read face judges the ref's recorded session.
153
+ - **Rules.** Retired: the substring judgment (`isOffloadedDetailReplacement`), the exported notice constant, the second reading a shell would have had to write. Added: none (one reader replaces one reader).
154
+ - **Pins.** `test/backlog4279-offloaded-detail-reader.test.ts` — A the writer / reader pair over the real walk (stored, write lost in both store dialects, not offloaded, golden bytes, head variants) · B twenty near-misses of the grammar · C the forged notice (the answer; the replay's side; one tenant's ref through another tenant's reader) · D a real Runner (default 50,000 and explicit 20,000; both sides; a batch; Write whole; JSON round trip and session continuation; park / resume) · E the root export is the module's function and the replay reads the same one. Re-pinned on the real mint: `test/design483-read-state-scope.test.ts` (two hand-spelled fixtures; one cell for the mention-is-whole reading), `test/backlog116-details-offload.test.ts`, `test/backlog175-offload-write-failure-isolation.test.ts`.
155
+ - **Consumers.** @client-core: ask `offloadedDetailOf(member)` on `originalFile` and on each mutation string before rebuilding an edit; `undefined` = draw from the text; a head with a `ref` = fetch the member through the deployment's tool-results face (the `ref` is the handle; `totalChars` is its coordinate); a head with no `ref` = say the full text is not recoverable and draw no patch from the head. @web-client, @server, @cli: same function, no wire change; nothing to remap.
156
+
157
+ ### A `TaskSpec.excludeAllTools` that is not a boolean is refused at prepare — the string `"true"`, a number, `null` and an object no longer read as "off" and mount every tool (#4368; narrowing: one, below, open to veto @server @cli @client-core @web-client; widening: none; hard-breaking: none; closed sets: `CheckpointErrorReason` +1 (`not_a_boolean`); exports: none; wire: one reason word on an existing code) (@server @cli @client-core @web-client)
158
+
159
+ - **Rule.** The whole-face switch is `true`, `false` or absent; any other value is refused where the task's tool-face control members are read (`readToolFaceLists`, the one reader prepare and the static plan both call), beside the four name lists, after them.
160
+ - **Before.** The one reader of the switch (`ownSelectorLayer`) tests `=== true`, so `"true"`, `1`, `null`, `0` and `{}` read as off: the leg mounted the full tool face, nothing refused, nothing was told. Measured on the base tree: a real Runner handed the model `echo, ReportFindings, ReadToolResult`; `describeStaticWiring` did not throw and planned the caller tool; `verifyCompleted`'s verifier leg, which copies the value as written, ran; a workflow agent whose own spec carried the value ran with the caller tool mounted; a resume that re-gave the value completed.
161
+ - **Now.** `config.tool_face_control` with `detail.reason: "not_a_boolean"` (the arm the code names, as its list siblings name `not_a_list` / `not_a_string`) before the model runs, the sentence naming the member and the TYPE of the value, never the value. `describeStaticWiring` throws the same. A resume that re-gives it is refused before the claim (`checkpoint.config_refused`, `detail.code` the same code, `detail.reason` the same word, the row pending). A workflow agent whose own spec carries it is refused at that leg's own prepare. The verifier leg of `verifyCompleted` is refused as the caller's own leg is (its model is not reached; the gate reports `unverified` / `no_verdict`, as for any refused verifier leg).
162
+ - **Narrowing (open to veto @server @cli @client-core @web-client).** A non-boolean `excludeAllTools` fails at prepare where it ran with every tool mounted. A host that wrote the string `"true"` meaning "on" now gets the refusal and fixes the spelling.
163
+ - **Not changed.** `false` and absent read as off, `true` as on, every other reading of the switch (`ownSelectorLayer`, the valve, the verifier's copy); the code set (one reason word is added, below); the other members' refusals and their order (the lists are read first).
164
+ - **Rules.** +1 value screen in the existing reader; no second reader of the switch, no new code, no new export; the code keeps naming its arm in every refusal it makes.
165
+ - **New reason word.** `not_a_boolean` joins `CheckpointErrorReason` (37 → 38) beside `not_a_list` / `not_a_string`, the arms of the same code for a list: the whole-face switch's value is not a boolean. Registered where the set is: the union (`src/core/checkpoint-features.ts`), its entry in `docs/CLOSED-SETS.md` (count and the arms sentence) and the pin that counts the set (`test/backlog3613-composition-mismatch-arm.test.ts`); the wire manifest records the addition when the release's manifest is cut.
166
+ - **Pins.** `test/backlog4368-exclude-all-tools-bad-values.test.ts` (39 cells, real Runner / `describeStaticWiring` / `verifyCompleted` / a workflow agent / a parked resume / the closed set's two registers; each of the five bad values in every family asserts the code and the arm, and the `false` / absent / `true` controls read on the base tree and the head; eight mutations, per fixture; `verifyCompleted`'s result under a bad switch is pinned as it reads today: `unverified` / `no_verdict`, no word of the refusal).
167
+ - **Consumers.** @server @cli @client-core @web-client: a switch that reaches the library as a string, a number, `null` or an object (a JSON body passed through, a JS caller) now surfaces as `config.tool_face_control` (`detail.reason: "not_a_boolean"`) at prepare, on a resume before the claim, and from `describeStaticWiring`. @server @cli @client-core: a host that switches on that code's `detail.reason` adds the arm, and one with an exhaustive switch over the closed set `CheckpointErrorReason` adds the word.
168
+
169
+ ### A mechanism frame's words are catalog messages too — the frames of the kinds that always fire (eleven here; #4390's `workflow_continuation` above is the twelfth — output style, date change, workflow size guideline change, git status, permission posture, the two limit-approach frames, final verification, the advisor tool's instructions, the reply language, and the orphaned-background-tasks notice of a resumed leg) are worded by `core/event.*` messages in the new locked `event-mechanism` band, read through the run's engine text reading, so a `zh-Hans` run gets them in zh-Hans; no source may replace them (#4022 S1 / #4028; behavior change: a run with `promptLocale: "zh-Hans"` gets these frames in zh-Hans; narrowing: one (N1, an overlay whose `message:` names an engine message), open to veto @server @cli @client-core @sdk, and role texts are guarded as before; widening: one (R2), open to veto; hard-breaking: three, three sentences each, open to veto @server @cli @client-core @sdk; closed sets: `PromptBandId` +2 `event-mechanism`, `engine`; exports: removed `buildGitSnapshot`; `EnvironmentFacts` −`gitSnapshot`; `CompiledEventPrompt.messages` a non-empty tuple; wire: none)
170
+
171
+ - **Rule.** Every word in a registered kind's frame is a catalog message. The kinds the attachments config switches word replaceable copy (`event-copy`, unchanged). The kinds that always fire word locked text (`event-mechanism`, 45 messages — 52 with #4390's six and the parked run's continuation line below (`workflow-continuation.model-continues`) — in `src/prompt-assembly/catalog/mechanism.ts`, each with its zh-Hans rendering). Locked text means four things: no source holds an op on it; the verbatim guard holds its runs; a release carries a rendering of it only once a native reader has signed it off; and a frame is worded in the run's locale only. A row's band follows from its `defaultPolicy` (`always` ⇒ `event-mechanism`, otherwise `event-copy`). One reading, `placementBandOf`, answers where any message lands, for the overlay door, the composer's fold, `describeCatalog()`, the guard and the release review alike. The engine's own messages land in the new `engine` band, locked the same way. Three messages join them: `core/engine.mcp-fence-label`, `core/engine.workflow-size.tier` and `core/engine.workflow-size.not-hard-limit` (the last two are the sentences the Workflow tool card and the change frame share). A pin names the always members (eleven kinds). The reply-language frame is one of them. Its two texts (the reference's `# Language` instructions, `cli321.js:284845-284847`, and the cleared sentence, `cli321.js:284845`) are catalog messages. The declared language is a slot value, said as written in every reading.
172
+ - **Before.** The always kinds' rows placed no messages (`messages: []`), and their words were literals in the producers: `auto-mode-directive.ts`, `git-status-frame.ts` with `prompts/default.ts`'s `buildGitSnapshot`, `output-style.ts`, `turn-attachments.ts`, `clock-and-limits.ts`, `run-stop-and-final-verify.ts`, `advisor-instructions.ts`, `workflow-size-guideline.ts` and `language-frame.ts`. They were English in every locale, so a zh-Hans run was told its mode, its git state, its limits and its reply language in English. The locked-text guard and the release review read the `constitution` band by name.
173
+ - **Now.** The canonical reading renders every mechanism frame byte for byte as before: 74 frames over every arm, in `test/fixtures/backlog4028-mechanism-corpus.json`, captured on this base's producers before the move. The guard cuts each locked text at its slots and keeps every run of at least 40 UTF-8 bytes, in every rendering. Which runs a text is checked against depends on where it sits. A role text is checked against the constitution's runs only: `TaskSpec.systemPrompt` / `appendSystemPrompt`, a `prompt.section` answer, and an overlay on a system-prompt band. Every guarded constitution message carries no slot, so those runs are the whole entries the guard compared before. An event-copy template replacement is checked against every locked band's runs: constitution, event-mechanism and engine. That door is new in this release (#1664 below), and it is the only place a mechanism or engine text could be passed off as another frame's words. An overlay's `message:` naming a locked message is refused whatever its length. The readers that recognize a frame by its text read it under every shipped reading, so a frame worded before a locale change is still this session's frame. Those readers are the posture fold, the git frame's recognizer and its stripper, and the listing replay. The two protocol marks (`[final verification]`, `[limit approach]`) stay constants beside the limit machinery (`clock-and-limits.ts`), outside the catalog. The resume counter reads the same constant, so the count is the same in every locale. The git frame's material is the probe's raw values; its body is worded at frame time. The advisor and language seats hold the frame body they owe, worded in the run's reading at prepare. A compaction restates the full text in the same reading.
174
+ - **Role texts — the guard's scope is unchanged.** A role text is refused only when it contains a constitution text verbatim, as before. A role text that carries a mechanism or engine message's words goes through. Examples: the reference's own `# Language` section and cleared sentence; the gitStatus line "Main branch (you will usually use this for PRs): …"; an MCP instructions header; an output-style reminder; the auto-mode, bypass and plan-mode posture texts; the advisor instructions; and a natural zh-Hans sentence that mirrors the language instructions. A pin admits each of them as `systemPrompt` and as `appendSystemPrompt` (`R1`). The only change for role texts is R2 below.
175
+ - **Narrowing — N1 (open to veto @server @cli @client-core @sdk).** An overlay whose `message:` names an engine message is refused, as one naming a constitution message always was. The door took one before when the message carried no slot (`core/engine.mcp-intro`, `core/engine.degenerate-recovery`). A `prompt.compose` answer that names one is refused like any other overlay.
176
+ - **Widening — R2 (open to veto).** `# Harness`, the one constitution text shorter than the 40-byte floor, leaves the verbatim guard: a role text containing it is no longer refused for it. It stays locked by the band table (no op) and by the `message:` refusal. A zh-Hans run's mechanism frames, the reply-language frame included, are now zh-Hans (they were English).
177
+ - **Hard-breaking — three, three sentences each (open to veto @server @cli @client-core @sdk).**
178
+ - **H-1.** *What changed:* `PromptBandId` gains `event-mechanism` and `engine`; no value on the wire carries either (no section lands in them, neither takes an `add`, and `prompt.assembled.sections[].band` never names them). *Who is affected:* a host `switch` over `PromptBandId` that ends in a `never` default. *What to do:* add the two arms and treat them as `constitution` is treated (locked, read-only).
179
+ - **H-2.** *What changed:* `CompiledEventPrompt.messages` is a non-empty tuple (`readonly [string, ...string[]]`), and every row of `EVENT_PROMPT_REGISTRY` places at least one message (the always rows used to place none). *Who is affected:* a host that builds a `CompiledEventPrompt` literal with an empty or `string[]` `messages`, or that reads an always row's empty `messages` as "not worded by the catalog". *What to do:* give a hand-built row its messages, and read an always row's messages like any other row's (their band is `event-mechanism`).
180
+ - **H-3.** *What changed:* the root export `buildGitSnapshot` and the member `EnvironmentFacts.gitSnapshot` are removed; the git snapshot's words are catalog messages that only the `git_status` frame renders. *Who is affected:* a library host that calls `buildGitSnapshot`, or writes `gitSnapshot` in an `EnvironmentFacts` literal (the engine had read the member nowhere since the env-tail migration; `TaskSpec.envFacts` never carried it). *What to do:* read the `git_status` frame; a host that wants its own git paragraph in the system prompt adds it as an overlay on the `scenario` band. That works for the paragraph the retired helper produced, too: a pin adds it from a `center` source and from a `deploy` source.
181
+ - **Shape (open to veto).** `describeCatalog().events` lists the mechanism kinds (twelve with #4390's), each with its templates and every op column empty. `EVENT_PROMPT_REGISTRY` gains the row `orphaned_background_tasks` (`always`).
182
+ - **Not changed.** These stay as they were:
183
+ - which kinds fire and when. A change of `promptLocale` within a session does not send the git frame again while the repository is unchanged (pinned, `G21`): its dedupe hash reads the canonical rendering of the probe's values, whatever the run's reading. The leg that sends nothing protects the frame from a trim in the words the history carries;
184
+ - their order in the bundle, and the bundle cap;
185
+ - the intact bounds (date 160, workflow guideline 256), held in every shipped reading with the longest slot values;
186
+ - every canonical frame's bytes;
187
+ - the git frame's echo previews (constant English telemetry, as before), and which frames are echoed.
188
+
189
+ The MCP failure sentences read the authorization place through its own accessor. The frame table names no reader outside a frame's own declarations.
190
+ - **Release review.** The review roster grows from 74 to 134 rows per rendered locale: +45 mechanism, and +15 engine (3 new, 12 existing ones now under review). `gate:locale-review:rc` names each until `docs/locale-reviews/zh-Hans.json` records a native reader's sign-off. That is a release precondition, not a static-tier failure: the static tier prints the awaiting count.
191
+ - **Prompt identity.** The catalog digest moves: a session continued across this release records a `code_change` epoch on the catalog layer. No section text moved.
192
+ - **Rules.** Net −1, and no special cases: the floor holds every locked text in every locale alike, a text is checked against the locked texts its seat could pass for, and the marks are constants of the protocol, like the reminder tag.
193
+ - Readings of a mechanism frame's words: two (canonical in code; a zh-Hans run still English) → one (`say`).
194
+ - One fact written twice (a row says the kind exists with `messages: []`, its words are in code): retired.
195
+ - String surgery: the git preamble's write-then-cut, with its constant and dead arm, is retired.
196
+ - The description's filter and hard-coded band: one `placementBandOf`.
197
+ - The field-liveness exemption for `gitSnapshot`: retired.
198
+ - The frame table's two known outside readers (the MCP failure sentences' borrow of a frame symbol): retired, since the place is an engine message.
199
+ - Added: the two band rows, the 40-byte floor, the `message:` refusal, and the seat's reach (a role text against the constitution, an event template against every locked band).
200
+ - The predicate "an event message is event copy", spelled three ways: one predicate read three times.
201
+ - **Gates.** `gate:catalog-literal` also scans, at symbol level, every render symbol of the frame-renderer table. That table is `scripts/frame-renderers.mjs` `FRAME_RENDERERS`: per registered kind, the declarations that word, read back and deliver its frame. The gate's three `default.ts` git exemptions left with the words. The frame pin reads the same table. The reference coordinates of ten moved texts are now pinned to 2.1.321 lines, because their 2.1.316 byte spans no longer resolve under the `gate:anchor-claims` corpus tier. The ten are: the plan-sparse, auto, bypass and auto-exit posture texts; the two workflow-change sentences; the advisor's two short forms; the orphan-task line; and the shared workflow sentence.
202
+ - **Pins.** `test/backlog4022-mechanism-frames.test.ts`:
203
+ - G1′: the table covers every kind and is the gate's symbol range.
204
+ - G2 / G2b: a row names a message; no always kind is an attachments switch.
205
+ - G3: the door grants nothing on a mechanism message, and a fold that bypasses the door leaves it absent.
206
+ - G4: one message, one band.
207
+ - G5: 74 frames byte-equal; the final-verification shell.
208
+ - G6′: no word in a mechanism frame outside what the reading said (canonical and zh-Hans).
209
+ - G7 / G7b′ / G7c: cross-reading read-back of posture and git; the vocabulary's matching contract; the stripper.
210
+ - G8: the constant ceilings in every reading.
211
+ - G9: the output-style frame in a zh-Hans run; a bad seat refused before prepare's first await.
212
+ - G10 / G11: the orphan frame and the fence label in the run's reading.
213
+ - G12: `describeCatalog().events`.
214
+ - G13: the read set at reference level (no outside reader).
215
+ - G14: the read-back renderings frozen.
216
+ - G15: the lock's three guarantees.
217
+ - G16: the always members (twelve with #4390's `workflow_continuation`).
218
+ - G17: a zh-Hans run's final-verification count across a durable resume.
219
+ - G18: the workflow sentences' one source.
220
+ - G19: a zh-Hans run's language frame is zh-Hans with the declared value untranslated, and a canonical run's is byte-equal to the corpus.
221
+ - R1: role texts that carry a mechanism or engine message's words are admitted as `systemPrompt` and as `appendSystemPrompt` (twenty texts: the reference's language, git, MCP and output-style lines, the posture, advisor and language frames, and zh-Hans sentences that mirror them). The control: an assembled system prompt handed back as a role text is still refused, since it carries constitution runs. The event-template door refuses mechanism and engine words that a `scenario` add from center or deploy takes. The H-3 paragraph is added from both sources.
222
+ - R2: `# Harness`.
223
+ - G21: a `promptLocale` change sends no git frame again. The dedupe hash is the same in every reading; a real Runner session runs canonical, then zh-Hans with no new frame, then zh-Hans after a file change with the frame in zh-Hans. A leg that sends nothing after a reading change holds the frame the history carries for the trim's re-insert and the over-budget shrink, in both directions.
224
+ - Retired: R2b, a host's two-sentence language section admitted. With role texts read against the constitution only, that cell can no longer fail; R1 holds the full `# Language` section instead.
225
+
226
+ `test/backlog1610-language-seat.test.ts` re-read: the seat's frames are the reference's text, worded through the reading.
227
+ - **Consumers.**
228
+ - @server: delete the `buildGitSnapshot` row of `docs/core-consumption/LEDGER.json` (:9373; `test/core-consumption-ledger-gate.test.ts` reads it). N1 reaches a center artifact or a `prompt.compose` answer only if it names an engine message by `message:`.
229
+ - @cli: dispose the `PromptBandId` members, `CompiledEventPrompt.messages`, `buildGitSnapshot` and `EnvironmentFacts.gitSnapshot` keys in the wire consumption manifest. Role texts (`--system-prompt` / `--append-system-prompt`, agent-definition bodies) are guarded as before.
230
+ - @client-core @sdk: none (role texts are guarded as before; N1 as for @server).
231
+ - @test: a zh-Hans run's mechanism frames (the language frame included) are zh-Hans; the canonical frames are byte-unchanged.
232
+
233
+ ### An event frame's words are catalog templates — the frames of the kinds a task turns off (the todo and task reminders, the tool-search reminder, changed files, the dollar and token readouts, background tasks, `tools_delta`, `mcp_unavailable`, the agent and skills listings, dropped MCP tools) are worded by `core/event.*` catalog messages their `EVENT_PROMPT_REGISTRY` row places, read through the run's engine text reading, so they render in the run's locale and a center artifact or a deployment may replace a template whole; the place every MCP authorization sentence names is one engine message (#1664 M3a; behavior change: a run with `promptLocale: "zh-Hans"` gets these frames in zh-Hans; narrowing: none; widening: two, below, open to veto @server @cli @client-core; hard-breaking: one, three sentences below, open to veto @server @cli @client-core @sdk; closed sets: `PromptBandId` +1 `event-copy`, `EventDedupe` four words → two; exports: removed `PromptCarrier`, `PromptTrust`; `CompiledEventPrompt` reshaped; `CatalogDescription` +`events`; wire: none)
234
+
235
+ - **Rule.** Every word of an event-copy frame is a catalog message (`src/prompt-assembly/catalog/events.ts`, 54 messages, each with its zh-Hans rendering) that the kind's registry row places (`messages`); the run reads it through the one engine text reading bound at prepare — the locale's rendering, then the template a center or deploy overlay replaced (the new `event-copy` band: `replace` only, center and deploy; a task writes none), then the slots. The registry row alone answers default-on (`defaultPolicy`), whether the bundle may clip a frame (`dedupe`: `repeat` ⇒ clippable, `replace-by-key` ⇒ intact; the delivery class table is now derived from it over `ATTACHMENT_SOURCES`) and a kind's constant frame ceiling (`maxBytes`: the date, workflow-guideline and dropped-tools frames read their caps from the row). Where a user authorizes an MCP server — the host's own prompt, never an address — is one engine message, `core/engine.mcp-authorization-place`, read by the three sentences that name it: the `mcp_unavailable` frame's needs-authorization arm (through the run's reading), the call-time refusal line and the `mcp.authorization_required` notice (through the canonical reading; their bytes are unchanged).
236
+ - **Before.** The words were literals in the renderers (about forty across `turn-attachments.ts`, `synthetic-tools.ts`, `listing-fold.ts`, `mcp-failure.ts`), English in every locale; the authorization place was an English constant the frame spliced into its sentence; the registry's `dedupe` was read by nothing and said `replace-by-key` for seven kinds the bundle actually clipped; the byte caps were constants beside the renderers.
237
+ - **Now.** The canonical reading renders every frame byte for byte as before (44 frames over every arm, captured on the renderers this change replaced: `test/fixtures/event-copy-frames.json`). A replacement passes the overlay door only when it carries each slot no more often than a shipped rendering of its target does and is no longer than the longest rendering the catalog ships for the target — together what every intact frame's bound already covers; leaving a slot out is allowed (its value is then not said). A blank template, a drop, an append or an add on an event template is refused at the door: a kind is turned off by `TaskSpec.attachments` only. The messages of one frame stay distinct. A replacement whose text is a shipped rendering, or the replaced text, of another message of its frame is refused at the door. When two replacements each pass the door alone and agree with each other, the later is absent this run, and the operator line names that cause. The transcript replay of the agent and skills listings reads the headers and the models line under every reading a session's frames may have been worded by — the run's own, the canonical, each shipped locale's; a template replaced and then replaced again is the one earlier wording it does not know (an unrecognized initial frame re-announces the listing in full; an unrecognized removal leaves the name counted as announced). A frame starts a line with its header. Where several headers start the same line, the longest is the frame. Frames are read in text order. So a listing entry that quotes a header is no frame. `describeCatalog().events` lists each worded kind with its templates (id, canonical text, slots) and the band's op columns.
238
+ - **Widening (open to veto @server @cli @client-core).** (1) A run with `promptLocale: "zh-Hans"` now receives these frames in zh-Hans (they were English), the authorization place inside the needs-authorization arm included. (2) A center artifact or a deployment's `prompt.compose` answer may now replace an event template (an overlay on a `core/event.*` id used to be refused as "not a message the catalog places").
239
+ - **Hard-breaking — one, three sentences (H12; open to veto @server @cli @client-core @sdk).** *What changed:* `CompiledEventPrompt` loses `carrier`, `trust` and `rendererRef`, gains `messages`, and its members (`kind`, `defaultPolicy`, `messages`, `dedupe`, `maxBytes`) are `readonly` — the rows of `EVENT_PROMPT_REGISTRY` are frozen objects now, where they were plain ones; `dedupe` is optional (present exactly on the boundary-bundle kinds) and its type `EventDedupe` has two words (`replace-by-key`, `repeat`; `once-per-epoch` and `once-per-run` left with the rows that carried them unread); the root exports `PromptCarrier` and `PromptTrust` are removed; `PromptBandId` gains `event-copy`; `CatalogDescription` gains the required member `events`. *Who is affected:* a host that reads those registry columns or names the two types (no consumer repository reads them today), a host that names `once-per-epoch` or `once-per-run` against `EventDedupe` (a `case` arm or a comparison no longer compiles), a host that assigned to a member of a registry row (no longer compiles; at run time the frozen row throws a `TypeError` in strict code), a host `switch` over `PromptBandId` that ends in a `never` default, and a host that builds a `CatalogDescription` by hand (a test double). A host that only reads a row is not affected by `readonly`. *What to do:* read a kind's templates from `describeCatalog().events` and its clip policy from `dedupe`; delete the two `EventDedupe` arms; leave the registry's rows as the engine ships them; add the `event-copy` arm (no section reaches the wire in it — `prompt.assembled.sections[].band` never carries it); give a hand-built description an `events` array.
240
+ - **Not changed.** Which kinds fire and when, their default policies, their order in the bundle, the bundle cap, the intact bounds' values (one fixed allowance restated: `mcp_unavailable`'s fixed sentences are counted at 2 KiB in every shipped reading); the bytes of the call-time refusal line, the record faces' `unauthorized` clause and the `mcp.authorization_required` notice; the background-task frame's table body (its status phrases, shared with the task-notification lane's table) stays in code, so a zh-Hans run's background-task frame is worded in zh-Hans around an English table — a later slice.
241
+ - **Prompt identity.** The catalog digest moves: a session continued across this release records a `code_change` epoch on the catalog layer; no section text moved.
242
+ - **Rules.** Copy mint points: about forty literals → one catalog file. Clip-policy readings: two (an unread registry column, partly false, and a hand table) → one (the row). Byte caps: the constants beside the renderers → the row's `maxBytes` where constant. The authorization place: an English constant → one engine message every reader reads (a frame's locale no longer splices an English clause). Retired: `carrier`, `trust`, `rendererRef` (no reader), the renderers' copy constants and the place constant. Added: one band row, one door rule (each slot no more often than the target says it, size ≤ its longest shipped rendering), one frame rule (a frame's messages stay distinct, read at the door and in the fold). Replay readings: one (the run's) → every reading a session's frames may carry, read by one header list as line-start headers, longest first, in text order (the replay moved to its own module, `src/core/runner/listing-replay.ts`). Special cases: none.
243
+ - **Pins.** `test/backlog1664-event-copy.test.ts` — G1 the renderers hold no lettered literal but message ids, envelope tags and named compared values (source scan); every event message is placed; every production call hands the run's reading · G2 delivery class = row `dedupe`, constant bounds = row `maxBytes` · G3 replace taken from center and deploy, refused from a task; append refused; door slots, slot repetition and size; one reading words every frame; `describeCatalog().events`; end to end, a deployment's replacement words the skills listing · G4 a drop is skipped and told and the frame still rides; blank, drop and add refused at the door · G5 44 frames byte-equal to the renderers this change replaced, and a skill line's three attachment arms; zh-Hans words every frame; canonical, zh-Hans and a door-limit reading stay inside the intact bounds; the listing and models replay reads frames worded by the canonical reading under a replaced one, and zh-Hans frames under the canonical; a listing entry that quotes a header (a short replaced one, and the canonical one) is no frame; a removal and a re-addition of one name in one text leave it announced; a replacement that reads like another message of its frame is refused at the door from center and deploy, and the later of an agreeing pair is absent this run (end to end, its operator told the cause). `test/backlog4029-authorization-address-neutral.test.ts` re-read — the three authorization sentences read the one engine message through one accessor; the engine lines' bytes are the canonical words whatever the locale; the frame's arm says the place in the run's.
244
+ - **Consumers.** @server: a center editor reads `describeCatalog().events` for the templates a center may replace; nothing else to do unless it read the removed registry columns. @cli @client-core: none (frames arrive as before; a zh-Hans run's frames are now zh-Hans). @sdk: none.
245
+
246
+ ### A 401 whose one re-ask the credential seat could not answer reads `seat_unavailable` — a fourth `McpAuthorizationReason` on the one `unauthorized` kind and the one `authorization` record, where it read `rejected` (#3985; server [13624] C3; ruled C-R1324; behavior change: a refused call whose re-ask the seat did not answer (it threw, did not answer in time, answered off-shape, or the ask was aborted), and a renewed call whose re-send the seat could not furnish, is `unauthorized` / `seat_unavailable` where it was `unauthorized` / `rejected`, and the model's line for it says the server refused the request and the seat could not answer, where it told the user to authorize, and such a record is no longer announced as an authorization the user owes — its dial reaches the person as `mcp.server_unavailable` and the model as an entry of the frame's failed arm, where it reached them as `mcp.authorization_required` and the needs-authorization arm; narrowing: one, below, open to veto @server @cli @client-core; widening: none; hard-breaking: two — one closed set, one behavior level, three sentences each below, open to veto @server @cli @client-core @sdk; closed sets: `McpAuthorizationReason` +1 `seat_unavailable` (three → four); exports: none added or removed — `MCP_AUTHORIZATION_REASONS` and `McpAuthorizationReason` gain a member; wire: `McpAuthorization.reason` on the status record, the wiring-manifest row, the notice `detail.reason` and the thrown `details.authorization.reason` may read the new word, no member and no kind added) (@server @cli @client-core @sdk @test)
247
+
248
+ - **Rule.** The re-ask the engine makes of the seat after a 401 is a seat ask like the others, and what it answered is what the record says: a seat that answered (the same pieces, other pieces, or `unauthorized`) leaves the 401 `rejected`; a seat that did not answer — it threw, did not answer within its bound, answered something the engine cannot carry, or the ask was aborted — leaves it `seat_unavailable`. The kind stays `unauthorized`: the endpoint refused, and that is its own word. The second fact — nobody could be asked what to do about it — is a word on the same axis (`McpAuthorization.reason`), not a second member and not a second kind.
249
+ - **Before.** `PeerCarrier.rejected` folded every failure of the re-ask into `{ renewed: false }`, the fetch raised `PeerAuthorizationRefused("rejected")`, and the call read `unauthorized` / `rejected` with a line that told the user to authorize the server — a reading that says a credential was asked for again and did not pass, while the seat had answered nothing. The next call asked the seat afresh and read `credential_unavailable`, so the misreading lasted one call. A repeat-safe call refused 401 whose re-ask was answered but whose re-send the seat could not furnish (an answer the carry refuses) ended with the first refusal as `rejected` too.
250
+ - **Now.** The re-ask's answer carries `seatUnavailable` (`PeerReask`, shared by the MCP fetch and the A2A send — the A2A send does not read it: it is not sent again and its failure rows carry no authorization reason); `PeerAuthorizationRefused` takes the third 401 reason; the classifier reads it into the record unchanged (kind `unauthorized`, `delivered: "unknown"` — the first send went — and the endpoint's own `resource_metadata` when it sent one, no `authorizeUrl`: the seat gave none). `unauthorizedLine` gains the arm: "the server refused the request (HTTP 401) and the credential seat could not answer", whose seat it is (the deployment's, not the server), not to retry until it is fixed, not to ask the user for codes, tokens or callback URLs, and the delivery tail the verdict owes. A re-send the seat could not furnish (`resendSeatLost`: its record says `credential_unavailable`) ends with the first refusal read the same way; one undelivered for another reason (the endpoint refused the connection, the revocation ledger stopped it) ends with it as it was. One predicate, `owesAuthorization` (every reason but `seat_unavailable`), is read where the engine decided "the user owes an authorization" from the mere presence of the record: the authorization announcer's one funnel (a dial, a call's answer, a resource listing), the frame's entry builder (the told-record identity and the arm partition), and the suppression of the `mcp.server_unavailable` notice. A `seat_unavailable` record is therefore an entry of the frame's failed arm (its error text, as any unreachable server's), at a dial the person's `mcp.server_unavailable`, and never `mcp.authorization_required`; on a connected server the call's own line is the whole answer. The status record and the manifest row keep `errorCode: "unauthorized"` and `authorization.reason`.
251
+ - **Narrowing (open to veto @server @cli @client-core).** A record that read `rejected` and fired `mcp.authorization_required` (and the needs-authorization arm) for these failures no longer fires them: the dial of a server whose re-ask the seat did not answer reaches the person as `mcp.server_unavailable` and the model as a failed-to-connect entry; a request refused so on a connected server announces nothing beyond its call line.
252
+ - **Hard-breaking — two (open to veto @server @cli @client-core @sdk).** (HB-1, closed set) *What changed:* `MCP_AUTHORIZATION_REASONS` (and the type `McpAuthorizationReason`) gains `seat_unavailable`: three words become four. *Who is affected:* a `switch` over `reason` that ends in a `never` default, a table or an `Exclude` keyed by the three words, a mirror of the set that rejects an unknown word, and a doc or schema that lists three — @server's refusal-word table for the status record and the manifest row (the S-3727 refusal table and the `engine-notice-wire.ts` note; direct read of the closed set, no copy — server [13664]: zero change, the pickup adds the row and the note), @client-core's mirror table and `detail` text (CC-1446; its open-set read breaks nothing, the mirror and the text name four words), @cli (open-set rendering of the word, [13676]: zero change), and the SDK's declaration (`.d.ts` carries the new member). *What to do:* read the word open-ended where it is rendered; where a table is keyed by it, add the row — `seat_unavailable` is a 401 the deployment's seat could not be asked about, `delivered: "unknown"`, no address, and the line it carries asks nothing of the user; a consumer that decided "the user must authorize" from `kind === "unauthorized"` alone reads this record the way it read `rejected` and may now tell the two apart by the reason. (HB-2, behavior level) *What changed:* the notice code a record of this reason reaches the person under — `mcp.authorization_required` → `mcp.server_unavailable` for a dial, and none for a request on a connected server (its call line is the answer) — and the model-facing arm of the `mcp_unavailable` frame — needs-authorization → failed-to-connect. *Who is affected:* a consumer that prompts the user to authorize on `mcp.authorization_required` or on the frame's arm — @server, @cli and @client-core read the notice by its structural code and the status record by `errorCode` / `authorization`, so nothing of theirs changes: informed, not asked to act — and a host that wants to show the deployment-side fault reads `errorCode: "unauthorized"` with `authorization.reason: "seat_unavailable"` on the status record or the manifest row. *What to do:* nothing; do not offer the user an authorize prompt for this reason.
253
+ - **Not changed.** The kind (`unauthorized`), the delivery verdict, the three disposition tables (unsent, `DELIVERED_BY_KIND`, liveness), the first ask of a send failing (`credential_unavailable`, nothing sent), the seat answering `unauthorized` to the re-ask (`rejected`, the seat's address on the record, never on the card or in a sentence), `none` and `scope`, the one re-send of a repeat-safe call on a renewed answer, the write-class call not sent again, a handshake's one re-dial. The announcement of every other reason (`rejected`, `scope`, `none`): `mcp.authorization_required` once per (leg, server), the needs-authorization arm, the told-record identity (the reason and a digest of the seat's address) and `mcp.server_unavailable`'s suppression for those servers.
254
+ - **Record faces.** The text a record face keeps for an `unauthorized` failure in place of the remote's body (the per-server status's `error`, the wiring manifest row's, the refresh result's, a listing's per-server error, the operator warning's) reads the same predicate: the user's step for a reason the user owes, and for `seat_unavailable` "The server refused the request (HTTP 401) and the credential seat could not answer" — never the remote's body, never a step for the user. A re-send the seat could not furnish ends with the 401 minted as the refusal it then is (`seat_unavailable`), so the call lane's announcement, which reads the record off the thrown error's `cause`, reads what the line says.
255
+ - **Rules.** Added: one word on an existing axis, one arm of the one line, one field on the re-ask's answer, one predicate (`owesAuthorization`). Retired: the swallow of the re-ask's failure into "not renewed" (it was the reading `rejected` stood on), the first refusal's reading `rejected` as the call's answer after a re-send the seat could not furnish, and the mere presence of `authorization` as the reading of "the user owes an authorization" at the three sites that told a person to authorize (the announcer funnel, the frame's entry builder, the unavailable notice's suppression — a double reading beside the reason). Net: no kind, no member, no table row; the one failure the engine had two readings of (this one, on the call and on the next call) has one, and the one question "does the user owe this" has one answer.
256
+ - **Pins.** `test/backlog3985-seat-unavailable.test.ts` — G1 a re-ask the seat threw on: `unauthorized` / `seat_unavailable`, delivered unknown, the line names the refusal and the seat and asks nothing of the user, nothing is announced as an authorization (and G1b a write-class call keeps the delivery tail · G1c the endpoint's challenge url stays on the dial's status record · G1u the line by itself) · G2 a re-ask that never answers is bounded at the wait bound; one aborted by the caller · G3 an answer of an unknown kind; a header value the grammar refuses · G4 control: a re-ask answering `unauthorized` stays `rejected` (with or without an address; and a re-ask answering the same pieces) · G5 control: the first ask failing is `credential_unavailable`, delivered no · G2c an abort whose reason is shaped like the seat's `unauthorized` answer is still no answer · G6 a renewed 401 whose re-send the seat cannot carry ends as `seat_unavailable`; the re-send's loss reads the first refusal's reading, an undelivered re-send of another cause keeps it; a second 401 whose own re-ask fails ends the same way (G6f) · G7 the closed set, four words · G8 the A2A carrier gives the same three answers and concurrent rejections share one flight · G9 the dial's status record, announcer not called · G10 through the Runner: `mcp.server_unavailable` once, no `mcp.authorization_required` · G11 control: `rejected` / `scope` / `none` are still `mcp.authorization_required` once, never `mcp.server_unavailable`, and the needs-authorization arm carries them · G12 the frame: the server is in the failed arm and no sentence says to authorize. `test/backlog2295-unauthorized.test.ts` (W9, F5) and `test/backlog2294-peer-seat.test.ts` (R4) re-pinned to the new word.
257
+ - **Consumers.** @server: the `engine-notice-wire.ts` note and the S-3727 refusal table take a `seat_unavailable` row (the S-3755 pickup); direct read of the set, nothing to copy. @client-core: CC-1446's mirror table and `detail` text name four words. @server and @client-core read the notice by its code: a `seat_unavailable` dial arrives as `mcp.server_unavailable` (zero change, informed). @cli: renders the word as it renders the others; nothing to read — and, for these records, receives `mcp.server_unavailable` where it received `mcp.authorization_required` (read by the structural code; zero change, informed). @sdk: the declaration gains the member. @test: black-box G1–G3 (a seat that throws, one that answers off-shape, one that never answers, after a 401).
258
+
259
+ ### A leg holds every credential reference its spec names, from the call: its own `mcp` / `a2a`, each per-task definition (`TaskSpec.agents`, whole) and the definitions a delegation or workflow tool of its roster carries — one receipt, read once, that every door of its prepare judges (#3017; ruled C-R987 ruling 3; behavior change: the peer seat sees more holds, earlier; narrowing: two, below, open to veto @server @cli; widening: none; hard-breaking: one, type level, below; closed sets: none; exports: none; wire: none) (@server @cli @client-core)
260
+
261
+ - **Rule.** A leg receives, once at the call (`Runner.runTaskStream`, every fresh, resumed, child, cascade-rung and repair-attempt leg), everything of its spec that names something a peer can be dialled with, and its tool roster: the lock set, `mcp` and `a2a` (the door's receipt, as before), the roster's one snapshot, and `agents` — the list read once, each definition copied whole (its tool-name lists and its MCP declarations judged by their doors) or refused on its own. It holds every reference that receipt names until its stream settles, and every door of its prepare judges the same copy: the lock door its lists, the per-task agents door its definitions, the mount and the safety scan its roster. A delegation or workflow tool carries the definitions it was made with and those the tools it hands its children carry (a delegation tool's own `tools` pool, a workflow tool's baseline tools) — an engine-private record written where the engine mints the tool: every node of `createSubagentTool`, nested ones included, its per-task rebuild seam (`withAgents`, so a spread of the tool or a wrapper of its `execute` carries the same), and `createRunWorkflowTool` — and the leg whose roster holds the tool holds them. A retained child's row holds the same of the child's spec, through the one keeper reading both keepers share.
262
+ - **Before.** The leg held only `spec.mcp` / `spec.a2a` at the call. A per-task definition was read at prepare's agents door and its servers were held by no leg; a definition a delegation tool carried was held by no leg at all; a retained row held only its spec's own lists. A host that let go when `runTaskStream` returned (the hold contract allows it) left those references unheld until a child's own leg took them, and the child's dial met a dropped registration: `credential_unavailable` (KL-2595-b).
263
+ - **Now.** The host may let go the moment the call returns: a child spawned as a per-task definition, or as a definition the mounted delegation tool carries, dials; a session-scoped background child whose nested delegation tool carries a definition holds it for its own children after its spawner has settled; a retained row keeps the definitions the nested tool it revives with carries. Prepare entered outside a Runner takes the same receipt at its start, through the same function.
264
+ - **Narrowing (open to veto @server @cli).** The roster is fixed at the call, no longer when prepare starts: an entry the caller adds, removes or replaces in its `tools` array after `runTaskStream` returned is refused at the end of prepare (`config.tool_mount_denied`, the existing sentence); a getter on a roster entry, on a per-task definition or on its members runs at the call (once, as before). For a leg with no `sessionId` prepare already started inside the call, so the difference is only seen by a leg naming its session, whose prepare waits for the session lock. Compensation: complete `tools` / `agents` before the call (they are the request).
265
+ - **Narrowing (open to veto @server).** `createRunWorkflowTool` copies its `agents` once, where the tool is minted (the delegation tool's form): a definition whose lists or MCP declarations the doors refuse refuses the mount by the door's code — for the run_workflow tool a Runner mounts from `RunnerDeps.agents`, the leg's prepare — instead of failing the one `agent(…, { agentType })` that named it; a later change to the host's definition objects no longer reaches the workflow's runs. Likewise `createSubagentTool` keeps its own copy of an EMPTY `agents` list (a non-empty one was already copied, each definition now read once): a definition pushed into the host's array after the tool was made is not offered. Compensation: none needed for a deployment whose definitions pass the doors (the delegation tool built from the same catalog refuses the same definitions at its assembly today); a host that grows its list after mounting passes the list it means, or a per-task `agents`.
266
+ - **For a seat built by hand.** `RunnerSelfSeat.holdDeclarations` is handed what a retained row keeps — `{ mcp, a2a }` with the servers of the definitions the row's roster carries folded into `mcp` — instead of the whole child spec (the parameter is typed `PeerDeclarations`; a seat that forwards it to its Runner holds the same references and more).
267
+ - **Hard-breaking (type level).** *What changed:* `RunInternals.receivedPeers` — the engine-owned receipt — is typed `LegReceipt` where it was `ReceivedPeerDeclarations`; `LegReceipt` extends that type with the required `roster` (the tool roster's one snapshot) and the optional `agents`. *Who is hurt:* code that writes `receivedPeers` into a `RunInternals` it builds is compile-red until it states `roster`; nothing changes for it at run time — `Runner.runTaskStream` overrides a caller's value with its own receipt, as it did before — and code that reads the member still reads every member it read. *What to do:* stop setting `receivedPeers`; the engine takes the receipt at the call.
268
+ - **Not changed.** `PeerSeat`, `PeerDeclarations`, `holdPeerDeclarations` and their once-per-distinct-reference law; the engine still counts nothing; a deployment's own registry (`RunnerDeps.agents`) is held by no leg unless a tool of the leg's roster carries it; a checkpoint and a background-agent row keep no declaration; the lock law (a definition's servers are read under an `mcp` lock and refused by the child's door); every refusal's code, sentence and order at its door.
269
+ - **Rules.** Retired: the leg's receipt reading only `mcp` / `a2a`; prepare's own roster snapshot (it reads the receipt's) and its own reads of `spec.agents` (its length, then its entries); the workflow registry read where each run spawns (copied once at the mint, the delegation tool's form); the delegation tool's empty-list exception to its copy; KL-2595-b. Added: one receipt (`leg-receipt.ts`, composing the door's receipt, the roster snapshot and the definitions), one keeper reading (`heldDeclarationsOf`) for both keepers, one engine-private record (what a tool carries, written where the tool or its rebuild seam is minted). No new code, no new public name.
270
+ - **Pins.** `test/backlog3017-definition-holding.test.ts` — G1 a per-task definition: the host lets go when the call returns, the child dials and its call is answered · G2 a definition the delegation tool carries, same · G2b a session-scoped background child's nested tool holds its definition after the spawner settled · G2c a host-mounted workflow tool's registry is held from the call · G3 a per-task definition is read once, whole, at the call · G2d a spread of the delegation tool wrapping its `execute` (the repository example's form) carries the same · G2e a delegation tool in another's own pool is carried by that one · G2f an empty factory list is the tool's own copy · G3b a named-session leg's roster is read at the call and a late push is refused · G3c an empty per-task list stays empty for every later phase · G3d a list that cannot be read still meets the delegation-tool door first · G4 control: a host that keeps its lease · G5 control: `RunnerDeps.agents` no roster tool carries is not held · G6 control: a row holds its own lists · G6b a row holds what its roster's tools carry. Baseline red on 11 of 15 (G4–G6 controls and G3d, a regression guard, green); green here. Mutations M1–M12 each red on its fixture, none survives. `test/backlog2864-peer-seat-hold.test.ts` H3 re-pinned (a hand-built seat is handed what the row keeps, not the spec).
271
+ - **Consumers.** @server: the seat sees more holds and earlier ones — a leg's per-task definitions (none today: the request's per-task definition whitelist carries no `mcp`) and the definitions a delegation or workflow tool of its roster carries — each released when the leg settles; a seat's count only grows, no hold you rely on moves later (S-2489's remaining gap is this window). @cli @client-core: no read (neither implements a seat or mounts these tools across the call).
272
+
273
+ ### A workflow run holds what its agents dial, from the call that starts it until it can start no agent — its agentType registry (each definition copied where the run starts) and what the Workflow tool that started it carries (the governance baseline's servers, peers and agent definitions, the baseline read whole where the tool is minted); its deadline lives as long as its hold, and TaskStop on an ended run reaches the agents it left running (#4021 = #4002 S1; ruled C-R1342 and C-R1342 rider 1; behavior change: the peer seat sees one hold per workflow run, released when the run can start no agent; narrowing: four, below, open to veto @sdk @server @cli @client-core; widening: none; hard-breaking: one (HB-1), three sentences below, open to veto @sdk; closed sets: none; exports: none added or removed; wire: `WorkflowInternals.launchingTool?`, additive) (@server @cli @client-core @sdk @test)
274
+
275
+ - **Rule.** An engine object that can still start a leg after the call that handed it its declarations has settled (a call that returns a handle settles when it returns; one that returns a promise, when the promise settles) holds those declarations from inside that call until it can start no leg. Three objects are such keepers: a leg, a retained child's row, and — new — a workflow run. A run holds, on the seat of the runner its agents run on, its registry's copies and what the Workflow tool that started it carries (the tool hands itself, `WorkflowInternals.launchingTool`); the hold is taken in `startWorkflow`'s synchronous stretch and released once, by one retirement that whichever comes last of two facts triggers — the run has ended (its first terminal latch) and none of its calls is in flight. The same retirement disarms the run's deadline. A Workflow tool's record is the one keeper reading's own answer over what it was minted with (its registry's copies, both baseline slots' `mcp` / `a2a` and `agents` copies, what the baseline's tools carry): a leg holding the tool and a run the tool starts read the same record.
276
+ - **Before.** A leg whose Workflow tool started a run released at its own end, and the run held nothing: an agent the run started after the launching leg settled (or after a direct host returned from `startWorkflow`) met a dropped entry and failed `credential_unavailable` (or "Tool … not found"); the baseline's own `mcp` and its agent definitions' servers were held by no one at all. The deadline was cleared when the script returned, so an agent the script left running had no run-level bound, and TaskStop on an ended run answered "nothing to stop" and signalled nothing. The baseline was read three ways (the mint judged its face lists, each spawn spread the deployment's live object), and the direct registry was not copied (its servers judged at each fold).
277
+ - **Now.** The host may let go when `runTaskStream` / `startWorkflow` returns: the run's agents dial, after the launching leg has settled, after the script returned (a stalled or throttled call's retry), on another Runner's seat when the tool's `runner` is that Runner. The run releases when it has ended and its last call in flight has settled — on a completed, failed, cancelled or suspended terminal alike, at its first terminal latch when nothing is in flight (a run store whose terminal write hangs does not hold it).
278
+ - **Hard-breaking — HB-1, three sentences (open to veto @sdk).** *What changed:* `startWorkflow`, `runWorkflow` and the Workflow tool refuse, before any event or row, a runner seat without a `holdDeclarations` function (`config.invalid_argument`, "the runner seat that runs these children has no `holdDeclarations` function — …"; the tool answers it as its structured error), whatever the run would hold. *Who is affected:* a host that casts a hand-built seat wiring only `runTask` (the type has required the member since #2864) and starts workflows on it. *What to do:* forward `holdDeclarations(declared)` to the Runner the seat stands for, or hand in the Runner itself.
279
+ - **Narrowing 2 (open to veto @sdk @server).** The governance baseline's `base` / `worktreeBase` are read once, whole, where the Workflow tool is minted — each member once, as a task's spec is read — and judged once: an unknown or retired key, a member whose read throws, an `mcp` / `a2a` declaration its door refuses, an agent definition in `agents` whose lists or MCP declarations its door refuses (the door a task's `agents` pass; it used to fail only the child leg that received it) refuse the mount by that door's code (`config.spec_unknown_key`, `config.spec_retired_key`, `config.spec_member_unreadable`, the server's or peer's door code), and `workflowsCapability` and the self-orchestration fail-closed warning read the same verdict, naming `base.<member>`. A member changed on the deployment's object after the mint reaches no agent (a Runner-mounted tool is minted per leg, so the next leg reads it). Hurt: a baseline carrying a key that is no `TaskSpec` member (the old doc named `hooks`, `promptProvider`, `maxCostUsd`, `maxTokens` — each child was already refused by name at its prepare) now reads "workflows unavailable" plus the warning instead of "every child fails"; a host that edits its baseline object after minting. The server's baseline is a literal of `TaskSpec` members.
280
+ - **Narrowing 3 (open to veto @sdk).** A direct `startWorkflow`'s `opts.agents` are copied, each whole, where the run starts (the delegation tool's form): a definition whose lists or MCP declarations its door refuses refuses the start, synchronously, before `run_start` (it used to fail only the `agent()` call that named it); a definition changed after the start reaches no agent.
281
+ - **Narrowing 4 (open to veto @sdk @server).** The run's deadline (`totalTimeoutMs`; the Workflow tool's `limits.totalTimeoutMs`, default 600 000 ms from the run's start) is disarmed when the run releases, not when its script returns: an agent the script left running is stopped at the deadline, and its side effects may stop halfway (its result was already discarded at the run's end). A direct script's `void ctx.agent(...)` without a `catch` now rejects at the deadline — an unhandled rejection in the host process, the shape a `cancel()` after the end already had. Await the agent (or catch it), or raise the deadline. KL-4002-b.
282
+ - **Narrowing 5 (open to veto @server @cli @client-core).** TaskStop on a workflow task that has ended calls the run's `cancel()`: agents it left running stop; the row's status and result are unchanged; the receipt reads `workflow already <status> — its row is unchanged; any of its agents still running were signalled to stop. …` (was `… — nothing to stop; …`), `stopped: false` as before. The reference re-signals an ended workflow's live agents the same way.
283
+ - **Two defects fixed on the way.** A call that failed before its run ended and waits on a journal write that never answers now reaches the end of its leg: the terminal boundary answers every pending wait (it only cancelled their timers, while its own note said nobody waits past it) and a write begun after it is handed back answered (the write still goes to the store, in its call's order). An attempt that starts after a `cancel()` or the deadline landed while its call waited on its review or capture now starts on an aborted signal (its controller only listened for an abort already dispatched). A host `now` that throws as a call starts or as a failed steerable call is recorded now ends the call's leg instead of stranding its count (which kept the run from releasing): the isolation advisory moved inside the leg's `try`, a steerable launch ends its leg on any throw (as the awaited lane's `finally` does), and a failed steerable call ends its leg whether or not its record could be written.
284
+ - **Not changed.** `PeerSeat`, `PeerDeclarations`, `holdPeerDeclarations` and their once-per-distinct-reference law; the engine still counts nothing; the leg's receipt; a deployment's own `RunnerDeps.agents` is held by no leg (a run started from a Runner-mounted Workflow holds its copy); `stallMs` and the retries; a wrapper or adapter copy of the Workflow tool in a roster (KL-4002-a); a run started on another Runner before its first hold (#4003); a leg's documented exception KL-2864-a (a run does not share it).
285
+ - **Rules.** Retired: the census "two such objects" (five copies → the peer seat's module note and the reader's doc, three pointers); the registry's two forms (copied at the tool's mint / not copied on a direct start, judged at each fold) and the fold's own judge with its excuse; the baseline's read times (mint judged part, each spawn read the live object) → one receipt; the deadline's separate lifetime (cleared when the script returned) → the run's retirement; a carried record of definitions a second fold read → the reader's own output (`a2a` joins as `mcp` does); the documented duck seat; TaskStop's second lifetime judgment (`status === "running"` decided whether to signal); the terminal boundary's note that was not true. Added: the run as a keeper (hold, retire); `WorkflowInternals.launchingTool`. Special cases: none — the registry is held whatever its source, the seat refused whatever it would hold, the direct and the tool form differ only by an empty list.
286
+ - **Pins.** `test/backlog4002-workflow-keeper.test.ts` — G1 the launching leg settles, then a typed agent dials · G2 the baseline's `mcp`, held from the call's return, dialled · G2b the baseline's `a2a` and `worktreeBase.mcp` held by the run · G2c the baseline's `mcp`, only the run holding · G2d the baseline's `agents` held by the run, a refused definition refusing the mount · G3 a direct start, the host letting go at the return · G4 a stall retry after the run ended dials · G4b a hung journal store does not hold the run · G4c a hung terminal run write does not hold the run · G5 hold before the return, release after the last call · G5b a failed and a cancelled terminal · G5c a host clock that throws as a steerable call starts · G5d a host clock that throws while a failed steerable call is recorded · G6 a seat without `holdDeclarations` refused before any event · G7 a baseline member changed after the mint reaches no agent · G7b a refused baseline member refuses the mount and the capability alike · G8 a direct registry definition read once at the start · G8b a refused definition refuses the start · G9 control · G10 a Runner-mounted Workflow · G11 the tool's other Runner holds · G12 the synchronous refusals hold nothing · G13 the deadline stops an abandoned agent · G13b `cancel()` after the end · G13c an attempt after a cancel starts aborted · G14 TaskStop on an ended run. Re-pinned: `backlog2595` D1b (the definition's list is refused where the run receives its registry); `backlog3017` / `backlog3883` call `holdKeeperDeclarations(seat)(keeper)`; `backlog1514`'s child seat carries `holdDeclarations`.
287
+ - **Consumers.** @server: the seat sees one more hold per workflow run (today zero calls: the request's definitions carry no `mcp` and the baseline is a literal without servers), released at the run's end; abandoned agents stop at the run's deadline; TaskStop on an ended workflow task signals its agents and answers the new sentence. @cli @client-core: the receipt sentence, through the server. @sdk: HB-1, narrowings 2–4, `WorkflowInternals.launchingTool` (an engine-minted tool's identity; any other object carries nothing). @test: criteria draft for 7.69.0.
288
+
289
+ ### A host seat follows the declaration it was handed for — an agent definition declaring a `{ kind: "host" }` MCP server is refused where it is received (#3023; ruled C-R987 2 A; behavior change; hard-breaking: one, three sentences below, open to veto @server @cli @client-core; closed sets: none; exports: none; wire: none) (@server @cli @client-core)
290
+
291
+ - **Rule.** A host seat follows the declaration it was handed for: a delegated child is handed the seats of the host-transport servers it inherits from the run that spawns it; an agent definition is no seat's giver, so its one judge (`definitionMcpServers`, the judge every copy of a definition takes — the delegation tool's assembly, the `TaskSpec.agents` door, the workflow's registry copy) refuses a `{ kind: "host" }` server.
292
+ - **Before.** A definition's own host-transport server borrowed the spawning run's seat of the same name (7.60.0–7.68.0), and under a spawning run that declared no server it failed its dial on the child instead.
293
+ - **Now.** A definition's `{ kind: "host" }` server refuses the whole definition with `config.mcp_host_seat_missing`, naming the definition and the server, before any leg is spawned as it; a child is handed only the seats of the host servers it inherits.
294
+ - **Hard-breaking — one, three sentences (open to veto @server @cli @client-core).** *What changed:* an `AgentDefinition.mcp` entry with a host-supplied transport (`{ kind: "host" }`) is refused, with the whole definition, where the definition is received — `createSubagentTool` throws, a task carrying it in `TaskSpec.agents` fails at its start, a workflow given it in its agent registry throws — `config.mcp_host_seat_missing`; 7.60.0–7.68.0 let it dial through the spawning run's seat of the same name. *Who is hurt:* a host that gives an agent a host-pipe server through its definition (`agents[].mcpServers` mapped onto `AgentDefinition.mcp`, or `createSubagentTool({ agents })`). *What to do:* declare the server on the run that spawns the agent (`TaskSpec.mcp`, its seat in `RunInternals.mcpHostSeats`) and write `mcp__<name>` in the definition's `allowTools`; the agent's leg inherits the server and is handed its seat.
295
+ - **Deviation (stricter than the reference).** Claude Code 2.1.316 skips a host-only transport entry in an agent's `mcpServers` with a warn-level debug line and keeps the agent; this engine refuses the definition (registered D-3023-a, the bad-entry family of the per-agent MCP rulings).
296
+ - **Not changed.** The run tree's MCP pool (the session's, #4187 — the pool half of #3022 arrived with it); the wake hand-over (`createSubagentResume({ currentMcpHostSeats })`); `ToolExecuteContext.mountedMcp` stays absent on a leg that declared no server.
297
+ - **Rules.** Retired: the definition's borrowing of a seat (the spawn's seats read over every declaration of the child). Added: none — the definition's host refusal is the one judge's answer at the doors that already asked it, and reuses `config.mcp_host_seat_missing`.
298
+ - **Pins.** `test/backlog3022-3023-run-tree-pool.test.ts` — S1 an inherited host server two levels deep reaches its seat; P0 / O1 / W1 / W2 the tree's one pool on every leg, the observer and the workflow agents, read on the session pool's carriers. `test/backlog2595-agent-mcp.test.ts` — A11 / A11b / D1d the definition refused at the assembly, the task door and the workflow registry, by one code and sentence.
299
+ - **Consumers.** @server: a request's `agents[].mcpServers` host-pipe entry is refused at the definition door — move the server to the run's `mcp`. @cli: a definition with a host-pipe server now fails the delegation tool's construction. @client-core: project `config.mcp_host_seat_missing` on a definition as a configuration refusal.
300
+
301
+ ### An MCP entry's transport kind is a word of the closed set, refused where every other declaration of the entry is judged — `"Host"`, `""` and an unknown word are `config.invalid_argument` at the preparation door, the agent-definition doors and (as that server's `invalid_config`) the library entrance, where they used to be dialed as HTTP (#4010; behavior change: a record transport whose `kind` is no word of `MCP_TRANSPORT_KINDS` is refused by the one entry judge; narrowing: one, the hard-breaking one below; widening: none; hard-breaking: one, three sentences below, open to veto @server @cli @client-core; closed sets: none — `MCP_TRANSPORT_KINDS` is unchanged; exports: none; wire: none) (@server @cli @client-core)
302
+
303
+ - **Rule.** `judgeMcpEntryDeclarations` has one more leg, `judgeEntryTransportKind`, asked after `sessionMetaKey` and before the host-transport leg: a transport that is a record names a `kind` that is a word of `MCP_TRANSPORT_KINDS` (`"stdio"`, `"http"`, `"host"`), spelled exactly, else `config.invalid_argument` naming the server and the shape of the word (a redaction mark and its length, never its text) beside the closed words. It is the one judge every door already asks, so the answer is one code and one sentence everywhere: the preparation door refuses the task (`TaskSpec.mcp`), the agent-definition doors refuse the definition (`createSubagentTool({ agents })`, `TaskSpec.agents`, a workflow's `agentType`), the library entrance (`materializeMcpTools`, the no-run probe) fails that server (`invalid_config`, never dialed) and mounts its siblings, and a host door that asks the root export `judgeMcpEntryDeclarations` gets the refusal value. A transport that is no record (`null`, a string) is not this leg's: the dial refuses it for its own reason, that server alone, as before.
304
+ - **Before.** Nothing judged the word. The dial read the kind through a total reader (`transportKindOf` answers `undefined` for a word outside the set) and took the non-stdio branch for every such entry: one with a `url` was dialed as HTTP whatever it was spelled (`{ kind: "Http", url }`), one without failed the dial for another reason ("carries no url"), and the host-transport judge knew only the exact `"host"` — so `{ kind: "Host" }` was no host row and no refusal, in a task and in a definition alike.
305
+ - **Hard-breaking — one, three sentences (open to veto @server @cli @client-core).** *What changed:* an MCP declaration (`TaskSpec.mcp`, `AgentDefinition.mcp`, a library entrance's list) whose `transport.kind` is not exactly `"stdio"`, `"http"` or `"host"` is refused, where it used to be dialed as HTTP when it carried a `url`. *Who is hurt:* a host that spells a kind another way (a case variant, `"sse"`, `"streamable-http"`) and was served by the old fallthrough — its task, its definition, or that server of its library list now fails by name. *What to do:* write the kind as one of the three words; `"http"` is the Streamable HTTP transport the fallthrough dialed.
306
+ - **Not changed.** The dial, the closed set and the host-seat judges (a `{ kind: "host" }` row keeps its members rule, and a definition's host server is still refused whole by `config.mcp_host_seat_missing`); a declaration whose transport is no record; every declaration of a closed word.
307
+ - **Rules.** Retired: the dial's reading of an unknown kind as "non-stdio" (one, now unreachable from a record transport). Added: one leg of the entry judge.
308
+ - **Pins.** `test/backlog4010-mcp-transport-kind-closed-set.test.ts` — K1 the three bad forms (case variant, empty string, unknown word) refused with the code, the server, the closed words and no text of the word · K2 a non-string and an absent kind the same · K3 every closed word passes, a non-record transport is not this leg's · K4 the leg's place in the order · D1 the definition door · T1 the preparation door (the definition door's sentence) and T2 a closed word the dial cannot reach is not refused · L1 the library entrance fails that server and dials its sibling.
309
+ - **Consumers.** @server: a request's `mcp[]` / `agents[].mcpServers` entry with a misspelled kind is now refused at the door with `config.invalid_argument` (the library entrance's `invalid_config` for a probe); map a client's transport word to one of the three. @cli: if a `--mcp-config` entry's `type` reaches `transport.kind` untranslated (`"sse"`, `"streamable-http"`), map it to `"http"` first (the shell's mapping was not checked here). @client-core: project `config.invalid_argument` on an MCP declaration as a configuration refusal naming the server.
310
+
311
+ ### The park self-check's representative row carries every member a parked row keeps of an ask's carry — `askReasons`, `cardMessage`, `classifierNoRuling` and `cardAskRule` join the four it already carried, all eight minted by `askCarryRowMembers` (with the class word's `headline`, #4130, which the mint derives from them), so a checkpoint store that drops one no longer passes `probeParkRoundTrip` (#4005; behavior change: the synthetic row carries four more members, so a store that loses any of them reports `row_not_faithful`; narrowing: one, below, open to veto @server; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server)
312
+
313
+ - **Rule.** The probe's row takes its ask members from the one function a live park takes them from (`askCarryRowMembers`), over one representative carry whose `satisfies` clause makes a carry member that function starts to publish a compile error until the carry gives it a value (a member it derives, such as `headline`, is read off those values). The probe compares the whole `pendingAction`, so a member the synthetic row never carried was a member whose loss it could not see.
314
+ - **Before.** The row hand-wrote four of the eight members (`denialLimitFallback`, `origin`, `askClass`, `classes`); a store that dropped the askers' entries, the card's question, the classifier's no-ruling cause or the written ask rule passed the self-check and lost them on every real parked ask.
315
+ - **Narrowing (open to veto @server).** A checkpoint store whose serializer drops one of the four members (or the derived `headline`) now fails the self-check (`row_not_faithful`) where it passed; the store was already losing them on real rows.
316
+ - **Pins.** `test/backlog4005-park-selfcheck-ask-carry-members.test.ts` — R0 the filed row carries each of the nine members (the eight and the derived `headline`) and they are the one mint's answer · C0 control · D one cell per member (a store that drops it is `row_not_faithful`, the member on the sent side and gone from the read side) · N1 a serializer that keeps an entry's `by` and loses the rest.
317
+
318
+ ### A borrowed host seat outlives its giver's leg as a refusal, and the limit is written down — a background child that outlives the leg whose host seat it inherited calls through a released seat and is told `host_refused` (nothing was sent; sending again is safe), pinned as it stands (#3024; behavior change: none; hard-breaking: none; closed sets: none; exports: none; wire: none)
319
+
320
+ - **Docs.** `docs/KNOWN-LIMITS.md` KL-3024-a states the condition (a session-scoped background child, or a retained one, that outlives the leg its host's seat was given for), what the user sees, and the design choice left open — a seat that lives as long as its borrowers, which needs a hold the host reads and would let a never-ending background agent pin the seat, against the seat released with its leg, which is today's contract. The engine does not choose here: nothing in behavior changes.
321
+ - **Pins.** `test/backlog3024-host-seat-borrower-outlives.test.ts` — B0 control (the seat held: the borrower's call runs) · B1 the host released the seat after the spawning leg ended: the borrower's call is refused with the host's sentence and "sending it again is safe", as an error, and nothing ran on the host's server · K1 the KL row exists and names the pin. The row also says what the pin does not cover: a listing refresh and a resource listing on a released seat fail with the host's sentence and without the structured `host_refused` word (read, not pinned).
322
+
323
+ ### An armed run asks about a host its sandbox does not list — once, read when the connection is made, the answer the run's (#4046; behavior change: a connection to an unlisted host is asked about where it was refused; widening: one, below, open to veto @server; hard-breaking: two, below, open to veto; closed sets: `AskClass` / `AskGuard` +`sandbox_network`, `ToolApprovalCard` +`network` (reserved); exports: none; wire: `CommandSandboxInstruction.askHost?`, the card `toolName: "SandboxNetworkAccess"`)
324
+
325
+ - **Rule.** A command start in an armed run carries the run's host question (`CommandSandboxInstruction.askHost(host)`), unless the requirement says `network.strictAllowlist`. The answer reads the run when it is asked, never a snapshot: a deny rule on the host refuses; a host a person allowed in this run passes; otherwise the ask class `sandbox_network` — folded with any ask a rule holds on the host — goes through the existing clearers in their order (an allow member, the mode, auto mode's classifier) and, when none clears it, a person answers on the network card through the run's approval seat; no live answer is no. The rules are read by the synthetic-call judge's new FETCH face (the probe `WebFetch https://<host>/` on every rule layer: deny, then held ask, then no objection), the allow members by the gate's own allow lanes on the same probe, the card's offer by the rule-offer factory on the same probe.
326
+ - **Before.** The instruction carried no question: an environment that keeps the network boundary refused every connection to a host neither list names and reported it as a violation (the `strictAllowlist` form for every run).
327
+ - **Now.** (1) `askHost(host)`: `host` in a URL's form (any other spelling is `false`, unasked); a deny `WebFetch(domain:<host>)` — the person's stored rows, the caller's or an inherited policy, the org's rows — or a rule that cannot be read ⇒ `false`; a host this run's person allowed ⇒ `true`; an allow member (`allowedTools`, a stored allow row, a skill's rows, the request's list) ⇒ `true` unless a rule holds an ask on the host; `bypassPermissions` ⇒ `true`; `dontAsk` ⇒ `false`; auto mode ⇒ the classifier's answer (its allow only while the run is still in auto; no ruling ⇒ `false`); else the card. A yes is given only if it still holds when it is given: the run has not ended and the rules, read again then, do not refuse the host — a deny or the run's end that arrives while the question is open wins. Two questions about one host at once are one; after the run every answer is `false`. A held ask that demands a real approval (a policy's `requiresRealApproval`, an org rule's ask) rides the card as `requiresRealApproval`, so a posture `onAsk: "allow"` does not answer it. (2) The card: `AskRequest { toolName: "SandboxNetworkAccess", args: { host }, message: "Allow network connection to <host>?", approvalCard: "network", askClass: "sandbox_network" }`, with the fetch card's offer `WebFetch(domain:<host>)` when a stored allow could clear it; answered live, never parked. "Yes" lets the host through for the rest of the run and writes nothing; "yes, and don't ask again" is the fetch card's redemption (`prepareCardApproval({ toolName: "WebFetch", command: <host>, … })`), the row a later run meets.
328
+ - **Widening (open to veto @server).** A command in an armed run whose requirement does not say `strictAllowlist` may now connect to a host neither list names when the rules, the mode, the classifier or a person allow it (before: refused).
329
+ - **Hard-breaking — two, three sentences each (open to veto).** (HB-1, type level) *What changed:* `AskClass` gains `sandbox_network` (after `sandbox_override` in `ASK_CLASSES`, with its `MODE_ARBITRATION` row and its `SHADOW_REASON` row) and `AskGuard` gains the same word. *Who is affected:* a switch over `AskClass` ending in a `never` default or a table keyed by it — @client-core's engine fact tables, @cli's card words, @server's card screen. *What to do:* add the word (the card says a command in the run's sandbox connects to a host its sandbox does not list) and regenerate tables built from `MODE_ARBITRATION`. (HB-2, type level) *What changed:* `TOOL_APPROVAL_CARDS` gains `network`, reserved to the engine (`RESERVED_APPROVAL_CARDS`; required key `host`; no tool declares it, an overlay that names it is refused). *Who is affected:* a renderer whose switch over `ToolApprovalCard` ends in a `never` default — @cli's card table, @client-core's card family. *What to do:* render it as the reference's network card ("Network request outside of sandbox", the host, "Do you want to allow this connection?") over `args.host`.
330
+ - **Not changed.** The plan and its four arms, the escape question, the lapse, the frame, `ExecResult.sandbox` and its violations, a run with no `sandbox`, a run whose requirement says `strictAllowlist` (no question, refused as before), every other card.
331
+ - **Rules.** Added: one ask class row (its clearers are the existing ones), one reserved card word, one face of the synthetic-call judge (the read, served-read and write faces' walk with the fetch probe; the walk now also reports the classes a held ask carries). Retired: the S2 delivery form "no question ⇒ refused" as a rule of its own — it is now the no-live-answer arm and the `strictAllowlist` arm of the one question; the sandbox frame the model is told still says a host outside the allowed list is refused, and that text changes with #4660 (KNOWN-LIMITS KL-4660-a, 7.70.0). No second reading of a rule: deny / ask come from the layers every synthetic probe meets, allow from the gate's lanes, the offer from the offer factory.
332
+ - **Reference.** CC 2.1.316: the SDK host's question `cli316.js:288215` (`createSandboxAskCallback`: one in-flight question per host, `tool_name: "SandboxNetworkAccess"`, `input: { host }`, "Allow network connection to <host>?", the offer `WebFetch(domain:<host>)`, `addSessionAllowedHost` on yes, a re-spelled host refused); the mode mapping in front of it `:288887` (`KI`: the permission context read through a getter at each question — wired at `:288946` — and `s7t` `:260986` → allow / deny / classify / ask) and the no-ask-path arm on the same line (`VI`: the denial emitted, `false`); the tool name `:272033`; the interactive card `:295341` ("Network request outside of sandbox") and its words `:239767`.
333
+ - **Pins.** `test/backlog4046-askhost.test.ts` — T7 (the network card about the host; after yes the same run connects unasked; a new run asks again) · the nine forms (a deny rule — stored, a policy's, no fetch tool on the roster, under bypass; an ask rule over an allow rule; `bypassPermissions`; `dontAsk`; no approval seat; yes writes no rule and the next run asks; the offer redeemed is the rule a later run meets; two at once are one; after the run every answer is no) · controls (a listed host and a run with no sandbox are not asked; `strictAllowlist` carries no question; an allow rule clears it) · auto mode both ways · the rules read when asked (a deny that arrives mid-run refuses an allowed host; a deny that arrives while the question is open wins over the yes, for both of two questions at once), a governed ask is not answered by a posture `allow`, a re-spelled host, a no asks again · an answer holds only if it still holds when given (the run ends while a person, the classifier or an allow member decides ⇒ `false`, no card after the end; the run leaves auto while the classifier decides ⇒ the mode now in force reads it). Re-pinned: `backlog3282` (the reserved cards are question, plan and network); the five class-set enumerations (`backlog564`, `backlog1111`, `backlog1214`, `backlog1423`, `backlog3620`: `sandbox_network` beside `sandbox_override`, the same row); `backlog1214`'s request-mint census (the host question's mint, no carry).
334
+ - **Known limits.** KL-4046-a (a run whose roster has no WebFetch face reads no allow rule for the question and offers none — deny and ask rules still apply), KL-4046-b (the card's `toolCallId` is the command call's, the reference mints a fresh id; the human-review ledger does not count network questions), KL-4046-c (the screening stations — PreToolUse hooks, `tool.check` — are not consulted: the question is no tool call), KL-2274-a ④ retired.
335
+ - **Consumers.** @cli: render the `network` card (HB-2) and redeem its offer as the fetch card's; the question is answered live — an approval seat that cannot answer refuses the connection. @server: a hosted lane that keeps the network boundary calls `askHost` for a host neither list names and connects only on `true` (the violations line on `false`); `strictAllowlist` keeps the old form. @client-core: regenerate the engine fact tables (HB-1) and add the card to the family (HB-2). @test: T7 and the nine forms.
336
+
337
+ ### The identity seats re-key their own rows — `SessionPolicyStore.rekeyPrincipal` and `BackgroundAgentStore.rekeyScope`, four steps on one closed set (`plan` / `arrive` / `leave` / `withdraw`), and the File data-root adoption's policy leg runs as the seat's re-key (#3951, #3931 S1; ruled C-R1314 with annotations 1–3; behavior change: the File adoption's policy leg, and the policy mark's lineage on an ordinary write; narrowing: three, open to veto @cli @test; widening: none; hard-breaking: three sentences, open to veto @server; closed sets: `RekeyMode` (4) and `RekeyAnswer["kind"]` (3), new; exports: +9 — `REKEY_MODES`, `readPrincipalRekeyInput`, `readScopeRekeyInput`, types `RekeyMode`, `PrincipalRekeyInput`, `ScopeRekeyInput`, `RekeyPlan`, `RekeyDone`, `RekeyConflict`; wire: two required interface members)
338
+
339
+ - **Hard-breaking — one, three sentences (open to veto @server; S-2711).** *What changed:* `SessionPolicyStore` gains the REQUIRED member `rekeyPrincipal(input)` and `BackgroundAgentStore` the REQUIRED member `rekeyScope(input)`, each with three overloads that bind the `mode` to its answer arm: a class implementing either interface (it must copy the overloads) and an object literal typed as either fails to compile after the upgrade until it has the member. *Who is affected:* @server `SqlSessionPolicyStore` (`src/stores-sql/session-policy-store-sql.ts`, and its TiDB / Pg subclasses), `TiDBBackgroundAgentStore` and `PgBackgroundAgentStore` (`background-agent-store-sql.ts`), and any backend a deployment wrote for either seat; no implementer outside core and server on the eight neighbour `origin/main`s; core's four bundled stores carry the members in this release. *What to do:* implement the four steps per the two member sentences and the step sentence (`@contract session_policy.rekey_principal`, `background_agent.rekey_scope`, `identity_rekey.plan_is_execution`; INTEGRATION-CORE §5.3 / §5.5): each step one transaction; one more column on the policy mark table for the arrival record; every arrival lands the target mark at the arrival stamp; the erase step's next lineage is `max(mark.gen, row.gen) + 1` (shared by `deleteBySession`); an ordinary `putRules` writes the mark's lineage as `max(mark.gen, row.gen)`, never lower; run the kit's new cases (`sessionPolicyStoreContract`, `backgroundAgentStoreContract`, `backgroundAgentStoreScopesContract`) on the SQL twins. The adoption's four direct-write legs (`session_policy#principal`, `background_agent#record_json` / `#owner` / `#scope`) and the outside read of `policyKeyFor` then retire, and the phase machine runs two-stage (plan → arrive → deploy transaction → leave; withdraw on a failed deploy transaction, only before it commits).
340
+ - **Rule.** One identity seat moves the rows filed under one value of its identity axis to another: the policy seat's principal, the background-agent seat's isolation scope. The key spelling, the counters, the axis and "which target row is this move's" stay in the seat; the caller names the pair and the step. The policy seat's counter law is one operator — the per-position maximum: an arrival lands at `max(row, (targetMark.rev + 1, targetMark.gen))` and lands the target mark there; `leave` and `withdraw` are `deleteBySession`'s own erase step. The arrival record `{ to, from, at }` on the SOURCE key's mark is the one evidence of what arrived: a target row the record does not name is a conflict (equal rules included), and any ordinary write of the source drops the record, so a row rewritten after `arrive` is not erased by `leave`. The background-agent seat has no mark; its evidence is the copy itself (`scope: toScope`, `rev + 1`, every other member as stored).
341
+ - **Before.** The server's adoption wrote core's seat tables directly (four legs and the seat's key formula read from outside); core's File adoption rewrote policy rows by its own law — the row kept its counters whatever the target key had erased (a moved row could read rev 1 under a target that had passed rev 3), the source mark was deleted (the old name's next write restarted at rev 1, generation 0), and a target holding the exact bytes the leg would write was taken for the leg's own half-write.
342
+ - **Now.** `rekeyPrincipal({ from: RuleOwner, toPrincipal, mode })` and `rekeyScope({ fromScope, toScope, mode })` on all four bundled stores; the File adoption runs `arrive` → the marker bit `session-policy:arrived` → `leave` over the directory (a resume with the bit goes straight to `leave`). `rekeyScope` reads every row it touches as `get` reads it (`readStoredBackgroundAgent`): a row filed under the source scope, or at a target, that does not read refuses the whole step in `agent_record.row_malformed` — every step, nothing written on either side — and every copy passes the agent row write gate (`admitBackgroundAgent`) before the first write; the rows a step moves are the ones the store files under the source scope (its key), so a scope that begins with the same characters keeps its rows. InMemory runs each step in one synchronous stretch; File is resume-convergent rather than all-or-nothing (each row's rules are in at least one key at every point; a crash inside `leave` / `withdraw` may skip one lineage, never a rev — pinned at every write point). On both bundled policy stores an ordinary `putRules` no longer lowers the key's mark lineage to the live row's: a mark-only re-key that raised a target with a live row keeps that floor through the target's next write, so the target's next erase opens a lineage above every one the source wore (`G4g`; before, the write put the row's older lineage back into the mark and the erase after it reissued the source's lineage numbers). Outside a re-key the mark runs ahead of a live row only after a crashed erase; there the key's next erase now skips the one lineage number the crashed erase opened even when a write came between, as it already did when none did.
343
+ - **Narrowing (open to veto @cli — the local data holder — and @test).** In the File data-root adoption: (1) the old identity's policy keys keep an erase mark (the source mark carries the arrival record), where the leg used to delete it — so the old name writing the same session again opens a new lineage at a higher rev; (2) a moved row lands above the target key's erased floor (`G10a`: rev ≥ floor + 1, the target's next lineage) where it kept its own lower counters; (3) a target key that already holds a row for the session — equal rules included — refuses the adoption `adoption_row_collision` where equal bytes used to be finished as a half-write. (A fourth, `BackgroundAgentStore.put` refusing a row whose `scope` is not a string, already shipped with 7.68.0's agent row write gate; the gate's scope pair now reads through `agentScopeOf`, the re-key input's reading.) `test/backlog982-session-policy-rev-high-water.test.ts` ⑬ / ⑮ and the half-write cell of `test/file-adoption-root.test.ts` are re-pinned to these readings.
344
+ - **A refused move is "rules unchanged, counters only higher" (@server @test).** A move refused after `arrive` (the caller's deploy transaction failed and it ran `withdraw`) leaves every rule where it was, and an erase mark on the target key (`rev_survives_delete` requires it); one refused at `plan` changes no byte. The server's refusal note and a test criterion that reads "both sides byte-unchanged" read the first case as above.
345
+ - **The File policy mark gains one optional member (@cli @server read-only).** `__arrival` on a source key's `*.hwm.json`, written by `arrive`, kept by `leave`, cleared by `withdraw`, dropped by any ordinary stamp or erase. A 7.66.0 reader reads such a mark as before (`readSessionPolicyMark` judges only `__hwm` / `__gen`), and its own writes drop the member; this release's reader refuses a malformed record (`corrupt`, the mark's usual repair). A 7.66.0 adoption resuming an arc this release left after the arrived bit ignores the bit and re-runs its old leg: where the arrival kept the row's own stamp (the target key had no mark) it takes the arrived row for its own half-write and finishes by the old law (the source row and mark deleted, the old name's next write back at rev 1); where the arrival was raised above the target's floor it refuses `adoption_row_collision` (the marker stays).
346
+ - **Not changed.** The adoption receipt: `session-policy` stays `row-rewrite` with its count, `background-agent` stays `action: "none"` — the File adoption does not move agent rows (a parked card is a checkpoint row and an agent row together, and the checkpoint store takes no action in this arc; KL-3931-e, both judged with #3945). A damaged policy row still travels with its key (an object re-attributed, other bytes as they lie) and keeps refusing there. `update` never rewrites a row's scope.
347
+ - **Known limits.** KL-3931-a (a late row after the adoption's end collides, no merge) · KL-3931-b (a parked child holding the old principal reads the source key: no row, its snapshot, silent — until #3945) · KL-3931-c (an arrival raised into a new lineage: a reader following the identity holds its floor and announces once) · KL-3931-d (a writer let through between `arrive` and the deploy commit: its row stays under the old key) · KL-3931-e · KL-3931-f (File: `leave` called after an `arrive` that did not answer `done` erases the source with nothing arrived — the step order is the caller's contract; the File adoption's arrived bit keeps it) · KL-3931-g (File: a write to the target key inside an unfinished `arrive` can wear the arrival stamp and be taken for the arrival; unreadable rows are matched by class, not bytes — both need the freeze broken).
348
+ - **Rules.** Added: the two members with their input readings and the answer union (one closed step set replaces a boolean); the arrival record. Retired in core: the File adoption's own re-key law (its row rewrite and mark carry), its second copy of the key formula (one stem function `sessionPolicyStemFor` now), its "expected bytes" half-write judgment, its separate mark-refusal voice, and the background-agent put gate's own copy of the scope rule (the write gate's scope pair reads `agentScopeOf`). Core net −1; the server's four legs and the outside key formula retire with its half (design ledger −4 across both).
349
+ - **Pins.** `test/backlog3931-identity-rekey.test.ts` — G1 the members on four backends · G2 plan = execution (counts; four unreadable-file shapes refused by plan, arrive and leave with one code, nothing written) · G3 conflict writes nothing (a foreign target row, lost-lineage marks on either side) · G4 the counter law (no target mark, an erased target, the old name after leave, a mark-only source and the floor it raises outliving the target's next write, the erase step above a row that predates its mark, unreadable rows moved and found again) · G5 the agent copy (both backends; a File crash between rows resumed by the copies) · the agent kit (`backgroundAgentStoreContract`): a source or a target row that does not read refuses every step, neither scope changed by a byte; a scope that begins with the source's characters keeps its rows · G6 withdraw · G7 idempotence and self-moves (a local-owner-adopted root's alias) · G8 a writer let through (a row changed beside its mark is not the arrival; a source write before `withdraw` leaves the arrival in place) · G9 File: a crash at every write of each step, re-run · G10 the adoption leg (erased floor, the old name after a principal adoption, the arrived bit, an arrival before the bit) · G11 the readers as they stand (KL-3931-b / c) · G12 the input gate · G13 an equal-rules target is no arrival · G14 a withdrawn lineage is never handed out; the kits' new cases on both bundled backends (`test/backlog2151-session-policy-store-contract.test.ts`, `test/background-agent-store.test.ts`, `test/backlog969-team-name-retired.test.ts`).
350
+ - **Consumers.** @server (S-2711): the hard-breaking sentences above; the SQL twins pass the kits; the adoption legs and `policyKeyFor` export retire in the server release that takes this one; the refusal reading above. @cli: nothing to change in code; a local adoption reads the four narrowings. @test: the kits' re-key cells, KL-3931-a–e, the refusal reading. @client-core: none.
351
+
352
+ ### The checkpoint seat re-keys its own rows — `CheckpointStore.rekeyIdentity({ fromPrincipal, toPrincipal, scopes, mode })`, a one-step seat (`plan` / `leave`) whose one row law is `rekeyCheckpointRow`: an approval parked under one identity resumes under the identity it was moved to (#3964, #3945 S2a; ruled C-R1315 with annotations 1–2, C-R1314 annotations 1–5; behavior change: a new required store member, no existing face changes; narrowing: none; widening: none; hard-breaking: three sentences, open to veto @server; closed sets: `OneStepRekeyMode` (2, a subset of `RekeyMode`), new; exports: +7 — `ONE_STEP_REKEY_MODES`, `readIdentityRekeyInput`, `rekeyCheckpointRow`, `CHECKPOINT_IDENTITY_MEMBERS`, types `ScopeRekeyPair`, `IdentityRekeyInput`, `CheckpointRekeyVerdict`; wire: one required interface member)
353
+
354
+ - **Hard-breaking — one, three sentences (open to veto @server; S-2711).** *What changed:* `CheckpointStore` gains the REQUIRED member `rekeyIdentity(input)`, with two overloads that bind the `mode` to its answer arm (`plan` → `RekeyPlan`, `leave` → `RekeyDone`): a class implementing the interface (it must copy the overloads) and an object literal typed as `CheckpointStore` fail to compile after the upgrade until they carry it; the run's store seat does not read it, so a JavaScript wrapper that forwards members by duck typing keeps running. *Who is affected:* @server `SqlCheckpointStore` (`src/stores-sql/checkpoint-store-sql.ts:654`) and any checkpoint store a deployment wrote; core's example `PgCheckpointStore` (`src/examples/adapters/pg-adapter.ts`) and core's own test doubles carry it in this release; no other implementer on the eight neighbour `origin/main`s. *What to do (SQL):* implement `plan` / `leave` with the exported `rekeyCheckpointRow` as the one judge — pre-screen candidates with no locking clause (a superset of the six cells, spelled from `CHECKPOINT_IDENTITY_MEMBERS`, or the whole table: never `FOR UPDATE` over the table), then lock each candidate by its primary key, read it the way `get` reads it (the columns laid over the payload), hand that row to the function and write `UPDATE checkpoint SET checkpoint = ?, scope = ?, rev = ? WHERE token = ? AND rev = ?` (the `rev` read under the lock) — the payload is the row the function gave, except that each of the seven members `get` lays over it from columns (`status`, `resolvedOutcome`, `reopenReason`, `rev`, `executionOutcome`, `executionAtMs`, `state.pendingSteerQueue`) is written back as the stored payload already held it (present as it was, absent when absent: never the overlaid reading, never dropping the payload's one copy where a column is NULL), and the columns come from `checkpointIndexFacts` of the row written; in the same server release retire the adoption arc's `checkpoint#checkpoint_blob` (`src/adoption/plan.ts:368`) and `checkpoint#scope` (`:381`) legs, add the checkpoint seat's `plan` to the preview (`conflicting > 0` ⇒ refuse), call `leave` after the deployment commit and before the two-step seats' `leave`, and run the late-row sweep as ① → your own legs → ③ → ④ without the preview's refusal; run the kit's new re-key cases (`checkpointStoreContract`) on the SQL twin.
355
+ - **Rule.** A checkpoint row's key is its token and its identity is cells on the row — six, on two axes (`CHECKPOINT_IDENTITY_MEMBERS`): the principal axis `principal` and each `state.inheritedGate.ancestorRules[].principal`; the scope axis `scope`, `state.legScope`, `durableApproval.scope` and a recorded `isolationScope`. So the seat is ONE-STEP: within the row's own write serialization, on the row as it stands there, one in-place rewrite that changes only the cells holding a source value the mapping changes. A row is selected iff some cell does; a recorded partition is then recorded again by the mint's rule (only where it differs from the principal), an absent one stays absent. The row judge decides only whether the row is touched (`lacking` ⇒ left as it is, counted by `plan` as `conflicting`); the stamps follow their own judge (`judgeCheckpointRequirements` of the row before the write: `ok` on a v10 row ⇒ re-stamped by the mint's stamp; stamps that do not match ⇒ left as they are; a row below v10 has none, gains none and keeps its version — stamping it would read it by the v10 rules and turn a refused v0 / v7 row into an `ok` one). The write is a new generation: `rev` = the handed row's + 1. Every other member travels as it stands at the write.
356
+ - **Before.** The server's adoption moved a parked row by rewriting its `scope` column and blob from outside core; the row's content digest covers `scope`, so after a claim every v10 approval card the old identity had parked resumed `checkpoint.invalid_outcome` / `requirements_damaged` under every principal configuration (#3945; reproduced as the control in G2). Re-stamping alone would have stopped at `resume.principal_mismatch` (the row's `principal` unmoved), and moving the principal without `state.legScope` would have filed the resumed leg's next card under the old scope.
357
+ - **Now.** `rekeyIdentity({ fromPrincipal, toPrincipal, scopes: [{ fromScope, toScope }…], mode: "plan" | "leave" })` on all three in-tree stores; the input is read by `readIdentityRekeyInput` before anything else (a source scope by the background-agent seat's reading — a non-empty string, so a resource slice's scope is moved too; a target scope by the name rule, since it is written into `durableApproval.scope`; no source or target twice, no chains). InMemory: one synchronous stretch, all or nothing. File: the scan picks the rows holding a source value, then each is judged and written under its token's lock on the live row (a steer, a won decision or an execution record that landed between the scan and the lock is carried into the write; `rev` lands one above the live value), one `put` ledger event per row — no new event kind, so an older binary replays the ledger; a crash between rows is completed by running `leave` again. Pg example: the whole table read, the rows that hold a source value read again by key and written by a guarded `UPDATE` on the same `rev` column (as stored: a row `put` with a payload `rev` holds NULL there, read as 0, the resolve CAS's reading) and the same payload (bounded retry), the column-held members written back as the payload held them. The answers are the re-key arms (`plan` = `{ rows, conflicting }`, `leave` = `{ kind: "done", mode: "leave", rows }`); tokens are unique, so there is no `conflict` arm.
358
+ - **Step order (@server).** `@contract identity_rekey.step_order`: `plan` on every seat → `arrive` on the two-step seats → the caller's commit → `leave` on the checkpoint seat → `leave` on the two-step seats; `withdraw` only before the commit and never on the checkpoint seat; each seat takes the pairs on its own axes from the one mapping (the checkpoint seat: the principal pair and every scope pair). After the commit nothing refuses: a newer engine's row stays and the next `plan` counts it. The session owner and placement scope (`session_meta#owner` / `#placement_scope`) stay in the server's deploy transaction for this release (KL-3945-d, #3962 in 7.69.0).
359
+ - **Not changed.** The File data-root adoption: the checkpoint and background-agent rows both stay (the arc has no scope pairs to hand the seat; KL-3931-e). The run's store seat (`resolveCheckpointStore` reads `execution` and `reopen` only). Every existing verb, its CAS and its answers; `checkpointIndexFacts` (only `scope` is moved, and only by this member).
360
+ - **Known limits.** KL-3945-a (a resume in flight across a broken freeze settles under the old scope: its execution record misses) · KL-3945-b (cards the old server leg already broke stay dead; the first sweep after the upgrade moves them to the new identity's inbox) · KL-3945-c (a newer engine's card refuses the whole claim at the preview; after a rollback until the next upgrade) · KL-3945-d (session owner stays with the server, #3962) · KL-3945-e (the server's sweep reads the whole table on every POST) · KL-3945-f (a late policy row that collides while the late card pointing at it moves). KL-3931-b narrowed (only the rows ③ does not move), KL-3931-c (the parked children whose ancestor pointer moved join the readers that follow the identity), KL-3931-e rewritten.
361
+ - **Rules.** Retired with the server's half: the two legs that wrote core's checkpoint table from outside (payload and scope column). Added: the seat member with its input reading and the one row law (`rev` inside it, so "one above the live value" is the function's, not each backend's), the one-step position in the step order, and the input's chain refusal (needed only because the background-agent seat moves one pair per call; a candidate for retirement with #3962's one move object). Reused, not added: the step set (a subset), the answer composition, the source scope reading (`agentScopeOf`), the row judge for `lacking`, the stamp judge and the mint's stamp. This ticket alone: 0 to +1; with #3951: −4 to −2.
362
+ - **Pins.** `test/backlog3945-checkpoint-rekey.test.ts` — the kit's re-key cells on both in-tree stores (G1 the member, G9 the generation and a stale CAS, G14 the index facts and both listings, G14b the pre-screen over a non-name resource scope and a partition-only row, G16 a steer before and after, a race with `resolve`) · G2 a real v10 approval parked as alice resumes as bob, inherits bob, refuses alice `principal_mismatch`; the old leg's form refuses `requirements_damaged` (memory and File) · G3 the resumed leg's next card is bob's (scope, legScope, opt-in) · G4 / G5 the ancestor pointer read by the resumed child's reader (a deny added under the new key binds; an erased target lineage is announced once and the snapshot held) · G6 the two judges (re-stamp; v<10 unstamped at its version; broken stamps left; a hand-moved row restored to its digest; a skill section this release cannot read refused by that arm, not as damaged stamps; a newer row left and counted; refused v0 / v7 rows stay refused) · G7 plan = execution · G8 idempotence and the selection (an identity pair, an identity principal pair beside a moving scope pair, a row whose partition is its own principal) · G10 File: a crash after each row's event, re-run · G11 the partition by the resume (absent and kept, recorded and moved, both axes) · G12 the input gate before any read · G13 the census: four real mints (root approval, synchronous child, resource slice, plan review) write the identity only on the six paths and every path is written; the exclusion table holds every member that may carry an equal string, each with its reason, and the re-key leaves them as they stood · G15 the ancestor layers one by one · G16b File: steer → resolve (won) → leave in one synchronous stretch keeps the decision, the winner and the steer, `rev` = 2, refuses a second resolve, and the replay agrees · Pg the payload keeps the column-held members; a row `put` with a payload `rev` re-files as the memory store does; a steer or a resolve that lands between the read and the write is kept (the payload guard, the `rev` guard) · the law copies each container on the way to a cell, so a container a row holds at two places (memory, structured-clone) changes only at the identity path; the exclusion table names the execution record (`executionOutcome`: who settled it is history).
363
+ - **Consumers.** @server (S-2711): the hard-breaking sentences above; the adoption arc's preview, ③ and sweep; the SQL twin passes the kit. @test: #3945 closes when the server's arc calls this member — re-test P3 on its three principal configurations (the new identity and an absent principal complete; the old one answers `resume.principal_mismatch`), the next card's scope, a card whose skill section this release cannot read, KL-3945-a–f. @cli: one key in the wire consumption list (`CheckpointStore.rekeyIdentity`), nothing to change in code. @client-core: none.
364
+
365
+ ### `permission.read_deny_unapplied` told once per session per read-deny table — superseded in this same version by #4695: the code is retired, the fact is on the call's record (#2146; test pface1 on cli 1.0.165, embedded engine and external server: twenty `node -e` / `sh -c` / `eval` calls in a bypass session were twenty notices)
366
+
367
+ - **What ships.** #2146 turned the notice from once per opaque call into once per session per table; #4695, in this same version, retires the notice itself (its entry above), so the once-per-session form ships in no release. Against 7.68.x: one `permission.read_deny_unapplied` per such call, also with no rule of the person's (the built-in tiers alone make a table) — twenty opaque calls ⇒ twenty notices in the run (real Runner, bypass, no rule, four spellings × 5); from this version, none, and each such call's record (`tool_end.gate.disposition.released.readUnestablished`) names the table its reads went past.
368
+ - **Not changed.** Under `bypassPermissions` a shell call whose reads the read station cannot establish (`node -e …`, `sh -c …`, `eval …`, `python3 -c …`, `find … | xargs cat`) is released past the read-deny table in force (the built-in tiers, plus any rule the person wrote): no row of the table was applied to what it reads (C-R124 (a); the ruled residual, KL-r2-e). On the record, `node -e` / `sh -c` / `eval` / `python3 -c` carry `askClass: "probe"` with `mandate: "probe_mandate"`; `find … | xargs cat` carries `askClass: "ordinary"` and no mandate, told from the other ordinary releases (`touch`, `rm`) by `readUnestablished` (#4695 pin R8).
369
+ - **Consumers.** @test: the C-R124 criteria cell "two such calls ⇒ two notices" (7.34.0) reads, from this version, "zero notices, both calls released, each record carrying `readUnestablished`". @cli @server @client-core: #4695's entry above.
370
+ - **Pins.** Retired with the notice (#4695): `test/backlog2146-read-deny-notice-once.test.ts` and `test/backlog2146-read-deny-notice-reach.test.ts` (its wire cell W1 lives on as #4695's R8); `test/backlog-cr124-bypass-read-deny-disclosure.test.ts` reads the record.
371
+
372
+ ### A write tool's "File has not been read yet" refusal no longer ends with "if the Read tool refuses this file, overwrite or convert it with bash" — it reads nothing of the target, and what to do about a file Read refuses is Read's own refusal's to say (#4393; narrowing of a hint, no refusal changes)
373
+
374
+ - **Rule.** A refusal names a way out only when it is true, and only the party that knows says it. Which calls Edit, Write and NotebookEdit refuse is unchanged; what changed is the parenthetical that closed the sentence, and what the refusal looks at to build it: nothing of the target.
375
+ - **Before.** When no sharper hint applied (oversize, partial view) the refusal ended with `(If the Read tool refuses this file (binary/unknown encoding), overwrite or convert it with bash instead — e.g. rm + rewrite, or iconv.)` — also for an ordinary text file a Read takes. A model could follow it, delete and rewrite the file in the shell, and go around the check that had just refused it and over a change a person made in their editor. A file over the Read tool's byte cap got a sentence of its own (read it in slices, or `sed -n` / `grep` in a shell), chosen by a stat of the file.
376
+ - **Now.** The refusal's inputs are the read record's partial-view flag and the path's NAME; it opens nothing, reads nothing and stats nothing of the target, so its words cannot depend on the file's content, size, existence, or the permissions on it. An image or a PDF name gets a sentence of its own ("the Read tool opens an image as a picture — or refuses a file named like one that is not — and records no read of it … replace the whole file with a shell command"; the PDF twin), said from the name alone whatever the file holds. A target the Read tool handed a page and recorded as a partial view keeps the pagination route (it is a flag in the read record; without it "Read it first" would be a fixpoint). Every other file gets the bare "Read it first". A file read and then changed keeps its stale sentence ("Read it again"), which never carried the hint.
377
+ - **The way out of a file Read refuses is Read's own.** Every kind of file the Read tool refuses names one in its refusal (a binary body or format, BOM-less UTF-16, a cut UTF-16 body: the shell and `iconv`; a notebook it cannot project: `jq`; a body past the byte cap or the sliced-read bound: the slice or the shell) or records a read the write is then let through on (a corrupt notebook's raw text, a paged text, an explicit slice that fits). Three refusals had none and now do: a file named like an image or a PDF whose content is not one (rename it with a shell command and read it under the new name), and a binary-extension file past the byte cap ("inspect or convert it with bash"). The two-step road, write refused then Read, is pinned for 25 kinds of file: the second step is the content or a refusal with a way out; for a big text never read it is measured to the end (write refused bare → default Read refused with the slice route in its sentence → a slice → the write goes through; not a fixpoint).
378
+ - **Not changed.** Whether a call is refused; the partial-view arm and its sentence; what the Read tool returns for any file, but the three sentences above.
379
+ - **Narrowing (open to veto @server @cli @test).** (1) A never-read file Read refuses (binary, an unsupported encoding, a notebook over its limit) used to end its write refusal with the shell half and now ends it bare; the shell is named by Read's refusal one step later. A reader that matched `rm` / `iconv` on a write refusal reads the bare sentence. (2) When a big file is unread, the write tool no longer gives the slice hint: the model's next step is a default Read, whose refusal gives the slice route — one more Read round. The size is not an input of any write refusal any more, which also means a file the Read tool is held back from (a read-deny row, a credential name) no longer leaks one size bit through the slice hint. (3) An oversize image or PDF name gets its own sentence instead of the slice route (slices do not apply to either).
380
+ - **Rules.** Retired: the caller-supplied fallback (`notReadRefusalText` drops its `fallbackHint` and now takes only `(toolName, key, violation)`, synchronous, no environment), the shell-half constant, the oversize arm (`OVERSIZE_READ_ESCAPE_HINT`) and its stat, and the "leaves no trace the renderer can stat" shape — a refusal that tried to find the file's kind by reading it (twice: from the bytes, then from the Read tool's own judgments) passed none of the gates the Read tool is held to, leaked a content bit through its sentence and hung where a content read hangs. Added: the image / PDF name route's two sentences; `isPdfPath` beside `imageMimeForRead`, which the Read tool and the refusal both ask.
381
+ - **Pins.** `test/backlog4393-read-refused-hint.test.ts` — the bare sentence for ordinary text, an empty file, a 12 000-line text and notebooks; the sentence a function of the name alone (six bodies, a directory and a missing path, a file one byte over the cap and one under it); not one open or read of the target on any route of the environment, only the write tool's own path lookups, 0 bytes for a 60 MB notebook; paths the read-deny table, a credential name, the read roots and the approval gate (an ask rule with no approver, an opaque policy, a delegated child under either) hold back are not opened; content reads that never answer cost the refusal nothing (direct, real run, bypassPermissions); the two-step road for 25 kinds and the big-text road to the end for Edit and Write; the partial-view arm. Re-pinned for the bare reading, each noting that the slice route is Read's refusal's to give, each with the road cell: `test/ang6-read-gate-escape-hint-alignment.test.ts`, `test/hands-fs.test.ts`, `test/e1-toolerror-isflag.test.ts`; `test/read-notebook-projection.test.ts` B13 (the non-notebook half pinned the retired slice hint; it now pins the bare refusal and Read's own too-large refusal); `test/encoding-parity.test.ts` follows the sentence; `test/tool-name-literal-gate.test.ts` banks the `src/tools/fs` bucket 85 → 83 by measurement.
382
+ - **Consumers.** @server @cli: nothing to do; the sentence the model reads on a never-read file is shorter and says nothing about a shell rewrite or a slice. A model that used to get the slice route from the write refusal gets it from the Read refusal that its next step meets.
383
+
384
+ ### `compareTaskIds` is a total order that no longer depends on the host's locale — non-numeric ids list in UTF-16 code unit order, and a numeric id of any length orders by its decimal value (#4411; behavior change: the order of non-numeric ids that differ in case, accent, punctuation or beyond ASCII, of two canonically equivalent ids, and of numeric ids past 2^53 or too large for a double; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none added, none removed; wire: none (the signature and the root export are unchanged)) (@server)
385
+
386
+ - **Before.** The `list` order's tie-break and its non-numeric ids went through `localeCompare`, and a numeric id through `parseInt`. So the order moved with the host's locale (`ä` before `z` under German, after it under Swedish), answered 0 for two different ids the collation treats as one (`é` precomposed and decomposed, a zero-width space inside an id), put `09007199254740993` before `9007199254740992` and `100000000000000000000` before `99999999999999999999` (past 2^53 the low digits are lost, the tie goes to the text), and read an id too large for a double (about 1.8 × 10^308: some ids of 309 digits and every longer one) as Infinity, so as not numeric. The comment called the comparator total; it was not.
387
+ - **Now.** One order over every string, the same on every host: (1) an id of ASCII digits only comes before any other; (2) numeric ids ascend by decimal value read from the digits — leading zeros dropped, shorter first, equal lengths by code unit — exact at any length; (3) ids of one value (`7`, `007`) by their whole text, more zeros first; (4) every other id by UTF-16 code unit order of the whole string (what `<` on two strings gives). It answers 0 only for the same string. Numeric-before-non-numeric, ascending by value, and one value told apart by text are the order of 7.68.0, written down.
388
+ - **What moves, and where it is read.** `list()` of the bundled memory and file stores, the `TaskList` tool's lines and `details.tasks`, and any store twin that sorts with the root export. Engine-minted ids are `String(counter)` from 1 (`allocateId`, both stores), so a list the engine alone wrote reads the same; only an id a host or an outside writer chose can move: `a` listed before `B` now lists after it (`B` is U+0042, `a` U+0061), `é` after `z`, `_x` after `Z`; two ids that differed only by normalization or an ignorable character are two entries in one order whichever was written first (their order was the write order); numeric ids that a double cannot tell apart now order by value; a numeric id too large for a double is numeric (it listed among the non-numeric ids). Code unit order equals code point order except for a character above U+FFFF against one in U+E000–U+FFFF.
389
+ - **Not changed.** The signature, the root export, `taskListStoreContract`'s order cell (its expected list holds lowercase ASCII letters and digits, which read the same), the order of every id the engine mints.
390
+ - **Rules.** One comparator, one reading of "numeric" (`/^\d+$/`, ASCII digits only), no use of the host's collation and no number round trip in the order. Retired: the `localeCompare` reading and the `parseInt` reading in `compareTaskIds`. Added: none.
391
+ - **Pins.** `test/backlog4411-task-id-order-is-total.test.ts` — L the code unit order while `String.prototype.localeCompare` answers as the Swedish, German and Turkish collators in turn (a pure-function swap); C each collation-equal pair told apart and both stores listing them in one order; N the 2^53 edge, twenty digits, 310 and 400 digits, and 53 600 pairs of seeded random ids against a BigInt oracle; T antisymmetry, transitivity and sort-from-any-arrangement over every string of up to three atoms and over a big-number set; P the placement table; S both bundled stores (a reopened file store too) and the `TaskList` tool.
392
+ - **Consumers.** @server (#4411): a store twin that sorts with `compareTaskIds` follows; one that orders in the database needs the same four rules (a binary collation on the text, numeric ids by length then text).
393
+
394
+ ### A frame a run's queue still holds when the run ends, and one a full steer backlog displaces or refuses mid-run, goes to the session's park seat — with a durable session box it reaches the session's next run in any process, exactly once, under a named tier (#4057; user-visible: a completion notice crosses processes on a box deployment, and a frame refused or displaced at the cap is no longer read twice there; behavior change: the tier of one parked frame and one more model request for a `later` frame on a box; widening)
395
+
396
+ - **Before.** (1) The harness's end-of-run sweep handed the frames still queued when a run ended (a background agent's completion notice that arrived in the batch its parent parked on; a frame a human halt held) to `pendingSessionNotifications.pend` in the parking process, under no tier. The park seat `routeOrParkNotification` was skipped, so a deployment that binds the session's durable box (`RunnerDeps.mailboxStore`) and declares `sessionBoxEngineFrames: true` still lost the frame when the parent resumed in another process (the resumed conversation read 0 notices). The same completion parked after the leg was over took the seat's box and the producer's tier `next`; the swept one took neither and ranked as `later`: two readings of one frame's park. (2) The frame a full steer backlog (cap 50) displaces mid-run took the same sink, and a frame the cap refuses took the lane's own park. On a box deployment the run's own box drain then returned the record that park had written, and the lane's queue key (kept after delivery, to fold duplicates) folded it as still pending although the drain had already booked it delivered: the run's transcript got no receipt for it, the drain's acknowledged prefix stalled behind it, the records after it stayed unconfirmed, and the session's next run read frames a second time. Measured on the base tree (the collection leg's probe: a 51st event refused at the cap, box deployment): 2 records left unconfirmed after run 1, and the next run read one frame 2 times; on this branch 0 left and 1 time.
397
+ - **Now.** The sweep and the displacement park each frame at the seat (`parkAtSeat`, the box-or-process tail `routeOrParkNotification` already ended in, now an exported function of its own) and not through the arrival routing before it: that routing folds a key the session has already taken and offers a frame to the session's live lanes, and a frame the harness's consumption sink booked at the drain (the transcript append comes after) or the turn-open redelivery booked on the run's own ledger, whose delivery never completed, is exactly what the sweep keeps. The seat judges the address's own occupant first, as the arrival routing does (a frame addressed to another occupant is refused, receipt `refused`). Where the deployment binds the box and declares the floor, the record reaches the session's next run in any process, exactly once; otherwise it parks in this process as before. Every parked frame names a tier, in process and in the box alike: the tier it was queued with (the harness's payload sidecar carries it beside the payload; internal `engineTier`, `onUndrainedEngineNotes(payloads, tiers)`), and `later` for one queued with none or with a value outside the set (the rank an absent tier had at the drain); the seat requires the tier.
398
+ - **Hand-away (the refusal and displacement road).** The lane that gives a frame away (a cap refusal, a displacement, the sweep, the idle park) says so once (`NotificationLaneBindings.handOff`, one function for all four): the route entry refuses the key as before; the producer entry gives the key's claim up when the session's box holds the frame, once per hand-away, so the record the run's own box drain returns is a new arrival and not a fold, and a retry that arrives while that returned copy is queued (or after it was delivered) still folds; and a delivery the drain had already booked for the frame is given back (`settleUndeliveredFrame`: awaiting becomes owed again, the way a carrier that committed without its frame is), so the record is handed over again at the next boundary — at most one re-offer per boundary, the box's order law unchanged; a lane that stays full to the end leaves the record unconfirmed in the box and the next run reads it once. The drain's acknowledged-prefix rule (`deriveAckPrefix`) is untouched, and `inject` stays fire-and-forget (the drain is not made outcome-aware). A producer's retry of a frame handed to the in-process store still folds (#744), and so does a duplicate of a frame still on its way.
399
+ - **Widening (@server).** With a box and the floor on, a parent resumed in another replica now hears the completion of an agent that finished in the batch it parked on (before: 0, KL-1097-a ②); a frame displaced or refused at the cap on a box deployment is read once by the next run (before: twice). With no box, or the floor off, nothing changes for the sweep and the limit stays (rewritten).
400
+ - **Behavior change (open to veto @server @cli @client-core @test).** A swept or displaced frame redelivered at the session's next run now carries `priority` on its `task_notification` event — its own tier, `next` or `later` (before: the member was absent) — and ranks by it at that run's turn-open (before: as `later`). `priority` is optional on the event, so a consumer that tolerates the member reads nothing new; one that keyed on its absence for redelivered frames reads the producer's tier. Readers of the key on each repository's origin/main (read, not run): @server forwards it only when present — `src/http/resume-legs.ts:2643` and `:2899`, `src/http/routes/tasks.ts:1006`, `src/runs.ts:1428` (`opts?.priority !== undefined ? { priority } : {}`), a presence test with no decision hung on it, so the frame now carries the key where it had none. @cli is the one reader that decides on it: absence reads as "not carried" and the frame is not stamped, so the shell queue ranks it by its own default `later` (`src/sema/taskNotificationPriority.ts:125-146`), an absent key also clears the task's earlier tier (`:178-180`); with the key present the frame is stamped (`next` at the shell queue: `src/sema/engineTaskNotification.ts:96`, through `queuePriorityForTask`, `src/sema/upstreamBridge.ts:3320` is the one place the key is observed; `later`: the rank it already had) — one rank for one frame on both roads. @client-core: no reader of the event's `priority` found (its `normalizeTaskNotification` carries none; the `priority: 'later'` it writes at `src/notifications.ts:693` / `:848` is its own queue entries), so nothing there changes.
401
+ - **One more model request for a `later` frame on a box (KL-4057-a, measured).** A `later` frame in the session's box is delivered by the box drain at the run's closing seat, after the request that reads the `next` frames; the in-process park hands every tier over at the turn-open. So the session's next run reads a swept `next` + `later` pair in 2 model requests on a box deployment (the `later` one in the second) and in 1 without a box (before this change a box deployment parked swept frames in process: 1). Each frame is read once either way; the second request is the box drain's existing reading of the `later` tier.
402
+ - **Not changed.** The wire members and the engine-frame codec (`ENGINE_FRAME_CODEC_VERSION`); the ancestor uplink of a delegated terminal (the sweep never sent one); the skip of a frame whose record the box still holds; the in-process park of a frame the deployment's box does not take; the two `pend` calls of the turn-open redelivery's failed hand-over (`src/core/runner/run-identity-wiring.ts:393`, `:399`: a frame taken from the store whose hand-over faulted is pended again in process, as before); a frame that arrives in a turn-open redelivery keeps the tier it was parked with.
403
+ - **Rules.** Sites that decide box-or-process for a frame recovered from a run's queue 2 → 1: the sink's own `pend` is gone and the sink reaches the seat tail; one rule added (the producer entry gives a handed-away key up when the box's copy returns: two facts, `handedOff` and the box holding the key, no per-caller case); the seat's tier is required, so the two backends read one tier for every parked frame.
404
+ - **Exports.** None added or removed (root, wire list; `wire-changes` against stage-7680: 0 / 0 / 0, breaking 0). One type the root reaches gained a method, `SystemInjectionQueue.forget(dedupKey)` (additive, non-breaking per the manifest). Internal: `parkAtSeat` (module export of `task-notification.ts`, not a root export; tier now a required parameter); `PendingSessionNotifications.holdsDurably`; `settleUndeliveredFrame` (`frame-settlement.ts`); `NotificationLaneBindings.handOff`; `createLiveNotificationLane`'s `parkedDurably` seat parameter; `taskNotificationNoteOptions(payload, priority?)`; the harness's `engineTier` option and `onUndrainedEngineNotes(payloads, tiers)`. `routeOrParkNotification`'s signature is unchanged.
405
+ - **Pins.** `test/backlog1097-bg-subagents-park.test.ts` B1 (box, another process: 1 notice; baseline 0) · B2 (box, same process: 1) · B3 / B4 (swept and idle-parked completion carry one tier, in process / in the box records) · K2 (no box: 0, the recorded limit); `test/backlog4057-sweep-hands-frames-to-the-park-seat.test.ts` H8 (a real run that ends by the loop's own exit with a frame let in after the last drainable-count read, on a box deployment: the box carries it under `next`, nothing parks in process, a second Runner reads it once) and H1 – H7 (handed away and not offered back to the run; the tier; a tier outside the set; the box-backed skip; a frame the consumption sink already booked as taken; a frame the turn-open ledger already booked; the box variant; in each the next run has the frame in front of the model exactly once in every request) · H9 (a frame a full backlog displaces: 50 events + a completion, box deployment: every frame once in the next run, 0 records unconfirmed after run 1) · H10 (a frame the cap refuses: 51 events) · H11 (an address with another occupant is refused at the seat) · H12 (no tier: `later`, both backends) · H13 (the harness releases a frame's payload and tier together, one function) · H14 (control: a duplicate of a frame still on its way folds) · H15 (the lane's claim on a key it handed away: given up when the box's copy returns, not before; an in-process-held key keeps folding) · H16 (the claim is given up once per hand-away: a retry while the returned copy is queued, or after it was delivered, folds; a second hand-away arms it again); `test/backlog4057-bounced-record-owed-again.test.ts` D1 – D4 (the drain's own suite world: a give-back after the drain booked delivery; a give-back that comes late, after a settlement beat; a lane that refuses every offer to the end; a peer message behind a bounced engine frame).
406
+ - **Consumers.** @server: a replica that resumes a parked parent reads the completion of an agent that finished in its parking batch, on a box deployment; a displaced or refused frame is read once. @cli @client-core: a redelivered completion's `task_notification` event may carry `priority: "next"` or `"later"`. @test: the swept frame's rank, its tier, and the second model request of a `later` frame on a box.
407
+
408
+ ### The sentence under a parked background agent's host poll is read off its park card's gate — an agent that yielded with its owner no longer reads "waiting for an approval decision", and a card the poll cannot read says so (#4066; behavior change: one sentence of the host poll; narrowing for a poll given no seat)
409
+
410
+ - **Before.** `TaskRegistry.pollTask` (live handle) and `serveDurableAgentRowLane` (durable fallback) ended every parked agent's answer with `The agent is durably suspended, waiting for an approval decision. It resumes when the pending approval is decided (durable approval inbox), or lands failed if the approval expires.`, read from nothing. For a child that had yielded with its approval-parked parent, the line above read `yielded … continues when its owner runs again`: the answer contradicted itself and told a reader to look for an approval that was not there.
411
+ - **Now.** One function (`agentParkSentence`, `src/core/agent-state.ts`) reads the card's gate from the table the state line's opening word comes from. Approval (`human`, `irreversible_ask`): the sentence above, byte for byte. Yield (`resource_limit` / `preempt`): `The agent yielded along with its owner and continues when its owner runs again. No approval decision is pending for it.` Review (`needs_review`, `plan_review`): `The agent is durably suspended, waiting for a review decision.` `task_done`: `The agent is durably suspended, waiting for a background task to complete.` Any other resource limit: `The agent is durably suspended: it paused at a resource limit (<reason>).` A card the poll cannot read (no seat given, no card, an unreadable one, a serving layer that passes no state, a pending card that names no gate): `What this agent is waiting on cannot be read here; it may be waiting for an approval decision.` The per-gate sentences are spoken only while the card is pending; a card that was decided or has expired but whose row is not settled yet reads `What this agent waited on is no longer pending (the state line says how it ended); its row has not been settled yet.` whether or not it names a gate (the state line's own park clause already promised no continuation for such a card, so the two lines read one card the same way).
412
+ - **Old → new, for a reader that matches the words (open to veto @server @cli @client-core @test).** A poll that is given no `checkpointSeat` reads the cannot-read sentence where it read the approval sentence: that is how the server's task-handle read leg polls today (`src/runs.ts:96` / `:99` at its origin/main, read; passing the seat lets the poll read the card, a separate request). The readers of this sentence are host surfaces; the model-facing poll tool was retired in #1608. A parked agent whose card names a yield, a review, a task, or another resource limit no longer reads the approval sentence.
413
+ - **Not changed.** The `state:` line; `details` (`agentState`, `status`); the answer for every non-parked status; `TaskPollOptions` and the root exports.
414
+ - **Rules.** Literal sentences 2 → 0 (one function over the card's gate, a table over the whole gate union, so a new gate kind reds `tsc` there); the state line and the sentence now read one card the same way.
415
+ - **Exports.** None added or removed (`agentParkSentence` is not a root export).
416
+ - **Pins.** `test/backlog1097-bg-subagents-park.test.ts` P1 (a real yielded child, polled with the seat: yielded, no approval) · P2 (the same poll with no seat: cannot-read) · P3 (the durable fallback, both) · P4 (a yielded child whose card expired: no promise of continuation); `test/backlog4066-park-sentence-by-gate.test.ts` G1 – G6 (every gate kind, a card that cannot be read, the fallback, no implementation word, a card no longer pending with or without a gate, the durable fallback of an expired card with no gate); `test/agent-park-jian1-park-mint.test.ts` (a real approval park: the approval sentence with the seat, cannot-read without).
417
+
418
+ ### A leg with nothing to act through is no longer told to act through tools: the system prompt follows the tool face the valve left (#4325 slice 1; behavior change; divergence from the reference, open to veto — C-R1689; closed set `PromptFactName` 16 → 18; wire: two new keys in `selectors.facts`; @server @cli @client-core @test)
419
+
420
+ - **Before.** A leg whose tool face held no tool (the server's `chat` scenario: no environment, `excludeAllTools`, `promptForm: "minimal"`) composed the same system prompt as a leg with tools: the role base said "acts through tools" and "do it with a tool now", the Harness head spoke of tool results, the execution-environment section of commands and `AskUserQuestion`, the memory section offered "file tools". The model then tried a tool it was never given: the stream carried a `tool_start` / `tool_end isError:true` pair (`Tool Bash not found.`).
421
+ - **Rule.** After the valve, prepare reads what it left the model for its work in one word, `ToolFaceClass` (`toolFaceClassOf`), from the leg's own channel — the catalog's protocol rows of the leg's own kinds that carry a `verdict` (new optional catalog column `ToolCatalogEntry.verdict`: `"result"` on `StructuredOutput`, `DeclareDone`, `ObserverReport`, which hand the leg's result out; `"blocked"` on `ReportBlocked`, which only reports that the leg cannot finish): `acting` (any other tool, or a face a tool can still join within the leg: something deferred — the search tool joins to load it — or a declared MCP server the valve can leave something of, which a re-dial could add); else `finishing` (a `"result"` tool is on the face); else `none` (no tool, or only the blocked report — its own card says when to call it). A caller's tool under one of those names on a leg not of that kind is the caller's tool. It is read off the roster, never off `excludeAllTools`, `promptForm` or the execution environment; `allowTools: []` reads as the switch does. The catalog sees two derived facts, `workToolsAbsent` (= `none`) and `actingToolsAbsent` (= `none` or `finishing`).
422
+ - **Now, on a `none` / `finishing` leg.** The role base is the answering base for every host role (`core/role.base#answer`: the turn cannot run commands, read or change files, browse or look anything up, and does not say or imply it is doing so in this turn; earlier turns' tool calls and results are the record of calls that really happened); the Harness head's reminder and context lines name no tool result (`#answer`, `#summarized-answer`, `#trimmed-answer`), and the untrusted-results line stays (earlier turns' results can be present); both hook lines, tool-result retention, the execution-environment section, action caution, autonomy, hermetic verification, search evidence, the sub-agent delivery notes and the classic shape's autonomy line are not composed; the reminder-mark declaration and the memory section read their answering variants (the mark stays out of anything the model writes or submits); the sub-agent consent notice keeps its first paragraph; the standard form's fable communicating text drops its two tool-call passages. A `finishing` leg adds one Harness line (`core/harness.head.finishing`: apart from the tool that hands in its result it has no tool to act with, and to use that tool as its description says — when to call is the card's: an observer's report is silent by default; it names no blocked report) and keeps the two tool-parameter lines. A task's own `systemPrompt` still replaces the role base. First request's system prompt (measured on the real Runner): the chat leg (no environment, a policy, minimal form) en 9,259 → 5,675 characters, zh-Hans 3,262 → 1,987, `tools` 0 → 0; the structured leg under the switch en 9,259 → 5,835, zh-Hans → 2,048 (`tools`: `StructuredOutput`); a delegated leg under the switch (`tools`: `ReportBlocked`, now `none`) 7,691 → 5,773; the standard form lean + fable 19,124 → 11,428, classic fable 9,650 → 5,650.
423
+ - **Not changed.** Every leg with an acting tool composes the prompt it composed before, byte for byte — every locale, both forms, with or without an environment or a policy, every host role and trait shape (`test/backlog4325-zero-tool-prompt.test.ts` I, 152 cells frozen before the change; the library byte matrix `prompt-golden-matrix` unchanged). The execution environment is still taken on a leg with nothing to act through (#4326, slice 2; KNOWN-LIMITS KL-4325-a).
424
+ - **Divergence (open to veto, C-R1689).** The reference (2.1.321, read from source) composes its whole prompt under `--tools ""` — the identity line "Use the instructions below and the tools available to you", `# Using your tools` with tool names, the environment, CLAUDE.md and git status alike. This engine leaves the tool sentences out, because a user sees the failed tool call they invite.
425
+ - **Wire / closed sets.** `PromptFactName` gains `workToolsAbsent`, `actingToolsAbsent` (16 → 18): `prompt.assembled.selectors.facts` and the `prompt.compose` event's `selectors.facts` carry two more keys, and an overlay's `when.facts` may name them (widening). The prompt identity's binding element moves once for every run (a new fact key), so the first leg of each session after the upgrade records a `code_change` epoch — the catalog digest moves in the same step. `PromptRuntimeFacts.toolFace?` (optional; absent reads as `acting`), typed by the new three-word closed set `ToolFaceClass` (`none` / `finishing` / `acting`; reached through that member, not exported by name). `ToolCatalogEntry.verdict?: "result" | "blocked"` (optional; written on the four protocol rows that are a leg's own channel). Root export: none added.
426
+ - **Narrowing (theoretical).** The constitution guard's entries grow by the new constitution texts: an overlay or a task role text that contains one of them verbatim is refused.
427
+ - **Locale review.** Seven new zh-Hans renderings of constitution or `securityBearing` messages were reviewed by a native reader (board post [14260]; recorded in `docs/locale-reviews/zh-Hans.json`, `gate:locale-review:rc` green; KL-4325-d closed). Two were changed by the review: the answering role base's heading and first sentence (`## 直接做事`, `直接把工作本身做出来` — "finish the work" read as "finish all of it in this reply", which the English does not say) and `summarized-answer`'s punctuation (now as its sibling variants have it).
428
+ - **Consumers.** @server: the `chat` scenario's first request shrinks (above); a test that pins its prompt bytes or `selectors.facts` key set re-pins; a host comparing the composed prompt against `reminderMarkDeclaration(mark)` reads the answering declaration on such a leg. @cli: the one-off tasks fallback (`excludeAllTools: true`) composes the answering prompt. @client-core: two more `selectors.facts` keys on `prompt.assembled`. @test: chat vs code first-request bytes / prompt characters / `tools` count change on the chat leg only.
429
+ - **Rules.** One fact, one mint (after the valve, before the assembly); two projections; the MCP dial's reach reading named (`mcpServerReached`) and read by the dial and the fact alike; a leg's protocol rows read once (`legProtocolRows`) by the valve, the protocol name list, the deny judge and the classifier (three copies of the same filter folded); which of them is a leg's verdict tool, and which of those hands a result out, is one catalog column (`verdict`), never a name, read by one reader, `legVerdicts(legs)` (each verdict tool of the leg's kinds with its word: the tool-face class reads the word; #4366's refused-verdict record and tool view, next section, read only which tools they are — #4366's own reader of the column and its own load check, written on its branch, were folded into these two at the merge), and the catalog refuses to load when a `verdict` sits on any row other than a leg's own channel (`verdictRowDefects`, the one load check). Catalog: one message, eight variants, thirteen admits; each answering variant pairs with the acting variant(s) it replaces through one conjunction read both ways (`actingToolsAbsent: false` on the acting side), so the pair is exclusive whatever its order and each message's first variant — what the public `catalogText(id)` returns when no variant is named — is the one it had (`core/role.base` → `code`, `core/harness.head.context` → `summarized`, `core/simple.communicating` → `fable`, the other four → `default`). No special case: nothing reads the switch, the form or the environment for this.
430
+ - **Pins.** `test/backlog4325-zero-tool-prompt.test.ts` (I: the 152-cell acting matrix; E: the full texts of the chat, structured, delegated and standard-form legs in both locales, the reverse residue cells, the host role text, the MCP reach cell, the readers on the wire; F: a face with only the blocked report — delegated under the switch, an empty allowlist, a real Agent spawn whose definition allows nothing — reads `none`, and a delegated structured leg keeping both reads `finishing`; the role-base selection table; the classifier table; V, with #4366: a face with only the delivery tool (`allowTools: []` + `outputSchema`, both locales) whose delivery the host's policy refuses reads the finishing prompt AND carries #4366's record with one notice — the two consumers of the one reader agree — beside an acting-face control (the record stands, acting prompt) and a caller's tool named `StructuredOutput` on a leg of no structured kind (acting, no record)).
431
+
432
+ ### The prompt-trait vocabulary, the bundle table and a per-model preset table follow the reference's current anchor: four words retired, one reference word not carried, the newest models' declarations accepted, and a gate that reds when the copy drifts (#4297 S1; hard-breaking: one closed set and one exported table; narrowing: one, below; open to veto @server @cli @client-core @sdk @settings-schema @web-admin)
433
+
434
+ - **Rule.** Which text a model receives is decided by its declared traits alone. Every name in `PROMPT_TRAITS` is a reference capability that gates text the engine carries, or a stand-in for text the reference gates on the model id; each bundle is the reference's member set less the names not carried; the vocabulary, the bundle table and the per-model preset rows are derived from the anchor corpus and checked by `gate:prompt-trait-anchor`.
435
+ - **Before.** `PROMPT_TRAITS` (14) and `PROMPT_TRAIT_BUNDLES` (3) were copied by hand from an older anchor. The reference's own declaration for Fable 5.2 / Mythos 5.2 (`fable_5_2_prompt_bundle`) was refused `config.prompt_trait_unknown`; `opus_5_5_prompt_bundle` expanded to a member the reference had replaced; twelve of the fourteen words gated no text, which only a comment said.
436
+ - **Now.** `PROMPT_TRAITS` (17): `lean_prompt`, `fable_5_mitigations`, `thrifty_sonic`, `turn_updates`, `silent_turn_reminder`, `amber_astrolabe`, `bison_cairn`, `larch_cistern`, `haiku_5_5_early_stopping_guidance`, `elapsed_time_reminder`, `timed_silent_turn_reminder`, `finishing_work_guidance`, `memory_guidance`, and the id stand-ins `fable_identity_5`, `fable_identity_5_1`, `fable_identity_5_2`, `llm_rnd_capabilities`. `PROMPT_TRAIT_BUNDLES` (4): `fable_5_1_prompt_bundle` = `turn_updates`, `silent_turn_reminder`; `opus_5_prompt_bundle` = `bison_cairn`, `larch_cistern`; `opus_5_5_prompt_bundle` = `silent_turn_reminder`; `fable_5_2_prompt_bundle` = `silent_turn_reminder`, `finishing_work_guidance`, `memory_guidance`, `timed_silent_turn_reminder`. `fable5Model()` takes its traits from the preset table (it gains `fable_identity_5`).
437
+ - **Hard-breaking.** (1) *What changed:* five names are not traits. Each, and why:
438
+ - `bash_output_audience_note` — retired (leaves `PROMPT_TRAITS`): in the reference it attaches a sentence after a shell result in an interactive session whose output runs to five lines or more, a carrier the engine does not have, and the sentence asserts a host terminal fact the engine cannot know;
439
+ - `thinking_display_updates` — retired (leaves `PROMPT_TRAITS`): in the reference it is an API beta header, not prompt text;
440
+ - `quizzical_shore` — retired (leaves `PROMPT_TRAITS`): in the reference it switches how a host displays thinking blocks, no model-visible text;
441
+ - `lucky_cerf` — retired (leaves `PROMPT_TRAITS`): the reference deleted it;
442
+ - `original_games_guidance` — not carried: the reference gates a vendor product limitation with it (the original-games text); left out by the owner's ruling (divergence `original-games-not-carried`).
443
+
444
+ *What you will see after upgrading*, where one of the four retired words is written (`original_games_guidance` was refused before this release too):
445
+ - *On a model* (`Model.promptTraits`, in a catalog entry or on a model handed to a task): the Runner still starts; every task on that model ends `failed` with `config.prompt_trait_unknown` before its first model call. The sentence names the first such word only — a model naming two shows the second once the first is gone. A side query on that model whose role preset names its role base by word (`promptRole`) throws the same code; one whose preset gives its own `systemPrompt` text, or names no role base, does not read the traits and answers as before.
446
+ - *In a mod's overlay* (`when.traits.allOf` / `noneOf` of a `prompt.compose` answer): that mod's whole answer is dropped, every run — its clean overlays go with it, not only the one naming the word — and the task runs on without them. `onError` receives two lines (one naming the overlay and the word, phase `hook`; one naming the mod, phase `prompt-constitution`). A host with no `onError` sees nothing: no trace event and nothing in the prompt manifest records the drop.
447
+ - *In a persisted center artifact* (its `requires.traits`, or an overlay inside it): the center source starts `unavailable` (`onError`: the artifact "is refused by this engine"); a new session runs with no center layer at all — the artifact's clean overlays are gone too; a session already pinned to that artifact, and a sub-agent spawned under it, fails with `prompt.snapshot_unavailable` and keeps failing — publishing a clean artifact after the upgrade does not repair it, because the pin names the old artifact (a new session takes the clean one). `applySnapshot` and `verifyPromptArtifact` answer `{ ok: false, code: "requires" }` (`"overlay"` when only an overlay names the word). A side query composes no center layer and is not affected.
448
+ - *In a tool's description variant* (`descriptionVariants[].traits`): every task that mounts the tool ends `failed` with `config.tool_face_invalid`, naming the tool, the variant's position and the word.
449
+
450
+ *Before you upgrade* (@server @cli @client-core, and any host that embeds the engine): take the four words out of model catalogs, mod overlays, tool description variants and every published and persisted center artifact, and publish them again; the exported `isPromptTraitName` judges a name at your own door first. A session pinned to a center artifact that names a word stays on it until it compacts, so it fails after the upgrade even when the clean artifact is published first — finish or restart such sessions. Words held in a database — a center artifact store, a model catalog loaded at run time — do not show up in a repository grep; query the store. *What to read instead:* the exported `PROMPT_TRAITS`. Measured on origin/main: the server, cli, client-core, settings-schema, web-admin and sdk repositories declare none of the five (what their stores hold was not read).
451
+
452
+ (2) *What changed:* `PROMPT_TRAIT_BUNDLES` changes shape — `fable_5_2_prompt_bundle` added, `fable_5_1_prompt_bundle` loses `bash_output_audience_note` and `thinking_display_updates`, `opus_5_5_prompt_bundle` loses `quizzical_shore`. *Who is hurt:* a consumer that pinned the key set or a member list (a model form, a drift pin); a model declaring one of these bundles now carries the smaller member set (no text read the removed members). *What to read instead:* the exported constant.
453
+ - **Narrowing (open to veto @server).** The model door refuses a model that holds two of `fable_identity_5`, `fable_identity_5_1`, `fable_identity_5_2` (`PROMPT_TRAIT_EXCLUSIVE_GROUPS`, bundle members counted): `config.prompt_trait_unknown`, naming both and the group — each is a different statement of which model it is, and the catalog would pick one by order. No model could declare these names before. The door's refusal sentence ends `a trait is one of this engine's prompt trait names (PROMPT_TRAITS), a bundle name (PROMPT_TRAIT_BUNDLES), or a deployment's own "x-<namespace>-<name>"` (it said "one of the reference's prompt capability names", false for a name the reference has and the engine does not carry).
454
+ - **Added (root exports).** `PROMPT_TRAIT_EXCLUSIVE_GROUPS`; `REFERENCE_MODEL_PROMPT_TRAITS` (27 rows: the reference registry's ids and its three registry-less older ids); `parseClaudeModelId`, `referenceModelIdOf`, `referencePromptTraitsOf`; types `ParsedClaudeModelId`, `ReferenceModelId`. For a host that mints a `Model`: copy the row for a known id, or leave `promptTraits` out (the undeclared default). The engine still reads no model id: nothing on the assembly path imports the table (pinned). An id is read the reference's way — case, a `[1m]` suffix, a dotted version, the last `/` segment, an `anthropic.` / `<region>.anthropic.` prefix, the reference's accepted suffixes, a missing minor read as 0 — and never guessed at by substring: an unknown suffix or version reads as no row. Older Claude models (Opus ≤ 4.7, Sonnet ≤ 5 and 4.x, Haiku 4.5, Claude 3.x), which the reference serves its classic shape, carry `lean_prompt` here (divergence `older-claude-lean-shape`).
455
+ - **Not changed.** No prompt text: no catalog variant or tool description reads a new name yet, so every model's prompt bytes are unchanged; the manifest's `selectors.traits` for a `fable5Model()` run lists `fable_identity_5`. The overlay grammar, the artifact verifier and the model door share the one trait reading (`isPromptTraitName`), unchanged.
456
+ - **Gate.** `gate:prompt-trait-anchor` (static tier; its corpus tier is announced SKIPPED where the decoded corpus is absent) and `gate:prompt-trait-anchor:rc` (`--require-corpus`), both in the gate-all roster: the anchor is the newest corpus; the reference's capability list is classified carried / bundle / not carried; the bundle table and the preset table equal what the corpus derives (a row that differs only under a declared deviation is named); every coordinate resolves under gate:anchor-claims' grammar; a not-carried name in the vocabulary is red; every carried name and bundle is read by a catalog or tool variant or owed a reader by a window (19 names, windows 7.70.0 / 7.71.0).
457
+ - **Closed sets.** `PromptTrait` 14 → 17 (−4 +7); `PromptTraitBundle` 3 → 4 (+1).
458
+ - **Rules.** Hand-copied reference tables 3 → 1: the vocabulary, the bundle table and the preset rows are checked against the corpus, except which ids the id stand-ins go to — the id lists in `scripts/prompt-trait-anchor.json` (`idGates.*.ids`: the ids that get `fable_identity_5`, `fable_identity_5_1`, `fable_identity_5_2`, `llm_rnd_capabilities`, `fable_5_mitigations`) are written by hand and checked one way only: a listed id must be one the reference's own test names, but an id the reference names that the list leaves out, dropped from its preset row as well, passes (dropping `claude-mythos-5-2` from `llm_rnd_capabilities`, or the whole `fable_5_mitigations` entry, together with the matching rows, stays green); a comment's claim that the names gate text → a gate with a liveness ledger; `fable5Model()`'s own trait list → its table row. Added: one data-driven refusal (the exclusive group).
459
+ - **Consumers.** @server: mints `promptTraits` from `referencePromptTraitsOf(id)` when a catalog entry declares none (S7b, C-R1542); a catalog entry naming a removed word fails prepare. @settings-schema: `ModelEntry.promptTraits` judges form only; a pinned word list reads `PROMPT_TRAITS`. @web-admin: the model form's word list is `PROMPT_TRAITS` / `PROMPT_TRAIT_BUNDLES`. @cli @client-core @sdk: none.
460
+ - **Pins.** `test/backlog4297-s1-trait-doors.test.ts` (the five names at the three doors, each beside a carried-word control; the four bundles' effective sets through the real Runner; the exclusive group pairwise and all three, a repeated name, each alone) · `test/backlog4297-s1-reference-presets.test.ts` (27 rows, each passes the model door and reads as itself; a copied Fable 5.2 row runs; the id reading's spellings and its no-guess edges; the import fence from `src/prompt-assembly/**` and `src/core/runner/**`, with a planted-edge control) · `test/prompt-trait-anchor-gate.test.ts` (the real tree; each check red on a synthetic corpus) · re-pinned: `test/backlog1663-prompt-traits.test.ts`, `test/tool-face-controls.test.ts`, `test/design119-s3-s4.test.ts`, `test/prompt-fable-preset-dedupe.test.ts`, `test/backlog4297-prompt-model-fit-baseline.test.ts`, `test/gate-all-roster.test.ts`.
461
+
462
+ ### A leg's verdict the gate refused is never silent: `TaskResult.verdictRefused` + `task.verdict_refused`; a whole-tool deny no longer hides a verdict tool from the model (#4366; new optional member + one notice code; narrowing: a policy whole-tool deny of a verdict tool; two sentences made true)
463
+
464
+ - **Rule.** One: at least one call of the leg's verdict tool (a structured leg's `StructuredOutput`, a goal iteration's `DeclareDone`, a delegated leg's `ReportBlocked`, an observer sidecar's `ObserverReport` — the leg's verdict tools as the one reader of the catalog's `verdict` column answers them, `legVerdicts`; the column, its words and its reader are stated once, in the #4325 section above; this record reads only which tools they are) refused at the gate on the run, and no call of it delivered on the run (a delivery before the refusal counts like one after it) ⇔ the final result carries `verdictRefused` ⇔ the run announces `task.verdict_refused` once. Two shapes carry neither: a deny on an end minted while its turn was being cut (it is the cut, not a refusal; a delivery that lands in such a turn is still read and clears the record) — the run's own stop (a host cancel, the walltime, a policy or hook that cancels the task while it decides, a stop the run made) or a cut of the turn alone (a person's `halt()`, an immediate steer, an extension's `$.turn.abort`); the gate record still reads `denied` with no word saying "cut", and the terminal or the turn's notice already says why (`run aborted`, `limits.max_walltime_exceeded`, `haltedByUser`); read off the harness's one reading of a turn being cut (`turnSeatState() === "ending"`) — and a paused result (the run is not over; the resumed leg keeps the record of its own run, `attempts` counting that run). The gate itself is unchanged: rules, policies, hooks and the mode reach the verdict tools as every tool, as the reference does (its structured-output tool's own check allows; a rule or a hook that asks asks, under `bypassPermissions` too).
465
+ - **Before.** A refused verdict mostly ended the leg `completed` with no result and no trace — the same as a model that never submitted: a policy's deny at the call, the `dontAsk` mode's refusal, a hook's deny. The output-retry cap tripped by refusals said `model did not produce a valid structured output within the retry limit`. A workflow `agent({ schema })` whose submission was refused threw `workflow.agent_schema` saying `completed with prose (no structuredOutput)`. A goal iteration's refused `DeclareDone` ran the goal out (`max_iterations`), a delegated leg's refused `ReportBlocked` ended it `completed`, an observer sidecar's refused `ObserverReport` ended the sidecar with no report, and a verifier's refused verdict read `unverified` / `no_verdict` ("a broken verifier"), each with nothing saying why. A policy's whole-tool deny (`createAllowDenyPolicy({ deny: ["StructuredOutput"] })`, `deny: ["*"]`) hid the submission tool from the model: no submission was possible and nothing said so.
466
+ - **Now.** `TaskResult.verdictRefused?: { toolName, toolCallId, deniedBy, settlement?, attempts }` (type `VerdictRefusal`, root-exported): `deniedBy` the refused call's `tool_end.gate.disposition.deniedBy` (a `DeniedBy` word), `settlement` its `settlement.kind` when that record carries one (an ask settled by a person, by nobody, by an elapsed window — and a person's yes a later layer vetoed, kept beside that layer's `deniedBy`; absent for a policy's, a mode's or a hook's deny at the call), `toolCallId` the last refused call, `attempts` how many verdict calls the gate refused on this run. Absent when the model never called it (prose) and when any call of it was delivered on the run, before the refusal or after it, in a turn being cut or not — let go by the gate and its body ran (every verdict body records its outcome when it runs): an extension's `tool.call` result in the body's place delivers nothing, and a result an extension withheld from the model after the body ran was delivered (the leg has its outcome). The same value rides the `done` frame and every persisted copy of the result (a workflow journal entry, replayed verbatim). Per run, like `refusedAsks`: a resumed leg carries its own run's refusals (a parked submission a person refuses on resume: the resumed leg's result has `haltedOnUserRejection` and the record). Compositions read the same record: `VerificationOutcome.verdictRefused` (beside `unverifiedReason: "no_verdict"`), `GoalResult.result.verdictRefused`, the `WorkflowAgentSchemaError`'s `result.verdictRefused`, and `runCascade`'s returned result (the last rung's; escalation unchanged). Wire (measured, `wire-changes.mjs f48709c99..HEAD`): optional key `verdictRefused` on `TaskResult` and the types that carry it (`CascadeRunResult`, `RepairResult`, `VerificationOutcome`, `VerificationResult`); optional key `verdict` on the published catalog row type `ToolCatalogEntry` (the same key the #4325 section above states — one key, not two); `ENGINE_NOTICE_CODES` +1; root exports +1 (`VerdictRefusal`); 0 removed, 0 breaking entries.
467
+ - **Notice.** `task.verdict_refused` (audience `user`, minter `engine`; `ENGINE_NOTICE_CODES` 153 → 154): once per run, exactly when the result carries the record; `detail: { toolName, toolCallId, deniedBy, settlement?, attempts, sessionId, runId, taskId? }`. It rides beside `delegation.ask_unresolvable` when the refused call was an ask nobody could answer — the two say different things (an ask had no answerer; the leg's outcome was refused). Type-level hard-breaking for a host table typed `Record<EngineNoticeCode, …>`; additive on the wire.
468
+ - **Sentences (wire-visible; codes unchanged, open to veto @server @test).** `output.invalid` when the cap was tripped by refusals: `model did not produce a valid structured output within the retry limit` → `the structured output submissions were refused at the gate (<deniedBy>) until the retry limit; no result was delivered (see verdictRefused)` (an invalid submission keeps the old sentence). `workflow.agent_schema` for a refused submission: `workflow agent "<label>" was asked for a structured result (schema) but completed with prose (no structuredOutput)` → `workflow agent "<label>" was asked for a structured result (schema) but its submission was refused at the gate (<deniedBy>) — no structuredOutput (see result.verdictRefused)` (prose keeps the old sentence).
469
+ - **Narrowing (open to veto @server @cli @client-core @test).** Under a policy's whole-tool deny that reaches a leg's verdict tool, the model is now SHOWN that tool (the request's `tools` carries it) and its call is refused at the gate with the policy's sentence, recorded as above — where it was hidden and the leg ended silently with no result. Every other tool a whole-tool deny reaches stays hidden (`deny: ["*"]` shows the structured leg only `StructuredOutput`). A consumer asserting the request's tools under such a policy reads one more entry. The same holds for a delegated leg's `ReportBlocked` under `deny: ["*"]`: the request now carries `[ReportBlocked]`, and a model that calls it meets the refusal — with `maxTurns: 1` the leg ends `failed` / `limits.max_turns_exceeded` where it ended `completed` with no tools offered, with `maxTurns: 3` it takes one more request and ends `completed` with the record. The same holds for an observer sidecar's `ObserverReport` under a whole-tool deny that reaches it (`deny: ["ObserverReport"]`): the sidecar's request carries it, its call is refused, and the sidecar's own result carries the record with one notice — the parent leg's result is unchanged (O1). An allow-list policy (`createAllowDenyPolicy({ allow })`) already offered and refused the tool this way before this change (`tool-policy.ts:1594-1596`, read in code).
470
+ - **Not changed.** Every gate decision: the policy is consulted once per verdict call and the ask seat (`onAsk`) only when something asks (the reference's form: the tool's own check allows; a hook runs for it, `canUseTool` does not); a parkable deployment still parks the submission with its card (`generic`, the submission's summary) and an approval delivers it as submitted; `bypassPermissions` still releases a policy's ask; the leg's own `excludeTools` naming its verdict tool is still refused before the first request (`config.tool_face_control`). The terminal kinds. The person's persisted rules still do not reach `StructuredOutput` / `ReportBlocked` (the content-routing exemption; #4369). A model that ends a turn without submitting is not nudged (#4370). `runCascade` still escalates past a rung whose verdict was refused — the returned result only carries the last rung's record (#4373). A background child's durable row and completion frame carry its `refusedAsks` but not the verdict record — a policy's deny at the call (no ask, so no refused ask) reaches the parent as a `completed` child whose recent step reads `ReportBlocked … → error:` with nothing after it (KL-4366-a, #4372). Known edges (KL-4366-b): on a leg with two verdict tools (a workflow `agent({ schema })`), a refused submission followed by a delivered `ReportBlocked` carries no record (the leg ends `blocked`); in batches that mix valid-but-refused and invalid submissions up to the retry cap, the `output.invalid` sentence is the old one (both orders measured: an invalid end is read in a cut turn too) while the record counts the refusals. Known edges (KL-4366-c): a refusal before a park on another tool's ask is not on the result or a notice after the resume (the paused result carries none and the resumed run's ledger starts at zero); the event stream still shows that call's `denied`. Known edges (KL-4366-d): an observer sidecar whose reports are refused sends one notice per delivery run (three measured over three tool turns of the watched leg), each with the sidecar's own `taskId`.
471
+ - **Rules.** Retired: the view's hiding of a verdict tool (the leg relies on it; its call meets the gate instead); the two sentences that told a refusal as "no valid output" / "prose". Added: no reading of the catalog's `verdict` column of its own (the ledger and the tool view take the one reader's answer, `legVerdicts`, #4325 section above), and one record + one notice read off the existing gate record, fed at the one mint of `tool_end` (`emitSettled` — the live loop's, the resumed leg's and a reconcile's ends alike; a required frames member, so no closing station skips it). No judge gained a case.
472
+ - **Pins.** `test/backlog4366-synthetic-verdict-tools-ask.test.ts` — U1–U4 (the column, the ledger, the one reader — `legVerdicts`, which the tool-face class reads too, and no module spelling a verdict tool's name —, the one feed); T1 / T2 (no rule: unchanged, no record; T2 current state for #4370); T3–T7 (every refuser — nobody to answer, a person, the policy, the mode, a hook, the retry cap, attempts and the last call — the record, the `tool_end.gate` it is read from, the `done` frame and the notice agree field by field; the refused ask and the halt beside it); T8 / T9 (the view keeps only verdict rows; `excludeTools` unchanged); T10 (current state, #4369); T11 (park: approve / refuse on resume); T12 / T13 (the five modes; the deployment list form, simulated); T14–T20 (goal, delegated, verifier, workflow `agent({ schema })`, `runCascade` — current state, #4373 —, the journal on disk and its replay, a background child's row and frame — current state, #4372); T21 (an extension on the verdict call after a refusal: a result in the body's place leaves the record, a result withheld after the body ran clears it); fix1 A2a–A2n (the turn cut while the gate decides — the policy or a hook aborting, the walltime, a host cancel, a person deciding an ask, a person's `halt()` that cuts the turn and not the run; a goal's DeclareDone; a workflow agent; a cancel while the model streams: only a real refusal before the cut is the record), A2d / B6 (a park after a real refusal, on the same Runner and on a new one over the same stores: the paused result carries nothing, an approval sends no verdict notice, a refusal sends exactly one with the resumed run's own `attempts`), B4 / C2 (current state, KL-4366-b), E2 (the delegated leg under `deny: ["*"]`, two `maxTurns`), O1 (an observer sidecar's `ObserverReport` refused at the call, asked with nobody to answer, under a whole-tool deny: the sidecar's record and exactly one notice, the parent unchanged), fix2 F1 (a real refusal, then a delivery whose turn is cut while its post stage holds — a person's `halt()`, a host cancel, the walltime; a workflow agent's `ReportBlocked`; a goal's `DeclareDone` — no record, no notice; control: the same halt with no refusal before it), F2 (current state, KL-4366-c). Re-pinned for the view's new seat: `test/backlog3126-deny-tools-out-of-table.test.ts`, `test/backlog1393-s2-declaration-face.test.ts`; for the end projection's new frames member: `test/backlog1392-occurrence.test.ts`, `test/backlog1831-not-executed.test.ts`, `test/backlog4103-plan-content-hash.test.ts`, `test/backlog4120-plan-card-withheld.test.ts`, `test/session-reconcile.test.ts`; `test/export-surface.snapshot.json` (+1 type); the static registries: `test/agent-tool-consolidation.test.ts` (the `TaskResult` field set, `verdictRefused` reviewed), `test/governance-codes.test.ts` (the `user`-audience set), `test/runner-layer-order.test.ts` (`verdict-refusal.ts` an unlayered domain module). The record's two words are copied through one projection beside the gate record's mint (`refusalWordsOf`, `src/core/runner/gate-exit.ts`), so the station-file scan (`test/gate-stations-closed-set.test.ts`) still finds no `deniedBy` write outside the station files.
473
+ - **Consumers.** @server: read `verdictRefused` to tell "the model did not submit" from "the gate refused it" (keys and words as agreed), with `task.verdict_refused` beside `delegation.ask_unresolvable`. @cli @client-core: a structured leg under a policy whole-tool deny shows its submission tool in the request; a run's refused verdict can be rendered from the result member or the notice. @test: the two sentences above.
474
+
475
+ ### A claimed media type is read the way a media type is read — `IMAGE/PNG` is `image/png`, and a `;` parameter is not part of the type: a real PNG a remote labels in capitals reaches the model as a picture from a host tool, a resumed call and an MCP server alike (#4438; behavior change: a claimed type that differed from an admitted one only in the case of its letters or in its `;` parameters was refused `mime_unsupported` or, as an MCP resource blob, kept as a ref — it is admitted now; narrowing: none; widening: one, below, open to veto @server @test; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @test)
476
+
477
+ - **Rule.** One reading of a claimed type against a set of media types (`memberOfSet`, `src/core/image-admission.ts`): the `type/subtype` before the first `;`, its ASCII letters folded to lowercase (a media type's type, subtype and parameter names do not distinguish case, RFC 9110 §8.3.1), the parameters not read; the member the claim names is what ships. Every comparison of a claimed type with the admission's sets reads it: `admitImageBytes` (the tool-result seat for a host tool's, a resumed call's, a hook's and an MCP server's blocks; an inline `TaskSpec.images` entry; a person's image attachment), `admitDocumentBytes`, `mediaBlockTypeOf` (an MCP resource blob's block), `imageMagicMatches` and the attachment screen (`admittedImageMime`).
478
+ - **Before.** The sets were compared exactly (`includes`), so `IMAGE/PNG`, `Image/Png`, `image/PNG`, `image/png; charset=binary` and `Application/PDF` were outside them: such an image block from a host tool, a resumed call or an MCP server was refused (`mime_unsupported`, a placeholder naming the tool and nothing for the model to look at); an MCP resource blob under one was kept as a ref and a line, not shown; an inline `TaskSpec.images` entry and an attachment were refused `config.image_invalid` / `config.user_attachment_invalid`. The 7.67.0 section "What `IMAGE/PNG` costs a user" kept the exact reading on purpose (open to veto); test measured what it costs (c768b, real engine, real PNG: a ref and one line at the MCP resource seat, the MCP image item refused).
479
+ - **Now.** Each spelling above is the picture: the block that reaches the model, the tool result and `tool_end.output` is `{ type: "image", mimeType: "image/png" }` — the member, never the spelling — and a document under `Application/PDF` is the `document` block `application/pdf`; a host tool's, a resumed call's and an MCP server's media read the same. An image processor (`imageProcessor`) is handed the member too. A type outside the sets reads as before — refused / kept, its echo bounded (`mediaTypeEcho`: the restricted-name form of at most 100 characters, else its character count) — and the bytes still decide: `IMAGE/PNG` over JPEG bytes is `magic_mismatch`.
480
+ - **Widening (open to veto @server @test).** A media block, an inline image or an attachment whose claimed type differs from `image/png` / `image/jpeg` / `image/gif` / `image/webp` / `application/pdf` only in the case of its letters or in `;` parameters is admitted when its bytes open with that type's header (it was refused, or, as an MCP resource blob, kept and told `tool_result.media_persisted`). The label is no longer a reason to refuse a picture; it never was evidence that the bytes are one.
481
+ - **What is not folded in.** Case and parameters only. No trimming (` image/png`, `image/png ` and `image/png ;x=1` are refused as before), no alias (`image/jpg` stays outside the set), no guessing the type from the bytes. The reference reads more loosely than this: its MCP content mapper decides "an image" with a predicate (`cli321.js:314917`) that takes the first `;` segment, trims it, lowercases it and maps `image/jpg` to `image/jpeg`, for an image item and a resource blob alike (`cli321.js:314919`); this release takes the case and the parameters and leaves the other two, each a decision of its own. (The reference's separate preview path tests `/^image\/(png|jpeg|gif|webp)$/` exactly, `cli321.js:309756` — a different path, not the mapper.)
482
+ - **Not changed.** The admission's order and numbers (`IMAGE_ADMISSION`) and its magic-byte check; what a type outside the sets does; the byte store's claimed type (recorded as written); a Bash `data:image/…` URI (already read case-blind, decided by the bytes); WebFetch's and the artifact tool's media-type reads (already folded); a notebook's mime-bundle keys (the format's own lowercase keys); an audio block (always kept).
483
+ - **Rules.** Readings of "is this claimed type in the set" 5 → 1: the exact `includes` of the image admission, of the document admission, of `mediaBlockTypeOf` and of the attachment screen, and `imageMagicMatches`' exact key lookup, all read `memberOfSet`.
484
+ - **Pins.** `test/backlog4438-media-type-case-blind.test.ts` (14 cells) — ① the admission under six spellings of the PNG type, the other three image types and `Application/PDF`, the bytes still deciding, the processor handed the member, outside the sets unchanged (` image/png`, `IMAGE/JPG`, `IMAGE/TIFF`, a 480-character type) · ② the seat and `mapContent` · ③ an inline entry and an attachment · ④ a real Runner: a host tool, a resumed call, an MCP image item and an MCP resource blob all reach the model as the same picture, `TaskSpec.images` through a real Runner. The exact-reading cells of `test/backlog1747-1748-mcp-media-one-admission.test.ts` and `…-four-seats.test.ts` now pin the new reading (`IMAGE/TIFF` stands in where a capital-letter type outside the sets is needed). Eleven mutations, each red in the cells that name it.
485
+ - **Consumers.** @server: a tool result or an MCP server that labels a picture `IMAGE/PNG` now reaches the model as the block `image/png`; `tool_result.media_persisted` is no longer told for such a resource blob and `tool_result.media_refused` no longer for such an image item. @test: the c768b rows that read "a ref and one line" / "refused" for `IMAGE/PNG` read the picture now (the 7.67.0 criterion's exact-reading row is the one this release changes).
486
+
487
+ ### Errata to the 7.68.0 section for #4111 — cli and client-core do read `resume.parent_constraint_missing`; the word neither reads is `leg_not_resumable` (#4433; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none — no code changed; a consumer note is corrected) (@cli @client-core)
488
+
489
+ - **What the section got wrong.** The #4111 section's hard-breaking sentence ends "(@cli @client-core: neither reads either word today)". Half of that is wrong. client-core reads `resume.parent_constraint_missing` and has a sentence for it (`src/resumeRefusalCopy.ts:89`, the constant at `src/engineErrorCodes.ts:905`; origin/main `eca455da`); cli's `src` does not spell the word, but it renders the same sentence through client-core's `resumeRefusalContent` (`src/sema/apiErrorSupplement.ts:41` and `:286`; origin/main `36acd8ff`) — read from code, not run.
490
+ - **What stands.** `leg_not_resumable` is read by neither: no hit in cli, client-core or sdk `src` (the same two origin/main commits and sdk `b202c1c`).
491
+ - **What to do instead.** The supplementary sentence table needs one word added on each side, `leg_not_resumable`; `resume.parent_constraint_missing` has its sentence already. What the engine does is unchanged.
492
+
493
+ ### Errata to the 7.68.0 section for #4145 — `memory.mount_failed` is already in the server's notice whitelist and the client-core tables (#4433; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none — no code changed; a consumer note is corrected) (@server)
494
+
495
+ - **What the section got wrong.** The #4145 section's consumer note says "@server: `memory.mount_failed` has no entry in your notice whitelist, so it does not reach a tenant. Register code `memory.mount_failed`, audience `user`, cause closed set above." The server's list of engine notice codes already holds it (`ENGINE_NOTICE_WIRE_CODES`, `src/trace/engine-notice-wire.ts:772`; origin/main `027f7b3e4`), and client-core's generated notice tables carry it too (`src/generated/engineNoticeTables.ts:125`, with audience `"user"` at `:264` and minter `"engine"` at `:411`; origin/main `eca455da`) — read from code, not run.
496
+ - **What to do instead.** Nothing to register for the code and its audience. What the notice's `detail` and sentence carry (the cause set the section lists) is for the server to read against its own table; the sentence no longer depends on `detail` reaching the body, as the section says.
497
+
498
+ ### Errata to the 7.68.0 section for #4276 — a rewind of a session with no workspace declaration is not byte for byte what 7.67.3 did: its checkout record is read too, and a log that cannot be read refuses the rewind (#4433; behavior change: none; narrowing: none (the section's own, said here for one more case); widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none — no code changed; a "Not changed" sentence is corrected) (@server @client-core @cli)
499
+
500
+ - **What the section got wrong.** The #4276 section's "Not changed" bullet opens "A session without a workspace declaration (byte for byte)". It is the same when the session's log reads, and not when it does not: 7.68.0 reads the session's checkout record for a session that has none too (`openSessionCheckout` with no declaration → `readSessionCheckout`, `src/engine/session/session.ts:791`), and a store whose read of that record throws makes it `unreadable`, which refuses the rewind.
501
+ - **Measured (a real Runner, `TtlSessionStore`, `FileFileHistoryStore`, one turn that edits the base checkout with no `TaskSpec.workspace`, then `Runner.rewindFiles` to that turn).** The store reads fine: v7.67.3 and the 7.68.0 code both answer `complete` and restore the base file. The store's read of the `session_checkout` entries throws (the same probe, `findEntries("session_checkout")` made to throw): v7.67.3 still answers `complete` and restores the file; the 7.68.0 code (the measured tree's `src/core/runner/rewind-files.ts` and `src/engine/session/session.ts` are byte-identical to v7.68.0's, `src/core/session-checkout.ts` differs by one comment) refuses `workspace.checkout_unavailable` — "where session … files stand cannot be resolved from its checkout … nothing was rewound" — and the file is left as it was.
502
+ - **What stands.** The answer shapes, the admission order and the rewind of a session whose log reads are as the section says. The refusal is the one the section's "Narrowing" bullet lists for `workspace.checkout_unavailable`; what it adds is that a session that never had a tree meets it too, when the store cannot read its own log. A host whose session store can fail a read now sees `workspace.checkout_unavailable` on a rewind of such a session where 7.67.3 rewound the base checkout.
503
+
504
+ ### A per-model auth answer that names no origin crosses a catalog swap only where its key is already bound, and an answer may name the origin it is handed out for — a request carrying a declared answer goes to that origin or nowhere (#4149; server request 11-10; behavior change: one narrowing, below, open to veto @server @cli @client-core; one additive answer member; widening: none; hard-breaking: none; new codes: none; exports: none added, none removed; wire: `credentialOrigin?` on the per-model auth answer, `StreamOptions` and `Brain.adjudicateRoute`'s `perModelAuth`; `credentialOriginUnsettled?` on `StreamOptions` (the engine's own mark); `boundBy` on the origin refusal's detail and its notice's detail; closed sets: one new union, `RouteRefusalDetail.boundBy` = `declaration` | `table` | `generation`) (@server @cli @client-core @sdk)
505
+
506
+ - **Before.** A leg reads the catalog (`models`, `tiers`) when it prepares: a follow-up after waiting for its session's lock, a resumed leg after the resume ladder's awaits, the suggestion pass at the leg's end. A per-model auth seat (`getApiKeyAndHeaders`) the host mints with the catalog in force when it builds the spec, answering by the entry's name (the shape a server mints), was paired with a newer generation's entry whenever a `swapDeps({ models })` landed in between: generation 1's key went to generation 2's host. Measured on a real Runner and transport: a follow-up queued behind a busy leg, a fresh session per call, the suggestion pass, and a child spawned after the swap under a key not sent before each sent the old key to the new host; a leg already running whose seat reads the host's current table sent the new key to the old host on its next request.
507
+ - **Now.** The catalog is still read when a leg prepares (every swappable seat keeps the one reading it had; `contextSettings` is also re-read by a running leg). The Runner takes the per-model auth function where it receives it — `runTaskStream`, `resumeStream` (the re-supplied config's), `startWorkflow`'s `defaultGetApiKeyAndHeaders`, `sideQuery` and `compactSession` — into its own seat, which keeps the catalog in force at that moment (its birth) and the process's count of catalog swaps then. The caller's own spec or options are never wrapped or copied to carry it: `sideQuery` and `startWorkflow` keep the taken seat beside the caller's object, which is read as it is (a member that reads a private field of the caller's class works, an inherited one reads as it did), and every lane asks the seat as a method of the object it read it from, as released (a seat written as a method sees that `this`). A host tool calling the seat from its context gets the host's own answer object, every member. A delegation child, a workflow child and a retained child's woken cycle keep that seat and its birth, on whatever Runner they run; a resume re-hands a seat, so it is a new birth (a parked background child's drive too). A workflow that has `defaultGetApiKeyAndHeaders` at its start answers every child it spawns with that seat — a seat its body installs or replaces later is not read (the keys sent are the start seat's); a workflow with none at its start reads the options' member at each spawn. A `null` seat reads as an absent one on a task, the side query, the WebFetch summarizer and a workflow's child, as released: no key is asked for and the request is sent; `compactSession` refuses one before anything is compacted, as released (`compact.invalid_request`, "getApiKeyAndHeaders must be a function when given"; no request goes out). **A seat no catalog swap has crossed is judged by the table alone, as released** — a swap is a `swapDeps` that names `models`, on any Runner of the process, counted after its write (an equal catalog counts); no catalog is read for such a seat. Across a swap its birth did not see, at every request, an answer that names no origin and carries a key or a header is judged against the catalog in force: its entry is **settled** when the birth catalog and the seat's Runner's live catalog each hold an entry equal to the request's `Model` member for member, under whatever key (the model door's own comparison; a `headers` read port by its identity, never read) — the seat is a function of the Model it is handed, so an entry unchanged since the birth is answered as it was then. The clause's domain is the catalogs the seat knows — the birth catalog, a catalog a leg of the seat prepared under (the leg's own prepare's, and the one an engine spawn resolved the child's model from ahead of that prepare — the delegation gate, the observer sidecar, a workflow child seated by the deployment's stated subagent tier or by the parent rung — registered before the spawn's first await, so a swap landing in an await between the two leaves the child's entry judged — measured on the host's `extraTools` factory for a foreground, a background and a fork child, right after a workflow body's `agent()` call, and around the observer sidecar's pick (`O-observer-pick`); a catalog is walked into the seat's lookup at every registration, except one the seat already walked whose entries cannot change — not a Proxy, frozen, every string-keyed member a data property, as the Runner's own catalog is — so a delegation tool's own roster that the host edits in place between two spawns is read afresh at each (`A-inplace-replace`, `A-inplace-frozenAccessor`); a Proxy roster is never asked whether it is frozen (`P-proxy-isExtensibleThrows`: sent), and a roster member that throws when read fails that spawn while the next one reads the roster again (`P-proxy-memberThrows`)), and the live one: a `Model` none of them holds (a pinned object, a shared registry object another Runner registered, another Runner's entry, an older generation's snapshot) is outside it and reads as released. An unsettled answer is carried only where every credential it holds is already bound to the origin the request dials; otherwise the request is refused before anything is sent — `route.credential_origin_mismatch`, `detail.boundBy: "generation"`, `boundOrigin` empty, with its own fix sentence (name `credentialOrigin`, or start the run again) and notice sentence. A key the table holds elsewhere keeps the table's refusal (`boundBy: "table"`). Measured on every first-party brain (openai; anthropic and open-responses on the window shape), a brain holding a deployment key (the key does not stand in for a refused answer), the main loop, a resume, delegation and workflow children, a woken retained child, the suggestion pass, a compaction pass, a parked background child's drive and a tier-3 revival. The containment seats (`readFace`, `writeFace`, the read-deny seats) are read at prepare, as before.
508
+ - **Narrowing (open to veto @server @cli @client-core).** Only inside a swap window — a catalog swap after the seat was handed in — is a send the released engine made refused: an undeclared answer whose entry is not unchanged across the swap and whose key is not yet bound where it dials. A seat that reads its key by name from the host's current table, or answers for the entry it is handed, is refused there: 26 cells of the 65-cell grid of the server's task face (13 each; the decision car's measurement — this tree reads the decision car's column on all 283 grid cells); declaring `credentialOrigin` restores each send. Outside that grid, measured here, each a correct send on the release and refused now: a leg with no session named, called right before a swap, whose first request goes out after it (`U1`: was K1 → A); a resume whose re-supplied seat meets an entry the swap moved (`I4`); a parked background child driven with a seat handed in before the swap (`X5b`) and a tier-3 revival under such a seat (`X6`); a swap that changes only a member of an entry unrelated to its route (`Y5` the context window, `Y7` a price; KL-4149-i); an equal catalog swapped across a queued leg whose entry's `headers` is a read port on a fresh object (`A7b3` the same getter, `A7c` a new one; KL-4149-k); a child on a second Runner whose entry is not member for member the parent Runner's, while a swap lands on any Runner (`A8bw`; KL-4149-l); an answer carrying only a non-secret header beside a brain's deployment key, the swap landing while it is pending (`E3b`: was KAd → A; an answer with no credential identity is never bound — KL-4149-j); the server's two shapes when the swap moves the entry and the key was never sent at the old host — a delegation child on a second Runner reusing the parent leg's Model object (`S1-postMv-unbound`: the child's first send and the parent's next request refused, the run fails; was K1 → A) and a boot-time entry object several Runners ask with, moved under a leg in flight (`S2-inflight-all-mv`: was KA → A; both KL-4149-p — the engine cannot tell these from the leak cells); a child on a second Runner whose entry differs while another tenant's Runner swaps (`P-child2-foreignSwap`: was K1 → A; KL-4149-l); a host wrapper that, asked for one model, asks the seat for a moved one inside the same ask (`B-probeOther`, `B-batcherNfirst`: the asked model's correct send refused; KL-4149-q); a child whose Model its spawn resolved from a catalog of which the seat's birth and live catalogs do not both hold a member-for-member equal entry, answered correctly by object, once any catalog swap in the process has landed since the parent run took its seat — not only in the spawn's own window: a delegation tool's own `models` roster entry that differs from the Runner's same-name entry or that the Runner does not serve at all, the swap before the spawn (`C-roster-twin-before`, `C-roster-notServed-before`: was KA → A) or inside it (`L-narrowed-twinByObj`: was KA → A) — for the rest of that parent run every delegation to that entry whose key is not already bound where it dials is refused (an answer naming `credentialOrigin` sends, `C-roster-notServed-before-declared`, and so does a parent run started after the swap, `C-roster-notServed-beforeRun`) — and a Runner entry resolved at the spawn while a swap lands before the child's prepare (`L-spawnWindow-subTwinByObj`: was KA → A; `L-spawnWindow-same2ByObj`: was KB → B) (KL-4149-t — in these shapes a by-name answer carried the new key to the old host on the release and is refused now: `L-spawnWindow-same2` / `-subTwin`, `L-narrowed-leak`, `A-inplace-replace` (the host edits its roster object in place between two spawns), `W-bg-same2` / `-subTwin`, `W-fork-same2`, `W-wf-tier` / `-inherit`). The way through is to name `credentialOrigin`, or to send again (a new run takes the seat under the catalog in force); measured: `S1-postMv-unbound-declared` sends, and so does the same shape with its key bound (`S1-postMv-bound`). **Not narrowed — nothing is judged without a swap:** two Runners whose entries differ (`A8b` / `A8c` / `A8d`), a pinned `Model` another Runner also registered (`A9c`) and another Runner's catalog entry handed as a leg's model (`X3`) send as released; the collection leg's 40 no-swap cells (group A) and E1 / E3a / E4a / E4b read the released engine's readings, and so do the taking point's cells (a side query's spec or a workflow's options that are class instances reading private fields, a seat written as a method: `F-sq*`, `F-wf*`, `X-wsThisSeat`, `X-wfPrivateThrow`) and the receiver every lane asks the seat on (`backlog4149-fix5-seat-this`); a workflow whose options gain their default seat only inside the body still hands it to the child spawned after that (`T-wfLateHook`). **Not narrowed — outside the clause, swap or not:** a `Model` no catalog the seat knows holds reads as released — another Runner's entry handed as a leg's model while a swap lands (`X3w`, `D-equalSwap`: K1 → B, a released leak, KL-4149-n), a shared object only another tenant's Runner registered, pinned by a tenant while another tenant's Runner or its own swaps (`E-sharedPinned`, `E-sharedPinnedUnregistered`, `E-noCatalogPinnedShared`, `E-ownSnapshotPinned`, `P-sharedPinned-ownSwap`: sent), and a boot object a swap has replaced (`S2-after-one`, `S2-after-all`, `S2-after-all-sq`: sent). A request already bound where it dials is not narrowed: a leg in flight finishes on the entry it holds, as `swapDeps` has always said; a drive that hands the host's own function takes the seat anew (`X5`); a key already bound goes out (`Y6`), and an equal fresh object (`Y8`) or a word renamed over an equal entry (`Y9`) go out. **Leaks closed** (measured leaking on the release, refused now): the Anthropic brain and a brain holding a deployment key in the window (`X1` / `X2`: K1 → B); a word kept over an entry renamed and moved under a leg called before the swap (`P-renameMove-constSeat`: KA → B); a seat taken on one Runner handed to a leg on another Runner that moved the entry (`P-carried-leg`: KA → B); a child whose Runner moves its entry and the host's table mid-child (`P-child2-midChildSwap`: K2 → A); the host's own seat answering from a context of its own across the window (`A0-own-*`: KA → B); a seat captured from a leg's context and handed on after the swap, called within the engine's ask — directly, forwarded, from `setImmediate`, a promise chain, a sync emitter or another ALS's `run` (`A-direct`, `A-forward`, `A-setImmediate`, `A-prebuiltChain`, `A-emitterSync`, `A-otherAls`), from a serial pool that runs it at the call (`A-serialQueue`), or asked for two models at once (`B-concurrentDirect`, `B-batcherMfirst`, `B-nestedAsk`), and the same seat on the summarizer of its own module instance (`D-copy-same`) — each KA → B on the release; a side query whose seat member is a getter that swaps the Runner's catalog (`T-sqGetterSwap`: the release resolved the word against the catalog before that swap and sent B's key to A; the seat is now taken before the query reads the deps, so the word meets the catalog in force); a compaction pass of a running leg (`X4`: generation 2's key to generation 1's summary host); `sideQuery` and `compactSession` with the swap landing while the host's answer is pending (`X7` / `X8`: K2 → A); a tier word or an id moved under an unchanged word (`Y1`–`Y1d`, `Y10`); by the declaration arm, a queued leg whose frozen seat declares the origin it held before the swap while the request dials the new one (the collection leg's `B1x`: the release read no declaration and sent KA1 → B) and a running leg whose live seat declares the new origin while the request dials the old (`B6`: KB2 → A). **Cost** (the CI host, medians): with no swap since the seat was handed in, no catalog is read — under 0.3 µs per judgment at any catalog size, and a 20-round tool loop over a 5,000-entry catalog takes 56.0 ms against 60.5 ms on the release (1 entry: 82.8 against 86.1 ms; seven runs each); across a swap, one judgment with the request's Model last walks the seat's catalogs — 50 entries ≈ 4–5 µs (the same object) / 7–10 µs (an equal fresh object), 500 ≈ 34–40 / 43–48 µs, 5,000 ≈ 4.5–5.2 / 5.0–6.6 ms (three runs): faster than the catalog grows between 500 and 5,000 entries, so a window over a very large catalog costs milliseconds per request.
509
+ - **Now (additive).** The per-model auth answer may carry `credentialOrigin`: the origin the WHOLE answer is handed out FOR (an absolute http(s) URL — the origin of the entry the key was read for, spelled as that entry's `baseUrl` — folded to scheme, host and port). A request carrying that answer goes there or nowhere: one going to another origin is refused at the brain's request gate before anything is sent — `route.credential_origin_mismatch`, `detail.boundOrigin` = the declared origin, `detail.boundBy: "declaration"`, with that arm's own fix sentence and notice sentence (the declaration differs from where the request goes; spell it as the entry's `baseUrl`). A key bound by the engine's table reads `boundBy: "table"` with the table's sentence. This holds whatever headers carry the answer's secrets (one outside the credential vocabulary included) and whether or not the key was ever sent; an admitted request binds the answer's credential there (the host's word, as `rebindCredentialOrigin`; no `route.credential_rebound` line). It reaches every lane the seat is asked in, a delegated or workflow child included. In the agent loop, a provider-request hook that adds, drops or changes a credential header beside a declared answer gets the request refused (`config.invalid_argument`, naming the header, never a value); writing the answer's own header back byte for byte is no change. (Code-read: no production module registers that hook today, and the agent loop's harness is not a package export.) A value that is not a servable http(s) URL (another scheme, userinfo, a fragment, not a string, empty) refuses the request (`config.invalid_argument`, naming the model and `credentialOrigin`), never reads as absent; the main loop's terminal reads `failed` with that code, and the other lanes' readings are tabled in `docs/INTEGRATION-CORE.md` §1.10b.
510
+ - **Presence conditions.** `credentialOrigin` absent ⇒ the table judges (where the key was first sent, or where the host rebound it), and, across a catalog swap after the seat was handed in whose entry is not unchanged, the clause above; `boundBy: "generation"` appears only on such a refusal. Present: the request goes only to that origin; the answer's own credential is judged by it in the table's place, while a credential that is not the answer's (the entry's credential header, the brain's config) keeps its own law beside it. A model lane's later hop carries neither the answer nor its declaration. One key answered for two origins by two legs: each request is judged against its own answer (both sent), the table follows the later send, and an answer for that key naming no origin is then judged by the table. A derived-route pre-flight judges against the declaration and binds nothing.
511
+ - **Residual (three host-side shapes the engine is told nothing about; each still sends without a declaration and fails closed with one — KL-4149-f / -g / -h).** (1) The host moves its own key table with no catalog swap: a by-name seat answers the new key for the entry the leg holds, and it reaches the old host — the user sees the request go out and whatever that host answers. (2) The host moves its key table and swaps only some of the Runners a seat's tree runs on: the child on the swapped Runner is refused, and the parent's next request on the unswapped one carries the new key to the old host — the user sees the child end on `route.credential_origin_mismatch` and the parent carry on; a child that carries the object its Runner resolved before that Runner's swap, whose entry is member for member the unswapped parent Runner's, is not refused and carries the new key to the old host too (`L-spawnWindow-sub`, as released). (3) The host mints a frozen seat before a swap and hands it to the engine after it: the engine first sees it under the new catalog and cannot tell it from a seat minted after, so the old key reaches the new host — the user sees the request go out (typically refused by that host as unauthorized). Also not closed here, each as released: a `Model` no catalog the seat knows holds, or a seat taken on one Runner handed to another — swap or not, a by-name answer goes where that object points (KL-4149-n, security ledger #4378: `X12` a seat carried to another Runner's side query, `X3` / `X3w` / `D-equalSwap` another Runner's entry as a leg's model, `P-stale-noSecondSwap` / `P-stale-secondSwap` the host's generation-1 snapshot handed in after the swap — the new key to the old host, `P-carried-sq`); a host wrapper that calls a taken seat in a context it set up before the engine's ask — a pre-built `AsyncResource`, an `AsyncLocalStorage.snapshot()`, a `MessagePort` listener, a timer queue or serial pool already running, a cache warmed before the ask — is not judged (KL-4149-o: `A-asyncResource`, `A-snapshot`, `A-messagePort`, `A-timerQueue`, `A-serialQueueSlow`, `A-cachePre`, KA → B); the mark is the ask's, not the model's — a batcher that asks for a moved model inside another model's ask lets the moved one through (KL-4149-q: `B-batcherNfirst`); two copies of the engine module in one process count swaps apart (KL-4149-r: `D-copy-copy2`); across a swap one judgment costs milliseconds on a 5,000-entry catalog, and every spawn walks the catalogs it resolved the child's model from — two per-read copies of a 5,000-entry catalog ≈ 6 ms with the copying, a delegation tool's own roster at every spawn (KL-4149-s, cause located, not optimized here); an echo declaration (the handed entry's `baseUrl` copied into `credentialOrigin`) declares nothing and binds the new key to the old host (KL-4149-a's open half; witnesses E1–E4); a hook adding a header outside the credential vocabulary beside a declared answer, and the same header riding beside a key already bound when an unsettled answer is admitted (KL-4149-b); a host rewriting the `headers` object of an answer it already returned (KL-4149-f's family: the engine reads what it sends); the by-name scan for the one reader (KL-4149-c); the auto-mode classifier reading a refused answer without its code (KL-4149-e); one host spelled two ways (a trailing dot, `localhost` vs `127.0.0.1`) is two origins — spell the declaration as the entry's `baseUrl` (§1.10b).
512
+ - **Members.** `TaskSpec.getApiKeyAndHeaders` answer `+credentialOrigin?: string` (the same answer on `SideQuerySpec`, `CompactSessionRequest`, `WebFetchSummarizerOptions`, `ToolExecuteContext`); `StreamOptions.credentialOrigin?: string`; `StreamOptions.credentialOriginUnsettled?: true` (the engine's own mark, set by the one reader of the seat's answer — a seat can neither set nor clear it; a host Brain reads it beside `credentialOrigin`). `ToolExecuteContext.getApiKeyAndHeaders` is the seat the Runner took: called by a host tool it is the host's own function — the same answer object, every member the host gave (pin E1); the engine's mark rides on none of the host's answers: the one reader's own ask is marked when a taken seat, called within that ask's asynchronous context — directly, bound, from a function of the host's, or from a timer or promise chain the host starts inside the ask, its answer rebuilt or not — finds its entry not settled across a swap (pins X13, `backlog4149-fix5-leg-cells` A-*; a wrapper calling it in a context set up before the ask is not seen — KL-4149-o), and the taken seat is not the host's function object (KL-4149-m); `Brain.adjudicateRoute(model, perModelAuth?)` — `perModelAuth` may carry `credentialOrigin`. Internal: the engine compaction carries the answer whole (its `apiKey` / `headers` parameter pair is one `auth` parameter).
513
+ - **Not breaking — four signatures the wire manifest reads as changed.** `Brain.adjudicateRoute` (its `perModelAuth` parameter), `TaskSpec.getApiKeyAndHeaders` (its answer), `WebFetchSummarizerOptions.getApiKeyAndHeaders` (its answer) and `routePairingStatus` (the `perModelAuth` its brain's judge takes, and its own third parameter) each take or answer an object that only gains optional members: `credentialOrigin?`, and where the type is now `PerModelAuth` the engine's own mark `credentialOriginUnsettled?` beside it — the members `apiKey` and `headers` are as they were. A seat that answers `{ apiKey, headers }`, a route judge written to take `{ apiKey?, headers? }` and a caller that passes that object all still type-check (pin F1, compile-time, `test/backlog4149-credential-origin-declared.test.ts`).
514
+ - **Rules.** Read moments of a swappable seat: as released (prepare; `contextSettings` also live) — no third moment. The origin law keeps two arms: the declaration, and the table with one clause (an undeclared answer whose entry is not settled makes no first send), which has one precondition — a catalog swap after the seat's birth: one process-wide count, written at the one place a catalog generation changes (`Runner.swapDeps`, after its write), read at the birth and at each answer; no per-object side table. A seat no swap has crossed reads no catalog. Settled is one sentence — the birth catalog and the live one each hold an entry equal to the request's Model — with no word lookup, no tier exception and no per-field choice; its domain is the catalogs the seat knows (birth, a leg's — the one its prepare read or the one a spawn resolved its model from —, live), and a Model none of them holds is outside it — one branch where there were two ("found nowhere is refused" and the pinned-Model exemption), and the process-wide "received as a catalog entry" mark on every Model snapshot is retired with its one reader. The seat is asked as a method of the object each lane read it from; no taking point wraps the caller's object (the view the side query and the workflow took is retired). No host flag is added. The contract the engine could not enforce ("the seat answers for the entry it is handed; a by-name seat must declare") leaves: such a seat is refused in the window instead of carried, and KL-4149-a's undeclared half and KL-4149-d close. One reader of the seat's answer (`askPerModelAuth`, `brain/route-adjudicator.ts`) for the nine places that asked the seat (main loop, classifier, side query — the advisor's too —, compaction, suggestion pass, memory consolidation, a mod's model call, the WebFetch summarizer, the derived-route pre-flight); a scan of the source by name (pin F0) finds no other call of the seat — a renamed alias or a `.call` is not seen (KL-4149-c). The pairing law gains one arm: a request whose answer named its origin goes there or nowhere, and the answer's own credential is judged by that origin in the table's place. The main loop's terminal adopts the harness's refusal of an answer as its cause, as it adopts the brain-call guardrail's.
515
+ - **Not changed.** The table's binding on first send and its rebind verb; every refusal code and notice key; the swap's notice text; a lane's later hop carrying no per-call answer; a declared answer's judgment; the catalog's read moment.
516
+ - **Consumers.** @server: the seat minted at spec birth and handed in at the call is inside the engine's sight; once the credential face is in, answer `credentialOrigin` with the origin of the entry the key was resolved from, spelled as that entry's `baseUrl` — every lane then fails closed at one gate and no correct send is refused in a window. A spec assembled across an await of the host's own after a swap is shape (3) above. @server @cli @client-core: an undeclared seat is refused inside a swap window where its key was not yet bound (the narrowing above); no code changes otherwise. A `route.credential_origin_mismatch` notice and refusal carry `boundBy` (`"declaration"` | `"table"` | `"generation"`), each arm with its own sentence; `"generation"` reads `boundOrigin: ""` (absent only on a host's own judgment that does not say it — #4241's section). A consumer pinning the detail's key set or the word set exactly sees the change (@server @cli). The table arm's parenthesis reads "the host it was first sent to, the one an earlier answer named, or the one the deployment rebound it to". The main loop's terminal for a bad `credentialOrigin` reads `config.invalid_argument`. Unchanged and now pinned per lane: the Model a host's Brain (`stream` / `complete` / `adjudicateRoute`) and its seat are handed is the engine's snapshot of the entry, never the host's own object (as since 7.60.0). A host that keys a table by its own Model objects reads `modelOriginOf(model)`: it answers the object registered for the leg's generation (docs/INTEGRATION-CORE.md §1.10b).
517
+ - **Pins.** `test/backlog4149-generation-legs.test.ts` / `-children` / `-swaps` / `-edges` (harness `test/backlog4149-generation-harness.ts`, expectations `test/fixtures/backlog4149-generation-pins.json`: the decision car's 19 groups, 283 cells, each on a real Runner and loopback gateways — a follow-up queued across the swap, a resume whose ladder straddles it, a leg already running, delegation and workflow children spawned after it, a woken retained child, a fallback chain's second model, a key-only rotation, an endpoint-only move, a deleted entry, a tier word rebound, two swaps while queued, the suggestion pass, answers the table cannot see and a seat that mints per ask, two Runners swapped together and apart, three generations on one Runner, and the host-side witnesses) · `test/backlog4149-generation-no-swap.test.ts` (the collection leg's 40 no-swap cells of group A — legs, children, a woken cycle, a workflow agent, a resume, the side faces, a fallback hop, a retry, getter-backed deps, read-port entries, two Runners, pinned Models, entry-carried keys — and E1 / E3a / E4a / E4b, each pinned to the released engine's reading and re-measured on the base tree; TP1 / TP2 / TP5 a member the caller's spec, resume config or compaction request inherits reads as it did; the window cells kept refused: A7b3 / A7c, A8bw, E3b; D1 the generation sentences) · `test/backlog4149-generation-extras.test.ts` (X1 the Anthropic brain, X2 a brain holding a deployment key, X3 another Runner's entry handed as a leg's model with no swap — sent as released, X3w the same with a swap landing while the answer is pending — outside the clause, sent as released (KL-4149-n), X4 a compaction pass of a running leg, X5 / X5b `driveParkedResume` with the host's own function and with a seat handed in before the swap, X6 a tier-3 revival, X7 / X8 `sideQuery` / `compactSession` with the swap landing while the host's answer is pending, X7c / X8c the entry their word resolved found and its first send out, X9 a child on a second Runner with its own catalog objects and no swap, X9w the same with a swap on an unrelated Runner — found through the catalog it prepares under, X10 a `headers` read port compared by its getter and the object it is read on, with zero reads, X11 two entries sharing one getter read on different objects — not equal, X7d a side query's inherited members read through the caller's own object) · `test/backlog4149-generation-entry-equal.test.ts` (Y1 a tier word re-pointed onto a moved entry, Y1b two words naming one object, Y1c ids swapped under unchanged words and origins, Y1d the field a seat answers by changed — each refused; Y5 / Y7 an unrelated member changed, refused; Y6 the same with the key bound, Y8 an equal fresh object, Y9 a word renamed over an equal entry — sent; Y10 the rename with the entry moved, refused) · `test/backlog4149-credential-generation.test.ts` (T1 a follow-up behind a busy leg, H1 a fresh session per call, R1 a resume whose entry moved, R2 a resume whose entry was retired, T2 the degrade target, S1 the suggestion pass, U1 a session-less leg across the swap — re-pinned to the clause; controls T0 / H0; C1 a child judged by the table) · `test/backlog4149-credential-origin-declared.test.ts` (D1 task face, D1n undeclared control, D2 hook shape, D3 child after a swap, D4 suggestion pass, D5 a lane's later hop, D5r a later hop never asks the seat, D6 compaction, D7 five bad values, D8 a hook adding a credential beside a declared answer, D8n a non-credential header, D8s the answer's header written back byte for byte, D8c the same value under a re-cased name; E1 two origins for one key in flight, E2 declared then undeclared, E3 the pre-flight, E4 the unchanged first-send invariant, E5 each first-party brain's gate; F0 the by-name scan for the one reader; F1 the old shapes still type-check) · `test/backlog4149-fix1-live-seat-and-codes.test.ts` (L an entry-answering live seat and a declared by-name live seat on T1 / H1 / R1 / S1, and the undeclared by-name one — re-pinned to the clause: undeclared refused, declared sent where it names; B the same on the anthropic and open-responses brains; W a workflow child after a swap, declared and undeclared; O a declaration binds the whole answer — a header outside the vocabulary alone and beside the entry's credential, with two controls; C the reading of a refused answer in each lane, compaction's `onError` code included; S the declaration arm's own sentence and `boundBy` in the refusal, the request's failure and the notice, the table arm beside it, and three spellings — a cluster short name vs its FQDN and an IPv4-mapped IPv6 literal refused, `127.1` admitted; E the echo-declaring by-name seat as witnesses — re-pinned: on the window shapes the echo now meets the entry of the leg's own prepare, E4 a running leg's echo carries the new key to the old host) · `test/backlog4149-fix1b-model-identity.test.ts` (I4 re-pinned: the resumed leg prepares after the swap; I1–I15: the object each lane hands the host's Brain (`stream`, `adjudicateRoute`, and a Brain's own `complete` face) and seat — a snapshot, never the host's own, whose `modelOriginOf` is the object registered for the leg's generation: main loop before, across and after a swap, a resume, a chain hop, a delegation child, workflow children around a swap, classifier, side query, compaction, suggestion pass and its pre-flight, consolidation driver, a mod's `$.model.complete`, the WebFetch summarizer) · `test/backlog4149-fix2-containment-at-prepare.test.ts` (A1–A8: a containment swap reaches a follow-up queued behind a busy leg and a resume inside its ladder, both directions, for the read-deny seats, the read face and the write face; a leg already prepared keeps what it read; workflow and delegation children spawned after the swap prepare on the new seats) · `test/backlog4149-fix5-leg-cells.test.ts` (the fix4 collection leg's 55 cells: A0 the host's own seat in a lost context, A a captured seat handed on through twelve host wrappers, B two models through one seat, D the swap count's edges and a second module instance, E tenants pinning a shared object while another tenant swaps, F the taking point on class-instance specs and options and a method seat, C no-swap advisor / classifier / second-Runner child, X the summarizer's method seat, a class onEvent and a bound shared object, K the cost components — each pinned to its reading under the rule in force) · `test/backlog4149-fix5-decision-cells.test.ts` (the decision car's 30 cells: S1 the server's child reusing the parent leg's Model object — no swap, an equal swap, a move, bound or not, declared; S2 the server's boot object welded into a seat several Runners ask with, in flight and after a swap, the side-query face; Sd the server's decorator key path; P pinned, stale, inline and carried objects and seats, a rename-and-move, a second-Runner child under another tenant's swap and under its own Runner's move) · `test/backlog4149-fix5-seat-this.test.ts` (R the `this` each lane asks the seat with — the agent loop and a workflow child's, the classifier, the suggestion pass and its pre-flight, the compaction pass, the side query through the Runner and directly, the consolidation driver, a mod's model call, the WebFetch summarizer, the derived-route pre-flight — each the released tree's reading; T the side query's seat taken before its deps are read, a workflow's default seat installed inside its body) · `test/backlog4149-fix6-spawn-window.test.ts` (L a swap in the host's `extraTools` factory, after the delegation gate resolved the child's Model and before the child's prepare — on the child's Runner, on the parent's own after a first swap, on an unrelated one, the gate judging against a tool-level roster; by name, by object, declared; W the same window for a background child, a fork, a workflow child seated by the stated subagent tier and by the parent rung; T a workflow's start seat replaced in its body — the start seat answers; R a `null` seat on the side query, the WebFetch summarizer, a task and a workflow child, and on `compactSession` — the released tree's reading; A a delegation tool's own roster the host edits in place between two spawns — walked at every spawn, refused, with no earlier spawn and with no swap as controls, a frozen roster read through a getter walked again too; C a roster entry the Runner holds differently or does not serve, the swap before the spawn — the declared narrowing — declared, and the parent run started after the swap; O the observer sidecar's pick registering the catalog it resolves from).
518
+
519
+ ### A credential in a provider's error ends where no request could carry it, and a sentence that lists credential labels is read as labels — `Use Authorization: Bearer; …` no longer reads `Use Authorizati«redacted»: …`, and the Chinese or Japanese words right after a token are carried (#4374, #4375; behavior change: three readings of the credential vocabulary; masks less: five forms, below, open to veto @server @cli @client-core @test; more accurate: a quoted value's label and quotes on the body path; more withheld: a found value that a character that does not show cuts, read whole where it is repeated; narrowing: none; hard-breaking: none; closed sets: none; exports: none added, none removed (package barrel); wire: none) (@server @cli @client-core @test)
520
+
521
+ - **Before (7.67.2, 7.67.3).** Three readings made a provider's sentence lose words that hold no credential. (1) A value the vocabulary found was taken out wherever it stood, in every spelling of every part of it: a scheme word with nothing after it, or a short value, bit letters out of ordinary words and header names — `Use Authorization: Bearer; do not send Proxy-Authorization: Bearer on this route.` read `Use Authorizati«redacted»: «redacted» do not send Proxy-Authorizati«redacted»: «redacted» this route.`, and `password=api; failed at the api gateway` read `… failed at the «redacted» gateway` (#4374). (2) A value could open with a credential label, so a sentence that explains how to authenticate lost its labels: `password=Authorization: Bearer password=` read `«redacted» «redacted»`. (3) A token's run took any character but white space, so the words glued after it went with it: `认证失败 请检查密钥 Authorization: Bearer <token>,账户已欠费 请充值后再试` read `认证失败 请检查密钥 Authorization: «redacted» 请充值后再试`; of the test fence's 216 Chinese and Japanese cells (108 sentences, two writers) the words after the token were carried in 80 (#4375).
522
+ - **Now.** Three rules, one per reading. **R1** — a value the vocabulary found is taken out where it was found (by position, mapped through the one-line fold), and wherever else it stands only where it can be a credential: each part of it at least `CREDENTIAL_MIN_CHARS` (8) characters, the vocabulary's own floor, and no part that is nothing but a credential label (R2). On providerMessage the values are those the sentence's own reading finds and those the raw-body reading of the same response finds inside the sentence (a token an escaped line break cuts is one word in the body, two in the sentence). **R2** — a value that is nothing but a credential label (a keyword name with its separator, or `Authorization:` / `Proxy-Authorization:`, with nothing after it that the value being read takes — white space, a quote that closes a string around the text, or the end) is that label, not the value of the name before it: read at the three places a value starts — a bearer token, a header's credentials after its scheme word, a keyword's unquoted value. What a value takes after a label is its own grammar's: a keyword's unquoted value runs to white space or a quote; a header parameter takes a quoted value or white space and a value after its `=` (`Authorization: Token token="…"` and `Authorization: Bearer token= …` are parameters, withheld whole); a bearer tail takes a quoted value after its `=`. A label something follows is part of the value (`password=token=…` is a password that starts `token=`, withheld whole). **R3** — a token (a bearer token, an `Authorization` header value, a value beside a weak name, a `sonar.login`, a signed URL parameter) is made of the characters a request can carry in it: it ends at a character above U+00FF that shows. Written as `\uXXXX` escapes a JSON writer wrote (one backslash; a surrogate pair is one character), a run of them — one or more — is read to its end, and ends the token at its first escape only where nothing a token goes on with follows the run; escape text with token characters after it, however many escapes it holds, is something a credential can hold, and stays part of the token. What "shows" is read off the regex engine's tables (not `\s`, not `Default_Ignorable_Code_Point`), one code point at a time (a surrogate pair as the character it writes), not listed by hand. Whether a weak name's value is long enough to be a credential is read on the whole value, wherever a token in it ends. A strong name's value — a password a person chose — still takes any character but white space. The four sentences: `Use Authorization: «redacted» do not send Proxy-Authorization: «redacted» this route.` · `password=Authorization: «redacted» password=` · `Authorization: «redacted» Authorization: «redacted»` · `Proxy-Authorization: «redacted» «redacted»` from a body (the body writes the line break as an escape, which a token's run takes in, as on v7.67.1), `Proxy-Authorization: «redacted» Authorization: «redacted»` at the host seat. The CJK grid: 216 of 216 carry the words after the token, none carries a piece of it. The fence's 126 sentences with no credential: none withheld whole, ten more legible than on the base tree, none less.
523
+ - **Masks less (open to veto @server @cli @client-core @test).** Five forms show bytes the base tree withheld; each is a KNOWN-LIMITS row with its witness pin and a switch in the differential pin. **KL-4375-a** a character above U+00FF that shows, right behind a token, ends it — it and the words after it are carried (`api_key=<value>账户已欠费` → `api_key=«redacted»账户已欠费`, was `api_key=«redacted»`); escaped by an ASCII-only writer, the words are carried up to the first character a token goes on with (`api_key=<value>`, NBSP, `无效或已过期,请在控制台重新生成。` → `api_key=«redacted»请在控制台重新生成。`; the escaped words before the ASCII comma go with the token; a run is read to its own end and no further, and escapes followed by another escape or an escaped backslash go with the token too), and a run of more than 256 escapes is the token's own text. **KL-4375-b** such a character inside a token, written as itself — the part after it is carried (`Authorization: Bearer AbC中DeFgHiJk please retry` → `Authorization: «redacted»中DeFgHiJk please retry`, was `Authorization: «redacted» please retry`); no request carries such a token: the platform's `Headers` refuses a header value above U+00FF (pinned). Written as escapes with token characters after them — one or more, by a body's ASCII-only writer or as text where decoded text is read — it is part of the token, withheld as before. **KL-4374-a** a found value shorter than 8 characters is taken out where it stands only — its other places are carried (`password=api; failed at the api gateway` → `… failed at the api gateway`); so a short password the sentence repeats shows where it is repeated on providerMessage and at the host seat (`password=hunter2; the account hunter2 is locked` → `password=«redacted»; the account hunter2 is locked`, was withheld at both places; `hunter22` is withheld at both, as before); terminal.message — and the events and session rows it reaches — searches no value elsewhere without a declared value, and carries the repeat on both trees (`hunter2` and `hunter22` alike, pre-existing). A value that a character that does not show cuts (below, "More withheld") is one value and is not in this form. What is: white space or a line break written as itself ends a value where the vocabulary ends it, so the value as read is the piece before it, and a piece under 8 characters is carried where it is repeated. At the host seat, `password=fVba+Fu NrX@sR was refused; the value fVba+FuNrX@sR is unknown` (a space, a tab, NBSP, U+3000, U+2002, U+202F, U+1680 or a line break written as itself) reads `password=«redacted» NrX@sR was refused; the value fVba+FuNrX@sR is unknown`. v7.67.3 read `… the value «redacted»NrX@sR is unknown`: it withheld the 7-character piece and carried `NrX@sR` in both places. A header parameter's value repeated alone, cut by a line break or U+3000 written as itself (`Authorization: Bearer secret='…'`, `secret= …`), reads this way on providerMessage too. The raw-body reading finds the header's whole credentials there, and the parameter's value alone is not one of their request-echo spellings. 2 of 13 394 sentences × the host seat and both writers: v7.67.3 shows 9 / 10 characters at the repeat, this release 16 / 15. Any repeat that is not the whole value (cut short, a character dropped, a prefix or a tail dropped, such as a vendor prefix `sk-` / `AKIA` or a Base64 value's `==`) is not that value, so the piece under 8 characters beside the cut is carried. In characters this release shows at most 7 more than v7.67.3 (24 cells of the differential), but a reader sees something else: on v7.67.3 the repeat had a mark in the middle, here it reads whole. `Authorization: Bearer_Ab12Cd`, a zero-width space, `34Ef56`, a zero-width space, `Gh78Ij refused; token Ab12Cd34Ef56Gh78Ij` reads `… token Ab12Cd34Ef56Gh78Ij` at the host seat and on both writers (v7.67.3 `token Ab12Cd«redacted»Gh78Ij`). **KL-4374-b** a value that is nothing but a credential label is that label, carried (`Unsupported parameters: password= secret= token= are not accepted` carried as written, was `password= «redacted» «redacted» are …`; `password=token= rejected` carried); what it shows is the label's own letters — a label is a label only where the value being read takes nothing after it, so the label is the whole value; a label something follows is a value and is withheld whole as before (`password=token=mysecretpassword` → `password=«redacted»`; `Authorization: Token token="…"` → `Authorization: «redacted»`). **KL-4374-c** a weak name followed by words that are no token, then a token — the token is not at the name's value and is carried (`token=无效<token> please retry`, was `token=«redacted» please retry`); an ASCII-only writer's escapes of those words with the token right after them are the token's own text, withheld whole as before. Not less withheld: a token cut by a character that does not show reads as on the base tree, exit for exit — white space (a space, a line break, a tab, U+3000, NBSP) ends it where it is written as itself and the words after it are carried, a body's escape of it is part of the token; a zero-width character, a BOM or a variation selector (VS17 to VS256 above the basic plane included, as is any character above it that does not show) is the token's own, the part after it withheld; the part of a weak value in front of a showing character, where the whole value is long enough to be a credential (`x-api-key: <7 characters>。<more> is invalid` → `x-api-key: «redacted»。<more> is invalid`); a strong name's value, Chinese, Japanese and punctuation included; a quoted value's content; the vendor-prefixed rows; a declared value and its request-echo spellings; a value only the raw-body reading finds whole, echoed elsewhere in the sentence (providerMessage).
524
+ - **More withheld (than v7.67.3 too; not a return to it).** A found value that a character that does not show cuts — a zero-width character, a BOM, a soft hyphen, a format control, a line break, the characters the one-line fold reads as a cut though nothing shows there — is one value. So is a value with white space a reading took into it: an escape the raw-body reading reads as part of a token, or white space inside a quoted value. The floor it is searched for elsewhere at (8) is read on the whole value without those characters, not on its pieces. The search reads the sentence without the characters that do not show, so a repeat written without the cut, with the cut somewhere else, or with the same cut is withheld whole on providerMessage and at the host seat. `password=fVba+Fu`, a zero-width space, `NrX@sR was refused; the value fVba+FuNrX@sR is unknown` reads `password=«redacted» was refused; the value «redacted» is unknown`, as on v7.67.3 (the previous head of this change carried the repeat). These read withheld where v7.67.3 showed part of the repeat: three cuts in a 16-character value, repeated without them (v7.67.3 `«redacted»eF6hiJ9kmN2p`, 12 characters shown); a bearer token cut 4 | 12 (v7.67.3 showed 12); the repeat cut at another place (v7.67.3 showed 7 characters and a space); a quoted parameter's value cut by U+3000, NBSP or a space inside its quotes (v7.67.3 showed the 13-character piece before it); a value cut in a URL's userinfo (v7.67.3 showed 7). A piece under 8 characters is still never searched for alone, so a one-character piece does not bite letters out of words (`token: <value>`, a zero-width space, `h then it failed` reads `token: «redacted» then it failed`; v7.67.3 `t«redacted»en`). A piece of 8 or more is searched for alone, as before. A whole value under 8 characters is KL-4374-a. White space written as itself is not part of the value, so `password=abc def` leaves `def` alone, and a quoted value under a name the vocabulary does not read as a credential (`message="invalid api key"`) is no found value. A strong name's quoted value of several words is searched for elsewhere glued as well, so a glued repeat can take a model name or a request id with it: `password="req 8f3a9c2e 1b7d" refused; see req8f3a9c2e1b7d for details` reads `… see «redacted» for details` (v7.67.3 took a piece of it: `see «redacted»8f3a9c2e1b7d`). A found value that holds a white-space run of about 11 000 characters or more withholds the whole sentence on providerMessage and at the host seat, since its spellings no longer fit one matcher (KL-4374-e; v7.67.3 read those shapes with their words).
525
+ - **The differential pin.** 24 000 seeded sentences (14 rows of token forms and 10 strong-name forms × head / middle / end × white space, a line break, a tab, ASCII punctuation, full-width punctuation, a glued CJK character × English / Chinese / Japanese × as written / a JSON body / an ASCII-only writer's JSON body / folded to one line), each read on providerMessage and terminal.message: on the base tree and on this one the same 345 sentences carry a piece of the planted value, byte for byte the same 690 readings — a strong name, `: ` and a value of one to three characters (KNOWN-LIMITS KL-4374-d, pre-existing); no other sentence on either tree. The five switches (160 sentences × four writings each) read exactly the declared reading on this tree; on the base tree they read otherwise in every cell of KL-4375-a and KL-4374-a, in the 480 cells of KL-4375-b and of KL-4374-c not written by an ASCII-only writer (their 160 ASCII-only cells each read as on the base tree: withheld whole) and in 296 of KL-4374-b's 640 (its cells where something follows the label read as on the base tree).
526
+ - **More accurate.** A keyword's quoted value is read with the quote that closes it when the renderer's account of a hit is read back, so the body path no longer withholds a whole sentence where the hit alone dropped its closing quote: `{"password":"我的 密码,含标点"}`, `password="token=abc 中文"`, `secret="天王盖地虎 宝塔镇河妖"`, `{"password":"Qm\"Zx 一二三"}`, `{'password':'Qm\'Zx 一二三'}`, `"password":'Qx7 Zr9'` and `password="it's 密码"` read `{"password":"«redacted»"}` and the like (were `«redacted»`); the content inside the quotes is withheld byte for byte as before, the label and the quotes stay. A quoted value with no closing quote reads as before on both trees (to the white space, KNOWN-LIMITS).
527
+ - **Readings changed in existing criteria.** `backlog4343` M1 L1–L4 (an escaped U+3000 / NBSP after a token, ASCII-only writers): `Authorization: «redacted»` → `Authorization: «redacted»请检查您的密钥是否正确` — the escaped space goes with the token, the words after it are none of it. M2 L8 (an emoji glued to a token): `Authorization: «redacted» key refused` → `Authorization: «redacted»🔒 key refused`; L10 (a full-width full stop glued to a token): `Authorization: «redacted»` → `Authorization: «redacted»。请检查您的密钥是否正确` — R3; the token is withheld whole in every cell. The raw-body reading's own check (G5: spans that do not account for its output ⇒ the whole text) keeps its cell on a new vehicle (`see https://h.example/p?token=abc12345678Proxy-Authorization: x`, whole as before); the old vehicle `password=Authorization: Bearer ` now reads `password=Authorization: «redacted»` — R2: it is labels only, the one value slot after `Bearer ` is empty (a search of 1 260 label × tail × suffix texts finds 15 such texts on the base tree, 0 here). `backlog4329` W6 (#4335, closed): `password=https; endpoint https://private.example` read `password=«redacted»; endpoint «redacted»://private.example` on the base tree and `password=api; failed /api/private` read `… failed /«redacted»/private`; now `password=«redacted»; endpoint «redacted:url»` and `… failed «redacted:path»` — R1: a value of three or five characters no longer splits a URL or a path, so the human tier withholds them whole, as v7.67.1 did (more withheld). E1 / V1 read the same parts through `egressCredentialFinds` (spans) where they read `egressCredentialParts` (strings); their readings are unchanged. Re-read by the revision round (an escape run read to its end): ③'s ASCII-only fence sentence `鉴权错误 api_key=<token>` NBSP `无效或已过期,请在控制台重新生成。` reads `鉴权错误 api_key=«redacted»请在控制台重新生成。` (was `…«redacted»无效或已过期,请在控制台重新生成。`; the base tree withheld the whole sentence after the token); ⑥'s escape texts in a row and the KL-4374-c switch's ASCII-only cells read withheld whole (were shown from the first escape on / carried).
528
+ - **Not changed.** The request-echo pass for declared values; what the vocabulary withholds where it finds it; a strong name's value; the 64 KiB body cap; the providerMessage / terminal.message invariant (#4343: providerMessage is never weaker on credential pieces — its cells pass unchanged except those listed above); `carriesTheRest`'s fallback.
529
+ - **Rules.** Three, each read at every place its question arises: R1 is one floor (the vocabulary's own `CREDENTIAL_MIN_CHARS`, no new number) where a found value used to be taken out everywhere — the values the sentence's reading finds and those the raw-body reading finds alike; R2 is one lookahead (`notALabel`, a label with nothing after it, "after" read by the grammar of the value at hand: the keyword value's, the bearer tail's quoted value, a header's parameter) at the three places a value starts; R3 is one token class derived from the engine's tables by code point (`tokenClass` / `tokenRun`), one floor read on the whole value (`runFloor`) and one escape stop (`ESCAPE_STOP`, a run of escapes read to its end, the same for every row), which every token row reads in place of its own `[^…]` / `\S` run. The revision round added none: each of its five fixes closes a place one of the three was read short. The second revision round added none either. It reads R1's floor on the whole value instead of on its pieces: `elsewhereWhole` (`src/brain/provider-message.ts`) searches the same found values once more, in the sentence read without its characters that do not show (`withoutUnrenderable`, beside the fold it inverts), and hands the hits to the existing `FoundElsewhere` spans. No new number and no new class: the cut set is the fold's own `UNRENDERABLE_CHAR_CLASS`. The header trim the request-echo spellings start from (`httpTrimmed`) reads inward from a value's two edges: its expression retried a trailing-run alternative at every character of a white-space run inside the value, the only part of the search whose cost grew with that run. Its results are the same for every string. Retired: `egressCredentialParts` (strings found, then searched for) — the two exits read one positional answer, `egressCredentialFinds`. Internal renames, none on the package barrel.
530
+ - **Cost.** Runs of 8 million characters through the three new constructs (the weak value's lazy stop, the bearer tail, the header value's held run, the signed URL parameter, the sonar login): an answer, the value withheld, 272 – 628 ms CPU each (k3s8; the base tree 222 – 410 ms on the same texts); 32 000 backslashes after a URL parameter's value: 11 – 12 ms (base 8 – 10; an escape is read behind one backslash, so a run of them is read once); 1.3 million escapes after a token, followed by a letter or by a space: 370 – 375 ms (base 223 – 234), no stack exhausted (the stop reads the escape and the six characters after it, no repeated group); 2 and 8 million backslashes after a token: 0.61 – 0.63 s and 2.4 s (base 0.47 – 0.50 s and 1.9 s), linear on both. #4379 (one read of a 64 KiB body with 3 019 short distinct values, the test fence's `nperf` shape, through `readProviderMessage`, k3s8 at load 45 – 50, the two trees alternately, two rounds of three reads): 0.69 – 0.80 s on the base tree, 0.92 – 1.08 s here; a 64 KiB body with no credential 20 – 25 ms against 21 – 33 ms; no value carried on either (KNOWN-LIMITS KL-4343-c: the vocabulary's sources grew from 36.6 KB to 56.8 KB and each render rebuilds them). A first cut of this car read the same body in 2.8 – 3.0 s (a token floor written as n copies of the character, a hit rendered twice); both are gone. The revision round (k3s8, the base tree, the previous head and this head in one container, interleaved, three rounds of three reads, load 54 – 70): the leg's three 64 KiB dense bodies read 0.97 / 0.81 / 0.93 s on the base tree, 1.18 / 1.08 / 1.19 s on the previous head and 1.42 / 1.22 / 1.43 s here (medians; terminal.message 19 – 39 ms on all three) — the vocabulary's match sources are 29.1 K characters on the base tree, 49.3 K on the previous head and 61.2 K here, and each render rebuilds them (KNOWN-LIMITS KL-4343-c); 8 million characters: a bearer token 0.26 – 0.30 s on all three, a weak value glued to `中` 0.32 – 0.36 s (previous 0.31 – 0.35, base 0.23 – 0.27), an `Authorization` value 1.02 – 1.03 s (previous 1.84 – 1.90, base 0.30), a keyword's value 0.64 – 0.67 s (previous 0.51 – 0.54, base 0.26 – 0.27); 17 shapes at 1 / 4 / 16 / 64 thousand pieces linear on all three, the slowest at 64 thousand a run of `Authorization: Bearer ` labels (0.55 s here, 0.65 s previous, 0.70 s base). The header value's loop answers at the base tree's sizes again (a million comma pieces, 625 000 `a=b` pieces, 500 000 quoted parameters; two million musical format controls, lone high surrogates or variation selectors), and two shapes this round first read in exponential and in 1 536-character-per-escape time — a header value's 64 or more backslashes before a quote, escapes between escaped backslashes — answer at once: a run is read whole and the escape stop reads a run to its own end only. The second revision round adds one search of the same found values. It runs only where the sentence holds a character that does not show, or a found value holds white space (a scheme word and its credentials count). Such a value can hold a long white-space run, and the header trim the request-echo spellings start from retried its trailing-run alternative at every character of that run: four-fold per doubling. The round's first cut read a 60 100-byte body (`{"note":"Set-Cookie: sid=abc","error":{"message":"request failed"`, 60 000 spaces, `"retry later"}}`) in 3.3 s and a host-seat value of 65 536 spaces with 65 zero-width spaces in 4.4 s (k3s8; 7.9 s / 7.3 s on a busy local host). Its second cut skipped a value that stands over the whole sentence; quoted credentials (`Authorization: Token token="uyauqfaeoheao`, 60 000 spaces, `zdrdbt" was refused; …`) still read in 3.3 s, and a text-form Set-Cookie inside the provider's sentence in 3.5 s. The previous head read both in 0.01 s. The same trim made the raw-body reading's own finds four-fold on v7.67.3 (a local host: 51 ms at 4 000 spaces, 593 ms at 16 000) and on the previous head: a body whose message is `Authorization: Bearer`, 60 000 spaces and a token, with a Cookie member after the error, read in 3.2 s (k3s8). Now the trim reads inward from the edges. On k3s8 (the previous head, the second cut and this head in one container, load 36 – 55), at 15 000 / 30 000 / 60 000 spaces this head reads the whole-sentence body in 47 / 39 / 55 ms (previous head 27 / 6 / 12), the quoted credentials in 28 / 49 / 62 ms (second cut 232 / 851 / 3 265; previous head 5 / 6 / 10), the Set-Cookie in the sentence in 19 / 30 / 44 ms (second cut 237 / 881 / 3 537; previous head 6 / 7 / 13) and the bearer body in 43 / 66 / 99 ms (previous head 213 / 804 / 3 156). The host-seat value at 16 / 32 / 64 thousand reads in 43 / 22 / 41 ms (previous head 33 / 7 / 16). The W6 pin's 24 seeded random cells, up to 129 000 characters, read in at most 131 ms (previous head 56 ms). A quoted strong value of 16 / 64 thousand spaces reads in 22 / 7 ms on all three trees. The first read of each run includes warm-up. On the second cut, a cut weak token of 65 to 262 thousand characters read linearly, in 0.12 – 0.35 s, and a quoted several-word value cut once in 0.06 – 0.09 s. Every output is byte for byte the same on the round's earlier cuts and this head: 107 152 corpus cells, the focus rows' readings, and the real Runner's 16 cells. Past about 11 000 white-space characters inside a found value, its spellings no longer fit one matcher and the sentence is withheld whole (KL-4374-e). One reads differently from the previous head: a cut weak token of 60 000 characters, repeated once, in a JSON body is withheld whole here. Its search's matcher grows past the engine's limit, and a matcher too large has always meant the whole text. The previous head withheld the value and its repeat; at 30 000 characters all three trees read the same. Dense bodies (k3s8, the previous head and the first cut interleaved, three rounds of three reads at load 45 – 52): the three 64 KiB bodies read 1.49 / 1.25 / 1.43 s on the previous head and 1.52 / 1.32 / 1.55 s with the added search (medians, the last a body of bearer tokens). terminal.message took 20 – 34 ms on both. The 8-million-character runs are unchanged: they do not read providerMessage (0.27 / 0.32 – 0.36 / 1.01 – 1.03 / 0.64 – 0.65 s on both).
531
+ - **Pins.** `test/backlog4374-4375-token-end-found-values.test.ts` (① the four sentences and `password=on` on both writers and the host seat; ② the fence's 126 sentences against the v7.67.1 yardstick (sema-test `662ab2c59a`, `repro/pmsg1-20261112/drive/nsentences.mjs`); ③ the CJK grid, 108 cells × two writers, exact (sema-test `662ab2c59a`, `drive/cjk2cells.mjs`), and the fence's seven escaped-space sentences; ④ nine strong-name CJK values × two writers; ⑤ sixteen quoted values; ⑥ the five less-withheld witnesses and the nine invisible cuts; ⑦ the raw-body reading's own check; ⑧ the fold map; ⑨ a real Runner, 400 terminal and 429 retry frames; ⑩ 8-million-character runs). `test/backlog4374-4375-differential-{tokens,passwords}.test.ts` with `test/backlog4374-4375-differential-shared.ts` (the seeded generator, the five switches). `test/backlog4374-4375-fix1-withheld-again.test.ts` (the revision round: F1 nine header-parameter cells and the label that stays a label, F2 seven characters above the basic plane that do not show and two that do, F3 four raw-body values echoed and the header name a raw value ran over, F4 five weak values whose part before a showing character is withheld and the declared bounds, F5 six escape runs and the runs that end a token, F6 the header loop at the base tree's sizes, a backslash run of 64 or more before a quote answering at once, and a host Brain's status frame and terminal at a million comma pieces, F7 KL-4374-a's two places, and the ten cells handed to test). `test/backlog4374-4375-fix2-cut-value-whole.test.ts` (the second revision round: W1 the two shapes, 7 | 6 and 11 | 3, on all eight exits, the five that search nowhere else reading as v7.67.3; 3 | 11 and the strong, weak, bearer, parameter and userinfo rows; W2 fifteen cuts, line breaks, three characters the fold leaves alone; W3 the repeat's own cuts, three cuts; W4 a JSON writer's escaped tab, six ASCII-only escapes, a quoted parameter with white space, white space written as itself at the host seat, `password=abc def`, a repeat that spells the value's white space as a URL, a form or a JSON string writes it (`%20%20`, `++`, `\t`, `%09`, `%C2%A0`, `%E3%80%80`), a quoted non-credential value; W5 a value under 8, a piece under 8, `password=api`, the one-character piece, a piece of 8 or more alone; W6 a long white-space run inside a found value read under 1 s at 60 000 — the two whole-sentence inputs, quoted credentials repeated glued, a Cookie member inside the sentence, the raw-body reading's own finds, the header trim against its expression, 24 seeded random cells — with each size's reading, KL-4374-e past about 10 000). Re-pinned: `backlog4343` M1 / M2 / G5 / E1, `backlog4329` W6 / V1, `test/fixtures/backlog3826-inline-untrusted-authors.json` (the provider-message author's argument), `backlog954` (the four rows' texts).
532
+ - **Reach.** R2 and R3 are readings of the credential vocabulary itself (its wide forms — the keyword value, the bearer token and tail, the `Authorization` header value, `sonar.login`, the signed URL parameter): every surface the egress pass reads takes tokens and labels this way — tool arguments and results a person is shown, run frames, memory writes, mod and workflow texts, thrown text, and `scanSecrets` / `renderSecrets` of `@sema-agent/primitives` at the wide grade. The strict forms (what is refused), the fragment forms and the env value checks are unchanged. R1 is the remote-words reading: a provider's error, an MCP server's failure, a frame or transport failure, the memory distiller seat's failure.
533
+ - **Consumers.** @server @cli @client-core: a provider's reason in Chinese or Japanese now keeps the words after a credential, and a sentence that explains how to authenticate keeps its header names — a match on the old readings (`Authorizati«redacted»`, a reason that stopped at the token) reads the new ones. @test: the pmsg1 fence's 126-sentence corpus and CJK grid are this car's pins; the five less-withheld forms are for black-box counterexamples (KNOWN-LIMITS KL-4375-a / -b, KL-4374-a / -b / -c).
534
+
535
+ ### Runners given the same session store object and the same mailbox object share one session route: a background completion one of them parked reaches the session's next leg on the other, and one that arrives while the other runs a leg of the session reaches that leg (#4396 S0 / S1a / S1c; ruled C-R1801; behavior change; narrowing: two, below (the bounds; two legs of one session at once), open to veto @server; widening: one, below; hard-breaking: none; closed sets: `ConfigRefusalCode` +1; exports: +`parksInSessionBox`, none removed; wire: none) (@server @test)
536
+
537
+ - **Rule.** Where a notification addressed to a session goes — the parked records, the live legs a frame is routed to, the delivered and durable key sets a retry folds against, each session's occupant and box binding — is one table per session store OBJECT × mailbox OBJECT in a process (`sessionRouteTableOf`, minted in the Runner's constructor beside the MCP pools' `sessionMcpPoolsOf`, the same shape). "The same pair" is two references compared, both without a mailbox counting as the same: a wrapped store, a second handle onto the same backend, or another mailbox object is another pair, with its own table; nothing is merged by session id or by deps object. Each Runner keeps a view with its own two seats: a discard is announced on its own `onNotice`, and the box of a session the table holds no seat for is judged by its own deps.
538
+ - **Before (measured, `test/backlog4396-shared-route-table.test.ts` on the base tree; two real Runners over one store and one file mailbox or none, floor off, leg 1 on A spawns a background child).** The child ends after leg 1 and leg 2 runs on B: leg 2's model reads nothing (`<task-id>` blocks per request `[0]`, no stream frame), and the completion arrives late on leg 3, back on A. The child ends during leg 2 on B: `[0, 0]`, nothing, late on leg 3. B's leg ended or was aborted before the child ended: leg 3 on B reads nothing, leg 4 on A carries it. An append fault of the box went to A's `onError` although B's leg seated the session last; a parked frame for an earlier occupant was discarded and announced on A, a leg later.
539
+ - **Now.** The same cells on the head: leg 2 on B reads the completion — `[1]` after leg 1, `[0, 1]` during leg 2 — its stream carries it once, and leg 3 carries nothing more (one frame in all, mailbox or none); after B's ended or aborted leg, leg 3 on B carries it once; two legs of one session open at once on A and B carry one frame in all; a wrapped store or another handle onto the same backend reads exactly as before (leg 2 nothing, leg 3 on A).
540
+ - **Widening (@server).** A host's hands / hands-less twins (the same deps spread, so the same store and mailbox objects) now hear a completion on the lane the session's next leg runs on, instead of when a leg happens to fall back onto the Runner that parked it. Only the Runners handed the same session store object and the same mailbox object see each other — not every Runner of a process: on the server, the hook-agent Runner (its own fresh in-process store) and the sub-Runner (a wrapped store) are other pairs and do not share (KL-4396-c); the worker Runners of one leader run are handed that run's one session store and no mailbox, so they share one table too — their sessions differ, so nothing crosses between them (read from the server's code, not measured).
541
+ - **A peer's words while the session's leg runs on the other Runner (@server; measured, pins W and O).** A worker's `SendMessage("main")` while the leader session's leg is live on the other Runner of the pair (floor off): before, it parked in the session's durable box — the worker read "Message parked durably for main (session …)", the leg read it at a turn boundary through the box drain, and the observer was called twice; now it goes to that live leg, as on one Runner — the worker reads "Message sent to main — queued for session … at its next turn boundary", the leg reads it at its next boundary, the observer is called once (the producer's). If the leg is aborted before that boundary (a host aborting a leg whose client went away), the frame is already on the aborted leg's stream and the leg's end parks it at the session's seat — a peer's words, and an engine frame under the floor, into the durable box: the next leg reads it once, in this process and after a restart (new session store and mailbox objects over the same rows and directory, a new Runner), as before; an engine frame without the floor in process, lost on a restart, as before (it parked in process on the producer's Runner then). Each read once by a model; the stream carries the frame on the aborted leg and again on the leg that reads it — what one Runner already did (read on the base tree). A frame arriving during the leg's last model call is read by that leg.
542
+ - **Narrowing (open to veto @server).** The three bounds of the route count once per pair, not per Runner: at most `MAX_PENDING_SESSIONS` = 100 sessions hold parked records (oldest evicted first; that session's next leg reads "… were dropped before this turn"), the delivered and the durable key sets each cover 100 sessions (an evicted key can cost one repeated delivery), box bindings 4096. Two Runners over one pair had 200 between them; now 100. Measured (pin K: two Runners park one frame each for 120 sessions, alternately, then each session's next leg reads): before, all 120 delivered; now 100 delivered and the 20 oldest sessions each read the dropped line on their next leg — none silent, no notice either way. The numbers are unchanged (KL-4396-a).
543
+ - **New refusal.** On a pair with a mailbox, a Runner whose `sessionBoxEngineFrames` (only an explicit `true` counts) differs from the floor already registered for that store and mailbox is refused at `new Runner`: `config.session_box_floor_mismatch` (`CONFIG_REFUSAL_CODES`, `ConfigRefusalCode` 195 → 196); its sentence names the registered value and the way to change it (another session store object), not "another Runner" — the one that registered it may be gone. Without it, a shared table's box binding would carry the floor of whichever Runner's leg seated the session last, and "does this frame park in the box" would be answered by which lane ran last. The pair keeps its floor while its store object lives (there is no Runner close): flipping the floor in one process takes a new store object (KL-4396-d). Without a mailbox there is no box, so nothing is compared. `mailboxStore: null` (outside the field's type) picks the table of no mailbox at `new Runner` instead of throwing a TypeError there; a leg on such a Runner still fails as before, reading the mailbox (measured on both trees). @server: one status row (a boot error — your twins share runnerDeps, so they agree today).
544
+ - **Changed for the worse in one order (open to veto @server; not reachable on the server, read from its code).** Two legs of one session running at once on two Runners have no session lock between them (each Runner's lock is its own), so one of them always fails `provider.error` ("a model request must not end on the assistant's own row …"): with no frame in play, the later-opened one; with a completion arriving, the one it does not land on. Before, one order got through by luck — the completion landed on the earlier-opened leg (the session's live lane on the Runner that spawned the child), and both legs completed; the shared table hands it to the newest live lane, so that order now fails too (KL-4396-e; measured on the base tree and the head, pin C). A host whose backend claims a run per session (the server does) never runs two legs of one session at once.
545
+ - **A repeated external key folds across the pair where it passes the session's route.** Two Runners of one pair `notify` an idle session under the same external key (same `task_id` / `status` / `seq`, different content), each on a stream whose leg has ended: the second now folds into the first, as a repeat on one Runner always did (`TaskStream.notify`'s key contract); before, each Runner kept its own key set and the session's next legs read both (measured, pin N). A `notify` on a stream whose own leg is live takes that leg's queue first and folds against that run only, as before (read from the code), so two legs of one session live at once on two Runners each fold only their own.
546
+ - **Each Runner's seats on the shared table.** An append fault of a session's box is reported to the `onError` of the Runner whose leg seated the session last (the binding is that leg's), not the Runner whose producer routed the frame; a discard is announced on the Runner whose view made it (pins E). Both stay that Runner's after the host drops it: a binding a dropped Runner's leg wrote reports there until a later leg seats the session, and a producer of a dropped Runner announces its discards there.
547
+ - **A hands-less leg receives what it cannot open (KL-4396-b).** A background command's or a monitor's completion now reaches the hands-less lane's leg on time; its `<output-file>` names a path in the command's environment, which that leg cannot read. Measured (pin P): a background command run on A (with an environment) ends after leg 1; leg 2 on B (none) now reads, in its first request, `<summary>Background command "t" completed (exit code 0)</summary>`, `<result>OUT4396</result>` and `<output-file>/tmp/…/bash-task-<uuid>.output</output-file>`, with `ReportFindings` and `ReadToolResult` as its only tools; before, leg 2 read nothing and leg 3 on A carried it. No rule holds such frames for a hands leg.
548
+ - **New export.** `parksInSessionBox(payload, { sessionBoxEngineFrames })` — would a session's durable box take this frame under a deployment's floor: a peer's words (`agentMessage`) always; one of the engine's three lanes wearing no shell-less carrier only under an explicit `true`. The park seat asks this very function of the box it holds (the module-private predicate it replaces is gone), so a host and the engine read one answer; whether a frame parks at all (no live leg to take it, a box bound for the session) is the box binding's business, not the predicate's.
549
+ - **Docs made true (S0).** KL-969c: the mixed-version floor for any session box record is ≥ 7.64.0 (#3453's occupant keys), not ≥ 7.30.0, and the floor moves only the three engine lanes — a background shell's completion never parks in the box (it moves with #4363, 7.70.0). KL-4111-d: during a rolling upgrade a 7.67.x drainer reads a 7.68.0 frame's `refusedAsks` member but renders no `<refused-asks>` line. `RunInternals.onTaskNotification`: the observer is called once by the producer, again by a later leg's sink when the frame came through the session box drain (two in all), not again through the in-process turn-open drain or a live leg (one) — this release does not change those counts; a frame the shared table now routes onto a live leg instead of the box is observed once. INTEGRATION-CORE: "the same process" in the parked-parent paragraph and KL-1097-a read "Runners given the same store and mailbox objects" (before: the same Runner).
550
+ - **Not changed.** Every bound's number; the session lock and write ledger (still one Runner's fence); read-file states, permission-mode seats; the box's records and codec; cross-process delivery (only the box, as before); the observer's per-path counts; the process-wide tables keyed by session id alone — the session retain ledger (`getSessionRetainLedger`) and `defaultTaskRegistry` answer other questions and stay where they are (INTEGRATION-CORE §11.2).
551
+ - **Rules.** −1 unwritten rule ("the route table is a Runner's", and its compensation "two Runners of one process reach each other only through the session box"); +1 mint, of the existing shape; one predicate with two readers instead of a private copy. No switch to opt out of sharing (that would be a second reading).
552
+ - **Known limits.** KL-4396-a (bounds per pair) · KL-4396-b (hands-less leg, output file) · KL-4396-c (sharing is by reference: a wrapper silently is another pair) · KL-4396-d (one floor per pair for the store's life) · KL-4396-e (two legs of one session at once on two Runners: no session lock between them, one always fails `provider.error`; the order that got through before now fails too — above) · KL-4111-d (mixed-run `refusedAsks` line).
553
+ - **Consumers.** @server: no code change needed for the twins; pin `runner.sessions === handsLessRunner.sessions` and the same mailbox object handed to both (a wrapper on either one silently ends the sharing); a test of yours that pinned the late arrival after a lane switch now reads the completion one leg earlier. @cli @client-core @sdk: none (no Runner of yours shares a store with another).
554
+ - **Pins.** `test/backlog4396-shared-route-table.test.ts` (real Runners, the scripted model brain, a real background child, a real file mailbox or none; every cell read on the base tree and the head) — S the two shapes × file mailbox / none · O the observer by path · F the floor refusal (both orders, `"yes"`, with a mailbox; its sentence) and its absence (same floor, another mailbox, a wrapped store, no mailbox — absent or `null`; a `null` Runner's leg as before) · W the live leg aborted or ended after the frame reached it ⇒ where the frame is, and the next leg in this process and after a simulated restart (the same on both trees) · N a repeated external key notified on two Runners' ended streams ⇒ folds · H another handle / a wrapped store ⇒ no sharing · C two legs of one session at once on A and B ⇒ one frame · L the live lane ended / aborted before the completion ⇒ parked, delivered once · E the onError and onNotice seats · K the capacity · P a background command's completion on the hands-less leg. `test/backlog4396-parks-in-session-box.test.ts` — the truth table, the park seat reading the same function, the root export. Re-pinned: #3874's `test/backlog3874-cross-process-completion.test.ts` modelled another process with a second Runner over the same store object, which now shares the first one's table (its P15 read a copy kept on that table); its second Runner reads the sessions through another handle, as another process does.
555
+
556
+ ### A permission rule from a person's settings that the compiler cannot read is skipped and told — it no longer refuses the whole request (#3851; behavior change: widening — a user- or project-layer deny / ask rule whose text the compiler cannot read no longer refuses the request, open to veto @server @cli @client-core @test; hard-breaking: none; wire: one new user-audience notice code `permission.settings_rules_skipped`; `config.permission_rules_skipped` unchanged; closed sets: `ENGINE_NOTICE_CODES` +1; exports: +3)
557
+
558
+ - **Rule.** `PermissionRule.layer` names the layer that wrote a rule in the engine's rule-source words (`user` / `project` / `org` / `session`). One predicate, `skipsUnreadableRule(issue, { behavior, layer })`, read by the compiler and by a host's pre-check: a rule is left out of the policy instead of refusing the set exactly when its layer is `user` or `project`, its behavior is `deny` or `ask`, and its text alone is refused under the engine's defaults (no rule faces, the default caps, no declared bases). A rule refused only because of what the host wired (`ruleFaces`, `caps`, `pathBases`) is the host's to fix and refuses the set. Everything else follows `onInvalidRule` exactly as before.
559
+ - **Before.** One bad entry in a user's settings (`Artifact(action:bogus)` on an ask list) refused every request with `config.invalid_permission_rules` (a serving layer answered 422) until the user found and fixed it.
560
+ - **Now.** The run goes on without it, and the person is told once per session per set: `permission.settings_rules_skipped` (audience `user`) — `1 permission rule could not be read and was skipped — this run goes on without it: the ask rule "Artifact(action:bogus)" (your user settings; invalid.command_rule) is NOT in force — calls it was written to ask about are not asked by it. Fix or remove it (this notice's detail names each rule and why).`; a deny rule's clause reads `… calls it was written to refuse are not refused by it`. `detail: { rules: [{ rule, reason, behavior, layer }] (first eight; reason = the issue code), count, sessionId, sourceSessionId?, agentId?, runId }`. Every leg tells it — a delegated agent, a background agent, a workflow member included — for the rules of its own policies (`toolPolicy`, `basePolicyForResumeEdit`) that no ancestor of its delegation chain holds; a delegated leg's notice goes to its tree's root naming the leg (`… — the run of a delegated agent (<agentId>) goes on without it: …`), and its once-per-session record is its own session's (a forked leg tells again). Only a person's rows are read off `ToolPolicy.skippedRules` (`toolPolicySkippedRules`): an entry a host-built policy carries under another layer, or none, is not named. Never in the model's context. Reference: CC 2.1.321 `cli321.js` L276259 (`Invalid permission rule "<r>" was skipped: <error>`, every settings source).
561
+ - **Widening (open to veto @server @cli @client-core @test).** A user- or project-layer deny or ask rule whose text cannot be read no longer stops the request; until it is fixed it protects nothing — a broken deny lets through what it was written to refuse, a broken ask lets run unasked what it was written to ask about (said in the notice). Only when the host sets `layer` to `user` or `project`.
562
+ - **Not changed.** `org`, `session` and rules with no layer refuse the set as before, and under the host's `onInvalidRule: "skip"` take v7.68.0's path byte for byte: `onIssue` when given, else the process-seat line `config.permission_rules_skipped` (audience `operator`, at construction, whether or not a run installs the policy); none of their text reaches the person. Host-owned issues refuse under every layer: `unsupported.allow`, `invalid.behavior`, `invalid.entry_type`, `unsupported.path_base`, the whole-set cap, and an issue the host's `caps` / `ruleFaces` cause (`invalid.cap_exceeded` under a lowered `maxRuleLength`, `unsupported.tool_unknown` for a rule that reads without faces, a host face's `unsupported.param_non_scalar`, `invalid.name_ambiguous`). A layer value outside the four words, or a read of it that throws, is no layer (the refusal names an outside word).
563
+ - **Wire change, three readers by audience (@server @client-core).** No reader matches the code by name today; three read by audience and change on pickup: server's session-stream whitelist `ENGINE_NOTICE_WIRE_CODES` (its gate requires every user-audience code registered or refused — register `permission.settings_rules_skipped` to forward it); client-core's projected audience table (user-audience codes +1); server's export ledger (one row per root export: +3).
564
+ - **Additive.** `PermissionRule.layer`, `ToolPolicy.skippedRules` (a carried member: `combinePolicies` folds it, `wrapToolPolicy` carries it), root exports `skipsUnreadableRule`, `toolPolicySkippedRules`, `SkippedPermissionRule` (type).
565
+ - **Rules.** +1 (one predicate: a person's layer leaves its unreadable text out) and +1 carried member; the host's own path untouched.
566
+ - **Pins.** `test/backlog3851-bad-rule-skip-by-layer.test.ts` L1–L17 (real Runner): user bad ask / deny ⇒ the run completes, Read runs unasked, one notice with its clause (controls: the readable rule asks / refuses) · project ⇒ the same · org / no layer / session ⇒ refused in v7.68.0's sentence · an outside layer word ⇒ refused and named · one bad + one good ⇒ the good deny refuses · duplicates and a second run ⇒ one notice · host wiring (C09 caps, C10 faces, a host face's non-scalar parameter, an ambiguous name value) ⇒ refused; broken text ⇒ skipped with or without faces · skip mode with no layer ⇒ the process-seat line, `onIssue`, nothing in the run (C12 / C13 / C21b) · eleven no-layer shapes ⇒ v7.68.0's code, issues and sentence (C20) · a throwing layer read ⇒ the coded refusal · the resume-edit seat read · delegated legs: a child holding a policy its root shadows tells to the root naming itself (C18, control C24), a policy the root holds is said once (C18b), a separate child Runner, a background agent, a workflow member · a broken allow entry ⇒ `permission.allowed_tool_not_granted`, the run goes on.
567
+
568
+ ### The A2A client's `A2A-Version` header now says `0.3`, the line its requests are written in: it said `1.0` over 0.3 method names, so a 1.0 server (alone, or with its 0.3 compatibility layer on) read the request as a 1.0 request and answered `-32601 Invalid method`; a refusal `-32009` now reads `(VersionNotSupported)` in the model's sentence (#4386; behavior change: the `a2a-version` value on every A2A request, `1.0` → `0.3`, and one name in the sentence of a `-32009` refusal; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: one header value) (@server)
569
+
570
+ - **Rule.** One header, one mint (`requestJson`, `src/core/a2a.ts`), one constant (`A2A_WIRE_VERSION`): the header states the line a request is *written* in — the 0.3 line's method names (`message/send`, `tasks/get`), card fields (`url`, `preferredTransport`), lowercase states and `kind` discriminators. It rides every request this client makes: both well-known card paths, each hop of a card read a redirect moved, the authenticated extended card, `message/send` and `tasks/get`. Raising the wire to 1.0 is a different change (a design ticket), not this one.
571
+ - **Before (measured; the official A2A JS SDK 1.3.0 server classes over loopback, wire only, not through this engine).** The same request shape (`message/send`, 0.3 message objects) with header `1.0`: `-32601 Invalid method.` from a 1.0-only server and from a 1.0 server whose 0.3 compatibility layer is on — the layer serves the 0.3 handler only for a request that says 0.3 (or says nothing), so it was never reached. With header `0.3`, or none: the layer on → the call succeeds; 1.0 alone → `-32009` (the version is not supported; supported versions: 1.0).
572
+ - **Now.** Through a real Runner and a loopback peer modelled on those readings: a 1.0 server with the 0.3 layer on answers and the model reads the answer (was `-32601`); a peer of the 0.3 generation is unchanged; a peer that serves only 1.0 is still not reached, and what the model reads changes from `refused message/send with -32601 (MethodNotFound): Invalid method.` to `refused message/send with -32009 (VersionNotSupported): The requested A2A protocol version '0.3' is not supported. Supported versions: 1.0` — the engine names the code (the A2A code table gains `-32009`, a vocabulary row, not a registered code) and the peer's own words, bounded as before, say which lines it serves.
573
+ - **Who is affected (@server).** A peer that was reachable only because the header said `1.0`: none measured — both 1.0 configurations refused the old shape, and a peer of the 0.3 generation does not look at the header. sema's own A2A server does not branch on the header (it logs it; known or unknown, present or absent, it answers — read from its code, not measured on a running server), so sema-to-sema is unchanged; its response header and its card's `protocolVersion` say 1.0 today and should read 0.3 with its next version, to match what it speaks. A deployment that declares its own `A2A-Version` header for a peer keeps owning the name (a declared header replaces the default, in any case); one that pinned `0.3` there to get past this may drop it.
574
+ - **Not changed.** The wire shapes (method names, objects, card reading, task states), the transport, the error classes and codes, the card paths and their probe order, every other header, every budget. The client still reads neither a card's `protocolVersion` nor a response's version header: no negotiation (KL-4386-a).
575
+ - **Known limit.** KL-4386-a: this client speaks the 0.3 line and does not negotiate; a peer that serves only 1.0 refuses it (`-32009`) until the wire itself moves.
576
+ - **Pins.** `test/backlog4386-a2a-version-header.test.ts` — ① every kind of request carries `0.3` (five kinds, plus a redirect hop) · ② a 1.0 server with the 0.3 layer on is reached through a real Runner, a peer of the 0.3 generation is the control · ③ a 1.0-only peer is not reached and the model's sentence names `-32009 (VersionNotSupported)` with the peer's statement of its lines; the two assertions that read `1.0` (`test/a2a-materialize.test.ts`, `test/backlog3687-a2a-extended-card.test.ts`) now read `0.3`, and the two override pins (`test/a2a-materialize.test.ts`, `test/backlog1491-protocol-credential-binding.test.ts` B5) override with `1.0`, so they keep telling a replaced default from one sent beside it.
577
+ - **Wire.** One header value: `a2a-version: 1.0` → `0.3` on every request an A2A peer receives.
578
+
579
+ ### The shipped package no longer says the internal repository's name — the MCP client introduces itself as `sema-agent-core` at the package's own version, the same to every server; two console sentences and two schema vendors say `@sema-agent/core`; `gate:packages:pack` reads the packed bytes of the root and of every package for the name (#4464; narrowing: one, below, open to veto @server @cli @client-core @web-client; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: the MCP client's introduction and the sentence of `config.host_sink_failed` on two seats) (@cli @server)
580
+
581
+ - **Rule.** What a consumer installs names the engine one way: `@sema-agent/core` (the package, and the prefix of the engine's console sentences) and `sema-agent-core` (the MCP client's introduction). The internal repository's name is in no label the engine chooses. Three kinds of mention stay, each because it is a fact or a record rather than a label: `repository.url` in each package.json (the remote's real address), the Licensed Work line of the licence text, and one sentence inside the released 7.57.0 block of this file. `scripts/internal-name-allow.json` lists them by package + file + locating text + exact count, and `gate:packages` reads the list; a mention anywhere else is red.
582
+ - **Before (measured: the root and the four packages at the stage head, each packed with `npm pack --ignore-scripts`, every file of every tarball searched).** 19 mentions in the five tarballs: 11 that stay (the three kinds above: `repository.url` ×5, licence line ×5, the CHANGELOG sentence ×1) and 8 labels — `dist/core/mcp.js` ×2 (the MCP client's name and a Standard Schema `vendor`), `dist/core/mcp-host-read.js` ×1 (a `vendor`), `dist/core/runner/forward-sink.js` ×2 (console prefixes), `dist/engine/llm/types.d.ts` ×1 (a JSDoc line pointing at an internal design file), `dist/index.d.ts` ×1 (the file header), `packages/wiki-gate/README.md` ×1. In `src/` the same name stood on 7 lines. The MCP client introduced itself to every third-party server it dialled as the internal name + `/` + the configured server name, with version `0.1.0` — a literal that was never the package's.
583
+ - **Now.** (a) The MCP client's `clientInfo` is `{ name: "sema-agent-core", version }` where `version` is `engineVersion()` — the package's version as the generated build-time constant (#4477), the one source the trace's `engineVersion` and the store-contract kit already read — and the pair is the same to every server; the configured server name is no longer sent. (b) The two console sentences of a contained host-sink failure open `[@sema-agent/core] ` (was the internal name in the same brackets). (c) The two Standard Schema `vendor` strings of the tool / resource listing envelopes read `@sema-agent/core` (nothing reads them: the SDK only checks that the member exists). (d) The file header of `src/index.ts`, the `reasoningEffortLevels` JSDoc (its "see" pointer to an internal design file is dropped) and one sentence of the `wiki-gate` README no longer name it. (e) `gate:packages` gets a byte reading: `gate:packages:pack` searches every file of the root's and of each package's packed tarball (compiled code, declarations with their JSDoc, manifests, markdown, licence) for the name, names `file:line` of each mention the table does not cover, and is red when a table row's count is off (the line is gone, or says it more often) or when a tarball lacks a target its `exports` map names (a root with no `./bench` is a partial emit, not a clean bill); `gate:packages` (static) reads the table itself. No new script, no roster change.
584
+ - **Reference.** The reference (2.1.321, `cli321.js` L314917) builds its MCP client with `name: "claude-code"`, `title: "Claude Code"` and `version` = its release string — no server-name suffix. The suffix is retired to that form; `title` is not added.
585
+ - **Narrowing (open to veto @server @cli @client-core @web-client).** An MCP server that picks behaviour, log lines or an allow-list by the client's name now sees `sema-agent-core` (no suffix) where it saw the internal name + `/<configured name>`, and the package's version where it saw `0.1.0` (`"unknown"` only where the package.json cannot be read, the form `engineVersion()` already has). A host that matches the console sentence of a contained host-sink failure by its leading `[` + internal name + `] ` reads `[@sema-agent/core] ` now; `code` and `detail` of `config.host_sink_failed` are unchanged.
586
+ - **Not changed.** The capabilities the client declares, the connection pool's key (it never read the client's name), the mount names (`mcp__<server>__…`), every other sentence, the root exports and the wire manifest.
587
+ - **Rules.** Retired: the per-server client-name template, and the `0.1.0` literal (no second version literal beside `engineVersion()`). One reading of "what the packed bytes may say" (`internalNameProblems`), one table, one place that packs (`packTree`).
588
+ - **Pins.** `test/backlog4464-published-bytes-internal-name.test.ts` — W1 two real stdio servers under two configured names receive one `clientInfo` (name, package.json version, no copy of the old name or either configured name) · S1 no `src/` file says the name, with the scan's positive control · K1 the scanner over an unpacked tarball (per occurrence, line and column, bounded excerpt, empty literal / no `package/` / a symlink refused) · R1 the same over a real `npm pack` · P1 a row of another package covers nothing; `test/verify-packages.test.ts` E1–E10 (the gate over throwaway trees through the real build, pack and read: a clean root and package; a mention in a shipped declaration and in code; the root read though no package takes core; a row covers exactly its occurrences — a second mention on another line or on the same line is red; a stale or miscounted row; a root never built; a root missing one door; an unreadable table named once; the table's shape; the command line always asks for the byte reading; the committed table against the real tree); `test/backlog3832-notice-throat.test.ts` (the two sentences' prefix).
589
+ - **Consumers.** @cli: the artifact-hygiene baseline of the internal-name family can drop back to 0 for what core's `dist` carries; the three kinds that stay are in core's package.json / licence / CHANGELOG (which of them reach the terminal product is the cli's to measure). @server @client-core @web-client: a third-party MCP server's view of the client changed as above; a log or dashboard keyed on the old client name reads the new one.
590
+ - **Exports / wire.** None. `npm run handoff:diff`: no root export added, removed or changed.
591
+
592
+ ### The engine's version is a constant written at build time — a host that bundles the engine into one file now reads the real version, where the trace's `engineVersion`, the mods `session.version` station and `CONTRACT_KIT_ENGINE_VERSION` read `unknown` (#4477; behavior change: the value in those three places, and in a client that introduces itself by it, is the package version instead of `unknown` in a bundled host; hard-breaking: none; narrowing: none; widening: none; closed sets: none; exports: none; wire: none) (@cli @server)
593
+
594
+ - **Rule.** `engineVersion()` (`src/core/version.ts`) answers the value of one generated constant, `ENGINE_VERSION` in `src/core/engine-version.ts`, instead of reading the package's own `package.json` by a path walked from `import.meta.url`. The file is written from the root `package.json` by `scripts/engine-version.mjs`, as one more cell of the release bump (`scripts/bump-version.mjs`, the step that moves every other version cell; its second dry run must still read 0 cells), and `scripts/release/r-commit.mjs` commits it on its own before the wire manifests are computed — it is a file under `src/`, a manifest input, so it must not move in the release commit. `gate:packages` has a fifth root arm: the file's bytes must be exactly what the generator writes for the root's version, so a version moved without regenerating, and a hand edit of the value or of anything else in the file, are red. The old `createRequire` read is gone — one reading, no fallback to the manifest; `"unknown"` stays only as the answer for a constant that is not a non-empty string, a form the gate keeps from shipping.
595
+ - **Before (measured).** The module emitted outside its package root (no `package.json` with a version reachable from it — what a bundler that does not inline `package.json` produces) printed `"unknown"`; in the dev tree and the published layout the walk found the manifest. The shell's single-file product read `unknown` in both of its layouts (the relative path is a MODULE_NOT_FOUND there; reported by @cli, not re-measured here), so its `task.start.engineVersion` was already `unknown` and a client version taken from it would have been.
596
+ - **Now.** The same module, emitted into the same tree, prints the package version; in the dev tree and the published layout nothing changes (the value is the same string). `CONTRACT_KIT_ENGINE_VERSION` and the mods `session.version` station read the same constant.
597
+ - **Not changed.** The value in every layout that already read it; the exported names (`CONTRACT_KIT_ENGINE_VERSION` is the only root export that carries the value, unchanged); `@sema-agent/core-stores-sql`'s own `package.json` read (it refuses loudly when it cannot read its manifest — a different failure from a silent `unknown` — and is not changed here); no dependency added; no bundler in the build.
598
+ - **Consumers.** @cli: your known limit (the engine version reads `unknown` in the single-file product) can be lifted once you take this version — please measure it in your own artifact; @server: please measure what your product layout reads (the trace field and `session.version`).
599
+ - **Pins.** `test/backlog4477-engine-version-constant.test.ts` — A1 the dev tree reads package.json's version, A2 the contract kit's constant is the same value · B1 the module closure emitted where no manifest with a version is reachable prints the package version, B2 control: the former reading in that spot prints `unknown`, B3 control: the former reading in a package-shaped spot prints that package's version, B4 a constant that is empty / a number / undefined reads `unknown` and never throws, B5 the module names neither `package.json`, `createRequire` nor `import.meta` · C1–C7 the committed file is the generator's bytes; stale / value edit / other edit / missing / wrong-type are each red · D1 the committed tree is a fixed point of the bump (0 cells), D2 a bump to another version plans the constant's change; `test/verify-packages.test.ts` — the CLI exits 1 naming the file and both values on a stale constant; `test/release-chain-steps.test.ts` R2 — the engine-constant commit sits under the release commit, both wire manifests are computed at it, and no `src/` file moves between it and the release commit; `test/backlog1751-package-release-base.test.ts` / `test/backlog2749-primitives-single-instance.test.ts` — the bump plans and writes the constant.
600
+ - **Wire.** None.
601
+
602
+ ### `resume_at.outside_window` says which of its two arms refused and which ways out its sentence names, as data — `detail.reason` and `detail.remedies`, both always present (#4428)
603
+
604
+ - **Rule.** The one code `resume_at.outside_window` is minted by one function (`runner/branch-window.ts`, `refusal`) for two facts: the store the request landed on does not hold the branch the landing continues whole (two sentences), and the landing is a user message whose attachment frames the handle cannot read (the sentence that names ways out). The refusal now carries `detail: { reason, remedies }` — `reason` is `"branch_not_held"` (the store arm) or `"attachment_frames_unreadable"` (the attachment arm); `remedies` is the list of ways out the arm's own sentence names, `{ kind: "retry_on_handle_holding_message" }` and `{ kind: "resume_at_mode_before" }` on the attachment arm, in the sentence's order. The table that says which reason names which remedies is written once (`src/core/resume-at-refusal.ts`), the mint reads it.
605
+ - **Before.** The code alone could not tell the arms apart, and only the attachment arm's sentence said what to do: a consumer that held the code and no sentence (a client rendering its own words) could not say the right thing for either arm.
606
+ - **Now.** A failed run carries it as `TaskResult.terminal.detail = { kind: "coded", detail: { reason, remedies } }` beside `terminal.code === "resume_at.outside_window"`; the thrown error carries the same `detail` (a library caller of `Runner.runTask` reads the failed terminal). **Both members are always present on this code**: the store arm writes `remedies: []` — the key present, the list empty, meaning "the sentence names no way out" — and a consumer reads an empty list as that and a refusal with no `detail` at all (an engine before this one) as "not known"; the two are not one answer. Read `remedies[].kind` as an open set: a later engine may name another way out, and a kind the reader does not know gets no sentence of its own.
607
+ - **Additive.** `TerminalFailureDetail`'s `coded` account on this code (an existing arm; the code had none); root exports `ResumeAtOutsideWindowDetail`, `ResumeAtOutsideWindowReason`, `ResumeAtRemedy`, `ResumeAtRemedyKind`, `RESUME_AT_OUTSIDE_WINDOW_REASONS`, `RESUME_AT_REMEDY_KINDS`. Removed: none.
608
+ - **Not changed.** The code, the status, every sentence (no word moved), the arms' conditions, the order of the judge's checks, what is written (nothing) — the arms' behavior is the same, only the account of it is new.
609
+ - **Rules.** Readings of "which arm refused" 1 (the sentence's wording) → 1 (a member the sentence does not need to be parsed for); ways out stated in the refusal 2 (a sentence + nothing) → 2 sentence/data written from one table.
610
+ - **Pins.** `test/backlog4428-outside-window-detail.test.ts` — J1/J2 the store arm's two sentences carry `branch_not_held` and the `remedies` key present and empty (`hasOwn`), J3 the attachment arm's account, J4 the account agrees with the sentence, J5 a fresh account per refusal, J6 the exported sets; and every refused cell of `test/backlog4359-resume-at-outside-window.test.ts` and `test/backlog4376-resume-at-attachment-group-outside-window.test.ts` (real Runner, real bounded stores) reads `terminal.detail` and checks the arm and the list. Mutations: `remedies` omitted on the store arm, the two reasons swapped, a remedy dropped or reordered, the account shared between refusals.
611
+ - **Consumers.** @client-core @cli: render the way out from `remedies` for the attachment arm and say nothing of your own for `[]`; do not take the empty list for "unknown". @server: no change is needed to carry it on the run result (the terminal's coded `detail` passes through); the synchronous refusal body does not carry it until the code is registered in the server's zero-work facts table (`src/runs.ts` `ZERO_WORK_REFUSAL_DETAIL_FACTS`) — yours to choose.
612
+ - **Wire.** `terminal.detail` (an existing optional member) now exists on a failed run with this code.
613
+
614
+ ### Each engine `resume_at.*` word has a declared class — `anchor_missing` / `anchor_unusable` / `request_malformed` — a root table and one predicate: a client reads whether the anchor could not be had from the engine instead of from its own reading of the family (#4442)
615
+
616
+ - **Rule.** `RESUME_AT_REFUSAL_CLASS` (beside `CONFIG_REFUSAL_CODES`, `src/core/config-refusal-codes.ts`) maps every `resume_at.*` word of the engine's refusal-code set to one of three classes by what the engine had to read: `anchor_missing` — the store did not hand over the entry the anchor names (`resume_at.not_found`); `anchor_unusable` — the entry was handed over and the request cannot be carried out from it (`not_a_message`, `before_target_not_user`, `before_root_unsupported`, `outside_window`); `request_malformed` — decided from the request alone at the config door (`conflicts_resume`, `no_session`, `mode_without_target`, `invalid_mode`). The table is typed `Record<Extract<ConfigRefusalCode, \`resume_at.${string}\`>, ResumeAtRefusalClass>`: a `resume_at.*` word added to `CONFIG_REFUSAL_CODES` with no class — or a class for a word not in it — is a type error at the table.
617
+ - **Before.** The family had no upstream answer to "does the anchor not exist?": a client drew its own boundary by reading source, and 7.68.0's `resume_at.outside_window`, sharing the prefix, was swept into "the anchor is gone" by a prefix reading — the person's words then continued a branch that was not rewound.
618
+ - **Now.** `outside_window` is `anchor_unusable`: the target WAS obtained (the store's window does not hold the branch whole), so it is not "the anchor is gone". `resume_at.not_found` is `anchor_missing` — read it as what the engine could get, not what the log holds: on a store that loads only a bounded tail, an entry below the window's floor reads the same way. `isResumeAtAnchorMissing(code)` answers `true` for the `anchor_missing` words only.
619
+ - **Additive.** Root: `RESUME_AT_REFUSAL_CLASS`, `RESUME_AT_REFUSAL_CLASSES`, `ResumeAtRefusalClass`, `isResumeAtAnchorMissing`. Removed: none.
620
+ - **Scope (@server @client-core @cli).** **The root predicate covers the engine's own words only.** A word the server answers before the request reaches the engine (`resume_at.unknown_event`) is declared by the server, and every word outside the table — that one, another family's, a value that is no string — answers `false`: "not an engine word of that class", never "the anchor is there". A client that takes the root predicate alone as covering the family is wrong for the server's words.
621
+ - **Not changed.** Every code, every sentence, every refusal's conditions; the family's membership in `CONFIG_REFUSAL_CODES`.
622
+ - **Pins.** `test/backlog4442-resume-at-refusal-class.test.ts` — T1 the rows are exactly the family's words (both directions), T2 the table word by word, T3 the predicate (true for `not_found` only; false for the server's word, a prefix lookalike, non-strings, `toString` / `__proto__`), T4 the real engine: a refused run's code for a missing target, the first message with `before`, an assistant target with `before`, `resumeAtMode` with no `resumeAt`, a bad mode, no session — each is a table row and reads as its class. Mutations: a row dropped / re-classed, `outside_window` read as `anchor_missing`, the predicate widened to the prefix, the predicate answering `true` for any word outside the table.
623
+ - **Consumers.** @client-core @cli: replace the hand-drawn boundary with the root table / predicate for the engine's words; keep your own reading for the server's.
624
+
625
+ ### The two notices a refusal of a leg whose parks nobody resumes raises carry who says so — `detail.notResumableSource` (`lane` | `host`) — and the `liveApprover` / `liveQuestionFace` member note says what `false` means there (#4432)
626
+
627
+ - **Rule.** `config.durable_gate_unavailable` (on `cause: "leg_not_resumable"`) and `delegation.ask_unresolvable` (on a leg whose parks nobody resumes, whatever `cause` the refusal read as) carry `detail.notResumableSource`: `"lane"` (an engine lane holds no resume seat for the leg) or `"host"` (the host declared `durableApproval: false`) — the word the way out in the sentence is already chosen by, from the same leg fact at both mints (`ApprovalParkNotResumable`, `src/core/park-resumability.ts`). A consumer picks its own sentence for the way out from it instead of composing one. Where both hold — the host declared `durableApproval: false` on a leg an engine lane also holds unresumable — the word is `host`: both mints read the same `notResumableSaysOf`, which takes the host's word first.
628
+ - **Now.** The member is **present only** on that cause: absent on the two store causes (`task_store_disabled`, `no_deployment_store`), absent on `delegation.ask_unresolvable` of a resumable leg, and absent on every 7.68.x engine — a consumer reads absent as "the source is not known", never as a source of its own. The `askUnresolvableNotice` mint takes it as an optional fact beside `notResumableWayOut` and refuses a word outside `lane` / `host` (`TypeError`).
629
+ - **Member note.** On `cause: "leg_not_resumable"`, `liveApprover` and `liveQuestionFace` are always `false` and mean "no online seat will answer this leg's asks": the leg refuses every ask without asking anyone, whether or not an approver or a question face is wired on it — not "no approver was connected" (the note in `engine-notice.ts` now says so; the values did not change).
630
+ - **Additive.** Root type `ApprovalParkNotResumable`; `AskUnresolvableFacts.notResumableSource`; the onAskUnresolvable observer's info gains the same optional member. Removed: none. No sentence moved.
631
+ - **Pins.** `test/backlog4432-not-resumable-source.test.ts` (the mint: the member rides with the fact and moves no word; a word outside the set is refused; absent means the key is not there) and, on the real Runner, `test/backlog4111-park-only-on-resumable-leg.test.ts` — G1 / G2 `lane` on the announcement with `liveApprover` / `liveQuestionFace` false while an approver is wired, G3 / G4 absent on the store causes, N1 `lane` and N4 `host` on `delegation.ask_unresolvable`, N4b `host` on the announcement. Mutations: the member dropped at either mint, `lane` / `host` swapped, the member present on a store cause.
632
+ - **Consumers.** @client-core @cli: choose your own way-out sentence by `notResumableSource` when it is there; where it is absent, say nothing of your own about the way out. The shared half-sentence "no live approver connected" is not true on this cause.
633
+
634
+ ### An execution environment built before a declaration that now names one of its `inheritEnv` entries: the Runner's notice seat hears `config.inherit_env_declared_late` too, the refusal names the way out, and a repeated refusal is not the same 450-character paragraph again (#4437)
635
+
636
+ - **Rule.** (1) The environment records the notice it raised on its own seat — `ExecutionEnv.lateDeclarationNotice` (optional; absent until its first refused start) — and a run on that environment hands the same notice to the Runner's `onNotice` as each tool call ends, once per run, adding the run's `sessionId` / `runId` to the detail (`{ index, name, sessionId, runId }`). One mint: the environment's seat hears it once, as before; a Runner with no `onNotice` of its own adds nothing. (2) The refusal says the way out — build a new execution environment (its allow list is copied when it is built) — before the judge's sentence, so a reader's 512-character bound on a failure message cuts the end of the sentence, never the way out. (3) The failure carries a bounded restatement (`ExecutionError.briefMessage`, `BackgroundShellError.briefMessage`, optional; 174 fixed characters plus the entry's index digits and its name cut at 64 code units with an ellipsis, so at most about 245 for a three-digit index — the figure depends on the name): the same reason and the same way out. The Bash tool, foreground and background, shows its leg's model the whole message the first time and the restatement after; a second run on the same environment reads the whole message again. The record is the model's: an extension's own `$.tool.call("Bash")` neither reads nor writes it (its answer never reaches the model's transcript), so the model's first refused Bash is still shown the whole message. (4) A resumed leg relays too: the approved call's resolution walks no tool-end, so the relay is also called there (the same seat as the workspace-frame observation) — a leg refused only on its approved call that then answers is told once, as one that makes a further refused call is.
637
+ - **Before (measured on `7e87e13c5`, a real Runner over one stale environment, seven refused Bash calls).** The environment's seat heard 1, the Runner's `onNotice` 0, the default seat 0; every call's text was the whole sentence, 527 characters with the tool's wrapper, seven times; none named the way out beyond "until the policy or the declaration changes".
638
+ - **Now (same measurement).** Environment seat 1 (not two), Runner seat 1, default seat 0; the first text 567 characters with the way out inside the first 300, the other six 270 each with a 19-character name (the restatement 194 plus the tool's own 49-character wrapper — it grows with the name, to about 245 + 49): 2 187 characters across the seven calls where there were 3 689.
639
+ - **Behavior change (open to veto @server @cli @client-core @test).** The refusal sentence moved: it begins `This execution environment (NodeExecutionEnv) was built before the process-level declaration that now names one of its inheritEnv entries, so it refuses every shell child it would start. Way out: build a new execution environment. Reason: <the judge's sentence>` (was `…(NodeExecutionEnv, its inheritEnv option) … names one of its entries, so it refuses every shell child it would start: <the judge's sentence>`), and the Bash tool's second and later refusals on one leg read `Refused again, for the reason its earlier refusal gave (inheritEnv[i] names NAME, declared after this execution environment was built). Way out: build a new execution environment.` A neighbor that matched the old sentence's text would see it change; `git grep -P` for the old words over the server, cli, client-core and sdk `origin/main` found none (zero hits; the same grep for a word known to occur read non-zero in each repo).
640
+ - **Not changed.** The code, the audience (`operator`), the minter, the detail on the environment's own seat (`{ index, name }`), once per environment on that seat, the refusals' codes (`spawn_error` / `spawn_failed`), the judge's sentence at construction time, what a read of the environment announces (nothing), and the environment's own message on every refused start (the whole sentence — only the Bash tool's reader chooses the restatement).
641
+ - **Additive.** `ExecutionEnv.lateDeclarationNotice?`, `ExecutionError.briefMessage?`, `BackgroundShellError.briefMessage?` (all optional; an adapter that has none omits them and is shown whole every time). Removed: none.
642
+ - **Pins.** `test/backlog4437-late-declaration-runner-seat.test.ts` — L1 seven refused Bash calls: seat counts (1 / 1 / 0), the same words, the run's ids on the Runner's copy, L2 the first text whole with the way out inside the bound and the six after it the restatement, L3 a second run (the Runner's seat once more, the environment's seat still one, the second run's model reads the whole message again), L4 a Runner with no seat adds nothing, L5 / L5b the environment's own failures (whole message, restatement carried, another entry carries its own, a 4096-character name cut), L6 the read member, L7 an environment with no restatement is shown whole every time; `test/backlog1768-late-declaration-loud.test.ts` F / C8 rewritten to the new readings. Mutations: the Runner relay removed (L1), the tool's dedupe removed or always on (L2 / L7), the way out moved after the judge's sentence (L2: inside-the-bound), the restatement unbounded (L5b).
643
+ - **Known limits.** KL-4437-b: a resumed leg whose approved call is refused and whose result row then fails to persist ends failed without the relay (the environment's own seat still hears it). KL-4437-a: the restatement's name is cut at 64 UTF-16 code units, so a name whose 64th unit falls inside a four-byte character cuts that character in half (the reader's own escape shows it as `\\ud83d…`; no lone surrogate leaves the engine, measured); a model whose context was compacted after the whole message was shown reads only the restatement later (it states its own reason and way out).
644
+ - **Behavior reading (@server).** The relay reads the environment, not the run: a second run on an environment that raised the notice earlier, even one that never starts a shell, has its Runner's seat told once, on its first tool call that ends (as documented).
645
+ - **Consumers.** @server: the Runner's `onNotice` now carries `config.inherit_env_declared_late` (operator audience) with `sessionId` / `runId` — your environments are built with no seat of their own, so this is the first time it reaches you; the one path to it that is yours (a hot-update of a candidate model entry re-declaring `apiKeyEnv` after the environment was built) now names the way out. @test: the construction path for a black-box read is the same one. @cli @client-core: the sentence moved (above); the notice's detail gains `sessionId` / `runId` on the Runner's copy.
646
+
647
+ ### One identity judge for a checkpoint's id: a parked agent's card (on each of its read faces), the three engine sentences that name a row and the unrecorded-execution notice hand out a trusted id or the word for why there is none — the resumed leg's tool frames and three workflow sites do not read it yet (#4321, #4262 S1a; behavior change: on those faces an id that is not a non-empty string of at most 128 code units, or that contains the row's resume token, is withheld; narrowing: three, below; widening: none; hard-breaking: two (`AgentStateSource.handle`, the parameter of `agentStateSourceOfRecord`), below; closed sets: `EngineNoticeCode` +1, `CHECKPOINT_ID_MISSING` new; exports: +8 added, none removed; wire: `AgentPark.checkpointIdMissing` added, the unrecorded-execution notice's identity keys changed) (@server @cli @client-core @sdk)
648
+
649
+ - **The judge.** New root exports `trustedCheckpointId(raw, token)` (`raw` passes when it is a string, non-empty, at most `MAX_CHECKPOINT_ID_CHARS` = 128 UTF-16 code units, and does not contain `token` once both are folded with `String.prototype.toLowerCase()`; `token` `undefined` / `null` / `""` tests nothing, any other value is `String()`-ed, and one whose conversion throws fails the id closed — the judge never throws; both parameters `unknown`), `readGateIdentity(raw, token): GateIdentity` (`{ checkpointId }` when it passes, else `{ checkpointIdMissing }` — `"absent"` when `raw` is `undefined`, `"untrusted"` for anything else, `null` included), `CHECKPOINT_ID_MISSING` (frozen `["absent", "untrusted"]`), `isCheckpointIdMissing`, and the types `GateIdentity` (two arms that exclude each other with `?: never`) and `CheckpointIdMissing`. Same words, same criteria as the serving layer's own identity reader, so that one can import these instead.
650
+ - **`AgentPark` (wire, additive).** New optional member `checkpointIdMissing?: "absent" | "untrusted"`. When the card was read, exactly one of `checkpointId` / `checkpointIdMissing` is present; when it was not (`missing`, or `unreadable` because there was no seat or the store threw) neither is. It rides every face that carries `agentState` — the live and durable `pollTask` details, ListAgents rows, AgentTranscript details, and the engine card on `tool_end.structured` @server @cli @client-core. A card whose id is refused reads its state, gate and deadline exactly as before; only the id is withheld.
651
+ - **Narrowing 1 — `AgentPark.checkpointId`.** Before: any non-empty string on the card. Now: only an id the judge passes. The `state:` line names no id when there is none to name (`approval pending (deadline in …)`), unchanged wording otherwise. A card without an id (parked before the member existed) now says `checkpointIdMissing: "absent"`.
652
+ - **No read-face narrowing besides the id.** The park reader's other answers are unchanged: a card read back without one of the three state words still reads `unreadable` with its gate and deadline (only its id now goes through the judge); a body read that throws still reads `{ state: "unreadable" }`; a missing card still reads `missing`.
653
+ - **Narrowing 2 — engine sentences that name a row** (a store's `disclose` seat: the unreadable-summary sentence, the projected summary's descriptor-damage sentence, the listing selectors' sentences) @server. Before: `checkpoint "<id>" of session …` for any string id, `checkpoint null of session …` otherwise. Now: `checkpoint "<id>"` for a trusted id, `checkpoint (id absent)` when the row carries none, `checkpoint (id withheld: untrusted)` when it carries one the judge refuses (an id cell that throws when read is judged as `null`, so `untrusted`). The selectors judge against the key the store files the row under.
654
+ - **Narrowing 3 — `checkpoint.execution_outcome_unrecorded` detail (wire).** Before: `checkpointId` present whenever the row carried an id, absent otherwise. Now: exactly one of `checkpointId` (only a trusted id) / `checkpointIdMissing` (`"absent"` for a row with no id — a key that did not appear before — or `"untrusted"`). The other keys (`sessionId`, `runId`, `scope`, `word`) are unchanged. A wire narrowing the wire manifest does not model (it reads no notice `detail` keys) @server @cli.
655
+ - **New notice `delegation.parked_card_id_untrusted`** (closed set `EngineNoticeCode` +1; audience `operator`, minter `engine`): the park reader refused a card's id. Once per (scope, handle) per process on the default notice seat; `detail: { handle, scope }`, never the id or the token. A consumer that pins the notice code set reads one more word: the serving layer's notice wire gate, the shell's notice code table and the client core's generated notice tables @server @cli @client-core.
656
+ - **`isUnreadableCheckpointSummary(summary)`** (new root export, pure): whether a summary is the unreadable form `summarizeCheckpoint` answers for a row it could not read — verdict not `ok` and every own key one the form may carry. The member list is the mint's own: a member the mint writes and the list lacks reds `tsc` (a conditional spread included). A host that tells the two forms apart asks this instead of keeping its own list @server.
657
+ - **Hard-breaking (type) — `AgentStateSource.handle`, `agentStateSourceOfRecord`.** The row-facts type `readAgentState` takes gains a required `handle: string` (and an optional `scope?: string`): the reader names the agent in the new notice. The projection `agentStateSourceOfRecord`'s parameter now requires `handle: string` and `scope: string` beside `status` (a `BackgroundAgentRecord` carries both). A caller that hands `agentStateSourceOfRecord` a real `BackgroundAgentRecord` is unaffected. Red at type level: a hand-built record-like object without `handle` / `scope`, a host row type whose `scope` is optional, a record type with `handle` or `scope` stripped, a hand-built `AgentStateSource` literal, and a ListAgents `registry.agentStateSource` seat that builds one by hand @server @client-core @sdk (read-only grep of their `origin/main`: no such construction).
658
+ - **Known limit (security ledger #4331).** The two summary sentences (`summarizeCheckpoint`) judge the id against the row body's `token`; the listing selectors judge it against the key the store files the row under. A row whose body token differs from its key (no in-tree store refuses such a `put`) and whose id contains the key would have that key named in the store's `disclose` sentence. Not changed here (it needs the key handed to `summarizeCheckpoint`).
659
+ - **Not yet through the judge (a later slice, #4262 S1b).** The resumed leg's `tool_start` / `tool_end` frames carry the row's id as `resumesCheckpoint` as stored (an id the unrecorded-execution notice of the same resume withholds, and an overlong one, ride these frames unchanged); a workflow resume's `workflow.park_not_pending` refusal (`detail.checkpointId`) and its two sentences about a parked ordinal whose checkpoint is no longer pending name the id as stored. Unchanged from the previous release.
660
+ - **Rules.** One judge and one reading for "may this id leave": the park reader (behind its four read faces and the engine card on `tool_end.structured`), the three row-naming sentences and the unrecorded-execution notice read it instead of rendering the stored value on their own; the two tool frames and the three workflow sites do not yet (bullet above). Added: the judge, the identity reading, and the unreadable-form recognizer (which reads the mint's list rather than a second one).
661
+ - **Pins.** `test/backlog4262-poll-park-card-baseline.test.ts` (B6 / B7 / B8 flipped, B9a–c, B10, B11 AgentTranscript and its `tool_end.structured` card), `test/backlog4321-card-id-judge-s1a.test.ts` (J1–J5 the judge, U1 the recognizer, T0–T3 the mint's member fence under tsc, D1–D3 the three sentences, E1–E3 the notice on a real resume).
662
+
663
+ ### Binary content an MCP server returns reaches the model again on every bundled store, and a PDF reaches a model that reads no document as a kept file it can write out, not a sentence about a file that does not exist — the in-memory store keeps bytes under its one bound, an embedded pdf is a document block only for a model that reads one, the "re-fetch via ReadMcpResourceTool" tail is retired, the operator notice is made of its counts, and the omitted-document sentence says only what is true (#4453, #4454; behavior change: below; narrowing: one, below, open to veto @server @cli; widening: two, below, open to veto @server @cli; hard-breaking: none; closed sets: none (`BytesNotKeptReason` unchanged); exports: +4 at the root — `ToolResultBytesOverLimitError`, `TOOL_RESULT_BYTES_OVER_LIMIT_CODE`, `pdfModelCapabilitiesOf`, `PdfModelCapabilities` — and `servingModelPdfCapabilities` beside `pdfModelCapabilitiesOf` in the fs tools module, none removed; root types: `ToolCatalogEntry.writtenContent?` and `PersistenceFacts.definitionOf?` (optional members), `ToolResultStore.putBytes`'s optional fifth parameter `held` (a store that makes room by evicting reads it; one that never evicts ignores it); wire: model-visible sentences (four, below), `tool_result.media_persisted`'s message, its `detail.kept[].limit` on `over_limit` records, `InMemoryToolResultStore.putBytes` / `bytesOf`, the store contract's coded bound refusal) (@server @cli @client-core @test)
664
+
665
+ - **Rule.** Binary content an MCP server returns is, to the model, one of three things: a media block of a type the serving model reads (an image; a pdf only for a model that reads documents — the Read tool's own reading, `pdfModelCapabilitiesOf(model).document`, asked of the model the harness runs NOW each time a result is mapped, through the leg's binary seat's `documents`), a ref in the run's tool-result store, or a line saying in closed-set words why it was not kept. Nothing points back at a re-read that meets the same keep. The bundled `InMemoryToolResultStore` (and the Runner's shared default, wrapped per task) implements the byte arm: a byte entry is held as its base64 characters in the same map, under the same `maxTotalChars` bound, swept, listed, evicted and counted exactly as a text entry; one piece whose characters alone exceed the bound is refused, never kept by evicting everything else.
666
+ - **Before (measured, v7.68.1, a real Runner and a real stdio MCP server, request bodies recorded).** On the default store, an injected in-memory store and a store without the byte arm, a free-typed blob, `application/octet-stream`, an `IMAGE/PNG` resource and an audio block all read "its bytes were not kept: this run keeps no binary tool results — data not inlined; it can be re-fetched via ReadMcpResourceTool (uri …)"; doing so read the same line (the resource read keeps through the same keeper); the audio form had no tail. `tool_result.media_persisted` said "the result names each one's ref in place of the bytes" with zero kept. An MCP `application/pdf` blob on the OpenAI-compatible wire read "[PDF document omitted: PDF direct read requires an Anthropic-family model; re-Read the file … or extract the text via Bash instead (e.g. `pdftotext`).]" — no file existed, no path or uri in the sentence; on the Anthropic wire for a model without image input, "… extract the text via Bash instead (e.g. `pdftotext`)", no file either.
667
+ - **Now.** The same cells (with an upper-case type outside the admission's four, such as `IMAGE/TIFF`, in place of `IMAGE/PNG` — which the admission now reads case-blind as an image, #4438) on the default and the in-memory store read "…: its bytes were kept as ref "tr_…"; call SaveToolResult with ref=… and a new file_path to write them to a file", and the saved file holds the server's bytes; a resource read's png or pdf on the default store likewise. On a store without the byte arm the line names the reason ("…: its bytes were not kept: this run keeps no binary tool results; …") and the way out below, with no re-read offer. An embedded pdf for a model that reads no document (OpenAI-compatible, Responses, Anthropic without image input) is kept like any other binary content (ref, or the reason); for an Anthropic model with image input it is a document block as before. The notice reads "MCP server "S" sent N piece(s) of binary content in the "T" result that the result does not carry as media." then " K were kept in the run's tool-result store, and the result names each one's ref in place of its bytes." only when K > 0, then " U were not kept: <reason>; the result says so where the bytes would have been." only when U > 0 (`no_byte_store` has two causes, each with its own phrase and remedy: over a store without the byte arm, "the run's tool-result store has no byte arm (a store with putBytes / bytesOf keeps them)"; on a run whose offload is off — a tool-result threshold of 0 or not finite, or ReadToolResult not among its tools, whatever store was injected — "this run keeps no tool results in a store (its offload is off: a tool-result threshold of 0 or not finite, or ReadToolResult not among its tools)"; the model's line is the same for both, "its bytes were not kept: this run keeps no binary tool results"; `over_limit` = "over the keep limit (L bytes)", `store_failed` = "the store's write failed (detail.kept[].saveError)"). A document block that still reaches a lane that cannot carry it — one from an earlier model of the conversation, or one a caller put there — reads "[PDF document omitted: the serving model does not support PDF (document) input]" on all three lanes (one constant, `src/brain/media-degrade.ts`).
668
+ - **The bound, in the store contract.** A store may refuse one byte entry that is by itself larger than its bound with `ToolResultBytesOverLimitError` (`code: "tool_result.bytes_over_limit"`, `limit` = the largest piece it takes, in bytes), storing nothing and evicting nothing. The run's keep reads that refusal as `over_limit` with that bound (the run's own 104,857,600-byte single-piece bound is judged first); any other throw is `store_failed`. The in-memory store's bound is `3 × floor(maxTotalChars / 4)` bytes (the most whose base64 fits). `KeptBytes`' `over_limit` record gains `limit` (the bound exceeded, in bytes) and the model's sentence names it ("N bytes is over the L-byte keep limit"); `tool_result.media_persisted`'s `detail.kept[]` carries it on `over_limit` records only. The contract kit runs two more cells for a store with the byte arm (the coded refusal reads `over_limit` with its bound; any other throw reads `store_failed`). One result's pieces never displace each other: `putBytes` takes an optional fifth parameter `held`, the refs the caller kept earlier in the same result; a store that makes room by evicting never evicts a held ref, and refuses a piece that does not fit beside them with the same coded refusal, `limit` = the most bytes it could take beside them (the in-memory store: `3 × floor((maxTotalChars − the held entries' characters) / 4)`); a store that never evicts ignores it. The run hands one keeper per result (`toolResultBytesKeeper`) and the keeper carries `held` — a resource read's blobs, kept in parallel, share one. So a later piece that does not fit is read as `over_limit` and counted not kept, and no piece of a result evicts another piece of the same result (a later write — another call, another task — still can, KL-4453-d) (before: two 500-byte pieces under a 1,000-character bound both read "kept as ref", the notice said "2 were kept", and the first ref already read "may have expired" — measured by the read-only leg, N2).
669
+ - **The way out, one source.** Every sentence that tells the model output cannot be read back here ends with one of two wordings of one rule (`UNRETRIEVABLE_OUTPUT`, `src/core/tool-result-bytes.ts`), never an unconditional "run it again" — a repeated call with an effect (a command, a write, a request) repeats the effect. A ref that is gone (`ReadToolResult`'s "No persisted output for ref …" and `SaveToolResult`'s "No kept bytes for ref …", after expiry or eviction): "This output cannot be retrieved here; any preview you saw is all that remains. If you need it, get it again only when that repeats no action (a read or a query); otherwise do not repeat the call to get it back — tell the user it can no longer be retrieved." (`ReadToolResult`'s "(the preview above is all that remains)" folds into it). Bytes not kept (every not-kept clause: an MCP piece, an image refused for its size): "…; they cannot be retrieved here — if you need them, do not repeat the call to get them back; tell the user they could not be kept" — no fetch is offered, because a second fetch of the piece meets the same keep. Before: the not-kept clause ended at its reason and the two replies said "may have expired" with no way out.
670
+ - **Narrowing (open to veto @server @cli).** The durable-suspend gate refuses to park an approval over a volatile tool-result store that holds anything (`durable suspend requires a durable toolResultStore …`), as it already did after any offloaded text; kept bytes now count too. What puts them there: MCP binary content, and an image a tool returned that the media admission refused for its size on a run with no image processor (measured, `test/backlog3903-blob-offload-seats.test.ts` P5). How the store is judged: the Runner's default store per task (what this task kept); an injected `InMemoryToolResultStore` as a whole store — an earlier run's kept image, in another session, refuses a later run's park though that run kept nothing (measured, P5; the same store fresh parks). What the person and the operator see then (measured, P5, and by the read-only leg with an MCP octet-stream blob): no approval card — no checkpoint row is filed, so nothing is left waiting; the model's result for the asked call is the unattended auto-deny ("… nobody can be asked to approve … — headless auto-deny). The action was NOT performed …") carrying "durable suspend requires a durable toolResultStore …"; the run ends `completed`; the operator receives `delegation.ask_unresolvable`. The same cell on v7.68.1 ends `paused` with the card filed (the MCP blob: measured by the read-only leg on v7.68.1; the image: measured, P5 on v7.68.1). Who is hurt: a library host on the default store or an injected in-memory store with `durableApproval` whose runs kept no offloaded text before. The server is not (read, sema-server origin/main `027f7b3e4`: it files durable approvals only with a backend's checkpoint store and `durableApproval`, `src/boot/stage-06-runners.ts:76`; every backend that has one gives its own durable tool-result store, `src/plugins/store-backend.ts:837` / `:915` / `:1420`, wired at `src/boot/budget-tracing.ts:93`; with no backend it injects an in-memory store and files no durable approval). Remedy: inject a durable tool-result store (`FileToolResultStore`, or a SQL store with the byte arm). KL-4453-e.
671
+ - **Widening (open to veto @server @cli).** ① `SaveToolResult` mounts on default-store runs that have write hands (it mounted over a byte-arm store only): one more tool in the list, so the first request after an upgrade changes the cached prefix once; a run with `handsReadOnly` does not mount it. A host that brings its own tool named `SaveToolResult` on such a run now sends two tools of that name in the request (it sent one), beside the existing collision warning ("spec.tools entry collides with the built-in hands tool band — the built-in wins …"); the same already happened over a byte-arm store, and for a caller's `Write` beside the hands' (measured by the read-only leg with a stubbed upstream answering 200; whether a vendor answers duplicate tool names with an error: not measured). The static tool plan (`describeStaticWiring(…).toolPlan`) says the same: it reads the store a leg gets through the resolver the leg's prepare uses (`legToolResultStore`), and only when the leg has an offload store at all — a default-store leg with write hands plans SaveToolResult mounted, a store without the byte arm plans it absent because `seat.offloadBytes`, and a leg whose valve leaves out `ReadToolResult` plans it absent whatever store was injected (the plan said mounted there, over a byte store, while the leg mounted nothing). ② A server with no backend (an in-memory store, the development form) keeps MCP binary content and refused-for-size images by ref from this version, and a leg's own read port (`readResource` / `getPrompt` on the materialization the leg's prepare makes, KL-3870-a) on a default-store leg answers `kept` with a ref where it answered `no_byte_store` (measured: `prepareTask` over the Runner's shared store and a real stdio server, the shared store holding the server's bytes under the leg's key). Who reaches it: the run handle has no read port (`src/core/task-stream.ts` carries `reconnectMcpServer` and no read verb — read), so a Runner host does not; a host that materializes its own (`materializeMcpTools`) hands its own seat, as before.
672
+ - **Behavior change — the Read tool's pdf fork follows the model in force (an existing stale reading, not introduced by this release).** The Read tool forked a whole-PDF read on the capability profile of the model the task was PREPARED on; after a budget degrade within the task (`limits.degrade`) it kept forking on the old model — a degrade to a model that reads no document still got a document block it could not read, and one to a model that does still got the text / rendered-page fallback. It now reads the profile through a view over the harness's current model (`servingModelPdfCapabilities`, the one reading the MCP leg's `documents` asks too). The fork itself is unchanged, and a run whose model does not change sends the same request as before (control pin, the request body's digest equal on the base and this tree). `HandsToolkitOptions.pdfModelCapabilities` keeps its type.
673
+ - **Behavior change — the memory persistence verdict does not count SaveToolResult (since 7.67.0 on an injected byte store).** SaveToolResult declares a write path target, so the verdict (`rosterCanPersistMemory`) counted it among the file writers: a run with an injected byte store that excluded Write / Edit / NotebookEdit and mounts no shell was told to write its memory (the memory-write instruction) though the one writer it held writes only bytes the run kept, never the model's words. Its catalog row now says so (`writtenContent: "kept"`, a new optional member of `ToolCatalogEntry`), and the verdict reads the word for a tool one of the engine's own mount sites mounted, through the catalog row its name and contract name — the run hands that identity over from its roster as `PersistenceFacts.definitionOf`, a new optional member; a caller's product is never read as the row, whatever name, schema or contract descriptor it carries: such a run gets the read-only notice, as a default-store run of this version does now that SaveToolResult mounts there. A writer of the model's content (Write, Edit, NotebookEdit, a shell) flips the verdict as before; a host's own call of the judgment that hands no identity reads every writer as before. `persistenceCandidateToolNames()` (each catalog row its own definition) no longer names SaveToolResult.
674
+ - **Erratum to 7.67.0.** (1) The #3903 section's narrowing compares with "the unreleased form [that] gave it a host path"; the comparison owed is the released 7.66.x, which gave the same host path — 7.67.0 – 7.68.1 kept no MCP binary content on the default store, an injected in-memory store or a store without the byte arm, where 7.66.x gave a host path (KL-4453-a). (2) The #1747 section's "Widening ② … the model reads it, instead of a file on disk" holds only for an Anthropic model with image input; on the OpenAI-compatible and Responses wires, and for an Anthropic model without image input, 7.67.0 – 7.68.1 gave the model an omitted-document sentence pointing at a file that did not exist.
675
+ - **Not changed.** The admission's sets and numbers; images (an MCP image is a block for every model — the Read tool does not fork images either; the brain's no-vision sentence was already true); a resource read's form (every blob kept by ref — the reference's form, KL-4453-c); `BytesNotKeptReason`'s three words; the 104,857,600-byte single-piece bound; the file store; the per-task scoped view's isolation (it forwards the byte arm on the same namespaced key, and still does not forward `deleteBySession` — the session's deletion runs on the shared store, which takes the byte entries with it).
676
+ - **Rules.** Retired: "the volatile store keeps text but not bytes" and the scoped view's "byte arm not forwarded" exception; the re-read tail and its per-block-type branch (audio had none); two untrue omitted-document sentences (three literals → one constant); the static tool plan's own reading of the leg's store (the injected store's byte arm alone) — the leg's prepare and the plan read one resolver. Changed, not added: a resource blob is a media block when its type names one the serving model reads; the in-memory store's single-piece refusal now reads "a piece that does not fit beside the refs its result already holds" (no held ref = the rule as it was), and eviction skips those refs; the `no_byte_store` phrase reads the cause the keep already holds (whether the seat has a store); the not-kept clause and the two gone replies end with one way out from one constant (they ended with nothing, or with a parenthesis of their own). Added: the store contract's one coded bound refusal; one catalog word (`writtenContent: "kept"`) with its one reader, the persistence judgment. Net −3.
677
+ - **Divergence (reference 2.1.321, to be registered).** ① An embedded pdf in a tool result: the reference inlines it only when its host grants an inline size per server (`Gkr` (cli321.js:284288); the command line grants none and writes it to the session's tool-results directory); this engine inlines it when the serving model reads documents, and keeps it by ref otherwise. ② The in-memory store keeping bytes joins the existing ref-not-path row (D-CORE-3903-BLOB-RETRIEVAL-REF): the reference keeps binary tool output in the session's directory for the session's life; the volatile store now keeps both kinds for the process's.
678
+ - **Pins.** `test/backlog4453-4454-mcp-binary-results.test.ts` — through a real Runner and a real stdio MCP server, request bodies recorded: four non-media kinds × four store shapes (default, file, in-memory, a store without the byte arm) on the OpenAI-compatible wire (ref → SaveToolResult → bytes identical, or one honest line and a notice with no ref claim) · the pdf × four shapes on that wire (never a block, never "re-Read") · the pdf for an Anthropic model with and without image input · a resource read's png and pdf on the default store · the omitted-document sentence on the OpenAI-compatible, Responses and Anthropic-no-vision wires · the in-memory bound (a piece over it refused and nothing evicted; two at 60 % in two calls — the first evicted and read as possibly expired) · one result never evicts its own pieces (store unit: held refs are never evicted, a piece that does not fit beside them is refused with the room left as `limit`, an unheld older entry is still evicted; through a real MCP server under a 1,000-character bound, on an injected in-memory store and on the Runner's shared store: a pair of 500-byte pieces keeps the first and reads the second "over the 249-byte keep limit", a trio of 300-byte pieces keeps two, the notice counts what was kept, every ref named saves its bytes; the same pair by a resource read, whose blobs are kept in parallel) · the way out: the MCP not-kept line, an image placeholder's not-kept clause, `ReadToolResult` and `SaveToolResult` (a real run) on a ref that is gone each end with their wording of `UNRETRIEVABLE_OUTPUT` and none says "run / call … again" · the leg's own read port (`readResource` on the materialization `prepareTask` makes) over the Runner's shared store: `kept` with a ref whose entry holds the server's bytes; over a store without the arm, `no_byte_store` · a kept piece's ref across a manual compaction that summarizes the turn naming it, beside an offloaded text's ref (measured: the next run's context holds the text's ref, through the compaction footer, and not the kept piece's; a save of the remembered ref writes the bytes on the same Runner and reads the gone reply with the way out on a new Runner over the same sessions, KL-4453-h) · the `no_byte_store` cause on an injected byte store with the offload off three ways (ReadToolResult excluded, threshold 0, threshold `Infinity`) — the notice names the offload, never a store's missing arm, and the model's line is unchanged; a store without the arm as the control · the scoped view (one face per ref, write-once, owner, one election across kinds, another scope reads nothing, a refused piece leaves it empty, the session sweep on the shared store) · SaveToolResult mounted with write hands and not with `handsReadOnly` · a pdf kept, not a block, on the root leg, a delegated child, a fork, a resumed leg and a workflow member · a budget degrade within the task in both directions (OpenAI-compatible → Anthropic with image input and read-only hands: the pdf after it is a document block; the reverse: kept by ref) · the Read tool's pdf fork after a degrade in both directions, and its request body on a run with no model change (digest compared with the base tree). `test/backlog3802-static-tool-plan.test.ts` — SaveToolResult on the static half and the leg agree: the default store mounted, a store without the byte arm absent because `seat.offloadBytes`, the reader left out of the valve over a byte store absent on both. Re-pinned: `test/mcp-content-mapping.test.ts`, `test/backlog1747-1748-mcp-media-four-seats.test.ts` (the pdf cell split by the model's reading), `test/backlog3903-blob-offload-seats.test.ts` (P5: the default and in-memory stores keep; the durable pause after kept bytes equals the one after offloaded text — no checkpoint row, the run `completed`, one `delegation.ask_unresolvable`, the refusal's sentence in the result; an injected in-memory store judged as a whole store, with a fresh one as the control; P8's `limit`), `test/backlog3903-blob-offload-store.test.ts` (the kit verifies the in-memory store); the rosters that read a default-store leg with write hands name SaveToolResult — the conformance vectors (`hands-full` mounts it, `hands-readonly` names it absent because `spec.handsReadOnly`), `test/backlog4297-prompt-model-fit-baseline.test.ts`, `test/backlog1026-tool-schema-projection.test.ts` (31 tools, the schema counts unchanged), the prompt golden's hands tool face (refrozen: one tool added); `test/backlog1433b-one-universe.test.ts` (denying ReadToolResult takes SaveToolResult with it: it rides the offload store). `test/backlog691-advertised-writable-dir.test.ts` — the default store with SaveToolResult mounted, the three file writers excluded and no shell: the read-only notice; Write kept: the write instruction; an injected file store: the read-only notice; a workflow member reads the same verdict (SaveToolResult alone: the read-only notice; Write beside it: the write instruction), and a delegated general-purpose child gets no `# Memory` section at all, with or without Write (measured). `test/backlog2987-image-admission-one-processor.test.ts` re-pinned (the not-kept clause ends with the way out). `test/backlog1322-exported-judges.test.ts` — the candidate set without SaveToolResult; the judgment with no identity handed over still counts it.
679
+ - **Consumers.** @server: S-4499 — a SQL store without the byte arm reads one honest "not kept" line (no re-read offer) until the arm lands, then a ref; a store with a bound refuses one oversize piece with `ToolResultBytesOverLimitError` (root export) to have it read as `over_limit`; a server with no backend keeps MCP binary content from this version; the notice's message text changed (its code, audience and minter did not); a static tool plan read for a default-store deployment with write hands names SaveToolResult mounted; `describeToolCatalog()`'s SaveToolResult row carries `writtenContent: "kept"` and `persistenceCandidateToolNames()` no longer names it; a run whose only writer is SaveToolResult gets the read-only memory notice. @cli: an MCP pdf on a non-Anthropic route now brings a kept-entry line and, on a SaveToolResult call, its approval card (generic); no literal of the retired sentences is pinned in your tree (`git grep -P`, origin/main). @client-core: notice tables unchanged. @test: the black-box grid is six contents × four stores × two wires (plus Responses); the 7.67.0 criterion "default / in-memory ⇒ not kept" now reads "kept by ref"; a not-kept clause no longer ends at its reason — the criterion form "…this run keeps no binary tool results]" (sema-test `repro/c767a-20261110/_SUMMARY.json:1149` / `:1153`, cells on the default and the in-memory store, which now keep by ref) reads, on a store without the byte arm, "…results; they cannot be retrieved here — …]", and the two gone replies end with the way out (a criterion on "may have expired" still holds).
680
+ - **Known limits.** KL-4453-a (the 7.67.0 – 7.68.1 window), KL-4453-b (a store without the byte arm), KL-4453-c (two readings of a resource blob, the reference's form), KL-4453-d (in-bound eviction across tasks and principals in a volatile store; the displaced ref reads the one way out — fetch again only where that repeats no action), KL-4453-e (the durable-park narrowing's consequences and who it reaches), KL-4453-f (the MCP text budget can cut a kept piece's ref line), KL-4453-g (the default store's per-task emptiness lets a later task park while an earlier one's entries are still held), KL-4453-h (past a compaction the model no longer holds a kept piece's ref — the compaction footer carries offloaded text's refs only; a save of a remembered ref still writes on the same Runner, measured), KL-4454-a (a direct `materializeMcpTools` caller that leaves `documents` out).
681
+
682
+ ### A result says where the call left its session: `TaskResult.continuesFrom` — the leaf the next run continues from, or why there is none; the date anchor and the cross-boundary record now land before the terminal frame (#4352 S1; new optional member; behavior change: two settle writes move ahead of `done`, and a settle write that reaches the store after the leg's write view closed is refused; narrowing: one, below (a date anchor write slower than its share of the bound), open to veto @server; widening: none; hard-breaking: none; closed sets: one new — `TaskResult.continuesFrom.none` (`run_open` · `nothing_taken_in` · `unsettled`); types gaining the optional key: `TaskResult`, `VerificationResult`, `CascadeRunResult`, `RepairResult`; exports: none added, none removed; capability word: none yet) (@server @sdk @client-core @web-client)
683
+
684
+ - **Member.** `continuesFrom?: { sessionId; entryId } | { none: "run_open" | "nothing_taken_in" | "unsettled" }`. A value is the leaf after the last write of the call's leg that landed, on a branch of the leg's own writes: the first lands on the leaf the leg took the session at, each later one on the leaf the leg's previous write left (its own leaf moves start it again). With no other writer the session's leaf set back on it holds the conversation the next run continues with, system-prompt inputs included. Another writer may append after it (the session's leaf moves on and is not the value), or make the leg's last settle write fail (the value is then the leaf before it — the leg's answer, say); the value is still the call's own conversation. A prompt blocked before it was taken in can still hand one (the date anchor a session's first leg owes). `run_open` — the leg parked durably (any gate) or its resume put the approval back to pending; the leg that ends the run hands its own value. `nothing_taken_in` — the leg landed no write (usually its input never got in), or the call ran no leg (a composition's own refusal, a workflow call that did not run). `unsettled` — a write of the leg had not settled when its view closed, one of its writes landed where another writer had moved the session (said once: the branch at its last write is not the call's conversation — the first write included, so an entry another writer adds after the leg took the session reads `unsettled` even when it landed before the leg read its context; rare, and that call hands no redo point rather than a wrong one), the branch up to its last write holds a call a reconcile would close by appending (or could not be read: the read failed or did not answer within the teardown bound, reported once), or the leg threw before its settle. Final: never minted later. Absent only on a result an older engine produced. A park rebuilt from its checkpoint row reads `run_open`; an oversize journal tombstone keeps its leg's value.
685
+ - **One reading, one place.** The leg's write view closes where the value is read (before `setResult`); a write of the leg that reaches the store after that is refused and reported, so it cannot land past the value. The read-state seal is unchanged (it still anchors on the run's last committed message — where the run's reads sit, not where the session continues).
686
+ - **Behavior change.** The date anchor (a session's first leg; a leg whose date or prompt head moved) and the cross-boundary leg-end record (a tree on a device target) are written before the terminal frame instead of after `done`, and the landing reads the session's branch at its leaf (one path read per leg) before the result is published. A leg that owes a record waits one store append more before `done` (a file-backed store, measured: last committed message to `done` 1.06–1.36 ms on the leg that owed the anchor, 0.58–1.02 ms on the seven that owed none, four runs); an in-memory first leg's terminal path is 99 microtask hops from its last `turn_end` to `done` (was 65). The three waits (the anchor, the record, the read of the branch, in that order) share one teardown bound by equal shares of what is left: the anchor waits at most a third of it (5 s in production), the record half of what is left, the read all that remains, and time an earlier one does not use goes to the ones after it — so a store that answers none of them delays `done` by at most one bound (15 s), and one that stalls a single wait still gives the other two their shares. Measured on a store that answers each call 5 ms later, at a 1.5 s bound: nothing stalled 62 ms from the terminal trace to `done`; the anchor stalled 541 ms, the record still written and the value the leaf; the record stalled 769 ms, the value the leaf; all three 1501 ms, `unsettled` (with a bound for each: 1543 / 1526 / 4507 ms). Each wait that runs out is reported as it always was, naming its share. This bound covers these three waits only: the settle's workspace-state write waits on a bound of its own before them, and the turn-boundary compaction's branch read after the last answer has none (a store that stops answering there holds `done`). A leg that throws before its settle still writes them in its teardown. A settle write held past its share before it reaches the store's write member is now refused instead of landing after the result (its state is lost, as when the write fails); one held at the write member makes the value `unsettled`.
687
+ - **Narrowing (open to veto @server).** A date anchor whose write takes longer than its share of the bound (a third: 5 s in production) is still in flight when the view closes: the value reads `unsettled`, and the record written after it takes the leaf the anchor was aimed at, so the anchor does not land. With the whole bound to itself it used to land (measured, an anchor write answering after 1 s of a 1.5 s bound: the leaf on both earlier shapes, `unsettled` now); the session's next leg owes the anchor again (one re-rendered prompt prefix or one repeated date reminder, never a wrong date).
688
+ - **Not yet a capability.** No capability word in this release: `resumeAt` with the `at` mode does not yet accept every value this member hands (a non-message entry, a tool result). The word arrives with the slice that widens `at`; until then a host does not open a redo on the member's presence. A composition's (verification gate, cascade, repair loop) value is its own fold, not the last leg's (#4352 S4, below).
689
+ - **Consumers.** @server @sdk @client-core @web-client: a new optional member to keep per task; map the three `none` words to three distinct refusals.
690
+ - **Pins.** `test/backlog4352-continues-from.test.ts`.
691
+
692
+ ### A composition's `continuesFrom` is its own: the last of its legs that landed a write in the session of the leg it hands back — never the last leg's by spread (#4352 S4; behavior: new member only; narrowing: none; widening: none; hard-breaking: none; closed sets: none beyond S1's; exports: none added, none removed) (@server @sdk @client-core)
693
+
694
+ - **Rule.** Verification gate, cascade and repair loop close every returned result through one function (`closeComposition`, beside the intake fold it now also carries): `intake` is the fold it always was, and `continuesFrom` is the value of the last leg that ran in the returned result's session (`sessionId`) and landed a write there; a later leg that wrote nothing does not unsay it; none ⇒ `nothing_taken_in`. That session is the implementation's for a gate, the returned attempt's for a repair loop (after a clean restart, the restart's — never the discarded attempt's), and the passing rung's for a cascade (the last rung's when none passed).
695
+ - **Behavior.** A cascade's value names the returned rung's session, which the cascade releases when the rung ends: on a store that evicts what is released (no repo, `evict: "delete"`) that session is gone and a redo on the value is refused (`resume_at.not_found`); on a durable one (`evict: "forget"`) the session is still there. A rung run fresh, like a repair loop's clean restart, is its session's first leg, so its value is the date anchor that leg owed — and this slice only hands the landing: a date-anchor value is refused by `resumeAt` today (`resume_at.not_a_message`, whether `resumeAt` takes a non-message entry is the slice that widens `at`), while setting the session's leaf back to the value and continuing works. A cascade whose rung parked answers `run_open`.
696
+ - **Why.** Spreading the last leg's result let a fix leg refused before it took its input in overwrite the implementation leg's landing; a value read from any session other than the returned result's pointed a "continue where this call ended" at a transcript the call did not hand back.
697
+ - **Pins.** `test/backlog4352-continues-from.test.ts` G1–G6, G8 (gate passes at once · fails then a fix leg answers differently · a fix leg refused before intake · a fix leg that parks ⇒ `run_open` · a cascade with and without a session on an evicting store and on a durable one · a repair attempt · a parked cascade ⇒ `run_open`), R3 (a repair loop's clean restart, passing and failing), the fold as a function; G7 (every composition value taken by `at`) waits for the slice that widens `at`.
698
+
699
+ ### A file-history scope's address has its lengths as root constants — `FILE_HISTORY_SCOPE_TAIL_LENGTH` (22) and `FILE_HISTORY_SCOPE_SUFFIX_LENGTH` (23), and the mint and both readers derive from them, so a host that keeps scopes in a sized column reads them instead of writing a number of its own (#4496; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: +2 root names (`FILE_HISTORY_SCOPE_TAIL_LENGTH`, `FILE_HISTORY_SCOPE_SUFFIX_LENGTH`), none removed; wire: none) (@server)
700
+
701
+ - **Before.** The grammar `scope = sessionId | sessionId "~" tail`, `tail` exactly 22 of `[A-Za-z0-9_-]`, was written in the JSDoc and as the literal 22 three times in `src/engine/session/repo-utils.ts` — the digest cut in `fileHistoryScopeOf` and the two module-private expressions (`sessionIdHasScopeTail`'s, and `readFileHistoryScope`'s end match). No exported length existed, so a host's column width for scopes was a bare number of its own that nothing tied to the engine's.
702
+ - **Now.** Two root exports, `FILE_HISTORY_SCOPE_TAIL_LENGTH` = 22 (the tail) and `FILE_HISTORY_SCOPE_SUFFIX_LENGTH` = 23 (the `~` and the tail: how much longer an address is than the session id in front of it). The digest cut and both expressions are built from them (the separator and the tail's alphabet are each one module constant too), so the length is written once and `git grep -P '\b22\b' src/engine/session/repo-utils.ts` finds only its definition. `fileHistoryScopeOf`'s JSDoc says what a column needs: the longest scope it mints is the session id's length plus the suffix length, and it sets no bound on the session id itself — a host adds the suffix length to its own bound on the ids it accepts.
703
+ - **Not changed.** Every scope the engine mints or reads: the bytes of every address, what `fileHistoryScopeOf`, `readFileHistoryScope` and `sessionIdHasScopeTail` answer and refuse (the existing pins of #3992 / #3996 run unchanged). The tail's length is part of every stored address, so moving it is a hard-breaking change of its own, pinned at its value.
704
+ - **Exports (`node scripts/wire-changes.mjs --exports origin/stage-7690 HEAD`).** Root +2 (`FILE_HISTORY_SCOPE_TAIL_LENGTH`, `FILE_HISTORY_SCOPE_SUFFIX_LENGTH`; kind `variable`, tier `internal` by the snapshot's rule, the tier of `fileHistoryScopeOf` beside them), removed 0, changed 0; the snapshot's count 3397 → 3399.
705
+ - **Rules.** Readings of the tail's length 4 (JSDoc, the digest cut, two expressions) → 1. Added: two root constants; no function, no branch. Retired: none.
706
+ - **Pins.** `test/backlog4496-file-history-scope-lengths.test.ts` — L the suffix length is the length the mint adds, for ids of every shape (ordinary, with `~` `%` `_` `!`, empty, multi-byte, ten thousand characters) and many tokens; E the tail the reader returns is as long as the tail constant and read from every minted scope; F the two values are frozen at 22 / 23; R both expressions take exactly that many characters (one less and one more is no address, in the census predicate and in the reader, with and without `!`s after it); the lengths of a bare scope never pass the id's.
707
+ - **Consumers.** @server (#4496): the SQL column that holds a file-history scope takes its width from `FILE_HISTORY_SCOPE_SUFFIX_LENGTH` plus the server's own bound on a session id, and the server's own constant for the tail retires. @cli @client-core @test: no read.
708
+
709
+ ### A run reads back or saves an offloaded tool result only when a run of its own identity stored it — on every store, not only the default one: another person's ref reads exactly like a ref that is not there (#4481; behavior change: narrowing on injected stores and on three default-store inputs, widening on one input, below; hard-breaking: four entries — the store contract's owner record gains two members every injected store must keep, entries written before this version are nobody's, a store without `ownerOf` backs no read, one notice code and its reason words added — below, open to veto @server @cli @client-core; closed sets: `EngineNoticeCode` +`tool_result.read_refused`; exports: `ownerIdentityOf`, `identityReadVerdict`, the column codec `encodePrincipalColumn` / `decodePrincipalColumn` and the types `OwnerIdentity`, `IdentityReadVerdict`, `ToolResultReadRefusal` added — the identity, its judge and its column codec carry neutral names, not the tool-result face's; `ToolResultProvenance` gains `principal?` / `isolationScope?`) (@server @cli @client-core @test)
710
+
711
+ - **Rule.** Who may read an offloaded result is one fact: the identity of the run that stored it — its principal (`TaskSpec.principal`, `null` for a run that names none) and its isolation scope (`TaskSpec.isolationScope`, when it differs from the principal). A run reads an entry only when the entry records the run's own identity. Every run reaches its store through one view (`LegToolResultView`) that records the identity on every write and judges every read (`identityReadVerdict` over the store's `ownerOf`); `ReadToolResult` and `SaveToolResult` read only through it. Before, two rules answered this question: the default (Runner-shared) store kept each isolation scope's results under its own namespace, and an injected store had no rule at all.
712
+ - **Before (measured, v7.68.1, real Runner, scripted model).** Two Runners, each its own working directory, one injected store with no tenant split (an in-memory one, a file one): principal `pb`'s model, handed principal `pa`'s refs, read `pa`'s offloaded text back (60 009 characters, `SECRET-A-…`), and over the file store described `pa`'s kept bytes and saved them — "Wrote 3000 bytes … to out-BYTESSAVE.bin", byte-identical, into `pb`'s own workspace. On one Runner over an injected in-memory store, an anonymous run, the same person in another isolation scope, and another principal on the very same session all read `pa`'s ref; on the default store each of those was refused. (The in-memory store kept no bytes before 7.69.0's #4453.) The precondition was holding the ref string; once a run held it, no layer stood in the way.
713
+ - **Now.** Each of those reads answers the sentence a ref that is not there answers — "No persisted output this run can read for ref "…" — it may have expired, it may have been stored before this engine recorded who stored it, it may have been stored by a run of another identity (…), or this process has no durable tool-result store." (`ReadToolResult`) and its `SaveToolResult` twin ("No kept bytes this run can read for ref "…" — … Nothing was written."), each followed by the one way out every unreadable output takes (`UNRETRIEVABLE_OUTPUT.gone`, #4453's: "This output cannot be retrieved here; any preview you saw is all that remains. If you need it, get it again only when that repeats no action (a read or a query); otherwise do not repeat the call to get it back — tell the user it can no longer be retrieved."). The four causes stand side by side — the model is not told which one held, and it is never told to re-run a tool unconditionally (a tool with side effects re-run to recover its output would repeat the effect). Both are byte-identical to the reply for a ref no write ever stored — and writes no file. The operator is told: `tool_result.read_refused`, once per refused read of an entry the store holds, `detail: { ref, reason, reader, owner?, cause?, sessionId, occurrenceId }`; a ref that is not there is never told — except where the store's `ownerOf` threw (`owner_read_failed`, told whether or not the ref exists: an outage of the store is not a miss, pin F3). Every way a run legitimately comes to hold another run's ref still reads it: a later turn of the same session; another Runner on the same session; a fork of the session (`/fork`) and `warmResume`'s continuation on a fork; another session of the same person; a sync child reading its parent's ref and the parent reading its child's; a fork child; a background child — all carry the same identity.
714
+ - **Hard-breaking (open to veto @server @cli).** (1) *What changed:* `ToolResultProvenance` gains `principal?: string | null` and `isolationScope?: string`; the engine's writes state them, and a store's `ownerOf` must answer them exactly as written — `principal: null` (the anonymous identity) and an ABSENT `principal` (no identity recorded) are two different stored values. *Who is hurt:* every deployment that injects `RunnerDeps.toolResultStore` with its own implementation (@server's SQL stores and its in-memory fallback): until the store keeps and answers the two members, every page-back and every SaveToolResult of its runs reads as absent — its own offloads included (fail-closed: nothing is served across identities in the meantime). Its writes, measured on a store that keeps only session and task (pin S): where the winner of the insert returns at once and only a write that finds the ref taken reads it back and compares with `assertToolResultProvenanceMatch`, the first write stores (without the identity) and every repeat of it is refused `tool_result.ref_conflict` (the stored row lacks the identity the repeat states) — the per-request budget's re-put of the same ref, a retry, another Runner offloading the same content; where every write reads back (the reference adapters' form before this version), every engine write is refused. The engine's writers absorb the refusal (an oversized result stays inline, the per-request budget falls back to its self-contained truncation, the clear-with-offload persist announces `tool_result.offload_put_failed` once per session, in the sentence for an entry no run can read — the stored row names no identity — and the cleared marker carries no ref where the store refuses the write at once, but still names it where the store answers later (a `put` that returns a promise); see (2)): nothing fails. Ship the store change with the engine. *Migration:* add the two members to the owner record — the reference SQL adapters use a nullable `principal` column with `''` for the anonymous identity and `NULL` for none recorded, and a nullable `isolation_scope` column (`ALTER TABLE … ADD COLUMN principal …, ADD COLUMN isolation_scope …`, in `src/examples/adapters/pg-adapter.ts` / `tidb-adapter.ts`); run `toolResultStoreContract` (its new `#4481 identity` case). The TiDB adapter's exported schema statement, `TIDB_TOOL_RESULT_DDL`, now creates `tool_results` with the two columns `principal` and `isolation_scope`; it is a `CREATE TABLE IF NOT EXISTS`, so it adds nothing to a table that already exists, and the adapter's insert and owner read name both columns — a deployment of the reference adapter over an existing table applies the `ALTER TABLE` above before it upgrades (the comment above the statement says so), and one that compares its own schema with the exported statement's text meets the new text. (2) *What changed:* entries written before this version record no identity and are read by nobody (`reason: "no_identity"`). *Who is hurt:* a session that continues across the upgrade and pages back a result offloaded before it — the inline preview stands, the rest is not served, and the model is told it may predate identity records and that it can get it again only where that repeats no action (pin F5, the file store's pre-7.69.0 owner sidecar). How long such entries remain depends on who sweeps the store: @server's SQL back end ages entries out on its maintenance beat (one day by default); @server's local back end with its long-running HTTP service calls the same age-bounded sweep (`reap`) on the bundled file store (one day; a service that is not kept running sweeps at its next start's maintenance beat); a command-line-only deployment over the file store (@cli without the service) calls no sweep at all — the engine itself never calls `reap` — so there the entries stay unreadable for the session's life (deleting the session removes them with it). The same session's writers meet such an entry again, because a run re-clears the old results of its session and writes each under the ref it was stored under before; the write-once judge refuses that write (the stored owner names no identity, the offered one does — another owner to it), where v7.68.3 skipped it as the same owner (v7.68.3 read in code; this version measured, pins `test/backlog4658-legacy-offload-reput.test.ts` — a real Runner over a file store holding two such entries, two runs after the upgrade — unless marked). *The operator notice:* v7.68.3 said nothing; the clear-with-offload persist now tells `tool_result.offload_put_failed` once per session (recorded in the session's told-once record like the engine's other once-per-session notices; a refusal that arrives after the run's last write of that record is told again by the next run — KL-4481-f), in its own sentence (the ref holds the session's own entry with no owner identity recorded; no run can read it back, and writing it again does not change that) with the same `detail` members; a command line that shows operator notices to the person shows that one line. Every other refusal of that write is still told per attempt, its sentence unchanged. *The cleared marker:* v7.68.3's named the ref ("full text persisted; call ReadToolResult …") and the ref read back; on the engine's file and in-memory stores, which refuse at once, such a result's marker now carries no ref (`[Old tool result content cleared]`), so the model is not sent to a ref no run can read; on a store that answers its writes later, the refusal arrives after the marker is written, so the marker still names the ref and a read of it gets the miss sentence (KL-4481-f). *A host that turned on `compaction.staleToolResultOffload`:* where v7.68.3 sent such a result as its pointer, the pointer's write is now refused and the result rides every request in full (measured by a probe of the release review: 20 000 characters where an entry this version wrote rides as a 306-character pointer; KL-4481-f). *The per-request budget:* its preview of such a result is the self-contained truncated preview where v7.68.3's carried the ref (code-read), so the request's prefix changes once at the upgrade. *Migration:* none in the engine (no reading by session for these rows — that would be a second way to answer the question, alive as long as the rows); back-filling identities is a deployment's explicit migration, never a side effect of a write. (3) *What changed:* a store without `ownerOf` backs no read at all (`reason: "no_owner_read"`). *Who is hurt:* a third-party store that never implemented the member the contract kit has required since #119. *Migration:* implement `ownerOf`. (4) *What changed:* a closed set grows — `EngineNoticeCode` +`tool_result.read_refused` (audience `operator`, minter `engine`), whose `detail.reason` is a new closed set of six words (`other_identity` | `no_identity` | `unowned` | `owner_unreadable` | `owner_read_failed` | `no_owner_read`; what each asks of the host: `docs/INTEGRATION-CORE.md` §5.2.1). *Who is hurt:* a consumer that switches exhaustively over notice codes (@client-core's notice tables, @server's operator sink, @cli if it renders operator notices). *Migration:* add the row (operator audience; never shown to the session's user — it names another person's identity).
715
+ - **Migration face: a deployment that starts naming `isolationScope` (measured, pin V1).** An entry stored by a run that named only its principal `pa` records no isolation scope (its scope is the principal): a later run of `pa` naming `isolationScope: "pa"` reads it; one naming `"pa-team"` does not (another scope of `pa`'s work, `reason: "other_identity"`) — so entries stored before a deployment starts filling `isolationScope` stay readable only where the scope it fills equals the principal, until the store's retention ends them. Not measured: how a parked checkpoint row's isolation-scope record reads under the same migration (out of this change).
716
+ - **Narrowing (open to veto @server).** On an injected store: another principal, an anonymous run reading a named run's entry and a named run reading an anonymous run's, and the same person in another isolation scope no longer read an entry; a lane of a deployment that runs on a session under a different principal than the lane that offloaded (a service principal, an absent one) no longer reads that lane's refs — it reads the absent sentence and the operator account names both identities. Named for the hosts (open to veto @server @cli): (a) a model-driven hook a host runs on its own Runner with a task it builds (the engine runs no hook model itself; its hook payload carries the session and task, not the principal) reads none of the triggering run's refs unless that task carries the triggering run's `principal` and `isolationScope`; (b) a deployment that gives one person two identities on one session — a turn with no principal and a turn with one (an ownerless session open to any caller), or a service turn and a command-line turn whose principal is `local` over a shared data root — reads none of the other turn's refs (pin N4: the model reads the absent sentence; the operator account shows `reader: { principal: "local" }` against `owner: { principal: null }` and the reverse); (c) the anonymous identity is not a name: a run that names no principal records `principal: null`, which is neither the principal named `default` nor any other — a host that rewrites a session's owner to a placeholder name (`default`, a service account) on a session-sync push, a fork or an adoption, and runs later turns under it, reads none of the anonymous turns' refs, nor they its (pin N5 on an injected store; D1 on the default store, whose namespace keys both `default`). The fix is the host's: one identity per person per deployment, a placeholder name is a different person, and a host-built task carries the identity of the run it works for. On the default store: two principals given one isolation scope string, a principal literally named `default` and an anonymous run, and an anonymous run in scope `x` and the person named `x` shared a namespace and read each other's entries; they no longer do. (Widening, one input: on an injected store a run whose principal is the empty string and a run with none are one identity — the empty string is no principal — and read each other's entries; on the default store their namespace keys still differ.)
717
+ - **Not changed.** The default store's namespace (`ScopedToolResultStore`, keyed on the isolation scope); refs and their form; what the writers store and when; `deleteBySession` / `listBySession` / `reap` selections (on the session, never the identity); a host's own read face (the engine does not reach it — the judgment is exported for it, see Consumers).
718
+ - **Rules.** Readings of "may this run read this ref": an injected store had none, the default store had its namespace → one judgment on every store (the default store keeps its namespace as well — the two part on four inputs, KL-4481-b); readers of a ref 2 (each read text, then bytes, on its own) → 1 (`LegToolResultView.read`, typed so the two read tools accept nothing else); derivations of a leg's identity from its task 2 (the tool context's own, and none for the store) → 1 (`legIdentityOf`, `src/core/isolation-scope.ts`: the tool context's `principal` / `isolationScope` and the store view's identity both read it); the identity a run writes as and the identity it reads as: one value (the view's). The comment beside the ref mint that said a read face authorizes on `ownerOf` is now true.
719
+ - **Pins.** `test/backlog4481-ref-read-authz.test.ts` (real Runner, scripted model, injected stores; a real stdio MCP server for the bytes): A — two principals × {in-memory, file} × {text, bytes} × {read, save}, and a store of no engine class (A5); B — the legitimate forms above; N — anonymous ↔ named both ways, anonymous ↔ the principal named `default` (N5), a lane under another principal on one session; H — a host's read face and a run's view derive one identity; F — no owner, an owner of the wrong shape, no `ownerOf`, an `ownerOf` that throws, an entry with no identity; D — the default store's namespace beside the judge. The contract kit's `#4481 identity` case binds every store that runs it.
720
+ - **Consumers.** @server: keep the two members in your three tool-result stores and answer them from `ownerOf` (same version; until then your runs' page-backs read as absent) — a SQL column writes and reads the principal through `encodePrincipalColumn` / `decodePrincipalColumn` (`''` anonymous, `NULL` none recorded), not a spelling of its own; the lanes that read a session's refs must run under the principal (and isolation scope) of the lane that offloaded them — the operator notice `tool_result.read_refused` with `reason: "other_identity"` names the pair that differed; your own HTTP read of a session's tool results judges its caller with the engine's function, not a comparison of its own — `identityReadVerdict(await store.ownerOf(ref), ownerIdentityOf({ principal, isolationScope }))`, `"readable"` serves, every other answer reads as absence (INTEGRATION-CORE §5.2.1; pin H: `ownerIdentityOf` over the caller's members as given answers what a run's view records). The view wraps every leg's store whatever its class (pin A5: a plain object store is judged the same). What the identity does NOT separate, for the host to know: one identity reads every ref it stored, in any of its sessions — the same person holding a ref string from another of their sessions pages it back (pin B9) — and a deployment that maps a whole team to one principal (and one isolation scope) makes the team one identity, whose members read each other's refs; give each person their own `principal`, or each team member's work its own `isolationScope`, where that must not happen. @cli: a session resumed across the upgrade pages back nothing offloaded before it (the preview stays). @client-core: one notice code added (audience operator). @test: the black-box cells are the A grid (expect the absent sentence, no file) and the B forms (expect the content).
721
+ - **Known limits.** KL-4481-a (entries written before 7.69.0 are nobody's), KL-4481-b (the default store's namespace and the judge are two mechanisms over one question; they part on four inputs), KL-4481-f (a store that answers its writes later leaves the cleared marker naming such an entry's ref; with stale-result offload on, such a result rides every request in full).
722
+
723
+ ### A hook holding a tool call or an input is named on the wire — a new `hook_progress` frame pairs each decision screen's start and end, and `tool_progress.gate` gains `hook` (#4221; cli L-703 / test ux4; behavior change: one new frame arm, one new gate word; narrowing: none; widening: none; hard-breaking: two closed unions grow — the `TaskEvent` type set and `ToolGatePhase`; closed sets: `TaskEvent["type"]` +1, `ToolGatePhase` +1; exports: none added, none removed (`ToolGatePhase` / `HookProgressSubject` are type-hub names, not root exports); wire: `hook_progress`, `tool_progress.gate: "hook"`, additive for a reader that drops unknown arms) (@server @cli @client-core @test)
724
+
725
+ - **Rule.** Who holds a call at its gate is the innermost open hold on the call's one occurrence record — now three holds (`classifier` > `approval` > `hook`), ONE keyed hold (`whileHeld(toolCallId, phase, …)`) where there were two bespoke brackets (`whileAwaitingUser` / `whileClassifying`) and two hand-written counts. A decision screen (a call's `classic.PreToolUse` screening, a prompt's screen) runs inside ONE seat (`Prepared.hookScreens`): it holds the call under `hook` and frames the screen. A person deciding inside it holds the call under `approval` above the hook — the leg's own approver, and an ancestor's frozen approver answering an inherited installation's or an inherited policy's question (the policy-chain phase now takes the one hold verb, `whileHeld`, where it took a classifier-only bracket).
726
+ - **Before.** While a deployment's PreToolUse hook ran, the call looked like a running command: `tool_start`, then — only after 30–60 s — an elapsed-0 `tool_progress` naming no holder (test ux4: a `sleep 70` hook showed "Running… (14s)" for about 60 s; CC 2.1.321 shows `running PreToolUse hook` in its spinner at once, measured on the real binary, its suffix read in code as `NCt` (cli321.js:312094)). A prompt screen (UserPromptSubmit) left nothing on the stream: the person saw a spinner for as long as it ran.
727
+ - **Now.** `hook_progress { phase: "start" | "end", screen, event, toolCallId? | source + inputId? }` — `start` once a screen has lasted one progress interval (`TOOL_PROGRESS_MIN_INTERVAL_MS`, the cadence floor `tool_progress` keeps: a host's handler whose matcher passes a call over answers in microseconds and must not flash on every call), `end` when it settles — answered, refused, thrown, out of budget, cancelled, or the leg ended first; every `start` has exactly one `end`. A steer taken while its leg is still starting (slow startup session reads) is screened before the leg's content frames begin: its `start` goes out when they begin, if the screen is still running. One pair per screen whatever runs in it (every registration of the chain, an inherited installation, a rewrite's re-judge, several host hooks inside one registration). `event` is `classic.PreToolUse` (phase 1, the re-screen of a person's edit, the resumed leg's re-screen of an approved call; `toolCallId`) or `classic.UserPromptSubmit` (objective / live steer / parked redelivery; `source`, and `inputId` except on the objective). While the screening holds a call, its beats say `gate: "hook"` (elapsed 0; beaten like a classified call). Ephemeral (the `tool_progress` law: never persisted, never replayed; a resumed leg's screens mint their own), forwarded to a parent's pane under `forwardSubagentEvents`. A wake's message is screened before its leg's stream exists: no frame.
728
+ - **What it does not carry.** A hook name (the engine sees registrations, not the hooks a host runs inside one; the host-reported name is a later seat), a ceiling (a registration's `budgetMs` is the engine's wait bound, not the hook's timeout), an elapsed time (the reference's number is the turn timer), a verdict (`tool_end.gate` / the input's frames are that record).
729
+ - **Hard-breaking.** (1) *What changed:* `TaskEvent["type"]` gains `hook_progress`, and `ToolGatePhase` gains `hook`. *Who is hurt:* a consumer with an exhaustive switch (or a `Record` keyed by the union) over `TaskEvent["type"]` or over `tool_progress.gate` gets a compile error (or, untyped, an unknown arm it drops) until it handles them — read in code at server origin/main `fbcb3ff18`: `src/trace/wire-projection-faces.ts` projects frames arm by arm and `src/trace/core-keyset-guard.ts` / `model-segment.ts` enumerate the arms; client-core's frame projection and CC-545 gate projection, and the cli's frame handling, inferred, not read. *Migration:* add the arm (render a `start` as the reference's spinner suffix — `running PreToolUse hook` / `running UserPromptSubmit hook` — and clear it on the `end` with the same `screen`; the reference's tool row shows nothing for a PreToolUse hook, in the normal view or the transcript (it writes `N PostToolUse hook ran` in the transcript, for PostToolUse only — measured on the real 2.1.321 binary); the reference's suffix shows only the main agent's hooks, so how a frame forwarded from a sub-agent is shown is the consumer's choice; a consumer that only relays frames forwards it unchanged) and the word (`hook` → a call held by its hook, the state the frame pair brackets).
730
+ - **Not changed.** `tool_start` / `tool_end` / `status` frames; the cadence floor and the 30 s heartbeat; the approval silence (nothing is beaten while every call waits on a person); the screens' verdicts and refusal sentences; the wake message's screen; `elapsedTimeSeconds` (execution time, 0 while gated).
731
+ - **Rules.** Hold kinds read by bespoke code 2 → 0 (one keyed hold, one precedence list in `gatePhaseOf`); bracket points for a decision screen: one per station (`createPreToolUseScreening().screen`, `screenUserPrompt`) — no per-entrance special case; added: one frame family member, its one mint (`src/core/runner/hook-progress-lane.ts`).
732
+ - **Consumers.** @cli (L-703): the spinner suffix reads the frame (the reference's tool row shows nothing for a PreToolUse hook, in the normal view or the transcript — measured on the real 2.1.321 binary); no name yet, render the reference's fallback words. @client-core (CC-545): project `hook` as the third gate phase and the arm as its transition. @server: a row for `hook_progress` in `WIRE_PROJECTION_FACES` (and the keyset guards) so the frame reaches the shell's stream; nothing to mint (the engine frames the screen around the server's `settings.hooks` registrations). `tool_progress.gate` reaches no shell today: server's `tool_progress` allowlist projection (`toolProgressEventData`, `src/trace/project.ts`, origin/main `fbcb3ff18`) and client-core's `toolProgressProjection` (`src/adapter/downstream/eventToSdkMessage.ts:1417`, origin/main `0e380814`) both drop the key (read in code), so `hook` / `classifier` / `approval` all stop there. @test: ux4 #1 / #5 re-read — `start` about 1 s into the hook, `end` before the card / the call's run.
733
+ - **Pins.** `test/backlog4221-hook-gate-phase.test.ts` — U1–U8 on a fake clock (the pair at the interval, nothing under it, the end on a rejection, the close of an open screen, the hold and the nesting order, the beat saying `hook`, the prompt subject, a screen due before the lane is bound) · on the real Runner R1 a 70 s hook then allow · R2 40 s then ask (the end before the card) · R3 deny · R4 a 45 s budget running out · R5 a throwing hook · R6 a cancelled run · R10 two registrations, one pair · R11 control (an instant hook and a 600 ms one: no frame) · R8 the objective's screen · R9 a live steer's screen with its input id · R13 a steer taken while its leg starts (slow session reads) · R7 the leg ending while a steer's screen is open · R12 a parked steer's redelivery · E1 never persisted (session entries, result) · E2 never replayed (a parked call's resumed re-screen is a new pair) · CONTRACT. Re-pinned to the keyed hold: `test/backlog1518-gate-phase-wire.test.ts` (and its CONTRACT, three words), `test/backlog1506-progress-origin.test.ts`, `test/backlog1392-occurrence.test.ts`.
734
+
735
+ ### Auto mode's delegation reviews say so when the classifier gives no ruling — a `classifier.unavailable` line with its site, an `unreviewed` record on the result, and the reference's note on a hand-back report; the delegation still goes ahead. A reply that answers both yes and no now refuses there, as it does at the gate (#1447; ruled C-R289; behavior change: one notice now minted at the delegation sites, one note on a report, two sentences reworded; narrowing: one, below, open to veto @server @cli @client-core @test; widening: none; hard-breaking: three, type-level only, below @server @cli @client-core; closed sets: `CLASSIFIER_REVIEW_SITES` added (3), `ClassifierUnavailableDisposition` +1 word `proceeded`; exports: `CLASSIFIER_REVIEW_SITES`, `ClassifierReviewSite`, `DelegationUnreviewed` added, none removed; wire: additive — notice `detail.site`, `detail.disposition: "proceeded"`, Agent card / launch receipt `unreviewed`, `TaskNotificationPayload.unreviewed`, `WorkflowAgentRun.unreviewed`) (@cli @client-core @server @test)
736
+
737
+ - **Before.** Auto mode reviews a sub-agent's prompt and tools before it starts (an Agent delegation's, and each agent a workflow script starts), and the work an Agent sub-agent hands back. When that classification did not rule — the classifier could not run, ran out its budget, or replied with no verdict — the reviews let the delegation through without a word: no notice, nothing on the result, nothing on the report. A user watching a hung classifier saw a generic wait; after it, nothing said the delegation had not been reviewed, and the result's `attestation: "clean"` / `gate.disposition` `allowed` read as if it had. The per-call gate reads the three forms through `rungDidNotRule` and its arm; the delegation sites read `verdict.kind !== "block"` instead — a second reading of the classification, which also let a reply that answered both yes and no through as an allow.
738
+ - **Now.** The delegation sites read their classification with one reader beside the per-call arm (`readDelegationReview`, `src/core/classifier-unavailable-arm.ts`) on the same predicate. A classification that did not rule lets the delegation go ahead exactly as before, and the same value is said three ways. (1) The user hears `classifier.unavailable` — the existing code and audience — with `detail.site: "spawn" | "handback"`, `detail.disposition: "proceeded"`, `toolName` / `toolCallId` the delegating call's (`Agent`, or `Workflow` for a workflow's agent), and a sentence that names the sub-agent (its name, description or type when it has one — a workflow agent's script label — redacted, bounded at 80 and escaped by one subject writer), says which review did not happen, why, what went ahead, and who can do what if it keeps happening (`The deployment's operator can raise the budget.` on a timeout). The per-call stations now carry `site: "call"`; their sentences and dispositions are unchanged. (2) The result records `unreviewed: { spawn?, handback? }` (each an `AutoModeFallbackCause`): on the completed Agent card, on the background launch receipt (`spawn`), on the background / fork-background / resumed-cycle completion frame (`handback`), on a workflow agent's record (`spawn`). (3) A hand-back review that did not rule puts the reference's note where a flag goes: `Note: The safety classifier was unavailable (timed out) when reviewing this subagent's work. Please carefully verify the subagent's actions and output before acting on them.` (`replied without a verdict` for a reply with no verdict; the classifier model's name as the subject when the decider vouches for it). The note is not a flag — `handbackWarning` stays absent, a frame's `handback` stays `send` — and it is separate from the report's unconditional "Verify this result before concluding" line. The hand-back sentence says the report went to "the agent that delegated it" (a grandchild's report reaches the child in between, not the main agent). `classifier.contract_broken` no longer says "every gated call it judges is denied": it counts each way a reply misses the verdict contract by what came of it and says that — replies with no verdict on a model the ladder walked away from: the classification moved on to the next classifier model; replies with no verdict where the classification ended: a gated call went to the run's approval seat, or was refused where the run has none, and a delegation went ahead unreviewed; replies that answered both yes and no: refused where they landed (a gated call or a sub-agent spawn refused, a hand-back flagged). The record a deployment's `onClassified` receives (`AutoModeClassified`) gains `form` (present exactly on `parse_error`: `missing` / `conflict`) — the one place the line takes its words from. The parse-failure refusal sentence (`classifierParseFailureDenyMessage`, at the gate and at the delegation sites) now says a contradictory reply "answered both yes and no" instead of "replied without a verdict"; the no-verdict sentence is unchanged.
739
+ - **Narrowing (open to veto @server @cli @client-core @test).** A classifier reply that answers both yes and no (`parse_error`, form `conflict`) is a ruling by the one predicate, and the gate refuses it; the delegation sites now read it the same way. Before: the sub-agent started, and its hand-back went to the parent unflagged. Now: the spawn is refused (`Sub-agent not started: blocked by the auto-mode classifier: Auto mode could not evaluate this action and is blocking it for safety — the classifier model "…" answered both yes and no.`, the existing `autoMode.spawn_blocked` result; a workflow agent fails on its existing refusal path), and the hand-back carries the existing flag with that reason. Who is affected: a run whose classifier model answers both ways — the form `classifier.contract_broken` already counts as a model not keeping the verdict contract. Way out: the same as at the gate — a classifier model that answers in the verdict format, or retrying the delegation.
740
+ - **Hard-breaking, type-level only (@server @cli @client-core; no wire key renamed or removed).** (1) `ClassifierUnavailableInfo` (what a host observer — `ToolGateInput.autoMode.unavailable.onUnavailable`, or one wired on a delegation seat — receives) is now one shape per site: `{ site: "call"; route }` or `{ site: "spawn" | "handback"; subject? }` (an interface became a type alias of that union). A host that builds an info by hand without `site` gets TS2741; way out: add `site: "call"`. A host that reads `info.route` without first narrowing on `site` gets a compile error (the delegation shape has no `route`); way out: `if (info.site === "call") … info.route`. (2) `ClassifierUnavailableDisposition` gains `proceeded`: an exhaustive switch over `classifier.unavailable`'s `disposition` gets a compile error until it handles the third word (it appears only with `site` `spawn` / `handback`). (3) `classifierParseFailureDenyMessage` takes the `parse_error` verdict (`{ form, classifier? }`) instead of the attribution alone, so its tail can follow the form: a caller passing `verdict.classifier` gets a compile error; way out: pass the verdict.
741
+ - **Not breaking — the workflow lane's review seat, which the wire manifest reads as changed.** `RunWorkflowOptions.autoModeReview` and the getter `RunWorkflowToolDeps.autoModeReview` are now typed by `ToolExecuteContext.autoModeReview` (`{ decider, unavailable? }`), where each wrote out `{ decider }`: the type gains the optional observer seat `unavailable` and `decider` is still a required member, so a direct `runWorkflow` caller passing `{ decider }`, and a host's getter answering it, type-check as before. The manifest's "`autoModeReview.decider` lost" is its reading of the referenced type, not a removed member.
742
+ - **For a host rendering the Agent result.** `attestation: "clean"` says the child read no external content — it is not "reviewed". While `unreviewed` is present, do not render `clean`, or the call's `gate.disposition` `allowed`, as a passed review.
743
+ - **Not changed.** Whether a delegation whose review did not rule proceeds: it does (the accepted limit: during a classifier outage the sub-agent runs unreviewed; its own gated calls are still judged one by one); a block still refuses the spawn and still flags the hand-back; an approval seat is not consulted at the delegation sites. A review cut short by a stop says nothing (the stop story stands). One classification fewer, nothing a reader sees: a foreground child that durably paused is no longer put to the hand-back review (its report carries no hand-back — the review's answer was already discarded there; the background lane already skipped it).
744
+ - **Where the observer comes from.** One builder (`delegationReviewSeat`, `src/core/runner/classifier-ladder.ts`) makes the leg's review seat — the decider the per-call gate consults plus the `classifier.unavailable` observer, addressed and admitted with the leg's notice route like the gate station's — for both places a delegation reads it: the tool-execution context and the Workflow mount's own dependency (its execute context is not enriched).
745
+ - **Reference.** 2.1.321 hands a report on with the same note when its hand-back review gets no verdict (`cli321.js:288740`, prepended at `cli321.js:292355`), with no notice and no machine-readable record; it has no separate spawn review for the Agent tool — the call is judged by the per-call classifier and refused when that is unavailable (`cli321.js:287877`); its workflow agent gate lets an unavailable classification through silently (`cli321.js:292339`). The Agent spawn side here is a registered departure (keep delegating, say so).
746
+ - **Rules.** One reading of a delegation review's classification at every delegation site, on the per-call stations' predicate (the private non-block reading retired); one observer and one notice writer for all classifier sites; one record for the result. Added: the delegation reader.
747
+ - **Pins.** `test/backlog1447-delegation-review-no-ruling.test.ts` (three forms × foreground / background × spawn / hand-back on the real Runner; seated cells; conflict at both sites; the `ctx.agent` lane's four no-ruling forms, its allow and its conflict, and the `ctx.agentStream` lane; controls: allow at both sites adds nothing, a spawn block still refuses, a hand-back block still flags; the per-call `site: "call"`; the frame screen; the contract line for a no-verdict streak, a both-ways streak (also end to end on a real Runner: three refused spawns) and a mixed one, a seat the two-rung decider walked away from (alone and mixed with a contradiction that stopped the walk), the decider's record carrying `form`, and the observer refusing a site outside the set); `test/backlog805-classifier-robustness.test.ts` and `test/backlog813-conflict-stops-the-ladder.test.ts` re-pinned for the writer's new argument and the conflict tail, and their hand-built streak records now carry the reply's form (missing / conflict) and read its clause; `test/rb201-handback-review.test.ts` adds the paths the real-Runner pin does not drive (sync fork card, background fork row + frame, the woken cycle's frame, and a foreground child that parks: no review, no note, no record); `test/prepare-caps-and-workflow.test.ts` pins the Workflow mount's observer; `test/backlog1125-classifier-unavailable-exit.test.ts` and `test/backlog3083-3084-delegation-refusal.test.ts` re-pinned for `site: "call"`.
748
+ - **Consumers.** @cli renders the notice's `site` / `proceeded`, the `unreviewed` record and the note (its user face for ② ③), and does not render `attestation: "clean"` as reviewed while `unreviewed` is present. @server: the notice detail gains `site` and a third `disposition` word; the Agent card, the completion frame and the workflow agent row gain `unreviewed`. @client-core: the types. @test: the 36-cell black box (three forms × foreground / background × spawn / hand-back × seated / not) should now read all three parts, and none with a classifier that rules; a conflicting reply now refuses the spawn.
749
+
750
+ ### A session-rule layer a host built itself, given no `onEarlierGrammar`, no longer drops the earlier-grammar notice in silence: it leaves by the engine's own notice throat (#1779; behavior change for a host that builds `createSessionRulePolicy` by hand over a row stored in an earlier grammar; no option, no type, no wire word moves)
751
+
752
+ - **Before.** `createSessionRulePolicy(rules, { env })` over a row whose earlier grammar reads an entry as nothing, or otherwise, enforced the stored reading and said nothing anywhere: the default notice seat 0, the process 0 (measured on the base head over three rows — a grammar-0 allowlist holding `*`, a grammar-1 deny holding `-deploy`, a grammar-6 deny holding `mcp__a__b`; the only trace was the refusal clause the allowlist case carries). The engine's own wiring always passes the seat, so only a hand-built layer was silent.
753
+ - **Now.** With no `onEarlierGrammar` (or one that is no function — an untyped host's `null`, a string), the layer tells the same `config.session_rules_earlier_grammar` notice through `deliverEngineNotice` with no seat of its own — the throat every notice of the engine takes when it has none in hand: the default seat a host installed (`setDefaultEngineNoticeSeat`) hears it, otherwise it prints as one process line (the notice's `message`). The notice names no session (the layer belongs to none): the sentence reads `session permission rules: …` and `detail` carries `bucket` / `storedGrammar` / `entries` / `rewrite` without `rulesSessionId` / `sessionId`. It is told once per distinct entry set per layer (the announcer's own record); a hand-built layer has no session record, so there is no once-per-session beyond that, and a second layer over the same row tells again. With a function the function is told as before and the throat says nothing.
754
+ - **Not changed.** The decisions the layer returns (allow / deny, the refusal sentences, the refusal clause); the engine's own wiring (one notice per session per entry set, both session ids, to the run's `onNotice`); `createSessionRulePolicy`'s signature; the code, its audience (`user`) and the closed-set tables. `earlierGrammarAdvisory` / `earlierGrammarNotice` are not root exports.
755
+ - **What a host sees.** A host that builds the layer by hand over rows in an earlier grammar and passed nothing: one notice on its default seat, or one `console.warn` line per distinct set per layer — in a test suite that is output, not a failure (a pin that spies on `console.warn` for silence would now see the line: pass `onEarlierGrammar` to take it over). Told once more per layer than the callback path's per-session record would, never per call.
756
+ - **The family's shape (no change; pinned).** The ticket text that asked the earlier-grammar announcement to be one error class was written against the 7.52 form (a plain `Error` with `.code` on `onError`); since 7.53.0 (#1970) it is an engine notice — a data object through `onNotice`, with `sessionId` and `detail.entries` — and has no `onError` arm. `config.session_rules_unreadable` stays an operator's advisory: an `Error` carrying `code` on `onError` (phase `config`), like every config-phase advisory of the engine. Neither is a `SessionPolicyError`, which is the `putRules` refusal class (eight short codes, typed `detail`); a `config.*` word in it would break the exhaustive guard a consumer holds over it. The split between the two channels is the audience's (user / operator).
757
+ - **Rules.** Arms of the announcement that drop the fact for want of a sink 1 → 0 (the announcer's `sink === undefined` arm is gone; there is always a sink). Added: none as a rule — the absent callback is replaced by one inline function that hands the notice to the throat the engine's own seat ends in. New options 0, new exports 0, new modules 0. Not changed, by design: the throat's own guard (a default seat that throws, or a `console.warn` that throws, loses that one delivery and fails nothing) and a callback that throws (the announcer records the set before calling it, so the set is not retried).
758
+ - **Pins.** `test/backlog1778-1779-earlier-grammar-notice-shape.test.ts` — H1 a grammar-0 allowlist holding `*`: one notice on the default seat however many calls, no session named, the engine's sentence, no process line, decisions unchanged · H2 no default seat: one process line · H3 / H4 the grammar-1 deny and the grammar-6 revised deny · H5 once per distinct set per layer, a second layer tells again · H5b a set that comes back (A, B, A) is told once each · H6 a row in the current grammar says nothing · H7 the control: with a callback the callback is told and the throat is silent · H8 a callback that is no function · H9 a default seat that throws is reached once and changes nothing enforced · F1 / F2 / F3 the family's shape on the real lane (the notice is no Error and no `onError`; `unreadable` is an `Error` with its code on `onError` and no notice; `SessionPolicyError`'s code union has no `config.*` word, held by a `@ts-expect-error` line). On the base head H1–H5, H5b and H8 are red, the rest green.
759
+ - **Consumers.** @server @client-core @cli @test: no production caller of `createSessionRulePolicy` without the callback (read on each `origin/main`: server tests only — `test/core755-host-rule-deny-faces.test.ts:239`, `test/one-time-migrations-db-integration.test.ts:899` / `:967`, `test/session-rules-grammar-fence.test.ts:462`, `test/session-policy-store-zero-db.test.ts:748`, and others; client-core scripts `scripts/run-session-policy-deliverable-test.mjs:1964`, `scripts/run-session-rules-namespace-forms-test.mjs:424`; cli none; not run — whether any of them asserts silence on `console.warn` is inferred, not measured). Wire: none.
760
+
761
+ ### Session rules keep the grammar they were written in: a write is read, compared and stamped in the grammar it declares; a write that rereads a stored entry says so (`PutRulesOptions.rereads`); `rewriteSessionRules` carries stored rules into the current grammar (#4212, #4219, #1777; behavior change + two new refusals + one notice-detail word changed + new write option + new root exports: `rewriteSessionRules` and the types `SessionRulesRewrite`, `SessionRulesRewriteRefusal`, `SessionRulesRewriteWayOut`, `SessionRulesRereadPosture`, `SessionRuleReread`, `SessionRuleRereadWay`, `SessionRuleGrammarRefusal`, `SessionRuleRereadRefusal`, `SessionRuleLoosenRefusal`; hard-breaking: two, below — one notice-detail word, one type level)
762
+
763
+ - **Before.** The write judge read a value's entries in the grammar it declared but compared it and stamped it in the engine's grammar (7). An unrelated tightening that handed back a stored row in its own grammar silently changed what kept entries meant: a grammar-0–4 `Re*d` deny (an exact name) became the pattern (it started refusing `Read`), a grammar-0–6 `mcp__a__b` deny started refusing server `a__b`'s tools, a grammar-4 `Re*d` allow became "no rule" and the row's next write was refused; the export / import replay did the same; the earlier-grammar notice stopped. A row stored before the stamp had no written way to take a new parenthesized allow (refused `earlier_grammar`), and the refusal carried no machine-readable way out.
764
+ - **Now.** One reading per write: `judgeSessionRulesWrite` reads, compares and stamps in the declared grammar, so the row keeps its writer's meaning. `rewriteSessionRules(row, { mountedToolNames? })` (new root export, a pure value-level function — no store, no I/O; it reads names as the store the result is written to does, so a retired name or a case twin, which did nothing there, is left out) is the one way to carry stored rules into the current grammar: entries the current grammar reads the same are kept, entries that did nothing are left out (an emptied list stays present), and otherwise it answers `refused` naming every entry it cannot carry (`unreadable_deny` / `not_proven`, with `was` / `now` and `remedy` `accept_reread` / `leave_out`) together with every entry it would leave out (`dropped`), so one answer is the whole answer, and rewrites nothing. Its result is written declaring the current grammar (non-operator writes included). A value with no grammar stamp that is no stored row (no `rev`) is answered `unreadable` (`grammar` / `absent`) — no grammar is assumed; a stored row without the stamp reads as grammar 0, as its store returned it.
765
+ - **Narrowing (open to veto @server @client-core @cli @test): `grammar_older_than_rules`.** A non-operator write over a row that declares a grammar older than the row's operator part is refused (`detail: { declaredGrammar, rulesGrammar, rewrite? }`) when that part asserts anything — any bucket present, an empty list included (an empty `toolAllow` is the operator's "none at all"). Before, such a write was read in its grammar and stamped 7. Comparing back toward an older grammar would hide a loosening (a later `Re*d` pattern read as the earlier exact name).
766
+ - **Widening (open to veto @server @client-core @cli @test): an empty operator part is not asked the grammar question.** A row whose operator part has no bucket (the owner wrote every entry — what a non-operator's first write over no row stores) takes a non-operator write in an older grammar: there is no operator entry a comparison could fail to see loosened, so refusing it would refuse a write with nothing to protect. The same for every write, not only an adopted row (A4): over such a grammar-7 row, a grammar-6 write that carries `mcp__a__b` is asked about that reread (`reread_not_accepted`, both ways through named) and lands with `accept_listed` or `adopt_row`, stamped 6; over a part with entries, a part holding only an empty bucket, or a row with no part member (the whole row is the operator's, as before) it is refused `grammar_older_than_rules` under every posture. The owner's own entries then read in the older grammar — the next run tells the earlier-grammar notice once, the run after it nothing (A5). @server: the case is an older shell pushing a session onto an upgraded server that already holds the owner's rules for it.
767
+ - **Narrowing (open to veto @server @client-core @cli @test): `reread_not_accepted`.** A write — operator writes included — that changes the row's grammar and carries an entry (same bucket, same text) the two grammars read differently is refused (`detail: { rereads: [{ field, entry, was, now }], accepted, ways, rewrite? }`) unless the new `PutRulesOptions.rereads` says what it does with them. Before, such a write landed and changed those entries' meaning in silence. The refusal names its ways through, as data (`ways`) and in its sentence: `{ by: "declare_stored_grammar", grammar }` — declare the stored rules' own grammar and every carried entry keeps its stored reading (offered only when the judge takes the same value so declared — a write that also adds an entry the stored grammar reads as nothing is offered the list only, R6j) — and `{ by: "accept_listed" }`.
768
+ - **New write option `PutRulesOptions.rereads`** — one member, a closed union; absent = ask (the refusal above):
769
+ - `{ kind: "accept_listed", entries: [{ field, entry }] }` — the writer has shown its person each new reading and takes it; `entries` names exactly the entries the write rereads (one too many or one too few is refused, a non-empty list on a write that rereads nothing included).
770
+ - `{ kind: "adopt_row" }` — the caller declares that the value is a whole row another store has already judged, together with its stamp. It is written as that row: nothing of the stored row is carried, so nothing is reread. The engine cannot verify where the value came from. All it skips is the reread confirmation of the owner's own entries; a non-operator write is still compared against the row's operator part (`grammar_older_than_rules`, `loosen_forbidden`), and every entry is still read in the value's grammar (`inert_entry`). Invariant (pinned, A3): what a non-operator lands by adopting a row it also lands by accepting the exact list — the same row, stamp included; never more.
771
+ - The tighten comparison runs before either arm, so neither takes a loosening of what an operator wrote. `judgeSessionRulesWrite` reads the same option the same way (a host's pre-check and the store answer one input and one option the same, pinned form by form, A2). A member an arm or a listed entry does not carry is refused `invalid_shape` by name (the name judgment every door asks).
772
+ - **Hard-breaking (@server @client-core @cli @sdk): the earlier-grammar notice's `detail.rewrite.by` is `rewrite_in_current_grammar`** (was `operator_write_without_rev`); a write refusal (`inert_entry`, `loosen_forbidden`, and the two new codes) carries the same `detail.rewrite = { by: "rewrite_in_current_grammar", stampsGrammar }` when the stored rules are ones `rewriteSessionRules` would change — `loosen_forbidden` included, because a carried earlier-grammar entry the write's grammar reads wider can be the loosening, and the rewrite lifts it (a grammar-0 `Bash(git:*)` allow handed back declaring 7: refused; after the rewrite the same tightening lands, R6i). server: `src/trace/engine-notice-wire.ts:649-650` names the old word as the closed set and `test/engine-notice-wire.test.ts:347` pins it. The advisory sentences and the model's refusal clause under an earlier-grammar allowlist now say the one way out ("rewrite the session's stored rules in the current rule grammar …") — #1777.
773
+ - **Behavior change: `config.session_rules_earlier_grammar` is told once per session per entry set**, was once per run (per rule layer). It goes through the session's announced record by its run-time face — the face the auto-strip notice uses — at prepare and mid-run alike; the record's end-of-prepare settle now folds this prepare's own digests into the run's mirror instead of writing the whole record over it, so a telling made during prepare stays, and a saturated record (200 digests) never takes back a digest the mirror already let go of over newer ones (N4, N5). A row now keeps its grammar until it is rewritten, so the notice would otherwise repeat every run. Counts per run (pins N1 / N3 on the final head; the other three measured by the collect leg on the head before the face change): one session, runs over one grammar-4 row [1, 0, …]; a row written mid-run into an earlier grammar [1, 0, 0] (was [1, 1, 0]); two Runners each with its own session store [1, 1, 0, 0]; two Runners sharing one session store [1, 0, 0, 0]; a delegated child over its root's row: root and child each once, the next parent run none.
774
+ - **Hard-breaking, type level (@server @client-core):** `SessionRuleEntryRefusal` gains the optional `rewrite` member; `SessionPolicyError.detail`'s union gains `SessionRuleGrammarRefusal`, `SessionRuleRereadRefusal` and `SessionRuleLoosenRefusal` (code that reads `detail.field` without narrowing by `code` no longer compiles); new types `SessionRulesRereadPosture`, `SessionRuleRereadWay`. server's exhaustive-key guard over `SessionRuleEntryRefusal` (`session-policy-wire.ts:231`, read from server main) goes red until `rewrite` is taken into its fact table or excluded, and a mapping over `SessionPolicyError.code` meets two new words.
775
+ - **Which hosts still save after the upgrade** (measured by the collect leg on the car head over grammar-6 / grammar-4 rows):
776
+ - A host that hands a stored row back with the row's own stamp: before, it landed but the stamp became 7 and kept entries changed meaning in silence; now it lands with the stamp and the meaning kept.
777
+ - A host that declares the current grammar over a grammar ≤ 6 row holding an exact MCP tool deny, or a grammar ≤ 4 row holding a `*` / `Re*d`-shaped deny: before, 16 / 16 write forms landed (the deny widened in silence); now 10 / 16 are refused `reread_not_accepted` and the rest land.
778
+ - A non-operator that declares a grammar older than the row's operator part (a tightening): before, it landed stamped 7; now it is refused `grammar_older_than_rules`.
779
+ - Ways through a `reread_not_accepted`, side by side: declare the row's own grammar (no new option), or send `rereads: { kind: "accept_listed", entries }` with exactly the listed entries.
780
+ - **Behavior change: the stored `grammar` is the declared one.** A host that read "every passed write is stamped `SESSION_RULES_GRAMMAR`" reads the declared grammar; a grammar-0 row handed back declaring 0 now carries `grammar: 0` explicitly.
781
+ - **Consumers** (server / sdk coordinates read on their main by the collect leg or this car, not measured).
782
+ - @server, the durable store: no change — it runs the one judge and stores its answer; the contract kit gains two cases (an earlier declared grammar is stored as declared; `grammar_older_than_rules`).
783
+ - @server, the PUT route — three things, server first and client-core after: (1) the PUT body gains the field (today it carries `{ rules, expectedRev }` only); (2) the route forwards it to the engine (it builds `PutRulesOptions` field by field, `http/routes/sessions.ts:1292`); (3) the route relays the reread refusal's detail to HTTP — today it relays facts only for the two content codes (`session-policy-wire.ts:30-35`, `:237-243`), so `rereads` / `ways` never reach the wire and a client cannot build the accepted list. Until then, a write that rereads is refused on server (the safe direction).
784
+ - @server, docs: two sentences stop being true on arrival — "notices are deduplicated per rule layer" (now per session) and `session-policy-wire.ts:195` on what a write is stamped (now the declared grammar).
785
+ - @server, session-sync replay (`landed-attendants.ts:313-324` replays each record through `putRules`, and its same-content check asks `judgeSessionRulesWrite` first): replay with `rereads: { kind: "adopt_row" }`, passing the same option to the judge and to the store. Adopted, per form (A1): a newer record onto an older row lands with its stamp (operator and non-operator alike); an older record onto a newer row lands for an operator; a non-operator's older record over a newer operator part is still refused `grammar_older_than_rules` — the record would loosen what an operator asserted there, or the two cannot be compared; report it, do not retry. Without the option those forms are refused (`reread_not_accepted` / `grammar_older_than_rules`, SYNC0 measured before this change). The `landed-attendants.ts:289` note "operator ⇒ rewritten into the current grammar" no longer describes the judge.
786
+ - @client-core: `rewriteSessionRules` is a pure value-level root export — install it as one more `CoreValuePorts` port from the cli / desktop main process (the renderer has no engine and needs a server route). Show `not_proven` entries' `was` / `now` and send `rereads: { kind: "accept_listed", entries }` for exactly the ones the person accepts. The "declare the row's own stamp" write no longer moves meaning, so no pre-write refusal is needed for it.
787
+ - @sdk: its docs still name the retired `operator_write_without_rev` and still advise sending buckets only (`events.ts:376-383`, `openapi.yaml:19296`, `:2727-2730`, `:2756`, read by the collect leg); both change with this release.
788
+ - @cli: the notice's `message` and the refusal sentences changed words. @test: black-box cells in `test/backlog4212-4219-grammar-stamp.test.ts`.
789
+ - **Not changed.** What any row means when read; the revision table; `SESSION_RULES_GRAMMAR` (7); the persisted rule store and the rule-sync wire (their earlier stamps still read in the current grammar, #3085); `createSessionRulePolicy`'s optional `onEarlierGrammar`.
790
+ - **Known limit.** Rows an earlier engine already restamped cannot be recognized or restored (KL-4212-a).
791
+ - **Rules.** Retired: the judge's three readings of one write (read / compare / stamp) → one; the per-run notice seat → the session's, through the run-time face its siblings use (no separate prepare-time telling); the refusals' exception "a loosening carries no way out" → one reading (`rewriteWayOut`) for every refusal over a row the rewrite would change. Added: `grammar_older_than_rules`, `reread_not_accepted`, one write option with two arms (`rereads`), the one rewrite and its one way-out word. The store roster has three readers now (the write judge, the tighten comparison, the rewrite), each asking the one definition.
792
+ - **Pins.** `test/backlog4212-4219-grammar-stamp.test.ts` (R1 S1 / S2 / S3 / X1 / X2 / A1, R2 H1 / H2, R6 a–j, adopt A1–A5, R4 a–e, R5 L1–L3 / N2, R3 N1 / N3 / N4 / N5, readings C1 / U1 / V1; each rule's mutation turns its cells red, `.gate-logs/mutations.md`); re-pinned `backlog1761` ①②c ⑦c, `backlog1810` G2b / G2c / G3b, `backlog1790` A3c / A6 / A7, `backlog1866` F1a / F4a, `backlog1930` S2, `backlog1970`, `backlog1876`; contract kit two cases.
793
+
794
+ ### A hands-less coordinator holds the control tools its role text names — TaskStop, SendMessage, AgentTranscript and ListAgents ride a third delegation door: a background-lane delegation tool on the leg (#4468)
795
+
796
+ - **Rule.** The four control tools ride one door (`DELEGATION`, `src/core/tool-mount-plan.ts`): the leg can start a task that outlives the call that started it. Its arms were a background command and a Workflow run; the third is a background agent through a delegation tool the leg carries — mount fact `leg.backgroundAgents`: a caller tool the valve leaves is a factory-made delegation tool whose mount has a background lane (`SubagentToolOptions.background`). The factory binds the lane to the tool's `execute` beside its declared name (`delegationHasBackgroundLane`, `src/core/delegation-name.ts`), so a face the host edited does not change the reading: a copy whose face dropped `run_in_background` still launches in the background by default and opens the door; a synchronous one whose face gained the parameter does not. Both readers state it: prepare (`prepare-caps-and-workflow.ts`) and `describeStaticWiring(...).toolPlan` (three-valued over the class gate).
797
+ - **Before (measured, 7.68.1, 3 of 3).** A coordinator (`promptRole: "coordinator"`) with no execution environment and a background-lane Agent tool was offered `Agent`, `ReportFindings`, `ReadToolResult`; its role text listed "SendMessage — Continue an existing worker" and "TaskStop — Stop a running worker" and its examples called both. It launched workers it could neither stop nor continue. With an environment, both were mounted.
798
+ - **Now.** The same leg is offered `TaskStop`, `SendMessage`, `AgentTranscript`, `ListAgents` as well; every tool the role text names is on its roster, with and without hands. The reference's coordinator holds TaskStop and SendMessage with no hands (cli321.js:283524).
799
+ - **Widening (open to veto @server @cli).** Any run with no execution environment whose delegation tool has a background lane — not only a coordinator — now mounts the four tools: TaskStop, SendMessage, AgentTranscript, ListAgents (more tools in its list, more prompt bytes). That includes the child legs and fork legs such a run delegates when the parent's `maxDepth` is 2 or more, so the child itself holds a background-lane delegation tool: they gain the four too (before, such a child held SendMessage alone); with `maxDepth: 1` a child holds no delegation tool and nothing changes. Workflow member legs were not measured. A delegation tool that runs synchronously only, a leg with no delegation tool, a caller's own tool that merely takes a `run_in_background` parameter (it is not a factory-made delegation tool), and a delegation tool whose `execute` the host wrapped in its own function (the factory's binding is on the function it made) change nothing.
800
+ - **Reach (measured).** TaskStop holds the leg's own access, as it did on a leg with hands. A second task holding the same tools (another session, same principal) reads `No task found with ID: <id>` for the first task's running worker, by id and by name; the coordinator that launched it reads `Terminated <id>.`. A later leg of the same session (not the worker's dispatcher) reaches the session's worker through the registry's root-session reading: a session-scoped worker it stops (`Terminated <id>.`), a task-scoped one the first leg's end had already stopped (`<id> already killed — nothing to stop`). A new occupant of the same session id (the row deleted and opened again) under another principal reads `No task found` by id and by name; under the same principal it reaches the previous occupant's worker the same way — the root-session reading does not read the occupant; reported, not changed here.
801
+ - **Closed set +1 on a public export (@server @cli).** `TOOL_MOUNT_FACTS` (and the `ToolMountFact` union) gains `leg.backgroundAgents`; it can appear in `toolPlan` members' `when` and in `absent[].because` (a sync-only delegation tool's TaskStop, and a read-only-hands leg's, are absent `because` it, among others). The closed set has one more word: a test that pins the whole set reads one more member, and a reader of `when` / `because` meets a word it did not see before.
802
+ - **Pins.** `test/backlog4468-coordinator-tools-mounted.test.ts`; the hands-readonly conformance vector's TaskStop absence reads the new word (`test/fixtures/tool-conformance-vectors.ts`).
803
+
804
+ ### An A2A task that ended failed, canceled or rejected is not offered for continuation (#4469)
805
+
806
+ - **Rule.** What a settled A2A answer says about calling again is read off the state's class (`nextCallLine`, `src/core/a2a.ts`): a task waiting on the caller (`input-required`, `auth-required`) is continued with its keys; a task in a terminal state is over — the protocol does not restart one. An external peer that keeps to the protocol refuses a message naming it; a sema deployment called as the peer does not read the task id of an incoming message at all (while a task of the session runs it answers a conflict, a byte-identical resend gets the existing task, after a terminal one a new task is opened) — on neither kind do the keys continue the ended task.
807
+ - **Before → now (model-facing text).** `a2a: the remote agent "<peer>" ended task state failed for skill "<skill>". Continue it by calling this tool again with taskId <id> and contextId <ctx>.` → `… ended task state failed for skill "<skill>". This task is over and cannot be continued. To ask again, start a new task: call this tool without a taskId (pass contextId <ctx> to stay in the same conversation).` (the parenthesis only when the peer gave a contextId). Same for `canceled` and `rejected`. Measured on 7.68.1: the continuation sentence 3 of 3 for each of the three; now 0 of 3.
808
+ - **Not changed.** The caller-turn sentence; the unknown-outcome sentence (#3622); a completed task's answer; the error being a thrown tool error.
809
+ - **Re-pin.** The #3622 pin's control ③ held that a task that ended `failed` keeps the continuation sentence; it now holds that it reads as over and carries neither the continuation nor the do-not-resend sentence (`test/backlog3622-a2a-unknown-outcome-sentence.test.ts`).
810
+ - **Pins.** `test/backlog4469-a2a-terminal-not-continued.test.ts`.
811
+
812
+ ### A stop that ends a one-shot run's wait for its background workers names them — `task.interrupt_unconsumed` says "nothing was cut or stopped" only when nothing was waited for (#4466)
813
+
814
+ - **Before (measured, 7.68.1, 3 of 3).** A one-shot manager stopped while it waited for 1 or 2 background workers ended `completed` with its interim text as the result, and its only notice said "nothing was cut or stopped by it"; the workers had each sent one request and were stopped with the run.
815
+ - **Now.** When it builds the notice — before the run-end sweep that stops the leg's task-scoped background agents — a one-shot ending reads what its book is still owed and, per task, its row and whether that sweep takes it (`ownerSweepTakes`, read through `TaskRegistry.runEndReading`, one lookup per id). The notice (`src/core/runner/stop-tail-notice.ts`) names each task by type, id and description, split into "stopped with the run" (a task-scoped agent this leg owns, still running), "no longer waited for, left to their own lifetime" (session-scoped, another leg's revived row, a workflow run, parked, or one that finished on its own after the stop) and "not found at the run's end". A worker that finished on its own after the stop and whose frame was delivered is no longer owed and is not named. The run's walltime cutting the same wait reads the same way (origin `walltime`).
816
+ - **Additive.** `task.interrupt_unconsumed` `detail.waitedFor: Array<{ taskId, taskType?, status?, description?, stopped? }>`, always present, `[]` when nothing was waited for (an interactive run never waits, so it is always `[]` there). `status` is the row's status when the notice was built; `stopped` is absent (with `taskType` and `status`) only when no row could be read for the id. `description` has one shape in the sentence and in the detail: credentials redacted first, then folded to one line (line breaks and control characters, an ANSI sequence's ESC included, become spaces) and cut at 60 code points by a marker-safe cut, with `…` when cut. `TaskRegistry.runEndReading(taskIds, read, owner)` is a new public method (the per-id reading behind it).
817
+ - **Not changed.** The terminal (`completed`) and the result (the answer the run had, which may be an interim "still waiting" text); the stop's attribution and origin words; the 600 s wait ceiling still ends the wait with no notice (KL-3025-a).
818
+ - **Where a host reads it.** Only on this notice: `TaskResult` has no member that says background work was stopped at the run's end (the completed terminal's `detail` describes the final assistant message and holds one account). A host that needs it subscribes to `task.interrupt_unconsumed` (`RunnerDeps.onNotice`, audience `user`) and reads `detail.waitedFor`.
819
+ - **Consumers.** @server @cli @client-core: a renderer of this notice that shows the sentence needs nothing; a reader that wants the list reads `detail.waitedFor`, not the sentence.
820
+ - **Pins.** `test/backlog4466-stop-tail-names-waited-tasks.test.ts`.
821
+
822
+ ### A person's decision for a card a finished workflow run parked on is continued by the engine — once, from the parked step, without the model (#4390; #4392 the engine half; hard-breaking: types, below; behavior change)
823
+
824
+ - **Before.** A workflow run whose agent parked at an approval ended `workflow.agent_parked`. When a person decided the card, the host started a run of the session, and the decision only reached the parked step if the model called `Workflow({ script, resumeFromRunId })` again, with the same script — the host's guidance told it to. A model that did nothing left the card pending; one that edited the script ended `workflow.parked_call_changed`; the model's call raised a second "run this workflow?" question. A drive the decision could not complete re-parked on the same card, and a host that handed the decision over again looped. The source run's rows read `parked` forever after it was continued.
825
+ - **Now.** The leg carrying the decision (`RunInternals.workflowParkedResume`) continues the run itself at its run-body opening, before its first request: the Workflow tool's adopter judges the record, its successors and the holder (`workflowParkHolderOf`), the card's pending state, whether this decision was already used, the run's launch record, the host fold and parent chain, and this leg's gate for the call — then starts the continuation `Y` from the launch record (never the script store's draft). `Y` is an ordinary run; its completion notification says how it went. A decision that did not continue its run is told to the person (`workflow.parked_decision_unused`, fourteen reasons) and to the model (a `workflow_continuation` frame on the leg's first request). A decision is used once: a drive it could not complete is recorded on `Y.resume.decisions` (`refused` + code), `Y`'s completion frame says so, and the same decision handed over again is `decision_spent`.
826
+ - **R-1 (widening, open to veto @server @cli @client-core @test).** The continuation's own gate pass: an ask whose class set is exactly `ordinary` is answered by the person's decision for the card (a `human_allowed` settlement noting the continuation). Any other class is put to the leg's live approval face; with none, the decision is not used (`ask_unanswerable`). Consequences: no second "run this workflow?" card for an ordinary ask; a deny from any layer still stops it (`denied`); measured on an ask-rule deployment with no live face (`R1`): the model's own call is still asked as a second card and, approved, continues the run — the same two cards as before this version. **Where "a person's" is read, and where it is not:** R-1 reads the card decision's `hostDecision.decidedBy` — a decision the deployment's policy gave answers no ask, the continuation's ordinary ask goes to the live face (`P1b`); the model-call arm (N-1) does not read it — a policy-given member decision is carried there as the previous version did (`N4`). **A person's deny of the member step answers the question too (widening against 7.68.0, open to veto @server @cli @client-core):** with an ordinary ask and nobody to ask on the leg, the engine still continues the run, the parked step reads the deny, and the script goes on past it — later steps run, a write among them (`B1`: allow / deny / deny with a reason read the same on every face but the gated tool's run count; on 7.68.0 nothing continued without the model). A deny refuses that one step, as a live run reads a deny; to stop the whole run, cancel it. The model's frame says so on a deny ("only that step is refused, and the rest of the workflow goes on past it — to stop the whole run, cancel it"). Every later step still passes its own gate: one that asks a person with nobody to ask parks on a card of its own (`B2`).
827
+ - **Hard-breaking.** (1) **HB-1** *What changed:* `RunWorkflowToolDeps.parkedResume` is retired and refused by name; the new `parkedDecisions` is read by the adopter alone. *Who is hurt:* an embedder constructing `createRunWorkflowTool` with that dep (@sdk); a host passing decisions through `RunInternals` is not. *What to do:* hand decisions through `RunInternals.workflowParkedResume`. (2) **HB-2** *What changed:* a `workflowParkedResume` entry requires `decisionId: string` (host-minted, opaque, a new one per person decision) and `outcome`; the `{ runId, token }` confirm form is retired from the channel. *Who is hurt:* @server's decision reader that builds the entries (two construction points go compile red) @sdk. *What to do:* mint a decision id per accepted decide and pass the outcome. **Types too, on the shared decision type (#4455):** `WorkflowParkedResume.outcome` is required — the one type behind `RunWorkflowOptions.parkedResume` and `redeemWorkflowParks` — and both doors refuse an entry without it loudly (`config.invalid_argument`, before the run reads any entry; one reader, `readWorkflowParkedDecisions`), so the `{ token }` acknowledgement form is gone from them too (a gone card no longer needs one, below). `decisionId` stays optional there: present ⇒ a resume accounts the decision on `resume.decisions`, absent ⇒ it is not; a live delivery is never accounted. `WorkflowParkDeliveryResult` loses `kept_parked` (five words: `driving`, `settled`, `already_taken`, `not_parked_here`, `unreadable`) — no delivery can mint it once every entry carries an outcome. *Who is hurt:* @server — `src/parked-decide.ts:822` and `:863` (the two `case "kept_parked"` arms) and `src/trace/self-minted-wire.ts:1188` (the `satisfies Record<WorkflowParkDeliveryResult, …>` row) go compile red: delete the three; its one `redeemWorkflowParks` call already passes `{ token, outcome }` and compiles. @cli — no code; its wire consumption manifest loses the `kept_parked` row when regenerated. @sdk — a `runWorkflow` / `redeemWorkflowParks` caller passing `{ token }` alone. *What to do:* pass decisions only; to have a live run settle a gone card now, deliver `{ token, outcome }` — a gone card's outcome is not read. (3) **HB-3** *What changed:* `WorkflowRun.effectiveArgs` and `RunWorkflowOptions.effectiveArgs` are retired; the merged args live only in the launch record. *Who is hurt:* @server — the detail disposition table's row goes compile red; the record-slimming row does not go red and becomes dead code (delete it); the generated read table and two tests that name the member; @sdk readers of the member. *What to do:* read `loadLaunch(runId, scope).effectiveArgs`.
828
+ - **N-1 (narrowing, @server).** A model's own `Workflow({ resumeFromRunId: X })` no longer carries the host's decision, **unless** the engine's continuation did not start because its question needs a person and nobody could be asked (`ask_unanswerable`), the model's call was then asked as a card of its own, and **that card was decided allow** (by a person or by the deployment's own policy — whichever seat answers the card): the leg resumed to run that call leaves it the decision — once, for that one call, and only when nothing else stands between the run and its continuation (the record, the holder, the card still pending, the decision not spent, the launch record, the host's model / thinking / settings and the parent chain all as the run recorded). A run whose host changed since carries nothing (`N2`); a policy-approved second card continues the run as the previous version did (`N3`). **The model is told to ask once per decision:** a decision that comes back unanswered again is told to the person only (`detail.askedBefore: true`, the frame leaves the run out) — measured over three rounds with the second card denied: one card in all, no further instruction (`B3`). The memory of "told" is per deployment and per process (KL-4390-e). **The approved model call on a run the engine already continued is refused, not driven:** when a later run already drove the card (its `resume.decisions` holds a `driven` row for the card's call), the model's call is answered with a tool error naming that run ("workflow run "X" was already continued from its approval card by the engine, as run "Y" — … What came of it is in run "Y"'s completion notification and record") and starts nothing (`D1`; before this round it ran with no decision and ended `workflow.parked_call_changed`). A model's resume of a card no longer pending without any carried decision is unchanged: for a script that opens with `parallel` the measured code is `workflow.parked_call_changed` (P15).
829
+ - **N-2 (narrowing, @server @sdk).** A workflow leg parks only where the journal store keeps launch records (`recordLaunch` / `loadLaunch`, both or neither). A deployment that wires no journal store, or one with neither verb: a workflow leg's unanswerable ask is refused fail-closed with `delegation.ask_unresolvable` instead of minting a card nothing could continue. Measured on the previous version for a deployment with no journal store (`C1`, `C2`): the member parked, but the model's resume was refused (`resumeFromRunId requires a journalStore`), and resuming the member's card directly either refused (`resume.tool_unavailable`) or, with the member's tool handed back, ran that one tool while the run stayed parked and its script never went on — the card could not continue the run. Now the run goes on past the refused step at once. **A host must implement the two verbs in the same version** or its workflow legs stop parking.
830
+ - **What the person is told (@server @cli).** The notice's message is one sentence per reason — what happened, whether the approval card is still waiting, what can be done now (`launch_unrecorded`: the card was parked before an upgrade, or its record is gone — start the workflow again; `launch_unreadable`: the record of what the workflow was started with does not read back in the shape it was written in, naming the member — start the workflow again and report the defect to the deployment (#4471, below); `host_changed`: what the workflow's agents run under changed, naming the class of input — restore it and decide again, or start again (#4471, below); `denied`: the way out follows the refusing layer — a person's own deny rule (`persisted_rule`): remove it and decide again; the session's mode (`mode`): switch out of it and decide again; any other layer (the deployment's policy, the organization, a hook, …): settings this session cannot change — decide again once they allow Workflow, or start the workflow again where they do; `decision_spent`: decide again with a new decision; `ask_unanswerable`: the decision is kept, the model can ask for the approval as a new card — or, once the model was already asked, decide the card again where a person can approve).
831
+ - **Behavior added (@server @cli).** The carrying leg's first request has one more frame; the continuation starts at the leg's run-body opening, before its first model turn; the leg's model turn still runs. A completion arriving on `Y` names call id `wfc-…`, which no transcript holds. Where `Y`'s completion goes, measured: while the carrying leg's turn is still open it arrives in that turn as a task notification naming `Y` (`U1a`); when the turn ended first, the deployment's completion notifier receives it once and the engine wakes nothing — the session's next turn reads it (`U1b`; KL-4390-f). Members continued under the host's plan mode ask before a write-class tool (class `mode`) and, with nobody to ask, park on a new card; nothing is written (`U4`).
832
+ - **A run's agents keep what they inherited at launch — the session moving on no longer strands a decision (#4471; ruled C-R1900; behavior change, a widening; divergence from the reference, open to veto; @server @cli @client-core @test).** Before (measured on v7.68.1, 30 cells, and on the #4390 head, 9 cells): a member parked; the session moved on before the decision was carried — the terminal shell takes Workflow off its defer list once it ran, a list reordered, another always-loaded list, another thinking level, another model; then the engine's continuation started nothing (`host_changed`, telling the person to "switch the session back to model "m1"" even when the model had not changed), and the model's own resume failed within 2–3 ms (`workflow.parked_call_changed`; under `parallel`, `Cannot read properties of null (reading 'terminal')`). Now the face a run's agents inherit (`deferTools`, `alwaysLoadTools`, `restoreGatedTools`, `promptLean`), their model and their thinking level are fixed when the run starts and kept on its launch record (`host`, and the new `face`); every continuation — the engine's and the model's own `resumeFromRunId` — seats its agents on them, whatever the deciding turn uses, and a continuation's own record carries them on. Measured, two paths × six session moves (`E-*`, `M-*`; the five above plus a model named at launch and left unnamed on the deciding turn): every one continues, the gated step runs once, the card resolves, every member request carries the launch's model, thinking members and tool list. That holds for those six session moves: what a continuation reads live — not fixed at launch — is the deployment's tool limits (a limit widened since: the members' tool list follows it, measured by the #4471 review leg), the read roots (measured), the permission mode (measured: under plan the members' tool list goes from 6 to 8), the working directory (read when the run is started) and the credentials (never on the record). The call identity's composition is unchanged (journals of earlier releases keep their keys). A record without `face` / `host` (a store that predates them) reads the session's current ones, as before (`O-*`; KL-4471-a). **Divergence (C-R1900 note 1):** the reference keeps a running workflow on its launch model, as this does (cli321.js L300667); its own `resumeFromRunId` takes the resuming turn's model and replays the prefix whatever the model, and it reads the thinking level live at each spawn when the script names none — here both stay at the launch's. To run later steps on another model: start the workflow again, or name the model in the script (`spec.modelName`) and resume with the edited script (KL-4471-b). Rules: what a run's agents inherit of the host has one home for every leg of the run (the launch record); `host_changed` has one meaning (the settings or the tenant moved); the "switch back to model X" arm is gone.
833
+ - **What still refuses a continuation, and its sentence (narrowing of `host_changed`'s meaning; wording; @server @cli @client-core).** `host_changed` now means only what the deployment decides for workflow agents (the tools it gives them, its other baseline settings, the catalog and the model allowlist — the launch model no longer served, or a model the script names dropped from the allowlist, among them —, the per-agent limits), this session's permission limits or approval posture, a launch model handed to the session as an object (another object of its id, or the same one served from another address), the tenant (principal, isolation scope), or the parent chain; measured (`P1`–`P3`, `P5`, `E-other-pin`, `E-pin-endpoint`): refused, nothing starts, the card waits, the same decision then continues the run. `detail.was` / `detail.now` are retired (the type members with them). The sentence names the class of input that moved, in fixed words and without values: `what the workflow's agents run under has changed since the workflow stopped: <classes, "; "-joined>. The approval card is still waiting; restore it (them) and decide again, or start the workflow again`; the classes, closed: `the tools the deployment gives workflow agents` · `the deployment's other settings for workflow agents (their rules and tool lists)` · `the models workflows may use` · `the limits each workflow agent runs under (time, cost, tokens or turns)` · `this session's permission limits or approval posture` · `the model the workflow was launched with (its name now names another model object or configuration)` · `the address the workflow's model is served from` · `the thinking level the workflow was launched with` · `the account the workflow runs for`. A run whose terminal stamp is not one this engine can split by input gets the sentence without the list (`what the workflow's agents run under (the deployment's settings for workflow agents, this session's permission limits, the workflow's model, or the account it runs for) has changed …`). Workflow-wide limits such as `maxAgents` are not an input of the stamp, so the sentence no longer names "workflow limits" (lowering one does not refuse a continuation). Was: `the workflow stopped while this session used model "m1" with thinking …; it now uses … switch the session back to …`. `WorkflowRun.hostFoldDigest` is the stamp `v2;<input>=<digest>;…` over those nine inputs (each a 32-hex sha-256 prefix; opaque to a host, compared whole). The model's own resume of a run whose launch model is no longer served is refused before anything starts: `workflow run "X" cannot be continued: the model it was launched with ("m1") is not one this deployment serves any more — its agents stay on what the run was launched with; start the workflow again` (`P4`); a launch record the store cannot read refuses it the same way (`the launch record of workflow run "X" could not be read (…) — …; not started`).
834
+ - **A resume refused at a parked ordinal is final for the run (behavior change; @server @cli @test).** `workflow.parked_call_changed` (what the parked ordinal's disposition refuses) is no longer folded to `null` by `parallel` / `pipeline` — rethrown, as `workflow.max_agents` is; every later `agent()` / `agentStream()` of the run is refused with it before it reads an ordinal, so a sibling never takes the refused call's ordinal (measured `L2`: the two members written in the other order — the gated step does not run; without the latch it ran under a run that ended refused); and it is the run's terminal whatever the script returns or throws after it (`L4`: a script that catches it and returns still ends `failed`), unless the run suspended on a park, or ran out of time or was cancelled after the refusal (that stays its terminal, whether the body then returns or throws the refusal again; `L5`, `L6`). A script that read every member's result no longer fails on a `TypeError` (`L1`). Its sentence, and the replay-stop reason, name what can still move a call: `(the script, its args, or a setting folded into every call: the deployment's settings for workflows, the account the run is for, or — for a model handed to the session as an object rather than a catalog name — the object the session holds now (another object of the same id moves it); for a run whose launch record keeps no host model or tool face, also the session's own model, thinking level or tool lists)` (was: `(the script, its args, or a host input folded into the call identity)`). A resume of a no-longer-pending card without an entry now ends on that refusal's own code (`P15`: `workflow.park_not_pending`, was `workflow.parked_call_changed` from the sibling that took its ordinal).
835
+ - **A continuation that carried a decision and did not use it says so (@server @cli).** A `resume.decisions` row `not_reached` carries `code` = the run's own terminal code (absent when the run completed), and the completion frame's summary adds `The approval decision carried for the parked step (agent #N) was not used: <cause>. Its approval card is left as it was, waiting for a decision, and the same decision can be handed over again to continue the workflow` — `<cause>` = `this continuation was refused (<code>) before it got there` (a resume refusal), `an earlier step stopped on an approval again and is waiting for a decision` (`workflow.agent_parked`), `the run ended (<code>) before reaching it`, `the run ended before reaching it` (no code: a deadline or a cancellation), or `the script ended without reaching it` (the run completed) (`L1`, `L3`, `L5`, `L7`). For `workflow.agent_parked` the way out is the earlier step's approval, not the hand-over: the line ends `…waiting for a decision, and the decision is not spent: decide the approval that earlier step is waiting for first, then hand this decision over again — before that, handing it over does not continue the workflow` (measured, `W-takeover-end-unwritten`: where the run that took the card over could not write its own end, three more hand-overs of the decision each left it not reached, ran the earlier step again and added a pending card (3 → 4 → 5), and nothing told the person; with that step's newest card decided first, the same decision continued the run to the end, each gated step running once). Before: nothing said it.
836
+ - **The launch record's `face` (additive; store contract; @server).** `WorkflowLaunchRecord.face?: WorkflowLaunchFace` (`{ deferTools?, alwaysLoadTools?, restoreGatedTools?, promptLean? }`, new root type). **@server: the journal store you ship for 7.69.0 keeps the launch record exactly as written, `host` and `face` included, and a member the record was written without stays absent — never read back as `null`** — the contract kit's first launch case now writes both and reads them back whole, a record with another `face` is a `workflow.launch_conflict`, and (hard gate) a record written with only its required members, or with a `host` holding only `model`, must read back with exactly those keys (a `null` or an added key is red); a store that drops `host` / `face` leaves its runs' continuations on the session's current face, model and thinking level (the defect above), and one that answers a member as `null` leaves its parked runs uncontinuable (below). `RunWorkflowToolDeps.resolveModelWord?` (additive; the Runner wires it). `host.modelPinned?: true` (additive): the launch model was handed to the session as a model object, not a catalog name — its recorded id is never looked up in the catalog; a continuation seats on the session's current object of that id, and the engine's continuation refuses another object of the same id as `host_changed` (`E-same-pin`, `E-other-pin`; the model's own resume cannot tell two objects of one id apart, KL-4471-e). A record whose `host` or `face` has a member of the wrong shape (a pin mark without a model among them, a member present as `null`) is never read with the member dropped or as the default (`R1`–`R4`; was: a wrong-shaped `host` member was dropped and the continuation read the session's current value) — see the next bullet. A pinned launch model the session no longer holds refuses the model's own resume: `the model it was launched with ("m1", handed to the session as a model object rather than a catalog name) is not the session's model now`.
837
+ - **A parked run whose launch record is not there, or does not read back, is continued on neither path (narrowing; closed set +1; root exports +2; @server @cli @client-core @test).** (1) **New reason `launch_unreadable`** (`WORKFLOW_PARK_UNUSED_REASONS`, fourteen words — fifteen with #4552's `waiting_elsewhere`, below; a consumer that keys the set gains a row — @server's "deliver again?" judge: settled, do not deliver it again; @cli / @client-core: the notice renders the sentence as given). `detail.code` = the member that does not read back (`record`, `script`, `callArgs`, `host`, `host.model`, `host.thinking`, `host.modelPinned`, `face`, `face.<member>`); the sentence: `the record of what the workflow was started with does not read back in the shape it was written in (<member>), so the run cannot be continued here. Start the workflow again, and report the defect to the deployment` — it says nothing of an upgrade or a missing record (was, on this release's earlier head: such a record read as absent, `launch_unrecorded`, "parked before an upgrade"). Measured (`U-host-thinking-null`, `U-face-null`): with the session unchanged, nothing starts, the card waits. (2) **Stores:** `loadLaunch` of a kept record that does not read back throws `WorkflowLaunchUnreadableError` (`code` `workflow.launch_unreadable` = `WORKFLOW_LAUNCH_UNREADABLE_CODE`, `member`; both new root exports) on both bundled stores (a launch file that is not JSON names `record`; `R5`); the engine reads a store's answer through the same reader (the journal store module's `readLaunchRecordVerdict`, not root; `readWorkflowLaunchRecord` is its record-or-`undefined` face), so a store that answers the defective record instead of throwing gets the same outcome. @server: throw this error (or any error carrying that `code` and a string `member`), or answer the record as kept. (3) **The model's own resume:** `Workflow({ resumeFromRunId: X })` for a run whose record does not read back is refused before anything starts — `workflow run "X" is not continued: <that reason's sentence>.` — the same outcome as the engine's continuation: never seated on the session's current settings (`U-model-path`). The frame tells it as settled (`core/event.workflow-continuation.settled`). A run with no launch record at all is #4556's (below): it reads the session's settings, parked or not. (4) **Reach across the upgrade:** a card parked by any release up to and including v7.68.3 has no launch record — #4556, below, keeps it continuable.
838
+ - **@cli.** The transition arm that works around the defer list moving (Workflow taken off it once it ran) can retire once the engine is ≥ 7.69.0: the list no longer moves a run's continuation.
839
+ - **@test (cells).** `test/backlog4471-launch-face.test.ts`: `E-*` / `M-*` (control + six session moves, each path), `E-same-pin` / `E-other-pin` / `E-pin-endpoint`, `M-other-pin-writes` / `M-pin-endpoint-writes`, `P1`–`P5`, `P5-model-path`, `L1`–`L7`, `O-*`, `R1`–`R5`, `U-*`, `X-model-path`, `X-failed-run`, `W-takeover-end-unwritten`; the journal store contract kit's sparse-record reads; the #4390 pins that read the old rule were re-pinned (`P6`, `P15`, `N1`, `N2`, `U2`, `U2b`, `U3`). Known limits KL-4471-a … KL-4471-e; KL-4390-b closed.
840
+ - **The frame is a mechanism kind (@cli @client-core; the event registry's always set grows 11 → 12).** `workflow_continuation` is an attachment source with an event registry row (`defaultPolicy: "always"`, `dedupe: "replace-by-key"`, `maxBytes: 8192` — `WORKFLOW_CONTINUATION_MAX_BYTES`, intact in the bundle) and its words are six catalog messages, `core/event.workflow-continuation.{started,started-denied,ask,settled,not-applied,more}`, in the locked `event-mechanism` band (no center or deployment replaces them), with a `zh-Hans` reading for each: a Chinese run reads the frame's shell in Chinese. The per-reason sentence (the notice's own `message`, the row judge's fixed sentence inside it) rides one slot verbatim and stays English in every reading (KL-4390-i; #4450). The frame-renderer table names its producer (`workflowContinuationFrameBody`) and its site (`workflowParksContributor`); a pin that lists the always kinds or the intact sources by name now lists it too.
841
+ - **Additive.** `WorkflowJournalStore.recordLaunch?` / `loadLaunch?` (write once: same content again is a no-op, other content `workflow.launch_conflict`; over the journal's per-entry cap `workflow.journal_oversize`; kept as long as the run record — only the store's `deleteRun` erases it); `WorkflowLaunchRecord`, `readWorkflowLaunchRecord`, `assertLaunchRecordFits`, `sameLaunchRecord`, `WorkflowLaunchConflictError`, `WORKFLOW_LAUNCH_CONFLICT_CODE`; `RunWorkflowOptions.launch?`; `WorkflowRun.hostFoldDigest?` (written at the terminal; @server's detail disposition table goes compile red and needs a row); `WorkflowRun.resume.decisions?`; `WorkflowRunSummary.resumedFrom?` and `WorkflowRunListByScopeOptions.resumedFrom?` (a store that does not filter is still correct while its rows carry `resumedFrom` — `summarizeWorkflowRun`'s rows do; the cost is #4552's @server note); `deriveAgentDisplayStatus`'s optional third argument `{ park: { held } }` (`interrupted` when the run no longer holds the park); `workflowParkHolderOf` and `WorkflowParkHolder` (root). `ENGINE_NOTICE_CODES` +1 (`workflow.parked_decision_unused`, audience user, `reason` closed set `WORKFLOW_PARK_UNUSED_REASONS`, fourteen words; `detail: { runId, decisionIds, reason, holder?, code?, changed?, why?, askedBefore?, rowReason?, terminal?, continuedAs? }` — `code` on `launch_unreadable` names the member that does not read back; `askedBefore: true` only on `ask_unanswerable`, when the model was already told once to ask for that decision; `rowReason` / `terminal` only on `card_unresumable`; `continuedAs` only on `not_pending`); `takeWorkflowResumeClaim` / `releaseWorkflowResumeClaim` / `WorkflowResumeClaimVerdict` (module exports of the workflow lane, not root); `ATTACHMENT_SOURCES` +1 (`workflow_continuation`, intact, 8 KiB). A consumer that keys a record by either set gains a row.
842
+ - **For a host's "deliver again?" judge (@server).** Reason `ask_unanswerable` ⇒ the engine did not use the decision; it is still deliverable, and it is written into no run's `resume.decisions`. Reason `decision_spent` (and a continuation's `resume.decisions` row `refused`) ⇒ it was used and refused; do not deliver it again — a person decides once more. Reason `card_unresumable` ⇒ do not deliver it again on this engine. **Reasons `continuing_elsewhere` and `launch_refused` ⇒ not used this time; deliver it again later** — `continuing_elsewhere` says only that the workflow's resume claim is held for another run id, which may carry another card's decision or may never have started (a process that died between its claim and its run: no such run exists, and the claim lapses with the store's lease — an hour on @server's SQL store); delivered again, the decision continues the run once the claim is free, or answers what the card then says (`not_pending` with `continuedAs` once the holder drove it, `not_holder` naming the run that re-parked it). The engine keeps no decision: it is used again only when the host hands it over again. Delivering again never runs the parked step twice (the card's compare-and-set); the steps after it run in two runs only when a continuation outlives the claim's lease (KL-4390-l) (`C1`, `C4`, `C5`). Reason `not_pending` ⇒ retire it.
843
+ - **A card this engine's row judge refuses is answered for good, and nothing is written (#4421; @server @cli @client-core).** Before this round (and on 7.68.0's model road) such a card took the decision into a drive, was refused before the claim, re-parked on the same card under a new holder, and the person was told "needs a new decision" / "decide it again — a new decision", round after round. Now the adopter reads the card's row through the row judge (`judgeCheckpointRow`, the verdict a listing carries) before anything starts: a verdict that is not `ok` answers the new reason **`card_unresumable`** — `detail.code` / `detail.rowReason` (the verdict's own words, passed through), **`detail.terminal: true` when no engine release resumes the card** (the host's cue to expire it), absent when one can; the message embeds the row judge's fixed sentence and ends "The workflow run cannot be continued from this card; start the workflow again" (terminal) or "… If the deployment still runs a worker whose engine release reads the card, the decision can continue the run there; otherwise cancel the run and start the workflow again" (not terminal). No run starts, no re-park, no new generation; the row stays byte-identical and pending, the source run keeps holding it — so an engine of the release that reads it can still drain it. Measured three rounds of new decisions per arm (`E1-terminal`: `leg_not_resumable`; `E1-elsewhere`: `reading_changed`, a card an earlier release parked, since #4422): 0 runs, the same message each round, no "decide again", the frame without `resumeFromRunId`, row bytes and holder unchanged. The model's own approved call on such a card is refused with the same words (`E2`). A run parked on several cards whose decisions arrive together is not continued when any one of them is such a card — a continuation reaches every card the run parked on, and one carrying no usable decision for that card would park on it again under a new holder: the answer is `card_unresumable` for every decision of the run (`E4`: two cards, one `leg_not_resumable`; 0 runs, both rows and holders unchanged). Where a drive does meet such a row — the row changed after the continuation's claim and its second reading (below) and before the drive, or a direct `runWorkflow({ resumeFromRunId, parkedResume })` / a live delivery that never passes the adopter — the step settles `failed` under the row's code and the sentence `(<reason>) <fixed sentence> The call did not run.`, its decision is recorded `refused`, and the script goes on; it never re-parks (`E3`). A decision cured by deciding again (a binding or shape refusal of the decision itself) is unchanged (`P4`). The row judge's own fixed sentences are not changed here (#4422).
844
+ - **`CheckpointRowVerdict.terminal?: true` (additive; wire: every listing's `CheckpointSummary.rowVerdict`; @server @cli @client-core).** Present on a non-`ok` verdict whose arm no engine release resumes — `leg_not_resumable`, `real_approval_damaged` / `_forged`, `read_face_damaged` / `_forged`, `write_face_damaged`, `hands_coordinates_damaged`, `constraint_chain_missing`, `resume.parent_constraint_mismatch`; absent on `version_newer`, `seat_retired`, `requirements_damaged`, `skill_grants_damaged`, `skill_scopes_damaged`, `checkpoint.walltime_axis_retired` and the three recorded-word refusals, whose sentences name a release that still resumes the row. One table, `ROW_REFUSAL_TERMINAL`, typed over every refusal key.
845
+ - **A card gone from pending: every resume settles that step as failed and the script goes on (#4455; behavior change, a widening — open to veto; @server @cli @client-core).** Before (measured on v7.68.1 and on this window's #4390 head alike: a stub runner over the real `runWorkflow`): a member's card that left pending without the engine — the host's sweep or `expire` verb (a void is one), its row gone with its session, a decide made elsewhere — made a bare resume of its run fail whole: `parallel` failed `workflow.parked_call_changed` (the refused slot took no ordinal, so its sibling's call read as changed), a sequential `await` failed `workflow.park_not_pending`, a `pipeline` item read `null` and its tail did not run — no child call in any of them; only a resume carrying the `{ token }` acknowledgement went on. Now the checkpoint store's word is the one truth and no host entry is asked for: every resume settles the step failed — `terminal.code` `workflow.park_not_pending`, `terminal.detail` `{ kind: "coded", detail: { status, ordinal, checkpointId? } }` with `status` one of the existing `PARK_NOT_PENDING_STATUSES` (`expired`, `absent` for a removed row, `resolved` for a decide made elsewhere — codes +0, closed-set rows +0), `result: ""`, zero stats; the siblings keep their ordinals (a completed one replays), the calls after it run live, and the member record holds a failed row for the step — in all three shapes alike, with or without a decision for the token (its outcome is not read). The resume refusal `workflow.park_not_pending` (a `WorkflowParkRefusal` thrown out of `runWorkflow`) is no longer thrown: a host that caught it sees the run go on instead; the code now names only that step's failed result and member row (`errorCode`), never a run's end — @client-core's park-refusal code set (`src/engineErrorCodes.ts`, read by @cli's `isModelLaneFailure`) still classifies it rightly as not a model failure, so no change is needed there. A person's decision that arrives after the card left pending still reads `not_pending` and starts nothing (`U1-expired` / `U1-removed`). **Who is affected — one script, three arms side by side** (`test/backlog4455-three-arms.test.ts`, a real Runner; `parallel([G gated, F free])`, then a tail `Z` built from G's result): in every arm the script gets an ordinary result object and never a throw, F keeps its ordinal and replays, Z runs, the member record holds G's row, and the gated tool never runs; only G differs — a person's deny (the resume carries the decision): G `completed` with the child's own words after the denial, the child answering once more; expired / deleted: G `failed`, `workflow.park_not_pending`, `detail.status` `expired` / `absent`, `result: ""`, the child not run. **The next step reading G's result:** a script that looks at `terminal` first gets the child's words (deny) or the failed object (gone) and its tail runs; one that parses `result` unchecked (`JSON.parse(g.result)`) gets the child's words on deny but throws at that line on a gone card — the run fails with the script's own error (a `SyntaxError`; the record's `errorCode` reads `workflow.park_not_pending`, the first failed member's code by the existing attribution) and its tail never runs. The engine makes up no child result. **What a script can tell apart from that result alone:** `terminal.detail.detail.status` says expired (`expired`), removed (`absent`) or decided elsewhere (`resolved`); within `resolved`, a card whose approval another continuation of the run took and a card decided outside the run share the status and differ only in `terminal.message` (the first names that continuation's run id, how it ended and its error code — "its approval was taken by another continuation of this run — run "…", which ended failed (…)"); a person's deny is not this result at all (the step completes with the child's words). The result carries the card's `checkpointId` (in `detail` and in the message) and, on a taken approval, the sibling run's id, terminal status and error code in the message — engine-minted ids, never the card's token. **The step is asked again only at the next resume of the run that settled it** — a person's decision for another card that run holds, or the model's own resume — never when it settles: that resume runs the step live (a failed row is never replayed, the existing rule, `test/backlog652-park-truth-from-store.test.ts` (iii)), so it can ask anew on a new card; with no further resume the step stays failed (`test/backlog4455-voided-then-later.test.ts`). The run that asks again says so on its record (the parked error's last sentence) and in its completion frame: "this step is asked again: its earlier approval card is no longer waiting, and the step was recorded as failed then" — no cause named; a run that only re-parks on that new card does not repeat it. An approval taken on the card whose step never ran (the process gone between) reads the same today: the next resume records the step failed (`resolved`) and the resume after it asks again (`test/backlog4455-reask-paths.test.ts`, a reading). The way out of a step asked again is the person's own answer on the new card: a deny there is read by the step like any deny and the script goes on (same file). The parked record's error and a failed resume's completion frame now say both — with a person's decision the step runs on; with the card no longer waiting a resume records it failed and the script continues — true whatever the card's state, since the faces that read them hold no checkpoint store (KL-4390-g narrowed to records parked before this version and to a pending card this engine's row judge refuses). The failed resume's frame names the step's holder by the holder law, read from the run store once within the store wait bound (`workflowParkHolderOf` over the chain of the run the step was inherited from): before this round it named the run the step was inherited from, and after another continuation had stood on the card that was a run a decision is refused at (`not_holder`; measured, `test/backlog4455-holder-takeover.test.ts` cell 13); a read that does not answer, a fork or no run store leaves the sentence without a run named ("which run holds it could not be read here"). **Also changed — a run resumed again after it was already continued (measured, P15):** the engine continued `X` from its decided card as `Y` (the approved step ran, the tail ran), then the model resumes `X` again. Before: that resume failed `workflow.parked_call_changed` and nothing re-ran. Now: the decided step is recorded failed, naming the continuation that took its approval ("its approval was taken by another continuation of this run — run "Y", which ended completed"); its sibling replays; the free steps after it (the tail) run a second time; the run completes; the approved tool does not run again (gate 1). The run says it at run level: `WorkflowRun.resume.continuedBefore?: { runId, status, errorCode? }` (additive; the latest other direct continuation of `X` as the run store reads it at admission) and its completion frame adds "run "X" had already been continued as run "Y", which ended completed; this run continued from that earlier point, so the steps after it that had not completed there ran again here" (KL-4455-f: free steps re-run; a step with an approval does not).
846
+ - **A continuation that ends suspended stands on the parks it inherited and did not reach (#4455; behavior change on the holder — open to veto; @server).** A continuation whose admission completed and whose own park is its terminal (`workflow.agent_parked`; a cancel or deadline while it waits on a park ends it so too) sets `parkedBy` to its own id, at that terminal, on every inherited entry whose ordinal its script never reached (no row there and no disposition there — a call refused there as changed counts as reached and keeps its holder); any other terminal leaves them. So `workflowParkHolderOf` names the newest run, and a decision that read `not_reached` there and is handed over again continues from it. Before (measured on the old law, `test/backlog4455-holder-takeover.test.ts` cell 1): in the shape #4455 opens — a step settled failed by a gone card, the person's decision for a later card continuing the run, the step asking again on a new card, the later card not reached — handing the later card's decision over again continued the earlier run once more, the step's child ran again and asked on yet another card; a non-void failed step did the same (cell 7). Now that second delivery re-parks the step on its card (one pending card for it, its child not run again, the decision recorded `not_reached`, the continuation's terminal `workflow.agent_parked`); a decision naming the earlier run reads `not_holder` naming the newest (cell 4); approving the step's card and then handing the later decision back runs each once and completes (cell 2); two deliveries at once run nothing twice and lose no decision (cell 9); `parallel` completes with the step asked again once (cell 8). The next continuation cancelled, past its deadline or failed on the script's own throw before reaching the card leaves the holder where it was and the decision usable (cells 5 ×3). In every cell each execution of a gated tool consumed one approval of its own card. First to end suspended takes it, on the record of the run it takes it from: where the holder law over that run's chain still names that run and its entry carries no `passedTo`, the continuation writes `passedTo` (its own id, `WorkflowRun.parks[].passedTo`, additive) on that entry by one compare-and-set of that record on its `rev`, and names itself on its own entry only when that write wins; a lost compare-and-set reads again (at most three reads). So one run resumed twice in turn leaves the card with the first continuation (cell 10: before the first-come rule both took it and tied, and the decision had nowhere to go), and two continuations of one run ending suspended at once WITHOUT reaching the card (the resume claim expired; reads 25 ms late) leave it with exactly one of them, 20 of 20 on the in-memory and the file stores (`test/backlog4455-pass-first-come.test.ts` P1; the read-then-write form this replaces tied 15 of 20 on the in-memory store); the continuation of the run that took the card takes it in turn from that run's record (cell 1); a chain that does not read, a write refused or unanswered leave the card as inherited (P3); a continuation refused at an ordinal it reached ends failed and takes nothing (cells 11, 12). A step whose decided card's approval another continuation took is recorded failed with the continuation that drove it named — the one whose record holds a `driven` row for the call (the adopter's `continuedAs` reading; a continuation that only carried the same decision is not it, P2) — ("its approval was taken by another continuation of this run — run "…", which ended failed (…)"; cells 5-cancelled / 5-failed; past a deadline the continuation records the drive it cut short `not_reached`, so the sentence there is "was decided outside this run", KL-4455-e, cell 5-expired). **@server:** route by `workflowParkHolderOf` as before — the holder it names may now be the newest run where it was the run that parked the card. **@server (store):** a FINISHED run's record is now written once more, by a later continuation of its chain (`update` with `expect.rev`, the whole record as `get` returned it, one entry's `passedTo` added): apply it like any other update — a store that freezes finished rows refuses it (nothing passes; the card stays with the earlier run), and a store whose `get` answers less than it keeps loses the rest on that write (measured on a stand-in store whose `get` left members out: the write-back lost `completionId` and `error`; the in-memory and file stores answer every member and lose nothing — the two contract cells below). Known limits: **a `pipeline` with two or more stages that need approval cannot be finished by approving and continuing — write those steps in sequence or with `parallel`** (a pipeline is never replayed on a resume, the existing rule, so each continuation runs its first stage again and it asks again; on either law; KL-4455-b, #4388, cell 8-pipeline); a continuation past its deadline while driving a step records that decision `not_reached` though the tool ran (KL-4455-e); the rest is the next entry.
847
+ - **Known and shipped with — what the pass does not cover (#4529, the design ticket that closes them; open to veto @server @cli @client-core).** Measured on the in-memory store by the closing leg of this ticket; none runs a gated tool twice or uses one decision twice. (1) **A card passed and then re-parked by a sibling forks** (KL-4455-g; `test/backlog4455-holder-takeover.test.ts` cell 14): the run `X` parks a card; a continuation `Y` of `X` stands on it by the pass without reaching it; a second continuation `Z` of `X` reaches the step and re-parks the card — it does not read `passedTo` — so `Y` and `Z` both claim it at the same generation. A person's decision handed to `X` continues nothing and reads `not_holder` naming both ("the card now belongs to a later run of the workflow ("Y", "Z") … handed to the run that holds it" — two runs named, "the run" said); @server's `/decide` answers its fork code (read code) and says every resumed copy is waiting on that step, which `Y` is not. Two continuations at once do not fork (0 of 10). **Way out:** continue a continuation that reaches the step — in the cell, the one that failed before it: it re-parks the card one generation up, is then its only holder, and the same decision handed to it drives the step once (in the cell the step before fails at its endpoint again, so that continuation reaches the card at once; where it asks again instead, approve its new card first). (2) **The winner's own terminal write fails:** `passedTo` landed on `X`'s entry, the continuation's own record stays `running`, so the card stays `X`'s and no later continuation takes it; each delivery of the card's decision (the same one again or a new one) continues `X` again — the step before it asks the model again on one more card, the decision is recorded `not_reached`, and the host gets no notice (four deliveries: pending cards 3 → 6, that step's model requests 3 → 6; before this round the shape settled after the first delivery). **Way out:** approve the newest card of the step before it first — the continuation reaches the original step and re-parks it on its card — then hand the original decision over; it drives (KL-4455-d). No sentence tells a person either way out. (3) **Sentences that are not true** in these shapes: a failed continuation's frame during a fork says the holder "could not be read here" and that a decision "continues the run that holds it" — the store reads, the decision continues nothing, and continuing that failed run is the way out (KL-4455-h); past a deadline the step's failed row says "was decided outside this run" where a continuation of the same chain used the approval (KL-4455-i); the run named as having taken an approval is said to have "ended failed (workflow.agent_parked)" when it is parked on another card (KL-4455-j). (4) **A pass that did not happen is not told** (three lost compare-and-sets, a refused write, an unreadable chain): the card stays with the earlier run, the next continuation takes it (KL-4455-k).
848
+ - **`WorkflowRun.parks[].passedTo?: string` (additive; wire: every read of a `WorkflowRun` record; @server @cli @client-core).** Present on a park entry of a FINISHED run, written once by the continuation of its chain that stood on that park at its suspended terminal without reaching it — that continuation's run id. Absent on every entry no continuation stood on from that record, and on every entry written before this version. The holder law does not read it and inheritance does not copy it; a host reads holders through `workflowParkHolderOf`, never this member.
849
+ - **@server (store and consumers; read code, not measured on the server).** (1) The store contract kit `workflowRunStoreContract` gains two cells the SQL run store must pass: an update of a FINISHED row is compared and set on `rev` like any other (a stale rev loses, the current one wins and bumps, the same expectation loses again), and `get` answers every member it keeps — `error`, `errorCode`, `completionId`, `parks` with an entry's unknown member — so that writing back what `get` returned loses nothing (a store whose `get` answers less loses those members on the write-back: measured on a stand-in store, not on the in-memory or file store). The write-back is assembled from your `get` answer, not from the engine's memory: if your `get` answers a slimmed record while the full one is kept, the write-back replaces the full one with it; if the record is still over your size limit and `update` answers false, the engine reads a lost compare-and-set, tries three times in all and says nothing (KL-4455-k) — read code, not measured on your store. Bound: one landed write per continuation per earlier run it takes cards from, at the continuation's suspended terminal; over a record's life at most one per park entry the record holds itself (read code). (2) Your journaling run store's `update` will, after this write lands on a finished run, publish the fleet and note the held park landing for that run once more (inferred from your code; judge whether that is wanted). (3) The exhaustive key-set gate over `WorkflowRun` (`core-keyset-guard.ts`) turns your typecheck red on taking this version, by design: give `passedTo` a cell.
850
+ - **Two continuations carrying one decision at once start one run (@server).** Before this round the loser started a run that was certain to fail at its resume claim, got no `resume.decisions` row and no notice, and its frame read "workflow failed; … re-invoke with resumeFromRunId: <loser>". Now the continuation takes its resume claim for a pre-minted run id before the run exists (the one taking a resume's admission also uses, `takeWorkflowResumeClaim`; the run's admission re-takes it, granted to the same holder, and a run that never reached its admission releases it at its end): a claim held by another run id starts nothing and answers the new reason **`continuing_elsewhere`** (`detail.holder` the run id the claim is held for, `detail.decisionIds`; "another run (run "Y") holds the claim to continue this workflow right now, so this decision was not used this time; it can still be used when it is handed over again" — `continuing_elsewhere` = not used this time, deliver it again later; it never says the holder carries this decision, and it promises no retry: the engine keeps no decision). The frame line is the "was not applied this time" one — no "failed", no `resumeFromRunId`. Measured with two Runners on 30 ms stores (`C1`): one new run record, gate once, one notice. Once its claim is granted, and before its run exists, the continuation reads the run's cards again — pending state, holder, row verdict, a spent decision — over the run and its successors as they are now: a continuation that was held between its first reading and its claim while another continuation drove the card to its end starts nothing and answers what the card now says (`not_pending`, `continuedAs` the run that drove it); measured (`C2`): one new run, the script's tail ran once. The pre-start claim is taken only where it can be given back (the in-process gate, or a store with `releaseResumeClaim`); a store that only expires claims is refused where the engine receives it (#4552's BREAKING entry above; `A4`; KL-4390-j closed). The claim is the lease: a claim that expired under a live continuation (a workflow timeout longer than the store's claim TTL) admits a second one, as it admits a second resume of any run (KL-4390-l). The claim wait is bounded like the launch's other store waits (`WORKFLOW_STORE_WAIT_BOUND_MS`): a store whose `resumeClaim` does not answer refuses the continuation (`launch_refused`, "the continuation's resume claim was not answered within …ms — not started"; a grant that arrives later is released), and the leg's turn runs (`A3`); the launching call's abort signal is checked again under the claim — a model's own call carries one, the engine's continuation none of the leg's (interrupting the leg's turn during the claim wait stops neither the wait nor the start; measured). Nothing that can throw sits between the grant and the start.
851
+ - **Smaller sentences (@server @cli @client-core).** `not_pending` names the run that continued from the card when one did (`detail.continuedAs`; "the approval card was already used to continue the run, as run "Y" …"); without `continuedAs` it names a removed card beside a decided or expired one ("it was decided elsewhere, it expired, or it was removed"; `U1-expired` / `U1-removed`: the engine writes no row after the host's verb, and neither the notice nor the frame says the decision continues the run); the card's pending state is now judged before the holder, so a decision naming any run of a settled card reads `not_pending`, and a finished run that did not park is judged by its cards first — the continuation itself named after it drove the card reads `not_pending` with `continuedAs` (`F2`; before: `record_unreadable`, "the card is still waiting; the next run tries again"). The frame line for `not_pending` and `card_unresumable` drops "was not applied this time". `launch_refused` says the decision can still be used when it is handed over again (a passing cause, such as the claim not answered in time, clears on a later delivery) instead of asking for a new decision. The frame's tail line for more than three runs says a decision that was not used is told to the person on its own (a started continuation has no notice), in both readings. `launch_refused`'s `why` is the launch's own sentence, no longer its `{"error": …}` envelope.
852
+ - **Not changed.** The resume admission, its claim (its taking is one function now, `takeWorkflowResumeClaim` — the same gate, store or in-process fallback, and the same verdict) and `disposeParkedOrdinal`'s judgement of a pending card (a drive it disposes now carries the row's verdict, read only when that drive is refused; a card no longer pending is #4455's, above); the live-run redemption of a pending park (`redeemWorkflowParks`: a decision drives it); yield adoption (it moved to the same run-body opening, one contributor of the leg's adoption step); the parent-constraint verdict of the resume screen (its rungs (3)–(3c) are the pure `parentConstraintChainVerdict` now, behavior the same); `workflowParkHolderOf` itself — the function (the takeover above changes the records it reads: who it names moves to the newest run; and the one reader that answered "who holds this step" without it, the failed resume's frame, now asks it).
853
+ - **Rules.** The "who continues" answer 2 → 1 (the engine; the model path keeps one conditional arm — the one call whose card was decided allow, the model told once per decision — until the ask-rule card is a card of the carrying leg); one holder judge for host and engine; one home of "what the run was started with" (the launch record; `effectiveArgs` and the script draft retired from that role); "used or not" has one home (the continuation's `resume.decisions`); a gone card's step has one answer and one source (#4455: the store's word settles it, on both lanes; the acknowledgement form, its "refused without one" arm and `kept_parked` retired; one reader for both decision doors). Added: the adopter, the notice, the frame source.
854
+ - **Pins.** `test/backlog4390-engine-continues-parked-workflow.test.ts` (P1–P15, P1b, P13b, PC), `test/backlog4390-ask-rule-carry.test.ts` (R1–R3, N1–N4, B3), `test/backlog4390-user-face.test.ts` (U1a, U1b, U2, U2b, U3, U4), `test/backlog4390-journal-less-controls.test.ts` (C1, C2), `test/backlog4390-fix1.test.ts` (A1, A2 — the continuation's start held on run / journal stores that answer 30 ms late: a wait of one tick instead of the whole adoption step reds both; B1–B3, C1, C2, C3 (a reading of KL-4390-l), C4, C5 (a held claim is not a used decision: a holder that never started, a holder carrying another card), D1, E1 ×2, E2, E3, E4, F2, A3, A4, U1-expired, U1-removed, U1-frame); `test/backlog4390-card-gone.test.ts` (#4455: a member card gone from pending — expired / absent — then `parallel` / sequential / `pipeline` resumed with no entry and with a decision: the step failed, siblings in place, the tail runs, the failed row; an entry without an outcome refused at the door); `test/backlog4455-three-arms.test.ts` (#4455: deny / expired / deleted side by side; what the next step reads); `test/backlog4455-voided-then-later.test.ts` (#4455: asked again at the next resume); `test/backlog4455-reask-paths.test.ts` (#4455: the way out by a deny; an approval whose step never ran); `test/backlog4455-holder-takeover.test.ts` (#4455: cells 1, 2, 4, 5 ×3, 6, 7, 8 ×2, 9, 10, 11, 12, 13, 14 — the takeover, its first-come rule, its reached-ordinal rule, the pass from the run that took the card, the failed resume's frame naming the holder, the fork a sibling's re-park leaves and its way out; mutations: no takeover / any terminal / no holder check / judged against the park's origin / no compare-and-set / reached by call key / asked-again sentence / the taking continuation unnamed / the frame's raw holder / a fork's first run named as the holder); `test/backlog4455-pass-first-come.test.ts` (#4455: P1 ×2 stores — two continuations at once, x20; P1b the same with the winner's own record landing late, x5; P2 the run that drove the step; P3 a chain that does not read; P4 a changed call is not asked again; P5 a card a sibling re-parked is not passed again; P6 two compare-and-sets lost to a third writer, the third won; P7 a won write the store answered with an error; mutations: no holder check / `passedTo` not consulted / no compare-and-set / an unreadable chain passes / any decision row / asked-again by ordinal alone / one attempt only / a landed write not read as its own); the run store contract kit `workflowRunStoreContract` (an update of a finished row; `get` answers every member it keeps — the in-memory and file stores; mutations: finished rows frozen / `get` drops a member); `test/backlog2561-in-run-park-redemption.test.ts` R3 / R7 (an entry without an outcome refused at the live door), R11b (a gone card settled at once, its outcome unread); `test/backlog652-park-truth-from-store.test.ts` (iii) and `test/backlog755-resume-migration.test.ts` (a gone or forged card settled, no longer refused); the journal store contract kit's launch cases; the frame as a mechanism kind: `test/backlog4022-mechanism-frames.test.ts` G12 (twelve kinds hold no op) and G16 (the always members, twelve by name), `test/backlog1664-event-copy.test.ts` (the intact sources by name; the frame's ceiling is its row's `maxBytes`), `test/backlog4390-user-face.test.ts` U2b (each frame line within the row's ceiling in both readings). Known limits: `docs/KNOWN-LIMITS.md` KL-4390-a … KL-4390-m.
855
+ - **Not verified here.** Every pin above is engine-level (a real Runner over a loopback model and in-process stores). What a person sees — the notice in a panel, the second card, the run's progress — is verified when @server and @cli take this version.
856
+ - **Consumers.** @server (R1 guidance retired, R3 the two verbs in the same version, R4 detail rows, R6 the notice, R7 the holder judge, R8 read `resume.decisions`), @cli (the frame, the `wfc-` call id on a completion), @client-core (display status third argument via the server; the notice's new `detail.askedBefore` — present ⇒ the model was already asked once and is not asked again, so a user sentence says "the model was already reminded", absent on `ask_unanswerable` ⇒ "the model can ask again"), @test (P1–P15 black-box shape), @sdk (HB-1 / HB-3).
857
+
858
+ ### A workflow member's approval names the member — `workflowRunId`, `workflowAgentLabel` and `workflowStepAskedAgain` on the ask and on the pending row (#4462; additive; capability word +1 `ask.workflow_member`; hard-breaking: none; narrowing: none; @server @cli @client-core)
859
+
860
+ - **What is new.** `AskRequest`, `AskQuestionRequest` (a member's question, on the mounted face and the routed face — through `questionSourceOf`, M6) and `CheckpointSummary` carry `workflowRunId?` (the member's run — the same id its forwarded `task_progress` / `task_started`, its `wa*` row frames and the run record carry) and `workflowAgentLabel?` (the member's label), the label only with the run id; and `workflowStepAskedAgain?: true` beside them when the call re-runs a step whose earlier approval card stopped waiting **without a decision** (expired or removed). The bit rides wherever the engine writes a member's run id: the ask, the pending row, the forwarded `task_progress` / `task_started` (`TaskEvent`), the `wa*` row frames (`BackgroundChildEvent` `spawn` / `tick` / `terminal`). The card's row records the member at mint (`CheckpointState.workflowMember`, shown, never decided — no requirement word); a leg resumed with no member reads it back. The engine sets the member on both spawn legs of a run (`RunInternals.workflowMember`); a child a member spawns builds its own internals and is no member.
861
+ - **The contract, six readings** (INTEGRATION-CORE §1.6a, "Which workflow member asked"): (1) the capability word `ask.workflow_member` — with it, absence on an ask is "not a member" and absence of the bit "not such a re-ask" (pin M1); (2) a pending row whose state no longer reads carries none of the three: unknown, not "not a member" (measured, M3); (3) the label is not unique — two members of one run may share it — and is never a key (measured, M4); (4) the engine neither validates nor bounds the label (measured: 3000 characters arrive whole, M4) — readers bound it; (5) `workflowRunId` is the one `runId` the run's other faces read (read code; measured top-level, M1 / M2) — except one face of a nested run (read code, not measured): a nested member's ask, pending row and `wa*` rows carry the nested run's id, while its forwarded `task_progress` / `task_started`, bubbling out through the outer member's leg, are re-stamped with the outer run's id and label (the existing grouping) and now with the outer member's re-ask bit as one set; (6) a card keeps the values it was parked with: a later run that re-parks on it does not rewrite the row, so the row names the run that asked while the holder may be a later run — route a decision by `workflowParkHolderOf`, never by the row's run id (measured, M5; the host-resume read-back is read code).
862
+ - **The bit's reading.** Present only as `true`. It names no cause (expired / removed / voided are not told apart; a machine cause would be another member, later — do not read the sentence for one). It excludes a step approved earlier whose run never executed it: that step is asked again too (measured: the next resume records it failed `resolved`, the one after asks on a new card) but without the bit (M2-approved-not-run). The run that asks again says so in words whatever the cause (#4455 above).
863
+ - **Words for @cli.** A pending approval row can show which workflow step asked and in which run: group by `workflowRunId`, show `workflowAgentLabel` bounded (it is the script's word, untrusted for display, may repeat inside a run); when `workflowStepAskedAgain` is `true`, a short "asked again — the earlier card stopped waiting" beside it. Gate on `ask.workflow_member`; without the word show nothing new.
864
+ - **Words for @client-core.** Carry the three members through as given (no inference from `sourceAgentName` or `agentId`); key a row by its card, never by run id + label; a row with none of the three under the word is either no member's or a row whose state did not read — show it as before.
865
+ - **Words for @server.** Three faces gain the members as the core faces carry them: the parked row (the run record's member row — unchanged, already keyed by `wa*`), the live pending row (from the `AskRequest`), the inbox row (from `CheckpointSummary`); project `workflowStepAskedAgain` with `workflowRunId` on each and project `ask.workflow_member` onto `/v1/capabilities` if you wire it. Route a decision by `workflowParkHolderOf`, not by `workflowRunId`.
866
+ - **Pins.** `test/backlog4462-workflow-member-on-ask.test.ts` M1, M2 ×3 (expired / deleted / approved-not-run), M3, M4, M5, M6 (a member's question, mounted and routed), M7 (a forwarded frame re-stamped as one set: `stampWorkflowMember`); `test/backlog4455-pass-first-come.test.ts` P4 (a changed call at a settled ordinal carries no bit); `test/backlog1754-held-values.test.ts` V7 (the capability list).
867
+
868
+ ### A host's scheduled-task list and stop control read through the four functions the model's CronList / CronDelete call — `sessionLaneScopeOf`, `schedulerLanesOf`, `listScheduled`, `cancelScheduled` are new root exports (#2926; design/2861 r1 §4 T2; additive; the model's tool output is byte-identical while a backend's capability declaration holds; narrowing: an empty lane key is refused, below @server @cli @client-core)
869
+
870
+ - **Before.** A scheduled entry lives in one place, the scheduler backend, and a run reads two lanes of it (the session lane: jobs bound to the session; the durable lane: jobs filed under the run's isolation scope). The way to read both — the union, one id once, "one lane fails ⇒ the whole read fails", "find the lane that holds an id before cancelling" — lived only inside the `CronList` / `CronDelete` tool closures, and the session lane's key chain was written by hand in the Runner's mount (`prepare-task.ts`). A host that wanted its own scheduled-task list and stop control (server S-1985, the Scheduled / Routines page) could not read the same entries without writing a second reading.
871
+ - **Now.** Four package-root exports, the one reading: `sessionLaneScopeOf({ sessionId?, isolationScope?, principal?, taskId? })` (the session lane's key: session id, else the isolation scope — its member when set, else the principal —, else the task id, else `"default"`; the Runner mounts the tools with it), `schedulerLanesOf(ctx: SchedulerToolContext): SchedulerLanes` (`{ session, durable }` as the contexts the backend isolates by; the session lane keyed by `ctx.scope` as handed), `listScheduled(env, lanes)` (both lanes, one id once; a lane that fails fails the whole read with its own error; an env with no scheduler seam answers `SchedulerError("unsupported")`, which an empty list is not) and `cancelScheduled(env, lanes, id)` (the holder lane found by listing, per-lane tries only on `not_found`). `CronList` / `CronDelete` / `CronCreate` / `ScheduleWakeup` take their lanes from `schedulerLanesOf`; the two tools' bodies shrink to "call the function, render". `SchedulerLanes` is the one new type export.
872
+ - **Narrowing (open to veto @server @cli).** A lane whose key is not a non-empty string is refused with `config.invalid_argument` (thrown, naming the member and the repair) by all four functions before the backend is asked: `sessionLaneScopeOf` when its chain comes out empty (an empty session id, a principal of `""`), `schedulerLanesOf` for either lane, `listScheduled` / `cancelScheduled` for a lane pair a host built by hand (`undefined` and `""` used to reach the backend as `list@undefined`). The same refusal now stops, **when the scheduler tools mount**, a run whose isolation scope resolves to the empty string (a principal of `""` and no member): such a run used to mount and file its durable lane under `""`. Read from `origin/main` (读码): the server leaves `principal` out for an anonymous caller (`src/boot/resolve-spec.ts:1037-1038`; `src/engine-identity.ts` `taskSpecIdentityOf` writes the key only when the subject's person exists) and passes a person through verbatim; its decoder refuses an empty person on the scenario-prefixed form (`src/owner-brands.ts:89`), and a search of its `src` found no path that sets a run's principal to `""` — whether its request door can mint an empty unprefixed subject was not read; the cli's `src` has no such path either. A host that gave a run `principal: ""` and a scheduler env gives it a principal that is not empty.
873
+ - **The readers do not re-read the capability declaration.** `listScheduled` / `cancelScheduled` ask for the seam's two methods, not for `schedulerCapabilities.supported`: that declaration is the tools' mount gate (`hasScheduler`, read once when the tools mount, unchanged). An entry that exists stays listable and stoppable whatever the backend declares today — a job that still fires must stay stoppable — which is also what the tools did before this change (they held the backend narrowed at mount). A seam with no backend answers `unsupported` itself; an env with no seam at all is answered by the readers. Pinned both ways: the readers answer for the entries after the declaration flips, and the mount gate still mounts nothing for a backend that declares `supported: false`.
874
+ - **Derive the lanes from what the host verified.** A host builds the lanes from the session row, the principal and the isolation scope the run was admitted under, not from a value its caller states about itself (docs/INTEGRATION-CORE.md §14.1). Lanes derived for session A read and stop nothing filed under session B's session lane; the durable lane is shared by every session of one isolation scope, as it is for the model.
875
+ - **Not changed.** What the model reads and does: every `CronList` / `CronDelete` text, `isError`, `details` and the sequence of backend calls are byte-identical to the code before the extraction (a 17-scenario table recorded on the old code and replayed; the one clause: the backend's capability declaration is read when the tools mount and is not expected to change while the instance lives — if it does, the tools keep answering for the entries that exist, as before). No new wire member, no meaning change of an existing one. The row is `ScheduledTaskSummary` as before: no prompt, and still no pause flag, no timezone and no end time on the record — the seam has none of them; a host that needs one asks for the seam member separately (not in this change).
876
+ - **Rules.** The session lane's key chain was written by hand in the Runner's mount and is now one function; the two-lane read and the holder-lane cancel lived inside the two tool closures and are now two functions the tools and a host share. Added: none as rules; retired: the hand-written chain in `prepare-task.ts`, the in-closure lane pair and holder search. Design/2861 r1 §1②/F4 wrote the keys as `principal`-based; the code has read the isolation scope since #3693 and this change keeps that reading (`sessionLaneScopeOf` takes `isolationScope`).
877
+ - **Pins.** `test/backlog2926-scheduler-lane-readers.test.ts` — one cell per scenario of `test/fixtures/backlog2926-cron-scenarios.ts` against `test/fixtures/backlog2926-cron-tool-output-baseline.json` (recorded before the extraction) · the key chain, the lane pair, the union / de-duplication / one-lane-fails read, the holder-lane cancel and `unsupported` on the four functions · the four refuse an empty or undefined lane key before the backend is asked, and the tools refuse such a run at mount · a backend that declares `supported: false` after the tools mounted still lists and stops what exists (a scenario recorded on the old code, plus the host's two functions) · a real Runner mounts the tools and a host holding the env lists and stops the same entries · session A's lanes list and stop nothing of session B's · source scans: the chain is not written in `prepare-task.ts`, the tools read the lanes through the two functions.
878
+ - **Consumers.** @server: the Scheduled / Routines page's list and stop (S-1985) call `listScheduled` / `cancelScheduled` with lanes derived from the session row the poll or stop request names, after the page's own session-ownership check; the page needs no new core member for the rows it renders today. @client-core: a loop projection reads `ScheduledTaskSummary` rows (`mode` tells a pending wakeup from a cron job). Exports added: `sessionLaneScopeOf`, `schedulerLanesOf`, `listScheduled`, `cancelScheduled`, type `SchedulerLanes`; removed: none.
879
+
880
+ ### When auto mode's classifier refuses a call, the gate record says why — `tool_end.gate.disposition` carries the classifier's `reason` and its `category` as a word of a closed set (#4270; additive optional members and one root-exported closed set; narrowing: the deny sentence no longer quotes a rule name when the classifier gave no reason, open to veto @server @client-core @cli @web-client @sdk)
881
+
882
+ - **Before.** A host read "denied by the classifier" off `deniedBy: "classifier"` (and a form off `cause`) and nothing more: the classifier's own sentence reached only the model-facing deny text (`auto-mode classifier blocked this call: <reason>`), so a card could say "Blocked by auto mode" and could not say why without taking that sentence apart. Measured on a real Runner: a ruling with reason and category gave `{ kind: "denied", deniedBy: "classifier", classifier: { modelRequested, modelUsed } }`.
883
+ - **Now.** Two optional members on the denied arm of `GateDisposition` — two facts, never one string:
884
+ - `reason?: string` is the one sentence the classifier gave: **untrusted text from the classifier model** (the main model's own when the classifier ladder fell back to it — `disposition.classifier.fallback` on the same record says so), one line, at most 160 code points (a cut one ends in `…`), tag and fence markers defused (`inlineUntrusted`); render it as text only, never as markup or an instruction. It is the string the deny sentence ends with, folded once.
885
+ - `category?: ClassifierCategory` is the rule it filed the call under, as a word of a **closed set of 79** (`CLASSIFIER_CATEGORIES`, new root exports with `isClassifierCategory` and the type; `docs/CLOSED-SETS.md`) — the reference client's own set, read its way (`cli321.js:287874`, set at `:276085`): exactly one `<category>` tag of the accepted spelling (`[a-z0-9 &_-]{1,64}`, either case), its word normalized (lower case, runs of non-alphanumerics → `_`: `Data Exfiltration` → `data_exfiltration`) and a member of the set. Zero tags, two or more, a spelling outside the accepted one, or a word outside the set (a deployment's own rule name is outside it) leave the member absent, and so does a verdict a hand-built decider returns without the new optional verdict member `categoryWord`. The word is minted once, by the verdict reader. It is a word, not text.
886
+ - Each is present exactly when it was given; a ruling that said nothing the record can carry has neither. They ride a ruling of the gate's own classifier (`deniedBy: "classifier"`) and an ancestor classifier's ruling the child's chain attributes to `policy`, including the resumed leg's rebuilt ancestor classifier. Never beside a `cause` (a classification that did not rule — `unavailable`, `parse_error` — has no reason to give; its form is the fact), never on an allow, never beside any other layer's refusal; a later layer that refuses the same call in the classifier's place drops them. The record is the one object the `permissionDenied` observer, the call's `tool_end` frame and the durable outcome read.
887
+ - **Narrowing: the sentence the model reads (open to veto @server @cli @client-core @web-client @sdk).** The deny sentence ends with the classifier's reason alone (`auto-mode classifier blocked this call: <reason>`) and with nothing when there is none. Before, a block that named a rule and gave no reason read `…: [<rule name>]`, quoting the classifier's own spelling of the rule. The reference's reason slot never carries the raw rule text (read at `cli321.js:287876` and `:287877`, the function that mints the deny decision: its sentence is built from the result's `reason` — the reason text, or `No reason provided` — and, on the severity-graded arm, `[<display name of the set's word>]` — a name taken from the classifier prompt's own rule list, with the tag's words as the fallback; the structural `category` there is a separate member), so the sentence follows it. The denial-limit fallback's "latest blocked action" text takes the same reason, else the tool's name (it used to take the rule spelling before the tool's name). A deployment's own rule names are no longer shown to the model in the sentence; they still ride the classifier's `reason` text when the classifier writes them there (the shipped prompt asks for `[Rule Name]` first).
888
+ - **One fold.** The deny sentence's tail and the `reason` member are one string, folded once by one function (`classifierSaidOf`) written at each of the two judging stations, so a cut text is cut the same way in both. New screen invariant I14 (`screenGateOutcome`): denied arm only, the layers `DENIED_BY_MAY_CARRY_CAUSE` admits (`classifier`, `policy`), never beside a `cause`; `reason` a non-empty single-line string within the bound, `category` a member of the closed set (both readings; `RETIRED_MEMBERS.classifierCategory` holds no retirement).
889
+ - **Rendering (for the hosts named above).** The reference prints `Auto mode: <reason>` (`cli321.js:312126`, prefix constant at `:284909`; the ticket's `:311167` is not the render). Its default arm — the one it runs unless a per-model remote setting turns severity grading on (`:287874`; inferred, the setting was not decoded) — shows `Auto mode: No reason provided` when the classifier gave a category and no reason; the severity arm shows `[<rule name>]` there. So: draw `Auto mode: <reason>` from `disposition.reason`; with no reason, draw the reference's `No reason provided` (or nothing), and use `category` only as a word you label yourself. Before drawing, the reference joins the display text, the reason and the raw input and passes them through a text check (`$4e(...)`, `:312125`-`:312126`); a hit, or the check throwing, blanks the reason (and the display). Which check that is is **not located** (the minified name is defined three ways in the file; a text scanner next to the redaction functions at `:275233` is the candidate, not established). It then cuts the line to 40 (`sYo=40`, `:312119`; the unit — columns or characters — was not established). A host decides for itself whether to follow either step.
890
+ - **Three members named `reason`.** `disposition.reason` here (the classifier's free text), `disposition.released.reason` (a closed word, `ModeReleaseReason`: why a mode released an ask) and the `permissionDenied` observer payload's `reason` (the whole refusal sentence, raw). They are different facts; none was renamed.
891
+ - **Not changed.** `deniedBy`, `cause`, `classifier` (the round) and every other member; every other sentence the model reads; what the classifier is asked. Not done: the reference's list of recent auto-mode denials (`/permissions`) — a host builds it from these records.
892
+ - **Rules.** The reason's fold lived inline at two judging stations; it is now one function both call and one attestation member (`classifierBlock`, beside `classifierCause` and `classifierRound` on the engine's one record channel) the exit reads once; the rule name's own spelling is no longer carried anywhere (the sentence quoted it; the member is the word). Added: one invariant (I14), one closed set (`ClassifierCategory`, registered; no disposition table), one optional verdict member (`categoryWord`), no new table. Retired: the sentence's `[<rule name>]` fallback.
893
+ - **Pins.** `test/backlog4270-classifier-reason-on-gate-record.test.ts` — K1–K8 the closed set and its reading (79 distinct normalized sorted frozen words; the accepted spellings; the reject forms: none / two tags / outside the set / a spelling outside the accepted one; the reference's counting; the verdict reader; a hand-built verdict and a forged word; the shipped rule list) · R1–R8 a real Runner, every form the classifier can end a round in, the members and the sentence bytes · R9 controls · G1 a crafted reason is folded and bounded · G2 the sentence's tail is the member · G3 no-ruling forms · G4 the inherited station · G5 a replacing layer drops them · G6 one record · G7 merged records · G8 a ladder that fell back to the main model carries `classifier.fallback` beside the reason · G9 a state the engine cannot mint (the classifier's words beside another layer's facts) throws the mint's I14 defect and the observer is not told · S1–S4 invariant I14; `test/design503-parked-automode-arming.test.ts` — the resumed leg's refusal by a rebuilt ancestor classifier carries them; `test/backlog1731-gate-screen-archive-reading.test.ts` — the registry row.
894
+ - **Consumers.** @server: the gate record is projected key by key, so the two keys do not reach its wire until it picks them up — and the pick is a compile-time event there: its key-set guard `_GuardGateDisposition` (`src/trace/core-keyset-guard.ts:1942` on origin/main) turns its type check red when it takes a core that has the new keys, until they are in its `GateDispositionProjected` list and picked at its projection (`src/trace/project.ts`, the denied arm near `:446`–`:470`), where by that file's own convention the free-text `reason` goes through its text seat (`seatText("trace-frame-text", …)`, as `extension` does) and the closed word `category` passes verbatim (read, not run). @client-core @cli @web-client @sdk: render as above; `category` is a closed word (the exports are the set), `reason` untrusted text. Until the members arrive a host can still render "blocked by auto mode" from `deniedBy === "classifier"`. Exports added: `CLASSIFIER_CATEGORIES`, `isClassifierCategory`, type `ClassifierCategory`; removed: none; wire: two optional members, one optional verdict member, one screen invariant.
895
+
896
+ ### A file ledger line that is not one of its records is no longer folded past: the checkpoint, background-agent and workflow-run stores refuse a damaged ledger by name (`store.ledger_damaged`) instead of serving a row's previous state as its current one — which let an approved, refused or expired approval card be decided again and its tool run a second time; `inspectFileLedgers` checks a root without opening it, `setAsideLedgerDamage` is the way out (#4482, P1)
897
+
898
+ - **Rule.** Every line of a snapshot+ledger pair is judged as its writer allows (`judgeJsonlFile`, one judge for every JSONL file): a record; or — only as the live ledger's unterminated, unparseable last segment — an append that never returned (commit order is durable append first, in-memory flip after, and an append is one write of `json + "\n"` rolled back on failure, so no writer leaves a half line with its newline, nor an empty line); or damage. Any snapshot line that is not a row is damage, its unterminated end included (a snapshot is published whole). A line is UTF-8 text first: bytes that are not (every writer writes `JSON.stringify` output as UTF-8) are not a record — damage; as that unterminated last segment, an append that never returned only when, read leniently, they do not close an object (a crash leaves a prefix, never a closed object) — where they used to decode to U+FFFD and could name another row (a token with one byte changed is another token). An event that files a whole row under a key other than the row's own is damage too, and the write door runs the replay's own judgement: an event the next open would not read as a record is refused before a byte of it is written. Damage refuses the store that owns the pair; an uncommitted tail is read as not having happened, told once and cut on open.
899
+ - **Before (measured; v7.68.1 and the 7.69.0 stage head read the same).** The shared fold disclosed such a line and skipped it, then folded last-writer-wins: a completed workflow run read as running; a settled agent as running, a reaped one back; compaction then rewrote that fold as the truth and erased the line. On the checkpoint ledger, through a real Runner: an approved card whose `resolve` line was damaged folded back to pending with its execution record still on it, and a second approval **ran the tool a second time** (count 1 → 2) before failing `checkpoint.execution_outcome_conflict`; a refused card the same way **ran the refused tool** (0 → 1); an expired card's `expire` line damaged ⇒ pending, approved, executed. A pending card whose `put` line was damaged vanished with one disclosure; a damaged snapshot tail vanished silently. An expired card whose `expire` line had one byte of its token turned into a non-UTF-8 byte read pending with no disclosure at all and was executed when approved (0 → 1); a `put` filing card A's row under key B after a damaged line made a card the set-aside had removed read back pending (both measured by the collection leg, the second with its codex round).
900
+ - **Now.** Each of those cells is refused at construction: `FileLedgerDamagedError` (`code` `store.ledger_damaged`; `dir`, `damaged[]` = file / path / line / form / what, `rowsInReach`, `snapshotRowsLost`), its message naming the files, lines, reach and `setAsideLedgerDamage(<root>, "<ledger>")`. `onCorruptRead` first hears one `{kind:"record"}` per damaged line and one `{kind:"file"}` carrying the refusal. `readCheckpointLedger` refuses the same pair. Independently, a checkpoint row that reads pending yet already records its execution is refused by the row's own verdict before anything is claimed or run (`checkpoint.invalid_outcome`, `requirements_damaged`; every backend; the listing shows it `damaged`).
901
+ - **Hard-breaking (open to veto; @server @cli @client-core).** (1) *What changed:* a file data root whose `checkpoints/`, `background-agents/` or `workflow-runs/` ledger holds a line that is neither one of its records nor an unfinished last append no longer opens that store: its constructor throws `FileLedgerDamagedError` (`store.ledger_damaged`), and because `new FileStorageBackend` builds the checkpoint and background-agent stores, it throws too; the workflow-run store (which the backend never builds) refuses alone. A deployment already running on such a ledger does not start after the upgrade until `setAsideLedgerDamage(root, ledger)` is run. (2) `onCorruptRead` on these three stores no longer means "disclosed and skipped": it is "disclosed, then refused" (`record` per line, then `file` with the refusal; no `replay` tally), or, for an unfinished last append, "disclosed and cut" (`file`, `uncommitted tail: …`). (3) The tolerance INTEGRATION-CORE §5.0 registered for these stores ("a line that is not one of this store's records is skipped") is retired; the mailbox keeps it (KL-4482-c). (4) A checkpoint row that reads `pending` yet already records its execution (`executionOutcome`) is refused by the row's own verdict on EVERY backend (`checkpoint.invalid_outcome`, `reason: "requirements_damaged"`): a resume refuses it before anything is claimed or run, a listing shows it `damaged`; it used to resume, and approving it ran its tool again. (5) Every reader of the JSONL format reads a line whose bytes are not UTF-8 as not a record, where all of them served it with U+FFFD in place of the bytes (KL-1278-c, closed): the session store's and the mailbox's readers skip it and say so (the session store's first / last record cursors step over it alike), the workflow journal refuses its load (its rule for a line that is not a record). What that costs, measured through a real Runner on a file backend: a session whose MIDDLE message holds such a byte is read the way a torn line in its middle always was — the line is skipped, and the next message still runs, but from the entries after the damage: the model no longer sees the messages before the damaged one, nor it, and each run says so (`session.lineage_rerooted`: the missing entry, the entries kept, the entries above the damage left out); a reader outside a run (an opened session's `buildContext`) refuses `corrupt_session`; it used to read the whole conversation, one character shown as U+FFFD. To continue from the part BEFORE the damage instead, `resumeAt` the last whole message before the damaged line (the `record` disclosure names the line, `exportEntries` lists the entries) or fork there: the model then sees exactly the messages up to it, and the later ones stay in the log, outside its context. A damaged LAST message is only missing, and each open tells again; a mailbox drops such a line, and when it is the mailbox's last line the next new message takes its sequence number; a journal holding one refuses the run's load. The engine does not write such a byte (six kinds of content through the three stores wrote files that all decode strictly, measured): a failing disk or a writer outside the engine makes one (KL-4482-i, -j). An unterminated last line is read as what it reads leniently: one that closes an object is disclosed the same way (it used to be served); one whose bytes are not text and that does not close an object — a closed JSON string or array among them — is a crash's prefix, told once and cut, where the ledger stores refused a closed string or array as damage (KL-4482-k). To find such files before upgrading: `iconv -f UTF-8 -t UTF-8 <file> > /dev/null` exits non-zero on a session, mailbox or journal file that holds one (measured on macOS). (6) `FileCheckpointStore.put(token, row)` whose `row.token` is not `token`, or whose row lacks the members a row is filed by, throws (`file ledger: refusing to write …`) and writes nothing; it used to write a line the next open refiled under `row.token` — or, since this release, refused. The workflow-run and background-agent stores already file a row under the key they read off it. (7) An append log opening a file, or appending to one, cuts only what a crash can leave (a last segment that does not parse, or is cut inside a character); a last line that is damage — text that parses to something that is not an object, or bytes that are not text and, read leniently, close an object — keeps its bytes and gets its newline, where it was cut: a cut erased damage a reader had already met (an approval card's `expire` line damaged while its store was open came back pending after the next append and a restart; a journal's damaged ordinal vanished and the load served the ordinals around it — both reproduced by the codex round on this change). A session or mailbox file keeps disclosing such a line on each load instead of once. *Who is hurt:* a host that wired `onCorruptRead` as a tolerated lenient read, one whose boot cannot tell this refusal from a crash, and a deployment whose session, mailbox or workflow-journal files hold a byte that is not text (item 5). *Compensation:* the check and the verb below, and a refusal that names its files, lines and the verb. *Check before upgrading:* with this package, `inspectFileLedgers(<root>)` beside the running service — any `damaged` ledger refuses after the upgrade; fix with `setAsideLedgerDamage(<root>, <ledger>)` with the service stopped.
902
+ - **Additive (exports).** `FileLedgerDamagedError`, `LedgerDamagedLine` · `inspectFileLedgers(root)` → per ledger `clean` / `uncommitted-tail` (line, bytes) / `damaged` (damagedLines, setAside, snapshotRowsLost, kept) / `unsettled`; no writer fence (not even for an instant), nothing written, runs beside a live store; it judges LINES, not rows — a row that folds from records but is not a row of its store (pending with an execution record) reads clean here and is answered by the store's own reads; `root` is the directory the stores were given · `setAsideLedgerDamage(root, ledger)` → `{ damaged: false }` (nothing created) or `{ damaged: true, setAsideDir, damagedLines, setAside, snapshotRowsLost, kept }`: copies both files verbatim into a new `<root>/<ledger>/set-aside-<UTC ISO-8601 to the ms, ':' and '.' as '-'>-<6 hex>/` (0700 / 0600) and syncs the copies and both directories — a failure to open or sync any of them throws with the pair untouched (on Windows, which has no directory sync, the copies' contents are synced only) — then rewrites the pair with only the rows an event settled whole after the last damaged ledger line; refuses `store.dir_in_use` while a store over the ledger is open; idempotent. A set-aside checkpoint card is gone: its resume answers `checkpoint.not_found` — a person starts over, it is never decided again. Types `FileLedgerHealth`, `FileLedgerName`, `LedgerDamageSetAside`.
903
+ - **Not changed.** The crash shape (a half last line with no newline) reads exactly as before — as not having happened, then cut — and now says so once. A whole record missing only its newline, a pair mid-compaction (snapshot replaced, ledger not emptied) and a pair written by v7.68.1 open clean (pinned with real v7.68.1-written fixtures). Commit order, fsync (state transitions of the checkpoint ledger always fsync before they answer; `fsync: false` governs only `put` / steer appends there, and every event of the other two), the on-disk format, the unknown-event-kind refusal (`checkpoint.unsupported_version`), the mailbox's skip and the journal's refusal (both only meet one more kind of line that is not a record, item (5)).
904
+ - **Known limits.** KL-4482-a an acknowledged last line later truncated on disk (without its newline) is indistinguishable from a crash and reads as not having happened · KL-4482-b the verb sets aside every row the damage MAY have moved (a damaged line near the end reaches nearly all) · KL-4482-c the mailbox still skips (a damaged `ack` re-delivers; measured) · KL-4482-d `FileStorageBackend` binds the checkpoint and agent stores into one construction · KL-4482-e glued lines a pre-2026-07-31 engine could leave now refuse (inferred) · KL-4482-g damage no byte can show — a whole last line lost with its newline (an acknowledged line a power loss can take on macOS, where `fsync` is not `F_FULLFSYNC`), a `put` repeated at the end, a ledger removed or a snapshot replaced by an older one after a compaction, an event whose key was changed into another valid key — reads a row's earlier state with nothing told (an expired card pending, and executed when approved; where the last line is lost whole, an approved card approved again runs its tool a second time and a refused card's tool runs — measured through a Runner); a rule for the last form ("an event for a row the fold does not hold, with no later removal of it, is damage") was measured and not adopted: it also refuses the set-aside verb's own interrupted rewrite · KL-4482-h the in-memory checkpoint store still files `put(token, row)` with `row.token ≠ token`, and a row lacking the members a row is filed by (no `scope`, say), where the file store's write door refuses both (the in-memory store has no replay to misread them) · KL-4482-i a session with a non-text byte in a MIDDLE message runs its next message from the entries after the damage (the earlier part is out of the model's history, told each run), where it used to be read whole with one character shown as U+FFFD; `resumeAt` / a fork at the last whole message before the damage keeps the earlier part instead · KL-4482-j a mailbox line holding a non-text byte drops that message, and when it is the mailbox's last line the next new message takes its sequence number · KL-4482-k a ledger's last line holding non-text bytes that, read leniently, is a closed JSON string or array and has no newline is read as a crash's prefix — told once, cut — where an expired card then reads pending (before: refused as damage) · KL-4482-l a set-aside run stopped by a directory sync that fails leaves its `set-aside-<stamp>/` directory (copies intact; the pair untouched) and the next run makes another; KL-4482-i / -j / -k are the three leftovers of the strict decoding, each reachable only by a failing disk or a writer outside the engine (#4531, deferred).
905
+ - **Rules.** Readings of "what is this line" 2 (the reader's skip, the journal's refusal) → 1 judge (`judgeJsonlFile`); folds that pass damage 1 → 0; per-store tolerance rows 1 → 0 (one law for the three stores, per ledger); decodings of a line 2 (lenient for the whole-file read, cursors and tail repair) → 1 strict; "what may the tail repair cut" 2 readings (the reader's crash prefix vs. the repair's "not a record") → 1 (`isCrashPrefix`, read by both); judgements at the write door 0 → the replay's own. Added: `settles` / `eventKey` / `nameOf` on the fold's model (what R2's reach, the own-key rule and the operator's report read), one row-verdict arm, one `required` mode of the directory sync (the verb's copies).
906
+ - **Pins.** `test/backlog4482-ledger-damaged-line.test.ts` — M the matrix (3 stores × half line with newline / garbage / no discriminant × ledger tail / interior / snapshot interior / snapshot tail ⇒ refused with file, line, form, reach; test's 22-line fixture) · T the unfinished last append (previous version, one disclosure, cut, a commit after it is its own line) · V the verb (verbatim copy, kept rows, idempotent, directory name, refused while open) · I the check (coordinates, writes nothing, beside a live store, the run ledger's damage leaves the backend opening) · E through a Runner (approved / refused / expired card, decisive line damaged ⇒ refused; after the verb `checkpoint.not_found`, the tool never runs again) · R a pending row with an execution record fed directly ⇒ refused pre-claim · L legal pairs (v7.68.1 fixtures live and mid-compaction, newline-less whole record) · P `FileStorageBackend` refuses and opens after the verb · K a row under another key's line refused in all three stores, the set-aside card stays gone, the write door refuses and writes nothing · U a non-UTF-8 byte in a decisive line refused; an append cut inside a character is a tail (cut, next open clean), a closed object that is not text is damage even unterminated; a damaged last line met by a live store's next append is kept (checkpoint: the next open refuses; journal: the load refuses); the whole-file read and both cursors agree · I (lock) the check moves no directory entry or mtime and leaves a live store's LOCK byte-identical; `test/backlog4482-setaside-dirsync.test.ts` a directory sync that fails, or a directory that will not open, stops the verb with the pair untouched — for the copy directory alone, the ledger directory alone (each fails the verb only if its own sync is there) and both; the directory the stopped run made stays, and the next run makes its own (KL-4482-l); `test/backlog4482-session-nontext-way-out.test.ts` (real Runner, real file backend) a non-text byte in a session's middle message — the next turn runs from the entries after the damage and says so on every run, a reader outside a run refuses `corrupt_session`, `resumeAt` / a fork at the last whole message before the damage keeps the earlier part (KL-4482-i). Re-pinned: `backlog1013` R4d / R6b / R6f, `backlog2832` D3, `file-checkpoint-store` 9, `backlog1278` PIN 5 / 9c and `backlog1286` PIN 2 (a non-object tail is kept and ended, not cut) and PIN 12 (a closed non-text tail is disclosed and kept, not served).
907
+ - **Consumers.** @server: retire the `onCorruptRead`-as-tolerance registration for these three stores; present `store.ledger_damaged` to a person at boot (it is an operator message: it names files); give operators an entry to `inspectFileLedgers` / `setAsideLedgerDamage` (the engine ships no executable); decide per store whether to start without it (a damaged run ledger can mean "start without workflow history"). Your workflow-run store is built over `<data root>/workflows/` (`src/boot/workflow-orchestration.ts`), not the data root: check it with a second `inspectFileLedgers(<data root>/workflows)` (its `workflow-runs` entry; the other two read clean there) — and its refusal names `setAsideLedgerDamage("<data root>/workflows", "workflow-runs")`. The seat you wired there (`server.workflow-run.corrupt-record-skipped`) is no longer reached as a skip: after the upgrade that store throws `store.ledger_damaged` at construction. `scripts/drain-check-local.mjs` reads the checkpoint ledger through `readCheckpointLedger`, which now throws on such a line (your catch there turns it into a read error) — the header comment that says the engine "skips and discloses, keeps the older row" describes the old behaviour. @cli: the same refusal reaches a local root; render it as an operator fault, not a crash. @cli @client-core: item (5) — a session whose file holds a byte that is not text now runs its next message from the entries after the damage, with a `session.lineage_rerooted` notice (it used to read the whole conversation): show that notice to the person, and offer `resumeAt` at the last whole message before the damage when they want the earlier part.
908
+ - **Wire.** None (the refusal is thrown where a store is opened; no request-time shape changed).
909
+
910
+ ### Fast mode: a session asks for the provider's faster output tier for the same model, the catalog entry declares where it is served, and the engine re-sends at standard speed when the provider pushes back (#1579; server S-1394; behavior change: additive — a request that asks for it carries `speed: "fast"` and its beta; narrowing: one, below, open to veto @server; widening: none; hard-breaking: one, type level, below; closed sets: four new (`FAST_MODE_STATES`, `FAST_MODE_UNAVAILABLE_REASONS`, `FAST_MODE_COOLDOWN_REASONS`, `FAST_MODE_OVERAGE_CAUSES`), `ENGINE_NOTICE_CODES` +1 (`model.fast_mode_changed`), `ENGINE_CAPABILITIES` +1 (`task.fast_mode`), `MODEL_CAPABILITIES` +1 (`fast_mode`); exports: added, none removed; wire: additive) (@server @client-core @cli @web-client @sdk @test)
911
+
912
+ - **Rule.** One declaration, one applier, one reading. `Model.fastMode` (`true` / `false` / absent) is read by the one capability reader (`capabilityOf(model, "fast_mode")`; undeclared = not served, the model's name is never read for it). Every wire adapter calls one applier (`applyFastModeToRequest`): on the Anthropic Messages wire it writes `speed: "fast"` and the `fast-mode-2026-02-01` beta; the other wires have no such parameter and send none. Every face reads one function, `fastModeReadingOf` → `{ state: "off" | "cooldown" | "on", reason?, cooldown?: { until, reason } }` (the reference's `fast_mode_state` / `fast_mode_disabled_reason`, plus when a cooldown ends).
913
+ - **Now.** `TaskSpec.fastMode: true` asks for fast speed on the leg's requests and its child legs' (the parent spec seat hands it down). The requests made from the session's conversation beside the main loop ask as it does, as the reference's forks copy their caller's options (cli321.js:287049 / :292312): a compaction pass's summary (its fork form then re-sends the main request's speed and beta with its system prompt and tools, byte for byte) and the next-prompt suggestions. The permission classifier never asks (the reference sends its verdict request with no fast option, cli321.js:287876), nor does a library-wide memory consolidation, a mod's model call or the advisor. `TaskStream.setFastMode(on)` is its live half: same seat, the next request reads it, every call answers the reading. A model whose entry does not serve it (declared off: `model_not_allowed`; undeclared: `unknown`; a wire without the parameter: `not_first_party`) gets a standard request with neither the key nor the beta, said once per session per model (`model.capability_downgraded`, `capability: "fast_mode"`) — a fallback hop, a summary's or a suggestion's model is judged by its own entry. A fast request the provider pushes back on is re-sent at standard speed AT ONCE and once (the reference's rule: the cooldown, first-5xx and usage-credit re-sends are not counted as an attempt, the two 400 re-sends are — with no attempt left the 400 ends the call and the refusal is still learned; a re-send that fails again takes the ordinary road; a response that already streamed content is never re-sent); the re-send is that request without the key and nothing else (a rebuild that moved anything else — a header, the destination, the body — is not sent, nor is the fast request sent again: the provider's failure ends the call): 429 / 529 naming no short wait ⇒ a session-wide cooldown of `max(retry-after ?? 30 min, 10 min)` (`rate_limit` / `overloaded`); a second 5xx ⇒ a cooldown of `max(retry-after ?? 10 min, 10 min)`; a 429 / 529 naming a wait under 20 s keeps fast speed for the ordinary retry; a 429 / 529 whose usage-limit header names `out_of_credits`, `org_level_disabled_until` or `org_spend_cap_reached` ⇒ that request alone goes at standard speed, nothing is remembered, the next request asks again, and the leg says so once (`model.fast_mode_changed` with `detail.overage`, opening with the reference's "Fast mode disabled · Out of usage credits" / "… · usage credit limit reached", cli321.js:277306); the header naming any other cause ⇒ `extra_usage_disabled`; 400 "Fast mode is not enabled" ⇒ `preference`; 400 "'<model>' does not support the `speed` parameter" ⇒ `model_not_allowed`. Those three are what an endpoint answered, learned for the ROUTE the model's catalog entry names (its `baseUrl`, compared as the route pairing law compares it; an entry naming none is the deployment's own root) for the rest of the session — `preference` and `extra_usage_disabled` for every model of that route, whatever credential its entry carries, `model_not_allowed` for the one model it named; the same model id at another route keeps asking. A model's reading reads its own route's facts — the one a leg opens with (the wiring manifest), the verb's receipt and the result alike — so the reading a leg opens with names the speed its first request goes at. A cooldown ends by itself (read when the next request is built) or by a toggle (a leg asking otherwise than the session's last, or the verb); turning on forgets the refusals. Each change is said once (`model.fast_mode_changed`); every fast-mode sentence opens with the reference's own words for its reason ("Fast limit reached and temporarily disabled", "Fast mode has been disabled by your organization", "Fast mode is only available when using the Anthropic API directly", …), the deployment's catalog standing where the reference reads an organization's. Once a request carried fast speed to a route, the beta stays on that route's requests to an entry that serves fast mode, fast or not (the reference's sticky beta: a flip does not move the request's shape); it never reaches another route, nor an entry that does not serve fast mode. The request policy declared to the cache-break detector says fast speed when the call asks for it and its model's entry serves it — what the applier sends, short of an endpoint's refusal met earlier in the session. A child leg shares its tree's cooldown (the facts are keyed by the root session's address — its scope, its id and the row's occupant — so a deleted and re-created session id starts with none of them). The facts live in the Runner's process, as the reference keeps them: a session continued on another replica re-learns a cooldown from its first pushed-back fast request (re-sent at standard speed at once).
914
+ - **Usage.** The response's `usage.speed: "fast"` is read into `Usage.speed` (only that word; any other is absent), `turn_end.usage.speed` (`"fast"` when every call of the turn said so) and `TaskResult.stats.fastSpeedCalls` (summed over a composition's legs). A fast-served call is priced at the fast tier of its model's price table (#4298, below: `callRatesOf`) — a fast session's compaction summaries and suggestions too, which now go at fast speed where their model serves it; a table that declares no fast tier leaves such a call unpriced.
915
+ - **Narrowing (open to veto @server).** `speed` joins the Anthropic wire's reserved request keys: a deployment that sent it through `Model.extraBody` (with no beta) now has it stripped and is told once per leg (`route.extra_body_reserved_dropped`, `keys: ["speed"]`); the way back is the entry's declaration (`fastMode: true`) and `TaskSpec.fastMode: true`.
916
+ - **Not changed.** Every request of a session that neither asks for fast mode nor sent it is byte-identical to before (no key, no beta, no manifest or result member). Model selection: turning fast mode on does not switch models (the serving layer picks the model, C-R795 Q3). Availability is the deployment's declaration only — no account or organization lookup (recorded divergence `fast-mode-availability-by-deployment-declaration`); the reference's account-side reasons (`free`, `network_error`, `pending`, `sdk_opt_in_required`, `disabled_by_env`) have no reading here. The reference sends fast speed to one first-party endpoint, so it keeps one set of facts per conversation; here the session's facts are per route (the latch and the refusals), the cooldown stays session-wide as the reference's.
917
+ - **Divergence (open to veto @server).** A 400 naming that the model does not take the `speed` parameter is re-sent at standard speed for ANY model whose entry declares fast mode on; the reference does so only for a fallback target or a model already refused in the session, and fails the main model's call. Here availability is the deployment's declaration, so that 400 says the declaration is wrong: the call is not lost to it, and `model.fast_mode_changed` tells the deployment which declaration the endpoint contradicts (`reason: "model_not_allowed"`; recorded divergence `fast-mode-400-speed-refusal-resent-on-any-declared-model`).
918
+ - **Wire (additive).** `Model.fastMode?`; `TaskSpec.fastMode?` (non-boolean ⇒ `config.invalid_argument`); `TaskStream.setFastMode(on)` (`steering.invalid_content` / `steering.not_running`); `wiring_manifest.fastMode?` and `TaskResult.fastMode?` (present when the leg asked or its session sent fast speed); `model.fast_mode_changed` (`detail: { model, state, reason?, cooldown?, overage?, sessionId, runId }`, audience `user`); `model.capability_downgraded` gains `capability: "fast_mode"` with `status` one of `not_first_party` / `model_not_allowed` / `unknown`; `Usage.speed?`; `turn_end.usage.speed?`; `TaskResult.stats.fastSpeedCalls?`; `SimpleStreamOptions.fastMode?` (the per-call handle a Brain reads); engine word `task.fast_mode`. Root exports: `fastModeReadingOf` (`{ model, requested, refused?, cooldown?, now? }`), `FAST_MODE_STATES`, `FAST_MODE_UNAVAILABLE_REASONS`, `FAST_MODE_COOLDOWN_REASONS`, `FAST_MODE_OVERAGE_CAUSES`, types `FastModeReading`, `FastModeState`, `FastModeUnavailableReason`, `FastModeCooldownReason`, `FastModeOverageCause`.
919
+ - **Hard-breaking (type level).** *What changed:* `TaskStream` gains a required method, `setFastMode(on: boolean): Promise<FastModeReading>` (the verb above). *Who is hurt:* code that builds a `TaskStream` itself — an object that implements the interface to wrap or forward the engine's stream, a test double — is compile-red until it has the method; code that holds the stream `Runner.runTaskStream` returns is not (inferred: no consumer repository was read for this). *What to do:* forward `setFastMode` to the engine's stream, or give a double one that answers a reading.
920
+ - **Consumers.** @server (S-1394): pass `fastMode` through (gate on `task.fast_mode`), declare `fastMode: true` on the catalog entries whose endpoint serves it, project `{ state, reason?, cooldown? }` from the manifest / result / `model.fast_mode_changed`, and keep `model.fast_mode_changed` in the notice projection; a deployment using the `extraBody` bypass moves to the declaration. @client-core / @web-client: render the toggle and its disabled reason from the reading (a host without a session reads `fastModeReadingOf({ model, requested })`), a countdown from `cooldown.until`. @cli: `/fast [on|off]` maps to `setFastMode` / the next leg's spec. @sdk: the spec key, the verb, the reading types. @test: the cells below are black-box readable on a recorded endpoint.
921
+ - **Pins.** `test/backlog1579-fast-mode.test.ts` — the three declarations and the wire without the parameter (body, beta, reading, the once-per-model notice), the byte-identity control, the extraBody strip, the cooldown rule over a real Runner (429 / 529 / 5xx / short wait / overage header re-sent uncounted, both 400s re-sent as a counted attempt), cooldown expiry and the toggle across legs, the verb, a fallback hop without a declaration, `usage.speed`, the parent spec seat, a re-created session id that does not inherit a cooldown, a standard rebuild that moved a header or threw (nothing re-sent, no fast replay), an account that throws on the sent fact, a verb landing mid-call, the deployment-facing words of an endpoint's `speed` refusal, the 400 re-sends counted, the re-send made once (and its own failure taking the ordinary road), no re-send after streamed content, the latch and the refusals per route (a leg on another gateway's entry — undeclared, declared off, or serving fast mode — and a fallback hop to one; two gateways each latched on their own; the request after turning fast mode off; the same model id at two roots), the reading a leg opens with against its first request and its result (two credentials on one route; one model id moving between two gateways), the three usage-credit causes and another cause, the forked summary and the suggestions asking as the session does, the request policy's word, and the rule as a table.
922
+
923
+ ### A run that keeps its shell commands in an OS sandbox tells its model so, lets a call leave it only through the gate (`dangerouslyDisableSandbox` and the ask class `sandbox_override`), says back what the sandbox stopped, and lapses one way when the environment stops keeping it; a `~/` path is read where a call's plan is minted, and a resumed leg keeps the parked boundary (#2274 S2, #3925, #3926, #4284, #4285, #4286; behavior change: the escape, the frame, the result note, the lapse, the execution-environment head and the Bash Notes line, the escape card's headline line and its absent rule offer, the escape's sentence as the `message` of every ask the escape's word leads and the outside line opening another word's `message` (wire text, old → new below, @server @cli @client-core); divergence: one, below, open to veto; narrowing: two, below, open to veto @server @cli @client-core — the escape's carries two new arms, each open to veto on its own (a hook's or a `tool.check`'s allow no longer clears it; an inherited station's ask on it is no longer admitted by the sandbox); widening: three, below, open to veto @server; hard-breaking: three, below, open to veto; closed sets: `AskClass` +`sandbox_override`, `RequirementWord` +`command_sandbox`, `AskRequest.commandSandbox` / `PendingAction.tool_approval.commandSandbox` (new: `inside` / `outside`); exports: none; wire: `AskRequest.commandSandbox?`, `PendingAction.tool_approval.commandSandbox?`, `ExecResult.sandbox?`, `CheckpointState.commandSandbox?`, the announced record's `commandSandbox?` arm, the Bash schema's `dangerouslyDisableSandbox?` in an armed run)
924
+
925
+ - **Rule.** Where a call's command runs is its plan's answer and nothing else: one plan per call, minted where the gate lets the call go, on the input it lets go (`commandSandboxPlan(run, call, leg)`), with four arms — inside (the boundary instruction), outside (by the call's own escape, or because the run's sandbox lapsed and the task does not require it), refused (with the sentence), none. Every reader reads the plan: the start (the instruction or no `sandbox` option), the gate (a plan that leaves by the escape is the class `sandbox_override`), the card (`AskRequest.commandSandbox`, the plan's side), the result note. The run's judgment carries the requirement as written; `~/` is read where the plan is minted, against the home of the environment that runs the call. A resumed leg's requirement is the parked one as a floor under the one its config states — the same merge a delegated child meets (`mergeChildSandbox`) — and it is the floor the leg hands its children.
926
+ - **Before.** The escape parameter was not in the Bash schema and the settings that govern it took no effect; a `~/` path with no home refused the whole run at prepare, a run with no hands included (#3925); a resume whose config carried no `sandbox` ran the approved command with no boundary (#3926); nothing told the model it ran in a sandbox (the Bash Notes line said "The shell is NOT sandboxed by this tool"), and the execution-environment head told every run with a deployment tool policy that its commands ran in "an isolated execution environment"; a kept start said nothing back; every environment refusal was told alone and the next start tried again.
927
+ - **Now.** (1) The escape. In an armed run the full Bash schema carries `dangerouslyDisableSandbox` (the reference's sentence; not on the read-only face, not on Monitor). A call that sets it leaves the sandbox when the requirement lets it (`allowUnsandboxedCommands`, `true` unless `false`): the gate turns a surviving allow into the question "Run outside of the sandbox: …" and a surviving ask carries the class; an explicit allow rule covering the command keeps it allowed, `bypassPermissions` releases it, auto mode's classifier answers it, the sandbox admits nothing on its behalf; the allow layer's read-only member does not clear it (the reference asks over a read-only verdict too), and neither does an extension's own `allow` — a PreToolUse hook's or a `tool.check`'s (#4284: the reference sends a hook's allow back through its rule check, which asks for the escape; the class row says so with `hookAskFloor: true`, so under `dontAsk` a hook's ask beside the escape is refused rather than put to a person, as a hook's ask beside an ask rule is). The escape's card offers no rule to save — `ruleOffers` absent, `ruleOffersAbsence: "lane_cannot_speak"` (#4285: the reference's escape question carries no suggestion; an allow rule written for the command still clears it, and the headline still says so) — and a card whose class word is another class (a policy's real-approval demand, a hook's ask, an ask rule, a classifier that gave no ruling) opens its headline and its `message` with the reference's "Runs outside the sandbox." (#4286; one row, `core/engine.ask-outside-sandbox`, read twice by the one card-words mint: on the headline in the run's locale, en or zh-Hans, on the message in the canonical text every `message` is written in; the parked row's `cardMessage` is worded by the same function; the escape's own word's line already says it, and the order of `ASK_CLASSES` is unchanged). An ask whose word is `sandbox_override` IS the escape's question and says the escape's sentence as its `message` ("Run outside of the sandbox: this Bash call sets dangerouslyDisableSandbox, …") — also over a command the shell gate asks about anyway (a write, a `mkdir`), whose own words it replaces, as the reference's escape question replaces the ask it stands over; the `dontAsk` refusal, a person's no and the headless refusal quote it, and auto mode's classifier reads it; a plain policy ask it stands over keeps its words on the card as its asker's entry (`askReasons`). Both stations that derive an ask's class word it so — the gate's origin stamp and an inherited station's judgment (a parent constraint's ask on a child's escaped call). An approved-edit round reads the escape off the edited bytes it judges: an edit that drops `dangerouslyDisableSandbox` puts its next question as the policy's own, about a call that runs inside; one that adds it carries `sandbox_override` on the round's question where the round asks again (KL-2274-c is unchanged: a round that asks nothing asks nothing) (#4286 fix1). A delegated child's call meets the parent's inherited layers before its own gate: an inherited station classes the call off the same plan (`sandbox_override` when the args its card presents leave by the escape), so that card carries the class, the line and no offer too, and a person's yes on it covers what it disclosed — the child's own gate puts no second card for the same call. The escape is read only on a face that declares it (the read-only face and Monitor ignore the key if handed it) and only where the deciding question asked about leaving: a resumed call whose parked question did not carry `sandbox_override` runs inside. With `allowUnsandboxedCommands: false` the parameter stays and takes no effect (the frame says so). (2) `AskRequest.commandSandbox: "inside" | "outside"` on every ask of a shell-face call in an armed run, and the same member on the parked approval. (3) `ExecResult.sandbox: { launch: "enforced", violations?: [{ line }] }` is how an environment says it kept a start: the violations `ignoreViolations` leaves reported (the reference's reading: a path under `"*"` the line names, or under a pattern the command's text contains) follow the output as `<sandbox_violations>` (at most 50 bounded lines); a kept start with no record is said as unverified. (4) The lapse: an environment-level refusal is told to the user once (`config.command_sandbox_unavailable`, "Sandbox disabled: …") and to the model on that refusal; plans minted after it refuse every start under `failIfUnavailable`, else run every start unsandboxed. (5) The `## Bash command sandbox` frame (the reference's `sandbox_instructions`: the lists as JSON and when to leave) on a leg's first request, told once per conversation segment, again when its text changes, restated after a compaction as the sandbox stands then (the lapse's sentence once it lapsed), and the sandbox-gone sentence once a later run keeps none. (6) The head claims isolation only for an environment that declares `capabilities.isolation`; a policy-only host lane reads "Commands run in this session's execution environment, which is not declared isolated …". The Bash Notes line has three arms: the run's sandbox, the isolated environment, not sandboxed.
928
+ - **Narrowing (open to veto @server @cli @client-core).** A call that sets the escape in an armed run is asked about where the gate would have let it go (no rule covers it, no bypass, no classifier). Two of these are new in this window, each open to veto on its own: (a) `MODE_ARBITRATION.sandbox_override.hookAskFloor` is now `true` — a hook's or a `tool.check`'s allow no longer clears the escape question (an explicit allow rule still does), and under `dontAsk` a hook's ask beside the escape is refused (#4284). The lanes that run commands on a hook allowlist with nobody watching meet it as follows; in each form a command that sets the escape used to run outside the sandbox with nobody asked (measured by the collection leg, base vs branch, real Runner): `dontAsk` + a PreToolUse hook's `allow` — now refused, the refusal naming the escape; `dontAsk` + a `tool.check` `allow` — now refused; no approver wired + a hook's `allow` — now refused (the headless refusal); `auto` + a hook's `allow` — now the classifier's to answer (refused where it blocks); a hook that rewrites the call to ADD the escape and allows it — now a card (a person's yes runs it outside, a no starts nothing); a hook's `allow` on a durable leg — now the call parks (it ran before). @server @cli: an unattended lane that relies on a hook allowlist for escaped commands states an explicit allow rule (`allowedTools`, a stored row) for each command it means to let leave the sandbox; (b) an inherited station (a child's call folded into the parent's card) classes the call off the gate's own plan, so its folded row carries `sandbox_override` and `sandboxAdmission` is `false` there as at the gate — the sandbox-admission arm no longer admits that ask, and the person is asked once, on a card that says the call runs outside the sandbox (#4286). A resume whose config states no `sandbox` (or a looser one) now runs its commands in the parked boundary (#3926).
929
+ - **Words a host renders, old → new (wire text: `AskRequest.message`, the parked row's `PendingAction.tool_approval.cardMessage`, the model-facing refusal text; @server @cli @client-core — none of the three reads `headline` or `commandSandbox` on its origin/main, so `message` is where a person learns the call runs outside the sandbox; take it as given).** (W1) The escape's own card over a command the shell gate asks about anyway (a write, a `mkdir`): `message` `tool "Bash" was not shown to be reversible — explicit approval required` → `Run outside of the sandbox: this Bash call sets dangerouslyDisableSandbox, so its command would run without the run's OS sandbox restrictions.` (en in every locale; the headline beside it is the escape's row in the run's locale); the parked row's `cardMessage` the same; auto mode's classifier reads the new sentence. (W2) The `dontAsk` refusal of such a call: `… dontAsk permission mode (this call needed approval: tool "Bash" was not shown to be reversible — explicit approval required). …` → `… (this call needed approval: Run outside of the sandbox: this Bash call sets dangerouslyDisableSandbox, so its command would run without the run's OS sandbox restrictions.). …`; a person's no, `approval denied for "Bash": tool "Bash" was not shown …` → `approval denied for "Bash": Run outside of the sandbox: …`; the headless refusal's `What was requested: …` likewise. (W3) A card whose word is another class over a call that sets the escape (a real-approval demand, a hook's ask, an ask rule, a classifier that gave no ruling, an inherited station's card on a child's call): `message` `<the question>` → `Runs outside the sandbox. <the question>` (canonical English; the headline opens with the same row in the run's locale — zh-Hans `这条命令会在沙箱之外运行。`); where auto mode's classifier gave no ruling the question is the escape's own sentence, so that card says it twice: `Runs outside the sandbox. Run outside of the sandbox: …` (#4342); the parked row's `cardMessage` likewise, and the refusal of a person's no (`approval denied for "Bash": Runs outside the sandbox. <the question>`); the `dontAsk` refusal quotes the question without it; the refusal's record keeps the literals the engine's question quotes (the line quotes nothing). (W4) Unchanged: an ask with no escape, the escape's card over a command nothing else asks about (its sentence was already the message), a call outside only because the sandbox lapsed. The catalog row added in this window is renamed before any release: `core/engine.ask-headline-outside` (`Runs outside the sandbox. {{why}}`) → `core/engine.ask-outside-sandbox` (`Runs outside the sandbox. {{rest}}`, zh-Hans `这条命令会在沙箱之外运行。{{rest}}`).
930
+ - **Divergence (open to veto): `sandbox-outside-sentence-on-auto-unruled-card`.** The reference decides by the question's source, sema by the class word. The reference's remote-tools card leaves "Runs outside the sandbox." off the escape's own question (`decisionReason.type` `sandboxOverride`) and off a card its own classifier allowed, which goes to a session that may answer it automatically (`Ws` (cli321.js:304389) "classifierEligible:n.may&&u.may&&!s&&!d", where `s` is a verdict other than allow) — a classifier that gave no ruling leaves the sentence on, as sema does; sema hands a person no card its classifier allowed (inferred: that allow lets the call go). sema leaves the sentence off only where the class word is `sandbox_override`: in auto mode a classifier that gives no ruling on an escaping call takes the word (`classifier_no_ruling`) while the message keeps the escape's own sentence, so that card says it twice — `Runs outside the sandbox. Run outside of the sandbox: …` (measured; the repeat is a defect, #4342).
931
+ - **Widening (open to veto @server).** An approved escape runs its command outside the sandbox. After a lapse under `failIfUnavailable: false` every later command runs unsandboxed rather than being refused one by one (the reference's form). A run whose requirement names `~/` on an environment that states no home starts, and only the start whose boundary needs the home is refused, naming the path (#3925).
932
+ - **Hard-breaking — three, three sentences each (open to veto).** (HB-1, type level) *What changed:* `AskClass` gains `sandbox_override` (between `mode` and `unstated` in `ASK_CLASSES`: the classes an allow rule may clear stay the last ones, which the card's headline reads, #4130), with its `MODE_ARBITRATION` row. *Who is affected:* a switch over `AskClass` ending in a `never` default or a table keyed by it — @client-core's engine fact tables, @cli's card words, @server's card screen (`screenAskClassMembers` and `ASK_CLASSES` are read from the package, so the order moves with it). *What to do:* add the word (the card says the call would run outside the run's OS sandbox) and regenerate tables built from `MODE_ARBITRATION`. (HB-2, mixed version and rollback) *What changed:* a row parked by a run with a sandbox requirement carries `state.commandSandbox`, a member under the new reader-requirement word `command_sandbox`. *Who is affected:* a fleet in which a worker at 7.68.x or earlier and one at this release share a checkpoint store, and a fleet that rolls back from this release to 7.68.x or earlier — the older worker does not know the word, so a resume of such a row (a task parked under a sandbox requirement on this release, or resumed under one and parked again) is refused with `checkpoint.unsupported_version` (`detail.reason: "version_newer"`, `detail.requires: ["command_sandbox"]`; the message opens "This engine cannot resume this checkpoint: it was parked by a newer engine release, whose row this release cannot read" and names `command_sandbox`), a listing marks the row `lacking`, and the row stays pending until a worker at this release or above resumes it (rows parked with no sandbox requirement, and every row an earlier release parked, carry neither). *What to do:* roll every worker that shares a store to this release before any run states `TaskSpec.sandbox` on it, or drain the parked rows first; before a rollback, settle on this release every task still parked under a sandbox requirement, or accept that the older worker refuses those rows until a worker at this release or above takes them up. (HB-3, type level) *What changed:* the seat a shell tool's options carry (`MonitorToolOptions.commandSandbox`, the Bash tool's twin; its type `CommandSandboxSeat`) is an object `{ start(), refused(by, detail) }` — `CommandSandboxSeat` gains the two required members `start` and `refused` — where it was a function returning the start. *Who is affected:* a host that builds `createMonitorTool` / the shell tools itself and hands them a seat (none of server, cli or client-core names the seat on its origin/main; the engine mints it for every run it prepares). *What to do:* hand the seat the engine mints, or an object with both members — `start` answering the start, `refused` returning `undefined` where nothing lapses.
933
+ - **Not changed.** The requirement's reading (S1a's one judge), the manifest's three states, the unavailable notice and refusal of a run that requires a sandbox on a lane without one, the delegated child's floor, the environment contract for a start (`ExecOptions.sandbox`), a `this_call` refusal (it changes nothing but the one start), a run with no `sandbox` (no parameter, no frame, no member on any ask).
934
+ - **Rules.** Added: one plan arm per reading (`unsandboxed` by escape or lapse, `refused`), one ask class, one one-way run cell (the lapse), one told seat (the language / advisor precedent). Retired: prepare's `~/` reading and its whole-run refusal (the plan mint reads it), the seat's own question of what a start carries (`start()` reads the plan), the Notes line's one arm and the head's one text (each now a choice by what keeps the commands). The escape is not a second gate: the plan answers "leaves", the gate's existing allow / ask fold reads it, and the existing arbitration row says who may clear it — an allow member by `ruleMayClear`, an extension's word by that and `hookAskFloor` (`allowMayClearOn`, one reading for the two member kinds; the column the `dontAsk` arm already read, set to its own definition for the escape). The card's two facts ride the existing seats: no rule offer is one more `lane_cannot_speak` door in the one offer factory (the class set the stamp carries; no new word), the outside line one row the one card-words mint (`ask-headline.ts`) reads off the class pair both card faces carry, for the headline and the message alike; the escape's sentence on an ask its word leads is one reading (`classWordsOf`) at the two stations that derive an ask's class word — the gate's origin stamp, an inherited station's judgment (the fold's demoted allow already carried it; no new member, no new closed word); the approved-edit round's class reads the escape off the bytes it judges (the fold's record is the call as made); the inherited stations read the escape off the gate's own plan port (`leavesByEscape`), so the class set of a call no longer depends on which station minted its card.
935
+ - **Reference.** CC 2.1.316: the escape question `cli316.js:273095` (`decisionReason: { type: "sandboxOverride" }`, "Run outside of the sandbox", an explicit rule's decision kept), the parameter `sdk-tools-316.d.ts:849`, the instructions and the parameter-disabled sentence `cli316.js:93022-93038`, the network question's tool name `:272033` (`SandboxNetworkAccess`, a later slice: KNOWN-LIMITS KL-2274-a ④). CC 2.1.321 (#4284–#4286): a hook's allow goes back through the rule check (`cli321.js:288451` `b_s` → `Yx` at `:287879`, which returns the `sandboxOverride` ask) and then the full pipeline; the escape question with no suggestions and an explicit rule's allow kept (`:288718` `gEo`); no standing-rule offer for a call that sets the escape and the "Runs outside the sandbox." line before a card whose reason is not the escape's (`:304389` `Co` / `me`, the row `:282917` `ask.outside_sandbox` — read on the remote-tools card; the terminal dialog's own form not traced). fix1: the line is put on the question handed to the person (`n.onAsk({message: me+…})`, `:304389`; `da` is a plain English table), withheld there where the classifier may answer (`!v`, the divergence above); the escape question over an ordinary ask replaces it (`gEo` `:288718` and the PowerShell twin `:303049`, `replaces: {decisionReason, message, blockedPath}`, message "Run outside of the sandbox"). A required sandbox lost mid-session is refused at execution, after the permission flow (`Dw` `:281087`); the one sandbox refusal ahead of the prompt (`s2e` `:285661`, in `validateInput` at `:288718`) fires only under Windows' strict sandbox mode — KL-2274-d keeps the reference's form.
936
+ - **Pins.** `test/backlog2274-sandbox-s2.test.ts` — #3925 a hands-less run with a `~/` requirement finishes, a lane with no home refuses only that start naming the path · #3926 a resume with no `sandbox` runs the approved Bash in the parked boundary, and the seat it hands its children carries it; a call parked with the escape where no question asked about leaving runs inside on an armed resume · a face that does not offer the parameter ignores it · the schema's two states and the disabled form · the escape's four forms (no rule asked as `sandbox_override` with `commandSandbox: "outside"`, "no" starts nothing, an allow rule, `bypassPermissions`, auto mode), the row, `allowUnsandboxedCommands: false` · `AskRequest.commandSandbox` inside / absent · the violations block with `ignoreViolations`, the unverified note · the lapse three ways · the frame told / not resent / resent on change / gone sentence once, and a restatement reads the sandbox as it stands · the head by isolation, the Notes line's three arms. `test/backlog2274-sandbox-s1.test.ts` re-pinned (the `~/` refusal moved to the plan; the seat reads the plan). Re-pinned for the new class: the five class-set enumerations (`backlog564` classifier-eligible, `backlog1111` / `backlog1423` releasable, `backlog1214` kept-for-a-person, `backlog3620` rule-clearable); `backlog748` compares the policy-only lane with the head that claims no isolation; the prompt goldens refrozen (the head line only). `test/backlog4284-sandbox-ask-parity.test.ts` (#4284–#4286, real Runner) — a hook's allow and a `tool.check` allow beside the escape still put the card (yes runs outside, no starts nothing, asked again on a later run, parked then resumed, a child's at the shared approver), an explicit allow rule still clears it (request list prefix and whole tool, a stored row, with and without a hook), a policy's allow does not, the row, `dontAsk` refuses a hook's ask beside the escape and hands one without it to the approver · the escape card offers no rule and words it `lane_cannot_speak` (live, a later run, the parked row, a child's card) while its headline keeps "Saving an allow rule … would stop it"; a command with no escape still gets its offer; an ask rule keeps `ask_rule_matched` · the outside line on cards led by `policy_rra`, `hook`, `ask_rule`, `classifier_no_ruling` (zh-Hans, parked, a later run, a child's call on the parent's inherited card — one card, yes runs it outside, no starts nothing), not on the escape's own card, not on a card with no escape, not on a call outside only because the sandbox lapsed · the host question's first rule reading (a layer that refuses first and not later answers no, nobody asked) · the network headline names the sandbox's settings · fix1: the escape's own card over a write / under `acceptEdits` / in zh-Hans says the escape's sentence as its message (and a person's no quotes it); the cards led by `policy_rra`, `hook`, `ask_rule` and a child's inherited card open their message with the outside line once; a distinct inherited station's plain ask on an escaped call says the escape's sentence; a person's edit that drops the escape gets the policy's own question, about a call inside, and one that adds it gets the escape's question, about a call outside, still asked (no starts nothing, yes runs it outside); the parked rows' `cardMessage` (both forms); `dontAsk` with nothing, a hook's allow, a `tool.check` allow — the refusal names the escape; controls (no escape; the escape over nothing else); the chokepoint keeps the quoted literals of an engine sentence it opens with the line · KL-2274-d witness pins (asked first then refused at the start: an escaped write, a plain write, under a real-approval demand; with a store the lapsed card offers the exact rule; end to end, the saved rule later clears the escape in a healthy run), and two controls (sandbox working; a lapse under `failIfUnavailable: false`).
937
+ - **Known limits.** KL-2274-a (no admission on the sandbox's strength, `excludedCommands` takes no effect, rules not projected, a host outside the allow list refused rather than asked about, a background / Monitor start's record not read), KL-2274-b (the frame rides a leg's first request; a mid-leg lapse is told on the refusing result), KL-2274-c (an approved edit that adds the escape is not asked about again), KL-2274-d (a run that requires its sandbox, after it stopped working: a call is asked about first — an escaped one as an ordinary question — and then refused at its start, nothing runs; the reference's form, which refuses at execution, `Dw` cli321.js:281087; residual arm: with a rule store wired that card offers the command's exact rule, and a saved one later clears the same escaped command's question in a healthy run — SECURITY-BACKLOG #4330).
938
+ - **Consumers.** @server: the hosted path's lanes that keep a sandbox return `ExecResult.sandbox` from a kept start (violations in the reference's line form); a host lane that is in fact isolated declares `capabilities.isolation` to keep the isolated head; HB-2 for a shared store. @cli: `/sandbox` reads the manifest; the card shows `AskRequest.commandSandbox` and the `sandbox_override` word (HB-1); render the headline and `message` as given (both open with "Runs outside the sandbox." when the word is another class; the escape card's `message` is the escape's sentence — W1–W3 above) and show the escape card with no "don't ask again" choice (`ruleOffersAbsence: "lane_cannot_speak"`, the word's baseline sentence). @server: the parked row carries the same headline, the same `cardMessage` words and the same absent offer; a card screen that rebuilds a headline from the class word alone drops the line — take `headline` and `cardMessage` as minted; a test that pins the escape card's old `message` ("was not shown to be reversible") re-pins to W1. @client-core: regenerate the engine fact tables for the new row (`sandbox_override.hookAskFloor: true`); project `commandSandbox` onto the approval card; the outside line in en and zh-Hans on the headline, canonical on `message` (W3). @test: T1–T7 (T5 discriminates once admission lands; T7 is the refuse-and-report form).
939
+
940
+ ### A parked row this engine refuses says which of two things it is — an earlier release's intact row this release reads differently (`checkpoint.unsupported_version` / `reading_changed`, a new `CheckpointErrorReason`) or a row changed in storage (`checkpoint.invalid_outcome` / `requirements_damaged`) — and every face says one thing about it (#4422; behavior change; hard-breaking: one type member and one wire code change, below, open to veto @server @cli @client-core; closed set +1; the wire `errorCode` of some refused rows changes)
941
+
942
+ - **Before.** One reason, `checkpoint.invalid_outcome` / `requirements_damaged`, answered both "an earlier release parked this row and this release reads one of its members differently" (the row intact) and "this row's content was changed in storage", under one sentence naming both causes and an exit ("a worker of the release that parked it may still resume it") that a deployment's own schema migration closes. Three places said three things about the same refusal: the reason's doc ("all terminal — no worker version redeems a damaged row"), the fixed sentence (another release may), and a background child's rolled-back receipt ("the approval is still pending (retryable)" — the same engine refuses it the same way every time). The receipt's `details.cause` read `decision_rejected` ("correct the decision and resubmit") for every `checkpoint.invalid_outcome`, a refusal of the row itself included.
943
+ - **Now.** One judge (the row judge with the requirement judge) tells the two apart from the row's own bytes. A row whose only differences are reader words it carries undeclared, each carried only by a member whose earlier reading the requirement tables record (`EarlierReading`, 7.68.1), and members this release retired, and whose digest equals its content's under that earlier reading (each retired member back in the digest), is an earlier release's intact row — a tool approval 7.61.0 or 7.62.x parked is one (its input hash rides without `tool_binding`; the table now records that earlier reading of `boundInputHash`, one that never agrees); so is a row of any kind that 7.60.0 parked and that holds `sourceTaskId` (which 7.61.0 renamed `sourceSessionId` with no alias: the table now records the member as retired — a new entry form, `RetiredMember`, beside the word and digest forms — with the reading 7.60.0 gave it, one that never agrees); so is a tool approval below row format v10, whose input hash predates the tool binding and which has no list or digest to judge. A broken list or digest is told first: no input hash makes such a row read as an earlier release's, and a digest that differs under both readings is a row changed in storage. All are refused `damaged` / `checkpoint.unsupported_version` / `reading_changed`, `terminal: false`: "This engine cannot resume this checkpoint: it was parked by an earlier engine release, and this release reads a member the decision binds differently, so the decision would not bind what that release asked. The row is intact and stays pending; nothing was consumed. Cancel it and start the task again. A worker of the release that parked it, if one is still running, can still resume it." Any other mismatch (a word declared and not carried, a word no earlier reading explains, a digest that differs, a member the shape table refuses, a row the judge cannot read) stays `damaged` / `checkpoint.invalid_outcome` / `requirements_damaged`, now `terminal: true`: "This engine cannot resume this checkpoint: its content does not read the way it was recorded when it was parked — it was changed or lost in storage. The checkpoint stays pending and nothing was consumed; cancel it and start the task again."
944
+ - **Old → new, for a reader of these words (open to veto @server @cli @client-core @test).** (1) An approval an earlier engine parked for a tool whose identity names an MCP server, an A2A agent or an external peer (7.66.x and before; the ones 7.68.1 did not read back): `checkpoint.invalid_outcome` / `requirements_damaged` → `checkpoint.unsupported_version` / `reading_changed`. (2) A tool approval 7.61.0 or 7.62.x parked (row format v10, its input hash over the arguments alone, no `tool_binding` word), or one below row format v10: the same change. (2′) A row of any kind that 7.60.0 parked and that holds `sourceTaskId`: the same change. The engine at tag v7.60.0, parking over its file store, resumes such rows (measured: plan review 3 / 3, Write approval 3 / 3, the tool ran once each); the same rows changed in storage — a member a decision reads changed, `sourceTaskId` changed or dropped — stay `requirements_damaged` (pin J13). (3) A row changed in storage: code and reason unchanged, the sentence above replaces "This engine cannot resume this checkpoint: its content does not read the way it was written — it was parked by an earlier engine release whose reading this release changed, or it was changed in storage. The checkpoint stays pending; start the task again (a worker of the release that parked it may still resume it).", `terminal` `true`. (4) The background child's rolled-back lead "parked resume rolled back — the approval is still pending (retryable)" → "parked resume rolled back — the approval is still pending" (the refusal's own sentence still follows). (5) The parked-resume receipt's `details.cause` on a refusal of the row itself — `checkpoint.invalid_outcome` carrying a `reason`, every row-integrity word, `requirements_damaged` among them: `decision_rejected` → absent (the row's word rides `details.detail.reason`); on a refusal carrying a `field`, unchanged (@server: its reader of `cause` is a closed-set narrow read that answers absent as absent, read on its origin/main `src/parked-decide.ts:1197-1210`).
945
+ - **Wire `errorCode` change, the breaking face (@server @cli @client-core).** Rows (1), (2) and (2′) now refuse — at the resume, every decision door and in the listing's `rowVerdict.code` — with `checkpoint.unsupported_version` where they refused with `checkpoint.invalid_outcome`. Readers that branch on these two codes, read on each repository's local origin/main with `git grep -P` (positive control `checkpoint.already_resolved`: hits in both src trees): cli `src/sema/apiErrorSupplement.ts:318`, `src/sema/askParkExpiry.ts:896-906`, `src/sema/askParkPolicyBlock.ts:8` / `:317` / `:327` (the unsupported-version family's copy and its `retriable` read); client-core `src/hitl/decisionConflict.ts:81` (`format_version`) beside `:84` (the row's own family on `checkpoint.invalid_outcome`), `src/checkpointRowVerdict.ts:119-138` (`checkpointRequirementsDamagedOf`, the two causes of `requirements_damaged`) and `:21-23` (its reading that a row whose bound hash digests the arguments alone is `damaged` / `requirements_damaged`), `src/engineErrorCodes.ts:1161-1175` (a `checkpoint.invalid_outcome` with no decision cell read as the row's own refusal), `src/engineErrorCodes.ts:794-841` and `src/gateFailureCodes.ts:14-17` (the refused-park family table), `src/hitl/askParkAutoReopenBlock.ts:11`. @server — a host that settles a refused resume by the refusal's code, and on `checkpoint.unsupported_version` by its `reason`: the new word is `reading_changed`, and a table keyed by every `CheckpointErrorReason` is compile-red at pickup until it places it. Up to this release these rows were refused `checkpoint.invalid_outcome`, which such a host settles on the side where the card is still pending, the run's row parks again and the decision can be retried. The new word is the same situation (refused before the claim, the card pending and byte-identical, nothing consumed) and belongs on that same side; placed on the other — the side a code takes when no worker can redeem the row — the run's row is driven to its end while its card stays pending, so the card is left with no run to resume it. The 409 body's `writerVersion` / `readerVersion` are minted by the server from its resume context; the engine gives neither on this refusal — the row records no writer (`git grep -P` over src: zero hits for either name; the server file is the positive control).
946
+ - **Hard-breaking (open to veto @server @cli @client-core).** *What changed:* `CheckpointRowVerdict` `terminal` is a required `boolean` on its `lacking` and `damaged` arms (on the 7.69.0 line it was `true` or absent; v7.68.1 had no such key). *Who is hurt:* a constructor of the type — a hand-built verdict literal, a fixture, a mock — is compile-red until it states the word; a reader is not. *Compensation:* build verdicts with `judgeCheckpointRow` (or carry the one a listing hands back), never by hand.
947
+ - **`CheckpointRowVerdict.terminal` is a boolean on every verdict that is not `ok`** (type: `true | undefined` → `boolean`, required on `lacking` and `damaged`; a narrowing a consumer can rely on: present exactly when `kind` is not `ok`). `true` = no engine release resumes this row; `false` = this release cannot read it and another can (a newer release, or the one that parked it if it still runs). Both are final on this engine — that fact is `kind`, never `terminal`. A workflow member's `reading_changed` card is therefore not re-parked, starts no run and is answered with its own sentence like any other refused card (#4421, `card_unresumable`); the notice's own `detail.terminal` keeps its `true`-or-absent form.
948
+ - **Not changed.** The mint: every row is byte for byte what v7.68.1 writes, so a rolling upgrade or a rollback adds no mutual refusal. Where and when the refusal is thrown (before the claim; the row stays `pending` and byte-identical). The way out on both: cancel the card and start the task again.
949
+ - **Rules.** One reason with two meanings → two reasons, one meaning each; `checkpoint.invalid_outcome`'s one rule ("its `reason` names a damaged row") holds without exception; the new refusal has one construction whose code is chosen once (`readingChanged`); three statements of a refusal's finality → one table beside its sentence (the verdict's `terminal`); the receipt's cause reads that code's one rule. Added: one reason word, one internal requirement-verdict kind (`earlier`), one requirement-table entry form (`RetiredMember`: a member the row type left, with the reading an earlier engine gave it — the same `EarlierReading` a word member carries, so a member an earlier engine read differently is read back through one mechanism whether it now owes a word or is gone; `gate:checkpoint-classes` reads the form as the class `retired`, and a retired member joining the table is red unless a `checkpoint-class-change:` line names it). The row 7.60.0 parked is read by that mechanism, not by a shape test: "row format v10 and `sourceTaskId` present" holds for those rows and for the same rows changed in storage alike (measured, pin J13), while the digest under 7.60.0's reading holds for the first only. Known limits: KL-4422-b (three storage changes read `reading_changed`: one that drops exactly that one word, one to an approval below row format v10, which carries no digest to tell it by, and a v10 row storage cut down to that shape), KL-4422-c (`skill_grants_damaged` keeps its two-cause sentence). Closed before release: the line's own KL-4422-a (a row that 7.60.0 parked and that holds `sourceTaskId` read `requirements_damaged` / `terminal: true` though a 7.60.0 worker resumes it).
950
+ - checkpoint-class-change: `pendingAction.tool_approval.boundInputHash` — gains an earlier reading that never agrees, so no row reads ok that did not; a v10 tool approval 7.61.0 or 7.62.x parked, intact, is refused `checkpoint.unsupported_version` / `reading_changed` (`terminal: false`) where v7.68.1 refused it `checkpoint.invalid_outcome` / `requirements_damaged`; an operator does nothing first (the row stays pending, a worker of the release that parked it can still resume it).
951
+ - checkpoint-class-change: `sourceTaskId` — joins the table retired, with the reading 7.60.0 gave it, which never agrees; a row of any kind that 7.60.0 parked and that holds `sourceTaskId`, intact, is refused `checkpoint.unsupported_version` / `reading_changed` (`terminal: false`) where v7.68.1 refused it `checkpoint.invalid_outcome` / `requirements_damaged`; no row reads ok that did not, and an operator does nothing first.
952
+ - **Exports.** No name added or removed (`handoff:diff` over this change: 0 / 0 / 0). `CheckpointErrorReason` +`reading_changed` (39 words). `CheckpointRowVerdict.terminal` `true | undefined` → `boolean`. `resumeStartupCauseOf(code, refusal?)` gains an optional second parameter, the refusal's own members (`resumeRefusalDetailOf`): a caller that passes none reads as before. `docs/CLOSED-SETS.md`: the reason bullet, the `checkpoint.unsupported_version` mint-obligation floor 6 → 7, the `ResumeStartupCause` bullet.
953
+ - **Pins.** `test/backlog4422-row-refusal-reasons.test.ts` — J1–J12 (real v7.66.1 MCP rows, the v7.62.0 Write row, the v7.60.0 approval row; the same rows changed in storage; a v10 approval whose list storage removed, turned into a string or cut of a word no earlier reading explains; a row below v10; every non-`ok` verdict carries a boolean `terminal`), J13 (rows the engine at tag v7.60.0 parked over its file store — `test/fixtures/backlog4422-v7600-file-rows.json`, provenance and that engine's own readings inside: three plan reviews and three Write approvals read `reading_changed`, twelve storage changes of them `requirements_damaged`; "v10 and `sourceTaskId` present" holds for both sides; a Runner refuses both cards before the claim, nothing asked or run), KB1–KB3 (the three forms of KL-4422-b, pinned as known), L1 (the listing), E (Bash and MCP on a Runner, a background child and a workflow member from the v7.66.1 stores, the workflow continuation lane three rounds — each × both causes), E-bg-cause / E-bg-lead (the receipt), U1–U3 (the previous release parks, this one resumes). Re-pinned to the new words: backlog4424 (M, H2, H3a, H4, H7 / H8), backlog3265 (P0, P1, P3 with a `reading_changed` arm, P5), backlog3265-fix1, backlog3212 P5 (i) and backlog3265 P1 (the v7.60.0 approval rows: `reading_changed`), backlog4436 E4 / E6 (the gate's refusal names the `retired` form) with E6r / J6r / S2r (the form, a retired member joining the table, the snapshot's reading of it), backlog3302 B4, backlog2726 U1–U4, backlog3799-3800, durable-ask-answer-feedback, backlog4390-fix1 E1-elsewhere (now a card an earlier release parked: `reading_changed`, `terminal: false`), backlog3613 (the union counts 39), backlog1023 (the faces that carry the verdict), and the verdict-shape cells of backlog3277 / 3364 / 3383 / 3411 / 3412 / 3697.
954
+
955
+ ### Messages a person sends while a run works are all read at the next boundary — each its own message, in queue order — instead of one per model call (#4524, closes #1295; C-R1971 ①, C-R1971 note 1 and note 2, C-R215 ①; behavior change on every lane, `oneShot` runs included; hard-breaking: none; narrowing: none; widening: none; closed sets: none; exports: none; wire: none — several `applied` frames now arrive back to back for one boundary; divergence: none added — two differences from the reference this change leaves standing are named below and ticketed, #4527 / #4528) (@client-core @cli @server @test)
956
+
957
+ - **Rule.** A turn boundary takes every frame queued on the steer lane, in queue order: each `next` / `now` steer accepted since the last boundary, and every task notification queued between them, reach the next request — each steer its own user message in its own mid-turn frame, after the batch's tool results. Queue order is arrival order, except that a `now` steer takes the head on acceptance (as before: ahead of `next` frames, first-come among `now` frames) — so `next` A then `now` B reach the request as B, A and their `applied` frames say B, A while their `queued` frames said A, B (pinned, P13). The reference folds every queued `now` / `next` command after a tool batch in one pass, one `queued_command` message each, in queue order (cli321.js L293775, L285114, L288282, L288998–289000). `later` steers keep the follow-up lane (one per closing turn, never with a boundary's batch); engine advisories keep their rules (they ride what the drain takes, and are held where the turn's work owes no request); a frame whose answer is already given still drains alone.
958
+ - **Before (measured, real Runner over a scripted model, base `cdc1d2fd6`).** Two steers sent while one tool batch ran: the first at the next call, the second one call later; three: one per call (calls 1, 2, 3); thirty: one per call (first seen at calls 1–30; the turn count changes where the run would stop, reading (1) below). A person's message then a task notification: two boundaries; person, notification, person: three. A run that ended on the boundary after the batch (turn limit): the second steer stranded — `task.user_steer_undrained` (`steer: 1`, `cause: "leg_end"`), and the next run of the session did not see it. Same on a `oneShot` run (no approval face).
959
+ - **Now (measured, same cells).** All of them at the next call: two / three / thirty separate user messages in arrival order, `applied` frames in the order of their `queued` frames; person, notification, person in one request in that order; the turn-limit case strands nothing. A message accepted after a boundary's drain still waits for the next boundary (or, if the run ends first, is announced as before).
960
+ - **Behavior change (@client-core @cli @server).** (1) Several `applied` `human_input` frames arrive for one boundary, back to back, and the notification row's `message_committed` can sit between two of them (its `task_notification` frame was pushed when it was accepted) — a re-delivery list or a renderer that assumed one steer per model call reads them as one batch now. Pins of the old form go red in three places: "the second message reaches the next call", "`task.user_steer_undrained` at the turn limit right after the batch", and "`k` queued messages where the run would stop end the run `failed` with `limits.max_turns_exceeded`". (2) A task notification queued behind a person's steer reaches the model one boundary earlier than before (it used to wait behind the steer's own call). (3) **The non-interactive lane changes too** (`oneShot`, no approval face, `-p` / stream-json input): it drains the same way. This retires the arrangement recorded on #1295 (a `TaskSpec` seat, the library default kept one-at-a-time, the interactive lanes opting in): there is no seat — one form on every lane, the reference's. cli (interactive / `-p` / resident stream-json) and server (background, A2A, synchronous, resume, workflow-member and child legs) both answered that nothing depends on one-at-a-time (both read code, not run); the terminal's `mode` member on its steer request is accepted and not used by server for at least one version.
961
+ - **Known limit, worse than before on one path (KL-4524-d).** When the request carrying a batch is refused as too long, the compaction that answers it keeps only the batch's last message verbatim — every person's row is a cut point and the floor is the last one — so the others reach the retry only through the summary input (measured on the retry request: three messages → the third alone, two in the summary input; thirty → the last alone, twenty-nine in the summary input). Base delivered one message per boundary, so its retry carried that one verbatim and the rest arrived verbatim at later boundaries. The reference keeps the last message group whole — a group opens at a new assistant message, `J4` (cli321.js:286704), and the reactive pass keeps the last one by default, `MMe` (cli321.js:286978). A floor that never lands inside a run of user rows fixes this cell but moves the budget law on every pass (a history of consecutive user rows can no longer be cut inside, nine existing compaction pins go red), so the reference's grouped form is a design ticket for 7.70.0 (#4549), not done here. What a person sees: when the context is nearly full, all but the last of several messages sent in a row may be folded into the summary — the model still reads what they said, but no longer as "a new message you just sent".
962
+ - **Readings that change (base / head, measured; for hosts that count turns or anchor rows).** (1) A run that would stop on text while `k` person's messages are queued: base runs `k` more turns (one per message), head one — `k = 3`: 4 model calls → 2; with `maxTurns: 2` at that edge the ending changes: base `failed` (`limits.max_turns_exceeded`, two messages stranded) → head `completed`, none stranded. (2) The engine has no "last row before the first output" anchor: the file-history boundary stays first-wins on the run's first committed person's row (unchanged); messages queued before a run's first output reach it at the first boundary, which reading (1) measures — head takes all three queued messages in one continuation turn, base one per turn. A host that anchors on the last user row before an assistant row reads the last message of the batch now (it can be a notification). (3) A `next` notification queued behind a person's message: its `task_notification` frame is pushed at the same moment on both (after the first model call), and the model reads it one boundary earlier on head (call 1, base call 2).
963
+ - **No per-call mode.** The engine's steer face has no `mode` option (`TaskStream.steer`, `WorkflowAgentHandle.steer`, a delegated child's handle, `setPendingSteer`). Steer options do not refuse unknown members: a call carrying `mode` is accepted and the member is not read (measured: three steers carrying `mode: "one-at-a-time"` are accepted and read at one boundary).
964
+ - **The undrained account precedes `done` (contract, pinned).** Every `leg_end` row of `task.user_steer_undrained` / `task.user_followup_undrained` reaches `RunnerDeps.onNotice` before the leg's stream pushes `done` — measured on four endings: turn limit, `interrupt()`, `halt()`, a model failure (and read: a durable pause's deferred settlement closes before the result is published). Not covered: the `crashed` row (the serving layer's, before the session's next run); a notice raised while the same `onNotice` seat is already delivering (written to the process log); and two failure endings that never reach the account — a leg that fails after it began taking input but before its loop started (the turn-state build), and a leg whose session writes fail at its end (the account runs after the leg's last flush of queued session writes): an input accepted then gets no row at all — existing gaps, recorded as KL-4524-b, not changed here. The wire order is the serving layer's half: write a notice when `onNotice` hands it, frames as the stream yields them. `docs/INTEGRATION-CORE.md` states it.
965
+ - **Not changed.** The follow-up lane and the `later` tier, the engine-note backlog cap, the human-halt hold, the abort latch and the in-flight account, the `now` class head and its turn cut, the frame text (`personSteerFrame`), the resume leg (it already reads every parked entry in one request in `seq` order, one frame each — pinned), every code and wire member.
966
+ - **Still different from the reference (not changed here; ticketed, 7.70.0, direction = follow the reference).** (1) The seat where a run would otherwise stop still takes one message at a time: `k` messages queued there (the follow-up lane: `later` steers) cost `k` closing turns, where the reference's queue processor takes the queued commands of one mode as one batch when a turn ends (read: cli321.js L312128 `tRt`, `dequeueAllMatching` over the main-thread queue, not filtered by priority; the print / SDK lane is kicked from L312524 `DI` / `II` — its take itself not read, inferred to be the same) → #4527. (2) Inside one boundary a `now` steer is read before messages that arrived earlier, because it is inserted at the queue's class head; the reference folds in queue order — `enqueue` appends (`ahead` only for re-queued commands) and `promoteToNow` changes the priority in place without moving it (read: L285113 `Ks` / `nr` / `Cn`, L285114 `du`); its `now` only interrupts the running turn (L312524 `OI`) → #4528.
967
+ - **Rules.** Steer-lane selection rules 3 → 1: "a person's frame drains alone", "a person's frame behind notifications stops their batch" and "notifications batch with each other" became "take every drainable frame in queue order"; nothing added.
968
+ - **Internal cleanup (not package surface, not breaking).** The engine harness's internal `steeringMode` option and its `getSteeringMode` / `setSteeringMode` methods are removed: the harness is exported from neither the package root nor a subpath, the export-surface snapshot never listed them, no `TaskSpec` / `RunnerDeps` member reached them, and nothing set them.
969
+ - **Pins.** `test/backlog4524-steers-drain-all.test.ts` — P1 two steers in one batch: two messages at the next call, after the tool result, `applied` in order · P2 three steers: three messages, exactly three `applied` · P3 / P3b person + notification (+ person): one boundary, arrival order · P4 a `later` steer is not taken with them · P5 two `later` steers keep one closing turn each · P6 thirty in order · P7 messages landing in the batch's microtask tail and the next macrotasks: each delivered once, in acceptance order, none stranded · P8 `oneShot` · P9 the turn-limit case strands nothing · P10 resume leg · P12 a stray `mode` member changes nothing · P13 a `now` steer keeps its class head inside the batch · E1 / E2 engine advisories ride where a request is owed and are held where none is · N (four endings) the undrained notice precedes `done` and names only the message the model never read (count and input id) · R12 / R13 one continuation turn takes all queued messages where the run would stop, and the turn-limit edge completes; P1 / P2 / P6 read the run's last request too (each message exactly once) with markers out of text order; a mutation per pin (`.gate-logs/mutations-4524.md` in the car tree).
970
+
971
+ ### The engine's capability set states that a file the user attaches by path is an access for the instruction-file lane — `user_attachments.instruction_access` joins `ENGINE_CAPABILITIES`, so a host that loads a mentioned directory's CLAUDE.md itself can stop, per mention, and leave the engine the one reader (#4536; behavior change: none; narrowing: none; widening: none; hard-breaking: none for a consumer that gates on a word, one for a consumer that pins the whole set (it reads one more member); closed sets: `EngineCapability` +1 member; exports: none; wire: none) (@server @cli @client-core @test)
972
+
973
+ - **Now.** `ENGINE_CAPABILITIES` (`src/core/engine-capabilities.ts`) carries an eighth word, `user_attachments.instruction_access`. What it states is already true (the engine has handed an attachment's read key to the instruction-file lane's load since the lane shipped); the word lets a host read it instead of a version. Measured on a real Runner over real files, under the server's family declaration (`files` + `alternate`), counting the copies of `sub/CLAUDE.md` in the first request and in the one after the model reads `sub/x.ts`: a `path` attachment of `sub/a.txt` — 1 then 1 (the lane's frame rides the first request, after the attachment's frame); `sub/CLAUDE.md` itself attached by path — 1 then 1 (no lane frame names it); the root's `CLAUDE.md` attached by path — 1 (no root frame beside it); a `path` attachment a read rule refuses, or one of a directory — 0 then 1; a `content_text` entry named `sub/a.txt` — 0 then 1; `sub/CLAUDE.md` sent as a `content_text` entry — 1 then 2; the form a terminal sends today (the mention and a bare reminder carrying `sub/CLAUDE.md` spliced into the objective text) — 1 then 2.
974
+ - **Not promised.** A host-held entry (`content_text`, `content_image`) is no access and stands for no file: an instruction file the host sends as text is sent as given, and the lane loads the same file as it would without it — the root's `CLAUDE.md` on that same request (2 copies at once), a member below the root at the run's first access in its directory (the 1 then 2 above). A host that moves its mentions to host-held text keeps two copies. "Owed from the request that carries it" is within the lane's per-load bounds: what one load's probe and frame bounds defer (a very deep path, a large family) rides the next request.
975
+ - **Open to veto — hard-breaking: none; the one break is a pin of the whole set (@server @cli @client-core).** A consumer that gates on a word reads the new one and nothing else changes. A consumer that pins `ENGINE_CAPABILITIES` or `EngineCapability` as a whole sees one more member: this repository's equality pin (`test/backlog1754-held-values.test.ts` V7) took it; `docs/CLOSED-SETS.md` registers it. @server: the facts table `ENGINE_CAPABILITY_FACTS` (`src/capabilities/engine-capabilities.ts`) is typed over `EngineCapability`, so taking this version needs one row before it compiles; the server hands `userAttachments` to the engine unchanged, so the engine half holds on every run it serves.
976
+ - **Consumers.** @cli @client-core: stop the host's own instruction-file load per mention, only for a mention of a text file or a notebook sent as a `path` entry to an engine that carries the word (the seat admitting a `path` entry for that lane is the other half); every other mention keeps today's arm — an image, a PDF or a directory sent as a `path` entry is no access, so the host's own load stays for those. Where the run's tools are not on the terminal's machine (the terminal can only send the mentioned file as host-held text), the terminal's own load does not run today (the terminal's account), so nothing changes there: that directory's instruction file comes from the engine when the run first accesses the directory. @test: the cells above are the criteria — a terminal that sends `@sub/a.txt` as a `path` entry reads 1 and 1; a 2 after the Read means the host still loads its own copy.
977
+ - **Rules.** Added: one word, stated in the headed comment where the other seven are, in `docs/CLOSED-SETS.md` (the `EngineCapability` row: eight members) and in the integration guide (§7.1, and its capability-words paragraph). Retired: none. The lane's behaviour is unchanged.
978
+ - **Pins.** `test/backlog4536-attachment-instruction-copies.test.ts` — C1 / C1b / C1r / C1d / C2 / C3 / C5p / C5t / C5r (the readings above; C5p and C5r also find no lane frame naming the attached member, even one the request cut to its "not repeated" sentence) and W1 (the word on the root export, frozen, newest); per-fixture mutations in the car tree's `.gate-logs/mutations-4536.md` (the attachment's read key withheld from the first load reds C1 and C5r; an attachment's entry read as no access reds C1b; the attached-member skip removed reds C5p and C5r). `test/backlog1754-held-values.test.ts` V7 (the whole set, eight members); `test/backlog1753-own-credentials-withheld.test.ts` W9 (the registered members equal the array, unchanged).
979
+
980
+ ### The verification gate's verifier leg reads the project's instruction files like the work leg: it inherits the caller's `instructionFamily` and `projectMemory: "disabled"` through the parent spec seat, as every other engine-built child does (#4540; behavior change: the verifier leg of `runWithVerification` / `resumeWithVerification` / `verifyCompleted` starts reading the project's instruction files — its request carries one more frame, and its verdict can move with the project's own rules; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none added, none removed; wire: the verifier leg's `wiring_manifest.projectMemory` reads `on` / `disabled` where it read `absent`, and `instructions.selected` lists the root's file; @server @test)
981
+
982
+ - **Before (measured, real Runner over a scripted model, a project root with a CLAUDE.md).** `TaskSpec.instructionFamily` is documented as inherited by every engine-built child (omitted ⇒ the parent's; `projectMemory: "disabled"` silences it), but the verifier leg's spec was spelled member by member inside the gate and named neither. On a run that declared the family, the work leg read the file and the verifier leg's request did not carry it; each verifier leg's prepare then raised `instructions.family_undeclared` (the notice that names the deployment's own `instructionFamily` as absent; told once per notice receiver as ever, so a host heard it from the first verifier leg the process ran — the pin clears that record between legs to hear every leg) — and raised it too when the caller had switched the project's instructions off on purpose. The gate's fix leg and a repair loop's / goal's later legs were already the caller's whole spec and read the family.
983
+ - **Now.** The gate hands the verifier leg the two members through `parentSpecSeatOf` / `applyParentSpecSeat` — the one law the delegation lanes use: the caller's declaration when the leg states none, the caller's off switch silencing it. The verifier reads the root's level (and an alternate-file project reads its alternate) on every round; a run that declared the family hears no `family_undeclared` from any of its legs; under `projectMemory: "disabled"` no leg reads the family and none says it is undeclared. A caller that declared no family changes nothing.
984
+ - **What moves, and where it is read.** A verdict can now depend on what the project's instruction files say (a convention the work broke can be a finding); the verifier's request is longer by the root's instruction frames (read under the Read tool's own admission on the leg's read-only hands); the leg's `wiring_manifest` (offered through `RunInternals.onLegFrame` with `at.leg.kind: "verifier"`) says `projectMemory: "on"` and lists `instructions.selected`. Its tool roster and system prompt are the same as before.
985
+ - **Not changed.** The verifier's hands, roster, fence, posture and headless seats; the fix leg, repair-loop and goal legs (read the family before and after); every other member of the parent spec seat (`additionalDirectories`, `mods`, `advisorModel`, `compaction`, `sandbox`, …), which the verifier leg still does not take.
986
+ - **Rules.** One inheritance law for the family (`applyParentSpecSeat`); no verifier-specific key and no copy of the family beside the seat.
987
+ - **Pins.** `test/backlog4540-verifier-family.test.ts` — V1 the verifier reads the file on each round; V2–V4 controls for the fix leg, a repair attempt and a goal iteration; V5 no leg says the family is undeclared; V6 the off switch silences every leg and the notice; V7 `verifyCompleted` over a held result; V8 the alternate-file project; V9 no declaration, nothing invented; V10 tool roster and system prompt unchanged; V11 the manifest word each leg reports.
988
+ - **Consumers.** @server (#4540): on a deployment that declares the family, the verifier no longer says `instructions.family_undeclared`; a verification judgement can now follow the project's own instruction files, and a verifier request is longer by those frames. @test: black-box cell — the verifier's request carries the project's instruction-file text (and carries none under `projectMemory: "disabled"`).
989
+
990
+ ### An instruction file the engine finds by itself — a rules directory's file, the file an `@` include names — is read only where it really lies inside the root it was found under or the task root, on every read face; an include it drops is told once, naming the file that included it; the family's rules directories are a list, `rulesDirs`, every one read in the order written (#4538; hard-breaking: `instructionFamily.rulesDir` / `alternate.rulesDir` retired, @server; narrowing: two, open to veto @server; widening: two, open to veto @server; closed set: `INSTRUCTIONS_WITHHELD_REASONS` +`outside_its_root` @server @cli @client-core @test; new arrivals of `instructions.withheld` @cli @client-core @test)
991
+
992
+ - **Rule.** A file the instruction-file lane FOUND (listed in a declared rules directory, or named by an `@` include of a file it read) is read only when its resolved key (links followed) lies inside the root it was found under or inside the task root — a task-root file inside the task root; a file of an additional working directory (under `additionalDirectories: true`) inside that directory or the task root, never inside another additional directory — judged by the same comparison the Read tool's `roots` face makes (`withinAnyRoot`), whatever the run's read face. An include is placed where its spelling lands through the path readers' one anchor-and-fold (`lexicalViewOf`: relative ⇒ against the directory the including file really is in; `~/` ⇒ under `ExecutionEnv.homeDir`; fully qualified as written), then probed and judged like any found file. A member the family names (`files`, `alternate.files`) is judged by the Read admission alone, as before; an include refused for lying outside its root and the task root gives back the declared member it stood in for in the queue (the same path read under a later level), which is then judged as itself.
993
+ - **Hard-breaking — `rulesDirs` (@server, the one declaring host, at its request).** *What changed:* `TaskSpec.instructionFamily.rulesDir: string` and `alternate.rulesDir: string` — members of the public type `InstructionFamilyDeclaration` — are retired; the family takes `rulesDirs: readonly string[]` and `alternate.rulesDirs: readonly string[]` — every directory listed is read at each level, in the order written (`[".sema/rules", ".claude/rules"]` reads both, `.sema/rules` first), under the names' law of `files` (one to eight relative names in each list — `rulesDirs` up to eight, `alternate.rulesDirs` up to eight — none repeated and no case twin across the two families' lists). *Who is hurt:* a declaration still writing `rulesDir` is refused by name before any model call — `config.spec_retired_key`, `TaskSpec.instructionFamily.rulesDir is retired and is not read by this engine — the rules directories are one list now — write \`rulesDirs: [".claude/rules"]\` …` (`alternate.rulesDir` the same, with its own path); a `rulesDirs` of the wrong shape is the family door's `config.invalid_argument` (`TaskSpec.instructionFamily.rulesDirs …`) — two codes, two causes: the old key vs a bad value of the new one (a `rulesDir` written out with the value `undefined` holds no retired value and is a stray member of the family: `config.invalid_argument`, pointing at `rulesDirs`; `null` is a value and takes the retired-key door). *Upgrade order:* a 7.68 engine refuses `rulesDirs` (a member it does not know, `config.invalid_argument`) and a 7.69 engine refuses `rulesDir` — no declaration passes both, so the host and the engine switch in the same release. *Compensation:* write the one directory as a one-entry list. The second family's directories still go with the second family (`when: "absent"` reads them only where the task root holds no member of `files`). A rule of the same name in two directories is two files (each read once); one real file reached through both directories is read once. The probe budget and the in-level order are unchanged (each directory is one listing, queued in the order written).
994
+ - **Before (measured, real Runner over real files, `test/backlog4538-includes-in-root.test.ts`, base `00b8c3c65`).** On an `open` read face an include spelled inside the root that links outside it was READ into the request, and so was a rules-directory file (or a whole rules directory) that links outside; on a `roots` face the same files were withheld. An include spelled outside the root (`../x`, `~/x`, an absolute path) or named by a file outside it was dropped before any judgment, silently — no notice, no operator line — and so was an include whose `..` climbs out of the root and comes back inside it (`@../proj/docs/x.md`; one whose `..` stays inside the root, `@./docs/../docs/x.md`, was read).
995
+ - **Now.** None of those outside files is read on either face; each is told once per session to the notice receiver: `instructions.withheld`, `detail.reason: "outside_its_root"` — a new reason word, the same on both faces (on `roots` the read roots' refusal of a found file is told as this fact too: outside every read root is outside its own root and the task root). An include's sentence names its includer and the `@` path as written: `An instruction file that <including file> includes (\`@<as written>\`) was not loaded: <path> (its real location, links followed, is under neither the root directory it was found in nor the task root).` — a rules file's: `An instruction file of the task root was not loaded: <path> (its real location, links followed, is under neither the root directory it was found in nor the task root).` A member the family names that the read roots refuse keeps `outside_roots` and its sentence (`… (it resolves outside the directories the run may read).`). A `~/` include in an environment that declares no home is told `admission_unknown`. A missing include is still said to nobody (the reference's silence). A delegated leg records and says nothing, as before. An include whose spelling leaves the root but which really lands inside it (or, for an additional directory's file, inside the task root) is now read (widening 1, below).
996
+ - **The three things a host asked to be told, against the code.** (1) A dropped include IS told — once, `instructions.withheld`, `detail.reason: "outside_its_root"` whether its spelling or its real location leaves its root and the task root (`admission_unknown` for a `~/` spelling with no declared home); a missing one is not. (2) The de-duplication unit is unchanged: once per session per `(path, reason)` (the lane's announce digest over the leg's advisory ledger, `nested-memory-lane.ts` `once`) — not per receiver; one outside file named by two includes over two runs of one session is told once (pin I9); a file told as an include and later refused by the read roots as a named member is two reasons, two notices (pin C2). (3) No new code and no new `detail` member; ONE new reason word, `outside_its_root` (below).
997
+ - **Closed set +1 (@server @cli @client-core @test).** `INSTRUCTIONS_WITHHELD_REASONS` (root export, value) gains `outside_its_root`, appended last; `InstructionsWithheldReason` (root export, type, derived from it) gains the word — an exhaustive `switch` / `Record<InstructionsWithheldReason, …>` over the reason no longer compiles until it has the arm. Its meaning: a file the lane found (a rules directory's, an include's) whose real location, links followed, is under neither the root directory it was found in nor the task root (its sentence says so: `… is under neither the root directory it was found in nor the task root`). `outside_roots` keeps its meaning: the read face's roots refused a file (now only a member the family names). The approval seat that will let a host lift `outside_its_root` for includes is #4536 (7.70.0); the word stays.
998
+ - **Narrowing: two (open to veto @server).** (1) On a deployment with an `open` read face (server's single-user and isolated lanes) that declares `includes` or `rulesDirs`: an include, a rules file or a whole rules directory that is a link leading out of both its root and the task root is no longer read (pins I3, R4, R5, R6, A1). (2) On both faces: a found file that links into a directory the run may read that is neither the root it was found under nor the task root is no longer read — the same shape as the reference, which follows only what lies in its working directory. In plain terms: a file of an additional working directory that links into another additional working directory (pin K13c); a task-root file that links into an additional working directory, whether or not the family reads additional directories (pin A2); a task-root file that links into an `additionalReadDirectories` entry; a task-root file that links into the rest of an additional working directory that holds the task root; and a link into any other directory the run may read without it being a root of the lane — the scratchpad, the memory root, a directory granted during the run (read from the code, `prepare-hands-readface.ts` assembles them into the read roots; not measured one by one). Nothing else that was read stops being read (a found file the base read lay where the read face admitted it; the head drops it only when it lies outside both its root and the task root, which is (1) on `open` and (2) on `roots`); the named members (`CLAUDE.md` / `AGENTS.md` themselves, at the root or below) are unchanged on both faces — a root `CLAUDE.md` that links outside the root is still read on `open` and withheld on `roots` (pins N1, N2).
999
+ - **Widening: two (open to veto @server).** (1) An include whose spelling leaves the root it was found under but which really lands inside it — or, for an additional working directory's file, inside the task root — is now read on both faces, where it was dropped by its spelling: a `..` that climbs out and comes back (`@../proj/docs/x.md`, pin I7; from an additional directory inside the task root, `@../../shared/x.md`, pin K13b), an absolute path from an additional directory into the task root (pin K13), a `~/` path when the environment's home lies inside the root (pin H1). For an additional working directory's file this reverses what 7.68.0 shipped under #3944 ("its includes stay inside it"): a file of the task root that it includes was not read and is now read — the same file the model's own Read reaches, still under the Read admission (pin `test/backlog3944-additional-roots-lane.test.ts` G11, re-pinned: into that directory and into the task root followed, into a third directory not, told `outside_its_root`). (2) The includes of a named member that itself links outside the root (read on `open`) are judged where they land: one that lands back inside the root is now read, where the base followed no include of an includer outside the root (pin N3).
1000
+ - **The reference.** Claude Code 2.1.321 (`cli321.js` line 285683): `rq` follows an include only where its realpath lies inside the working directory (`h>0&&!Y&&!UW(ne)`), depth < 5 (`tan`, `tdo=5`), a missing one silently (`NQe` → `Qin`); the rules walk `nTe` recurses and skips a listed file resolving outside (`Lo&&!He`); the depth-0 project member is not judged for containment; the include line stays in its file's text. Divergences listed for the ruling book: the engine tells what it drops (the reference is silent unless its approval dialog runs); an additional working directory's found files are followed where they lie inside that directory or the task root (the reference's `UW` is the working directory only: the task-root half is the reference's reading, the additional-directory half is wider); no approval seat for outside includes (the reference's project-config `hasClaudeMdExternalIncludesApproved`, default false) — #4536.
1001
+ - **Rules.** Retired: the four spelling drops of an include (`~/`, a `..` above the root, an absolute path outside it, an includer outside it), the include resolver that walked segments below the root (`resolveRel`), and the single-directory member with its `filter(undefined)` reads (two sites). Added: one judgment — a found file lies inside its root or the task root — read off the resolved key, its give-back of a displaced declared member, and the arm for a `~/` include in an environment that declares no home (told `admission_unknown`); the rules directories read as the lists they always were inside the lane.
1002
+ - **Pins.** `test/backlog4538-includes-in-root.test.ts` — I1–I10 (includes), R1–R6 (rules directory), A1–A2 / K13 / K13b / K13c / H1 (additional working directory, the task-root half, the negative control, a home inside the root), W1 (the catalog sentence), C1–C2 (a refused include never takes a declared member's place), N1–N3 (named members, unchanged), D1–D5 (`rulesDirs`: order, same name, one real file, the door, the retired key), S4 / Q1–Q3 (readings); re-pinned `rulesDir` → `rulesDirs` in `backlog3889` / `3914` / `3944` / `4055-4056` / `4189`; per-fixture mutations in the car tree's `.gate-logs/mutations-4538.md`.
1003
+ - **Consumers.** @server: declare `rulesDirs` (and `includes: true`) on the family from the version that takes 7.69.0 — a declaration still writing `rulesDir` refuses every run (above); on `open` faces the narrowing above is the disclosure. @cli @client-core: `instructions.withheld` gains arrivals for dropped includes and found files (code and `detail` members unchanged; reason `outside_its_root`; the sentence shapes above) — a renderer keyed on the reason needs the new arm; the operator sentence `instructions.family_undeclared` names `rulesDirs` (and `additionalDirectories`, which it had left out) among the family's members. @test: per cell — is the file's body in the request, the notice's code / `detail.reason` / sentence, how many times; the old key's refusal code.
1004
+ - **Exports / wire.** No root export added or removed; the public type `InstructionFamilyDeclaration` changes shape (`rulesDir?: string` → `rulesDirs?: readonly string[]`, the same on `alternate`); `INSTRUCTIONS_WITHHELD_REASONS` / `InstructionsWithheldReason` +`outside_its_root`. Wire: the `instructions.withheld` notice's `detail.reason` takes the new word.
1005
+
1006
+ ### A host can ask, before it writes anything, whether a fresh run would be refused before its session is acquired — `Runner.judgeTaskStart`; a `path` attachment on a Runner with no workspace is refused before the acquire; every `config.user_attachment_invalid` names its reason (#4525; additive; behavior change: on a Runner with neither factory nor static env, a request with a `path` attachment and a second fault that sits between the acquire and the env mint (the session store's own failures included) now ends on the attachment refusal, below, open to veto; the model gate's notice is no longer sent for a run a later door refuses; the `config.interaction_wiring` sentence describes a value instead of quoting it; hard-breaking: none; narrowing: none; widening: none; closed sets: `USER_ATTACHMENT_INVALID_REASONS` new; exports: +`TaskStartVerdict`, +`USER_ATTACHMENT_INVALID_REASONS`, +`UserAttachmentInvalidReason`, +`UserAttachmentRefusalDetail`, +`UserAttachmentFieldRef`; wire: `detail.reason` on `config.user_attachment_invalid`) (@server @cli @client-core @test)
1007
+
1008
+ - **Rule.** The doors prepare passes before it acquires the session are ONE synchronous function (`taskStartDoors`, `src/core/runner/task-start-doors.ts`) with two callers: prepare enters it first and reads what it hands back, and `runner.judgeTaskStart(spec, internals?)` enters it over the deps and session store that Runner holds (after the reads `runTaskStream` makes before prepare) and answers its first throw through the projection the run's `failed` terminal is minted with (`thrownFailureOf`). Same doors, same order, same code / sentence / `detail`. The fresh-leg twin of `judgeResumeConfig`.
1009
+ - **Before.** A refusal that needs only the request and the Runner's seats (an attachment with no workspace, an output style that does not read, an unknown role, a rewind with no history store, …) was met only by starting the run: a host that claims a run row / binds an idempotency key / sends a stream head first answered 202 and filed a `failed` row, or answered 200 and closed on a `failed` frame.
1010
+ - **Now.** `judgeTaskStart` answers `{ ok: true }` or `{ ok: false, code?, message, detail? }` — the run's own `failed` terminal (`code` is absent only where the run's failure has none: a model object whose `reasoning` / `input` has the wrong shape or a host `withAgents` that throws an uncoded error — the deployment's assembly — and a `tools` list holding `null`, an uncoded throw the released engine ends on the same way). What the entry's spec reads throw synchronously at the call — a spec that is no object, an `actor` the attribution snapshot cannot read (`null`, an `id` accessor that throws) — it throws the same way: the run and the judge take them through one function (`readEntrySpec`). Not asked: the entry's door on the internals bag (KL-4525-c: a retired member such as `onStatusEvent`, the `onLegFrame` seat, a bag that is no object), which `runTaskStream` throws at the call where the judge answers. Ask with the very object you will hand `runTaskStream`: members added after asking were not judged. **`ok: true` is NOT a promise that the run may go: it says only that this stretch of doors does not refuse the request on this Runner right now — do not keep it as a receipt that the request can run.** The run can still be refused by its session, its environment, a connection, a store or its first request. It acquires no session, takes no lock, mints no environment, calls no store verb and writes to no host sink; like any reading of the request it runs the host's own callbacks the doors call and fills the engine's per-object receipt memo tables. Those callbacks therefore run twice per request — once for the judge, once for the run (measured: a `withAgents` rebuild is called by each); a callback with a side effect shows it twice, and one that answers differently the second time can make the judge say `ok` while the run fails before its session is acquired, after the host wrote its row (KL-4525-d). Which refusals it asks and which it does not (and why): `docs/INTEGRATION-CORE.md` §4.9.
1011
+ - **The workspace door.** Whether a run has a workspace is read off the deployment's seats where they answer it (`workspaceOfAssembly`: a static `executionEnv` ⇒ yes; no `executionEnvFactory` and no static env ⇒ no; a factory and no static env ⇒ decided when the factory runs) — the same reading the hands fact takes after the mint. Where the seats say no, a `path` attachment is refused by the doors' last door, before the session is acquired; with a factory it is refused after the mint, as before (KL-4525-b).
1012
+ - **Two-fault requests whose first refusal changed — a class, not four cells (open to veto; @server @client-core @test: a host that routes on the first refusal's code gets the attachment code for these).** On a Runner with neither factory nor static env (a hands-less lane), a request carrying a `path` attachment AND one more fault that sits between the acquire and the env mint — every refusal there, the session store's own failures included — now ends on `config.user_attachment_invalid` (`no_workspace`) first, without claiming the session (acquires 1 → 0). Measured base → head (`test/backlog4525-first-refusal-order.test.ts`): O1 + `requireExistingSession` on a session the store does not hold: `resume.session_not_found`; O2 + a caller tool named `ReadToolResult`: `config.reserved_tool_name`; O3 + `resumeAt` naming an entry the session does not hold: `resume_at.not_found`; O4 + `RunInternals.requestedCwd` with no factory: `config.cwd_unsupported`; O5 + a placement target naming no provider: `config.placement_not_honored`; O6 + a composition leg the engine does not know: `config.invalid_argument`; O7 + the store answering the session damaged: `corrupt_session`; O8 + the store's `acquire` failing with its own error: that error's code (e.g. `store.unavailable`); O9 + `resumeAt` naming an entry that is no message boundary: `resume_at.not_a_message` — each → `config.user_attachment_invalid`. **What a host sees (@server)**: on a hands-less lane, when the session store fails or a session is damaged, a request with a `path` attachment now gets "send the file as a text / image entry" instead of the store's error. That request could never have run (its attachment is refused either way), but a host that maps store errors to a retryable answer (a 503) now answers it as refused (a 4xx), and its store alarm misses this request. Both refusals are true in each case; fix the attachment and the next request gets the other code as before. A request with one fault keeps its code, and the refusals before the acquire keep their order (the output-style and egress controls, the path entry alone, the factory arm with and without an absent session — the same on both trees).
1013
+ - **`detail.reason` (@server @cli @client-core).** Every `config.user_attachment_invalid` names what its caller has to change, from the closed set `USER_ATTACHMENT_INVALID_REASONS`: `invalid_value` · `no_workspace` · `resume_leg` · `over_window`. The `no_workspace` refusal and an unreadable `.path` member used to carry the same `{ path, index }`.
1014
+ - **The parent's arming moment (measured, `test/backlog4525-ceiling-arming.test.ts`).** The mode door used to read a parent's live ceiling with a decision read, which starts the parent leg's auto-mode classifier arming when that leg is in `auto` and unarmed — so asking the doors would have armed it. The door now OBSERVES the ceiling (it only decides whether the plan pair mounts). A run's prepare still arms the parent, one phase later (the inherited-gate phase, after the acquire) and before the child's first decision: measured base → head, the arming moved from ~19 ms to ~31 ms into the child's run, the child's first gated call was allowed at ~180 ms either way with the same four notices, and a child that calls no tool leaves the parent armed either way. A child refused between the acquire and the inherited-gate phase no longer arms its parent. `RunInternals.inheritedGate.permissionModeCeiling` gains the optional `observed` member the engine's ceilings already answer (additive).
1015
+ - **Behavior changes.** (1) The model gate's notice (`config.tool_model_gate_removed` / `_unknown_class` / `_env_invalid`) is sent after the doors instead of between them: a run a later door refuses no longer sends it (and no longer spends its once-per-sink line). (2) `config.interaction_wiring` for an `onAsk` seat outside the union describes the value (`describeRejectedValue`: a string as its redacted shape, an object by its key count) instead of `JSON.stringify` — which threw on a cyclic object or a bigint before the code was set, so that refusal used to end with no code.
1016
+ - **Not changed.** Every code, every sentence (except `config.interaction_wiring`'s value clause), the doors and their order before the acquire, the resume side (`judgeResumeConfig`), the factory arm's refusal point.
1017
+ - **Known.** KL-4525-a (refusals that need only the request and the seats but sit after the acquire are not asked — listed, not moved), KL-4525-b (the factory arm), KL-4525-c (the entry's door on the `internals` bag), KL-4525-d (host callbacks run twice per request).
1018
+ - **Rules.** Readings of "what prepare refuses before the acquire" 2 → 1 for a fresh leg (the stretch inline in prepare, and nothing a host could ask → one function both call); readings of "does this run have a workspace" 1 → 1 (`workspaceOfAssembly` is the hands fact's own first half); attachment refusal shapes that answer two causes with one `detail` 2 → 0; readings of the entry's spec reads (the one read with its auth seat, the `actor` snapshot) 2 → 1 (`readEntrySpec`, called by the stream entry and the judge). Added: one method, one function, one closed set.
1019
+ - **Pins.** `test/backlog4525-task-start-judge.test.ts` (P per-door parity with the real run and zero acquires · T two refusals at once · W the workspace door's three seats · Z zero side effects and the two prepare-side sinks · H a host that never asks · X resume / delegated / wake legs · U no-code failures and the entry's synchronous throws, `actor` included · V one request object across `swapDeps` and across Runners · R the reason words, `over_window` included · P22 the plan-file door), `test/backlog4525-first-refusal-order.test.ts` (the order cells O1–O9 and the six controls), `test/backlog4525-ceiling-arming.test.ts` (the parent's arming: the judge starts none, the run arms once before the child's first decision), `test/backlog1968-attachment-refusal-detail.test.ts` (reason on every arm).
1020
+ - **Consumers.** @server: call `runner.judgeTaskStart(spec, internals)` on the Runner the request was routed to, after it is chosen and before the run row is claimed; `ok: false` ⇒ answer with `code` / `detail`; an `ok: false` WITHOUT `code` is an uncoded failure the run ends on the same way (a model object's shape, an uncoded throw from a host `withAgents`, a `tools` entry that is `null`), so answer it as you answer a run that fails with no code today; read `detail.detail.reason` against `USER_ATTACHMENT_INVALID_REASONS`. @cli @client-core: `reason` tells "change the scene" (`no_workspace`, `resume_leg`) from "fix the entry" (`invalid_value`, `over_window`). @test: the order cells above.
1021
+
1022
+ ### Every session row the engine creates for a leg it delegates records the delegation tree's owner — a workflow agent's, a synchronous or steered child's, an unplaced background child's, an observer's, not only a placed child's or a fork's; the owner rides the creating `acquire` (`opts.owner`) and the placement tuple names no owner (#4408, #3150; C-R1824; behavior change: on an owned tree those rows are born owned instead of ownerless; hard-breaking: four entries below, open to veto @server @sdk; narrowing: a delegated leg whose row does not record its tree's owner is refused, and a revived background child judges owners as the tree that revived it; widening: one narrow form — a revival made from a tree whose seat reads anonymous judges with that anonymous seat, where before it judged by the owner the re-opened row records (an owned row revived from an anonymous tree: its subtree judges nothing); closed sets: two refusal codes on delegated legs, `delegation.owner_unbound` (now also from prepare) and `delegation.owner_mismatch` (new); exports: none added or removed — `SessionPlacement` loses its `owner` member, `SessionStore.acquire` gains an `owner` option, `RunInternals` gains `sessionIdMintedBySpawner` and `onSessionVerified`, the retain ledger's entry (`SubagentRetainEntry`) gains a required `rowVerified`; wire: one additive optional member, `BackgroundChildEvent.sessionWithdrawn` on terminal frames, and a leg whose row's owner was never verified — refused over it, or ended before its owner read answered — has `TaskResult.sessionId` `""`) (@server @sdk @cli @client-core @test)
1023
+
1024
+ - **Rule.** One rule for the store: every row-creating write records the owner it is handed — `register(id, owner)`, `acquire(id, { owner })`, `fork(source, owner)`; absent ⇒ `null` (a fork: the source row's); a row that exists is never changed by any of them. One rule for the engine: a leg holding its spawner's tree-owner seat (`RunInternals.delegationOwner`) names the tree's owner on its create-capable acquire, read before the acquire, and reads the row back through `headOf` after it; an anonymous tree names none. The placement tuple says where a row lives, never whose it is. One rule for naming: a delegated leg's session is named, anchored, revived or released only once its row's owner was verified (the read-back held, or there was no owner to judge); how the leg ended — stopped, refused, past the bound — is another fact and decides none of it.
1025
+ - **Before (measured on v7.68.0, real Runner, File backend and the in-memory store, three runs each).** A host registered its root to `alice`; the rows born for the tree's workflow agents, synchronous children and unplaced background children were created by an `acquire` carrying no owner and read `owner: null` — on the File backend they stayed on disk after the run. Only a placed background child (through `placement.owner`) and a fork (through its owner argument) recorded `alice`. A multi-tenant deployment either kept those rows from the principal who started the tree, or read them as ordinary ownerless rows.
1026
+ - **Now.** The same rows read `alice` (`test/backlog4408-session-row-owner.test.ts` O1: two workflow agents, a synchronous child, a background child placed on File and unplaced in memory, a background and a synchronous fork, the observed child and its observer sidecar). An anonymous root names no owner on any of them: an unplaced acquire carries no options at all and a placed one only its tuple — the calls a host's own acquire makes (O2). A seat that does not bind starts nothing and creates no row (`delegation.owner_unbound`; O3). After the acquire the row must still be the occupant acquired and record exactly the owner named; otherwise the cached view is dropped (`forget`), the leg is refused `delegation.owner_mismatch`, and nothing is deleted (O4–O6). A read-back that faults — rejecting or throwing synchronously, in the row's `headOf` or the acquired session's metadata — refuses under the same code, the fault kept as `cause` and kept out of the parent's tool result (O10c).
1027
+ - **After its birth faces, the engine names, reads, keeps for continuing or lets go of nothing of a child's row whose owner was never verified** (its birth frames and a retained synchronous child's steer handle gave the minted id out and cannot recall it — KL-4408-d; what a holder of that id can still do on its own is KL-4408-d / -e / -f). The engine keeps one fact for it — the run's carrier is born "unverified" when the leg holds a seat to judge (so a leg that fails a config check before its acquire names nothing either), prepare turns it "verified" right after the acquire phase's read-back holds and tells the spawning lane once (`RunInternals.onSessionVerified`, an internal seat; a prepare that fails after that — a resume point the session lacks — still names the verified session) — and every lane names, anchors, revives and releases the leg's session from that fact alone: the workflow lane records an agent's session only once told (a replayed or re-parked agent keeps the verified name its journal or park carried), the background lane writes its durable anchor (what a revival and `AgentTranscript` read) only then and its thrown-child leg names only that anchor, and a retained child's disposal (TTL, eviction, the parent's end) and an observer's teardown release only a verified row — otherwise neither the row nor the pin the retention took on its id is let go. A leg with no owner to judge — its tree's host handed no seat, or the seat reads an anonymous tree, as the seat a Runner hands every single-tenant run does — is verified from its birth, as before 7.69.0: `ownerToJudge` is the one reading prepare's read-back and both lanes' birth word (`verifiedAtBirth`) ask (was: the lanes asked only whether a seat was handed, so in a single-tenant Runner a retained child whose retention was let go while its pin was in flight kept that pin and its session until the process ended — measured by the read-only leg on the round's earlier head; DISP-own / PIN-own). A leg refused over its row, and a leg that ended before its owner read answered (stopped, cancelled, past a host's deadline), ran on no row known to be the tree's, and its result says so: `TaskResult.sessionId` is `""` (was: the row's id, or `"unknown"` for a store-minted one). Such a leg ran no model turn (measured, a store that records the owner, a background child stopped in its read-back: no model call, the row it leaves holds no message entry), so what it gives up is an empty session. After the refusal nothing the engine hands the host or the model, or writes to its stores, names the refused row except the refusal sentence — pinned by a full-text search for the refused id over every exit (fleet and lifecycle frames, notices, the error sink, the `Agent` tool's results, background notifications, every model context, the root's result, the workflow run records and journals, the background agent records, every other session row's file; O11b, seven cells: workflow agent / background / synchronous / retained synchronous / observer, over a store that drops the owner and one another principal took the id in first). Which faces that covers: the synchronous report card's `sessionId`; a retained child (`retain` / steer) is abandoned (the pin on its id left as it was), so a later `resume` of it is refused, and its report carries no `transcript_id` footer (O10, O10c); a background child's durable record stops naming the session — the session id `AgentTranscript` and a revival would read — and its completion notification names no `sessionId` and says `resumable: false` (O10b); a refused workflow agent's `WorkflowAgentRun.sessionId` is cleared, the id written at launch included (O6), and its journal entry names none. **Birth frames are not recalled:** a background child's and a workflow agent's fleet spawn frame (`BackgroundChildEvent`, `sessionId` / `transcriptId`) went out before the refusal, so the row's terminal fleet frame names no session and carries `sessionWithdrawn: true` — for a refusal, and for a leg that ended before its owner read answered (a leg ended before its owner was verified carries it on its terminal frame) — a host drops the handle it cached for the row (O10b, O11, O11c, O14; before this, a workflow agent's terminal frame named the refused row: the terminal fell back to the coordinate the row was born with). The workflow lane's terminal now reads its row's one coordinate — written at birth and by each bind (an attempt, a settled result's session, the stall salvage), withdrawn by a refusal — with no fallback. The engine neither releases the row (it may be another principal's) nor keeps it for a failure post-mortem; an observer sidecar refused on a row releases nothing of it at teardown (O10d). A row another principal holds under the leg's id stands as it was (O4b, O10, O10b, O10d).
1028
+ - **Cost and bound of the owner reads.** Each delegated leg of an owned tree makes one more by-id read (`headOf`, after its acquire), and the tree reads its root row's owner once (before 7.69.0 only a placed background child and a fork read it). Both reads wait at most the bound the engine's other session-store calls on a run's path wait under (`TEARDOWN_LEG_MAX_MS`, 15 s) and end at once when the leg's run is stopped. Whether a read was stopped is read off the leg's own stop at the moment the read ends — never off what the read rejected with: a store's error carrying the wait's own mark is the store's fault (B1). The bound elapsed, or the read threw ⇒ the leg is refused — `delegation.owner_unbound` before the acquire (no row), `delegation.owner_mismatch` after it (`the row could not be read back`, what ended the wait as `cause`). The leg's run was stopped (a workflow stopped, a parent cancelled, a background child TaskStop'd, the workflow watchdog, a host signal aborted with any reason, a deadline's `TimeoutError` included) ⇒ the leg ends as every stopped run does — `failed`, `run aborted`, no code, not refused — and, its row's owner never verified, names no session and withdraws the one its birth frames gave (O14: the same terminal as the same stop on a leg with no owner read, which names its session; a stop before the seat's read answered creates no row; the bound and a stop on the same turn — the first to fire decides). A late answer writes nothing and starts nothing; a row the acquire created stays as the store recorded it, named after a refusal only by the refusal sentence (O12). Without the bound, a store whose `headOf` did not answer hung the delegation — measured, in-memory store, one synchronous child: 7.68.x completed in about 330 ms (that lane read no `headOf`), the unbounded reads hung past 15 s on the child's row and on the root's; with it, the leg is refused inside the bound and the parent completes (O12, the bound shrunk to 300 ms in the pin).
1029
+ - **Sentence for an ownerless row, by who named the id.** An id the leg's author named (a host's or a script's `spec.sessionId`) keeps the sentence `it records no owner — either it was created before its engine recorded owners, … (start the leg without a sessionId, in a new session), or the session store does not record the owner …`. An id no author named — the store's mint, or the spawning lane's (the delegation tool's retained, background and observer legs; a workflow agent or a goal loop whose spec named none; `RunInternals.sessionIdMintedBySpawner`) — now reads: `it records no owner, and the engine created it for this leg — the session store this deployment runs on does not record session owners, so delegation is unavailable in a run that has an owner until the deployment upgrades its session store (the store now holds an empty ownerless row under this id)`; it offers no way out through an id the model never gave.
1030
+ - **The revival entry judges the row a record names, before re-opening it.** SendMessage's durable revival — the plain path and the full-mailbox drain — reads the row by id (same bound, ended by the call's stop) and compares its owner with the reviving call's tree owner using the read-back's own comparison (`rowOwnerStanding`, one pure function for both): the tree's owner ⇒ revived; no owner recorded ⇒ revived (a row born before its engine recorded owners; transitional, KL-4408-a); another owner, a cell that names nobody, no row, no `headOf`, a read fault or timeout, a tree owner that does not bind ⇒ not revived, answered `not_retained` as a record that names no session, the record left exactly as it was (judged before the admission charge and the claim). An anonymous tree judges nothing. @server: the operator continuation verb (`createAgentContinuationVerb`) carries no tree owner, so a continuation through it is not judged — for a call that continues through this verb, the host judges the owner itself first.
1031
+ - **A revived child judges in the tree that revived it** (narrowing, @server). A background child revived through SendMessage holds the reviving tree's owner seat — the seat its tools, its own revivals and the rows its children create read (`RunInternals.delegationOwner`, handed down as on a fresh spawn). Was: it held a seat read off the row it re-opened, so a row born before its engine recorded owners made the revived subtree an anonymous tree, and an anonymous tree judges no row: measured with this one line put back, an ownerless row revived in alice's tree read its seat as `{ owner: null }`, an `AgentTranscript` read with that seat on a record naming bob's row put bob's steps into the revived child's model context, and the row its own child created carried no owner (`null`). Now the seat reads `alice`, that record is refused, and the row its child creates records `alice` (`test/backlog4408-retain-ledger-verified.test.ts` REVIVE); a revival of a row the tree owns reads as before (the control cell reads the same both ways). The row it re-opens keeps the owner it records — an ownerless row stays ownerless, and the same ownerless row revived in alice's tree and then in bob's is judged with alice's seat and then bob's, its owner record empty throughout (REVIVE). The seat judges the rows the revived child reaches; it does not make the re-opened row alice's: the same ownerless row continued by alice and then by bob gives bob's revived child what alice's revival wrote into it (measured by the read-only leg on the in-memory and File stores; the third round's head and the stage read the same — this is not new in 7.69.0). Reaching it needs two durable records, one in each principal's reach, naming the same ownerless row — no ordinary path writes that (a record belongs to a session another principal cannot read); a pre-upgrade record whose id another principal had taken, or a writer of the record store, can. The cure is the claim #4544 designs: an owned tree that first re-opens an ownerless row records itself as its owner, and every other tree is refused from then on. The revived run's own mount does not address its parent's other records (`canAccessAgentRecord` with the run's tool-context task id and session: false; REVIVE), so the read path above needed a record in the revived run's own reach naming another principal's row. Who claims an ownerless row, and when, is #4544. @server: a session left ownerless by a pre-upgrade engine, continued after the upgrade, has its subtree judge owners as the tree that continued it. A continuation through the operator verb (`createAgentContinuationVerb`) hands no seat, so its child still mints one over its row (read code; see the line above).
1032
+ - **The readers the earlier rounds left off read the same fact.** A retained child's entry is registered at the child's birth with the id its lane minted; it now carries the lane's word (`SubagentRetainEntry.rowVerified`, a required member: hard-breaking (4)) and every reader that can meet the entry before that word asks it first (the resume face reads a settled entry only, and an entry whose lane never gave the word is dropped at the child's end, never settled). `AgentTranscript` on a retained background child whose row is not yet verified answers `Agent <id> recorded no tool steps yet.` — a leg verifies its row before its first turn — without reading the row (was: on a store that resolved the new id to another principal's row, that row's tool steps; `test/backlog4408-retain-ledger-verified.test.ts` AT). A retention disposed while its pin was in flight, a retained child that ends unverified and a retained background child whose run throws before verification neither release nor unpin the id (was: the pin came off — on a squatted row, its holder's own pin — and the disposed-during-pin arm released the id, which on the default store deleted that row; DISP, PIN, THROW). The registry's own terminal for a background child — a host's `TaskRegistry.reapSessionBackground` landing while the child's read-back is pending — names no session and carries `sessionWithdrawn: true`, and the parent's notification of it names no `sessionId` (was: the minted id on both; RL). `AgentTranscript`'s durable lane reads the row a record names only when the revival entry's judgement shows it is the tree's — the same call, `revivalRowJudged` with the reading call's tree seat — and otherwise answers as a record that names no session (was: read unjudged, so a record pointing at another principal's row listed that row's steps; ATD); an ownerless row is still read (the transitional arm of KL-4408-a). Wherever that judgement refuses the row a durable record names — SendMessage's revival and `AgentTranscript`'s durable lane — the operator notice `delegation.transcript_integrity` is raised as for a gone transcript (once per scope and handle, only on the tier that declares durable transcripts): one sentence and one `detail` form (`{ handle, scope? }`) whatever the cause, so it tells the operator the record's transcript cannot be opened by this tree and never which of the two it is (was: in an owned tree, since the judgement came in, nothing — the judgement answered before the read that raised it; NOTICE). The same principal's ordinary paths are unchanged (N: a synchronous child retained and not, a background child messaged after it completed, a retained background child read and resumed, one stopped after a turn and messaged).
1033
+ - **Hard-breaking (open to veto).** (1) *What changed:* `SessionPlacement.owner` is removed — the tuple is `{ kind, scope?, parentSessionId?, rootSessionId?, handle? }`; the owner of a placed row is the placing acquire's `opts.owner`. *Who is hurt:* code that reads `placement.owner` or builds a placement with it (TypeScript refuses the member). *What to do:* read `opts.owner` where the store creates the row; drop the member from placement literals. @server: the one reading is `placedSessionOwnerOf(placement)` (`src/plugins/session-ownership.ts`), called by the local / PostgreSQL / MySQL-protocol stores' placed create; `ForkRoutingSessionStore`'s local `AcquireOpts` type gains `owner` (it already passes the object through). (2) *What changed:* a session store's create-capable `acquire` must record `opts.owner`. *Who is hurt:* a store that does not — on it, every delegated leg of an owned tree is refused `delegation.owner_mismatch`, and that store keeps an empty ownerless row under the leg's id (the refusal names it). A store, or a router over stores, that does not declare `headOf` cannot show a row is the tree's: every delegated leg of an owned tree on it is refused. *What to do:* record the option in the creating write (the kit's two new `[ownership]` acquire cases check it, including on an id the store mints); a router passes `owner` through and declares `headOf` only when every store under it answers it — the engine's in-memory `TtlSessionStore`, where a synchronous child of a split runner lands, answers it (O5). @server: every store's ordinary create path (today: a create recording no owner) and the placed one; the in-process store under a router's transient lane. (3) *What changed:* delegated legs meet two refusals from prepare. *Where they reach:* the refused leg's failed `terminal.code` (O8) · a workflow agent's `WorkflowAgentRun.errorCode` (O6, O8) · the background agent row: `failed` with the code (O4; `owner_unbound` registers no row at all, O3) · the parent's tool result for a synchronous `Agent` call (O3, O4) and a background child's terminal fleet frame (O4) and completion notification — neither carrying `sessionId` / `transcriptId` for a refused child, the terminal frame `sessionWithdrawn: true`, the notification `resumable: false` (O10b; a workflow agent's terminal fleet frame the same, O11) · no `EngineNotice` carries either (O1, O3, O4, O8) · a top-level run nobody spawned names no owner and never meets either. *What to do:* a host that maps child codes adds the two words. (4) *What changed:* the retain ledger's entry type `SubagentRetainEntry` gains a required member, `rowVerified: () => boolean` — the spawning lane's word that the child's row is the tree's; the ledger's readers read it before they read, name, unpin or release the entry's session. *Who is hurt:* code that registers an entry itself (`getSessionRetainLedger(…).register(…)` with a hand-built entry, a test double): TypeScript refuses the literal. Code that only reads entries (a custom SendMessage mount) is not hurt. On `origin/main` of server, cli, client-core and sdk nothing registers an entry: `git grep -P '\b(SubagentRetainEntry|SubagentRetainLedger|getSessionRetainLedger|rowVerified)\b'` reads server 3 lines (a consumption-ledger key, two test comments), client-core 1 comment, cli 0, sdk 0 (positive control: 74 lines in this tree's `src`). *What to do:* pass the registering code's own word — `() => true` only for a child whose row it created, or read back, as its tree's.
1034
+ - **Not breaking — four signatures the wire manifest reads as changed.** `SessionStore.fork`, `TtlSessionStore.fork`, `ToolExecuteContext.hostSessionFork` and `admitSessionPlacement` took `placement?: Omit<SessionPlacement, "owner">` and now take `placement?: SessionPlacement`: with `owner` gone from `SessionPlacement` (hard-breaking (1)) the two spellings name the same members (`kind`, `scope?`, `parentSessionId?`, `rootSessionId?`, `handle?`), so a store's `fork`, a host's fork seat and a caller written to the old spelling type-check unchanged.
1035
+ - **Not changed.** The read form (`requireExisting`) creates nothing, names no owner and is not read back: a checkpoint resume (a parked workflow agent driven on), a retained child continued, an observer delivery, a fork's child and a revival re-enter as before (a SendMessage revival is judged at its entry, above, before it reaches the read form). A row created before 7.69.0 is neither refused nor claimed by them (O9, on rows a v7.68.0 engine minted: the parked workflow agent driven on here, its tool run once, its row still `null`). `register`, `fork`, `headOf` and the placement obligations other than 7's wording.
1036
+ - **Known limits.** KL-4408-a: rows created before 7.69.0 by these legs stay ownerless; the backfill route (a workflow agent: the run record's `agents[].sessionId` and the originating session's owner; a synchronous child on a persistent store: the parent session's `Agent` tool result `details.sessionId` and the parent row's owner) is the deployment's — @server S-4534. KL-4408-b: legs of a composition (verify, cascade, a repair loop, goal) and of a direct `runWorkflow` record an owner only when the host hands the seat — @server S-4535. KL-4408-c: a read-back that ends unanswered (the bound, a stop) leaves the row the acquire resolved — an empty row when it created it — to the store's sweep or the operator; the engine does not delete a row it cannot show is its own, and names, anchors and revives none of it. KL-4408-d: birth frames and a retained synchronous child's steer handle (`childSessionId`) cannot be recalled; a holder of a birth id who ignores `sessionWithdrawn` can still continue it as a top-level run (the engine has no owner gate on a top-level run — the host's), while every entry the engine owns reads the verified fact or judges the row (a seated delegated leg's read-back; the revival entry and `AgentTranscript`'s durable lane, one judgement; every reader of a retained entry; the registry's landed terminal). KL-4408-e: a row deleted and re-created under the same id with another principal's content between the revival's judgement and its re-open is revived (needs the store's write power; measured on the in-memory store only). KL-4408-f: a host that writes another principal's id into a read-form spec (`{ sessionId, requireExistingSession: true }`) runs it unjudged — the host's gate; no non-host caller reaches that spec. KL-4408-g: a host deadline and the owner read's bound expiring on the same millisecond reads as `owner_mismatch`, not as a stop (names nothing either way). KL-4408-h: a same-principal synchronous child cancelled before its first turn has no `transcript_id` line and its handle's resume is refused — its row is empty. KL-4408-i: in an owned tree only, the pin a retention took on an id not verified at the moment it is let go stays — on the in-memory store, a background child whose retention was disposed while its pin was in flight then runs, verifies and completes on that id, and its session is not swept or released (a synchronous child's: the pin stays on the pre-minted id it never ran on); a single-tenant run (its seat reads anonymous) and a seatless tree release as before (DISP-own, PIN-own). KL-4408-j: in an owned tree, a durable record naming a row that is gone and one naming another principal's row get the one answer a record naming no session gets (SendMessage `not_retained`, was `resume.session_not_found` on v7.68) — on purpose, so the answer is no probe of whether another principal's id exists; the operator's notice tells (below). KL-4408-e covers `AgentTranscript`'s durable lane too. A workflow that finalizes before its agent's row was verified now names nothing for it and withdraws it on the terminal frame, and a late verification writes nothing (D).
1037
+ - **Rules.** Owner channels of a created row: 3 different shapes (register's argument, the placement's member, fork's argument) + one row-creating write with no channel → one shape on all three writes. Rules the engine keeps for a child row's owner: 6 (obligation 7 "the placing write records placement.owner" · fork's argument · the background lane reading the seat under the placement gate and stuffing it into the tuple · the fork lane reading the seat · "an unplaced acquire records null" · two tuple types, with and without `owner`) → 4 (N1 · N2 · the fork lane's read · the background lane's early gate, now unconditional on a fresh spawn). Two contradicting sentences (`RunInternals.sessionPlacement`'s "absent ⇒ no placement — byte-identical" and the fork lane's "as every row created for a child does") → one true sentence each. Why an owner read ended: 1 reading (any ending is a read fault ⇒ refused) → the wait's own three (`stopped` ⇒ the run's cancellation; `unanswered` / `faulted` ⇒ refused), read the same way by all the bounded owner reads that have a stop (prepare's seat read and read-back, the fork and background lanes' early read in the delegating call — which ends the call `Sub-agent not started: the delegating call was aborted.`); a stop reaches the wait as the run's cancellation whatever reason it carries. What decides naming: 9 sites reading how the leg ended (`refusedOverRowOwner` at each lane's exit, a workflow withdraw helper) → 0; one fact instead (written in prepare, told once to the lane, read by the result and by every lane), and the revival entry's one judgement sharing the read-back's comparison. Why an owner read was stopped: the error's mark → the leg's own stop. No claim verb added: the only lineage of an ownerless row is outside it, and on the one entry that meets such a row (a host-authored id with a seat) the current run record already names the id — a circular proof (design section `docs-draft/DESIGN-4408.md` §3).
1038
+ - **Pins.** `test/backlog4408-session-row-owner.test.ts` O1–O10d, O11 (a workflow agent's terminal frame withdraws, two stores, and a control), O11c (the workflow watchdog stops an agent whose read-back hangs: the attempt ends stopped, not refused; its record names no session and its terminal frame withdraws), O11e (an attempt refused over its row that the watchdog also flagged: the stall salvage withdraws as the settle does), O11d (a goal loop's own session mint gets the store sentence), O11b (the full-text exit inventory), O12 (the bounds: a `headOf` that never answers on the child's row and on the root's, one that answers late, a stop during each read ends the leg stopped, the product's 15 s bound in force), O14 (a stop during an owner read ends the leg stopped and names no session: stopped while the store acquires, before the run started, a host's `TimeoutError` signal, the bound and a stop on the same turn either way round, a direct workflow stopped, a parent cancelled — no `transcript_id` line in its report — a background child TaskStop'd, against the same stop on a leg with no seat, which names its session; the parent stopped during the synchronous / background / fork lane's tree-owner read), O13a–c (second cells for the background lane's early read, the read-back's occupant judgement, and the read form not judged); `test/backlog4408-row-verified.test.ts` R (a store that hands a new child id to another principal's row × a background child stopped in its seat read / acquire / read-back, by its parent's cancellation, by a host's deadline × a message sent at once / after the child settled: no model reads that row's content, the record names nothing, the row stands; a synchronous child whose parent is cancelled; controls: a compliant store's child revives with its prior context, and one stopped in its read-back holds no model turn and is not revived), J (the revival entry: another principal's row, the full-mailbox drain, an owner cell that names nobody — not revived; an ownerless row — revived, transitional), K (the read-back and the revival entry read one classification), B1 (a store's error carrying the stop mark is a fault; a real stop is a stop), C (`onSessionVerified` told once for a verified row, never otherwise; a throwing lane does not fail the leg), D (a workflow finalizing before its agent's row was verified names nothing), W (a stopped workflow member resumed never continues onto that row), S (a new record whose id a store resolved to an ownerless row names nothing and revives nothing), V (a seated leg and a workflow agent failing a config check before the acquire name nothing; a verified row is still named when prepare fails after it; a replayed agent's terminal frame names its session; a retained child on a squatted row whose parent is cancelled leaves that row standing and its handle's resume refused; a retained background child whose root ends during its read-back, and a background child whose run throws before its row is verified, leave that row unreleased, the latter's terminal frame withdraws and the parent's task notification of it names no session); kit `[ownership]` "a create-capable acquire records the owner it names…" and "an acquire naming an owner resolves an EXISTING row without changing it…", `[placements]` "the placing acquire records exactly its owner…"; `test/backlog1468-s1-session-store-kit.test.ts` M7a–M7c (reworded), M8a (an acquire that drops the owner), M8b (an acquire that re-stamps an existing row); `test/backlog3149-delegation-owner.test.ts` (a placement naming an owner no longer compiles); `test/backlog4408-retain-ledger-verified.test.ts` AT (a retained background child on a squatted row, `AgentTranscript` while its read-back is pending; a compliant control read once verified), THROW (a retained background child whose run throws before verification is dropped, not made resumable; one refused over its row likewise), RL (a session reap landing during the read-back, squatted and compliant), DISP (a retention disposed while its pin is in flight, synchronous and background, on the default store and on one whose pin holds nothing), DISP-own (the same race on the tree's own id, background and synchronous: a tree with no owner to judge — no seat, or the anonymous seat a Runner hands a single-tenant run — releases as before; an owned tree keeps the pin — KL-4408-i), PIN-own (a retained child stopped while its store makes its row, then let go, per lane: no owner to judge ⇒ pin and row let go as before; owned ⇒ both stay), PIN (a squatted row's own pin survives a retained child refused or cancelled on it), ATD (a record naming another principal's row; its own row and an ownerless row as controls), X4 (a word that an abandoned workflow attempt's row was verified, arriving after the retry began, names nothing), REVIVE (an ownerless row revived in alice's tree judges with alice's seat and refuses a record naming bob's row; alice's own row as control; one ownerless row revived in alice's tree then in bob's, its owner record empty throughout), N (the same principal's five ordinary paths), NOTICE (a record naming a gone row and one naming another principal's row: one integrity notice each with the same arguments, one model answer form, from both read faces).
1039
+ - **Consumers.** @server: (1)(2)(3) above; S-4534 backfill, S-4535 compositions handing the seat. Read on its `origin/main` `8e7211dbb` of 11-14 (read code, not compiled or run): `local-session-store.ts:2580` destructures `owner` from a `SessionPlacement` — it fails to compile on this version; `session-ownership.ts:63` takes `{ owner?: unknown }`, so it compiles, but the PostgreSQL and MySQL-protocol (TiDB) stores then throw `SessionError` at run time on every placed row they create. @sdk @cli @client-core: no reading of `placement.owner` or `delegationOwner` on `origin/main` (`git grep -P`, positive control `placedSessionOwnerOf` 6 files in server); a client that renders child refusal codes adds the two words. @server @cli @client-core: a fleet consumer that keeps a row's `sessionId` / `transcriptId` from its spawn frame drops it when the row's terminal frame carries `sessionWithdrawn: true` (an absent `sessionId` on a terminal frame stays "nothing new", as before). @test: below in the receipt.
1040
+ - **Wire.** `BackgroundChildEvent.sessionWithdrawn?: true` — terminal frames of `a*` and `wa*` rows, present on a child whose birth frames gave an id and which ended before its row's owner was verified: refused over the row's owner, or stopped / cancelled / past a host's deadline before its owner read answered (that terminal reads as the stop, not as a refusal), never beside `sessionId` / `transcriptId` (additive, optional; was: the `wa*` terminal frame named the refused row, the `a*` one named nothing and said nothing). @server @cli: a leg that ended before its owner was verified carries `sessionWithdrawn` on its terminal frame — a stopped child's frame can carry it too, so key the "drop the cached handle" step on the bit, not on a refusal code. The registry's own terminal of such a child (a session reap landing while its read-back is pending) carries it too, and its task notification names no `sessionId` (was: both named the minted id). `delegation.transcript_integrity` (an operator `EngineNotice`; code and `detail` unchanged) now reads `delegation transcript integrity: agent <handle>'s durable row binds a transcript session this tree could not open — the session store holds no such row, or none this tree can be shown to own — so the declared transcript durability is being contradicted (check the session store wiring/retention and the agent records)` (was: `… binds a transcript session the session store attests is gone — the declared transcript durability is being contradicted (check the session store wiring/retention)`), and is also raised when the read's owner judgement refuses the row; @server: a host that wires its own `onTranscriptIntegrityGap` sink on `createSendMessageTool` / `createAgentTranscriptTool` is now called for that case too, with the same `(handle, scope)`. Such a leg's `TaskResult.sessionId` reads `""` (was: the row's id, or `"unknown"`).
1041
+
1042
+ ### A `task_notification` frame states its delivery key — `noteKey`, equal to the `noteKey` of the `message_committed` row that hands the same notification to the model, so a consumer joins the two by equality instead of computing the key (#4559; additive)
1043
+
1044
+ - **Now.** The `task_notification` event carries an optional `noteKey: string`: `taskNotificationDedupKey(frame.notification)` (a root export), the same string the transcript row of that notification states as `message_committed.noteKey` (`origin: "queued_note"`). The engine pushes the frame at two places and both now go through one constructor (`taskNotificationFrame`, `src/core/task-notification.ts`, internal — not a root export): the live lane when a notification is accepted, and the turn-open redelivery of a frame parked while the session sat idle. A later leg's push of the same notification states the same key (a re-supply's `:a<n>` segment included).
1045
+ - **The delivery rule (written in `docs/INTEGRATION-CORE.md`, the `task_notification` and `message_committed` rows).** A frame on a leg's stream was handed to the model on that leg if and only if the same stream carries, before that leg's `done`, a `message_committed` with `role: "user"`, `origin: "queued_note"` and the frame's `noteKey`; that row commits before the first model request that carries the frame, and nothing is committed on a leg's stream after its `done`. A frame a `session.receive` handler consumed is on the stream with no row. A later hand-over is not guaranteed.
1046
+ - **One key on two sessions' streams (delegated background agents).** A later hand-over is on a later leg of the session the notification was addressed to; the terminal notification of a delegated background agent whose spawning leg can no longer take it is also routed up the delegation tree and handed over on a leg of an ancestor session — one payload, two places (parked on the producing session, sent up the tree) — so the one key can appear on the streams of two sessions, each stream holding the frame and the row under it. The rule holds leg by leg and stream by stream, and "handed over" is counted per session. Measured on a real tree (root → synchronous child → background agent stopped by the child's end): the root's live leg hands it over, the child's own session holds the same key parked, and no leg of it takes that copy (a synchronous child's session row is not kept past its run); with a producing session that does continue (wiring that records the root anchor and no uplink) both sessions' next legs hand it over.
1047
+ - **Not changed.** Every existing member of the frame, its position in the stream, when it is pushed, the key's formula, the row's `noteKey`, what the model reads.
1048
+ - **Wire (additive @server @client-core @cli).** `task_notification.noteKey?: string`. @server: the event projection's member allow-list needs the new member (a projection that copies a closed list of members drops it). @client-core @cli: match a frame to its row by `frame.noteKey === row.noteKey`; absent = a producer that does not state it.
1049
+ - **Pins.** `test/backlog4559-notekey-on-frame.test.ts` — (a) live lane, three key spellings in one batch, every frame joins its row · (b) turn-open redelivery, the same three · (c) a notification the first leg never took into a turn: the first stream has the frame and no row, the next leg pushes it again under the same key with its row · (d) every frame's key is the key of its own payload · (e) a leg the host holds no stream for commits the row before the request that carries the notification · (f) the same order on the live lane, nothing offered after the result · (g) a consumed frame has no row, a rewritten one joins by the key of the notification as made · (h) a repeat folds to one frame and one row · (i) a delegated background agent's terminal in an engine-built tree: the root's live leg holds frame and row under the key, the child's own session holds it parked and hands it over on no leg · (j) with a producing session that continues (root-anchor arm), both sessions' next legs hold frame and row under the one key. `gate:single-mint` registers the frame shape (`taskNotificationFrame` is its one mint: a second object literal stamping `type: "task_notification"` with a `notification` member in `src` is red).
1050
+
1051
+ ### A file-history entry recorded through a link on its key's path is frozen — no boundary reads it, no rewind writes or deletes it (each one names it), no export carries its bytes — and a store's `trackEdit` keys a file by its real path (#4490; behavior change; narrowing: three, below, open to veto @server @cli @client-core; hard-breaking: none at runtime — compliance-kit cells K3 / K4 a backend that has not followed reads red; type-level (the manifest's four breaking entries): the `rewindNotes[].code` union widened by `restore_left_as_is` on `TaskResult`, `CascadeRunResult`, `RepairResult` and `VerificationResult` — a host whose switch over it is exhaustive does not compile until it handles the word; closed sets: new `FILE_HISTORY_LEFT_AS_IS_CLASSES` (`frozen_history`), `TaskResult.rewindNotes` codes +1 (`restore_left_as_is`), engine notice codes +1 (`rewind.file_left_as_is`); exports +5, nothing removed: `fileHistoryEntryFrozen`, `listFrozenFileHistoryEntries`, `FILE_HISTORY_LEFT_AS_IS_CLASSES`, types `FileHistoryLeftAsIsFile`, `FileHistoryLeftAsIsClass`; additive wire members: `FileHistoryRestoreResult.leftAsIs?`, `FileHistoryDiffStats.leftAsIs?`, `FileHistoryExport.frozenEntryKeys?`, `rewind.restore_failed` detail `leftAsIs?` / `leftAsIsCount?`; `fileHistoryTrackKeyForAnnul` gains a form with the proof read)
1052
+
1053
+ - **Correction to the 7.68.2 notes (that block is left as released).** Its KL-4328-l says a rewind to a turn of such an entry "reads the outside file once more (a hash comparison) and refuses it (`recorded_elsewhere`), writing nothing". That holds only once the link is removed or replaced by a real directory. While the link stands, 7.68.2 writes the outside file back to that turn's bytes and answers `complete` (measured on the released bytes by the server, its file store and its SQL store, and here on both bundled stores × the three entries, with the entry minted by v7.68.1 itself; 7.68.2's criterion G7 and its pin required that write), and its export carries the entry's outside bytes. Its account of 7.68.1 ("with the link removed, wrote the bytes it had stored into a recreated file under the root, and with a directory in its place refused it (`link_safety`)") holds for a rewind to a turn that ran at the root; to a turn that ran under a directory below — where 7.68.1 recorded the file absent (#4446) — 7.68.1 answers `complete` with nothing written when the link is gone, and **deletes the person's own same-named file** when a real directory took the link's place (measured, v7.68.1 × 3 entries × the link moved aside before that turn or only before the rewind; the test lane's readings agree); with the link kept, 7.68.1 deletes the outside file itself (7.68.2's G7 reading, remeasured 3 / 3).
1054
+ - **Correction to the 7.68.2 notes' wiring line (@server; #4533; that block is left as released).** Its Consumers line says the key choice for a second same-named file (`fileHistoryTrackKeyForEdit` / `fileHistoryTrackKeyForAnnul`, the W1 cell) and the carry filter "are followed in the same release or not at all", and lets W1 be held back by name. "Not at all" does not hold for a store that took the boundary's re-read where a file was recorded (`fileHistoryResolveTrackedFile`, the K1 cell, a hard gate), and its "not following ⇒ W1 / FC over-refuse" does not hold for this sequence: **W1 and K1 are taken in the same release, and W1 is a hard gate wherever K1 is.** The sequence: a session edits `a.txt` at its first root; it is handed another root and edits that root's own `a.txt`; a store that keys by the relative name alone answers the second touch `minted: false` (one relative-name entry, nothing recorded of the second file); the next boundary re-reads the first root's file; a rewind at the new root to that turn answers `complete` with `identicalSkipped: ["a.txt"]` and `filesChanged: []` (the first root's file still holds the version), and the new root's `a.txt` keeps the agent's edit; an `annulTrack` keyed by the relative name answers `conflict`. The person sees a rewind that says it restored and did not — silent, not an over-refusal. Measured by the server on its SQL store class (K1 followed, W1 not; a stateful fake driver, no database); unreachable on the two bundled stores (they take both — read code); replayed here on an in-memory stand-in that takes K1 without W1 (`test/backlog4533-k1-without-w1-kit.test.ts`: `complete`, `identicalSkipped: ["f.txt"]`, `filesChanged: []`, the new root's file as the agent left it). The compliance kit guarded this with W1 alone (the stand-in fails W1 and nothing else on the 7.68.2 kit); the fork form — the key choice after a carry, FC — was only in the engine's own pins. **From 7.69.0 FC is a kit cell and a new hard gate for a backend (@server: run it; your SQL store takes both key functions today, so it should pass)**: "FC the key choice after a carry…" — a fork whose carried history keys the first root's `f.txt`, handed another root, edits that root's own `f.txt`: a first touch of its own under its absolute key, restored there. W1 holds that choice within one session; FC holds it across `adoptScope`, which must carry each version's place — a store that follows the key choice within a session but not across a carry passes W1 and fails FC alone (measured on a second stand-in); the K1-without-W1 stand-in fails both; a store whose carry drops the places fails FC and the adoption cell (its carried entries then restore with no place; measured).
1055
+ - **Rule.** One judgment, the entry's own (`fileHistoryEntryFrozen`): a root-relative key one of whose versions records a place whose last segments are not the key's own directories (compared folded the way a case- and normalization-insensitive volume compares names) was recorded through a link on its path, and is frozen — for every root a leg is handed and whatever the tree holds now. No part of the judgment reads the leg's root or whether a link is there now: a judgment by the leg's root was measured to hold such files at a turn under a directory below and then write older bytes at the first root (a session moved from `R` to `R/sub` and back, `F0` written over `F1`, `complete` — both stores × three entries), and to refuse a worktree switch's own files.
1056
+ - **Now.** A boundary holds a frozen entry (reads nothing, stores nothing; the entry and its versions stay). A restore neither writes nor deletes it and lists it in `leftAsIs: [{ path, place, class, reason }]` with the class `frozen_history`. `leftAsIs` is the member for every file a rewind leaves as it is without counting it refused or failed; `class` comes from one closed set (`FILE_HISTORY_LEFT_AS_IS_CLASSES`, one word on this release, a later word joins the same member), and what the member means does not depend on the class: not a refusal, not in `files` / `filesChanged`, not in `outcome` or a run's whole-or-nothing judgment — so a run that does not accept a partial restore still runs, and `complete` with `leftAsIs` rows restored everything else. The preview carries the same rows, `rewind.restore_failed`'s detail too (`leftAsIs`, `leftAsIsCount`) when another file was refused, a run says so on `rewindNotes` (`restore_left_as_is`: the keys, why each class stayed, how to learn of them beforehand; no directory; "every other file was restored" only when the restore was complete — a run that accepts a partial restore carries it beside `restore_partial`), and the person is told once per session per file and class (`rewind.file_left_as_is`, `detail: { sessionId, path, class }`; the session's once-per-session record, which follows the conversation's branch like every once-per-session notice: a `resumeAt` to a point before the notice tells it again — read from code, not pinned). An export leaves the entry and its bytes out and lists its key (`frozenEntryKeys`). Retention keeps a version that by itself freezes its entry, like a v1 record — the judgment is read off the versions, and a trim that dropped an outside version recorded between two at the key's own directory would thaw the entry (measured before the rule: the next boundary read the file again and the check listed nothing). `listFrozenFileHistoryEntries(store, scope)` answers which files of a session are frozen, read-only, from the store's export. A store's own `trackEdit` keys a file by its real path, as the engine's write tools do: through a link out of the root, the outside file's absolute key; through a link inside it, the real relative name — so from this release no one mints a new such entry, and the judgment reads only what older engines (≤ 7.68.2) and older host calls left.
1057
+ - **Narrowings (open to veto @server @cli @client-core).** ① The shape 7.68.2's G7 pinned — an entry 7.68.1 left through a link kept inside the root, then a turn under a directory below, then a rewind at the first root to that turn: restored (the outside file written) before; now left as it is and listed, zero writes. When the model edited the file through Write in between, that edit is its own entry under the real path, which a rewind writes — so the frozen row cannot be listed as left and is refused `link_safety` (#4500's narrowing below: a run that accepts no partial restore moves nothing and names the file; the verb answers `partial`). Criterion G7 flips from "restored as it was then" to "left, zero writes, named" (the person's edit) and "refused, named" (the model's edit). ② History imported for a key through a link that stays inside the root (`inl/g.txt`, `inl` → `real/`): restored before; frozen at the first boundary that records its place (`real/`), from then on left and listed (measured, both stores). ③ One version through a link freezes the whole entry: a rewind to a turn whose version was recorded at the key's own directory leaves it too (measured on a v7.68.1 row whose directory was later replaced by a link out of the root, and on a planted row). What a person sees in all three: the rewind completes, those files keep their current bytes, and every answer names them; the way to know beforehand is the read-only check.
1058
+ - **Widened (open to veto @server @cli).** With the link removed or a real directory in its place, 7.68.2 refused such an entry `recorded_elsewhere`, so a run that does not accept a partial restore moved nothing and failed `rewind.restore_failed` (measured on the test lane's shape: 12 / 12); now the entry is frozen, not refused, so that run restores every other file and completes, naming the frozen one. The frozen file itself is untouched in both.
1059
+ - **Changed for hosts that call a store's `trackEdit` themselves (@cli @client-core @server).** A path spelled through a link is keyed by its real path (out of the root: the outside file's absolute key — it does not travel, and a rewind restores it there even after the link is removed, as for the engine's own tools; inside the root: the real relative name). A host that reads entries back by the key it spelled finds them under the real one. Two consequences side by side: a file a host touched through a link is written back by a rewind after the link is removed or re-pointed (7.68.2 refused it); and a retraction (`annulTrack`) without the proof read (no env IO by contract) finds no record under a link spelling and answers `{ ok: true }` — the same answer as a retraction that removed one — while the record stays, so a rewind to before that touch **deletes a file a person later created at that name outside the root** (measured, both stores; 7.68.2 keyed the record by the spelling, retracted it and deleted nothing — KL-4490-b, pinned as it stands, `test/backlog4490-annul-link-spelling.test.ts`). The way out: retract with the proof read (`verify.env`) or hand the real path. The engine's own seat hands real paths both times and is not affected; no repository calls a store's `trackEdit` / `annulTrack` directly today (read by the release's collecting leg) — @server: check any path of yours that does.
1060
+ - **Not changed.** Entries under an absolute key (the engine's Write / Edit through a link): restored as before, link kept or removed (measured). A session moved to a directory below or a sibling tree: its root-relative entries are read where they were recorded and restored at the first root as before (measured, both stores × three entries). A tracked file of the session's own swapped for a link (its place inside the root): held and refused `link_safety` as before. Versions with no place: as before (`place_unrecorded`). Same-directory spellings (`/tmp` alias, a root reached through a link, letter case, Unicode form): not frozen (pinned).
1061
+ - **Known limits.** KL-4490-a: an outside directory with the link's own name (`lnk` → `/elsewhere/lnk`) cannot be told from the root the row was recorded at — such a row is restored outside as before (measured); the everyday `ln -s ../shared` (no link name given, so it takes the target's) is this form, and so is a link whose target differs from the key's directory only in letter case (darwin and Linux) — all three as 7.68.2 (measured). KL-4490-b: above. KL-4490-c: a fork that has not yet run a turn answers `listFrozenFileHistoryEntries` empty and lists the frozen file only after its first turn (the carry is lazy; measured). KL-4328-h gains its other face: a v7.68.1 row whose own file was swapped for a link to an outside file stored the outside bytes under a version with no place — refused by default; a host that names the current root writes them into the root (measured; no mark on the version tells where its bytes came from, so this release does not close it). KL-4328-l is closed and kept only as a pointer.
1062
+ - **Rules.** The question "may this entry be read / written / exported" had three answers by seat (a boundary: the place as it stands; a restore: the place compared with where it would land; an export: the key's kind) — now one entry-only judgment is asked first at all four seats (+1 shared predicate, −0 seats; the three seat rules stay for entries that are not frozen). Keys: a store's `trackEdit` and the engine's write tools now follow one key law (−1 reading of "which key does a path through a link get"); +1 arm keeps an entry already tracked under the spelling it is handed (an unfrozen one standing where the file does — a directory renamed in letter case only), so one file keeps one entry.
1063
+ - **Pins.** `test/file-history-frozen-outside-entries.test.ts` — v7.68.1 rows (fixtures `test/fixtures/file-history-v7681-linked/`, written by the released v7.68.1 engine) × {link kept, removed, a directory} × three entries (no boundary read, nothing stored, a `leftAsIs` row of class `frozen_history` on the verb and the preview, `restore_left_as_is` on a run, zero writes, the export and the check), the notice once per session, the same rows planted in the in-memory store, a run that also meets a real refusal (it fails on that refusal alone; the detail carries the row apart and `leftAsIsCount`, the sentence names the key and the class's words, never the directory; the closed set), the older engine's row through a turn under a directory below × {the person's edit, the model's Write} × both stores × three entries, the mixed entry × both stores, never frozen (a root reached through a link, a key under the root, letter case, Unicode form, a POSIX backslash name, a win place, an absolute key, any version not only the latest, every directory of the key), a session handed a directory below × both stores × three entries, the two costs (an import through an inside link, KL-4490-a), the key law (out of / inside the root, the retraction with and without the proof read), the door and the check. `test/file-history-recorded-place.test.ts` — 7.68.2's link-led cells (KL-4328-l "as it stands" × {link removed, a directory}, the link-kept cell, and the G7 reference pin "a row an older engine left through a link kept inside the root …") are removed there; their shapes are pinned in the new file with the expectation above. Compliance kit: K3 (the key law), K4 (frozen through the import door). Mutations: `.gate-logs/mutations.md` of the car.
1064
+ - **Consumers.** @server: the SQL store's wiring — `restore` (≈ 5 lines), `exportHistory` (≈ 4), `annulTrack` with the proof read (≈ 2), zero for `snapshot` / `trackEdit` once on `fileHistoryResolveTrackedFile` / `fileHistoryTrackKeyForEdit`; K3 / K4 are proposed hard gates. @cli @client-core: render `leftAsIs` rows (key and class, and `place` if shown at all only to an operator; branch on `class`, a later release adds a word to the same closed set), the `restore_left_as_is` note and the `rewind.file_left_as_is` notice; a rewind answer `complete` with `leftAsIs` rows is a rewind that left those files. @test: G7 flips; the black-box cells are the three narrowings and the 7.68.1 correction above.
1065
+
1066
+ ### A file version recorded under a directory outside the root a rewind is handed is left as it is, not refused — a session that moved to another directory, or a fork at another root, rewinds again after the old directory changes or is removed (#4500, P1; behavior change; widening: one, below, open to veto @server @cli @client-core); the preview is never `null`, carries its plan's refused and failed rows, and a restore refused on its plan says it is `terminal` (#4530; hard-breaking: three, below, open to veto @server @cli @client-core; closed sets: `FILE_HISTORY_LEFT_AS_IS_CLASSES` +`recorded_outside_root`; exports: none added or removed — two root types change shape, below; wire: `FileHistoryDiffStats` +`refused?` / `failed?`, `rewind.restore_failed` `detail.permanence` on a plan's refusal)
1067
+
1068
+ - **Before (7.68.2, measured; the regression 7.68.2 brought and its notes did not list).** A version is restored only where it was recorded, and a boundary re-reads a tracked file there — so a session handed another directory (`!cd`, `/cd`, entering or leaving a worktree, another worktree of the same repository), or a fork run at another root, holds versions recorded in the old directory. Once a tracked file there changed after the rewind's target turn — or the old directory was removed, the usual end of a merged worktree — every rewind in the new directory refused those files `recorded_elsewhere`: the verb answered `partial`, and `rewindFilesTo` / `resumeAt` + `restoreFiles` failed the whole run (`rewind.restore_failed`, nothing written) unless the spec accepted a partial restore. With the old directory removed, 50 tracked files were 50 refusals. A change before the target turn did not trigger it (the boundary had read it); an unchanged old directory rewound `complete`. The released tester's grid (fork × another root, an independent directory or a git worktree of the source's repository × five person actions × four entries × two stores = 80 cells) read 32 such refusals (the cells where a person changed the source's file after the fork's turn, and the rewinds to the turn before the fork; measured again here on this release's base: 32 red, 48 green).
1069
+ - **Rule.** Where a version lies is one of three facts, in this order: its own directory is where the rewind lands it ⇒ converge it; its own directory already holds it ⇒ `identical`; else nothing is written for it, and the directory it was recorded under decides only HOW that is said — outside the root the rewind is handed (real paths) ⇒ the file is left as it is (`leftAsIs`, class `recorded_outside_root`, `place` = the file's own directory) — so long as no file this rewind writes, deletes or re-modes lies, by its real path, under the root that version was recorded under (its old root: `place` with the key's directory segments taken off, so `d/f.txt` recorded in `R1/d` has the old root `R1`) and outside the rewind's own root; a rewind handed that old root restores it. A rewind that would restore another file there (the session edited a same-named file there after moving on, keyed by its absolute path; the same file under its absolute key; a change of mode alone counts) refuses every row of that old root `recorded_elsewhere` instead, judged once over the whole restore, plan and restore alike (`withRewindFiles`). Where a written file lies is its directory's real path as the restore's own preflight read it (no second read), joined with its last segment: a key spelled through a link or with its directories in another letter case — one an engine ≤ 7.68.3 minted for a host's own `trackEdit`, kept in a persistent store — is judged where its file really lies (measured, planted, both spellings × the run and the preview; before this was ruled, measured by the collecting leg: a run completed, wrote that file back over a person's edit and listed the old root's other row as left as it is, where 7.68.3 refused). A store that writes around the shared restore half states no real path, and each such write counts as moving every left row. The rewind's writes in its own root are its own work and never count, also when the old root holds that root (a session checkout inside the repository it was cut from: the repository's file stays left as it is while the checkout rewinds — measured, the #4280 pins); inside it (an earlier leg's directory below or above this one) ⇒ refused `recorded_elsewhere` with `recordedUnder`, as before. A root whose real path cannot be read keeps every such version refused. One judgment in the shared restore half (`applyFileRestoreViaEnv`), which answers the first as its own arm.
1070
+ - **Now (measured).** The grid's 80 cells: every one `complete` on the verb and `completed` on the three run entries; the 32 cells that refused now list the old directory's files in `leftAsIs` (the preview names the same rows), the run says so (`restore_left_as_is` note: the keys, no directory) and the person is told once per file (`rewind.file_left_as_is`); the old directory is never written and the new one never receives its bytes (every cell checks both directories byte by byte). The old directory removed (50 files): `complete`, 50 rows left, the directory not recreated. A session that worked in more than one directory and edited a same-named file in each (R1 → R2 → R3, or back to R1 after R2 was deleted; the later same-named files are keyed by their absolute paths): a run that would restore R2's own file refuses R2's other rows and moves nothing — it neither writes a person's later edit there over nor recreates a deleted R2; the verb restores what it can and names the refusal, as 7.68.3 did (measured, both stores, `rewindFilesTo` / `resumeAt` / the verb / the preview; before this was ruled, measured by the collecting leg: a run completed, wrote R2's file over the person's edit or recreated R2, and listed R2's other file as left as it is). The old directory still in use by the fork's source: the source's later edit stands. The old directory replaced by a same-named file: every later boundary is recorded (before: each failed `snapshot_failed: … not_directory` and the person was told every turn could not be rewound to — the capture now reads `not_directory` as absent, the one reading of an absence the shell read station already uses, `isAbsence`, and the restore reads an absence the same way), and a rewind leaves the file the old directory held, the file at its path untouched. A tracked directory of the rewind's own root replaced by a file (d, holding the tracked d/f.txt): a rewind to the turn whose boundary recorded d/f.txt absent finds it absent the same way — `complete` / `completed`, the rest restored, d left as the file it is (measured, both stores; before the restore shared the reading, measured by the collecting leg: a run wrote e.txt and then failed `terminal`, the verb answered `partial` with `remove: not_directory`). A left row beside a real refusal (a link where a file was): the run still fails on that refusal, nothing moved, the detail carrying both.
1071
+ - **Not changed.** The two wrong writes 7.68.2 closed stay closed (a version recorded under the old directory's root-relative key is never written there by a rewind handed another root; never its bytes into the new one — asserted in every cell above). A boundary still re-reads a tracked file where it was recorded (reading only under the leg's root would let a rewind back at the old directory write older bytes; the pin "K1 the other way" holds it): 50 files recorded at the old directory cost a boundary 50 reads there and none in the new one — the same count as a session that never moved (measured on both bundled stores, one boundary over 50 files: 100 `canonicalPath`, 100 `fileInfo`, 50 reads and 14–20 ms in the test container either way). The ancestor forms — the recorded directory lies under the root the rewind is handed (a session moved from a directory to its parent, or from a parent to a child it recorded under) — are refused `recorded_elsewhere` as before, nothing written (pinned; how to read them is #4534).
1072
+ - **Not made better by this release (@server @cli @client-core): one file edited from both directories.** A session handed a new directory edits a file in the old one by its absolute path (the file is then tracked under two keys: the name it was recorded under in the old directory, and its absolute path), then rewinds to a turn before the move: `rewindFilesTo` / `resumeAt` + `restoreFiles` still move nothing (refused on the plan, `recorded_elsewhere`, `permanence: "terminal"`) and the verb still answers `partial` (the file written back by its absolute key, the old name refused) — the same as 7.68.2 (measured on this release's base and here, both stores, `rewindFilesTo` / `resumeAt` / the verb; with the rule removed a run completed and wrote the old directory's file to a state that was neither the turn's nor as it stood). The rule is on the member, not the class: a row is in `leftAsIs` only when the restore wrote, deleted and re-moded nothing under the root its version was recorded under (judged once, in the engine, for the plan and the restore alike — the preview names the same refusal); here the other key writes that same file, which lies under it, so the old name stays a refusal. The old root is the row's `place` with its key's directory segments taken off, and a write lies under it by the one containment reading of a rewind, both sides real paths. The way out (measured): the same rewind handed the old directory (`rewindFilesTo` from there) restores the file to that turn. Reached through a link to the old directory, or spelled in another letter case on a case-insensitive volume: the same (the model's edit keys the file by its real spelling; measured — the case form on macOS); the same for a second key an engine ≤ 7.68.3 minted for a host's own `trackEdit` through a link or in another letter case (its write is judged by its real path — measured with such a key on another file of the old root, planted). A frozen row is compared with its whole file: a live key whose last segment alone is spelled in another letter case is not seen (KL-4500-b; read from code, not measured).
1073
+ - **Narrowing (open to veto @server @cli @client-core @test): a file an engine ≤ 7.68.1 edited through a link in the project, and the model edited again after upgrading.** The old record is frozen (#4490: never written through the link); the model's later edit keys the same file by its real path. On 7.68.2 a rewind wrote both keys — the link's last — and restored the file to that turn (measured: the turn's bytes every time, `complete` / `completed`). From 7.69.0 the frozen record is refused `link_safety` whenever the live key would write, delete or re-mode that file — a change of mode alone counts (measured by the collecting leg: the same file set back to its bytes with another mode, which 7.68.3 re-moded and answered `complete`, is refused here): a rewind entry that accepts no partial restore (`rewindFilesTo`, `resumeAt` + `restoreFiles`) fails the whole run, writes nothing and names the file; the verb (`Runner.rewindFiles`) and a spec that accepts a partial restore answer `partial`, write the file under the live key alone — which can be a version that is not that turn's (measured: when the file changed during the frozen period before the model's edit, the live key's first version is the frozen period's last state) — and name the file among the refusals. Without the rule (this engine before it, measured) such a rewind answered `complete`, listed the file as left as it is, and wrote that wrong version. No way out in this release short of restoring the file by hand; #4534 (7.70.0) merges the two keys and restores the frozen entry's versions under the real path. The two classes are refused with their own words for their own reasons: an outside-root row's own key is trusted and its refusal is what 7.68.2 answered (`recorded_elsewhere`); for a frozen row 7.68.2 wrote both keys, and both a refusal and a silent wrong version are worse than that — the refusal at least says so.
1074
+ - **Widening (open to veto @server @cli @client-core).** A run that accepts no partial restore now runs when the only files it cannot restore were recorded outside its root and, outside its own root, it restores nothing else under the roots they were recorded under — the note, the notice and the preview say which files stayed (each sentence about that file only, never about the directory). When it would restore another file under such a root (a session that worked in more than one directory and edited a same-named file in each), it is refused as on 7.68.3.
1075
+ - **The run's refusal no longer promises a member a host may not offer.** A plan that would refuse or fail a file says the rewind that restores the rest and answers the ledger is `Runner.rewindFiles`, and that a run spec accepting a partial restore (`acceptPartialRestore`) does the same where its host offers that member. Forms that still fail a whole run that accepts no partial restore: a refusal of any class (`link_safety`, `base_unavailable`, `key_unresolvable`, `place_unrecorded` — an older engine's or an imported version with no directory named — and `recorded_elsewhere` in the ancestor forms), a failed row on the plan (a version record or its bytes gone), a plan that fails as a whole, and a write that fails after the plan passed.
1076
+ - **The `place_unrecorded` row's sentence no longer promises an input the host may not offer (@server @cli @test).** Old: "… it was not written; a host that knows the directory this session's earlier legs ran in names it as unplacedHistoryRecordedUnder". New: "… it was not written. A rewind input can name the directory such versions were recorded under (unplacedHistoryRecordedUnder, on a run spec and on Runner.rewindFiles) where the host offers it; without it, a rewind to a turn recorded since places were kept restores this file (each boundary since records its place), and this turn's version stays out of reach" (read from code: both stores version a file again at a boundary whose place differs from its last version's, `placeProvenDifferent`). A reason is prose — branch on `class`; no repository asserts the old words (searched, `git grep -P` with a positive control, on the local checkouts; the test repository's repro notes quote them).
1077
+ - **#4530 — the preview answers what the restore would.** (A) A plan that fails as a whole (a damaged or unreadable boundary, a store fault) is thrown as the restore throws it — `rewind.restore_failed` with the store's `code` and `permanence` on `detail` — never `preview: null`; the preview no longer probes `canRestore` first (which said "no usable boundary" for a damaged one as for a missing one), so a boundary that is not there (never made, reaped, an entry outside the session's own log) stays `rewind_snapshot.unresolvable` and a damaged one is the restore's failure, on the preview and the restore alike. (B) The preview carries the plan's `refused` and `failed` rows under the restore result's own names (a row that fails before any write — a version's bytes gone — was on no preview list before): both empty is a complete plan; `leftAsIs` rows do not make it incomplete. (Retry class) A run refused on its plan carries `detail.permanence: "terminal"` and no `code` (the store did not fail; the same rewind against the same tree plans the same); a store's own failure keeps the store's `permanence`, on the preview and the restore alike. A run whose restore plan passed and whose write then failed (the tree partly restored) is `terminal` too: do not send it again on its own — a person decides (measured: a repeat skips the files already restored by content and writes the rest, and writes over a file a person changed between the two sends). `permanence` on `rewind.restore_failed`, in words: absent = nobody judged; the store's word = the store's fault; `terminal` from the run = stop, a person decides.
1078
+ - **#4530 — `outsideRoot` on every row (additive; @client-core @server @cli).** Every `files` row and every `leftAsIs` row the engine answers — on the preview, the restore, and `rewind.restore_failed`'s `detail` — states `outsideRoot: boolean`: whether the row's target lies outside the root this rewind is handed (for a `files` row its `targetPath`, for a `leftAsIs` row its `place`). Present on every row from this release, `true` or `false`; absent = an engine before 7.69.0 (read it as "not said", never as "inside"). Orthogonal to the row's action: a write, a delete, a refusal, a failure after a write landed, a row left as it is can each be `true` — the typical one is a file the session edited outside its root (keyed by its absolute path, written back by a rewind), whose path stays absolute; a shell shows the bit, never a directory computed from it. `leftAsIs` of class `recorded_outside_root` is always `true`; of class `frozen_history` the fact (a link inside the root that led out of it ⇒ `true`; one that led to another directory inside it ⇒ `false`) — read the bit, not the class. One containment reading for both judgments (the one the restore uses to leave a version recorded outside the root). Types: optional on the shared row types (`FileHistoryRewindFile`, `FileHistoryLeftAsIsFile` — a store's own rows leave it out), required on `Runner.rewindFiles`' preview and restore answer.
1079
+ - **Hard-breaking (open to veto @server @cli @client-core).** (1) *Preview of a failed plan:* `Runner.rewindFiles({ dryRun: true })` answered `{ dryRun: true, preview: null }` (a success) for a plan that failed as a whole; it now throws `rewind.restore_failed`. An older client that read `null` as "no preview here, restore directly" now sees an error carrying the store's code and permanence — where the restore would fail the same way. The answer's type narrows: `preview` is `FileHistoryDiffStats` with `files`, `refused` and `failed` always present (readers compile unchanged; a `null` check is dead). `null` keeps one meaning in the wire's history: an engine ≤ 7.67.3 whose store had no preview verb. A store's own optional `diffStats` keeps its two-state law (`null` = unavailable). *The answer's type, member by member (#4530):* in `RewindFilesResult` the `dryRun: true` arm's `preview` is no longer `| null`, its `refused` and `failed` are required, and its `files` (each row with a required `outsideRoot: boolean`) is required; the `dryRun: false` arm's `restore` carries `files` (each row with `outsideRoot`) as a required member, where `FileHistoryRestoreResult` keeps it optional. *Who is hurt by the type:* code that builds a `RewindFilesResult` itself — a double of `Runner.rewindFiles`, a fixture, a host façade that re-answers it — is compile-red until it states those members; code that only reads the answer is not. *What to do:* return the engine's answer as it is, or give a hand-built one `files` with `outsideRoot` on every row (and `refused` / `failed` on a preview). (2) *The shared restore half's answer:* `FileRestoreApplyOutcome` gains `{ outcome: "left"; left: { class: "recorded_outside_root", place, reason } }`, with no top-level `reason`, so a backend whose outcome chain ends `else failed.push({ path, reason: applied.reason })` does not compile until it takes the arm — the line to add before that `else`: `else if (applied.outcome === "left") (ledger.leftAsIs ??= []).push({ path: key, ...applied.left });` (@server: the SQL store's `restore`; a backend that compiles anyway — an untyped one — answers those files `failed` and the run refuses as before). (3) *The closed set:* `FileHistoryLeftAsIsClass` gains `recorded_outside_root`; an exhaustive `switch` over it does not compile until it handles the word (@cli @client-core: the rewind result's and the preview's `leftAsIs` rows, the `rewind.file_left_as_is` notice's `detail.class`).
1080
+ - **Known limits.** KL-4500-a (#4534): one file under two keys (recorded at a directory, then edited again from its parent) — the plan refuses the first key while the restore, converging the second first, finds it identical: a run is refused where the verb completes (pinned, both stores). #4505 (an entry an older engine carried under an absolute key, then edited by the fork itself) is unchanged here: KL-4328-d.
1081
+ - **Rules.** Readings of "a version recorded under another directory": one (refused) → two by one predicate (outside the root ⇒ left; inside ⇒ refused), both writing nothing; whether a left row stays left: one judgment over the whole restore (an outside-root row speaks for its old root, a frozen row for its file — nothing moved there, else refused; one mechanism, a scope and a word per class); an absence: one reading (`isAbsence`) for the capture and the restore; readings of a failed plan: two (the run threw, the preview answered `null`) → one (`refuseFailedPlan`, thrown alike); the preview's rows: the plan's own members, no second set; the permanence of `rewind.restore_failed`: the store's when it stated one, else the engine's judgment of a plan's refusal — one member, one mint (`restoreFailedError`).
1082
+ - **Pins.** `test/backlog4500-reroot-left-as-is.test.ts` — the 80-cell grid (after the released tester's), the complement (no fork with the old directory edited, removed, turned into a file, still in use; a root below; a root above, refused; a left row beside a real refusal; the notice once), the ancestor forms with two other readings measured beside them, the two-keys limit, the #4505 readings, the boundary's cost. `test/backlog4500-alias-two-keys.test.ts` — one file under two keys with the first recorded outside the root (by its absolute path; through a link to the old directory; another letter case on a case-insensitive volume, measured), each read on the base, with the rule removed and here, both stores × `rewindFilesTo` / `resumeAt` / the verb; fifty rows left at a deleted root beside an unrelated outside write; every left row's file holding its bytes on disk. `test/backlog4500-frozen-alias.test.ts` — a frozen row and the file's live key on the same file (c1, c2), read on v7.68.2 and here; the live key spelled through a link to the frozen row's file (planted). `test/backlog4500-old-root-scope.test.ts` — a session that worked in more than one directory (three roots, a person's edits or R1 and R2 deleted, to turns 1 and 3; back to R1 after a deleted R2, to turns 1 and 2; the old root's file in a subdirectory) × both stores × the preview / `rewindFilesTo` / `resumeAt` / the verb, every watched path on disk; an old root that holds the rewind's own root (its own writes do not count; a write elsewhere under it does); an old root inside the rewind's root (its versions refused, the ancestor form, never left); a key spelled through a link or with its directories in another letter case (planted; the real path as control) × the run and the preview; a tracked directory of the rewind's own root replaced by a file; an absence at a version's own place (a link into a regular file there) read as the capture reads it, alone and beside a write under the old root; the way out naming the old root and restoring the file when followed; a change of mode alone moving the old root's file. The 80-cell grid logs each cell's reading (`[c4500-grid …]`), compared before and after this rule. `test/backlog4530-rewind-preview-plan.test.ts` — a damaged boundary and a store's failure × permanence on the preview and the restore, the preview's rows against the restore's, a complete plan, `terminal` on a plan's refusal, a repeat after a partial restore, the two ride-along readings; `outsideRoot` on every row whatever its action (the store's answer crafted for the left rows), and a write under a left row's old root that landed while the store answered it failed still refusing the row, beside a store writing around the shared half (every left row refused). Re-pinned (outside-root rows left, not refused): `test/file-history-recorded-place.test.ts`, `test/file-history-store.test.ts`, `test/rewind-files.test.ts`, `test/backlog4280-null-leg-history-root.test.ts`, `test/backlog4276-rewind-session-root.test.ts`, `test/backlog4280-fork-checkout-off.test.ts` (the refusal tail's sentence), `test/file-history-frozen-outside-entries.test.ts` (the closed set). Compliance kit: the moved-root, E4 and named-directory cells read `leftAsIs` (`recorded_outside_root`) where they read a refusal, and E4 gains the inside-the-root refusal.
1083
+ - **Consumers.** @server: the SQL store's `restore` takes the `left` arm (one line, above) — the kit's moved-root, E4 and older-versions cells fail until it does; the kit's new FC cell is a hard gate (the wiring correction above); the shared capture half now reads `not_directory` (and `name_too_long`) on a tracked path as absent, and the shared restore half reads it the same way — no code on your side, but readings change: a session whose old directory was replaced by a same-named file recorded no boundary and told `rewind.boundary_unrecorded` every turn, and now records one; its sync / HTTP preview now meets a thrown `rewind.restore_failed` where it met `preview: null`, and reads `refused` / `failed` on the preview body; no column or migration. @cli @client-core: render `leftAsIs` rows of class `recorded_outside_root` on the confirmation screen and the result by the file itself — the row's `place` joined with the last segment of its `path`, read through your own path seat: "⟨place⟩/f.txt — recorded in another directory; not restored here" (`place` is the file's own directory, so for a key in a subdirectory, `d/f.txt`, it already ends in `d`: "f.txt (in ⟨place⟩)" beside the key would name `d` twice) (the engine's sentences name the key alone and carry no path, so from them a person cannot tell which f.txt stayed when the rewind's own directory holds a same-named file it did restore — measured, the c154d form) — on 7.68.2 these same files arrived as `recorded_elsewhere` refusals; a preview that throws is the restore's refusal; a preview with `refused` and `failed` empty is complete; the type-level breaks above. @test: the 80 cells flip (32 refusals → `complete` / `completed` with the rows left), plus the preview cells.
1084
+ - **Consumers — the keys a reply table that lists every key must add (@server; `src/http/rewind-files-reply.ts`, whose `LeafTable` maps `-?` over the core types, so each new optional member is a compile error until the table takes it; read on the server's checkout pinned to 7.67.3).** On `FileHistoryRestoreResult` (the restore ledger): `files?` (7.68.0: `{ path, targetPath, action?, refused?: { class, reason, recordedUnder? }, failed?: { reason }, outsideRoot? }`) and `leftAsIs?` (7.69.0: `{ path, place, class, reason, outsideRoot? }`). On `FileHistoryDiffStats` (the preview): `files?` (7.68.0), `leftAsIs?` (7.69.0), `refused?` and `failed?` (7.69.0, the restore's own row shapes). On the row types: `outsideRoot?` (7.69.0, on `files` and `leftAsIs` rows). The leaves by kind: `path` and `targetPath` are file paths (your `rewind-ledger-path` seat, as `filesChanged`); `place` and `recordedUnder` are absolute directories of the machine the rewind ran on — the same kind of value as `targetPath`, so the same seat reads true (your call: the person is told "rewind from that directory"); `reason` is a sentence (`rewind-ledger-reason`; a `leftAsIs` reason names no path, measured); `class`, `action`, `outsideRoot`, counts: verbatim (closed sets: refusal classes as before; left-as-is classes `frozen_history`, `recorded_outside_root`). Your explicit `refused` mapping (`{ path, reason, class }`) compiles and drops `recordedUnder` and `action` (7.68.2). `preview === null` still compiles and no longer occurs (the engine throws `rewind.restore_failed`, hard break (1) above).
1085
+ - **Consumers — the refusal bodies, one reading point (@server; printed by `test/backlog4500-refusal-shapes.test.ts` on this tree, every cell measured; the member order is `restoreFailedError`'s, `src/core/runner/file-history-restore.ts`).** A run's refusal is `terminal: { kind: "failed", code, message, detail: { kind: "coded", detail: D } }`; the verb's and the preview's is a thrown `Error` with `code` and `detail: D` (the same `D`). `D` = `{ code?, permanence?, filesChangedCount, refusedCount, failedCount, leftAsIsCount?, refused, failed, files?, leftAsIs? }` — `code` is present only when the store failed the operation (its own code), `permanence` is the store's word when it stated one, else `"terminal"` when the run stopped the restore, `"transient"` when the session's row could not be read, else absent; `refused[]` = `{ path, reason, class, action?, recordedUnder? }`; `failed[]` = `{ path, reason }`; `files[]` = `{ path, targetPath, action?, refused?: { class, reason, recordedUnder? }, failed?: { reason }, outsideRoot }`; `leftAsIs[]` = `{ path, place, class, reason, outsideRoot }` (present, with `leftAsIsCount`, only when a row was left). A row left as it is carries its directory as `place` and no path in its `reason`; the engine's sentences about it (the row's `reason`, the `restore_left_as_is` note, the `rewind.file_left_as_is` notice) carry no path either — render it by the file itself, the row's `place` joined with the last segment of its `path`, through your own path seat: "⟨place⟩/f.txt — recorded in another directory; not restored here" (@server @cli; `place` is the file's own directory, so for a key in a subdirectory it already ends in that subdirectory).
1086
+
1087
+ | the rewind | a run that accepts no partial restore (`rewindFilesTo`, `resumeAt` + `restoreFiles`) | the three counts in `D` (`filesChangedCount` / `refusedCount` / `failedCount`) | the verb (`Runner.rewindFiles`) | the preview (`dryRun: true`) |
1088
+ |---|---|---|---|---|
1089
+ | no boundary for the entry (the store answers `not_found`) | `code: "rewind_snapshot.unresolvable"`, no `detail` | absent (no `D`) | throws the same, no `detail` | throws the same, no `detail` |
1090
+ | the plan (or, for the verb, the restore) fails as a whole — a store fault (measured: a damaged boundary) | `rewind.restore_failed`; `D` has `code` (the store's, e.g. `"restore_failed"`) and its `permanence` (e.g. `"terminal"`), `refused: []`, `failed: []`, `files: []` | present; 0 / 0 / 0 measured — they copy the store's own failed answer, which the two bundled stores give before any file (read from code) | throws `rewind.restore_failed` with the same `D` | throws the same, `D` identical |
1091
+ | the plan would refuse or fail a file | `rewind.restore_failed`, nothing written; `D` has no `code`, `permanence: "terminal"`, the plan's `refused` / `failed` rows, `files` = what the rewind would have done per file (refused rows marked) | present; `filesChangedCount` always 0 (nothing moved: the detail is minted from the plan with its writes emptied); `refusedCount` + `failedCount` ≥ 1, either can be positive (measured 0 / 1 / 0) | answers `{ dryRun: false, restore: { outcome: "partial", … } }` — the rest written, the same rows | answers `{ dryRun: true, preview: { filesChanged, insertions, deletions, files, refused, failed, leftAsIs? } }` |
1092
+ | the plan passed, a write then failed | `rewind.restore_failed`; `D` has no `code`, `permanence: "terminal"`, `failed` = the file that did not land, `files` = the rows of what landed | present; `filesChangedCount` = what landed (can be positive; measured 1); `failedCount` can be positive (measured 1); `refusedCount` can be positive when a file changed between the plan and the write (read from code) | answers `partial` with that `failed` row (no throw) | answers the plan (a plan writes nothing, so it does not meet the failure) |
1093
+ | the session's row cannot be read (the session store does not answer; the history has no address) | `rewind.restore_failed` with the same `D` on `terminal.detail.detail` (read from code: the run's restore seat throws the same mint when its row read faulted; not driven here) | present; 0 / 0 / 0, always (nothing planned) | throws `rewind.restore_failed`, `D` = `{ permanence: "transient", filesChangedCount: 0, refusedCount: 0, failedCount: 0, refused: [], failed: [] }` (no `code`, no `files`) — before 7.69.0 this one threw with no `detail` at all, so a reader that defaults a missing `permanence` read it however it defaulted (#4275) | throws the same, `D` identical |
1094
+
1095
+ The two forms that this release turns from a row left as it is into a refusal, as a run's `D` reads (verbatim from the pins' output; temporary directories as they ran): one file under two keys outside the root (the same refusal as any row whose old root the rewind writes under outside its own root) — `{"permanence":"terminal","filesChangedCount":0,"refusedCount":1,"failedCount":0,"refused":[{"path":"f.txt","reason":"not restored: this rewind restores another key's file under /tmp/c4500-al-Yt7te3/A, where this version was recorded, so it does not leave this one behind as it is; rewind from /tmp/c4500-al-Yt7te3/A to restore it","class":"recorded_elsewhere","recordedUnder":"/tmp/c4500-al-Yt7te3/A"}],"failed":[],"files":[{"path":"/tmp/c4500-al-Yt7te3/A/f.txt","targetPath":"/tmp/c4500-al-Yt7te3/A/f.txt","action":"write","outsideRoot":true},{"path":"f.txt","targetPath":"/tmp/c4500-al-Yt7te3/B/f.txt","refused":{"class":"recorded_elsewhere","reason":"not restored: this rewind restores another key's file under /tmp/c4500-al-Yt7te3/A, where this version was recorded, so it does not leave this one behind as it is; rewind from /tmp/c4500-al-Yt7te3/A to restore it","recordedUnder":"/tmp/c4500-al-Yt7te3/A"},"outsideRoot":false}]}`; a frozen row with the file's live key — `{"permanence":"terminal","filesChangedCount":0,"refusedCount":1,"failedCount":0,"refused":[{"path":"lnk/f.txt","reason":"not restored: its history was recorded through a link (frozen) and the same file is tracked a second time under its real path, whose version may not be this turn's; restore it by hand if it must be","class":"link_safety"}],"failed":[],"files":[{"path":"/tmp/c4500-fz-b8Mryx/out/out/f.txt","targetPath":"/tmp/c4500-fz-b8Mryx/out/out/f.txt","action":"write","outsideRoot":true},{"path":"lnk/f.txt","targetPath":"/tmp/c4500-fz-b8Mryx/r/lnk/f.txt","refused":{"class":"link_safety","reason":"not restored: its history was recorded through a link (frozen) and the same file is tracked a second time under its real path, whose version may not be this turn's; restore it by hand if it must be"},"outsideRoot":false}]}`. These two rows carry no `action` (a row left as it is never knew one); the frozen one carries no `recordedUnder` (its directory was reached through a link). In both, the `files` row of the other key reads `action: "write"` — what the plan would have done had the run accepted a partial restore; nothing was written (`filesChangedCount: 0`). A third, unchanged in class but with the new sentence — a version recorded under a directory inside the root, the same name in the root written by another key (the c154d form with R1 inside R2; the temporary directory printed as `<W>`): `{"permanence":"terminal","filesChangedCount":0,"refusedCount":1,"failedCount":0,"refused":[{"path":"f.txt","reason":"not restored: this version belongs to <W>/R2/R1/f.txt, where it was recorded — a file is restored only there; rewind from <W>/R2/R1 to restore it","class":"recorded_elsewhere","action":"write","recordedUnder":"<W>/R2/R1"}],"failed":[],"files":[{"path":"<W>/R2/f.txt","targetPath":"<W>/R2/f.txt","action":"write","outsideRoot":false},{"path":"f.txt","targetPath":"<W>/R2/f.txt","action":"write","refused":{"class":"recorded_elsewhere","reason":"not restored: this version belongs to <W>/R2/R1/f.txt, where it was recorded — a file is restored only there; rewind from <W>/R2/R1 to restore it","recordedUnder":"<W>/R2/R1"},"outsideRoot":false}]}` — both `files` rows carry the same `targetPath` (where each key would land); the refused row's sentence names the file its version belongs to, so the run's sentence names `<W>/R2/f.txt` once, after "would write".
1096
+ - **The sentence for a file tracked under two keys says first that it was not restored (@server @cli @test).** In a refused run the same file was named twice — "would write" under one key, refused under the other — in a sentence of 85 words (measured by the test repository). The refused row's reason is now one sentence: not restored, why, the way out. Outside-root alias, old (7.68.2: the shared restore half's sentence for any version recorded elsewhere, which this form still met): "this version was recorded under ⟨dir⟩, and this rewind would write it at ⟨path⟩ — a file is restored only where it was recorded, so it was not touched; rewind from that directory to restore it" → new: "not restored: this rewind restores another key's file under ⟨old root⟩, where this version was recorded, so it does not leave this one behind as it is; rewind from ⟨old root⟩ to restore it" — one sentence for every row whose old root the rewind writes under outside its own root, the alias among them (the way out measured: the same entry handed that root restores the turn's bytes; ⟨old root⟩ is the row's `place` with its key's directory segments taken off, measured with `d/g.txt`). Frozen row: → "not restored: its history was recorded through a link (frozen) and the same file is tracked a second time under its real path, whose version may not be this turn's; restore it by hand if it must be" (no other way out in this release; new in 7.69.0). The shared half's sentence, for the refusals that are not an alias (a version recorded under a directory below or above this one), named where this rewind would land the file — and another key could write that very path in the same plan, so a refused run's sentence named one file twice, once refused and once "would write" (the test repository's c154d, on the released line through a SQL store: R1 beside R2, which this release leaves as it is instead — measured here, nothing refused, R2's file named 0 times; the same twice-named sentence measured here with R1 inside R2, both stores). It now names the file the version belongs to: old "this version was recorded under ⟨dir⟩, and this rewind would write it at ⟨path⟩ — a file is restored only where it was recorded, so it was not touched; rewind from that directory to restore it" → new "not restored: this version belongs to ⟨dir⟩/⟨name⟩, where it was recorded — a file is restored only there; rewind from ⟨old root⟩ to restore it" (⟨old root⟩ = ⟨dir⟩ with the key's directory segments taken off: for `sub/g.txt` recorded at R1, the way out is R1, not R1/sub — which is the very rewind that refused it; measured, and following it restores the file) (the landing path stays on the row as `files[].targetPath`, the directory as `recordedUnder`; measured: R2's file is named once, where the plan would write it). No repository asserts any of these sentences in code (searched, `git grep -P` with a positive control, on the four local checkouts); the test repository's c154d record holds the old shared sentence and is re-recorded against the new one (@test).
1097
+
1098
+ ### A model whose entry does not declare `reasoning` now gets the thinking tier its requester asks for on the agent loop's turns; a tried request that ends before the call keeps any of its output (substantive text or a finished tool call) is followed by the same request without the thinking keys, so on every such end trying leaves the call no worse than not trying — at most one request more; an endpoint that refuses the keys is remembered for the process after two such cures in a row, one whose tried request broke off after it began answering is remembered at once, and a conversation that asked for the tier is told (#2394)
1099
+
1100
+ - **Rule.** One fact, two readers. The entry's `reasoning` declaration (`capabilityOf`: on / off / absent) is read by `capabilityHeld` for the engine's OWN choices — the auto-mode classifier's tier, the compaction summary's tier and output floor, `selectModel`'s needs, the published tier tables (`reasoningEffortLevelsOf`, `thinkingOffSpelled`, `lowestReasoningSeat`), how the explicit `off` is spelled — where absent means not held, exactly as in v7.68.0 (the `engine` cell of `UNKNOWN_CAPABILITY_READS.reasoning` stays `not_held`); and by `capabilityTried` for sending what a REQUESTER asked for — the task's tier (or its role's, or the model entry's own `defaultThinking`) on a turn of the agent loop (the requester's main loop, or an agent loop it delegated to: the stream option `tryUndeclared`, which the loop alone sets) — where absent means TRIED. Every other request reads the declaration alone, exactly as in v7.68.0, whatever tier it names: the engine's own side requests (next-prompt suggestions, memory distillation, mods stations, side queries, the web-fetch summary, besides the classifier and the compaction summary) and a host's own call to a brain or to `applyReasoningToRequest`. A request that withholds reasoning is byte for byte the request v7.68.0 built.
1101
+ - **Invariant.** On every end before the call keeps output of the tried request (the line below), trying a tier the entry does not declare leaves the call no worse than the same call not trying it — the request v7.68.0 sent, with no thinking key. After that line the tried request's failures are the call's, as for any request (KL-2394-g): text already streamed is never sent again, and the endpoint is remembered at once (Memory). A TRIED request (an agent-loop turn on an undeclared model whose asked tier wrote a thinking key) that ends before the call keeps any output of it, however it ends — any HTTP status, a gateway's page, a redirect, an error frame (whatever its type, code or words), a 200 whose body is no stream (one JSON error object included), an empty stream, a reset, a tear, a first-byte or first-token stall, a host suspend, the output cap, a successful end with nothing in it (empty, whitespace only, thinking only — whatever stop reason the parser gives it, the recoverable `length` the loop grants its turns included: one fact, one exit), thinking or an unfinished tool call followed by any of these — is followed by the same request without the thinking keys (after the wait the response asked for — `Retry-After`, a rate limit's reset — read as the retry ladder reads it; else at once), built together with it from the same inputs at the call's start: the request the call sends when it tries nothing. From there the call runs exactly as an untried call runs from its start, every budget unspent (the retry ladder, the first-byte lane, the mid-stream tiers, the output-cap recovery), and its outcome is the call's: answered, or failed with THAT request's own error code, status, kind, provider condition and stamp (`provider_default` + `dropped`). Why the tried request failed is never judged. The tried failure is only noted after a failure's own words: ` — before this, the same request carrying the thinking parameters failed (HTTP <status> | [<code>]); the model's entry does not declare reasoning, so it was sent again without them` (no provider words of the tried failure ride in it). Not followed — the causes that are not the keys: a caller's cancel (nothing more is sent), a refused credential (401 / 403, or an error frame read as `auth`: the request without the keys carries the same credential — one request, v7.68.1's code, no frame), and a request the runtime refuses to build (nothing reached the wire; the request without the keys has the same destination and the same headers but for an engine-minted beta token). The output a call keeps is the line the mid-stream tiers already draw (`cutArmOf` "keep"): substantive text or a finished tool call — nothing else; a model that answers empty with the keys pays one request more. A response the provider ended (its end frame read) whose connection then breaks or stalls ends as it ended: kept if it holds output, otherwise no answer (billed at the usage its end reported). A tried request that reached the line was TAKEN — the endpoint serves the keys — and its later failures are any request's (the mid-stream tiers, as for a model that declares reasoning); text already streamed is never sent again (a consumer may have shown it). Below it the abandoned attempt is sealed as the tiers seal an attempt they re-send whole (an open thinking block gets its `thinking_end`; one `start` per call; an unfinished tool call was never handed over — the parsers hand a call over only finished, `toolcall_end`; the next attempt streams a fresh snapshot), so the message the call ends with — the one the loop stores — holds the request without the keys' answer only, none of the abandoned thinking or tool call.
1102
+ - **Streams (consumers; @server @cli @client-core).** The thinking deltas (and any text deltas that are only whitespace) a call streams before its `capability` status frame (`phase: "retrying"`, `errClass: "capability"`) belong to the abandoned attempt: the engine cannot take them back and does not change the stream; the message the call ends with holds none of them. A host that renders the stream as it arrives drops (or folds away) what preceded the frame; one that stores the final message needs nothing.
1103
+ - **Bound and spend.** At most one request more than v7.68.0's bound for the call: the tried request, spent outside every budget (e.g. `maxRetries: 2` ⇒ at most 4 requests on the connect ladder). The worst case of asking an undeclared model for a tier is paying for one abandoned request per call: it is billed beside the answer on the answer's left-behind list (the seat the failover decorator's gateways and the model lane's hops already use; the run's usage, cost and `brain.call` rows read it), with the usage its stream reported — the whole output cap, when thinking spent it — or, when it reported none (an HTTP failure; a tear or stall before the stream's end frame, whatever usage its opening frames reported — the mid-stream tiers' existing gap), as a lower bound (`usageMissing` on the turn and the leg). One `BrainStatus` frame (`phase: "retrying"`, `errClass: "capability"`, `attempt: 1`, `maxRetries: 1`, `errorStatus` only when a status stated the tried failure) as the fall-back begins; when the tried response asked for a wait, the fall-back waits it through the ladder's own wait (`sleepAnnouncingRetry`): the frame at once with `retryInSec` / `retryInMs`, again at every 30 s slice, a cancel during the wait ending the call at once with no request more. Never after a cancel or a refused credential. Over a task: each agent-loop turn is a call and pays at most one request more; a call whose tried request broke off after it began answering remembers the endpoint, so the loop's next turns pay none more (the previous revision tried the keys again on every turn: four keyed requests and a failed task where v7.68.1 sent one). Endpoints the memory never learns pay one request more on EVERY call, and nobody is told: a refusal in a 5xx, a gateway's page, a 429, a 400 / 422 with no readable error envelope (vLLM's top-level `{"object":"error","message":…}` body among them, KL-2394-a), a response asking to be retried (`x-should-retry: true`), or a chat-completions error frame in words the table does not hold.
1104
+ - **Memory.** Counted only from the endpoint's own refusal: a tried failure the endpoint stated in its own words before it produced anything (the readable error envelope of an HTTP failure, or of an error frame before any block, item or content; a page, a body cut short or stalled while read, states nothing) whose error code is `invalid_request` and which does not say the input is too long (the keys raise the output cap, so going without them can answer an overflow they did not cause), or one in the wordings that name the thinking parameters refused, whatever its status — answered by the request without the keys under the cap it was built with — the call keeping its output, the same line (thinking, or part of a tool call, then a failure is no answer) — (a retry of it counts; a re-shape of it does not — a lowered output cap, or fast mode's standard-speed re-send) — is one cure, counted once per call. A fall-back after a failure that refused nothing — a response that asks to be retried (`x-should-retry: true`, whatever its status), a 5xx, a 429, an overload, a page, a redirect, a body that was no stream, a tear, a stall — answers the call and counts nothing, so a transient failure that happens to land on the tried request can never teach an endpoint that it does not take the keys. The endpoint `(model id, wire family, url origin + path, the request's speed)` is remembered for the process after TWO cures in a row — what fast-speed requests taught holds for fast-speed requests only, and a standard-speed call to the same endpoint still tries the keys; a tried request that was taken there in between resets the count — and when the call that took it still ends in a failure the provider or the link produced (an error frame, a failed or stalled response: the message's `isApiErrorMessage`) or in a cut answer (a tear, stall or in-band overload whose text was kept as cut, a Responses `incomplete` with no reason this client recognises: `partialFinalized`), the tried request broke off carrying the keys: the endpoint is remembered AT ONCE, without the run of cures, its notice saying just that (KL-2394-i: one transient tear after text is enough). An end the model wrote itself — a refusal, a content filter (Responses' `incomplete` for `content_filter` included), an empty answer at the cap, a degenerate-repetition cut, a malformed tool call — is no break-off: nothing is remembered, and the next call tries the keys again (the memory is the process's, so one tenant's prompt must not cost every tenant the tier); a call that cured nothing leaves it as it was (cure, failed call, cure ⇒ remembered). Count and memory are one entry under one key; the 256-entry ceiling drops the least recently used entry, a read counting as a use whatever the entry holds (a count still short of memory too). A call reads the memory once, at its first build: what other calls teach the endpoint meanwhile does not move that call's requests, and its own tried request still falls back.
1105
+ - **With fast mode (#1579, same window).** One failure, one rule: a tried request that also carried the fast-speed parameter meets fast mode's rule first. A failure it claims (a 429 / 529, the 5xx it counts, a 400 naming fast mode) sends the same request again at once at standard speed with the thinking keys still in it — the request held for the fall-back is switched to standard speed with it — and is never read as a refusal of the keys (no cure, no notice); only a failure it does not claim is followed by the request without the keys, which keeps fast speed (a 400 in the thinking-refusal wordings: the keys go, fast speed stays, a cure is counted and told), and should that request then meet fast mode's rule it goes again at standard speed and its answer counts no cure — a re-shape, as a lowered output cap is. What a call changes stays changed — one set of overrides per call (the withheld set, the imposed output cap, standard speed) that every re-send is built from through one entry, so a fall-back never puts fast speed back and a standard-speed re-send never puts the keys back. Fast mode's rule leaving no re-send (no attempt left, or its rebuild declined) ends the call with the provider's failure as it is — the request without the keys is not sent either. When an endpoint pushes back on fast speed and refuses the keys too, the call pays three requests where each rule alone paid two (KL-2394-l); so does a call whose failure never gets better: it sends one request more before giving up than either rule alone (every request a 529, a 429 or a 500: 3 against 2 at `maxRetries: 0`, 5 against 4 at `maxRetries: 2`), since neither the standard-speed re-send nor the fall-back after it counts as an attempt — and with a `Retry-After` the fall-back waits once more (read from the code, not measured). `UNKNOWN_CAPABILITY_READS` is one table with a cell per reader that reads it (`image`: `engine` held; `reasoning`: `engine` not held, `requested` tried; `fast_mode`: `requested` not tried, no `engine` cell — the engine never chooses fast speed), and `fastModeUnavailableFor` reads fast mode's cell through `capabilityTried` instead of deciding an undeclared entry for itself; `capabilityHeld` / `capabilityTried` take only the capabilities that have their cell (a type narrowing of a 7.69.0 addition, no released signature moved).
1106
+ - **Before (measured on v7.68.0, stub endpoints, real brains, real Runner).** An undeclared model asked for `high`: no thinking key on any of the three wires; the run reported `effectiveReasoning: { requested: "high", effective: "provider_default", dropped: true }`. No tier asked: no key (unchanged now). Its classifier requests: no key, cap 2304, one per judgment.
1107
+ - **Now (measured on the branch head, same stubs).** Asked for `high`: completions `reasoning_effort: "high"`, Messages `thinking: { type: "enabled", … }`, Responses `reasoning: { effort: "high" }`; the run reports `effective: "high"`. Refused (400 / 422) and cured: two requests; the answer is the second request's (its usage; its stamp `provider_default` + `dropped`). Six calls to an endpoint that refuses the key with a 400: 2, 2, 1, 1, 1, 1 requests (8; keyless from the third call); six calls where only the first request was a one-off 400: 2, then 1 each WITH the tier. An endpoint that answers the keys with a 5xx, a gateway's page, an overload or an error frame and the request without them with an answer: two requests per call, answered (v7.68.0: one, answered; the previous revision: every call failed). The endpoint matrix (687 cells on real loopback endpoints: 36 shapes of what the endpoint answers the keys with × what it answers without them × three wires × `maxRetries` 0 / 1 / 2, each against v7.68.1): this head breaks none of the four columns — answered whenever v7.68.1 answers, the same error code / status / kind / condition whenever it fails, at most one request more, no key after the first request — but in the 18 cells that pair a tried request refused for its credential (401 / 403) with an endpoint answering the request without the keys, a pairing one credential cannot make: there the call fails as the credential's refusal (one request, `auth`), the exception ruled for a refused credential; where the endpoint refuses both (the pairing a credential makes) the call ends as v7.68.1's, one request. One request more in 624 cells, none more in 63 (the keys taken, and the refused credential). v7.68.1 sends no key in any cell. The read-only leg's 792 readings (264 cells × 3 runs: empty / thinking-only ends, text then a frame or a tear, 429 waits, transport, auth, redirects, stalls, memory, a real Runner): one request more in 612, none more in 180, never three more, and no request after the first carries the keys (the previous head: 6 readings with three more, 15 with the keys again — a real Runner re-trying every turn). A real Runner whose tried request streams one word and then breaks off with a server frame: on Messages and Responses the cut word is kept, the endpoint remembered, the next turn answered without the keys — the task completes with the result `"Hdone"` (the cut word, then the answer; two requests, the break-off notice), where v7.68.1 completed with `"done"` in one; on chat completions that frame fails the turn and the task (one request, result `"H"`), where v7.68.1 completed (KL-2394-g). The classifier on an undeclared model: v7.68.0's request bytes on all three wires, one request per judgment (a one-off 400 there asks the person, as before). The compaction summary's requests, the next-prompt suggestion pass (no key, never re-sent or counted: one task does not teach an endpoint), the published tables and `selectModel` on an undeclared entry: v7.68.0's. A brain called directly by a host with a tier on an undeclared model: no key, as in v7.68.0. No body is gathered or buffered: a 200 labelled `application/json` that carries a stream is read as it arrives, as any body is. A request that tried nothing (no tier, `off`, or reasoning declared off) is never sent twice by this.
1108
+ - **Notice.** `model.capability_downgraded` (`detail: { model, capability: "reasoning", status: "downgraded", sessionId, runId }`, audience user, once per conversation per model) only to a conversation whose call asked for a tier that did not take effect because the endpoint refused it or a request carrying it broke off — a cure on this call, or an endpoint remembered from earlier ones — once the request without it truly succeeded (the call kept its output); never for a fall-back after a failure that refused nothing, never to a conversation that asked no tier. The sentence names the tier ("Thinking tier \"high\" was not applied on model …"; after a break-off "… is no longer applied …": the call that broke off did carry it, which is what the run's `effectiveReasoning` — the leg's first request — reports, so the two agree), says what the endpoint did — refused the thinking parameters / refused a request that carried them, or "a request to its endpoint that carried the thinking parameters failed after it had begun answering" (never that the endpoint does not support thinking) — whether the next request tries again or the endpoint is now remembered until the process restarts (for a memory learned at fast speed: "on fast-speed requests (requests at standard speed are judged apart)"), and that the catalog entry belongs to the deployment (`reasoning: false` skips the attempt with them, `reasoning: true` makes such a failure the call's; for the Messages budget form also `compat.thinkingMode: "adaptive"`).
1109
+ - **Declared on and refused (loud).** A model that declares `reasoning: true` is never tried (it has nothing to fall back to) and nothing is withheld from it: a failure whose envelope (an HTTP body's, or an error frame's) states the thinking parameters refused, of a request that carried them, adds `— model "<id>" declares reasoning (Model.reasoning: true) and the endpoint refused the thinking parameters; nothing was withheld: correct the model's catalog entry or the endpoint`. The wordings read (`thinkingRefusalStated`, internal, any status): the reference's gateway token `capability_rejected: thinking_type:* | effort_unsupported`, the Messages sentences for `thinking.type … not supported` / `adaptive thinking is not supported` / the effort parameter, OpenAI `Unsupported parameter: 'reasoning_effort'`. The wordings decide no sending, for any model.
1110
+ - **Hard-breaking / behaviour (open to veto).** (1) *What changed:* a turn of the agent loop on a model without `reasoning` carries the thinking keys of a tier its requester asked for (the task's, its role's, or the entry's `defaultThinking`); every other request (the engine's side requests, a host's direct brain call) does not. *Who is hurt:* a deployment whose endpoints reject thinking keys and whose catalog omits `reasoning` while tasks ask for a tier — one more request on each call until the endpoint is remembered: two refused requests per endpoint per process when it refuses with a 400 / 422 or in the thinking wordings (one more after each restart), and one more request on EVERY call when it answers the keys with a server error, a page, an overload, a 429, a 400 / 422 with no readable envelope, a 200 that is no stream or a chat-completions error frame in other words (never remembered), each such call's usage a lower bound when the abandoned request reported none, and its whole spend billed when it did (thinking that spent the cap); a model that answers empty (or with thinking only) when given the keys — one more request on each call; a task whose tried request broke off after it began answering — that call ends as it ended (its text kept, cut, or its failure), the endpoint is then remembered; a host that pinned "undeclared ⇒ `provider_default`" on a task's `effectiveReasoning`. *How to migrate:* declare `reasoning: false` on such entries (nothing is tried). (2) `BrainRetryErrClass` gains `capability`. Readers that hold the closed set as an exhaustive table stop compiling or fail their gate until the word is added (read in each repo's local `origin/main`, not run): @server `test/probe-wire-1.test.ts:874` (`Record<BrainRetryErrClass, true>`); @client-core `scripts/run-engine-vocab-floor-test.mjs:822-850` (G2-d set equality with its own `retryStatus.d.ts`; `origin/main` 6673a459) and the mirror union it compares (`src/retryStatus.ts`, the `BrainRetryErrClass` members ending at `'output_cap'`); @sdk `packages/sdk/test/server-7132-wire.test.ts:444-454` (X2 set equality). The wire carries `errClass` as a string. (3) `model.capability_downgraded`: `detail.capability` gains `reasoning`, `detail.status` gains `downgraded`. The image half's public shape is unchanged: `imageWithholdOf` still answers `{ modelId, cause: "declared_off" }` and the engine-notice d.ts keeps the image paragraph word for word, so @server `test/doc-claims-upgrade-notes.test.ts:3111-3119` and @sdk `packages/sdk/test/server-7137-wire.test.ts:380` are not affected. No other reading moved: the provider dialect table is v7.68.0's, row for row, so every failure's `providerCondition`, `providerConditionSource`, error code and retry read as v7.68.0 read them.
1111
+ - **Unchanged.** `selectModel` and the published tier tables (`reasoningEffortLevelsOf`, `thinkingOffSpelled`, `lowestReasoningSeat`, and so the server's `/v1/models` `supportedEffortLevels` / `supportsThinkingOff`) answer exactly what v7.68.0 answered for an undeclared entry. A model that declares `reasoning` (true or false): its requests are byte for byte as before (36 goldens), and so is every request that is not an agent-loop turn (2163's brain matrix, direct brain calls: its v7.68.0 golden unchanged). The tried request draws on no budget of the call; every request after it draws on the call's budgets as an untried call's requests do.
1112
+ - **Additive.** Root exports `capabilityOf`, `capabilityHeld`, `MODEL_CAPABILITIES`, `CAPABILITY_DECLARATIONS`, types `ModelCapability`, `CapabilityDeclaration`. `ApplyReasoningInput.withheld?` (present = an agent-loop turn's request: the requester's reading; a set naming `"reasoning"` makes it the declaration's). `SimpleStreamOptions.tryUndeclared?` (set by the agent loop on its turns; a host leaves it absent).
1113
+ - **Known limits.** KL-2394-a (refusals the memory does not read: recovered on every call, one request more each time, never remembered or told — vLLM's top-level error body and `x-should-retry: true` among them) · KL-2394-b (the memory's unit is the process) · KL-2394-c (a refused `thinking.type: enabled` withholds thinking instead of switching to `adaptive`) · KL-2394-d (images) · KL-2394-e (the memory is not persisted) · KL-2394-f (only agent-loop turns try: the engine's side requests and a host's own calls never do) · KL-2394-g (the line: a failure after the call kept text is the call's — on chat completions an error frame after text fails the call, where v7.68.1 answered) · KL-2394-h (a 200 JSON error body reads as it did before — a stream with nothing in it — on every request; the fall-back covers it, its words never reach the failure) · KL-2394-i (one break-off remembers: a single transient tear or error frame after text stops this process trying thinking at that endpoint until it restarts; an end the model wrote itself does not) · KL-2394-j (a finished tool call followed by any error frame fails the call on all three wires: the cut-keeping tier reads substantive text only) · KL-2394-k (chat completions' in-band credential frames, a proxy 407 and a 400 "token expired" are not read as a refused credential, so they fall back: one request more) · KL-2394-l (fast speed and the keys both refused: three requests, the speed lowered first).
1114
+ - **Rules.** Fewer: no reader decides what an absent declaration means for itself — two named readers of one mint, each with one reading; the withheld request is the declaration's request (no third shape). Which requests try is one predicate at one place (the loop's turn marker, read by `requestWithheld`). Whether a request is sent again without the keys is decided by the outcome alone — the tried request ended before the call kept output (substantive text or a finished tool call; no end of any kind counts as output, so no output-cap or successful-end special case) — at the attempt's two exits (no response to stream; the stream ended), never by recognising a refusal; the causes not followed are one reader (the request a failure is followed by, or none: a cancel, a refused credential) read at both exits; the dialect table is v7.68.0's (no rows added, no optional condition, no verdict column), and one wording predicate is read for sentences and the memory only. One count-and-memory table.
1115
+ - **Pins.** `test/backlog2394-try-invariant.test.ts` (the invariant as a table: every tried-failure shape the read-only legs measured × what the endpoint answers without the keys × three wires × `maxRetries` 0 / 1 / 2, plus two stalls; every cell against the same call not trying — answered, error code / status / kind / condition, request count, the keys never back); `test/backlog2394-capability-try-then-withhold.test.ts` T1–T13 (loopback endpoint, the three real brains, a real Runner); `test/backlog2394-revision-leg-cells.test.ts` (the read-only legs' cells: classifier / summary / tables / turn bytes against goldens taken on v7.68.0, first-frame failures, the run of cures, other causes and every model's reading of their words, the frame, the notice, JSON-labelled streams, the fall-back's ladder and bound, the loop-only predicate through a real Runner with next-prompt suggestions, the declared-on sentence; the kept-output line at every exit — what the consumer's stream and the stored message hold on each wire, the abandoned request billed in the run's usage, the cap spent on thinking under the loop's grant, empty / whitespace / thinking-only successful ends (engine and Runner), an ended response that then tears, the cure and the taken read at the same line, a break-off remembered at once and its notice, the Runner turn after a break-off, a refused credential (a 401 / 403, or the stream's first frame: the untried call's own end, field for field), a 429's wait (told while waiting, through the ladder's wait; a cancel during it), a finished tool call alone or after whitespace taken and kept (and one followed by a server frame: the call's failure, remembered), a refusal / content filter / incomplete answer after the keys were taken remembering nothing (the next call keyed again), the notice after a break-off agreeing with `effectiveReasoning`, the re-shape after a fall-back staying keyless, the memory per model, a retry-asking or envelope-less 400, a read refreshing a count short of memory; with fast mode: the keys refused then the speed pushed back, the speed pushed back then the keys refused (both notices once each, real Runner), one failure both rules could claim lowering only the speed, a declined standard-speed rebuild ending the call, a 400 naming fast mode lowering only the speed and counting no cure, a 400 in the thinking wordings dropping only the keys and counting one); 1830 (the one table re-pinned) / 2163 (golden included) / 2232 / 2395 / 3998 / reasoning-intensity in their stage form.
1116
+
1117
+ ### When a request defers tools, the prompt and the search tool say where the deferred names are and how to activate them, and the prompt's deferred Workflow sentence follows the tools the request really defers (#2145; test pface1; behavior change: two model-facing sentences reworded, one prompt fact re-read; open to veto @cli @server @client-core @test)
1118
+
1119
+ - **Before.** (1) With Workflow deferred, the orchestration section said `… activate the tool (see the deferred-tools note) …`. No request contains a section with that name. (2) That section chose its deferred form from the caller's literal `deferTools` list. A Workflow that was listed but shipped inline (pinned by `alwaysLoadTools`, or no `ToolSearch` on the face) still got the deferred form: the 5.7K how-to was dropped, and the model was told to activate a tool through a `ToolSearch` the request might not carry. (3) The `ToolSearch` description opened with `Most tools start as name-only placeholders …`. Under the shell's assembly that is 8 of 21 tools.
1120
+ - **Now.** (1) `… It is a deferred tool: when a task genuinely needs orchestration and you do not have its parameters yet, activate it with ToolSearch({"query":"select:Workflow"}) and work from what the activation returns.` The sentence carries its own activation query and refers to no other section (zh-Hans rendering re-rendered). It makes no claim about whether the tool is loaded right now. The prompt is composed once per leg, and the tool can be activated mid-leg or start a continued leg already activated, so a "not loaded" claim would be false on those requests. (2) The deferred form is served exactly when Workflow is in the leg's deferred set, the set the request's placeholders are built from. The prompt and the tool list now read the same set. (3) The `ToolSearch` lead says where the names are, on all three activation modes (swap, static, activation required): `Deferred tools appear by name in your tools list, as placeholders whose description says "deferred" and that list no parameters (this keeps requests small); …`.
1121
+ - **Not changed.** Which tools are deferred. The placeholder entries (name, one-line hint, the exact `select:` query, parameters `{"type":"object","properties":{}}` — the shape of the reference's own placeholder). When `ToolSearch` mounts. The activation lanes. The `tools_delta` frames. No reminder frame lists deferred names: the placeholder entries are the one place they are listed.
1122
+ - **Narrowing / widening (open to veto).** Under `deferTools:["Workflow"]` combined with `alwaysLoadTools:["Workflow"]`, or with `ToolSearch` excluded, the system prompt now carries the full orchestration how-to (about +5.5K chars) instead of the short form. This only fires on assemblies that pin or unmount; the shell's default assembly is unaffected.
1123
+ - **Rules.** Retired: the prompt's second reading of "is Workflow deferred" (the caller's literal list), and the pointer to a section that never existed. Added: none.
1124
+ - **Consumers.** @client-core @cli: the default low-frequency list (`DEFAULT_LOWFREQ_DEFER`) defers `Grep` and `Glob`, which the reference never defers. That is a host decision; core does not override it, and it is filed separately by main. @server: pass-through, nothing to do. @test: the pface1 cells "no deferred-tools explanation" and "a pointer to a missing section" now read the `ToolSearch` lead and the self-contained Workflow sentence. The ten placeholders are unchanged.
1125
+ - **Wire.** No key, frame, code or export moves. The bytes of one system-prompt section (the deferred variant) and of the `ToolSearch` description change. The prompt catalog digest and the prompt byte matrix were refrozen for this declared change (only the 16 `deferred=true` groups move).
1126
+ - **Pins.** `test/backlog2145-deferred-tools-disclosure.test.ts`: the shell assembly on a real Runner (every deferred name a placeholder with its own query; the `ToolSearch` lead; the Workflow sentence; no "deferred-tools note" anywhere in the request); nothing deferred; listed and pinned; listed with no search tool; one reading across seven assemblies; activated mid-run and then continued (full parameters on both later requests, the conditional sentence kept); the `ToolSearch` lead on all three modes.
1127
+
1128
+ ### Whether a background agent can be continued is one judgment, stated the same on its terminal frame, its completion notification and ListAgents; an anonymous durable child its parent stopped now says `true`; the per-agent cap of 8 continuations retires, as in the reference; the run that wakes a continuation is charged for it on both lanes; the two continuation receipts are one sentence (#4121 S1a, #4116, #4125, #4133; C-R1411, C-R1415 with notes 2 and 3, C-R1446; behavior change: the cap's refusal is gone, frames widen one cell and narrow two (ListAgents with them), a synchronous child's resumed-cycle notification states no claim, a fast-lane continuation's usage lands on the waking run; hard-breaking: one — `SubagentRetainEntry` −`resumeCount`, open to veto @server @cli @client-core @sdk @test; widening: four, narrowing: four, below, open to veto; closed sets: none moved — `BackgroundChildEvent.kind` is still `spawn` / `tick` / `terminal`; error codes: `resume.cap` retired; exports: none added or removed at the root; wire: `resumableUntil` (new, optional) on the notification payload and the terminal frame, `resumable` now present on the thrown legs; divergence: none — the retired cap was the divergence) (@server @cli @client-core @sdk @test)
1129
+
1130
+ - **Rule.** One judge, `agentContinuationOf` (`src/agents/retain-ledger.ts`), answers "can the parent model's next SendMessage continue this agent, and until when", by three ordered rules: (1) nothing the parent model is shown continues it ⇒ no — the user stopped it, or the model is shown no SendMessage (reach `unmounted`): the leg's final tool table holds none (the engine mounted none and the host declared none — e.g. a host that wraps the Agent tool's execute on a leg with read-only hands, where the mount's delegation door does not hold — or the tool valve took it: `excludeTools` names it, `allowTools` does not), or a whole-tool deny rule hides it from the request (the request view; a deny written mid-run counts from the next request on). The reach has one reader, read where the judge judges; rule 1 precedes rule 2, whose `none` test would let `unmounted` through; (2) the durable rung admits its row (one row-side function, `durableRungAdmitsRow`, which the SendMessage ladder's tier-3 reads too: not a fork's row, names its transcript, its birth policy floor reads) ∧ that row exists and is this tree's (a background leg counts it only for the session its frame names — a row #4408 did not verify for the tree is none) ∧ the parent run's SendMessage is not known to be unable to revive (tier `none`; an unknown tier — a host-declared SendMessage — does not narrow) ⇒ yes, with no deadline this engine sets; (3) a live retain entry, read by identity through the one reader that sweeps expired entries before it reads (`liveRetainEntryOf`) ⇒ yes, until the cycle's settle instant plus the entry's window; otherwise no. Its readers: every terminal producer (the spawn lane's completion and its thrown leg, the resumed cycle's completion and its thrown leg, the fork lane's two legs), the completion notification, and ListAgents. A cycle has one settle instant (`markSettled(id, t)`), a deadline one mint (`SubagentRetainLedger.untilOf`), and the expiry timer fires at that deadline. Every producer judges after its last await — the resumed cycle's settle instant comes after its result is written (a slow write no longer shortens its window), and ListAgents reads the live entry after its durable probe (an eviction during the probe is seen).
1131
+ - **Before (measured on the base `cdc1d2fd6`, the pins below run there first).** (a) An anonymous durable child its parent stopped: terminal frame and notification `resumable: false`, while SendMessage by its handle revived it (#4116). (b) The same agent's ninth continuation was refused — "reached its resume cap (8 follow-ups per agent) — relaunch a new agent instead." (`resume.cap`); the frame of its ninth cycle already said `false` (measured on the base); continuations through the durable rung were never counted, and a restart reset the count (test measured, 11-11: 18 consecutive continuations after a restart, none refused). (c) A retain entry past its window that nothing had swept yet stood in front of the durable rung: ListAgents said `none` for an agent the durable rung revives. (d) No face stated until when a retained agent could be continued. (e) The fast lane's continuation cycles reached no run's accounting: after a spawn and one fast-lane continuation the waking run's `stats.nested.tasks` read 1 (2 when the continuation came through the durable rung). (f) Two receipts for one fact.
1132
+ - **Now.** (a) `true`, and the same SendMessage revives it. (b) No cap: ten, and twenty, consecutive continuations go through on the fast lane, on the durable rung, and interleaved, every cycle's frame says `true` and every cycle's completion reaches the parent model (21 of 21). (c) ListAgents says `durable` and the first SendMessage revives it. (d) A retained answer carries `resumableUntil` (epoch ms) on the frame and the notification, equal to the instant the ledger lets the entry go; a resumed cycle states its own. (e) 2, the same reading as every other delegated lane: the cycle's usage lands in the waking run's `stats.nested`. (f) One sentence (below).
1133
+ - **Widening (open to veto @server @client-core @cli @test).** W1 (#4116, C-R1415): an anonymous durable child stopped by its parent (or failed, or completed) answers `true` on its frame, its notification and ListAgents, where it answered `false` (M: the model's notification reads `<resumable>true</resumable>`). W2 (#4125, C-R1415 D-4125-a choice three; notes 2 and 3): no count bounds continuations of one agent. What bounds a continuation: its cycle runs under the child's own limits, and each one takes a call of the parent's model, under the parent run's `maxTurns` and its own-spend ceilings; one agent runs one continuation cycle at a time (a SendMessage while one runs is delivered into it, or refused `still_running`); SendMessage's per-sender rate gate (`PEER_LANE_DEFAULTS`: a burst of 30, refilled at 0.5 per second — measured: the 33rd consecutive continuation of one agent was refused `you are sending messages to agent … faster than its rate limit …`) and its 30-second duplicate-body window. Launching a new agent is held by the session tree's two entry caps (`RunnerDeps.delegationEntryCaps`, default 20 concurrent / 200 cumulative, refusing `delegation.concurrency_cap` / `delegation.session_cap`); a continuation takes a concurrency slot but is never refused by either, and the retired 8 was never part of them (pinned: with a cumulative cap of 2 the third launch is refused while the first agent is continued three times). The durable rung had no count before this change (the 8 held on one lane and reset on restart); the reference has none (2.1.321 measured: 20 consecutive continuations, none refused; read code: its continuation path takes a concurrency slot with no count check on that statement, cli321.js L292448, and its launch path runs its entry checks before taking the slot, L292497 — the hops of the checks were not traced). W3: a ListAgents a host mounts itself without `continuationTier` lists a stopped durable agent as `continuable (durable record)` where it listed `not continuable` — an absent tier is not known and narrows the listing no more than the frames that host's Agent tool emits (its roster label keeps the `none` wording). M: the same listing's finished-agents note follows its rows — `continuable by SendMessage only while its session is retained or a durable record exists` where it read `… only while its session is retained`, which contradicted a row it listed `continuable (durable record)`.
1134
+ - **Widening W4 — a send at the retain window's edge (open to veto @server @cli @client-core @test; M: the model's SendMessage result turns from the refusal into `Message sent — …`).** A SendMessage that met a retained entry past its deadline whose expiry had not run yet (its timer late), or whose deadline passed between the ladder's read and the fast lane's own read, was refused `resume.evicted` — `… is no longer held in this run's fast lane …` — while the durable row behind it would have revived it. A race that predates this change (read code, v7.68.3: the ladder's reader reads without sweeping, `src/agents/retain-ledger.ts:83-91`; the ladder takes the fast lane on that entry, `src/agents/send-message-tool.ts:2140-2141`; the resume sweeps first and throws, `src/agents/subagent.ts:1616`; the catch answers `resume.evicted` with no durable attempt, `send-message-tool.ts:2315`). Measured on the integration head `9be8495d7` with the clock moved, not slept: `resume.evicted` both ways; the integration chain's #4234 C2 went red once with the same answer. Now the ladder's one reader sweeps before it reads (above), and the fast lane's own miss — `resume.evicted`, that code only; every other refusal stands — is the ladder's "no live entry": out of the target lane the durable rung answers it, the send charged once (it passed the admission gate already; a second pass reads it as its own duplicate — measured before that was handled: `duplicate`). Two sends at that edge at once: one revives, the other is refused (its code depends on the timing — `claim_contended`, "is being revived or recycled right now — send again in a moment", measured once; not pinned); cycle numbers 1, 2. The fallback skips the durable rung's admission charge only, and on the same input: the fast lane's admission names the child session of the entry the ladder read (not a second read of the ledger inside the lane), so a hop loop through that session is refused on every road; and it is taken only after the ladder read a live entry — with none, the rung was already tried before the fast lane, so one send reaches it once. Every other rung step (access, a user's stop, the tree's row, the floor) runs on the fallback as on a direct send (pinned). Pinned: `test/backlog4234-window-edge.test.ts` (past the deadline; between the two reads; the reader and the judge at that instant; two sends at once; a hop loop through the child's session refused on the direct rung, the fast lane and the fallback; one charge per message on the three roads; a user's stop on the durable row and another tree's row refused on the fallback; an eviction inside the lane; a durable row the rung cannot read; a fast-lane refusal other than `resume.evicted` standing; the tombstone road reaching the rung once). A durable row the rung cannot read leaves the model the fast lane's "relaunch a new agent" sentence although the row exists (KL-4121-e; the base says the same).
1135
+ - **Narrowing (open to veto @server @client-core).** N1: a named durable child whose parent run's own SendMessage cannot revive (the engine's mount without a mailbox store: tier `none`) answered `true`, now `false` (M: the model's notification renders `<resumable>false</resumable>`, `src/core/task-notification.ts:684`) — and that SendMessage indeed cannot continue it (pinned through the root-exported assembly); a resumed cycle's frame narrows the same way on the tier of the SendMessage that woke it. N2 (#4133): the waking run's `stats.nested`, its `costBreakdown.nestedSubagent`, and the in-flight spend a repair loop's parked bundle stamps now include fast-lane continuation cycles.
1136
+ - **Narrowing N3 — a parent model shown no SendMessage (open to veto @server @cli @client-core; M).** A run whose model is shown no SendMessage now answers `resumable: false` (no `resumableUntil`) on the frames and notifications of its background children, durable and retained alike — the model's notification reads `<resumable>false</resumable>` where it read `true`. Three causes, one reading: the tool valve leaves none (`excludeTools: ["SendMessage"]`, or an `allowTools` that does not name it); a whole-tool deny rule names it (the request view hides it — the policy face, the session's rules or the person's persisted rows; a deny written mid-run counts from the next request on — an org row naming SendMessage is no cause: the org layer does not accept that rule, measured); the engine mounted none and the host declared none (a host that wraps the Agent tool's execute on a leg with read-only hands). Was: `true` — durable with no deadline, retained with the entry's deadline (the review legs: the valve on this change's first head `53a94b094`, measured for a named and an anonymous durable child, read code for a retained one; the deny and the not-mounted SendMessage on its second head `f42838cb0`, measured at both levels). On the base, where no reach was judged and `resumableUntil` did not exist: `true` for a named durable child and for a retained one, `false` for an anonymous durable one (#4116) — read code. The parent model's SendMessage call met `Tool SendMessage not found. Available tools: …` (the valve, the not-mounted SendMessage) or the deny's own sentence — `tool "SendMessage" is denied by permission rule "SendMessage"` (the policy face), `a persisted deny rule (SendMessage) refuses this call` (a persisted row), `tool "SendMessage" is denied by a session rule` (the session's rules), each measured. The child could never be continued from that face; the frame now says so. ListAgents reads the same reach: under the deny it lists such a child `not continuable` where it listed `continuable (durable record)`, and leaves out its finished-agents note (M: that note names SendMessage, which the model is not shown). Pinned: named and anonymous × SendMessage kept / excluded; an `allowTools` without it on a retained child; a deny and a not-mounted SendMessage × durable / retained; ListAgents under the deny, with its control; a deny written mid-run (the next ListAgents and the next terminal frame read it); the rule order.
1137
+ - **Narrowing N4 — a synchronous child's resumed cycle.** A retained synchronous child resumed through its operator handle (`SubagentSteerHandle.resume`) announced its cycle's completion with `resumable: true` (measured on the base and on this change's earlier head, which added a `resumableUntil`), while ListAgents had no row for it and SendMessage by that `task_id` answered `no agent matches …`. That notification now carries neither key — no row a SendMessage addresses, so it states no claim (absent is not `false`). M: that notification reaches the root session's box, so its `<resumable>` tag leaves the model face (read code, the review leg).
1138
+ - **The run's budget ceilings are not changed (#4532).** A run's `limits.maxTokens` / `maxCostUsd` read the run's own spend only; delegated spend — synchronous, background, fork, revival and continuation alike — lands in `stats.nested` and never in that gate. Measured: a fast-lane continuation that carries the run's own plus nested spend past its `maxTokens` leaves the run `completed`, with no `limitCrossed`, both cycles completed. #4532 is the ticket that would change it; nothing in this change puts a continuation's spend under the parent's ceiling.
1139
+ - **Hard-breaking (C-R1446 point 3) — one.** *What changed:* `SubagentRetainEntry` loses `resumeCount`, the retired cap's counter; `SubagentRetainLedger.register` takes the entry without it (its parameter's `Omit` list loses the key — the same shape, no call site changes). *Who is hurt:* a host that reads `resumeCount` off an entry of `getSessionRetainLedger(…)` or of the ledger it hands `createSendMessageTool({ retain })`; no consumer repository reads it (read code: `git grep -P '\bresumeCount\b'` on the local `origin/main` of server / cli / client-core / sdk / test — client-core's one hit is an unrelated local function, the test repository's are its own local names). *What to do:* drop the read; there is no count.
1140
+ - **Not breaking — `ListAgentsToolOptions.continuationTier`, which the wire manifest reads as retyped.** It is widened: it takes a `SubagentTranscriptTier` as before, or a reader of the reach (`() => ContinuationReach | undefined`) — so a host that passes a tier compiles unchanged; only code that reads the member back off an options object someone else built meets the function arm.
1141
+ - **Retired code `resume.cap`.** The engine was its only minter. @server `src/http/routes/runs.ts:1898` passes it through as a 409 — that arm no longer fires; @cli `src/sema/subagentResumeWire.test.ts:50`, @client-core `scripts/run-client-core-pure-test.mjs:19882`, @sdk `packages/sdk/src/errors.ts:1775` and `src/resources/runs.ts:555` list it — table rows nothing reaches now (read code, local `origin/main`).
1142
+ - **Additive.** `TaskNotificationPayload.resumableUntil?` and `BackgroundChildEvent.resumableUntil?`: epoch ms, present exactly when `resumable` is `true` by a live retain entry with no durable rung behind it; the host lane only — the model's notification text is byte-for-byte the same with and without it (pinned). `resumable` is now present on the thrown legs (a child whose run threw; the resumed cycle's thrown leg; the fork lane's, always `false`). `ToolExecuteContext.continuationReach?` — a reader the continuation judge calls where it judges (Runner-filled: the leg's SendMessage tier, or `unmounted` while its model is shown no SendMessage; absent = not known). `ListAgentsToolOptions.continuationTier` also takes such a reader, called once per listing — a type widening. `TaskRegistry.durableAgentRowFacts(id)`, `ListAgentsToolOptions.registry.durableAgentRowFacts?`, `SubagentRetainLedger.untilOf(settledAt, entry)`, `SubagentRetainLedger.markSettled(id, settledAt?)`.
1143
+ - **Wording (@cli @client-core @server @test; M = model-facing).** M: the two continuation receipts are one: `Message sent — <agent> resumed in the background with its prior context intact[ (N earlier pending message(s) delivered with it)]. You will be notified automatically when it completes. Continue with other work — do not poll.` Was — the fast lane: `… resumed in the background with its prior context intact (correlation marker [resume-…]).` + `You will be notified automatically when it completes; its reply will carry [resume-…]. …`; the durable rung: `… was revived in the background with its prior context intact …`. The lane stays a host fact (`structured.status` / `details.status`: `resumed` / `revived`); the marker stays in `details.marker` and in the continued child's own prompt. M: "reached its resume cap (8 follow-ups per agent) — relaunch a new agent instead." no longer appears. @server: `test/own-tool-lists-host-lanes.test.ts:601` and `:618` pin `was revived in the background` and go red on pickup — read `resumed in the background`, or the card's `status: "revived"`.
1144
+ - **Not changed.** A child continued on the fast lane can lack the question face a revived one has (AskUserQuestion: 31 tools against 32, test measured) — by construction, not an omission (read code): the fast lane hands the continued child the waking run's per-request question face only for a run-scoped row (a session-scoped row's continuation can outlive the waking turn), and it runs the cycle in `createSubagentResume`, which has no park lane, over a frozen spec that carries no durable approval — so without a process-level `RunnerDeps.onQuestion` that child holds no question seat; a revival re-enters the background lane, which forwards the parent's durable approval and so carries a parking question seat (which of these arms the measured deployment took is inferred). A revived child is continued through the durable rung only (it registers no retain entry), so its frames answer `durable` with no deadline. The `kind` closed set; a landed terminal still says `false` (S1b, #4132) — pinned as today's reading on its two parked arms: parked then stopped (`killed`), and parked then failed by the reconciliation after its approval expired — each frame says `false` while ListAgents says `durable` and SendMessage by its handle revives it; the not-retained refusal still names `retainSubagentSessions is off` as the cause when the retention was the ended parent run's (KL-4121-a); workflow agents' frames carry no claim (absent is not `false`); `resumableUntil` never reaches the model face — the notification text is byte-for-byte the same with and without it (pinned); the `<resumable>` value the model does read moves only where W1, N1, N3 and N4 say. A parent whose SendMessage an ask rule names, in a run with no approver, is still told `true` while its model's call is refused (KL-4121-b).
1145
+ - **Rules.** Readings of "can it be continued": 3 → 1 (frame / notification / ListAgents). Row-side admission to the durable rung: 2 → 1. Deadline mints: 2 → 1. Settle instants per cycle: 2 → 1. Continuation receipts: 2 → 1. Retired: `SUBAGENT_RESUME_CAP`, `resumeCount`, `resumabilityClaim` and its five inputs, the cap's refusal arm, sentence and code, the `settled !== "killed"` special case (a kept entry is read by identity). Added: the judge in the claim's place, the row-side function the ladder already ran inline, and one value of the reach it reads (`unmounted`, folded into rule 1 — the rule count stays three). The reach has one reader (prepare's: the final tool table's SendMessage, `unmounted` while the request view hides it), called where the judge judges — the spawn lane's frames (through ctx) and the ListAgents mount read that same one, while a fast-lane continuation's frame reads the tier of the SendMessage that woke it (`subagent.ts:2023`), not the request view (KL-4121-d); the valve-only write in the delegation-surface phase retired with it.
1146
+ - **Pins.** `test/backlog4121-continuation-judge.test.ts` (38 cells) — ⑤ a durable rung behind a live entry answers `durable`, named and anonymous · ⑧ frame and ListAgents agree just settled / user-stopped / past the window / pushed out by capacity · ⑰ a ListAgents mounted without a tier does not narrow, and its row and note agree (verbatim) · N1 on a resumed cycle's frame · the two parked arms (today's reading, S1b) · a synchronous child's resumed cycle states no claim · ⑪ (#4116) the anonymous durable child, and a fork's row staying `false` · the thrown leg · ⑫ a resumed cycle's deadline is the ledger's expiry instant, and a slow result write does not eat its window · ⑬ an unswept past-window entry, with and without a store · ⑲ ten continuations · ㉒ a kept entry read by identity · the model face byte-identical · ㉓ workflow frames carry no claim · the retired dialect gone from `src/` · through the root-exported assembly: ⑰ the mount's tier narrows only when known, N3 named / anonymous × SendMessage kept / `excludeTools` and an `allowTools` without it, a whole-tool deny and a not-mounted SendMessage × durable / retained, ListAgents under the deny with its control, a deny written mid-run, the rule order, the one receipt, twenty continuations × {fast, durable, interleaved} with every completion reaching the parent model, a host-declared SendMessage × 3, and the reading after a host process change (#4250, recorded, not changed). `test/backlog4133-waker-pays.test.ts` (5 cells) — the fast lane's cycle on the waking run's nested usage, the same with a priced model (the nested cost is the two cycles' own), the durable control, the budget gate's current form, the entry caps a continuation passes. Re-pinned to the new semantics, each with the old dialect's tripwire: `test/subagent-resume.test.ts` (no cap: ten continuations), `test/agent-resume-honesty.test.ts` (#4116), `test/backlog1699-listagents-continuation-window.test.ts` (+5c: an eviction during the durable probe is seen; +5d: the deadline is inclusive — continuable at its millisecond, evicted the next), `test/backlog4234-one-generation.test.ts`, `test/rb423-sendmessage-parity-completion.test.ts`, `test/send-message-tool.test.ts`, `test/agent-revive-tier3.test.ts` and `test/rb390-teammate-mutual-sendmessage.test.ts` (the one receipt, not `was revived`), `test/up424-a-tier-ports.test.ts` (the tier sentence's sites 6 → 5: the two receipts are one), `test/defectscan-rt-team-b.test.ts` and `test/retain-ledger-eviction-errors.test.ts` (the entry type without `resumeCount`), `test/backlog1108-continuation-tier.test.ts` (an unstated tier's note no longer narrows); the phase fixtures that hand the new input `continuationReach` (and `test/backlog1108-listagents-tier-mount.test.ts`: the ListAgents mount lists with that reader, the built-in SendMessage's tier goes out as the phase's result): `test/backlog1108-listagents-tier-mount.test.ts`, `test/backlog2919-transcript-integrity-tier.test.ts`, `test/prepare-delegation-surface.test.ts`, `test/prepare-inherited-gate.test.ts`.
1147
+ - **Consumers.** @server: the terminal frame's `resumable` widens one cell (W1) and narrows two (N1, N3); `resumableUntil` is new and optional (present only with a retained answer — render "continuable until …"; a `true` without it has no engine deadline). What `resumableUntil` is, before a dispatcher acts on it: an UPPER bound — the ledger's capacity, a session reap or the parent run's end can release the entry earlier; a child retained only in its spawning run (the run-scoped ledger) cannot be continued once that run ends, and until S1b (#4132) no frame says so (measured: a frame whose deadline had 59.6 s left, the host's next run's SendMessage by handle was refused `… was not retained (retainSubagentSessions is off)` — the sentence misstates the cause, KL-4121-a); and the deadline is inclusive — continuable at its millisecond, evicted the next (pinned); the rejection legs now carry `resumable`; the `resume.cap` arm and two receipt pins above; a fleet cost view reading the waking run's `stats.nested` now counts fast-lane continuations. @client-core: read `resumable` / `resumableUntil` as above; the `resume.cap` row. @server @client-core @sdk: `ListAgentsToolOptions.continuationTier` (on v7.68.3) widens to a tier or a reader of the reach — a type widening, a caller that passes a value is not affected; `ToolExecuteContext.continuationReach` is new in this change. @cli: the ninth-continuation refusal is gone; the receipt is one sentence (a pin on either old sentence re-pins). @sdk: the `resume.cap` doc rows. @test (black box): the 9th, 10th and 20th continuation of one agent go through; an anonymous durable child stopped by its parent says `true` and is continued; a parent run whose budget a continuation pushes past its ceiling completes (the current form, #4532); a parent with SendMessage excluded sees `resumable: false`. Rows that name the retired code or the old receipt (local `origin/main` of each repository, not fetched; grep read, nothing run): red on pickup — @server `test/own-tool-lists-host-lanes.test.ts:601`, `:618`; dead rows or old literals, not red — @server `src/http/routes/runs.ts:1898`, `docs/ASSISTANT-WIRE-CONTRACT.md:9232`, `:10079`, `docs/INTEGRATION-CLI.md:108`, `test/error-code-catalog-live.test.ts:382-383`, `:3047`, `test/subagent-steer.test.ts:316`, `MIGRATION.md:4639` (quotes the old receipt); @cli `src/sema/subagentResumeWire.test.ts:50`, `src/sema/toolResultRenderCrash.test.ts:40-41` (a fixture literal of the old correlation-marker receipt); @client-core `src/subagent/engineSubagentResume.ts:37`, `:133`, `:217`, `scripts/run-client-core-pure-test.mjs:19882`, `:19901`, `:22416`, `scripts/run-resume-refusal-copy-test.mjs:278`, `:310`, `scripts/run-resume-retry-later-test.mjs:164`, `:207`, `:269`; @sdk `packages/sdk/src/errors.ts:1775`, `src/resources/runs.ts:555`, `docs/manual/ch2-tasks-runs.md:416`, `spec/openapi.yaml:1651`, `test/error-code-surfacing.test.ts`.
1148
+
1149
+ ### An identity move carries the tool results too — `ToolResultStore.rekeyIdentity`, the fourth seat of a move, re-files the identity an entry's owner record names in place; one law re-files a run's identity on every seat that records one (`rekeyOwnerIdentity`), and under it a partition is a value that only a scope pair moves; `plan` on the two whole-identity seats says how many rows a move leaves in their old partition; the file data root's adoption re-keys every identity seat, so a run parked before it resumes under the new principal, continues the background agents that yielded with it and pages its offloaded results back (#4488; behavior change: the checkpoint seat re-files a row that recorded no partition differently, and the adoption re-files the checkpoint and background-agent rows of a principal move (a background-agent row's root box scope with its partition) and the local owner's own tool-result entries in any partition — a run parked before a principal move is refused under the old name, below; the adoption refuses, before anything moves, a row a one-step seat counts conflicting; its report lists the identity seats in a new order; the set-aside verb runs while an adoption is in flight on a ledger a leg still reads; hard-breaking: five entries, below, open to veto @server; narrowing: two, below, open to veto @server @cli @test; closed sets: none changed (`RekeyPlan` is unchanged; the one-step seats answer the new `IdentityRekeyPlan`); exports: +9, none removed — `rekeyOwnerIdentity`, `oneStepRekeyAnswerOf`, `rekeyToolResultOwner`, types `IdentityRekeyMap`, `IdentityRekeyPlan`, `OwnerIdentityRekeyVerdict`, `OneStepRekeyCount`, `ToolResultRekeyVerdict`, `ToolResultSeat`; `RekeyPlan` and `RekeyConflict` move from the stable tier to the advanced one; `CheckpointRekeyVerdict`'s `rekeyed` arm gains `partitionLeft`; wire: one required interface member, one member on the one-step seats' plan answer, the `store` member of four option / seat types typed `ToolResultSeat`, the adoption report's `checkpoint`, `tool-result` and `background-agent` lines and their order, the meaning of `adoption_row_collision` (one word, wider), and the marker's `<store>:planned` / `<store>:arrived` bits) (@server @cli @test)
1150
+
1151
+ - **Rule.** A move re-files a run's identity by one law, `rekeyOwnerIdentity(identity, map)`: the person by the principal pair; the partition — the scope a record names, else its principal — is a value that the scope pair whose source it is moves and that the person moving never moves; the result is recorded in the canonical form (the scope only where it differs from the principal); selection compares values, never spelling. The checkpoint seat, the tool-result seat and a host's own page of identities write what it answers. A partition kept on purpose is named by an identity pair `{ s → s }`.
1152
+ - **Before (measured, base `7989313fc`, a real Runner over a file tool-result store, `test/backlog4488-tool-result-rekey.test.ts` M cells).** A run parked as alice after offloading a 60 016-character result; the checkpoint seat moved alice → bob (with the pair alice → bob); the run resumed as bob and paged the ref back: the miss sentence, `ownerOf` still alice, a run as alice still read it. `put` cannot repair it (another identity on an occupied ref is `tool_result.ref_conflict`, owner unchanged — measured by the #4481 collection leg). With the pair alice → x instead, the checkpoint row became `{ principal: bob, scope: x }` with no partition recorded (read as bob) while the run resumed as (bob, x). A row of (alice, `_scn:health:alice`) moved with no scope pair: `plan` answered `{ rows: 1, conflicting: 0 }` and `leave` wrote (bob, `_scn:health:alice`), which a run of (bob, `_scn:health:bob`) does not read.
1153
+ - **Now.** The same cells: both one-step seats plan `{ rows: 1, conflicting: 0, unpairedScopeRows: 0 }` and leave 1; the resumed run as bob reads the bytes back; `ownerOf` names bob; a run as alice reads nothing. With alice → x both seats record (bob, x) and the run resumed as (bob, x) reads it, (bob) does not. The `_scn:health:alice` row: both seats plan `unpairedScopeRows: 1`.
1154
+ - **Hard-breaking (open to veto @server).** One entry per sentence below; the wire manifest's items for this change are the first four.
1155
+ - (1) *What changed:* `ToolResultStore` gains the REQUIRED member `rekeyIdentity(input)` with the checkpoint seat's two overloads (`plan` → `IdentityRekeyPlan`, `leave` → `RekeyDone`); a class implementing the interface and an object literal typed as `ToolResultStore` fail to compile until they carry it, and the kit (`toolResultStoreContract`) runs two new cells on it — a move with the person's own pair, and a move of the person alone whose every written record must equal `rekeyToolResultOwner`'s answer member by member. *Who is affected:* @server's tool-result stores — `SqlToolResultStore implements ToolResultStore` (`src/stores-sql/tool-result-store-sql.ts:207`; `TiDBToolResultStore` :619 and `PgToolResultStore` :626 extend it), the `ToolResultStoreFull` type that follows it (`src/plugins/store-backend.ts:266`) and the kit's DB integration run (`test/store-contract-kit-db-integration.test.ts:319`, the new cells red until the member lands) — code-read in its local checkout `8e7211dbb` (11-14), not fetched; any store a deployment wrote; core's bundled stores, both reference adapters and core's test doubles carry it in this release. *What to do:* read each row that records an identity, judge it with `rekeyToolResultOwner(owner, map)` (root export), and on `leave` write the identity it answers over the identity as read — both identity columns, never the principal alone (a guarded `UPDATE`; re-read on a lost guard); compose the answer with `oneStepRekeyAnswerOf`; run the kit's two re-key cells; in the adoption arc, retire `tool_result` from the zero-rewrite tables (`src/adoption/plan.ts`, form Ⅲ — the server tree as the dispatch read it; not re-read here) and call this member beside the checkpoint seat's.
1156
+ - (2) *What changed:* `CheckpointStore.rekeyIdentity`'s `plan` overload (and `FileCheckpointStore.rekeyIdentity`'s, `InMemoryCheckpointStore.rekeyIdentity`'s) answers `IdentityRekeyPlan` — `RekeyPlan` plus `unpairedScopeRows` (rows whose principal moves while no scope pair names their partition's value). *Who is affected:* a store implementing `CheckpointStore` (its `plan` overload must answer the wider type) and a caller that compares the plan answer whole (`deepEqual` on `{ kind, rows, conflicting }`). *What to do:* answer `unpairedScopeRows` from `oneStepRekeyAnswerOf`; compare the members you read; refuse on `conflicting > 0` as before; read `unpairedScopeRows > 0` as "a scope pair may be missing" (not a refusal).
1157
+ - (3) *What changed:* `CheckpointRekeyVerdict`'s `rekeyed` arm gains the REQUIRED member `partitionLeft` (as `rekeyOwnerIdentity` answers it for the row's identity). *Who is affected:* code that builds a `rekeyed` verdict literal (a test double standing in for `rekeyCheckpointRow`). *What to do:* add `partitionLeft`, or take the verdict from `rekeyCheckpointRow`.
1158
+ - (4) *What changed:* the `store` member of `AggregateBudgetOptions`, `McpBinarySeat`, `TaskArtifactSeat` and `ToolResultBytesSeat` is typed `ToolResultSeat` (`ToolResultStore` less `rekeyIdentity`), where it was `ToolResultStore`. *Who is affected:* a host that reads `store` off one of these and calls `rekeyIdentity` on it, or hands it where a `ToolResultStore` is required; passing a whole store in still compiles. *What to do:* call the migration verb on the store you injected, not on the run's seat.
1159
+ - (5) *What changed:* the checkpoint seat re-files a row that recorded no partition by the one law: the row's principal is its partition value, so a move of the principal alone (no scope pair for it) records `isolationScope: <the old principal>`, and a scope pair from the principal records its target. *Who is affected:* a principal-only move — a resume naming the new principal and an opt-in scope of the new principal is refused pre-CAS (`checkpoint.config_refused`; the row now names the old partition, G11a), a resume naming that partition or none completes; such a row carries the `isolation_scope` requirement word — a 7.68.2 worker reads it (measured: v7.68.2 parked the row, this release's row law re-filed it, v7.68.2's `judgeCheckpointRow` answered `ok` and its resumes answered as above); the word first shipped in 7.67.0 (read from the tags), and a worker before that reads it as a word it does not know (not measured). *What to do:* name the person's own partition in the move (`{ fromScope: <old principal>, toScope: <new principal> }`, the pair the background-agent seat needs anyway) — then both readings agree and nothing above changes.
1160
+ - **Before / now (the file data root's adoption — measured: a real Runner parks on the root's own file stores after offloading 60 016 characters, the root is adopted, the run resumes and pages the ref back; through the stores it parked on and through stores built over the root after the adoption; v7.68.3 → this change's first head `57e3653cc` → this release; pins R1, R2).** Local owner → bob, resumed as bob: completed and read the bytes back → completed and read the miss sentence → completed and reads the bytes back (the entry is recorded as bob's). Local owner → bob with the run parked in the partition `proj`, resumed as bob@proj (measured on v7.68.3 → the fix1 head `51191c34f` → this release, a `FileStorageBackend` stopped, the root adopted, a new backend started; pin LO2): completed and read the bytes back (v7.68.3 recorded no identity on the entry) → completed and read the miss sentence (the entry stayed the anonymous identity's in `proj`, the report's `tool-result` line `rows: 0`) → completed and reads the bytes back (the entry is (bob, `proj`); bob outside `proj` and the anonymous identity in `proj` read nothing). Local owner → bob, resumed naming no principal: read back → read back → the miss sentence (the anonymous identity's estate is bob's after the adoption, as its session-policy rows already were; the adoption's config account requires `REQUIRE_PRINCIPAL=true`). alice → bob, resumed as bob: refused `resume.principal_mismatch` → refused → completed, the bytes read back (the parked row is bob's). alice → bob, resumed as alice: completed and read the bytes back → completed and read the miss sentence → refused before the claim, the row stays pending: `the resume config carries principal "alice" but this checkpoint was suspended under principal "bob" — …`.
1161
+ - **Before / now (a run parked with a background agent — measured: a real Runner over the root's file checkpoint and background-agent stores starts an agent in the background and parks on an approval, the agent yielding beside it; the root is adopted alice → bob and the parent resumes; v7.68.3 → `57e3653cc` → this change with the checkpoint leg and no background-agent leg (`9988541ee`) → this release; pins B0–B2).** Not adopted, resumed as alice: on all four the agent is continued to its end and the parent hears it finish once. alice → bob, resumed as bob: refused `resume.principal_mismatch`, the agent parked under alice → the same → the parent completes, but its agent stays parked under alice, is never continued and is never heard (the checkpoint leg alone strands it) → the parent completes, the agent's row is bob's, it is continued to its end and the parent hears it finish once. alice → bob, resumed as alice: completed, the agent continued and heard → the same → refused, the agent parked under alice → refused, the agent parked under bob. **The parent's run already ended (as alice), its background child parked on its own approval card; the root adopted alice → bob; another engine — a new backend, another Runner and task registry — decides the card under the row's scope; the parent session's next run goes as bob** (measured v7.68.3 → `51191c34f` → this release; pins X0, X1): the child's report is written to alice's box and the next run's request carries it 0 times, the box keeping it (v7.68.3 does not move the row) → the same (the row arrived as bob's, its root box scope stayed alice) → it is written to bob's box, the next run's request carries it once, both boxes empty after. Not adopted, the next run as alice: carried once on all three.
1162
+ - **Narrowing (the file data root's adoption; open to veto @server @cli @test).** The adoption (`adoptLocalDataRoot`) runs every identity seat as a leg — the session-policy and background-agent seats `arrive` → an arrived bit → `leave`, the checkpoint and tool-result seats `plan` → a planned bit → `leave`, each then a done bit, completed by its own bits at any in-flight phase — and reports each as `{ store, action: "row-rewrite", rows }` (`rows` = what the first step counted — for `plan`, the person's own rows and any other row filed in the person's own partition, KL-4488-b). A `plan` that counts a conflicting row — one whose identity the move changes but that this engine cannot read as one: a damaged record, or a checkpoint row a newer engine wrote (a requirement word this engine does not know) — refuses the adoption (`adoption_row_collision`, the documented ⓪ refusal; the sentence names up to five such rows — a tool-result entry by its ref, a checkpoint by its name — and says to repair or remove them, or, for a newer engine's row, to run the adoption with that engine), on a fresh adoption before its marker lands and in flight before the leg's planned bit, nothing moved; after the repair it completes (pins D6, D6b, K10). Where this change's fix1 head completed over a newer engine's checkpoint row of the person's and left it under the old principal (code-read: the row counted conflicting, `leave` passed it), the adoption now refuses until that engine runs it. Measured on one owner record in the person's partition whose principal is no name: v7.68.3 has no tool-result leg (the adoption completes, the record untouched, the report `none`); this change's fix1 head completed, left the record and reported the rows less it, saying nothing; this release refuses, naming it. The report lists its legs in a new order (code-read, the report assembly in `src/stores/file/adoption/adopt.ts` at v7.68.3 and here): v7.68.3 — `permission-rule` (with a rules leg), `session-policy`, the carried legs, `none` for `session`, `checkpoint`, `tool-result`, `file-snapshot`, `memory`, `memory-engine`, `task-list`, `mailbox`, `workflow-run`, `workflow-journal`, `background-agent` (each unless carried), `usage-window`; now — `permission-rule`, each identity seat whose leg ran in the order the arc runs them (`session-policy`, `checkpoint`, `tool-result`, `background-agent`), the carried legs, `none` for `session`, `file-snapshot`, `memory`, `memory-engine`, `task-list`, `mailbox`, `workflow-run`, `workflow-journal`, then for each identity seat the shape has no leg for (a local-owner adoption: `checkpoint`, `background-agent`), `usage-window` — read a leg by its `store`, never its index. (a) A principal → principal adoption re-keys the root's checkpoint rows and tool-result entries with the pair `{ from → to }` on both axes (a partition of another name stays and is counted) and its background-agent rows with the scope pair `{ from → to }` — an arrival re-files `scope` and, where it holds the same value, `rootSessionScope` (where the parent session's box lives, so a report of a child decided after the adoption, its parent's run having ended before it, reaches the parent's next run under the new principal; a report a child delivered before the adoption stays in the old owner's box, KL-4488-h; a root box scope of another value stays, KL-4488-i; pins X1, BK12); the report's `checkpoint`, `tool-result` and `background-agent` lines read `row-rewrite` where they read `none`. A run parked before the adoption resumes under the new principal and continues the background agents that yielded with it; under the old principal it is refused before the claim and the row stays pending — a flip from v7.68.3, where the old name resumed and the new one was refused (above; the refusal sentence's "suspended under principal" names the new one, KL-4488-e). An `arrive` that meets a background-agent row it cannot take for its own refuses the adoption (`adoption_row_collision`, as the session-policy leg already did). (b) A local-owner adoption re-files the local owner's own tool-result entries — the ones the anonymous identity minted (a recorded `principal: null`), in whatever partition each recorded, which it keeps: the session-policy leg's law for the anonymous rows this adoption already hands over — as the adopting principal's; a person's entry and one that names no identity stay (pin D2: no identity reads after the adoption an entry it did not read before, but the adopting principal, in the partition the entry was in; pins LO1, LO2: a run parked anonymously, without a partition and in the partition `proj`, the backend stopped, the root adopted, a new backend started, resumed as bob and as bob@proj, reads the bytes back); its report's `tool-result` line reads `row-rewrite`, its `checkpoint` and `background-agent` lines stay `none` (those checkpoint rows name no principal, and a resume naming the adopting principal takes them as they stand; those agent rows are filed under a scope the deployment chose). An adoption an earlier engine left in flight gets the legs it lacks on the resume (pins D5, K1, BK1); a root an earlier engine already adopted keeps its rows under the old owner, and each store's own re-key with the same pairs moves a principal's rows (code-read: the legs run those members' functions). A row a step cannot read — a tool-result owner record that is there and cannot be read, a checkpoint or background-agent ledger this engine cannot replay or that holds a damaged line (the store's own `store.ledger_damaged`) — refuses the step that meets it and no bit is written over it; a re-run after the repair completes the move (pins T7, D4, K4, BK6). A fresh adoption first runs the look of each leg that has one — the one-step seats' `plan` (with the conflicting refusal above), the background-agent directory taken as its step takes it (writer fence, then replay) — and refuses there, before its marker lands: the root is not frozen and the store's own repair verb (`setAsideLedgerDamage`) can run — measured: without that look, a principal adoption over a damaged background-agent line froze the root at phase 2, the set-aside verb answered `adoption_in_flight`, and only a hand repair got out, where the stage before this change completed the adoption and the verb then ran (pins K6, BK7); another process holding the background-agent directory's writer fence: v7.68.3 completed the adoption without that leg (the checkpoint rows unmoved) → the fix1 head's look read past the fence, its marker landed and the background-agent step refused `store.dir_in_use` with the root frozen at phase 2 (the checkpoint leg, which runs before it, had moved the checkpoint rows — measured by the collection leg; a reader over the frozen root is refused) → this release refuses `store.dir_in_use` before the marker, no row moved on any seat, and completes once the holder is gone (pin BK11). The session-policy leg has no look: its refusals come after the marker, as on v7.68.3 (KL-4488-f). **While an adoption is in flight, the set-aside verb runs on a ledger one of its identity legs still has to read (the leg has not written its done bit) and is refused (`adoption_in_flight`) on any other**; the leg replays the repaired pair at its next step and the adoption then completes over what the repaired pair holds — the report keeps the count the leg's first bit recorded, and a background-agent row whose arrival was set aside or lost while its source was kept stays under the old owner (KL-4488-f; to check, compare `readAdoptionStatus`'s report with the rows under each owner) — measured, an earlier engine's marker in flight past stage ③ with no checkpoint / background-agent bit over a damaged checkpoint or background-agent line: v7.68.3 completed the adoption (it reads neither ledger; the checkpoint rows unmoved) and the stores opened → the fix1 head refused the resume `store.ledger_damaged` (naming the verb) and the verb `adoption_in_flight` (naming the resume), the backend `adoption_in_flight` — two refusals pointing at each other → this release: the resume refuses, the verb runs, the resume completes over the kept rows, the backend opens (pins K7, BK9; the planned / arrived bit only: the verb runs, K7b, BK9b; the done bit, a ledger no leg reads, a local-owner marker: refused, the resume completes without reading it, then the verb runs, K8, K9, BK10).
1163
+ - **Not changed.** `RekeyPlan` and the two-step seats' own members (`rekeyPrincipal`, `rekeyScope`): the policy seat keys on the person only and the background-agent seat on the scope only, so neither can count a person moving without their partition. A row that records a partition re-files as before (pinned over a matrix, C). The checkpoint seat's other cells, its stamps and its `rev`. An entry's content, kind, age, session and task; the sweeps and the listing.
1164
+ - **Rules.** Readings of "where does a moved identity's partition go": the checkpoint seat's "an absent partition stays absent" + the background-agent seat's "only a scope pair" → one law. Answer compositions of a one-step seat: one (`oneStepRekeyAnswerOf`, the checkpoint seat's own retired). The run's views of a store (`LegToolResultView`, `ScopedToolResultStore`) are `ToolResultSeat`s — the store minus its migration verb — not stores. The adoption's identity legs: one leg (first step → a bit with its count → `leave` → done bit) and one report reading for all four seats, where the session-policy seat had its own leg, the tool-result seat its own leg and its own `none` case, and the checkpoint and background-agent seats sat in the zero-action list; the file checkpoint and background-agent seats' re-keys are each one implementation that the store's member and the adoption run (as the tool-result seat's already was). One written exception retired: the local-owner adoption's tool-result entries (the leg's KL-4488-a, which never shipped). Second fix round: the local-owner leg's judge for tool-result entries and the session-policy leg read the anonymous identity by one law (the person becomes the adopting principal, the partition stays) — the judge's "and no partition" carve-out retired; a conflicting `plan` row is ⓪'s refusal by the arc on every one-step seat, where the report subtracted it (one reading of `conflicting`, the one the contract states); the background-agent leg's look takes the directory as its step does (writer fence, then replay), as the one-step seats' looks already did by running their `plan`; the set-aside verb's gate in flight is one rule over the marker's own bits (a ledger a leg still reads), where it had none and the two refusals pointed at each other; an arrival re-files every member that holds the moving partition value (`scope`, and `rootSessionScope` where it equals it), where it re-filed `scope` alone.
1165
+ - **Pins.** `test/backlog4488-tool-result-rekey.test.ts` — M1–M3 (the move through a real Runner and both seats), L (the law's table and its idempotence), C (the checkpoint row matrix and the selection by the partition alone), T1–T8 (an existing target identity, a chain refused before any read, an identity pair, unreadable owner records, a damaged sidecar, the file record rewritten member by member, an unreadable owner record refused, a partition re-filed onto the new principal recorded as none — on both bundled stores), A1–A4 (the two reference adapters through the kit's cells and directly), D1–D5 (the adoption's two shapes — the local owner's with a reader matrix over entries with and without a partition —, a read after it, an earlier engine's marker past stage ③, a record leave cannot read after the planned bit), D6 / D6b (a row its seat counts conflicting: refused, named, before the marker on a fresh adoption and before the planned bit in flight; completed after the repair), R1–R2 (park → adopt → resume through a real Runner on the root's own stores, both shapes, live and reopened), LO1–LO2 (local owner → bob around a parked run through a `FileStorageBackend` stopped and started again, the run without a partition and in the partition `proj`, and the second through the root's stores live and reopened), K1–K6 (the checkpoint leg's bits: an earlier engine's marker, died after plan, died after leave, an unreplayable ledger, no ledger, a damaged line on a fresh adoption), K7–K9 (the set-aside verb in flight: no bit — the way out of the two refusals, planned bit only, done bit, a ledger no leg reads, the local-owner shape), K10 (a newer engine's checkpoint row of the person's: refused before the marker, named); `test/backlog4488-adoption-background-agents.test.ts` — B0–B2 (a run parked with a background agent, through a real Runner over the root's file stores: no adoption, adopted and resumed under each name), X0–X1 (the parent's run ended as alice with its child parked on its own card; after the adoption another engine — a new backend, another Runner and registry — decides it: the report reaches the parent's next run as bob once, the old box holds nothing), BK1–BK12 (the background-agent leg's bits: an earlier engine's marker, died after arrive, died after leave, a target row that is not the arrival, the local-owner shape, a damaged line in flight and on a fresh adoption, no ledger, the set-aside verb in flight with no bit / the arrived bit / the done bit, the root box scope moved with the partition and only then, another process holding the directory's fence on a fresh adoption); the kit's two re-key cells on both bundled stores; `test/store-contracts-discrimination.test.ts` (a store that writes the principal column alone, and one that also moves another identity's entries filed in the partition named after the person, each fail the person-alone cell and only it); `test/backlog3945-checkpoint-rekey.test.ts` G11a flipped; `test/file-adoption-root.test.ts` (a principal adoption reports every identity seat `row-rewrite`).
1166
+ - **Consumers.** @server: the hard-breaking sentences above (same version as #4481, or every pre-move page-back of a moved person reads as absent) — the store member, the kit's two cells, the plan member (its own measured false negative, measured on core's stores: a principal-only move of a row in an explicit partition answered `{ rows: 1, conflicting: 0 }` with nothing to say the partition stayed). @cli: your tree does not call `adoptLocalDataRoot` (code-read, local checkout `a51393fdd`; server `8e7211dbb` names it in a comment only, client-core / sdk / desktop / web-client: no hit) — what follows is what the verb does once a host calls it: a local-owner → cloud adoption carries the pre-adoption offloads to the adopting principal, each in the partition it was minted in (a run resumed under that principal in that partition reads them; one resumed naming no principal does not); a principal → principal adoption carries parked runs and the background agents that yielded with them to the new principal, and a background agent decided after the adoption reports to a parent run that had already ended at the parent's next run under the new principal (one decided before the adoption left its report in the old owner's box, which the new principal does not read — KL-4488-h; resumed under the old one they are refused); the report's legs come in a new order (read a leg by its `store`); the consumption list gains `ToolResultStore.rekeyIdentity`; nothing to change in code. @test: re-test the move between park and resume (M1/M2 shapes), the adoption around a parked run (R1/R2 shapes, both stores) and around a run parked with a background agent (B shape) on the release — the old-name refusal is the behavior change to check; and the three shapes the second fix round closes, each worse than v7.68.3 before it: a local-owner adoption around a run parked in a partition (LO2), a background child decided by another engine after its parent's run ended (X1), and an earlier engine's marker in flight over a damaged ledger line (K7 / BK9: refused, the set-aside verb, the resume completes, the stores open).
1167
+ - **Known limits.** KL-4488-b (a move with the person's own pair also re-files another person's rows filed in that partition, and counts them), KL-4488-c (a mapping across the two axes is taken as written), KL-4488-d (the G11a refusal sentence cannot say the row's partition came from a move), KL-4488-e (after a principal adoption the old name's refusal says the row was suspended under the new name), KL-4488-f (the session-policy leg has no look, so a session-policy directory that cannot be read freezes a fresh adoption after its marker, as on v7.68.3; a set-aside between a leg's first bit and its done bit leaves the report's count at the first bit's number and can leave a background-agent row under the old owner, five measured shapes), KL-4488-h (a child decided before the adoption: its report stays in the old owner's box and the new principal's next run hears it 0 times — as on v7.68.3), KL-4488-i (a background-agent row whose root box scope is not its partition — an anonymous root session — keeps the box scope: continued under the new principal, the parent hears 0 times — as on v7.68.3), KL-4488-g (a local-owner adoption does not reach a background agent an anonymous run parked with: resumed under the adopting principal the agent is not continued — measured the same on v7.68.3).
1168
+
1169
+ ### The newest Fable and Mythos models receive the sections the reference gives them: who the model is, a note on where its training limited research capabilities, how to finish work instead of stopping early, and what to save as memory — selected only by the traits a model declares; a model that declares none of them gets the same prompt bytes as before (#4564, #4297 slice S2a; additive; behavior change: prompt text for Fable 5.2 / Mythos 5.2 / Fable 5.1 / Fable 5 declarations, and the traits `fable5Model()` declares when the caller overrides `id`; narrowing: one, below; divergences: three, below; wire: four new section ids on `prompt.assembled`, no new block id; closed sets: none; exports: none; @server @cli @client-core @web-admin @test)
1170
+
1171
+ - **Added (catalog).** Four sections, each selected only by a trait word S1 registered (none of them reads a model id):
1172
+ - `core/model.fable-identity` (constitution band, rank 255; variant `5.2` on `fable_identity_5_2`, `5.1` on `fable_identity_5_1`, `5` on `fable_identity_5`) — the reference's identity text for that Fable version, without its product-access sentence and its vendor-page sentence;
1173
+ - `core/model.llm-rnd-capabilities` (constitution band, rank 256; on `llm_rnd_capabilities`) — the reference's note, word for word, that the model's training limited a narrow set of AI-research capabilities, so it should trust its priors less and check documentation more there, help as usual otherwise, and not suggest another model for that reason alone;
1174
+ - `core/simple.finishing-work` (core-behavior band, rank 268, standard form; on `finishing_work_guidance`) — the first of the reference's two "# Finishing work" paragraphs, word for word;
1175
+ - `core/simple.memory-guidance` (core-behavior band, rank 269, standard form; on `memory_guidance`) — the reference's "# Memory, notes and feedback" section, word for word.
1176
+
1177
+ Both shapes (`promptLean` true or false) receive them, as the reference sends them. The two model facts are locked and stay in the minimal form. The two behavior sections are left out when the turn has nothing to act through (`actingToolsAbsent`, as for autonomy and action caution); with a tool to act through they are the reference's text, and the reference has no tool-less face to compare with.
1178
+ - **Who receives what** (each model as its `REFERENCE_MODEL_PROMPT_TRAITS` row declares it; measured through the real Runner, lean shape, UTF-8 bytes):
1179
+ - Fable 5.2 (`fable_5_2_prompt_bundle` lights the finishing and memory words, plus `fable_identity_5_2` and `llm_rnd_capabilities`): all four, +3,879 bytes.
1180
+ - Mythos 5.2: the research note, finishing work and memory notes, +3,564 bytes; no identity, as in the reference.
1181
+ - Fable 5.1: its identity text only, +241 bytes.
1182
+ - Fable 5, including the library's own `fable5Model()`: its identity text only, +249 bytes.
1183
+ - `fable5Model()` with an overridden `id` (behavior change for those callers): the preset's traits changed from always the `claude-fable-5` row to following the final id. Before, `fable5Model({ id: "claude-fable-5-2" })` still declared the Fable 5 row, so with these sections it would have told the model it is Fable 5. Now, when the caller gives no `promptTraits`, the preset declares the row `referencePromptTraitsOf` maps the final id to — gateway and provider spellings included (`my-gateway/claude-fable-5-2`, `us.anthropic.claude-fable-5-2-v1:0` take the 5.2 row, which carries no `fable_5_mitigations` and adds the 5.2 sections). For an id no row maps (a gateway alias, a host's own name) it declares the `claude-fable-5` row without its identity word: `lean_prompt` and `fable_5_mitigations` stay, no identity sentence is sent, and the prompt is the stage head's, byte for byte. A caller's own `promptTraits` is used as given. `fable5Model()` without an `id` is unchanged.
1184
+ - Every other model receives zero new bytes, in every shape and locale. That covers Opus 5.5 (the reference gives it none of these four sections: its registry row declares only `opus_5_5_prompt_bundle`), Sonnet 5.5, Haiku 5.5, Opus 5, Mythos 5 / 5.1, every older Claude model, every third-party or undeclared model, and a Claude id a host minted without traits.
1185
+ - **Not changed.** The engine still reads no model id: an undeclared `claude-fable-5-2` gets the undeclared model's prompt. Measured on 28 models × 5 shapes (lean, classic, minimal, code role, zh-Hans; the 28 include `fable5Model({ id: "my-fable" })`), each against a fixture captured on the stage head before the change: the system prompt and every tool description are byte-identical. For the five models that declare a word, taking the new sections' text out of the prompt leaves the stage head's bytes. Tool descriptions are unchanged for all 33 (`test/backlog4564-newest-model-sections.test.ts` ① ②). The library byte matrix (`prompt-golden-matrix`) and the frozen prompt sentinel are unchanged.
1186
+ - **Not carried (divergences from the reference).**
1187
+ - `identity-official-link-dropped`: the identity texts leave out the vendor-page sentence ("Claude can direct them to https://www.anthropic.com/…") and the whole product-access sentence ("… includes additional safety measures for dual-use capabilities, while Claude Mythos … is available without those measures to only approved organizations"). For Fable 5.2 that sentence also opens with "Claude Fable 5.2 is our most intelligent generally available model"; it goes whole, and the next sentence says the same.
1188
+ - `original-games-not-carried`: the original-games section is not built; S1 already left its word out of the vocabulary.
1189
+ - `finishing-work-read-gate-kept`: the second finishing paragraph says Edit works without a prior Read inside the working directory. It is false here today, because Edit refuses a file not read first. It arrives with the change that relaxes that gate (#4322), in the same commit; this divergence is temporary and retires there.
1190
+ - **Narrowing (open to veto @server @cli).** The locked-text guard holds the two new constitution texts. A role text, an append, a role overlay or a `prompt.section` answer that contains one of them verbatim is refused `prompt.assembled_role_refused`, for every model, whether or not it declares the trait. In practice that means the reference's research paragraph pasted whole, or the reference's whole Fable 5.1 / Fable 5 identity paragraph (the carried text is its opening two sentences). The reference's whole Fable 5.2 identity paragraph is not refused, because the carried text drops a sentence from its middle. A deployment that pasted those paragraphs into its own role text, to give a model what the engine did not send, takes them out and declares the trait instead.
1191
+ - **Wire.** `prompt.assembled.sections` can name four more section ids (ranks 255, 256, 268, 269, all integers). Each new section joins the existing `harness.context` block: no new block id, and no existing section's id, rank or variant moves. The catalog digest moves once for every run, so the first leg of each session after the upgrade records a `code_change` epoch. For the four models that receive new text, their prompt prefix changes once and the provider's prompt cache rebuilds once.
1192
+ - **Locale review.** Six new zh-Hans renderings await a native reader before a release carries them (`gate:locale-review:rc`): `core/model.fable-identity#5.2`, `#5.1`, `#5`, `core/model.llm-rnd-capabilities#default` (constitution band), `core/simple.finishing-work#default` and `core/simple.memory-guidance#default` (`securityBearing`).
1193
+ - **Consumers.** @server: a model reaches these sections only when its `Model.promptTraits` declares the words. The server's catalog leg mints no traits today, so models run through the server receive nothing new until its slice of #4297 (S7b, #4572) mints `promptTraits` from `referencePromptTraitsOf(id)`; that slice has not landed. A test that pins a `fable5Model()` prompt or the catalog digest re-pins. @cli: the same, through the bundled server; the `promptLean: false` lanes receive the same sections. @client-core: four more section ids may appear on `prompt.assembled`. @web-admin: `describeCatalog` lists four more sections. @test: Fable 5.2 / Mythos 5.2 / Fable 5.1 / Fable 5 first-request bytes grow by the amounts above; every other model's are unchanged.
1194
+ - **Rules.** No new rule: four catalog messages, four sections, and four trait readers; seven liveness rows leave `scripts/prompt-trait-anchor.json` (`finishing_work_guidance`, `memory_guidance`, the three identity words, `llm_rnd_capabilities`, and `fable_5_2_prompt_bundle`, now read through its members). The engine reads no model id; the `fable5Model()` preset reads its own id only through the existing `referencePromptTraitsOf`, and no special case is keyed on a model.
1195
+ - **Pins.** `test/backlog4564-newest-model-sections.test.ts`: ① the invariant over 28 untouched models × 5 shapes against `test/backlog4564-baseline-golden.json` (captured on the stage head before the change by `test/backlog4564-prompt-capture.ts`); ② for each of the five touched models, the expected sections per shape, with the stage head's bytes once their text is taken out; ③ placement among the neighbours; ④ the six texts word for word, and the reference sentences not carried, kept absent; ⑤ the faces (the two behavior sections leave with nothing to act through, the two model facts stay; minimal; classic); ⑥ the guard's refusals beside a reworded control; ⑦ `fable5Model()` per id (none, 5.2, 5.1, two gateway / provider spellings of 5.2, an unmapped name, three reference ids outside the Fable line, the caller's own `promptTraits`); ⑧ each zh-Hans rendering's sentence count and the words its facts and floor sentences rest on. Re-pinned: `test/backlog4297-prompt-model-fit-baseline.test.ts` (C / D / E-F, the unread-vocabulary list, the Fable 5.2 / Mythos 5.2 registry declarations) and `test/prompt-catalog-m0.test.ts` (catalog digest).
1196
+
1197
+ ### The MCP session pool is found by the session tree's root address, the person it runs for and the peer seat its Runner was given — every leg of a session tree leases from one pool whichever Runner and session store object serve it, as long as those Runners were given the same seat object, a session id deleted and created again starts with a pool of its own, two principals or two seat objects never share one, and nothing hands a pool down (#4188 slice A′; behavior change; narrowing: five, below, open to veto @server @cli @client-core @test; widening: two, below, open to veto @server @cli @client-core; hard-breaking: four type members removed, below, open to veto @server @cli @client-core @sdk; closed sets: none; exports: none added, none removed — `ForgetMcpFailureRequest` gains an optional member; wire: none) (@server @cli @client-core @sdk @test)
1198
+
1199
+ - **Before.** The pool table was held per session store OBJECT and keyed by the leg's own session id; a delegated child, a workflow agent and a kept child's snapshot carried their parent's pool object (`ToolExecuteContext.mcpPool` / `RunInternals.mcpPool` / `WorkflowInternals.mcpPool` / `RunWorkflowToolDeps.parentMcpPool`). So a leg of the tree run by another Runner over another store object — a host's sub-runner starting or resuming a child while its parent is gone, the root's next message through a wrapper store over the same rows — read another pool and waited again for a server the tree remembered failed (measured: 4 021 ms, one more start); a session id deleted and created again on the same store object by the same principal read the old occupant's memory (measured: no dial, 11 ms) and, while the old occupant's background child still held a connection, leased that connection; a kept child resumed after the session's pool was let go read the failure its spawn saw (measured: no tool, no dial, the server fixed meanwhile); a leg whose occupant could not be read read and wrote the session's memory; `Runner.forgetMcpFailure` swept every key of the one pool, another principal's included when two principals drove the session row in one isolation scope.
1200
+ - **Now — the rule.** In a Runner, a leg that declares a server leases from the process's pool for its session TREE: the tree root's address — box scope, session id, occupant (`rootSessionAddressKeyOf`) — by one construction for a root and its descendants (`treeRootAddressOf`: a descendant the root its anchor records, a root its own address under its task scope, which its children's anchors record), and the principal the leg runs under (read as the task door reads `TaskSpec.principal`; a leg's connections are keyed by its principal anyway, so this splits nothing two legs could share). That table (`processSessionMcpPools()`) is the only answer to "which pool": nothing hands a pool down, and a kept child's snapshot holds none. An address whose occupant could not be read has no key: its leg makes a pool of its own that dies with its run. Outside a Runner a leg that declares a server makes its own, as before. A leg that declares no server holds no pool — a root that declares nothing included — and its descendants that declare one still meet in the tree's: measured (real Runner, a silent stdio server, 4 s bound), under a root declaring nothing a grandchild below a middle leg declaring none dials the server once and reaches its first model request after 4 048 ms, and the root's next child declaring the same server, after that middle leg ended, starts nothing and reaches its first request after 19 ms (`backlog3022-3023-run-tree-pool` P0 / P2). The table's bound (1 024 pools, only an idle one let go) is unchanged and now counts the process's pools, not one store's.
1201
+ - **Narrowing (open to veto @server @cli @client-core @test).** (1) *A leg of the tree on another Runner or through another store object reads the tree's memory.* Who notices: a host whose sub-runner (another store object) starts, revives, redeems or resumes a child of a session, or serves the session through a wrapper store — the child no longer dials, and no longer waits the bound for, a server the session remembers failed, when the sub-runner was given the same peer seat object as the session's Runner (or both none); a forget on any such Runner of the process reaches it. For @server: the sub-runner and the main runner now lease one pool for a session's tree (before, the store objects differed and so did the pools) — they are given one seat object. Compensation: `Runner.forgetMcpFailure`, `TaskStream.reconnectMcpServer`, or a changed declaration, as for any remembered failure. (2) *A session id deleted and re-registered starts with a pool of its own.* Who notices: a host that reuses a session id after deleting it (any principal) — the new session dials every server again (it waits the bound of a silent one again) and no longer leases a connection a background child of the deleted session still holds; for @server: a session re-registered under the same id no longer inherits the deleted session's MCP pool. Compensation: none needed; the old session's pool holds no connection once its last lease is released and is let go by the table's bound. (3) *`Runner.forgetMcpFailure` names whose memory it drops.* `ForgetMcpFailureRequest.principal?` (the principal the session's tasks run under); absent = tasks run under no principal; another principal's memory of the same session id is never reached; a `principal` given that is not a name is refused `config.invalid_argument` naming `ForgetMcpFailureRequest.principal`. Who is hurt: a host that runs tasks under a principal and calls the verb without one — it now answers `none_remembered` and the session keeps the failure. Compensation: pass the task's principal. (4) *A forget from a Runner holding another seat copy, or no seat, no longer reaches the session's memory, even over the same store object.* Before (the base): the pool table was the store's and its forget swept every key of the session's pool, so any Runner over the store reached it. Now the forget reaches only the pools held under the asking Runner's own seat copy (or none). Who is hurt: a host that calls `forgetMcpFailure` on a Runner other than the one whose session failed — given another seat object, a seat object whose members were replaced since, or no seat where the session's Runner has one (or the reverse) — it now answers `none_remembered` and the session keeps the failure (measured on the fix head: same store, other seat or no seat ⇒ `none_remembered`, the next message dials nothing; both trees before answered `forgotten`). Compensation: call it on a Runner holding the session's seat copy. (5) *Another Runner given a new seat object — even one whose members are the same functions — no longer shares the session's memory or its connections, over the same store object too.* A seat's identity is its object: this is the one rule that keeps one Runner from sending another Runner's seat's answer over its connection (measured on the integration branch: two seat objects with identical members, one store — the second Runner's call rode the first's connection carrying the first seat's `Bearer`; on this head it dials its own and carries its own). Who notices: a host that builds a seat object per Runner — the session's next message on the other Runner waits the startup bound again and dials again (measured, 4 s test bound: waits 4 018 / 4 061 / 10 ms, starts 1 / 2 / 2 on this head; 4 018 / 8 / 47 ms, starts 1 / 1 / 1 on the integration branch), and a child run on a sub-runner given a new seat object waits again (4 026 ms and 2 starts; 20 ms and 1 start before); the default bound is 30 s. @server is not affected (read code: every Runner is handed the one desk seat). Compensation: hand every Runner the same seat object.
1202
+ - **A connection is one peer seat's.** Every request on a connection carries what the seat that dialled it answers, so the seat object a Runner was given (`RunnerDeps.peerSeat`; absent = none) is part of the connection's key, of the pool's key and of a forget's reach. Before this (the slice's first head, measured): two Runners given two seat objects whose legs reached one root address — two host stores that mint no occupant token, or two direct `runWorkflow` calls naming only `originatingSessionId`, one session id, the same principal — leased one connection: the second Runner's tool call went out over the first Runner's connection carrying `Bearer TENANT-A` (the first seat's answer) where the base dialled its own and carried `Bearer TENANT-B`; on a silent server the second did not dial, and a forget on it dropped the first's memory; a forget on another Runner over another store dropped the session's memory; and a Runner given NO seat leased a seated Runner's connection, so its calls went out carrying that Runner's `Bearer` (the reverse too: a seated Runner's calls rode a seatless Runner's connection with no `Authorization`). Now each seat copy dials its own connection, carries its own answer and keeps its own failure memory; a seatless Runner's connection carries no seat's answer. The same seat object given to several Runners, its members reading as at its last receipt — a deployment that hands every Runner its one seat — is one credential source: those Runners share connections and memory across store objects (a sub-runner over a wrapper store leases the connection the session's child holds; a parked root resumed on another Runner does not dial again, or wait again for, a server the tree remembers failed — measured 22 ms, no start; with two seat objects it waits the bound again, 4 018 ms); to keep two Runners apart, give them two objects. The engine holds one copy per seat object at a time — the copy its members read at its last receipt: an object whose `answer` / `hold` / `release` was replaced between two `new Runner` calls is two sources (each Runner keeps what it read); putting the original member back is a third source, which does not rejoin the first copy; a member that is a getter returning a new function on every read makes every construction its own source. A Runner given no seat shares with every other seatless Runner and with no seated one. A library entrance (`materializeMcpTools`) never shares a connection with a Runner: it leases only from the pool its host hands it, by the same rule inside that pool. Two older forms, measured on the base too, are closed by the same key: two Runners over ONE store object given two seats shared a connection (the table was the store's; A8 seat arm), and one `McpConnectionPool` a host handed to `materializeMcpTools` under two seats leased one connection whose every call carried the first seat's answer (A10h).
1203
+ - **Widening (open to veto @server @cli @client-core).** (1) *Legs of two Runners over two store objects share when their root address, principal and seat copy agree* (the same seat object, its members reading as at its last receipt). Who notices: a host whose stores mint no occupant token (KL-4187-d), or that calls `runWorkflow` naming only `originatingSessionId` (KL-4188-a ②), with one seat object for every Runner — two such rows of one session id in two stores read one failure memory and lease a connection the other holds (it carries that same seat's answer). Before: each store object had its own table. Compensation: mint an occupant token, name the workflow's root (`rootSessionId` / `rootSessionIncarnation` / `rootSessionScope`), or give the Runners two seat objects. The seatless arm is the same widening: two Runners given no seat, over two store objects that mint no occupant token, one session id, no principal — the second Runner's call rides the connection the first Runner's background child holds (measured: the shared connection on this head, its own on the integration branch); no credential crosses (neither has a seat), the MCP server's session state on that connection is shared. Compensation for a seatless deployment: stores that mint an occupant token, or a principal / `isolationScope` per tenant. (2) *`Runner.forgetMcpFailure` reaches the session's memory on every store object*, for the named principal, on any Runner holding the same seat copy (or none, when the session's Runners have none), any occupant of the id and any isolation scope (the forget is by session id, principal and seat copy; its only effect on the other is one more dial). Before: only a Runner over the same store object. Compensation: none needed; another seat object's or another principal's memory is never reached.
1204
+ - **Also changed.** A leg whose occupant read faulted dials for itself and its failure is not remembered for the session (it read the session's memory before). A kept child resumed after its tree's pool was let go reads the tree's pool as it is now. A leg that declares no server no longer touches the table (its children find the tree's pool themselves). The root leg's occupant read happens before its MCP dial when it declares a server (it was read later in the same prepare; the read is the same one, once).
1205
+ - **Hard-breaking (type level, open to veto @server @cli @client-core @sdk).** Removed: `ToolExecuteContext.mcpPool`, `RunInternals.mcpPool`, `WorkflowInternals.mcpPool`, `RunWorkflowToolDeps.parentMcpPool`. They shipped: all four are members of root-exported interfaces in 7.68.x (at `v7.68.3`: `RunInternals` and `WorkflowInternals` on the internal tier, `ToolExecuteContext` and `RunWorkflowToolDeps` on the advanced tier). Who stops compiling: a host that builds the Workflow tool itself and passes `parentMcpPool`, a tool that reads `ctx.mcpPool`, a caller that writes `RunInternals.mcpPool` or `WorkflowInternals.mcpPool` (no code in the neighbour repositories' main branches does — measured after a fresh fetch of server and cli: the hits are docs, the ledger and a consumption manifest; a positive control hits). The observer sidecar no longer carries a pool either: it declares no server. Compensation: none needed — a leg in a Runner finds its tree's pool by address; a host-driven workflow whose agents should share a session's pool names the root (`RunWorkflowOptions.rootSessionId` / `rootSessionIncarnation` / `rootSessionScope`). The sentence "`ToolExecuteContext.mcpPool` is present on every Runner leg" is retired with the member.
1206
+ - **Known limits.** KL-4187-d narrows to a store that mints no occupant token. Multiple replicas still hold a pool each (process-local). KL-4188-a (new): three entrances carry no complete root address — a descendant of a root whose occupant read faulted (the anchor keeps no "unread" mark, so the descendant keys under "no occupant"; while the root row stays unreadable the descendant is now refused before it dials — the tree's owner read is the same row — so the shared form needs a fault that clears between the occupant read and the owner read — measured: two occupants whose roots fault only their first prepare read, under one principal and one seat, share one dial; no credential crosses), a direct `runWorkflow` that names only `originatingSessionId` (its agents key under "no occupant, no scope"), and a host's bare resume of a delegated child's checkpoint (no anchor: the child is its own root) — the first two share a pool with another occupant of the same id only under the same principal and only on that entrance. KL-4188-b (new): a seat object built per Runner is a credential source of its own — that Runner re-waits and re-dials what the session remembers (narrowing (5)). KL-4188-c (new): the table's entries outlive the session's deletion and the store's dispose; the table holds at most 1 024 pools and lets only an idle one go.
1207
+ - **`forgetMcpFailure` reads each request member once** and acts on the value it judged.
1208
+ - **Rules.** Replaced: the pool's key (store object + session id → tree root address + principal + peer seat), the connection's key (+ peer seat), the forget's reach (every key of a session's pool → the named principal's and the asking Runner's seat's pools of the session id), the seat's receipt (a copy per receipt → a copy per seat object read with the same members). Retired: the pool hand-down (four members and their three spreads) and "a handed pool comes first". Added: none.
1209
+ - **Exports / wire.** `npm run handoff:diff`: export surface unchanged (root 3 367 → 3 367 names). Type keys: four removed (above), one optional added (`ForgetMcpFailureRequest.principal`). `McpConnectionPool.keyOf` (root-exported class) gains a trailing optional `seat` parameter (absent = the key as before). No closed set, no wire key moved. Module-internal: `sessionMcpPoolsOf(store)` → `processSessionMcpPools()`; `SessionMcpPools.of(sessionId)` → `of(rootAddress, principal, seat)`, `forget(sessionId, server)` → `forget(sessionId, principal, seat, server)`; `peerSeatIdentityOf(seat)` new (not root-exported).
1210
+ - **Pins.** `test/backlog4188a-mcp-pool-root-address.test.ts` (real Runner, real stdio children, real loopback HTTP): A1 a root's synchronous and background children read its failure · A2 a descendant on another Runner over another store object · A3 the next message through a wrapper store · A4 a re-registered session id dials for itself · A5 an unread occupant leases a private pool · A6 a kept child resumed after the pool was let go reads the pool as it is now · A7 the table (one key for root and descendant; another occupant / scope / root / principal; unread; the bound; the forget's reach; the verb reads each member once) · A8 against a connection a background child holds live, another principal, another isolation scope and another occupant of a re-registered id each dial their own · A9 two principals on one session row in one isolation scope keep their own memory under one's forget · A10 two seat objects never share a connection, an answer, a failure memory or a forget (two token-less stores; two origin-only workflows; a forget across stores), one seat object does (a sub-runner over a wrapper store), one object with a replaced member is two and with the member put back a third, a seatless and a seated Runner never share (both directions) · A11 controls: two background siblings dial once, two principals in one scope, a deleted root row under a child, a parked root resumed on another Runner (one seat object: no re-dial; two: a re-dial), two occupants with faulted root reads (KL-4188-a ①): A11d / A11e / A11f — their children are refused before they start or dial on the synchronous, background and workflow lanes, the tree's owner unbound (`delegation.owner_unbound`, disclosed in the #4408 section, "Cost and bound of the owner reads"), and readable roots' children dial for themselves. `test/backlog4155-mcp-session-pool.test.ts` ⑦c re-pinned: a host-driven workflow's agents share a pool by naming their root. `test/backlog3022-3023-run-tree-pool.test.ts` P0 / P2 / O1 / W1 re-pinned from the carried pool's identity to dials and waits (a grandchild under a middle leg declaring none, the root's next child, the observer of a child, the auto-mounted Workflow tool's agents); W2 re-pinned to its counterpart (a host-built Workflow tool whose deps name another root, run by a leg whose ctx names the tree's root: the agent leases from the ctx root's pool — no new start, no wait); O1 also covers an observer whose own definition names the server (it dials nothing, pinned as it stands).
1211
+ - **Consumers.** @server: the sub-runner shares the session tree's pool with the main runner while both are given the one desk seat (`peerDesk.seat` handed to every Runner — read in `sema-server` origin/main `src/boot/stage-06-runners.ts`; a Runner built over another seat object reads its own pool); pass the task's principal to `forgetMcpFailure`; a re-registered session id no longer inherits the deleted session's MCP memory. @cli @client-core: nothing to change; a session's children that run elsewhere in the process no longer re-dial a server the session remembers failed. @test: a re-registered session id dials its servers again.
1212
+
1213
+ ### A catalog entry the deployment holds but does not serve: `route.model_unavailable`, and the route judgment is asked before every hop — the requested model first (#4241; server S-4170; behavior change; narrowing: four, open to veto; widening: five (one at the gateway layer), open to veto; hard-breaking: type level, below; closed sets: `RouteRefusalCode` +1, `RoutePairingStatus` +1, `DEGRADE_REASONS` +1, a new word `route.judgment_failed` on `skipped[].code`, a derived seat's notice `cause` and the advisor manifest's `routeCode`; wire: `skipped[]` + optional `fixHint`; exports: +2 (`ROUTE_JUDGMENT_FAILED`, type `RouteUnavailableDetail`), none removed) (@server @cli @client-core @sdk)
1214
+
1215
+ - **The law.** Whether a hop of a model request is dispatched is the deployment Brain's route judgment (`Brain.adjudicateRoute`), asked by the model lane before EVERY hop — the requested model first, with the per-call identity it is dispatched with (the whole per-model auth answer the request carries, `PerModelAuth`: `apiKey`, `headers`, `credentialOrigin` and the engine's `credentialOriginUnsettled` mark — the answer a derived seat's pre-flight hands; a later hop: none). A refused hop is not sent, not billed, rides `skipped` with its code, and the walk moves on. No hop dispatched and served ⇒ the requested model's own terminal; when its own route was refused, that refusal: `[invalid_request] <code>: <fixHint>`, the request gate's own error (its credential notices included), its usage a known zero — `TaskResult.stats.usageMissing` absent where a refusal at the request build said `true` (nothing was sent, so nothing is unknown). A cancelled request is not judged. The sending boundary is unchanged (a first-party brain's request gate judges again at build and at commit, and binds there).
1216
+ - **The word.** `RouteRefusalCode` + `route.model_unavailable`: a host's judgment answers it for an entry it switched off or has no lane for — `{ ok: false, code: "route.model_unavailable", detail: { modelId, fixHint } }` (`RouteUnavailableDetail`, new root type export). The deployment keeps the entry in the catalog it hands the engine (taking it out made every chain naming it refuse the whole catalog, `config.model_fallback_invalid`). `RoutePairingStatus` + `broken:model_unavailable`. `createRoutingBrain` answers the word for a model it places on no brain (no route, no fallback): its judgment `undefined` → the refusal; its request `createRoutingBrain: no brain for provider="x"` (uncoded, `provider.error`) → `[invalid_request] route.model_unavailable: createRoutingBrain serves no provider="x" (no route under that word and no fallback) — mount a route for it, or give the router a fallback`.
1217
+ - **The walk's record.** `DEGRADE_REASONS` + `route_refused` (never a gate word; the policy door refuses it as it refuses `budget`; `MODEL_FALLBACK_GATE_WORDS` unchanged): the requested model's own route was refused and its chain walked — `TaskResult.degraded.reason`, the marker, the `model.fallback` detail and the `fallback_unsent` statement; the requested model leads `skipped`. A refused hop moves the walk on whatever the policy's gate words say — `modelFallback: { on: [] }` included (a sent hop that failed does not move under `on: []`; a refused one, never sent, does). Each `skipped` entry is `{ model, code?, fixHint? }` — `fixHint` (new, optional) is the refusal's own fix sentence (a credential refusal's names the root the credential belongs to and the one the request was going to), on the marker, `TaskResult.degraded.skipped`, the `fallback_unsent` statement and the `model.fallback` detail. `model.fallback` sentence for this reason: `B was not sent — its route was refused before sending (<code>: <fixHint>); its fallback C answered instead.` (the other reasons' sentences unchanged; the list of refused fallbacks still names each `model (code)`).
1218
+ - **A route judgment that does not answer one** refuses its route — one reading for the model lane and every derived seat: it threw; it answered a Promise; it answered any other value that is not a verdict (`null`, a number, a string, an object whose `ok` is not `true` / `false`); or it answered a verdict whose members would not read (a getter that throws). The word is `route.judgment_failed` (`ROUTE_JUDGMENT_FAILED`, root export; not a `RouteRefusalCode`, so no `BROKEN_PAIRING_STATUS` row), and it appears in exactly these places: a `skipped` entry's `code` (with a `fixHint` saying how), and a derived seat's notice `cause` — `route.fallback_to_primary`, `route.classifier_unroutable`, `route.seat_detached` — and the advisor manifest's `routeCode`. No hop dispatched and served ⇒ `[invalid_request] route.judgment_failed: the deployment Brain's route judgment for "<id>" <how> …`, usage a known zero — `threw before anything was sent: <thrown text>`, `answered a Promise — a route judgment must answer synchronously (a verdict, or undefined for no judgment); nothing was sent`, `answered <shape> — not a verdict (ok true or false) nor undefined; nothing was sent`, `answered a verdict whose members would not read: <thrown text>`. Never a synchronous throw out of the lane's `stream()` / `complete()`. A thrown value's own `code` is not read as a refusal code. A refusal with no code still rides `skipped` as `{ model }`; one that does not read (no code and fix hint) on the requested model answers `[invalid_request] the deployment Brain's route judgment refused "<id>" before anything was sent but gave no refusal that reads (a code and a fixHint)`. A host's own credential refusal with a thinner account than the law's (no roots) is announced without spelling `undefined`: a root it does not name is said as such ("a root the refusal does not name"), and the notice's `detail` omits it. A `route.credential_origin_mismatch` from a host's own judgment that names both origins but not what bound the credential (`boundBy` absent, or not one of `declaration` / `table` / `generation`) is announced with `boundBy` absent from `detail` and a fourth, neutral sentence ("the judgment does not say what bound the credential there") — no new word; once per run per (model, origins), the unsaid account a value of its own, never merged with a stated one (the run's key is the serialized tuple: an origin a host's judgment spells with a separator in it, or a root spelled like the absent placeholder, is a fact of its own — two such refusals were said once). The judgment's reader carries `boundBy` where it is one of the three words, so a refusal the engine's own law states keeps its word on the lane's path too.
1219
+ - **A request reads its identity once: what is judged is what is sent.** The lane hands a hop's route judgment and its Brain one reading of the hop. A catalog entry whose `headers` is a getter (read per use) is read at its first read in the request and kept — the judgment, the request build and any rebuild of that request read the one answer (a getter that threw throws the same error again; a bag it answers is a frozen copy of its own entries); a per-model auth answer's `headers` is read once, by the answer's one reader, into a frozen copy (it was handed on by reference, read by the judgment and again by the Brain). Read counts per dispatched request: 7.68 one per build (a plain retry re-sends the built request; a re-shaped re-send — the output-cap recovery, fast mode's standard-speed re-send — builds again); one now. Behavior change: (1) a credential rotated during a request takes effect at the next request: the request, and a re-shaped re-send of it, carry the reading the request was judged on (7.68 read the getter again for the re-send); (2) an entry with a `headers` getter reaches the Brain (`stream` / `complete` / `adjudicateRoute`) as an object of its own per request — `modelOriginOf` answers the object the host gave and `sameModelData` holds, a host Brain keyed by the Model object's identity sees a new one each request (an entry without a getter is the same object as before); the engine's one identity reader of a request's Model, the reasoning stamp a leg's correction reads, names the entry (so the leg's `effectiveReasoning` is corrected for such an entry as for any); (3) a getter inside an answer's header bag that throws throws at the answer's reader — nothing is sent, as for a seat that throws. In the main loop that is 7.68's outcome (the run fails `provider.error`, the chain does not walk; 7.68 threw at the loop's header merge). A side lane now meets the throw at its seat instead of at its request build: for prompt suggestions there are no suggestions either way, and the host's `onError` (phase `suggestions`) now receives the throw. The other side lanes were not measured: compaction, the classifier, side query, memory consolidation, mod stations and web (KL-4241-h).
1220
+ - **A host's route judgment must answer synchronously.** A judgment that returns a Promise (an `async` judge) refuses every route it is asked about — before, it admitted every one.
1221
+ - **Derived seats (C-R1445 note 3).** A derived seat's pre-flight (the compaction summary, in a run and in `compactSession`; the auto-mode classifier; the advisor; the prompt suggestions) reads the judgment the same way: a judgment that does not answer one is the seat's route refused, disposed of exactly as a coded refusal at that seat — the compaction summary, the classifier (default) and the suggestions fall back to the primary model (`route.fallback_to_primary`, `cause: route.judgment_failed`); the classifier under `classifierFallback: "none"` is kept and its calls refused (`route.classifier_unroutable`); the advisor is detached (`route.seat_detached`, manifest `routeCode: "route.judgment_failed"`). It used to abstain — the seat kept its model, and since the lane refuses every call on it, the advisor said `on` while every consult answered unavailable and a `compactSession` with `roles.summarize` failed with no notice. The prompt-suggestion seat reads the one pre-flight every derived seat reads (its own copy retired). A derived seat's notice `cause` and `fixHint` are each present when the refusal gave one.
1222
+ - **Cancellation.** A request cancelled while its route is being judged is the Brain's to answer (aborted) — never the refusal; no later hop is walked to. A request whose own route was refused and that is cancelled before a fallback is dispatched (the cancel landing while the fallback is judged) is answered aborted too — the requested model's terminal, nothing sent, usage a known zero, no `fallback_unsent` statement.
1223
+ - **`createFailoverBrain`'s judgment** reads a leg whose judge throws as that leg refused: an OK leg anywhere answers OK, a faceless leg leaves the chain unjudged, every leg refused ⇒ the first in leg order (a throw rethrown as itself) — it used to let the first throw escape.
1224
+ - **Narrowing (open to veto @server @cli).** A requested model the judgment refuses is no longer dispatched: a host whose judgment refused it while its stream would have served it now gets the refusal. A host stream that refused the first hop with no engine code (server's unsent form, `provider.error`) is no longer reached when its judgment says the same — the terminal is `invalid_request` with the judgment's code leading the message. A host whose judgment throws for a model now has every request for it refused (`route.judgment_failed`).
1225
+ - **Narrowing — a later hop's judgment that answers no verdict (open to veto @server).** Measured on the stage before this change (`6e3a96eff`), both faces, a chain [C, D] after a failing requested model: C's judgment answering `{ ok: "false" }`, `0`, `null`, a string, a Promise of a refusal or a Promise that rejects was read as admitted — C was dispatched and served (and a rejecting Promise became an unhandled rejection); a verdict `{ ok: false }` whose `detail` getter throws was skipped with its stated code. Now each is skipped as `route.judgment_failed` and D serves.
1226
+ - **Narrowing — a derived seat whose judgment throws (open to veto @server @cli).** Before (the stage before #4241), the pre-flight abstained and the seat's calls were dispatched on its own model; now the seat is refused at the pre-flight as a coded refusal is (above). A garbage catalog value on a role-derived entry that makes the pairing law throw is such a judgment: the seat falls back to the primary, announced.
1227
+ - **Widening (open to veto @server @cli @client-core).** A requested model refused with a chain now walks the chain (it stopped on the first hop's `invalid_request`) — a credential refusal included (C-R1445 P1): the refused credential is not sent either way. A requested model the credential-origin law refuses, whichever arm (`boundBy` `table`, `declaration` or `generation`), is refused by the lane before dispatch and walks the chain: the judgment is handed the answer's `credentialOrigin` and the engine's unsettled mark as the request carries them, so the two arms that refuse on them no longer pass the lane and stop at the brain's request gate as `invalid_request` without walking (@server: a host whose 7.154.0 design read the #4241 shape sees two more arms walk; open to veto). With the chain served, the request gate's `route.credential_mismatch` / `route.credential_origin_mismatch` notice for the requested model is no longer said (the requested model's refusal is not the answer); `model.fallback` says the code and the fix — which names the root the credential belongs to and the one the request was going to — and `TaskResult.degraded.skipped[0]` carries both; with no chain, or no hop serving, the credential notice is said once as before. A later hop whose judgment throws is skipped (it failed the request on the stream face and rejected the `complete` face). A `createRoutingBrain` later hop with no route is skipped and the walk goes on (it stopped the walk).
1228
+ - **Widening at the gateway layer (open to veto @server).** `createFailoverBrain`'s dispatch does not ask a leg's judgment (as before: legs are dispatched in order, a first-party leg's own request gate refuses a mispaired request and the walk moves on; a host leg's stream decides for itself). Measured on base `eff3b58ab` and on this branch, both faces: a failover whose first leg's judgment throws while its stream serves, the second leg judging OK — (a) as the requested model: the first leg serves and receives the per-call identity, **the same as before** (not a regression); (b) as a later hop: before, the whole request failed (the judgment's throw escaped: an error terminal on the stream face, a rejected promise on `complete`); now the hop is dispatched and the first leg serves it (a later hop carries no per-call identity). A first leg whose judgment and stream both throw: as the requested model the answer is the same as before (the first leg's uncoded throw, the second leg not tried, nothing sent); as a later hop, before the request ended on the judgment's throw (uncoded), now the hop is dispatched, the gateway walk ends on the stream's throw, the lane's walk stops there and the answer is the requested model's own failure marked `exhausted` (nothing sent either way). A first-party first leg whose judgment throws and whose root does not pair is refused by its own request gate — nothing fetched on its credential — and the second leg serves (pinned). In these failover forms the leg's thrown judgment is on no record: the failover's judgment answered OK (another leg judged OK), so the lane never reads it as `route.judgment_failed` — that word is the lane's reading of a hop's judgment, not of a gateway leg's; asking each leg's judgment inside the gateway walk, and recording it, is #4257 (KL-4241-d).
1229
+ - **Widening — a requested entry whose own `headers` cannot be read (open to veto @server @cli).** An entry whose `headers` getter throws, or answers a bag one of whose members throws, is now read inside the requested model's judgment: the hop is skipped as `route.judgment_failed` and the chain serves the request (`TaskResult.degraded` reads `route_refused`, `served`; `skipped[0]` carries the word and the sentence with the thrown text). 7.68 failed the whole request: `provider.error`, nothing sent, the chain did not walk. Who notices: a deployment whose entry credential getter can throw saw a failure; it now sees the fallback model's answer, with one skipped entry. Measured on v7.68.3, stage `047d8d174` and this branch, with a first-party and a host Brain and a chain a→z (pin `backlog4241rm-fix1` N8).
1230
+ - **Hard-breaking — type level.** (1) `RouteRefusalCode` + `route.model_unavailable`: a host table typed `Record<RouteRefusalCode, …>` stops compiling until it names the word — server `src/hooks/hook-llm.ts` `ROUTE_REFUSAL_CODES` (read on server origin/main `fbcb3ff18`); add the key. (2) `RoutePairingStatus` + `broken:model_unavailable`: a table typed over every status stops compiling — client-core `src/liveModelCatalog.ts` `ROUTE_PAIRING_VERDICTS` (`satisfies` a mapped type over `Exclude<RoutePairingStatus, "unknown">`; read on client-core origin/main `0e380814`, which also lacks 7.67.0's `broken:protocol_plaintext_credentials`); add `'broken:model_unavailable': 'broken'`. (3) `RouteAdjudication`'s refusal side is a union by code: a host reading `detail.entryBaseUrl` / `requestBaseUrl` / `configBaseUrl` / `boundOrigin` / `requestOrigin` off any refusal narrows by `code` first (`modelId` / `fixHint` read on both arms); a host minting a credential refusal is unaffected; `adjudicateModelRoute` returns the credential arm only (a reader of its result is unaffected), and `RouteAdjudicationVector.expect` is typed over that arm. Mirrors that are not type-checked against core — client-core `RouteRefusalDetailView` (all URL keys required), sdk `RoutePairingStatus` / `degraded.reason` (open tails) — compile and gain one more runtime value each. The wire manifest reads `RouteAdjudication`'s two refusal arms flattened (no single discriminant) and reports "closed set lost members: RouteAdjudication.code"; read by hand: no member was lost, the five credential codes sit on the credential arm. (4) `WiringAdvisorFact.routeCode` is typed `RouteRefusalCode | "route.judgment_failed"` (it was `RouteRefusalCode`): a reader switching exhaustively over it adds one arm.
1231
+ - **Not breaking.** `RouteAdjudication.code` keeps every member: `route.credential_mismatch`, `route.credential_missing`, `route.credential_origin_mismatch`, `route.credential_answer_conflict`, `config.protocol_plaintext_credentials` sit on the credential arm, `route.model_unavailable` on its own. `RouteAdjudicationVector.expect` keeps its `code` and `posture` members (its type is the credential arm the pairing law answers).
1232
+ - **@server.** Add `route.model_unavailable` to `ROUTE_REFUSAL_CODES` (`src/hooks/hook-llm.ts`). An exhaustive reading of what a refused hop's `skipped[].code` or a derived seat's `cause` can say is the refusal codes ∪ `route.judgment_failed`. `route_refused` is now also a `DegradeReason` word; `hook-llm.ts` uses the same word in another closed set (the hook LLM failure code) — same word, different set. Your route judgment must answer synchronously (a Promise reads as `route.judgment_failed`).
1233
+ - **Rules.** The lane's two readings of a hop ("judged after the first, never the first") → one; the router's "no brain" sentence → the refusal it judges; the failover judgment's "a throw escapes" → "a throw is that leg refused"; a route judgment's answer is read in one place (`readRouteJudgment`) for the lane and every derived seat, where the lane read `ok === false` and the pre-flight read `verdict.ok` and abstained on a throw; the prompt-suggestion seat's own copy of the pre-flight retired (−1); the identity a hop is judged with and the one a derived seat's pre-flight hands are one reading of the per-model answer (the lane had read two of its four members); the entry's per-use `headers` read by each reader of a request (the judgment, the build, each retry) → read once per request, and the answer's header bag handed by reference to two readers → read once at its reader. Added: none (the model door's `requestModelOf` is the per-use member's own law, applied per request).
1234
+ - **Pins.** `test/backlog4241-route-unavailable.test.ts` (S1 the word on three faces, the read face, a derived seat, the advisor, types; S2 ① no chain ② chain served ③ all refused ④ a real first-party brain mispaired / no chain ⑤ the first hop's identity ⑥ refused then exhausted ⑦ cancellation ⑧ the unwalked `complete` ⑨ failover ⑩ a side query ⑪ the breaker, the policy door; a judgment that throws: no chain, first / later hop, server's two cells, a thrown value's own code, a refusal that does not read; an answer that is not a verdict ×7 at the first and a later hop, a host's thin credential refusal, `on: []`; the five derived seats with a throwing judgment — the run's compaction (a real in-run compaction), `compactSession`, the suggestions, the advisor, and the classifier in `backlog742`; ⑤ the identity on both faces walked and not, and the walked first hop dispatched with it through a real first-party brain; ⑦b a cancel inside the judgment; S3 direct and in a run); re-pinned (fix1): `route-adjudication` (a throwing judge is the route refused at the pre-flight; the garbage catalog value falls back), `backlog1821` (the pre-flight's refusal shape), `rb499` (the notice factory's argument); re-pinned: `backlog1859` F4, `backlog1821` F8b, `backlog742` ⑥, `route-adjudication` (the throwing judge throws for the derived model only), `backlog4214` G3, the router sentence in `backlog1842` / `backlog3569-3570` / `hardening-brain-resilience`. `test/backlog4241rm-fix1-one-reading.test.ts`: a host Brain with no gate of its own, both phases of a rotating `headers` getter — the judged value is the sent value, one read; a first-party brain's retry; a side lane's answer bag; the once-per-run key's two spellings; the `usageMissing` of a refused request.
1235
+ - **Consumers.** @server (S-4170): answer `route.model_unavailable` from the judgment for an entry this deployment does not serve and keep it in the catalog; `ROUTE_REFUSAL_CODES` gains the key; a stream-side re-judgment for requests through the Runner is no longer needed — the judgment and the send read the same identity (one reading per request, above); `skipped[].code` and a derived seat's `cause` may carry `route.judgment_failed`; `skipped[]` entries may carry `fixHint`. @client-core: `ROUTE_PAIRING_VERDICTS` gains `broken:model_unavailable` (and `broken:protocol_plaintext_credentials`); `RouteAdjudicationView` gains the unavailable arm (its URL keys are absent there). @cli: `/model` reads `broken:model_unavailable` through the package verdict (until client-core lists it, it reads `unknown`); `TaskResult.degraded.reason` / `model.fallback` may say `route_refused`. @sdk: `RoutePairingStatus` and `degraded.reason` gain a word each (open tails, no compile change).
1236
+
1237
+ ### The fleet terminal frame states what a background child was refused — `BackgroundChildEvent.refusedAsks`, the completion frame's own list, so the host's first door for one settle no longer stays silent where the second speaks (#4617)
1238
+
1239
+ - **Rule.** One settle, one record: the fleet terminal is the projection of the completion frame (`backgroundChildTerminal`, `src/core/delegation-frames.ts`, the one place it is composed), and `refusedAsks` joins the facts it reads from that frame — the same array (`TaskResult.refusedAsks`), not a second reading.
1240
+ - **Before (measured on the base projection, real Runner over a scripted model; `test/backlog4617-fleet-terminal-refused-asks.test.ts` T1 / T3 / T4 red there).** A background child asked for an irreversible tool nobody could answer and was refused: the completion frame carried `refusedAsks: [{ toolName: "wipe", … }]`; the fleet terminal, which the engine hands the host first through `RunnerDeps.onBackgroundChildEvent`, had no such member. The same on a revived child's later cycle and on the fork lane. A host that drew the fleet row from the first door showed a completed child with nothing refused, and the list reached it only with the second door.
1241
+ - **Now.** The terminal carries `refusedAsks?: readonly RefusedAsk[]` whenever the completion frame of the same settle does — the plain, the revived (that cycle's own list) and the fork lane — deep-equal and the same reference, the fleet terminal first (T1, T3, T4, T7a). **Absent means "not stated", never "nothing was refused":** a child that refused nothing has no key on either frame (T2; T3 cycle 2; never `[]`), and a terminal the registry lands itself (a stop, a session release, a stale reap, an approval expiry) or the terminal of a leg whose run threw has no result to read and carries none (T5, T7b, T8).
1242
+ - **Not changed.** The completion frame, `TaskResult.refusedAsks`, the background row and the report cards (they already carried it); the delegation lifecycle frame (`onDelegationLifecycle`: status / turns / `errorCode` only; T6); the workflow-agent (`wa*`) terminal, which does not state it (KL-4111-c, its own ticket); every other member and every closed set (`AskUnresolvableCause` has its row).
1243
+ - **Rules.** Added: one optional member and one projection line in the one function that composes the terminal; no second reading of the list (the line copies the frame's reference), nothing retired.
1244
+ - **Exports.** None added, none removed; `BackgroundChildEvent` is a root type and gains one optional member.
1245
+ - **Pins.** `test/backlog4617-fleet-terminal-refused-asks.test.ts` — T1 a real root run's refused background child: the fleet terminal's list equals the stream's `task_notification` list (tool, cause, count), the tool never ran, the fleet terminal arrived first · T2 control: nothing asked ⇒ neither frame has the key (`in`) · T3 a retained child woken twice (refused / quiet / refused): cycle 1 both carry, cycle 2 neither has the key, cycle 3 both carry only its own entry, each cycle fleet-then-frame · T4 the fork lane · T5 a session release reaps a child that had already been refused: the landed terminal and the frame it pairs with have no key (the later unwind's silence is `test/rb375-reap-terminal-notify.test.ts` B's) · T6 the lifecycle terminal is not a carrier · T7 the projection: one reference, absent exactly when the frame has none · T8 a leg whose run threw: its failed terminal and frame state none. Mutations: the projection line removed ⇒ T1, T3, T4, T7a red; the projection always stating `[]` ⇒ T2, T3, T5, T7b, T8 red; the lifecycle terminal also carrying the list ⇒ T6 red.
1246
+ - **Consumers.** @server: the fleet bus reads each terminal's members by name and `src/trace/core-keyset-guard.ts` guards this frame's key set at compile time with two tables (`BgNotifProjected` / `BgNotifExcluded`; read on `origin/main`, not run) — on the version that carries this change, register `refusedAsks` in one of them (a projection can reuse the reader the completion-frame side already has, `refusedAsksFields` in `src/trace/task-notification-facets.ts`). @sdk (the fleet frame's type) and @client-core: read it when present, read absence as "not stated". @cli @test: nothing to act on; test's black-box cell is a background child's refused ask showing on the first door.
1247
+ - **Wire.** One optional member on a fleet terminal frame; no existing member changes, a consumer that ignores it reads what it read.
1248
+
1249
+ ### The owner identity carries its owner's name on the root — `OwnerIdentity`, its mint `ownerIdentityOf`, the re-key law `rekeyOwnerIdentity` and the law's verdict `OwnerIdentityRekeyVerdict` — and the judge's equation (readable exactly when the principals and the partitions are both equal) is a contract sentence (#4594; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none added or removed by this change — four root names that are new in this release (#4481, #4488) take their final spelling, below; wire: none) (@server @cli @client-core)
1250
+
1251
+ - **Rule.** The judgment "may this identity read that record" (`identityReadVerdict`) states its equation once, as a contract sentence on its own JSDoc (`@contract owner_identity.readable_is_same_person_and_partition`, registered in `docs/CONTRACT-SENTENCES.md`): for two identities that each come from a mint (`ownerIdentityOf`, or `recordedOwnerIdentityOf` reading an owner record) the verdict is `readable` if and only if the principals are equal and the partitions are equal, a partition being the `isolationScope` when there is one and the principal otherwise (`isolationScopeOf`'s reading). No mint produces the empty string, as a principal (an empty principal is the anonymous identity, `null`) or as an isolation scope, which is why the judge's `??` and `isolationScopeOf`'s `||` read every pair a mint can produce the same way.
1252
+ - **Before.** The identity a run stores under and a record names was spelled `RunIdentity` / `runIdentityOf` / `rekeyRunIdentity` / `RunIdentityRekeyVerdict` in the notes above (#4481, #4488). A consumer's own type of that name collided with it on the root (server origin/main `8e7211dbb`, read in code with a positive control: its own `RunIdentity` at `src/identity-source.ts:118` and `runIdentityOf` at `src/http/principal-gate.ts:148`, none of the 21 files that use the spelling imports it from this package), and the spelling was already the leg wiring's family in this package (`runIdentityWiring`, the run's start wiring — a different thing). The equation the judge applies was written only in a comment.
1253
+ - **Now.** Four root names, none of them in 7.68.3's root (its export snapshot holds no `RunIdentity` in any case), take their final spelling before any release carries them: `RunIdentity` → `OwnerIdentity` (interface), `runIdentityOf` → `ownerIdentityOf` (function), `RunIdentityRekeyVerdict` → `OwnerIdentityRekeyVerdict` (type), `rekeyRunIdentity` → `rekeyOwnerIdentity` (function). The module's one other new export follows (`recordedRunIdentityOf` → `recordedOwnerIdentityOf`, not a root name), and the module is `src/core/owner-identity.ts` (was `src/core/run-identity.ts`; not a published path — `package.json` `exports` has `.`, `./bench` and `./fixtures` only). The notes above (#4481, #4488) read the new names; no release's notes were touched.
1254
+ - **Not changed.** Every runtime line (the change to `src/` outside comments is identifier replacement only); every name 7.68.3's root exports; the leg wiring's names (`runIdentityWiring`, `RunIdentityWiringInput`, `RunIdentityWiringResult`, `src/core/runner/run-identity-wiring.ts` — in 7.68.3, not root names, another concept); test file names.
1255
+ - **Rules.** Names the root gives one concept: 1 (the owner identity) where the same word also named another concept's family; homes of the judge's equation: 1 (a contract sentence) where there was 0 (a comment). Added: none. Retired: the four spellings above.
1256
+ - **Pins.** `test/backlog4594-owner-identity.test.ts` — R1–R4 (the two functions on the root module and the retired spellings not; the live `src/index.ts` read by parsing, with a control name; no root export holds `RunIdentity` in any case; the frozen snapshot's four kinds) · J1a–J1d (one cell per principal × partition combination, both directions) · J2 (every ordered pair of a grid of twenty holders, empty string and absence in both members, against an equation written with `isolationScopeOf`) · J3 (a minted identity written into a record reads back as itself) · E1–E2 (no mint answers `''`; a record holding one is unreadable).
1257
+ - **Consumers.** @server: the spelling the release carries is `OwnerIdentity` / `ownerIdentityOf` / `rekeyOwnerIdentity` / `OwnerIdentityRekeyVerdict`; your own `RunIdentity` and `runIdentityOf` no longer meet the package's on the root. @cli @client-core @test: no read — neither repo's origin/main (`a51393fdd`, `cb80cd8d`) holds the old or the new spelling (read in code with a positive control).
1258
+
1259
+ ### The run store's `update` takes an optional fifth argument, `opts.cause`, and the write that passes a park to a continuation states `"park_pass"` — so a store that wraps another can tell it from the run's own state changing (#4535; sema-server request, read from #4455's store contract; additive; behavior change: none for a store that does not read it, and none against v7.68.3 (the one extra write the census found past a run's terminal is from this release's own line, below); narrowing: none; widening: none; hard-breaking: none; closed sets: `WORKFLOW_RUN_UPDATE_CAUSES` +1 (`park_pass`); exports: +3, none removed (`WORKFLOW_RUN_UPDATE_CAUSES`, types `WorkflowRunUpdateCause` and `WorkflowRunUpdateOptions`); wire: none — the word reaches a store as an argument, never a frame, an event or a record member) (@server)
1260
+
1261
+ - **Rule.** `WorkflowRunStore.update(id, scope, run, expect?, opts?)` — `opts` is `{ cause?: "park_pass" }`. `park_pass` is on exactly one write: the continuation of a run's chain passing a park it stood on to itself (#4455) — the holder's FINISHED record as `get` returned it, one park entry's `passedTo` added, compared on `rev` (at most three calls per group of parks, at most one lands; `status`, `endedAt` and every other member as they were). Every write the owner makes of its own record — progress and terminal — states none (four arguments), so an absent `cause` reads "the run's own state changed". The core stores (`InMemoryWorkflowRunStore`, `FileWorkflowRunStore`) take the argument and do not read it: the compare-and-set and the row written are the same with it and without it.
1262
+ - **@server — a sentence to use.** When `update`'s fifth argument is `{ cause: "park_pass" }`, the call is the engine passing a park, not the run's own state changing: `run` is a finished run's record as your `get` answered it plus `passedTo` on the entries passed. Apply the compare-and-set and persist the row exactly as for any write; skip what you do when a run's state changed — the fleet roster's terminal frame, the terminal-window append, taking the hold again, the child-session pointer write. The word is on that write alone (the engine states nothing on any other `update` it makes; census below); an `update` with no fifth argument means what it meant; forward `opts` to a store you wrap. Your store runs the contract kit: `workflowRunStoreContract` gains one cell — a write stating a cause persists the same row as one stating none, and wins and loses on `rev`, scope and a missing row the same way — which a store that acts on the word only outside what it persists passes. Inferred, not measured on your store: the four effects named are what the ticket reads from your code.
1263
+ - **Census (the writers of a run record; `git grep` over `src/`, read code).** The run store's `update` has two callers in the engine: `persist` (`workflow.ts`, the owner's own snapshots — progress, and the terminal write that finishes the record) and the pass (`passParksFrom`, the holder's finished record). `put` is create-once (an existing id throws `already_exists`); `reap` and `deleteBySession` delete terminal records and write none. Nothing else in `src/` writes a run record. An owner's write after its own terminal is still the run's own state and states no cause. Two such writes exist: the `onSessionVerified` one below (new on this release's line, fixed here) and a resume's admission that finishes after a total-timeout terminal (`workflow.ts` `runBody`, where `run.resume` is assigned and `persist("update")` called with no `finalized` check — read code, plus a reviewer's reproduction that holds the journal load until after the deadline; it is in v7.68.3 too, adds the `resume` member to the already failed record and then starts the script body; **not fixed here, for its own ticket**). The other settle paths read past the terminal sit behind the `finalized` latch (read at the sites checked, not proved for each of the thirty `persist("update")` calls), and `M3` measured a completed run, a failed run and an agent left in flight on each spawn lane — after the fix no `update` landed on a record that already read finished. Over a real pass (`M1`) every write on the finished record states the cause and no other write does. Writers outside this tree (a host's own) are not measured.
1264
+ - **Found by the census on the merged tree, fixed here (this release's own line; not in v7.68.3).** The two `onSessionVerified` callbacks of a workflow agent leg (`ctx.agent` and `ctx.agentStream`, added by #4408's carrier work) persisted the run record unconditionally, while the function they call to name the session returns early once the run has ended — so a leg that verified its session after the run finished (an agent the script never awaited) made the owner write its finished record once more, content-identical but a cause-less `update`, which a store that reacts to every cause-less write reads as "the run's state changed" (measured, `M3`: one write per such leg on the merged tree, none on the branch before the merge). Now the session is named, and the record written, only while the run has not ended; the terminal write is unchanged. Hosts: no new word, one write fewer per such leg.
1265
+ - **Pins.** `test/backlog4535-takeover-writeback-mark.test.ts` — M1 (a real continuation passing a park: every write on the finished record states `park_pass`, carries `passedTo`, one lands; every write of the two owners states nothing; the record afterwards is the finished one with the one member added, `endedAt` unchanged), M2 (a third writer moves the holder's record before each of the first two attempts: every attempt states the cause, the third wins), M3 (the census above), M4 (a store written against the four-parameter `update`, handed the fifth argument and never reading it, applies the pass: the holder's record reads `passedTo`), R1 (the closed set is one frozen word; the stores built from the root export take the fifth argument without changing what they keep), R2 (the kit from the root export holds the new cell on both core stores); each over the in-memory and the file store where it runs a workflow.
1266
+
1267
+ ### A workflow continuation whose process was killed before it gave its resume claim back no longer holds its workflow for the claim's hour on the file store: the claim names the process that took it, and one whose process is proven gone on this host is taken over at once; both refusals over a held claim say when it lapses at the latest (#4652; behavior change: against v7.68.3 the continuation of the run that died holding the claim goes through again at once, as it did there; widening: one against v7.68.3, below, open to veto @server @test; narrowing: one against v7.68.3, below, open to veto @server @test; hard-breaking: none; closed sets: none; exports: none at the root — `ResumeClaimAnswer` is a module export of the journal-store contract; store contract: `resumeClaim` may answer `expiresAt` on a refusal, optional, one new contract cell; wire: the two refusal sentences gain a clause, the notice's `detail` is unchanged) (@server @cli @test)
1268
+
1269
+ - **Rule.** A resume claim binds until it expires, unless the process that published it is proven gone, by the one process-identity judgment the file store's directory locks use (`processCensus`): the same host and pid namespace, and the pid absent or now held by a process that started later. What that judgment cannot establish binds until the expiry, as before: a claim written on another host, one whose start time cannot be compared, one that names no process (written by v7.68.x, or earlier on this release's line). A holder that is running binds — another process, or another run of this process. A claim is held by a run in a process: the same run's re-claim is granted only from the process the claim names; from another process it is judged like anyone's — refused while that process runs, taken over once it is proven gone — and a release from a process that does not hold the claim removes nothing. A claim that does not bind is taken over by the store's one acquisition path (remove the bytes judged, then publish a complete record exclusively). Every decision about a claim file is made on one read and removes only the bytes that read judged: a taker whose read found the claim gone, and the sweep, used to remove whatever a second read found, a claim just published and granted included (both granted; measured, `X3a` / `X3b`; v7.68.3 has the taker's form too). Every removal of a claim file — a takeover, the sweep, a holder's own release — compares and removes under the claim's removal gate, a lock (the file store's directory-lock mechanism) named by a fixed-length digest of the claim file's name and the bytes judged, so two takers of one dead claim make one winner: without the gate, a taker paused between its compare and its unlink deleted the claim a faster taker had just published, and both were granted (measured, `I2`). A gate leaves the directory only through that mechanism — handed back; reclaimed once its holder is proven gone; or, a holder this host cannot judge, once the gate has stood longer than a claim's lease — never on a look at its age alone (a sweep that did so removed a live taker's gate and let a second taker in beside it, measured `X1`). A holder giving back a claim that binds while no gate can be created (a full volume) compares and removes it without one — nobody else removes a claim that binds; a takeover that cannot create the gate throws the fault. The same run's own re-claim of a claim that no longer binds republishes it naming this process (it was granted as it stood).
1270
+ - **Why now.** Since #4552 (below) the claim is keyed by the workflow tree's root, so the continuation R2 of R1 holds the claim on R1. A process killed while R2 ran (a closed terminal, a kill) left that claim behind, and every continuation of the tree, R2's own included, was refused for the claim's lease of an hour. On v7.68.3 the same resume of R2 took the key R2 and went through at once. On the file store it goes through at once again (measured: the review probe's shape, a child process killed while R2 ran, then `runWorkflow` resuming R2 and, separately, R1 in a new process — both run; with the store judging by expiry alone both are refused).
1271
+ - **Widening (open to veto @server @test).** Against v7.68.3, continuing R1 itself after its continuation R2 died holding the claim goes through as soon as R2's process is proven gone; v7.68.3 refused it for the lease. A holder proven gone cannot be running, so nothing let through here runs beside a run that is still going.
1272
+ - **Narrowing (open to veto @server @test).** Against v7.68.3, a re-claim with the holder's run id from a process other than the one that took the claim is refused while that process runs (v7.68.3 granted it as the same holder, and the claim's lease stayed the first process's, so a different run could take the claim at its expiry from a run still going). A host that passes one `runId` to two processes meets it; the engine's own re-claims of a run come from the run's own process.
1273
+ - **Now (the two sentences).** The direct call (`runWorkflow` / `startWorkflow`) keeps its sentence and adds: "If the holder's process stopped without giving the claim back, the claim lapses at <instant> at the latest, and the same resume goes through then." (with no instant from the store: "…lapses when the journal store's expiry frees it, …"). The model's own call and the person's notice (`continuing_elsewhere`): with no decision carried, "…; the workflow can be continued once that run has ended, or once the claim lapses (at <instant> at the latest) if its process stopped without giving it back" (the claim held for the run itself: the same clause after "…once it has ended and given the claim back"); with a decision carried, "…; it can still be used when it is handed over again (the claim lapses at <instant> at the latest)". The instant is ISO-8601 UTC, named only when the store answered one that is a date; the in-memory store answers none.
1274
+ - **Store contract (@server).** `WorkflowJournalStore.resumeClaim` answers `ResumeClaimAnswer`: `granted`, `holder?`, and new `expiresAt?` (optional; on a refusal, when the store's expiry frees the claim, epoch ms). A store that answers no `expiresAt` is unchanged: the sentence then names no instant. Your SQL store keeps its own lease and needs neither half of this. New cell in `workflowJournalStoreContract` (it runs only where the store has `resumeClaim`): a second run's claim on a held key is refused; `holder`, if answered, is the run holding the claim; `expiresAt`, if answered, is a finite instant no earlier than the claim; the holder's re-claim is granted; released, the claim is free.
1275
+ - **Not breaking — three signatures the wire manifest reads as changed.** `WorkflowJournalStore.resumeClaim`, `InMemoryWorkflowJournalStore.resumeClaim` and `FileWorkflowJournalStore.resumeClaim` answer `Promise<ResumeClaimAnswer>` where they answered `Promise<{ granted: boolean; holder?: string }>`: `ResumeClaimAnswer` is that object with one optional member more (`expiresAt?`), so a store (or a subclass) that answers the old object still type-checks, and a caller that reads `granted` / `holder` reads them as before.
1276
+ - **On disk.** A file-store claim gains `holderProcess` (the process fingerprint: pid, the two start-time measures, the host, the pid namespace where one is named). An older engine reading such a claim ignores the member and judges by expiry alone.
1277
+ - **Rules.** Readings of "this claim may be taken" 2 → 1: "unparsable or expired", with the same-run shortcut read before it, became one predicate (`claimBinds`) read first; the same-run grant applies only to a claim that binds. "Who holds it" 1 reading for the grant, the release and the final re-read (`heldHere`: the run and the process the claim names), where the run id alone was read at all three. Reads per decision: one (the second read of a file found gone, or of damage, is gone). A gate's ways out: its mechanism's only (the sweep's age deletion is gone). No second judgment of process liveness: the one in `src/core/process-identity.ts`; the lock mechanism gains one opt-in bound (an internal lock's `reclaimUnjudgedAfterMs`, not exported) that only the removal gates set.
1278
+ - **Pins.** `test/backlog4652-dead-holder-claim-takeover.test.ts` — D1 / D1b the probe's shape above, a real SIGKILLed child and a real `FileStorageBackend` (the claim then names the new holder and this process) · D2 a live child process's claim refused with its holder, the record unchanged, then taken once the child is killed · D2b another run of this process binds · D3 the pid now held by a process that started later (pid reuse) · D3b a pid this host does not have · D4 ×5 another host, no start time recorded, no process member, a malformed one, one with no host: refused naming the holder and the expiry, until the expiry · D4b the same run's re-claim of a dead claim republishes it · D5 four processes take over one dead claim at once: one grant · D6 / D6b / D6c the sentences word for word, and a store's `expiresAt` that is NaN, past the date range or a string names no instant · D7 a real Runner over the file stores: the model's call and the person's notice each name the instant, the notice's `detail` keys unchanged. D8 a removal gate left by a remover that died is reclaimed; one a live process holds refuses, unattributed. `test/backlog4652-takeover-interleave.test.ts` I1: the second taker completes its takeover inside the first one's process judgment, and the first is refused naming it; I2: the second taker runs to its end between the first one's compare and its unlink — one grant, every gate handed back. `test/backlog4652-fix1.test.ts` — X1 ×2 a sweep that looked at a gate when it had stood an hour does not remove it once a live taker reclaimed it · X2 / X2b / X2c the same run id from another process: refused while that process runs, taken over once it is killed, its release removes nothing · X3a / X3b one read per decision (a taker that found the claim gone; the sweep on damage) · X5 four real processes take over one dead claim while a fifth sweeps, twenty rounds: one grant each round, the record naming it, no gate left · X6 the sweep's three kinds of file · X7 ×3 source run ids of 186 / 200 / 209 characters: given back, taken again, taken over once expired · X8 a release with no gate creatable removes the claim · X8b a takeover with no gate creatable throws, the claim untouched · X9 another host's gate: refused while young, reclaimed by the next takeover once it has stood past the lease · X10 a gate that is no lock record: the lock's own refusal naming the file · X11 that holder renewing its gate inside the reclaim keeps it. **Re-pinned:** `test/backlog515-p26-workflow-claim-holder-death.e2e.test.ts` (it asserted that a SIGKILLed holder's claim refuses a different resumer until its TTL; now it is taken over, and the TTL arm stays for a claim that names no process), `test/file-workflow-journal-store.test.ts` (five refusals now answer `expiresAt`), and the `continuing_elsewhere` sentences in `test/backlog4552-one-waiting-line.test.ts` S3, `test/backlog4552-fix1.test.ts` F3 and `test/backlog4390-engine-continues-parked-workflow.test.ts` P2.
1279
+ - **Known limits.** KL-4552-a's second half rewritten: on the file store, a dead holder is taken over where its death is proven on the same host; a claim that cannot be judged (another host, no comparable start time, an older engine's record) still holds the tree until its lease ends; a remover that hangs without dying holds that one claim's takeover until it dies; a gate whose holder cannot be judged holds it for up to a lease (refused without a holder named); a gate whose bytes are no lock record refuses that claim's takeover until a person removes the file the error names; a release that could create no gate is exposed as every v7.68.3 release was (a releaser stopped between its compare and its unlink past the claim's expiry can remove a successor's claim).
1280
+
1281
+ ### One line of a workflow runs or waits at a time: a continuation that would add a waiting line starts nothing and names the lines that wait and their cards, and the workflow's resume claim covers its whole tree — the duplicate execution of an approved step on a dead or sibling branch is gone from the trees these two doors build (a tree that already has two lines waiting still runs a step once per line, KL-4552-i) (#4552; behavior change, a narrowing; **BREAKING: a workflow journal store with `resumeClaim` and no `releaseResumeClaim` is refused** — open to veto @server @cli @client-core @test; closed set `WORKFLOW_PARK_UNUSED_REASONS` +`waiting_elsewhere`; store contract: a store that takes resume claims gives them back, and the claim's key is the tree's root, an opaque id to a store; wire: the notice's new reason word, the model's refusal sentences, a `config.invalid_argument` refusal at three seats)
1282
+
1283
+ - **Rule.** A workflow tree (a run, the runs it was resumed from, the runs resumed from them) runs or waits on one line at a time: a continuation that would add a waiting line starts nothing. Before a run is continued — the model's own `Workflow({ resumeFromRunId })`, or the engine's continuation of a decided card — its whole tree is read for the runs that wait: a run that ended suspended on a park (`workflow.agent_parked`) and that the holder law (`workflowParkHolderOf`, over the tree) still names on a card the checkpoint store says is pending. The head of a waiting line — the run waits, and no run below it does — is continued whatever other lines wait (a decision handed to it: an allow moves that line, a deny closes the step it waits on; the model's own call: its run stops before the same card again, nothing runs until a person decides it). Any other run is held off by every run that waits off its line (neither it nor a run above it) — by every one below it when it waits itself — and the lines named are the heads of those. A holder whose record still says `running` does not count (a live run is held off by the claim; one that died there must not lock the tree), nor one that ended any other way; a card a fork stands on is the line's own when one of the fork's runs is on the line; a scheduler's yield counts (continuing that run moves it). A read that fails starts nothing. The workflow's resume claim is keyed by the tree's root (was: by the run being continued), so a run of the tree that is still running — another continuation, or one still driving a step — holds every other one off; the judgment is read again under the claim, so no line can come to wait between the reading and the start (a run below would have to start, and the claim holds it off) — where the claim is one for every process: a journal store that takes and gives back claims; on a store with neither member the engine's in-process table holds it for one process only (KL-4552-k).
1284
+ - **BREAKING (@server): a workflow journal store that takes resume claims gives them back.** A store with `resumeClaim` and no `releaseResumeClaim` is refused where the engine receives it — `new Runner` (`RunnerDeps.workflowJournalStore`), `createRunWorkflowTool` (`RunWorkflowToolDeps.journalStore`), `startWorkflow` / `runWorkflow` (`RunWorkflowOptions.journalStore`) — one door (`assertJournalStoreGivesClaimsBack`), one sentence, `config.invalid_argument`: "<seat>: the workflow journal store takes resume claims (resumeClaim) but has no releaseResumeClaim — refused. …". This supersedes what the #4390 entry below said of such a store (it left the claim to the run's admission; that entry now points here): since the claim keys a whole tree, on such a store a tree continued once made every later step wait for the claim before it to expire (the read-only leg measured 60 minutes, F9, on the in-memory and the file store). A store with both members, or neither (the engine's in-process table), is wired as before; every continuation now takes its claim before its run exists and judges again under it. The two bundled stores implement both; server's SQL journal store does too (read: `src/stores-sql/workflow-journal-store-sql.ts`, `resumeClaim` and `releaseResumeClaim`). The store's expiry is only the backstop for an engine that died holding a claim (the interface doc says so now).
1285
+ - **A store's own text never reaches a sentence the model reads.** The Workflow tool's resume claim that throws, and the launch record's read that throws, now say the error's class only — "the resume's resume claim could not be taken (the journal store threw Error) — not started", "the launch record of workflow run "X" could not be read (Error) — …" (was: the store's message, up to 200 characters, into the model's tool result); a continuation's launch that throws says "the continuation's launch threw <class>"; a journal store whose `locator` throws once the run has started leaves the journal coordinate out of the launch receipt and the completion frame (was: the tool call threw with the store's message after its run had started, and the engine's continuation answered `launch_refused` for a run that was running). The class is worded once (`storeErrorClassOf`), the way the park lane's refusal already worded it. The engine's continuation tells the person and the model one sentence, so the person's notice for those failures now carries the class too (was: the store's message, credential-shaped parts masked).
1286
+ - **Before (measured, a real Runner, the 7.69.0 stage head `c2326eb05`).** A run X whose gated step G failed and whose step H parked; the model continued X (A: G asked again on a card of its own) and continued X again (B: G asked again on a second card): both cards could be decided and G ran twice (S1, S3; the tail ran again too); with both pending, H stood on a fork and approving it answered `not_holder` (S2); two continuations at once both started (S5b); a continuation still driving the approved step and the model's continuation of X at that moment ran G twice (the drive window, A2); a continuation whose end went unwritten (its record stays `running`) let every further hand-over of H's decision start one more run and one more card for G (W: 4 cards after 3 hand-overs). The model's own resume refused at the claim answered `started`, left a `failed (admission incomplete)` record with no `resume.fromRunId`, and its completion frame told the model to resume that record (A3a, three of three).
1287
+ - **Now.** The second continuation of X while A waits is refused on the spot: the model's call is answered `workflow run "X" is not continued: another line of this workflow is waiting: run "A" stopped on an approval card at agent "G" (checkpoint "cp_…"), and a workflow runs or waits on one line at a time. Nothing was started; decide that card first, or continue run "A" instead.` — no run record, no `started` reply, no frame; the engine's continuation of a decision handed to a run off the waiting line answers `workflow.parked_decision_unused` with reason `waiting_elsewhere` and `holder` = that run (the person's sentence keeps the decision: "The approval card is still waiting and the decision is kept; decide that card first, or continue run "A" instead, then hand this decision over again"). The model's call refused at the claim is answered on the spot too, with `continuing_elsewhere`'s sentence ("another run (run "C") holds the claim to continue this workflow right now, so nothing was started; the workflow can be continued once that run has ended.") — no record, no `started`. Measured (`test/backlog4552-one-waiting-line.test.ts`): S-setup refused with one G card pending and the line then completing with G run once per approval (N1); a deeper head named (N4); a fork's member driving its card and the other member then refused (N5); W: the second hand-over starts one run (the dead one does not count), the third and fourth are refused naming it, G2 then H take the line to its end, also after a serving layer flipped the dead run to failed (N6); the drive window refused at the claim, G once (N7); two continuations in flight, the second refused at the claim (N11); an unreadable tree or card starts nothing (N6, N8). The model's refusal sentences are passed whole (they were cut at 600 UTF-16 units; the engine's notice never was). A run that ends while its admission is still reading the tree (its time ran out) takes no claim afterwards (it would have been held by a run that is over; N18). When the admission's walk stops because the run store did not give a record — the prior run's own or one above it — the run ends with the park lane's one refusal of that fact (`workflow.park_truth_unreadable`, `detail.reason` `store_threw`, the error's class alone, never its text), whose sentence now covers both: "the prior run's record, or that of a run it was resumed from, could not be read from the run store (<class>), so its parks cannot be proven." (was: "the prior run's record could not be read …"; pins 642 / 652 unchanged). **The tree's walks are bounded by one count of runs, not by generations** (`WORKFLOW_TREE_RUNS_MAX`, 4096 runs read in all, the holder law's walk down — the takeover's and the admission's readers with it — and the walk up to the root; was: 16 generations and 256 runs, two numbers): a plain workflow gains one run per continued step, so a generation bound cut ordinary use — measured on this car's earlier head, a workflow of seventeen gated steps in a row had its seventeenth continuation refused on both paths, where the integration head continued it; now forty gated steps in a row go to their end on both paths (N19). Past the bound the model's call is told "its workflow has more runs than the 4096 the engine reads to judge a continuation (every continuation of a run adds one), so it is not continued and nothing was started. Start the workflow again — it runs from its first step" (S4, N20); the engine's continuation answers `record_unreadable`, whose one sentence now reads: "the workflow run's record could not be read right now, or the run is still running or did not stop on an approval. The approval card is still waiting; the next run of this session tries again. If the answer stays the same, the workflow may have more runs than the 4096 the engine reads to judge a continuation (every continuation of a run adds one): then start the workflow again — it runs from its first step" (S5, N6, N20). In the W shape the first hand-over after the run that never wrote its end still starts one run and its frame still names G's approval first (#4471's "decide the approval that earlier step is waiting for first" line, pinned by `W-takeover-end-unwritten`); from the next hand-over on, that line is replaced by `waiting_elsewhere`'s sentence naming the run waiting on G's new card — the state itself (a continuation's end left unwritten) is still reachable on both paths.
1288
+ - **Several lines waiting (a tree an earlier release left, or one of the known limits below).** Each line's head is continued — a decision handed to it, or the model's own call — and every other continuation is refused naming every line: "other lines of this workflow are waiting: run "A" stopped on an approval card at agent "G" (checkpoint "cp_a"); run "B" stopped on an approval card at agent "G" (checkpoint "cp_b"), and a workflow runs or waits on one line at a time. Nothing was started; decide any one of those cards first, or continue one of those runs instead." (at most three named, the rest counted; with a decision kept: "… — each moves its own line —, then hand this decision over again once none of them waits"); the notice's `holder` is then every head run. Each line's card approved once runs that line's step once — a step both lines wait on runs twice, once per line (KL-4552-i). Measured (`test/backlog4552-fix1.test.ts` F10, the in-memory and the file store): the tree the leg's F10 built (two continuations of X each waiting on its own card for G) — X refused naming both; G@A handed to A runs G once and A's line stops on H; G@B denied, handed to B, closes that step (G not run); X refused naming the two lines now on H; H decided through one of them runs the line to its end (G once, H once); the model's own call continuing a head starts a run that stops before the same card, G run 0 times, and each line's card approved once then runs G once each (F10b). Before this round on this car's head every way out of that tree was refused for good (the leg's F10).
1289
+ - **The claim held for the very run being continued** (still running, or just stopped and not yet given back) is said as such: "run "A" itself holds the claim to continue this workflow right now (it is still running, or has just stopped and not yet given the claim back), so nothing was started; it can be continued once it has ended and given the claim back." (was: "another run (run "A") holds the claim …", naming the run itself; measured, F3).
1290
+ - **Narrowing (open to veto, @server @cli @client-core).** While a later run of a workflow waits on a card, the model can no longer start another branch from an earlier run of it — the shape `test/backlog4455-holder-takeover.test.ts` cells 10, 13 and 14 pinned (re-pinned: the second continuation is refused; cell 14's fork is made by a claim that expired under its holder). Against v7.68.3 this is a narrowing at the tool's door. The way out: decide the waiting card, or continue the waiting run (the head) instead. Against v7.68.3 too: a yield counts as a wait; the claim is keyed by the tree; a tree of more than 4096 runs is continued on neither path; each continuation reads the tree (the cost below); a run store whose `listByScope` throws while its `get` answers refuses the model's continuation ("… could not be read — not started", measured by the read-only leg; v7.68.3 never listed and started it); a journal store with `resumeClaim` alone is refused (BREAKING, above). Not narrowed, and not fixed either: a tree that already has two lines waiting (left by v7.68.3, or by a known limit below) still runs a step both lines wait on once per line (KL-4552-i).
1291
+ - **@server.** The notice's reason set gains `waiting_elsewhere` (fifteen words): not used, still deliverable once the named run's card is settled — do not deliver it again in a loop. `record_unreadable`'s sentence gains a second half (the tree bound and its way out); the word and its handling are unchanged. **The run store is read more per continuation:** each continuation now reads the whole tree, twice (judged once, then again under the claim), and the run's admission walks up to the root once more. For a straight line of D runs one judgment is 2·D `get` and D `listByScope({ resumedFrom })`, so one continuation is about 5·D `get` + 2·D `listByScope` (≈ 7·D store calls; pinned by N21 at D = 257). Measured on k3s8 (one judgment, the in-memory / the file store): D = 64: 4 / 3 ms; 256: 11 / 12 ms; 1024: 113 / 85 ms; 4096: 1051 / 876 ms (the walk up alone: 1, 3, 7, 28 ms). The two bundled stores answer `listByScope` by scanning every run of the scope, so the wall clock grows with D²; a database-backed store makes about 7·D queries per continuation and needs an index on `resumedFrom`. **Your SQL run store does not filter by `resumedFrom` today** (its `listByScope` takes `status`, `limit` and `session`; read code, `src/plugins/workflow-run-store-sql.ts`): each of those listings answers the whole scope. The engine takes a row as a successor only when the row's `resumedFrom` names the run — your rows are `summarizeWorkflowRun`'s projection, so a resume's row carries it — and reads only those records, so the `get` count does not grow with the runs the scope holds (measured on an in-memory store that ignores the filter, a line of three runs and N unrelated runs in the scope, one continuation: N = 0 / 500 / 5000 read the same `get` and listing counts, `test/backlog4552-fix1.test.ts` C2; an earlier head of this release read every row without the member, 22 / 4529 / 55036 `get`); each listing is still a scan of the scope. Implementing the filter (and the index) makes each listing answer the successors alone. A store whose rows lack `resumedFrom` (a projection of its own) reads as a tree with no successors (KL-4552-j), and the contract kit's `resumedFrom` cell reds on it — the cell accepts a store that filters and one that answers the scope unfiltered. One store change, the hard break above (`releaseResumeClaim` with `resumeClaim`); the resume claim's `sourceRunId` is now the tree's root (`ResumeClaimArgs.sourceRunId`'s doc says so) and a store keys by it as by any id. The model relay that continues the holder continues the head, which this admits. When several lines wait, the notice's `holder` is an array of the head runs (as a fork's `not_holder` already is).
1292
+ - **Not changed.** `workflowParkHolderOf`, `passedTo`, generations; the card judgment of a decision (`judgeCards`, X and its successors); `continuedBefore`; S4 (a step driven and failed, asked again on the same line) and the redo after a line completed (C5) still run as before; the store contracts, but for the run store kit's `resumedFrom` cell (#4390's, new in this release), which now accepts a store that answers the scope unfiltered and asks that every resume's row carry the member (@server above).
1293
+ - **Known limits.** KL-4552-a (a continuation outliving the claim's lease lets a second line start, now tree-wide; a claim a dead process never released holds the whole tree until its lease ends where that process's death cannot be proven — on the file store it is taken over once it is, #4652 above), KL-4552-b (a dead branch's old card revived after the main line completed runs its step again — withdrawing dead cards is 7.70.0), KL-4552-c (a head that can never be continued holds the tree until its card expires), KL-4552-d (a reaped root splits the tree's key; the call's claim keyed by the old root is given back when its run ends, not at expiry — measured, KL-4552-d′), KL-4552-f (a run-store row that does not read is skipped by the tree walk), KL-4552-g (a host calling `runWorkflow` directly is not judged), KL-4552-h (a tree of more than 4096 runs — a fan-out of thousands — is continued on neither path; on the engine's face it shares `record_unreadable`'s word with a read that failed, told apart by the sentence's second half). KL-4552-i (a tree that already has two lines waiting — left by v7.68.3, or by KL-4552-a / -d / -g / -k: one step approved on each line runs once on each; a person who approves the later step's card on the second line is first asked the earlier step again, and the card just approved comes back to be approved once more — no step runs more times than it was approved; measured: F10 / F10b, and every card decided until none waits on the KL-4552-a / -d / -g shapes, G 2 of 2 approvals, H 2 of 3). KL-4552-j (a run store whose list rows lack `resumedFrom` reads as a tree with no successors). KL-4552-k (a journal store with neither claim member: the claim is one process's, so two processes continuing one head at once start two lines — the read-only leg measured it with two Runners on one in-memory store). Not done here: a decision handed to the losing member of a fork (#4529). Closed by the store door: KL-4390-j (a store that only expires claims) and KL-4552-e (its old face on such a store).
1294
+ - **Rules.** The invariant sits on its unit: one admission rule on the tree (`otherWaitingLine`, two seats — the model's call before its run exists and under its claim, the adopter before its launch-record judgments and under the claim) instead of per-card or per-step marks; the claim's key moves from the edge to the tree; the reason set +1; the walks' two bounds (generations, runs) become one (runs), shared by every walk of the tree. States no longer reachable: two pending cards for one step (S1/S3/S5b), a fork on H from two continuations of one run (S2), a deeper head bypassed (A1), deny-then-approve forking (S2d), the drive window (A2), W's growth past one extra run.
1295
+ - **Pins.** `test/backlog4552-one-waiting-line.test.ts` — J1–J9 the judge over stub stores, clause by clause, every read failure, and which card a run waiting on two is named by (the one it stopped on itself); S1–S3 the sentences word for word on both faces; N1 N4 N5 N6 N7 N8 N11 on a real Runner, and one cell per seat: the engine's continuation names the waiting line before its launch-record judgment (N12) and judges it again under the claim (N13), the model's call judges it again under its claim and gives the claim back (N14), every take of the claim is keyed by the root (N15), the run's admission walks the tree itself and a run above the prior one that the run store does not give there starts nothing of the script, with the park lane's refusal (N16), a run whose time runs out while its admission reads the tree leaves no claim held (N18); the tree bound: J10 (a line of 4096 runs read whole from both ends, 4097 and a root with 4096 continuations past it), S4 / S5 (both sentences word for word), N19 (forty gated steps in a row to their end on both paths), N20 (a tree past the bound on both faces), N21 (one continuation of a line of 257 runs asks the store at most 5·D gets and 2·D listings, plus a few of its own), N22 (the model's call a person approved, for a run another waiting line holds off: the person's sentence whole, the decision kept); J11 (the head rule over stub stores: the head of each of two lines is continued, a run that waits with a waiting run below it or one that does not wait is held off, only heads named), S3 (the claim held for the run itself), S6 (several lines, word for word). `test/backlog4552-fix1.test.ts` — F10 / F10b on the in-memory and the file store (every way out of a two-line tree; the model's own call continuing a head runs nothing before a person decides, each line's card approved once runs G once each), H (the notice's holder for several lines), W (the window between the reading and the start, closed by the claim: the model's call held between its first reading and its claim is refused under it, naming the line that came to wait), M2 (the store door at its three seats; both or neither members wired), F9 on both stores (two steps approved one after another both start; no claim left), M3 / M3b / M3c (no part of a store's text in anything the model or the person reads: the claim that throws on both paths, the launch record's read that throws, the continuation's launch that throws, a locator that throws once the run started), O (a host's direct `runWorkflow` resume of a line of 4097 runs refused at the admission, 4096 continued), F3 (the claim held for the run itself, at the instant its end is written), KL-4552-a / -d / -d′ / -g (the shapes that leave two lines, measured: every card decided until none waits, no step runs more times than it was approved and no decision runs more than one step once). **Re-pinned** `test/backlog4390-fix1.test.ts` A4 (a store that only expires claims: was "the run's admission takes the only claim", now refused at `new Runner`); `test/backlog4455-holder-takeover.test.ts` cell 14's refusal sentence (it names both lines now; the cell's other readings unchanged); `test/backlog4556-unrecorded-run-continues.test.ts` O6 (the `askedBefore` sentence's new first half); N16 / N18 arm their store faults at the run's first write (the call now takes its claim first on every store). **Re-pinned** (earlier in this release) (each old assertion pinned a shape this removes): `test/backlog4455-holder-takeover.test.ts` cells 10, 13 (the second continuation of a run while its first waits — now refused naming it), 14 (its fork is now made by a claim that expired under its holder; the way out is the holder's own line); `test/backlog4390-engine-continues-parked-workflow.test.ts` P2 (the old assertion — two runs, the second a `failed (admission incomplete)` record behind a `started` reply — pinned the defect: now one run, no such record in the store, the model's call answered with `continuing_elsewhere`'s sentence in full); `test/backlog4471-launch-face.test.ts` W-takeover-end-unwritten (the old assertion — one more run and one more G card per hand-over — pinned the growth: now the third and fourth hand-overs read `waiting_elsewhere` naming the waiting run, and the way out is unchanged); `test/prompt-catalog-m0.test.ts` the bundled catalog's frozen digest (a declared refreeze: #4556's frame message entered, below).
1296
+
1297
+ ### A parked workflow run with no launch record continues again — the engine keeps the decision for the model's own call, which carries it when approved, or stops the run on the same card once more under a run with a record, which the decision handed over again continues (#4556; behavior change, a widening — open to veto @server @cli @client-core; closed sets: none; wire: `launch_unrecorded`'s sentence and frame line)
1298
+
1299
+ - **Before (measured, the 7.69.0 stage head with #4471).** A card parked by any release up to and including v7.68.3 (no launch record) could be continued on neither path after the upgrade: the engine's continuation answered `launch_unrecorded` ("…Start the workflow again"), the model's own resume was refused with the same sentence; the card waited until it expired. On v7.68.3 itself, with the session unchanged, the model's own resume continued it (measured by the #4471 review leg on a real v7.68.3 park).
1300
+ - **Now.** A run with no launch record reads this session's settings, parked or not (as a failed run without one already did). The engine's own continuation has no script to run, so it keeps the decision for the model's own call and tells the model once (`askedBefore` after, told to the person alone, whose sentence then says "the session's model was already told once to continue the run by calling the Workflow tool with the run's original script and resumeFromRunId, so it is not told again — where that call needs an approval, …"): "this run has no record of what the workflow was started with (…), so the engine cannot continue it on its own. The approval card is still waiting and the decision is kept: the session's model continues the run by calling the Workflow tool with the run's original script and resumeFromRunId — where that call needs an approval, the approved call carries the decision and continues the run; where it does not, the run stops on the same card once more, under a new run, and the decision continues it once it is handed over again"; the frame's line is a new catalog message (`core/event.workflow-continuation.model-continues`: "To continue it, call Workflow with the run's original script and resumeFromRunId: "X"."; zh-Hans rendering added, awaiting native review). `launch_unrecorded` is no longer a settled reason. Measured (`test/backlog4556-unrecorded-run-continues.test.ts`, a real Runner): a v7.68.3-shaped card (no record, no stamp), session unchanged — the approved call continues it, the step once, the card resolved (O1); the session's model changed — the continuation ends `workflow.parked_call_changed`, the card waits (O2, as on v7.68.3); a deployment that allows Workflow — the call stops the run on the same card under a run with a record and a stamp, continuing the first run again is refused naming that run (#4552), the decision handed over again to it continues the run, the step once (O3); a record kept without a stamp is still compared (`host_changed`, O4); a stamped run whose record is gone, the session moved — refused before anything starts, the card reusable (O5); told once (O6).
1301
+ - **A run with neither a launch record nor a host-fold stamp is not compared** (what v7.68.3 and earlier parked): its parked step's own call stops a change (`workflow.parked_call_changed`, final, the card waits until it expires — KL-4556-a). A run with a record and no stamp is compared as before.
1302
+ - **Not changed.** A launch record that does not read back (`launch_unreadable`) still continues on neither path.
1303
+ - **Pins.** `test/backlog4556-unrecorded-run-continues.test.ts` O1–O6; re-pinned `test/backlog4471-launch-face.test.ts` X-model-path (continues), `test/backlog4390-user-face.test.ts` U2 (`launch_unrecorded`'s sentence).
1304
+
1305
+ ### Fast mode reads four more ways a provider pushes back the reference's way: the model named in another spelling, the fast-mode beta itself refused, a 5xx whose body says it is overloaded, and a short wait that says not to retry (#4299; behavior change: a call that failed on each of these now completes; narrowing: one, open to veto @server (R3); widening: one, open to veto @server (R4); hard-breaking: none; closed sets: no word added — `model_not_allowed` is now also what every model reads at an endpoint that refused the beta; `ENGINE_NOTICE_CODES` unchanged; exports: none added or removed — `parseClaudeModelId` / `ParsedClaudeModelId` now live in `src/brain/claude-model-id.ts`, same root names; wire: unchanged shapes) (@server @test)
1306
+
1307
+ - **Rule.** A failed request that carried fast speed or its route's latched beta meets fast mode's two rules first, in the reference's order, read with the failure's body: the refused beta's heal, then fast speed's rule (`fastModeFallbackOf`). **R2** — a failure refusing the fast-mode beta itself (`fastModeBetaRefused`, the reference's `Bmn` / `wxe` for this beta, cli321.js:285903): a gateway's `capability_rejected: beta_header:fast-mode-2026-02-01` anywhere in the body, whatever the status; the API's "Unexpected value(s) … for the `anthropic-beta` header" naming it, whatever the status when it opens the message (the stated envelope's `error.message`, else the body's text; its first line) and anywhere in a 400's body. On a fast request, or on a standard one carrying the latch (judged on a status whose body the engine reads anyway: not a 5xx / 408 / 409), the request goes again at once without the beta and without fast speed, not counted as an attempt (the reference's beta heal, `ZRt` cli321.js:287625, before its fast-mode block); only when that beta-less re-send was built does the session learn it: the route remembers it for the session as one fact with the latch (`beta: "latched" | "refused"`): neither the beta nor fast speed goes there again for any model, a toggle does not bring it back, every model there reads `model_not_allowed` (outranking an earlier `preference` there: it is the word a toggle does not forget), the session still reports its fast-mode reading on a later leg that does not ask (it did send fast speed), said once (`model.fast_mode_changed`, opening with the reference's "Using standard speed on … · fast mode wasn't available"). A beta the deployment (or the call) declares in its own headers is not fast mode's to drop: the rebuild still carrying it is not sent, nothing is learned or said, and the failure is judged as if the beta had been accepted — every leg as before this change. **R3** — an overload is a 529 or any status whose body's stated envelope (a body that ended) says `overloaded_error` (`a1` cli321.js:277299): a 503 so worded takes the overload's arm (a cooldown `overloaded`, 30 min when no wait is named, the request re-sent at standard speed at once) and is not counted as a server error; a 429 so worded names its cooldown `overloaded`. **R4** — a 429 or overload naming a wait under 20 s, with a retry left, is the rule's own retry at fast speed, sent whatever `x-should-retry` says (the reference's short-wait arm runs before its retry verdict, cli321.js:287622), while the waits the call keeps at fast speed — each the wait the engine actually takes before that retry, its backoff or the provider's wait, the longer (the reference sums `mD`, cli321.js:277299 "return Math.max(b*1000,y)"; a negative wait reads as the backoff) — sum, with this one, under 20 s (:287622 "Y+Xr<_lt"); a tried request's short wait (#2394) is its fall-back's wait. **R1** — the model a `speed` refusal names is compared through the one Claude model-id reading (`sameModelNamed`, `src/brain/claude-model-id.ts`, the reading `referenceModelIdOf` already used): letter case, a region or `anthropic.` prefix, a dated, `@date` or `-v1:0` snapshot, a dotted version, a `[1m]` suffix; an id that is no Claude id compares with case folded and a dated suffix dropped (the reference compares `Lp` of both sides, `Elt` cli321.js:287622).
1308
+ - **Who needs it / who is harmed / compensation.** R1: a deployment whose gateway names the upstream's spelling of the model needs it — every leg failed until the entry stopped declaring fast mode; harmed: none (a name of another model still ends the call as it is). R2: a deployment behind a gateway that does not know the beta needs it — every leg failed, the latched beta reaching the standard re-sends too; harmed: such a route stays off fast mode for the rest of the session even if the gateway learns the beta (a new session asks again); compensation: the notice names the header and says it is not asked for again there. R3: a session whose provider answers an overload with a 503 needs it — it kept hammering fast; harmed: such a session goes at standard speed for up to 30 min where a second fast try might have been served (the reference's price); compensation: the notice carries the reset time, and turning fast mode off and on ends the cooldown. R4: a session meeting a short rate limit that says not to retry needs it — the call failed; harmed: the provider's "do not retry" is overridden for a fast request — a provider answering every request so gets as many fast retries as the call's retry budget allows while their waits sum under 20 s: with the engine's default retry delay (500 ms) at most five, over about 15–19 s, then the cooldown and one standard request (the reference's count); with a shorter configured retry delay the retry budget bounds first (eight retries at a 1 ms delay: eight more fast requests within a fraction of a second); compensation: the ordinary retry frame announces each wait.
1309
+ - **Changed beside the rules (open to veto @server).** A fast request's failed body is now read before the retry ladder whatever its status (a 5xx's too: the overload is stated there), so the retry frame of a fast request's first 5xx now carries `providerMessage`, and a 5xx body that stalls adds up to 5 s (the bounded body read) before that retry. A standard request carrying the latched beta is read for the beta's refusal only where the ladder already read its body (every failure but a 5xx / 408 / 409), so its retries, frames and timing are as before. The rule's input takes the failed body as read (`body`, a `FailedBody`) where it took its text, and the wait the engine takes before the retry (`retryWaitMs`: the ladder's one wait, read once and slept as budgeted); the refused-beta reading is its own predicate (`fastModeBetaRefused`); the engine's re-send without the beta is one more build override (`BuildRequestOverrides.withoutFastModeBeta`, read by the fast-mode applier); the #1579 pure-rule table reads its rows so (fixture shape only: two rows state the 5 s wait as `retryWaitMs`); no #1579 or #2394 lane cell moved.
1310
+ - **Still different from the reference (read, not followed here — listed for a ruling).** (1) R1: the reference's reading also matches a model by family substring (`claude-opus-4-6-proxy` names `claude-opus-4-6`), maps a deployment's `modelOverrides` and its baked provider-id catalog; ours knows no unknown trailer (the id set is open) and has no override map — a model named with an unknown trailer fails every leg, as before this change. (2) R2: the reference heals any beta it knows; ours the fast-mode beta only, and only the copy the engine put on (whether the reference drops a user-declared beta was not read). A standard request carrying only the latched beta is read for the refusal on every failure but a 5xx / 408 / 409 (the reference reads every status): a gateway answering that request's refusal with a 5xx is retried as it was. The reference remembers a named refusal for new conversations on that model in the process (`h8s` cli321.js:287623); ours keeps it per session — on a server holding many tenants a process-wide memory would let one tenant's gateway change another's requests — so a new session sends the beta once more and is told once more. It tells the person only when the refused request was a fast one (`XAo` needs `Bpe`, set only for a fast request, cli321.js:287625); ours tells once per session whichever request met it. (3) R3: ours reads the overload only off an envelope stated by a body that ended, parsed and within 64 KB (`error.type`); the reference looks for the text `"type":"overloaded_error"` anywhere in the error's message (`a1` cli321.js:277299). A body with no `error` wrapper, one that is not valid JSON, one past 64 KB (and one cut or stalled) reads here as a plain 5xx: one more fast request (the first 5xx keeps fast speed), and when a second follows, a cooldown of 10 min instead of 30. Also, from before this change: the reference cools down on a second server error only for its foreground request sources (the main thread, agents, compaction among them; `Ype` cli321.js:277308, :287622 "if(!Os||V>1&&Ype(r.querySource))"), a background one re-sending at standard speed with no cooldown; ours cools the session down whichever request met it (a next-prompt suggestion's included). (4) R4: the waits are the engine's own — the backoff starts at the deployment's `retryDelayMs` (default 500 ms, the reference's base) and is capped at 32 s (the reference's short-wait arm caps it at 20 s, which no kept wait reaches), and a tried request's short wait (#2394) is its fall-back's wait, the provider's alone; the reference's watchdog branch (`Hr`) has no counterpart. (5) R1, from #1579: the reference heals a refused `speed` parameter only for a refusal-fallback target or a model refused before (:287622 "(r.modelIsRefusalFallbackTarget||JAo(w.model))"); ours heals it for any model.
1311
+ - **Rules.** Fewer readings: one model-id reading for both of its readers (the preset lookup's comparison is `sameParsedClaudeModel`); one fact per route for the beta (latched / refused) instead of a latch boolean plus a refusal elsewhere; one overload predicate read by the rule and by the server-error count; one wait per retry (the ladder's, budgeted by the rule and slept by the ladder) instead of the provider's number for the budget and the backoff for the sleep; a refused beta is learned by its heal alone (no learning without the re-send). Added: one observation (`beta_refused`), one predicate (`fastModeBetaRefused`) and its heal before the existing rule, one build override (`withoutFastModeBeta`).
1312
+ - **Pins.** `test/backlog4299-fast-refusal-shapes.test.ts` — real Runner, real `fetch`, a loopback endpoint recording every request's headers and body: per rule a base cell, positive shapes, neighbours, and cells stacked on #1579 (latch, refusal memory, server-error count, short wait) and #2394 (the tried capability meets the speed rule first, then its fall-back); R2: the reading's reach (a token on a 422 / 403 / 503, the sentence opening a 422 / 403 or a non-JSON body; neighbours: a plain 422 / 403, the sentence after other words on a 422, another beta), the refusal per session (a new session asks again), the heal not counted, a handle that never learns still heals and cannot loop, a deployment-declared beta leaving every leg as before (nothing learned or said, the reading `on`; on a 429 the speed rule judges it); a standard request carrying the latch (its 503 retried as it was with no provider message, a stalled 503 body not waited on, its 429's `x-should-retry: false` honoured); R4's budget (every 429 or overloaded 503 saying not to retry under a 25 s backoff: no fast retry; a 7 s backoff: one; the default 500 ms over eight retries: five — the reference's count; three retries: three; a 1 ms delay over eight retries: eight; a 19 s wait kept, a 20 s one not; negative, date-form and absent waits); a cut overloaded body is a server error; the refused beta outranks `preference`; the rule's arms and the beta's reading as tables. On the base head `d94d96249` the file's first version had 24 cells red (each base cell, every spelling and form, the stacked cells that move), the neighbours green.
1313
+
1314
+ ### A leg that needs no execution environment no longer starts one: the mount plan answers "does this run need an execution environment" (`ToolMountPlan.executionEnv`), and an `unneeded` leg never asks the factory (#3829, #3818 S1; behavior change; hard-breaking: at the type level, below; six narrowings and three relaxations open to veto)
1315
+
1316
+ - **Rule.** One reading, both halves: the mount table is read twice over the leg's facts, once with every environment fact true and once with no environment (a deployment's static env is not read); a member consumes the environment when its placement differs between the two, when its row carries the new `envHand` column, or when the leg installs a write-protection table and the member takes a non-read path target. Beside the tools, twelve needs (`workspace`, `attachment_paths`, `plan_file`, `restore_files`, `checkout`, `restore`, `compaction_restore`, `caller_placement`, `delegation`, `mods`, `memory`, `park_lane`). `state`: `needed` (a consumer mounts or a need holds) / `conditional` (one is open) / `unneeded`.
1317
+ - **Before.** Every leg called `RunnerDeps.executionEnvFactory` once, `excludeAllTools` included, so a tool-less side task on a device lane was refused by a host's placement door (`device.not_bound`) for an environment it never used.
1318
+ - **Now.** The effective half is read once, before the environment starts, over the facts the leg knows then; `unneeded` ⇒ the factory is not asked (`prepareExecutionEnv` takes `startsEnv`; a static env still stands and the stub answers otherwise; `Runner.rewindFiles` always asks). A leg whose read state carries files in — a session a leg already read a file in (the session's live read state on the same Runner, else the transcript's whole-file records, read only where nothing else asks for the environment), or a resume whose checkpoint holds reads — still starts an environment (`compaction_restore`): a compaction on it re-reads those files through the environment and re-delivers them, as every leg did; `compaction.attachWorkingFiles: false` turns that off. A leg that can call a tool where a park can be taken (its checkpoint store, on a leg someone resumes — `seat.checkpoint`) still starts an environment too (`park_lane`): its approval park lane is read on the environment as on every factory leg before (the environment's shell read station arms it, and an environment that cannot suspend refuses its own park), so every policy ask ends as it did — measured on the stage this lands on (cd2edc21c), 26 forms (a suspendable remote factory, one that cannot suspend, one with no I/O, a node factory, a static env, none; with and without a store; no seat, the blanket allow and deny seats, durable approval; a leg with only a pathless tool and one beside `Read` / `Bash`; the resume half on the same and a new Runner): with a store the outcome and the factory count are the stage's in every form; with none, the outcome is, and the factory is not asked. So three kinds of leg still start one: a leg whose tools consume the environment, a leg whose read state carries files a compaction re-delivers, and a leg on which an ask can park. The static half is `describeStaticWiring(deps, spec, { session: "new" }).toolPlan.executionEnv` — new optional third argument: without the statement the session's own needs (`checkout`, `restore`, `compaction_restore`, `caller_placement`) stay open and the state is never `unneeded`; with it a static `unneeded` holds on the leg.
1319
+ - **Narrowing (open to veto @server @cli @client-core).** (1) A factory-lane leg that reads `unneeded` runs without the environment's enrichment (on a deployment whose every lane is a factory — the server's host lane as well as its device lanes — that is every such leg; only a static env, where one stands, still enriches it): no working-directory line in the environment block, no `git_status` frame (it describes the repository the environment stands in; with no environment there is none), the project-memory loader is asked with `handsEnabled: false`, no file history, the task root / home / project marker are read from the no-I/O stand-in. The instruction files are not among the losses: the lane reads them under `Read`'s face, and `Read` is an environment-hand row, so a leg that delivers them needs an environment anyway — measured on the base tree, a zero-tool leg or one with only a pathless caller tool that declares `instructionFamily` started an environment and delivered nothing. (2) `additionalDirectories` on such a leg are not announced. (3) A zero-tool leg on an already-bound device session reads the same. (4) A leg its deployment handed no workspace (its factory left unasked, no static env — `hands.reason: "not_needed"`) sends no `workspace_changed` frame: the frame states the workspace the deployment handed the leg — an environment, or, on a deployment that hands none (no env seat, or a factory that answered none), the stand-in, that deployment's one workspace, whose frames are unchanged. So a session row keeps the workspace its last frame stated (a zero-tool leg between two band legs no longer reports `cwd: "/"` and drops `project`), and a session whose legs never started an environment has no workspace frame at all — measured: a first leg with no tools on a factory sent, on the base tree, one frame with the factory environment's root and the `project`; it sends none now, so a host's session row has no workspace or project until the first leg that starts one. (5) On such a leg a tool's `ctx.parentCwd` and `ctx.callerRoot` are absent (they were the environment's root; the contract already allows absence). Read in code: no reader in core outside the delegation tools, which always start an environment, and none in server `fbcb3ff18` (it reads `ExecutionEnvFactoryContext.parentCwd`, handed by core's own delegation tools), cli `a78ccb3d` or client-core `0e380814` — a third-party caller tool that reads them handles their absence.
1320
+ - **Relaxations (open to veto @server @cli @client-core).** A leg that stands in no environment starts no command, so its `TaskSpec.sandbox` requirement reads `commandSandbox: { state: "not_needed" }` (the hands seam's word) — never `armed`, and nothing is read against a home directory it does not have. Measured on the stage this lands on (the per-call `~/` reading of the sandbox section above already in it): (a) a zero-tool leg on a factory whose environment declares no command sandbox was refused (`config.command_sandbox_unavailable`), or under `failIfUnavailable: false` reported `unavailable` and announced it; it now completes, `not_needed`, no notice. (b) A zero-tool leg whose factory throws (a placement door refusing, `device.not_bound`) failed with the factory's error; on a session no leg read a file in, the factory is not asked now, so the leg completes (a leg that needs an environment — one on a session whose reads a compaction would re-deliver among them — still fails with that error). (c) On a hands-less deployment (no factory, no static env) the requirement read `armed` (the stand-in declares the capability because it refuses every start), with an absolute or a `~/` path alike; it now reads `not_needed` and mints no per-call plan.
1321
+ - **Manifest difference (@server @client-core, wherever the manifest is read).** A leg that reads `unneeded` and declares `instructionFamily` reports `projectMemory: "on"` and no `instructions` section, where the base tree reported `instructions: { selected: [] }` (it seated the lane over an environment and read nothing). The model's context is the same in both. A leg that can call nothing (no tool member), on a deployment with a checkpoint store, reports `parkLane.effective: false` and its seat's store-less `ask.effective`, where the stage reported the lane armed by its environment's shell read station (`park_only`): no ask can arise on it, so no outcome moves.
1322
+ - **Wording.** None of its own: a `~/` path of the requirement is read where a call's plan is minted (the sandbox section above), and a leg that stands in no environment mints none, so it meets no `~/` refusal.
1323
+ - **Hard-breaking (type level, open to veto @server @client-core).** `ToolMountPlan.executionEnv` is a required member: a hand-built `ToolMountPlan` fixture fails to compile, and so does a table that must dispose of every key of the core type (a host's tool-plan projection table meets a required key it has no disposition for). Two words widen a closed type, read the same way: `HandsUnmountedReason` from one literal to a registered closed set of two (`no_execution_env`, `not_needed`) — a consumer that pinned the single word (a compile-time pin on the reason word) fails to compile on the second — and the command sandbox's run state (`commandSandbox.state`) takes `not_needed` beside `armed` / `unavailable` (no compile-time pin of it is known downstream; a reader that switches on the word meets a new case).
1324
+ - **Wire.** `wiring_manifest.toolPlan.executionEnv { state, tools, asks }` on both halves (new member). `wiring_manifest.hands.reason` may be `not_needed` (a factory is wired, the leg needs no environment, no static env), and `wiring_manifest.commandSandbox.state` `not_needed` (the hard-breaking line above). New effective-half members, always present on an engine-minted effective manifest: `wiring_manifest.executionEnvSeat` (`factory` / `static` / `none`), `wiring_manifest.checkpoint: { storeWired }` (whether the deployment wired `RunnerDeps.checkpointStore`; not the leg's resolved store, which `parkLane` reports) and `wiring_manifest.interactionSeats: { ask, question }` (the deployment's own approval seat — `RunnerDeps.onAsk`'s form, a word of `DEPLOYMENT_ASK_SEAT_FORMS`: `callback` / `policy_callback` / `allow` / `deny` / `absent` — and whether `RunnerDeps.onQuestion` is a live face; not the leg's resolved seats, which `ask` and `question` report). A deployment `onAsk` / `onQuestion` holding a value outside its union is refused (`config.interaction_wiring`) also on a leg whose task brings its own seat: the deployment's seat is read for the manifest now. The refusal comes where the manifest is read, after the leg's environment started: a leg that needs one has called the factory once and its environment is destroyed (measured with a leg carrying `Read`: factory 1, destroyed 1); a zero-tool leg is refused with its factory unasked.
1325
+ - **The fingerprint is the deployment's (narrowing 6, open to veto @server @cli @client-core; C-R1275 (c) and its first addendum).** `configFingerprint` hashes the members read off the deployment's own seats and nothing else: `schemaVersion`, `elicit.seamWired`, `session`, `fleet`, `permissionRules`, `governance`, `checkpoint`, `interactionSeats`, `executionEnvSeat`, `readDeny`, `autoConsolidation`, `hostFloor`. Out of it now, beside the members already out: `hands` and `writeProtection` (they follow whether the leg needs an environment); `instructions` (the instruction lane a leg seats, which follows `Read`'s face); `parkLane` and `ask` (a task can switch its store off, bring its own, opt into durable approval, or bring its own approval seat; a principal's caps can force the gate); `question`, `interaction`, `elicit.serversOptedIn` (a task's own seats); `modelGate`, `autoMode` (the leg's model, roster and mode). The deployment's seats stay in the hash: its store through `checkpoint`, its approval and question seats through `interactionSeats` — measured, five deployments (no approval seat / a person's callback / the blanket `"allow"` / a question face, each with a store; no store) carry five values, as on the stage; one deployment's eight legs (the band, no tools, read-only hands, only `Read`, `acceptEdits`, another model, the task's own approval seat, its store switched off) one, where the stage split them in two. Every effective manifest's value moves once at the upgrade; within one deployment every leg — a root, its children and resumes, with or without an environment, with its store switched off — carries one value. Read in code (server `origin/main` `fbcb3ff18`, fetched; cli `a78ccb3d`, client-core `0e380814`, local refs): no reader stores a value or compares two — the server passes it through on the operator face and strips it from tenant faces, client-core drops it — so what moves is an operator log or dashboard that groups legs by the value: it regroups once, each deployment's legs in one group.
1326
+ - **Closed sets.** Added `ExecutionEnvNeed` (`EXECUTION_ENV_NEEDS`, 3), `ExecutionEnvAsk` (`EXECUTION_ENV_ASKS`, 12), `ExecutionEnvSeat` (`EXECUTION_ENV_SEATS`, 3), the deployment approval seat's forms (`DeploymentAskSeatForm`, `DEPLOYMENT_ASK_SEAT_FORMS`, 5); `HandsUnmountedReason` (`HANDS_UNMOUNTED_REASONS`) registered with its second word. All root-exported (+13 export names in all), with `ToolMountPlanExecutionEnv`, `StaticWiringStatement` and `InteractionSeats`.
1327
+ - **Rules.** Retired: the six hand-written env-hand roster writes (the band, Monitor, the worktree pair, the scheduler, LSP, Artifact) — the roster is the rows' `envHand` column over what the leg judged mounted; the second spelling of the write-protection coverage test (`writesProtectedPath`, one predicate for the station and the plan); the two-way listing of a leg's mod registrations (listed once, read by the plan and the admission); the second read of the checkout record on a leg that declares no workspace; three inline reads of "this entry is the delegation tool" (one predicate, `entryDelegates` — the `withAgents` rebuild seam — read by the doors' rebuild, the roster receipt and the plan's `delegation` need). The hand-kept list of the three hook events that hand their handlers the environment's face (`e.env`), which decided whether the face is built, is read off the mods event table's new column. The no-resolver default of a principal's workflow entitlement is read once, in the deployment's shared seat facts, by both halves (the static half used to state it alone, so a leg could read more open than the static half promised). Added: one reading (`readExecutionEnv`), one column on the mount table (`envHand`), one column on the mods event table (`env`, three words: `bottom` on `process.run`, `session.cwd` and `session.root` — their bottoms run on, or answer from, the environment, so a registration that declares one in `uses.calls` reaches it; `payload` on `session.start` / `classic.SessionStart` — their payload's `cwd` is the working directory the environment states (the fact `session.cwd` answers), so one that subscribes to them in `uses.events` reaches it; `face` on `classic.PreToolUse` / `classic.PostToolUse` / `classic.PostToolUseFailure` — their payload hands `e.env`, and they are raised only around a tool call, so a subscription reaches it on a leg that can call a tool: a member under the valve placed, an engine-lane row such as ToolSearch only disclosing the others; wildcards included), and one sandbox state word (`not_needed`). The `memory` need has no deployment-root clause. The question seat and the never-opening engine-memory seat are read before the environment by one function both halves state (`legSeatMountFacts`; the static half alone used to state them, so a face subscription beside only `AskUserQuestion` read `unneeded` statically and asked the factory on the leg). One leg fact, `givenNoWorkspace` (the hands seam's `not_needed`), is read by the workspace frame seat and the tool `ctx`. The leg's `leg.backgroundAgents` fact (a caller delegation tool with a background lane) is stated in the same one record before the environment, where the caps phase used to state it on the roster's ledger alone — the reading and the ledger read one value; what the leg mounts is unchanged (measured: the coordinator's offered tools are byte-identical on the stage and here, with and without an environment). The park lane is unchanged (its three terms); where an ask on a leg can park, the leg starts the environment the lane is read on: one need, `park_lane`, which the plan answers off two facts it already reads — whether a call can happen on the leg (the fact the `mods` need's face clause reads, now read once for both) and the leg's `seat.checkpoint` (a store its park can be taken in, on a leg someone resumes) — never off the environment, whose facts it cannot know before one starts. The deployment's approval and question seats are the one seat resolutions read for a run that brings no seat of its own (`interactionSeatsOf`). Where a leg's read state comes from is one reading (`legReadCarrier`: a resume's seed; the session's live seat where its anchor holds against the current branch; else the transcript), which the hands phase seeds by and the `compaction_restore` need reads (`legCarriedReads`) — a seat a compaction below its anchor made stale is the transcript's for both.
1328
+ - **Why a tool-less leg with engine memory still starts an environment.** The memory session keys its partition by the task root and reads the project marker (`.sema/project`) there, through the environment. Measured on the base tree with a backend that pins no directory: a zero-tool leg's partition was the project's (`proj-<id>`), as the band leg's; without the environment it would be `-` (the stand-in's root), and the project's memories would be neither recalled nor written. A deployment's `RunnerDeps.rootPath` does not change that: it names a directory in the environment, and on an environment whose paths are not the host's (measured with a path-mapping environment) a leg read without it found no marker, keyed its partition by the path, lost the `workspace_changed` frame's `project`, and accepted a capture opt-out (`memory.capture: "off"`) that the band leg refuses (`config.memory_capture_unsupported`). The `memory` need is the one predicate the memory phase and the static plan's memory seat read (`memoryEngineOpens`).
1329
+ - **Not changed.** What any leg that needs an environment mounts or runs; the factory order (factory → static → stub); the placement fence, the explicit-cwd doors and the worktree guard; a deployment with no factory, beyond its sandbox word (relaxation (c)) — its `workspace_changed` frames and a tool's `ctx` paths are as before.
1330
+ - **Who notices.** A workflow member leg (a script's `ctx.agent`) carries no caller root, so a member with no tools reads `unneeded` and leaves the factory unasked, and so does one with only pathless caller tools where no park can be taken (measured: three members — no tools, a pathless tool, the band — called the factory 0 / 0 / 1 times on a deployment with no checkpoint store, 0 / 1 / 1 where the workflow holds a park (`park_lane`); on the stage each called it once); a delegated child (the Agent tool) always carries its caller's root (`caller_placement`), so it always starts one. Such a member's policy ask parks where the workflow has a park seat, as on the stage (measured with a suspendable factory: parked, the factory asked once). A session whose legs read files keeps starting an environment for its later legs (`compaction_restore`); a session no leg read a file in does not.
1331
+ - **Consumers.** @server (S-2336): read `describeStaticWiring(deps, spec, { session: "new" }).toolPlan.executionEnv.state` before admission; `unneeded` is the bit the device door can read; the manifest keyset guard meets three new top-level members (`executionEnvSeat`, `checkpoint`, `interactionSeats`, all operator-safe deployment facts), the tool-plan projection table meets the required `executionEnv` key (the hard-breaking line above), and the fingerprint's new membership (a projection note that reasons from "this section feeds `configFingerprint`" reads against the list above). A deployment's settings hooks (`classic.PreToolUse` / `PostToolUse` / `PostToolUseFailure`, and the rest of `SETTINGS_HOOK_STATIONS` — read in code at `fbcb3ff18`, no `classic.SessionStart` among them) do not make a leg with no tool member need an environment: no call can happen there. @client-core: mirror `ToolMountPlan.executionEnv`, the second hands word (its compile-time pin on the reason word fails on it — the hard-breaking line above), `executionEnvSeat`, `checkpoint`, `interactionSeats` and the sandbox's `not_needed`. A leg handed no workspace sends no `workspace_changed` frame (narrowing 4): the session row keeps its last workspace and `projectId`; a session whose legs never started an environment has none until one does. @cli: a hands seam reading `not_needed` is a leg that needed no environment, not a missing one; a sandbox reading `not_needed` is a leg that starts no command, not an unsandboxed one; such a leg draws no workspace line (it sends no frame).
1332
+ - **Pins.** `test/backlog3829-exec-env-signal.test.ts` (the factory count per form, the twelve needs, where a leg's read state comes from, the two halves, the fingerprint (five deployments five values, one deployment's eight legs one value), resumes, the approval park lane per form of the stage's table (26 forms, the resume half on the same and a new Runner, a workflow member, three workflow members with and without a park), a compaction re-delivering the reads a leg carries in (the same Runner, a second Runner, a stale seat, a resume's seed, a session with no reads, the restore turned off, a band leg's context reads), the sandbox's `not_needed`, engine memory over a path-mapping environment with a deployment root, a capture opt-out there, the session-start payloads, a face subscription on a leg with no member, the task seat's and a skill's registrations, a task's own protected path, the env seat's order, the workspace frame and a tool's ctx per deployment seat, the additional-directories line, a bound session's zero-tool leg and a refusing factory); re-pinned: `test/prepare-inherited-gate.test.ts` (the new input), `test/backlog1039-wiring-manifest-hands.test.ts` (two words, the seam out of the hash, the seat in it), `test/backlog3802-mount-table.test.ts` (`settle` carries the reading), `test/wiring-manifest.test.ts` (the "a real change moves it" controls use a deployment seat), `test/backlog529-manifest-auto-mode.test.ts` and `test/backlog524-model-gate-manifest.test.ts` (the arming and the trim are out of the hash).
1333
+
1334
+ ### A model call is priced at the tier that served it: a fast-served call (`usage.speed: "fast"`) costs the fast tier of the model's one price table, so the cost readings and the money ceilings no longer under-count Fast mode by up to six times (#4298; behavior change: a fast-served call's `costMicroUsd` is larger on every face — `TaskResult.stats`, `turn_end.usage`, the `brain.call` row, `stats.nested`, a side call's and a side query's account line, the adapter's own `Usage.cost`; narrowing: five, below, open to veto @server @cli (two narrow what v7.68.3 accepted, measured — an empty or partial fast tier on an entry that does not serve fast mode, (3) and (5); the rest touch only entries that serve fast mode, which v7.68.3 refuses as an unknown Model member); widening: one, below (a call that billed nothing has a cost figure); hard-breaking: none (Fast mode has not shipped in a release); closed sets: none; exports: none added or removed, `ModelPricing` and `ModelFace` gain an optional member, `catalogOfDeps` takes an optional `pricing`, the `default` row of `ROLE_RESOLUTION_TABLE` names its new hop; wire: `Model.cost.fast?`, `ModelPricing.fast?`) (@server @cli @client-core)
1335
+
1336
+ - **Rule.** One judgment of a call's tier, one table, one tier pick. The tier is what the response said — `servedAtFastSpeed(usage)`, `Usage.speed === "fast"`, as the reference prices by its usage's speed (its price reader `Eln` (cli321.js:277306) picks a fast table when the usage's `speed` is `"fast"`); the fast-call count and the turn's `speed` word ask the same function. The table is `priceTableOf(model, RunnerDeps.pricing)` — the deployment's entry for the id, else `Model.cost` — now the one reader every place that prices, estimates or judges a model asks (the same expression was written in six places); the fast tier is that table's `fast`, never taken from the other source. The tier pick is `callRatesOf(table, servedFast)`.
1337
+ - **Before.** Every call was priced at the standard rates: a fast-served call on a model whose fast tier is six times its standard one (the reference's standard and fast tables for one family, `tB` and `zk` (cli321.js:277306)) reported a sixth of its cost, and `maxCostUsd`, a parent's nested account and a usage window's money lane let through up to six times their ceiling.
1338
+ - **Now.** A fast-served call costs the fast tier, column by column (input, output, cache read, five-minute and one-hour cache writes). A request that asked for fast speed but was answered at standard speed (pushed back and re-sent at standard speed, or an endpoint that did not serve it) is a standard call. The three spend estimates — the pre-call gate, the mid-stream projection and the compaction fallback's gate — use the fast tier while the leg's fast-mode reading of that model is `on` (`fastModeReadingOf`), the standard rates otherwise; the mid-stream projection reads the main call in flight as it asked when it was made, so `TaskStream.setFastMode` landing mid-call moves the next call's estimate, not this one's. A fast-served call whose table declares no fast tier (a host's Brain saying `speed: "fast"` for an entry that does not serve fast mode, or an entry that serves fast mode with a price table and no fast tier, which the door below tells the deployment about) is unpriced spend: its cost faces go absent as for a model with no price, `turn_end.usage.costMicroUsd` carries the standard rates' figure as an unmarked lower bound (the run's absent `TaskResult.stats.costMicroUsd` is how a reader knows), a money ceiling stops the run at that turn's end (`config.limit_invalid`, the entry below) and a usage window with a money ceiling refuses at the accounting point (`config.usage_window_unpriced`); both sentences name the model, that it was served at fast speed with no fast tier in its table, and where the tier goes (the window's sentence named "a model served without a RunnerDeps.pricing entry or a Model.cost declaration" before). A fast tier's bad rate is judged by the standard rates' law, one judge for both readers (`malformedPricingField` names `fast.inputPer1M`, …, or `fast` when it is not a table): refused where a money ceiling reads the table, and by the door for an entry that serves fast mode; a fast tier priced below the standard one is accepted (the reference's schema asks only for non-negative rates). A fast tier that leaves a cache rate out charges that subset at the tier's own input rate.
1339
+ - **Narrowing (open to veto @server @cli).** (1) An entry that serves fast mode (`fastMode: true` on the Anthropic Messages wire) whose price table declares a fast tier the table judge refuses (a missing `input` / `output`, a non-number, a negative, a non-finite value, a `null` — only an absent `cost.fast.cacheWriteLong` takes the five-minute rate; `cost.fast: {}` included, which booked every fast call at $0 as a priced figure before this round) is refused where it is received — `config.invalid_argument`, `detail.field` naming the member (`RunnerDeps.models.<key>.cost.fast[.<column>]`, `RunnerDeps.pricing["<id>"].fast[.<column>]`). Where: `new Runner` / `swapDeps` for a catalog entry and a tier's Model object (the catalog door, so `catalogOfDeps` and `modelFaceResolvable` answer the same; a tier's object is named `RunnerDeps.tiers.<tier>…`); at prepare, a Model object written at a seat — `RunnerDeps.roles.<role>[.model]`, `TaskSpec.roles.<role>[.model]`, `TaskSpec.model`, `TaskSpec.compactionModel` — under that seat's name (a model reached through `roles.default` names `RunnerDeps.roles.default.cost.fast`, not `TaskSpec.model`); `TaskSpec.limits.degrade.to` keeps the optional degrade's posture (announced through `onError`, the switch never fires). Not judged: an entry with no price table at all, one that does not serve fast mode, one on another wire. An entry that serves fast mode whose table declares no fast tier at all is not refused (the deployment priced the standard speed only): it is told — **Notice**, below. (2) A `fastMode` that is not a boolean on an Anthropic Messages entry is the door's coded refusal at `new Runner` (`config.invalid_argument`, `detail.field` `….fastMode`) — the stage before this round threw an uncoded `TypeError` there (measured), and before the car accepted it until fast mode was asked for. (3) A fast-served call on a table without a fast tier, or with one the table judge refuses (an empty or partial `fast` — one judge, `malformedFastTier`, for the door and the price pick), reads as unpriced (cost faces absent) where it read a standard figure; v7.68.3 accepted `cost.fast: {}` on an entry that does not serve fast mode and published the standard figure (measured: 88_750 for the run's own entry, 125_000 for a deployment `pricing` entry with `fast: {}`); the car's first round booked those calls at $0 as a priced figure. (4) The money ceiling's stop on uncounted spend, its own entry below. (5) Under a money ceiling, a price table whose fast tier the table judge refuses is refused at prepare (`config.limit_invalid`) whatever the entry serves — the standing law that a money ceiling refuses a table it cannot evaluate, read over the new column: `cost.fast: {}` on an entry that does not serve fast mode, under `maxCostUsd`, which v7.68.3 accepted and completed (measured, 88_750).
1340
+ - **Notice.** An entry that serves fast mode whose price table exists with no fast tier at all is taken, and the door that receives it tells the deployment once on `RunnerDeps.onError` — `phase: "config"`, `classification: "fast-tier-unpriced"`, an uncoded `Error` whose sentence is "`<seat>` (model "`<id>`") serves fast mode (`fastMode: true`) and its price table declares no fast tier (`<member>`): a call served at fast speed has no price — its cost reads absent, a money ceiling in force stops the run at the end of that turn, and a usage window's money lane refuses it. To price it, declare the fast tier's rates beside the standard ones (…); or declare fast mode off for this model." A catalog entry or a tier's Model object is told once per Runner, at `new Runner` or `swapDeps` (`sessionId: "(pre-session)"`; one entry once, whichever of the two received it; a refused swap tells nothing); a Model object written at a seat is told at each task's prepare (`RunnerDeps.roles` / `TaskSpec.roles`, `TaskSpec.model`, `TaskSpec.compactionModel`, `TaskSpec.limits.degrade.to` — the degrade stays armed —, under the task's `sessionId`, else `"(pre-session)"`) and at each `compactSession` call (`compactSession.model` / `.compactionModel`). A host's pre-check (`catalogOfDeps`, `modelFaceResolvable`) takes it as `new Runner` does and tells nothing; so does the task-start judge. A call such an entry serves at fast speed is unpriced spend (above).
1341
+ - **Widening (open to veto @server @cli).** A call that billed nothing has a cost figure, 0, whatever its model's table: not one token counted (`totalTokens` included) while its usage is no lower bound, or the provider refused every attempt of it with a 4xx before any response stream (the stream engine's own fact, carried to the account's one judge `callPriced` beside the wire, which is unchanged: such a message still says `usageMissing`; a 5xx is not taken, a gateway's may follow an upstream that already billed). Both accounts ask that judge — the main loop's and the calls beside it (compaction, classifier, mod, advisor, side query). So a fallback walk that passes over an unpriced hop the provider refused (a 429 from a hop with no price table) no longer marks the run unpriced: the run publishes its total where v7.68.3 published none, and a money ceiling does not stop on that hop (measured: the hop refused with 429 through the Anthropic adapter, then a priced hop answering — v7.68.3 `completed`, total absent; now `completed`, 88_750). The same fact rides the entry of a tried request the engine fell back from (a request that carried a capability the model's entry does not declare, answered 4xx before any stream): measured on the merged tree, an unpriced hop tried with the thinking keys (400), then answering 429, then a priced hop answering — `failed` under `maxCostUsd 100` while that entry lacked the fact; now `completed`, 88_750 (a 529 on the tried request still stops the run; the same walk over a priced hop completes, 88_750).
1342
+ - **Not changed.** A standard-served call's figure on every face; a session that never asks for fast mode; `computeCostMicroUsd` (prices counts at the rates it is handed); the usage window's code (`config.usage_window_unpriced`); the next-prompt suggestions' budget-excluded line keeps publishing its figure when a fast-served suggestion's table has no fast tier — `stats.suggestions.costMicroUsd` and `stats.costBreakdown.suggestionsMicroUsd` both, as they publish 0 for an unpriced suggestion model today (KL-4298-a); a request asked at fast speed whose response states no speed is priced standard with no notice, as the reference prices it (KL-4298-b, an Anthropic-compatible gateway dropping `usage.speed`).
1343
+ - **Wire (additive).** `Model.cost.fast?: { input, output, cacheRead, cacheWrite, cacheWriteLong? }` (USD per 1M tokens; present when the deployment declares what a fast-served call costs; absent ⇒ a fast-served call is unpriced, and an entry serving fast mode with a price table is told so where it is received — **Notice**, above — not refused) and `ModelPricing.fast?: { inputPer1M, outputPer1M, cacheReadPer1M?, cacheWritePer1M?, cacheWriteLongPer1M? }` (the same on `RunnerDeps.pricing`). `Usage.cost` (the adapter's own figure) takes the fast tier for a fast-served response only when `Model.cost` itself declares the tier: the adapter reads `Model.cost`, never `RunnerDeps.pricing`, so with the tier on the deployment's table alone the run's account reads the fast figure and `Usage.cost` the standard one (the split between the two tables predates this change). `ModelFace.pricing?` and `catalogOfDeps({ …, pricing? })`: a host's pre-check given the same models and pricing meets the refusal `new Runner` gives — a catalog `catalogOfDeps` already received is judged again against the pricing it is asked with now. `ROLE_RESOLUTION_TABLE`'s `default` row names its hop `src/core/runner/seat-model-doors.ts :: resolveRunModel` (was `src/core/roles.ts :: resolveTaskModel`, which it calls).
1344
+ - **Not breaking — `modelCostToPricing`, which the wire manifest reads as changed.** Its parameter is now the named type `ModelCostDeclaration`: the inline object it took before (`input?`, `output?`, `cacheRead?`, `cacheWrite?`, `cacheWriteLong?`) with one optional member more, `fast?`. A caller passing the old object type-checks and gets the same table as before; the `fast` tier is mapped only when the object carries one.
1345
+ - **Pins.** `test/backlog4298-fast-price.test.ts` — a real Runner over the Anthropic adapter and a fetch stub that serves fast exactly when asked: one fast call's faces and a delegated child's nested account, the standard re-send, each price column, `maxCostUsd` between the standard and the fast figure, the pre-call estimate, the door's notice for a missing fast tier at `new Runner` / a pricing entry / `swapDeps` (once per Runner) / prepare at every seat (once per task, the run completing with the fast call's cost absent) / `compactSession`, with its told-nothing controls and a bad tier refused at each of those seats, each fast-tier column refused under its own name (K14 `cost.fast: {}` included), a non-boolean `fastMode`, the three host entry points over three shapes, every seat a Model object is written at, the unpriced form under a host Brain (faces, usage window and its sentence, lower bound, side query), bad fast rates and a fast tier below the standard one. `test/backlog1579-fast-mode.test.ts` re-pinned: its fast entries declare a fast tier, and one cell runs the same entry without one (told once, the run completes, the fast call's cost absent). `test/backlog2394-revision-leg-cells.test.ts` "(b) through a real Runner" runs as written (a fast-mode entry on a zero table with no fast tier, no money ceiling). `test/backlog2672-model-face-resolvable.test.ts` A4 / A5: the `default` hop is `resolveRunModel`, which `Runner.compactSession` now calls too (its non-row note retired); `compactSession.model` is judged at that seat (`test/backlog4298-fast-price.test.ts`). Not judged at their own seats yet: `AgentDefinition.model` / `createSubagentTool({ model })` objects, refused at the child's prepare under `TaskSpec.model` (KL-4298-c).
1346
+ - **Consumers.** @server @cli: a catalog entry declared `fastMode: true` with a price (`cost`, or a `RunnerDeps.pricing` entry for its id) that declares a fast tier must declare a sound one, or `new Runner` / `swapDeps` refuses, and a Model object at a role seat, `TaskSpec.model` or `TaskSpec.compactionModel` is refused at prepare the same way; one that declares no fast tier is taken and told on `onError` (`classification: "fast-tier-unpriced"`), and its fast-served calls are unpriced; a pre-check through `catalogOfDeps` / `modelFaceResolvable` passes `pricing` to answer as `new Runner` does; readers of `costMicroUsd` need no code change, but a fixture that pinned a fast call's micro-USD at the standard figure turns red. @client-core: a Fast mode session's rendered cost is larger (the real figure).
1347
+
1348
+ ### A money ceiling stops the run when spend it cannot count settles under it: a fallback hop or a compaction model with no price table, the near-budget degrade target with none, or a call served at fast speed on a table with no fast tier ends the run at that turn's end with `config.limit_invalid`, naming the model, how it reached the run and what to change (#4298; behavior change: narrowing, three, below, open to veto @server @cli; widening: none; hard-breaking: one, below — a run that completed on v7.68.3 under a money ceiling now ends `failed` with `config.limit_invalid`, open to veto @server @cli; closed sets: none; exports: none; wire: a new terminal cause for an existing code) (@server @cli)
1349
+
1350
+ - **Rule.** While a money ceiling is in force, a call that settles with no cost figure stops the run at the next accounting point. The usage window has stopped this way since RB-368 (`config.usage_window_unpriced`, at the turn boundary); `TaskSpec.limits.maxCostUsd` / `resourceSuspend.totalBudgetUsd` now do too, at the turn's end, with the family of the door's refusal of a table that cannot price (`config.limit_invalid`). In force = the ceiling is set and the run's own model has a price table; a run whose own model has none never armed it (`TaskLimits.maxCostUsd` requires a table) and runs on, as before. One writer marks spend unpriced and records the first such call's cause (`noteUnpricedSpend`); both ceilings read the figure, or the cause, through one function (`costFigureOf`); the cause is one sentence per path (`unpricedCallCause`): a call served fast with no fast tier, a fallback hop ("price it, or take it off that chain"), the compaction pass's model ("price it, or name a priced compaction model"), the degrade target, a classifier / mod / advisor call. Whether a call has a figure is one judge for every lane (`callPriced`, the entry above: a table that declares the serving tier, or a call that billed nothing). The two ceilings read the same figure; where they still end a run apart is listed under **Where the two ceilings differ**.
1351
+ - **Before (measured; v7.68.3 and the pre-car stage `9be8495d7` read alike).** (i) `maxCostUsd 100`, the requested model priced, its fallback hop with no price table answering: `completed`, two calls, `costMicroUsd` absent. (ii) `maxCostUsd 100`, a priced main model, `compactionModel` with no price table: `completed` after nine turns, one compaction, `costMicroUsd` absent. K6, `maxCostUsd 0.2` over a host Brain serving fast on a table without a fast tier: `completed`, two calls (v7.68.3 and the stage: 177_500, the standard figure; the car before this round: absent) — at the fast tier the two calls cost 1_065_000, five times the ceiling.
1352
+ - **Now (measured, same cells).** (i) `failed`, `config.limit_invalid`, one call to the hop: "TaskSpec.limits.maxCostUsd is a money ceiling, but model "cheap", a hop of model "priced"'s fallback chain, has no price table (…) — price it, or take it off that chain (`fallbacks`). …". (ii) `failed`, `config.limit_invalid` after five turns, one compaction: "… model "summarizer", the compaction pass's model (TaskSpec.compactionModel, else roles.summarize), has no price table (…) — price it, or name a priced compaction model. …". K6: `failed`, `config.limit_invalid` after one call: "… model "host-m" was served at fast speed and its price table declares no fast tier with whole rates (an empty or partial `fast` prices nothing) — declare the tier's rates as `fast` on that table (…), or declare fast mode off for it. …". The work done is kept: the turn's text and its tool's result are on the stream, `stats.toolCalls` counts it, each turn's `turn_end.usage.costMicroUsd` stays as it read, and `TaskResult.stats.costMicroUsd` is absent as for any unpriced run. The stop does not defer to a resource suspend (a resumed slice would spend against the same uncounted figure), as the usage window's does not. On the turn that reaches `maxTurns` the stop's cause outranks the cap (`config.limit_invalid`, not `limits.max_turns_exceeded` or a `completed` that never counted its spend). What already ended the run on that turn stands instead of the stop: a lower bound already past the ceiling (on the cap's turn the cap's own `limits.max_turns_exceeded`, as a priced crossing there reads — measured; the first round's sentence said `limits.max_cost_exceeded`; on the answering turn the answer stands, `completed` with `limitCrossed`); a pause the leg committed (an approval park) or a plan review requested on that turn (paused `plan_review`, one pending row) — the run never reports `failed` over a resumable checkpoint; a person's interrupt (`failed`, no code); a halt (`completed`, `haltedByUser`); a turn that closed on a provider error (its own code — `refusal` for a refusal). None of those makes another request; should the loop make one anyway, the unpriced mark is sticky and the stop fires at that turn's end. Without a ceiling nothing changes: the run completes and the total is absent.
1353
+ - **Where the two ceilings differ (measured on this head, the task ceiling first).** The plan review requested on the unpriced turn: paused `plan_review` with one pending row / `failed` `config.usage_window_unpriced`, no row. A halt: `completed`, `haltedByUser` / `failed` `config.usage_window_unpriced`. The turn cap's own turn without `resourceSuspend`: `failed` `config.limit_invalid` / `failed` `limits.max_turns_exceeded`. In force: only while the run's own model has a price table / whenever the deployment declares the window's `maxCostUsd`. They agree on a refusal (`refusal`), a person's interrupt (`failed`, no code), a one-turn answer (`failed`, each its own code) and a resource-suspend run's cap turn (`failed`, each its own code, no row).
1354
+ - **Hard-breaking (open to veto @server @cli).** *What changed:* a run under a money ceiling (`TaskSpec.limits.maxCostUsd` or `resourceSuspend.totalBudgetUsd`) whose own model is priced, and that reaches a model with no price table — a hop of its `fallbacks` chain that billed something, the `compactionModel`, the near-budget degrade target, a classifier / mod / advisor model — or a call served at fast speed on a table with no sound fast tier (`cost.fast` / `RunnerDeps.pricing[…].fast`), ends `failed` with `config.limit_invalid` at that turn's end, where v7.68.3 completed it with no total (measured, (i) / (ii) / K6 above; the answer already given stays on the stream). *Who is affected:* a deployment whose catalog has such an unpriced fallback, compaction, degrade or side-call model, or a fast-mode entry priced without a fast tier, and whose tasks or windows set a money ceiling — runs that completed now fail, and a host that reads `failed` as "no answer" drops an answer it was given. *What to do:* declare a price for every model a ceilinged run can reach (`Model.cost` or `RunnerDeps.pricing`, its `fast` tier where the entry serves fast mode), or take the unpriced model off the chain / role, or run without the ceiling.
1355
+ - **Narrowing (open to veto @server @cli).** (a) A run under a money ceiling that reaches an unpriced model (a fallback hop that billed something, the compaction model, the degrade target, a classifier / mod / advisor model) or a fast-served call with no sound fast tier ends `failed` with `config.limit_invalid` where it completed and published no total. (b) A run that could suspend for a resource limit and resume (`resourceSuspend`) ends `failed` instead of suspending when such a call settles: on the turn cap's own turn, on an unpriced first turn of `maxTurns 2`, on a walltime slice — v7.68.3 paused `resource_limit` with one pending row (measured); now `failed`, `config.limit_invalid`, and no checkpoint is left behind (measured, no orphan row). (c) A run that answers in one turn whose call settled unpriced reads `failed`, its answer on the stream (the usage window's shape for a single-turn run, `test/rb462-usage-window-cost-arm.test.ts`).
1356
+ - **Pins.** `test/backlog4298-fast-price.test.ts` — K6 stops after the first turn and names the cause; the work done is kept; a one-turn run ends `failed` with its answer on the stream; the turn cap's own turn stops the same way; a committed approval pause stands; the no-ceiling control completes with the total absent; (i) the fallback hop; (ii) the compaction model; the exemption (a run whose own model has no price table runs on); the falsification leg's cells — a hop that billed nothing (a known zero, a 429 through the adapter) does not stop the run while a 529 and a total-only usage do, an interrupt / a refusal / a plan review on the unpriced turn keep their own ends, a crossing on the answering turn and on the cap's turn keeps the ceiling's, an empty fast tier on a hop or on the run's own entry is no $0, the window's refusal on a resource-suspend cap turn keeps its code, and the shapes measured good (multi-turn and hop runs priced, the advisor and classifier lanes' sentences, a durable question, no row behind a failed suspend run, the next message after the stop). `test/rb368-unpriced-cost-disclosure.test.ts` (the exemption's existing pin) unchanged.
1357
+ - **Consumers.** @server @cli: a deployment whose fallback chains or compaction model include an unpriced model, under a task money ceiling, now sees `config.limit_invalid` on those runs — price the model or take it off the chain; the terminal's message is the sentence to show. A caller retrying on `limits.*` does not retry this one: it is a configuration cause, as `config.usage_window_unpriced` is.
1358
+
1359
+ ### A foreign party's words are redacted where the engine mints them into its own sentence, before any fold, cut or escape — on the words as written and in the spelling the sentence carries them in (#4334; Security; behavior change: narrowing — a credential split by a character that does not show (a zero-width character, a grapheme joiner, a variation selector, a Hangul filler), a token a line break kept from its scheme word, and a URL password or token a display cut used to halve no longer reach these exits in part, a value's bare repeat is withheld when U+034F / U+FE0F / U+3164 split the value, a repeated piece of a found value (16 or more characters, no white space) is withheld wherever it stands, and the provider's sentence and an MCP server's failure record longer than 256 KiB are no longer read — the oversized mark and their length, nothing of the words shown (open to veto @server @cli); widening: none as a rule — four cell families listed as showing more than 7.68.3, open to veto: on the disclosure escape 17 cells (KL-4334-d) and 1 (KL-4334-c ②), on the provider's sentence 6 and the A2A error 9 (KL-4334-c ③), Repeats below; hard-breaking: none; closed sets: none; exports: none at the root; wire: none) (@server @cli @client-core @test)
1360
+
1361
+ - **Rule.** A remote's answer or error, a host seat's, a hook's, an extension's or a store's words, and a thrown value's text are foreign words. One function writes them onto one line, `foreignLine(text, max)` (`src/core/protocol-http-auth.ts`): the credential pass on the words as written AND on their one-line spelling, both unmasked, the union withheld; then `inlineUntrusted`'s fold, bound and tag neutralization. A multi-line foreign text that is only cut takes `redactThenCut` (moved to `src/core/untrusted-egress.ts`). An exit's later pass is a fixed point on what the mint wrote; it cannot undo a fold, a cut or an escape. `providerMessageOf` (#4329) is this function with the provider's declared values and the raw body's spans, read whole (`whole`, #4555 below).
1362
+ - **Before → now, by category (measured, synthetic keys; "exposed" = the longest run of the secret's characters an exit shows, after the exit's own pass; under 4 is coincidence).** A — an A2A peer's `error.message` (11 sites, `src/core/a2a.ts`) in the error tool result: a key split by U+200B 20 → 1, a password split by U+2060 18 → 1, a URL password across the 240 cut 27 → 2. B — remote failure sentences (85 author-table rows: artifact host messages and URLs, a sandbox kill guard's stderr, a summarization failure, MCP host read / listing failures and announcements and manifest rows, the endpoint origin, hook ask / block reasons, sandbox violation lines, a peer directory fault, a child's / fork's error and observer failure, a memory write judge / gate reason, a plan read reason, a resume preflight, a park failure, a memory store echo, an extension verdict reason, a redirect `Location`): 20 / 18 / 48 (a `Negotiate` token after a line break) / 27 → ≤ 2. C — a thrown value's text cut for display (17 `.slice(0, N)` sites → `redactThenCut`; two thrown-word folds → `foreignLine`): a URL password across the cut 27 → ≤ 2, a Bearer token across it 4 → ≤ 2. D — `extensionWords` retired (it passed the written words, then folded): its 53 calls, an extension's stop reason and a memory store's quarantine fault take `foreignLine`; the `Negotiate` token after a line break 48 → 2. E — `escapeForDisclosure` (one function, 39 callers unchanged: rule text in refusals, traces and notices): a key split by U+200B 21 → 2, a URL password across the 120 cut 27 → 1, a Bearer token across it 4 → 1. The policy-throw report lane (`onError`) read a multi-line thrown text as written: the `Negotiate` token 48 → 0 (now `redactThenCut`, its head at most 10 000 — #4555 below).
1363
+ - **Hook words and store words cut before any pass (fix round).** The hands band's write gate (`beforeWrite`) and file-history hook (`trackFileEdit`): their refusal reason, code and thrown text were cut to 300 by a helper and spliced into the Write / Edit tool result with no pass at all — now `redactThenCut`, the `…` kept when the words went on. AgentTranscript's refusal when a retained child's session cannot be read: the session store's thrown text (or its code) was cut to `REPORT_FIELD_MAX` with no pass — now `redactThenCut`. Two more found by the widened ratchet: a session box's refusal of an idle subscription record (`SendMessage`) and the host confinement probe's reason. Measured (synthetic keys, the read-only leg's shapes): the write tool's result, the `tool_end` event and the session's record through a real Runner, and AgentTranscript on a retained child whose store throws — a whole key 40 → 1, `Negotiate` LF token 48 → 1, a key split by U+200B 20 → 1, a URL password across the 300 cut 19 → 1 (`test/backlog4334-hook-and-store-words.test.ts` H1–H3; H4 the `…` at 301).
1364
+ - **Characters that do not show (fix round).** The credential pass's format-free reading (`src/primitives/secret-scan.ts`) removed format characters only (`\p{Cf}`); it now removes every character Unicode calls default-ignorable as well — two properties, `\p{Default_Ignorable_Code_Point}` and `\p{Cf}`, no code point listed (`Cf` alone missed the combining grapheme joiner U+034F, the variation selectors U+FE00–U+FE0F and U+E0100–U+E01EF, the Hangul fillers, the Mongolian free variation selectors; the default-ignorable set alone would miss 32 format characters a display shows, U+0600 among them, which 7.68.3 read so — measured 20 characters shown, kept). A key split by U+034F / U+FE0F / U+E0100 / U+3164 / U+115F / U+180B: 20 → 1 at every mint (A2A real Runner, the policy deny and report, a host seat, a hook, an extension, a store, the cut forms, the disclosure escape) and on `egressText`; the reasoning-level word of the workflow launch refusal (the one-line form at 32 code points) showed 15 on the read-only leg's real model path → 1 on the same path (a resumed launch whose record holds it; the leg's harness, measured on this head) and under 4 in F2's mechanism cell at 32. A cut (where the reading is re-scanned from) is only where the run was a start the joined reading takes away: a run holding a `\p{Cf}` character between two characters that are not white space, a run of default-ignorable characters only between two characters a form's start reads as one word (#4648, below; an emoji's selector before a space, a line break, a color escape, punctuation or another emoji joins nothing). The 64-place budget counts two kinds — every cut, and every run of format characters that holds a `\p{Cf}` one (the kind 7.68.3 counted); a run of default-ignorable characters only that is no cut is not counted — so a text with more than 64 zero-width characters beside white space is withheld whole as on 7.68.3 (the read-only leg's s5 / s5b / s6, 1 969 cells, and the same with U+FE0F / U+034F / U+3164 / U+E0100 in place of U+200B, 4 × 1 969: 0 show more than 7.68.3; G1–G5). The format-free reading of the whole text runs whatever the places, so a form whose reading holds white space with such a character beside it (`Bearer<X> <token>`, `Basic <X><value>`, `password = <X><value>`, `password<X> = <value>`, `Negotiate<X>` LF token; X = U+200B / U+034F / U+FE0F) shows none of the value at the one-line form, the multi-line cut, the disclosure escape and the A2A error's mint, where 7.68.3 showed it whole in 26 of the 60 cells (measured on both trees, the sentence's and the exit's own words not counted; F4); ordinary text that holds these characters reads exactly as written — an emoji with its selector, seventy `✔️ step n passed` lines, keycaps, Latin and Hebrew with a grapheme joiner, Korean with a filler, kanji with an ideographic selector (F1). KNOWN-LIMITS KL-4334-b: more than 64 places where such a character joins two letters or digits (seventy `a<U+FE0F>b`) — the text is withheld whole, as more than 64 zero-width joiners already were (F3). KNOWN-LIMITS KL-4334-e: the disclosure escape withholds whole a text of 65 zero-width spaces among 65 536 spaces that 7.68.3 escaped and showed as `x` and spaces (more withheld, nothing shown). **More withheld:** a value split by U+034F / U+FE0F / U+3164 where it stands and repeated unsplit in the same sentence — the repeat was carried at the three exits that search elsewhere (the host seat, `providerMessage` of both writers; 7.67.3 and 7.68.3 alike) and is now withheld, as for U+200B; plain text with U+FE0F emoji and no credential reads byte for byte (W2). Not this change's, already on the integration branch (#4610): where a zero-width character follows a found value, the host seat's mark also covers the white space and the next word after it (`x password: <ZW><v><ZW> y and three more words.` → `x password:«redacted» and three more words.`; 7.68.3 `x password: «redacted» y and three more words.`) — more withheld than 7.68.3, nothing more shown; measured identical on this branch and the integration branch. The #4374 leg's differential corpus (13,394 rows × 8 exits, k3s8, the integration branch against this branch): 0 cells show more, 2 884 show less (its families of credentials such a character splits); 252 plain words newly withheld, every one where a split credential now reads as its unsplit twin already did — the scheme word `Bearer` inside the mark (91), the word after an `authorization:` value (`is` / `was`, 105), `--token` before a token (56).
1365
+ - **Repeats (second fix round).** A piece of a value the vocabulary found is withheld wherever else it stands. In the one found-value search every exit reads through (`foundValueSpans`, `src/core/protocol-http-auth.ts`), every run of 16 or more code units, none of them white space, that is a contiguous piece of the credential one found value carries takes that value's mark. The credential is read as the request-echo derivation already reads a declared value (`credentialParts`, one function for both): of a `<scheme> <auth-params>` value that names one, the params under credential names — a `realm`, an OAuth `oauth_consumer_key`, a parameter's name and its quotes are where the vocabulary found the credential, not the credential (#4435's control: a realm repeated alone is carried); any other value whole. A found part's twin without its white space (searched elsewhere as a whole value) is that credential's twin too, so a realm is not glued to the token beside it. A key's body repeated without its vendor head, an access key id's tail inside a SigV4 header, a Digest response, a private key's first line, a JWT's middle segment (`sk-<48> was refused; the value <48> is unknown` → `«redacted:key» was refused; the value «redacted:key» is unknown`). The read-only leg's 2 111 repeat rows, cells showing more than 7.68.3 on the disclosure escape / the A2A error, by the floor (measured): no piece search 306 / 104 · 12 → 16 / 0 · 16 → 18 / 0 · 20 → 84 / 45 · 24 → 119 / 45; 16 taken. These two exits cut before they read on 7.68.3; they now read first, with the reading the integration branch gives every other exit. On the #4374 leg's corpus with ten exits (13 394 rows; v7.68.3, the integration branch and this head), the cells this head shows more than both trees (measured): the disclosure escape 292 and the A2A error 9, each no more than the integration branch shows on another exit of the same row (checked per row and planted value: this exit's count on the head against the largest count among the integration branch's other nine exits — beyond it, 0); the provider's sentence 2 for each of its three readers (KL-4334-c ③); the other five exits 0. What stays shown (KNOWN-LIMITS): KL-4334-c — ① a piece that holds white space is not searched (a PEM body across its lines, a header value with spaces: `realm="api", nonce=` elsewhere is kept); ② a value only the disclosure escape's own reading finds, with nothing in the words that starts the search (no declared value, no `Cookie:` member, no find in another spelling), is not searched elsewhere — such words read exactly as the vocabulary renders them (1 cell: an `aws_secret_access_key` cut by CR LF three characters in, its repeat shown); ③ a value holding a character its repeat lacks (the JSON escape of a CJK word written out as twelve literal characters, a `。` inside a PEM line) shows the repeat's first characters before its first 16 that match: `the value W/J3«redacted» is unknown` on the provider's sentence, where both trees showed `W«redacted:path»`; `2uwoE«redacted:private-key»` on the A2A error, where both trees cut before reading and showed the mark alone. KL-4334-d (open to veto) — the disclosure escape now shows a token's tail after a character that ends it, as every other exit has since 7.69.0 (KL-4375-b): `Authorization: token 72657e中文d79f…` → `Authorization: «redacted»中文d79f…` (7.68.3 cut to 120 first and showed `Authorization: «redacted»`), and 1–3 more characters of a repeat (17 cells). Measured and withdrawn: searching there too when nothing else starts the search — 30 more cells shown on the provider's sentence (a quoted token the whole-sentence mark used to cover) and 256 KiB of `password=…&` 178 → 5 356 ms; widening a piece's hit to the run of characters around it — 9 432 ordinary words lost (`sonar.login=`, `认证失败:`, a URL's host and path). Cost (local host, through a remote's words, which have no whole-reading bound): 256 KiB of `password=<24>&`, every value repeated, 1.2 s; a found value of 128 KiB, repeated, 0.3 s; a text with no found value builds no window set (`fragmentSpans` returns before it reads the text); the window set holds 16 code units per position of each found value. Pins `test/backlog4334-fragment-search.test.ts` P1–P9 (P9: a realm's value carried, a piece of the token param's withheld). Re-pinned (with main's leave): `backlog4374-4375-fix2` W6 at 4 000 spaces — `Token token="<13><4 000 spaces><6>"` and the glued repeat `<19>`: the repeat was shown (the whole value's twin without white space, `Tokentoken="…"`, matched no bare repeat) and is now withheld (the `token` param's value without its run is the repeat).
1366
+ - **A bound on the two whole readings (second fix round; narrowing, open to veto @server @cli).** The provider's sentence (`foreignLine`'s `whole`) and an MCP server's failure record (status record and connect warning) read all their words — the two exits whose pass withholds a found value wherever else it stands — and nothing bounded what they read: a host Brain's sentence has no length bound, and an MCP body none before it reaches the record. Both now read at most 256 KiB (`FOREIGN_WHOLE_MAX`, `src/core/untrusted-egress.ts`, one constant; a model provider's error body is read up to 64 KiB, so the built-in Brain's sentence never reaches it). Within it they read all their words, as 7.68.3 did, so every rule sees the whole text: an ordinary 100 KiB stack trace reads as it did (the provider's sentence its first 240 characters, the MCP record its first 10 000 — pin B6). Longer words are not read: they are written as `«redacted:oversized» (<n> characters)` (`pastWholeReading`); the MCP record keeps what is not the words — its code, the HTTP status, the JSON-RPC code, and an unauthorized failure's clause. A host that renders these shows the mark and the length where it showed the head of the words — for any such text, credential or not: an ordinary 300 KiB log from a host Brain or an MCP server reads `«redacted:oversized» (307200 characters)`, where 7.68.3 showed the head of the provider's sentence and stored the MCP body whole (KNOWN-LIMITS KL-4334-f). Within the bound, the worst pathological dense input costs about two and a half times 7.68.3's worst at the same length, 2.2–4.2 times shape by shape (KL-4334-f; measured, local host, one call at a time, the three trees in one window; provider's sentence / MCP record, the record's words naming a `Cookie:` so its search runs): at 256 KiB dense multi-line `Authorization: Basic` 11.6 / 9.7 s (7.68.3 5.2 / 3.4 s, the integration branch 10.6 / 6.1 s) and dense `password=…&` 7.9 / 13.1 s (7.68.3 2.3 / 3.1 s, the integration branch 8.5 / 11.3 s); at 128 KiB 4.6 / 7.3 s and 4.1 / 5.5 s (7.68.3 1.8 / 1.3 s and 1.1 / 1.6 s). Ordinary inputs: a 4 KiB error 65 / 129 ms (7.68.3 47 / 116, the integration branch 63 / 242), a 100 KiB stack trace 135 / 256 ms (7.68.3 112 / 160, the integration branch 114 / 169). Why 256 KiB: at 64 KiB the costliest shapes cost no more than 7.68.3's own costliest at 256 KiB, but every ordinary text past 64 KiB — a 100 KiB stack trace — showed nothing; an ordinary input must not read worse than on 7.68.3, so the bound is the one first registered for it, and the cost of pathological dense input within it is taken. Most of what is slower than 7.68.3 is already on the integration branch (a separate ticket profiles the passes). Fixed with it (7.68.3 alike): the one-line fold and the removal of characters that do not show matched a run of white space and such characters in one unbounded repetition, which threw a `RangeError` at about 8.3 million zero-width characters on any exit that folds; they match pieces of at most 4 096 and join adjacent pieces — the same output, linear (B4: 8.5 million U+200B, U+202E or U+2028 fold without throwing). Pins `test/backlog4334-whole-reading-bound.test.ts` B1 (the bound ± 1 on both exits; the MCP record's code and status kept), B2 (a value bare at the head and labeled at the tail: withheld within the bound, the mark at 1 MiB), B3 (the bound's length of invisible runs), B4 (8 MiB × five shapes: the mark, under a second, no throw; the fold over 8.5 million characters), B5 (the three costliest shapes just under the bound through both exits: read, readings printed, a 30 s tripwire), B6 (an ordinary 100 KiB stack trace through both exits reads exactly as its first 60 KiB does). Mutations: the bound at 64 KiB ⇒ B6 red; no bound ⇒ B4 red; the mark without the length ⇒ B1 red. Bound-driven re-pins: 4555 W4② (within the bound — 90 000 characters — the repeat withheld on both exits, past it the mark), W6 (past 256 KiB the mark).
1367
+ - **Sentence shape.** A text with nothing to withhold reads exactly as before on every exit (the fold, the bound and the escape are the same functions). Where a credential is withheld, its mark stands where the credential stood, so a cut sentence ends at a different character than before; the bounds (80 / 120 / 200 / 240 / 300 / 400 / 512 / 600) are unchanged. C's display cuts are `cutAt` (a pure prefix; a mark is never split) where they were `.slice`. No sentence frame, code or wire member changed; @server @cli @client-core: `git grep -P` over the local checkouts for `extensionWords` and for pinned frames of these sentences found none (positive control: each checkout's `redacted` count, 235 / 115 / 68 files).
1368
+ - **More withheld where a `Cookie:` header is in the words (open to veto @server @cli; KNOWN-LIMITS KL-4343-b, now covering these exits).** If a remote's failure text holds a `Cookie:` header, the rest of the sentence after it (the `User-Agent:`, `Accept:` … headers behind it too) is withheld on these one-line exits, as `providerMessage` reads it since 7.67.2: `Cookie: sid=…\nUser-Agent: curl/8.0\nAccept: */*` → `Cookie: «redacted»`; an MCP endpoint's 4xx that echoes the request reads `x-org-handle=«redacted» Cookie: «redacted»` in the resource listing's error section (was `… Cookie: «redacted» Set-Cookie: «redacted»`; no value carried either way; the structured `details.errors` keeps its lines). These exits withheld no Cookie value at all before (`egressText` does not read Cookie). Hosts that render these failure sentences (@server @cli) show less text after such a header.
1369
+ - **Rules.** Forms a mint chooses from to write foreign words on one line: 4 (bare `inlineUntrusted`, `extensionWords`, `providerMessageOf`, ad-hoc `.slice`) → 1 (`foreignLine`) + 1 for a multi-line cut (`redactThenCut`). Retired: `extensionWords` (no alias). Ratchet (the author-table pin, `test/backlog3826-inline-untrusted-author-table.test.ts` T4a / T4b / T4c, with a negative control): no `inlineUntrusted(egressText(…))` composition on a foreign party's words (the table's authors d and c+d; the one left in `src/`, the stop notice's waited-task description in `src/core/runner/stop-tail-notice.ts`, is the model's own description of its task), no fold of a thrown text that skips the pass, no `.slice(0, N)` whose receiver holds a thrown text or an `<error>.message` outside a pass, in any postfix form (`(code ?? thrownText(e)).slice(…)`), and no call with such a text of a helper that cuts its own parameter that way (the fix round widened T4c to see the last two: red on the head before the fix at five sites, the four above and the write tools' helper twice). The author table drops 102 rows the change took (517 → 415); authors b / c / e are not in this change. The second fix round adds, counted plainly: one rule (the piece search, inside the one found-value search, no exit of its own), one bound (`FOREIGN_WHOLE_MAX`, the two whole readings), and a second kind of place in the 64-place budget (the cuts this change reads; the `\p{Cf}` runs are the kind 7.68.3 counted).
1370
+ - **Not changed.** `inlineUntrusted` itself; the tiers; the vocabulary (except #4361 below).
1371
+ - **Cost.** Failure paths only: about 0.2 ms per mint on a short sentence, about 1.1 ms on a 4 KiB one; a prose text at 64 KiB (a provider body's read cap) 33 ms (measured, local host). Longer words are read on a window of their head (#4555, below), so the cost stops at the window's — the words past it are not read at all (the window's head, or the oversized mark where that head holds no word: #4555's KL-4555-c) — but at the provider's sentence and the MCP failure record, which read all their words up to 256 KiB (past it nothing is read: the bound above). The one per-call site (an extension's call of a tool, `extensionCallOverlap`) now folds the tool name only when it answers a refusal: 0.20 ms → 0.64 ms per call when it folded on every call (measured), now nothing on the allow path.
1372
+ - **Pins.** `test/backlog4334-foreign-words-redacted-at-mint.test.ts` — A1–A3 (mechanism; a real A2A peer over loopback), B1 (five mints) / B2 (a real Runner whose tool policy throws: the deny the model reads and the `onError` report) / B3 (a value read under its label and repeated bare in the same sentence: the deny line, mechanism and a real Runner), C1 / C2 (a real Runner), D1 (the retired form beside `foreignLine` at its callers' bounds) / D2 (file tools over a real execution environment failing a write), E1–E3 (`escapeForDisclosure`, the rule reader's own refusal, a control), F1–F4 (characters that do not show), R1 (MCP, below); every shape list carries keys split by U+034F / U+FE0F / U+E0100. `test/backlog4334-hook-and-store-words.test.ts` H1–H4. Re-pointed: 2821, 3970, 526, 1310, 3754 R2, 3958 A4, the truncation surface, 4329 W5 (closed by this change). Re-pinned (fix round): `backlog3785` Z3 / E1 (the oracle — the replaced Map way back — reads the current definition, written from the rule's sentences: the old one retired in 304346de9 / 7581d9e73); `backlog4374-4375-fix2` W2 (U+034F / U+FE0F / U+3164 join the closed set of cuts; the cell for characters the fold leaves alone reads combining marks; a U+FE0F plain-text cell) and W6 (65 zero-width spaces among spaces read `x y`; the same 65 between letters withheld whole; a credential with a zero-width space beside its white space withheld, 24 cells). Mutations (each red, logs in the car's tree): the deny line back to `inlineUntrusted(egressThrownText(…))` ⇒ B3 red (24 characters); the hands band's helper back to a bare cut ⇒ H1 / H2 red (40); the transcript refusal back to a bare cut ⇒ H3 red; the format-free reading back to `\p{Cf}` ⇒ A / B / C / D / E / F2 red; the reading without `\p{Cf}` ⇒ F2 red (U+0600, 11); a place counted beside white space ⇒ F1 red (seventy lines withheld whole); the format-free reading of the whole text run only where a place was counted ⇒ F4 red (40). Second fix round: `test/backlog4334-place-budget.test.ts` G1–G5 (a `\p{Cf}` run beside white space not counted ⇒ G1 / G2 / G3 red; cuts not counted ⇒ G4 red; a default-ignorable run beside white space counted ⇒ G5 / F1 red); `test/backlog4334-fragment-search.test.ts` P1–P8 (the piece search removed ⇒ P1 red; its floor past every piece ⇒ P1 red; the whole text read as a value ⇒ P3 red; white space allowed in a piece ⇒ P4 red; a piece matched as its set of characters, or as a subsequence of the value ⇒ P5 red; the early stop dropped ⇒ P2 red); `test/backlog4334-whole-reading-bound.test.ts` B1–B4; H5 (a hook's reason or code of another type — a number, an object — read as its string, as 7.68.3 rendered it, where the first round threw) and H3's store-code cells (AgentTranscript's `details.error` passes the store's code through the cut); T4c also sees a hook result's `reason` / `refusal` / `code` (its negative control holds one). The sandbox profile's apply failure (its stderr, `node-execution-env.ts`) is read before its 300 cut.
1373
+ - **For @test (black box).** Feed each shape (a key split by U+200B, U+034F or U+FE0F; `Authorization: Negotiate` LF `<40 characters>`; a URL whose password straddles the 240th character; `token=<v> … <v>` in one sentence) as an A2A peer's error message, a hook's block reason, an MCP server's failure body, a tool's thrown error, a deployment `beforeWrite` refusal reason and a throwing tool policy; read the model's tool result and the host's notices: no run of 4 or more of the secret's characters.
1374
+
1375
+ ### A remote endpoint's multi-line words and a thrown value's text read their one-line spelling too: a token a line break kept from its scheme word is withheld where it stands, the lines kept (#4334; Security; behavior change: narrowing — see the family below; widening: none; hard-breaking: none; closed sets: none; exports: none at the root; wire: none) (@server @cli @client-core @test)
1376
+
1377
+ - **Rule.** `remoteWords` (a model provider's error body, frame or transport failure; an MCP server's failure; the memory distiller seat's failure; a host Brain's thrown or final failure words), `egressThrownText` and `redactThenCut` carry the words as written, lines kept. What the egress scanner reads in their one-line spelling that it does not read in the written words is withheld in the written words (`oneLineFinds`, `src/core/untrusted-egress.ts`, the one finder; `remoteWords` reads it, and `egressForeignText` — the egress layer's multi-line form, which `egressThrownText` and `redactThenCut` read). An exit that folds the words later finds nothing left to join.
1378
+ - **Before → now (measured, real load paths, synthetic tokens).** `upstream said Authorization: Negotiate` LF `<40 characters> was rejected` showed the whole token after `Authorization: «redacted»` on each exit: the failure's `errorMessage` of an HTTP error body, a transport throw, a request the runtime refused to build, a cancel, a read that broke mid-stream, an Anthropic `error` event; the memory distiller seat's transport throw, 401 body and non-JSON 200; a host Brain that throws and one whose final message carries the words (the run's terminal); an MCP server's connect failure (the warning and the status record), a `tools/call` JSON-RPC error and an `isError` result; a tool's thrown error (the tool result the model reads) and a compaction pass's failure reason; a thrown text cut for display (`redactThenCut`: a roster entry whose members throw, the run's refusal). Now none shows a run of 8 of its characters (14 site cells and the roster refusal; every one red with the finder off or `redactThenCut` reading the written words alone). `Basic` and `Bearer` were already read across the break; `Digest`, `Negotiate`, `NTLM` and an unknown scheme word were not.
1379
+ - **The family that now reads differently (open to veto @server @cli @client-core @test).** In a remote's failure text or a thrown text, when a line ends with a credential header's label (`Authorization:`) or with the scheme word after it, the first one or two ordinary words of the next line are withheld and the line break goes with them — exactly what the same text already reads on any one-line exit (`foreignLine`, 130 sites). Measured on 60 synthetic texts per family: a line ending in `Authorization:` and prose on the next 60 / 60 (`missing Authorization:\nfield value closed` → `missing Authorization:\n«redacted» closed`); a line ending in `Authorization: <scheme>` and prose on the next 54 / 60 (`rejected Authorization: Basic\nplease retry` → `rejected Authorization: «redacted» retry`); a credential ending in `=` padding with another header on the next line takes that header's name (`Authorization: Basic dXNlcjpwYXNzd29yZA==\nContent-Length: 42` → `Authorization: «redacted» 42`). Controls, 0 / 60 each: node / java / python stack traces, pretty-printed JSON with UUIDs, hashes and base64, HTTP response dumps (`WWW-Authenticate: Bearer realm=…` included), log lines with paths and hashes, prose that wraps `Authorization` / `Basic` / `Bearer` / `token` at a line end. KNOWN-LIMITS KL-4334-a.
1380
+ - **The #4374 leg's differential corpus (measured: 13,394 rows × 8 exits, the stage base against this branch, both on k3s8).** Cells that show more of a planted value: 0. Cells that show less: 159 (`remoteWords` and the JSON `terminal.message` reading: a credential cut by a line break, a no-break space or an ideographic space — `authorization:`, `Digest`, OAuth 1 — and the repeat of such a cut value; the #4435 cells above). Plain words newly withheld: 4 rows of 13,394, one word each, all at `remoteWords` — a code fence line (```` ``` ````) and a `Content-Type` header name on the line after a credential header (the family above); an OAuth 1 header cut by a line break inside its signature now reads whole (its `oauth_signature_method` / `oauth_version` params withheld with it), as the same header unbroken already read on the base.
1381
+ - **Not changed.** `egressText` (tool output, file reads, every other exit keeps its one reading); a text whose fold changes nothing reads exactly as before (the finder returns at once).
1382
+ - **Cost (measured, local host under load, median of five).** One `remoteWords` call: a short multi-line text in the noise (≤ 1 ms); a 64 KiB dense body of 3 000 short credential values on one line 34.7 → 44.7 ms, on 3 000 lines 17.3 → 26.2 ms (one more scan). #4379's retried 429 leg with a 60 KiB JSON envelope: unchanged (the envelope is one line; the finder never runs on it).
1383
+ - **Rules.** Readings of a multi-line foreign text: 1 (as written) → 1 (as written, with what its one-line spelling alone finds); finders of a second spelling: 1 (`oneLineFinds`), read by `remoteWords` and `egressForeignText` (`egressThrownText`, `redactThenCut`). Special cases: 0.
1384
+ - **Pins.** `test/backlog4334-remote-words-one-line.test.ts` — N1 / N3 (what the reading newly withholds, nine families, on `remoteWords` and on thrown text), N2 (six scheme words × LF / CRLF), R2 (three thrown-text exits), S1–S13 (each `remoteWords` site at its exit; `stream-engine.ts` `echoCarried` is a check that drops a changed echo, not a mint; `web.ts`'s reason phrase cannot hold a line break — the platform's `Response` refuses it, S10), T1 / T2 (cost, readings only).
1385
+ - **For @test (black box).** The shape above as an MCP server's 500 body, a provider's plain-text 401 and an Anthropic `error` event: `terminal.message`, the MCP status record and the tool result carry no part of the token; and the family above, read on both a one-line and a multi-line exit, reads the same words.
1386
+
1387
+ ### A headless PuTTY private body is read by the format's 64-wide wrap — a last line followed by a word on the same line, and the body inside a serialized string, are withheld (#4361; Security; behavior change: narrowing — more withheld; widening: one form, below; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @cli @client-core @test)
1388
+
1389
+ - **Rule.** The private-key row's headless branch reads `Private-Lines: <n>` and then the body by PuTTY's own wrap (64 base64 characters a line): full-width lines a line break ends, then the last line — 8 body characters or more (a credential's length, `CREDENTIAL_MIN_CHARS`) to the first character that is not a body character, a shorter run only to its line end, the end of the serialized string it sits in (a closing quote behind up to 63 backslashes) or the text's end, so prose that names the field and goes on with a short word on the next line (`Private-Lines: 14\nThe next lines …`) reads as written, as on 7.68.3 (#4654); a line break is a real one or its escape in a serialized string (`\n`, `\r\n`, behind up to 63 backslashes). It read a body line only when its line ended right after it, and only after a real line break. The declared count is not read: a regex repeats a group only by `*` / `+` (#3754's count law: no count after a group), so a count of lines cannot be spelled.
1390
+ - **Before → now (measured; a real Runner refused with each shape, a 64 / 64 / 40-character random body; `providerMessage` / `terminal.message`; longest run of a body line shown, under 8 is coincidence).** Before: N = 1 with a word after the line 10 / 64; N = 2, a word after the last line 64 / 64; N = 3, a period after the last line 40 / 64; the body ending the text, a sentence on the next line, the MAC line after it 2 / 64 (`terminal.message` reads the JSON body, where the line break is an escape); CRLF, serialized once, serialized twice 64 / 64; a declared count of 200, three lines 40 / 64. Now every shape reads ≤ 3 on both exits (three runs on the tree merged with the stage; the number moves with the random body between 1 and 3).
1391
+ - **Withheld that was carried (KNOWN-LIMITS KL-4361-a).** When the field stands with no body after it and the next line opens with a word of 8 letters or more, that word is read as the body: `Private-Lines: 0\nDescribes the empty body` → `«redacted:private-key» the empty body` (v7.68.3 as written; a shorter word, `the body is empty`, reads as written on both — measured). When the body's last line is exactly full width (64), a word alone on the next line is read as one more body line: `Private-Lines: 2\n<64>\n<64>\nThanks\nRegards` → `«redacted:private-key»\nRegards` (v7.68.3 withheld `Regards` too — it read every line of body characters a line break or the text's end closed).
1392
+ - **Reads less than before (open to veto @test).** A body wrapped wider than 64 (a key file re-wrapped by hand): only its first line is read (7.68 read every line that a line break ended). PuTTY writes 64.
1393
+ - **Pins.** `test/backlog4361-private-lines-declared-count.test.ts` (F the shapes by both tiers; F2 a last line shorter than the wrap, 7 and 20 characters, real and escaped breaks, ending its line, the serialized string or the text; L a real Runner, both exits; C prose naming the field, a line after a body whose last line is short, C3 the field then a short word on the next line; R the two readings above). Mutations (#4654): the short run's end condition dropped ⇒ C3 red; the last line only to its line end ⇒ F1 / F2 red; a short last line not read ⇒ F2 red; the string's end dropped ⇒ F2 red.
1394
+ - **Also read (#4654, measured on both trees).** A last line shorter than 8 followed on the same line by a word (`<64>\nAQ== tail`) keeps those characters in view, as on 7.68.3; a serialized string that ends with the field and a short word (`"…Private-Lines: 14\nThe"`) has that word withheld, where 7.68.3 carried it. Re-pinned: `test/backlog4329-provider-message-mask-order.test.ts` W3 (the two `Private-Lines` cells on `terminal.message` now withheld; the PEM-banner cell stays, #4333), `test/fixtures/secret-forms-3769*.ts` `ppk-json-headless` (limit → read), the 954 parity copy of the row. @server: its own trace reader (`src/trace/redact.ts`) has its own `Private-Lines:` grammar and is not changed by this; `@sema-agent/primitives` carries the row.
1395
+
1396
+ ### A credential header's auth-param value repeated alone elsewhere in a remote's words is withheld there too (#4435; Security; behavior change: narrowing; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @test)
1397
+
1398
+ - **Rule.** How an endpoint can print back a value its request carried gains a fourth base: the value of each auth-param of the credentials part whose name is a credential name (the vocabulary's own reading of a member's name, `isSensitiveRecordKey`; no list of its own), 8 characters or more (`Token token="<v>"` → `<v>`; a single-quoted value read as the vocabulary reads a quote; a quoted value's quoted-pairs read — `token="ab\"cd…"` is `ab"cd…`, echoed decoded, JSON-escaped or percent-encoded).
1399
+ - **Before → now (measured).** A request declaring `Token token="<24 characters>"`, refused with `the upstream key <v> was revoked`: `providerMessage` and `terminal.message` showed `<v>` → neither does. A value the vocabulary found in the words (`Authorization: Token token="<v>" was refused; the value <v> is unknown`): a value the vocabulary reads alone as a token (mixed letters and digits) was already withheld when repeated; one it does not (`asfwsrdwmvghfpdzsyt`) was carried → withheld. The #4374 leg's differential corpus (13,394 rows × 8 exits, the stage base against this branch): 86 cells of its header-param shapes (`Token token=`, a quoted param, a label and a space) showed part of a planted value on the base and show none now, at the admitted provider message, both `providerMessage` readings, `remoteWords` and both `terminal.message` readings; 0 cells show more.
1400
+ - **Not changed (KL-4374-a).** A param value the endpoint wrote with a raw line break inside it is still read by the vocabulary only up to the break, so a repeat written without the break is carried (the leg's differential cells for #4435; readings in the car's receipt).
1401
+ - **Pins.** `test/backlog4435-auth-param-echo.test.ts` (F the found side — a token the vocabulary reads alone and a lower-case value it does not — and the declared side, a value holding an escaped quote; L a real Runner; C a param under a name that is no credential name, and one shorter than 8, are carried).
1402
+
1403
+ ### A bounded form of foreign words reads at most a window of their head (the shown length + 64 KiB) and shows the head the window reads alike twice — where that head holds no word, the oversized mark and the words' length: its cost follows what it shows; an MCP server's failure words on its status record and connect warning, and a throwing policy's report line, keep the head, at most 10 000 characters (#4555; Performance; behavior change: narrowing — words longer than the shown length + 64 KiB (67 536 characters on a one-line form or cut showing 2 000, 65 656 on a disclosed rule text) show only what comes before a run with no white space or a very long value that reaches past the window (a sentence before a base64 body: the sentence and the cut mark), and the oversized mark and their length where such a run starts at the first character (a minified JSON or base64 body, a presigned-URL list or an S3 listing), where 7.68.3 showed their head; the MCP status record's tail and the policy report line's tail; widening: none — the window makes no exit show more than 7.68.3 did (the residual KL-4555-a reads as 7.68 did); hard-breaking: none; closed sets: none; exports: none at the root; wire: none) (@server @cli @test)
1404
+
1405
+ - **Rule.** Every form that shows only the head of foreign words — the one-line form (`foreignLine`), the multi-line cut (`redactThenCut`, which the policy report line now takes) and a disclosed rule text (`escapeForDisclosure`) — reads them through one function, `boundedForeignReading` (`src/core/untrusted-egress.ts`). Two exits read all their words instead (up to 256 KiB, #4334's bound; past it the oversized mark and the length), the two whose pass withholds a value it finds anywhere in the words wherever else it stands, as 7.68.3 already read them: the provider's sentence (`foreignLine`'s `whole`; a host Brain's sentence has no length bound) and an MCP server's failure record (status record and connect warning; its echo search runs when a declared value or a `Cookie:` member is in the words). A window there would show a value written bare in the head and labeled only past the window, which those two withheld; with them read whole, the window makes no exit show more than 7.68.3 did. Words no longer than the shown length and twice a margin of 32 KiB (`FOREIGN_WINDOW_MARGIN`) are read whole, exactly as before — so a model provider's error body, read up to 64 KiB, reads as it did. Longer words are read twice, on their first shown + 64 KiB and their first shown + 32 KiB, and only what both readings say alike is shown (never half a mark), then cut; such words end in the cut mark (`redactThenCut` too, within its bound — its cut of words read whole stays a pure prefix). Why two readings: a credential the window's end cuts is at most a margin long, so it starts after the shorter reading's end; a credential the shorter reading's end cuts is read whole by the longer one, and the readings part at its start — however far the redaction of a long value before it pulled the later words forward. And the window's head holds no word it did not read to its end: where the part both readings say alike stops, a run of non-space characters the longer reading goes on with is left out of it — a credential with no white space that the vocabulary knows only whole and that is longer than the window (a URL's userinfo is read only with the `@host` after it: `https://deploy:<100 000 characters>@registry…`) gets no head from the window. What the window shows is that head however short — a sentence before a run of 300 000 characters with no white space is shown, and the cut mark after it, as before this change. Where the head holds no word at all — such a run from the first character on (a JSON or base64 body with no white space) — the words, longer than the window reaches, are not read: the oversized mark and the words' length stand for them, the form the two exits below write past their own bound (`unreadWords`, one spelling of unread words; it was the cut mark alone; a 250 000-character minified JSON body: v7.68.3 showed its first 2 000 characters). Up to the window's reach they are read whole, so the head shown is the one 7.68.3 showed (minified JSON, base64, ASCII and CJK text with no white space at 60 000 characters and at the reach itself, 60 000 of JSON after `upstream answered 422: `; the one-line form at 2 000, the cut at 2 000 and the disclosure escape: byte for byte as v7.68.3, 43 of 43 cells, measured on four trees).
1406
+ - **The margin (measured).** The longest value the vocabulary reads only whole is a private key block: PEM of a generated RSA 2048 / 4096 / 8192 key is 1 704 / 3 272 / 6 392 characters (PKCS#8), an RSA 16384 key's about 12 600 by its DER size; 32 KiB is about two and a half of the largest.
1407
+ - **Before → now (measured on k3s8, CPU).** The #3754 R2 texts at 8 million characters through `foreignLine`: 1.85–2.8 s for most families and 18.5 / 20.4 / 21.8 s for a Basic credential, a private key and an `Authorization: Basic` header → 24–78 ms for most families and 152 / 203 / 185 ms for those three (the whole suite's run, 12 workers). An 8 MiB prose answer with one key (an A2A answer's cap) → 67 ms. #3754 R2's one-line face is back under the single pass's bound (2 000 ms). Why the three were slow: each value the vocabulary finds is searched for elsewhere in the words, spelled up to eight ways in one matcher, three times per reading — linear in the words' length, about 25 times a single pass each. The two exits that read whole read at most 256 KiB (#4334's bound, above): past it they write the oversized mark and the words' length — an MCP connect failing with an 8 MiB body 61 ms of wall time (W6; it read the whole body before the bound, 2.9 s, and 7.68.3 stored it whole), the provider's sentence on 8 MiB under a second (B4; 7.68.3 read it whole: 29 s on 1 MiB of dense multi-line `Authorization: Basic` lines); at the bound their costliest shapes take 7.9–13.1 s (local host; 7.68.3 2.3–5.2 s at the same length; #4334's three-tree reading, above).
1408
+ - **The policy report line (fix round; open to veto @server @cli).** A throwing tool policy's report on the hook-failure lane (`onError`, phase `hook`) carried the thrown text whole, read once — the first round of this change made it `remoteWords`, whose search for found values over the whole text took 1 MiB of multi-line `Authorization: Basic` lines from 158 ms to 11.6 s (the read-only leg, both trees). It now takes `redactThenCut`: its lines kept, its head at most 10 000 code units (KNOWN-LIMITS KL-4555-d), read on a window, so its cost follows that bound — 64 KiB / 1 MiB / 8 MiB of the Basic lines 310 / 457 / 446 ms, of `Negotiate` LF token lines 148 / 268 / 281 ms, of prose 4 / 11 / 14 ms (k3s8 wall, load about 40; W9 holds the bound under the single pass's 2 000 ms of CPU). A host that logs or forwards the report sees at most that head of a long thrown text.
1409
+ - **The costliest window, and the bound (fix round; measured, k3s8 wall, load about 40).** A window full of short credentials is the costliest a bounded form reads: 65 836 characters of multi-line `Authorization: Basic` lines (4 703 findings, 1 568 distinct values) take `foreignLine` 1 862 ms, `escapeForDisclosure` 2 576 ms, the policy deny line 2 519 ms; dense `password=…&` 1 597 / 2 452 / 2 481 ms (the read-only leg read up to 2.6 s at 8 MiB, the window being the same). No one part dominates: the vocabulary's finds on the written words 190 ms (one rendering per finding for its own account), its reading of the folded words 267 ms, the search for the found values' echo 194 ms — and a reading runs the vocabulary about four times and that search about three times. So the shape reduces, not the bound: one vocabulary reading per spelling and one echo search would bring the window under a second (inferred, not built here; it is the same work as #4562's — the echo search out of one matcher). The bound stays #3754's 2 000 ms of one face's CPU, which W7 and #3754 R2 measure.
1410
+ - **The MCP status record (open to veto @server @cli).** An MCP server's connect failure kept its whole body on the server's status record and in the connect warning: a 500 with a 64 KiB / 1 MiB / 8 MiB body stored 65 524 / 1 048 564 / 8 388 596 characters (measured, a real loopback connect). Now the head, at most 10 000 characters and `…` — the budget the failure text a tool result carries already had (8 000 head + 2 000 tail), the head only. A host that renders the status record shows at most that; the tail of a long failure body is not on the record.
1411
+ - **What reads differently (KNOWN-LIMITS).** Only words longer than the shown length and 64 KiB: KL-4555-a — on the bounded exits a value written bare before the window and labelled after it (`the value <v> came back; …64 KiB… password=<v>`) is shown, where a whole reading would withhold it; 7.68 showed it on these exits too (their pass did not search the words for the values it found, or cut before it read). The two exits whose 7.68 pass did search all the words read them whole and withhold it: the read-only leg measured the provider's sentence showing 16 / 24 / 32 characters of such a value on the first round of this change where 7.68.3 showed 1–2 — now `the value «redacted» came back` (W4②) — and the MCP failure record showed the whole value under the window where 7.68.3's whole reading withheld it (W4②, a `Cookie:` member in the body; red with the window put back). KL-4555-c — words longer than the window's reach (the shown length + 64 KiB: 67 536 characters on the one-line form or the cut at 2 000, 65 656 on the disclosure escape) in which a run of more than 32 KiB with no white space, or a credential that long, starts in the shown head show only what comes before it, then the cut mark: `<a 150-character sentence> <300 000 characters of base64>` → the sentence and `…` on all three forms (v7.68.3 showed the sentence and the base64's first 1 850 characters at 2 000; a sentence of 1 900, a JSON array of numbers after it, a line break before the body and prose after it alike — four trees measured: the shown length is the one this change's first window showed, never more than v7.68.3's, no character of the body); `upstream answered 422: <100 000 characters of JSON>` → `upstream answered 422: …`; `password=<40 000 characters> — the reason …` past the reach → `password=«redacted»…` on the cut. Where the run starts at the first character there is no such head and the words are not read: the oversized mark and their length (250 000 characters of minified JSON, of base64, a presigned-URL list or an S3 listing → `«redacted:oversized» (250000 characters)`, where v7.68.3 showed the first 2 000 characters and this change's first window the cut mark alone). Within the reach the words are read whole and show what v7.68.3 showed (minified JSON, base64, ASCII and CJK with no white space at 60 000 and at the reach, `upstream answered 422: ` and 60 000 of JSON: 43 of 43 cells byte for byte; `password=<40 000 characters> — the reason …` → `password=«redacted» — the reason …`; `the preview failed for data:image/png;base64,<40 800 characters> and …` → its head with the data). Past the reach the cost is the window's two readings and no more (W11; measured, local host, CPU, lower of two, v7.68.3 / this change, two rounds): the one-line form at 300 on 250 000 characters of a presigned-URL list 38 / 237–279 ms, of a long JWT 8 / 113–174 ms, of an S3 listing 32 / 156–176 ms, the disclosure escape alike (reading the words whole after the window, as a fix round of this change first did, took 600–1 180 ms); the costliest shape with no white space, dense `password=<v>&` at 250 000 characters, 1.7–2.3 s on the one-line form at 2 000 and 1.3–1.6 s on the disclosure escape (v7.68.3 119 ms and under 1 ms: one pass, the escape none; read whole after the window 8.6 / 5.7 s) — the window's own cost; 16–28 ms on the cut (v7.68.3 133 ms).
1412
+ - **Not changed (a reading of its own, KNOWN-LIMITS KL-4555-e).** The one-line form writes the oversized mark for the whole text when a value it found is long — about 8 000 characters of a base64 value, 21 000 of a token after a scheme word, 32 000 of a keyword value — because the search for that value's echo is one matcher the engine cannot compile past that size: `Authorization: Basic <100 KB> — reason` reads `«redacted:oversized»…` (it read `«redacted:oversized»` before the window). Nothing is shown that should not be; the label and the reason are lost. The window does not change it on the one-line form (a window still holds a value that long); the multi-line cut (`redactThenCut`) does not search for found values and keeps the label (`Authorization: «redacted»`). Ticket #4562 (7.70.0).
1413
+ - **Rules.** Readings a bounded form chooses from: 1 (the pass on the whole words, any length) → 1 (`boundedForeignReading`: within the window's reach the words whole, past it the window's head where it holds a word, else the oversized mark and the words' length — `unreadWords`, the one form of words a reading does not read, which the exits that read whole write past 256 KiB too), with one reading member, `whole`, for the exit whose pass withholds a found value wherever it stands (the provider's sentence, `wholeForeignReading`; the MCP failure record reads its words whole at its one mint). Special cases: 0.
1414
+ - **Pins.** `test/backlog4555-redact-window.test.ts` — W1 (26 families × three lengths × both readings' ends × four places × three bounded forms, a long value before each pulling the later words forward: no run of 8 of the value, every mark whole), W1b (the same on the two one-line forms with a lead they write as short marks — W1's one long lead turns them into the oversized mark, so W1 tells nothing on them: 416 cells; a lead whose marks hold less than the shown head is the oversized mark, one whose marks hold more shows the window's head), W2 (the guard: a GitLab token the window's end cuts after such a value), W2b (the same on the two one-line forms, segmented lead), W3 (never half a mark), W4 (① KL-4555-a / ③ c as they read — within the window's reach the whole reading, past it the value's mark and the cut mark; ② the two exits that read whole withhold the bare repeat: the provider's sentence on three shapes and a real MCP connect whose body names a Cookie), W5 (the oversized readings), W6 (a real MCP connect: the status record and the warning), W7 (cost), W8 (a word not read to its end: a URL's userinfo of 60 000 withheld, of 70 000 / 100 000 / 256 KiB the words before the URL and the cut mark, or the oversized mark for a URL from the first character on; 26 families × three starts in the shown head × 1 / M / 2M past the shorter reading's end × three bounded forms, shown no more than the whole reading shows it; ordinary long words — a 200-character path, 40 800 characters of base64 image data shown as the whole reading shows them within the reach, the words before the data and the cut mark past it), W9 (the policy report line at 64 KiB / 1 MiB / 8 MiB), W10 (the window's reach: four shapes with no white space at 60 000 and at the reach itself show their own head on each bounded form, one character past it, at 250 000 and past 256 KiB the oversized mark; a token in the head withheld within the reach, nothing shown past it; a head however short — astral characters, one word — is the window's, one of white space only is none; the reading's calls — past the reach the two window readings only), W11 (cost: a long JWT, a presigned-URL list and an S3 listing of 250 000 on the one-line form and the disclosure escape, at most 1.8 times the same form on the window's two heads in the same process — 0.76–1.02 measured), W12 (a sentence of 150 / 1 900 before 300 000 characters of base64 or of a JSON array of numbers, a space or a line break between: the sentence's head and the cut mark on each bounded form, nothing of the body, nothing the text does not start with). Mutations: one reading of the window ⇒ W1 / W2 / W1b / W2b red (W1b and W2b on both one-line forms); the agreed part cut without the mark guard ⇒ W3 red; the unread-word clause dropped ⇒ W8 and #3754 R2's url-userinfo cell red; the provider's sentence read through the window ⇒ W4② red (`the value xrokwamxxyicjbwb came back`); the MCP failure record read through the window ⇒ W4② red (the whole value on the record); a head of no word shown as the cut mark alone ⇒ W8 / W10 / W11 red; a short head written as the oversized mark ⇒ W1b / W2b / W4③ / W8 / W10 / W12 red; such a head read whole again up to 256 KiB ⇒ W10 red and W11 at 2.6–4.7 times; a head of white space counted as a word ⇒ W10 red; the reach a margin long or short ⇒ W10 / W4③ red.
1415
+ - **For @test (black box).** An A2A peer answering an 8 MiB failure text: the error tool result arrives within a fraction of a second and carries no part of a key planted at the start. An MCP server whose connect fails with a 60 000-character body: the status record ends in `…` at 10 000 characters and carries no part of such a key, nor of a value it writes bare first and labels `password=` 50 000 characters later while its body names a `Cookie:`; with a 1 MiB body the record is `«redacted:oversized» (<n> characters)` (#4334's bound). A host Brain whose provider message writes a value bare and labels it 50 000 characters later: `providerMessage` withholds it, and 90 000 characters later too; 300 000 characters later: the oversized mark. A tool policy that throws 1 MiB: the `onError` report carries at most 10 000 of it.
1416
+
1417
+ ### The file-history seats a "what changed between checkpoints" read stands on: a person's input row says whether it opened its leg (`legFirstInput`), one function answers what a restore converges each tracked file to (`fileHistoryTargetOf`) and a new optional store seat reads those targets for a batch of checkpoints without an env (`FileHistoryStore.readBoundaries`), both bundled stores carry `blobExchange` and keep an unreferenced blob through a one-hour window of routine collection while erasing a session's history does not wait, and the store's own preview verb `FileHistoryStore.diffStats` is retired (#4267 S2 segment A; behavior change: unreferenced blobs outlive a routine collection by up to an hour; hard-breaking: three entries, three sentences each, below, open to veto @server; narrowing: none; widening: none; exports: none added or removed at the root (the helper functions are module exports here and reach the root with segment B); wire: the stored user row's optional `legFirstInput`; contract: the `blobExchange.put` sentence on collection, below) (@server @client-core @cli @test)
1418
+
1419
+ - **Rule.** "Where did this leg begin" is a fact on the row, written once: the harness, as its loop appends a person's input row (`origin: "human_input"`) and before the store keeps it, stamps `UserMessage.legFirstInput` — `true` on the first such row the leg appends, `false` on every later one (one harness per leg). The file-history boundary seat begins on the row that says `true`; `legFirstInputOf` is the one reader (`src/core/user-row-origin.ts`); an older row without the member reads `undefined`, never `false`. What a restore to a boundary converges each tracked entry to is one function, `fileHistoryTargetOf` (frozen → the boundary's version, else v1, else `base_unavailable` → the version's record, else `record_missing` → its deletion marker or its bytes' address); both bundled stores' `restore` take each target there, and their new `readBoundaries(scope, entryIds)` answers the same targets — one key per distinct id asked, each valued as that id asked alone, the tracked set read once per call (and not at all when no boundary asked about is there); whole history, absolute and frozen keys included, no env, no bytes — `boundary: null` exactly where `restore` answers `not_found`, `ok: false` (`restore_failed`, with permanence) exactly where the boundary is there and cannot be read, or the tracked set it reads cannot be read or judged (a record of the wrong shape in a set an older engine wrote: that id answers `ok: false`, the other ids of the call keep their own answers, and the runtime's own error text is not carried).
1420
+ - **Before.** The boundary seat began on "the run's first committed person-input row" — a judgment made in process and lost with it; the two bundled stores each chose a restore's target inline; neither bundled store carried `blobExchange`, and both collected an unreferenced blob at the first pass after it lost its last reference, including bytes put through an exchange for an import not yet published.
1421
+ - **Now.** Eight roads measured on the tree before this change and after it (a plain run with a steer, a resumed leg whose continuation merges a parked steer, an approval pause then a steer in the resumed leg, a steer minted before the objective, after a compaction, a fork, a log imported through `SessionStore.logTransfer`, a run after a code rewind) key their boundaries on the same rows, row for row; both stores' restore ledgers over a five-arm fixture (frozen, bytes, deletion marker, missing record, missing base, plus an abort) and `Runner.rewindFiles({ dryRun: true })`'s preview are value-for-value the ones measured before. Routine collection (the blob pass after `reap`) keeps an unreferenced blob until it is older than `FILE_HISTORY_UNREFERENCED_BLOB_GRACE_MS` (one hour), counted from its first write or its latest `blobExchange.put` (the file store reads the blob file's modification time and touches it when a `put` finds the bytes already held; a capture's write does not touch it; the in-memory store records the time beside the blob and takes an injectable clock, `InMemoryFileHistoryStoreOptions.now`, refused at construction when it is not a function). `deleteBySession` / `deleteUnreadableSessionHistory` collect every blob no history references, whatever its age. Both passes run on both stores also when the scope named holds no history (bytes put ahead of an import that never came are collected; the in-memory store skipped the pass there before). On the file store, a `put` that finds something already under the address checks it holds those bytes, and replaces it when it does not — a file with other bytes, a directory, a link to other bytes, a link to nowhere — saying so through `onCorruptRead` once the bytes are there, so a `put` answered `ok` means the store holds the bytes (the import's rule for a local blob: "a hash-named file is a claim, not proof"); a file that is there and cannot be read (permission, I/O) is not judged wrong: it is left as it is, nothing is said about its content, and the `put` answers `adopt_failed` with the fault's permanence. The file store's one removal step (`safeRm`) now removes a link to nowhere as the link itself — `rmSync` with `force` answers success over one and removes nothing — so every removal in the store reaches such a link, not only this one.
1422
+ - **Hard-breaking — three, three sentences each (open to veto @server).** (1) *What changed:* the optional store seat `FileHistoryStore.diffStats` is retired, and the bundled `InMemoryFileHistoryStore` and `FileFileHistoryStore` no longer carry a `diffStats` method. *Who is affected:* a host that calls `diffStats` on a bundled store or on a `FileHistoryStore`-typed value no longer compiles, and a host whose own store wrote `diffStats` on an object literal fails the check against the contract; @server has three such call sites, all in its tests (`test/rewind-files-doc-claims.test.ts` twice, `test/file-history-store-kit-db-integration.test.ts` once), while @cli and @client-core have none (a search of their main branches finds no call of it on a core store). *What to do:* preview a rewind with `Runner.rewindFiles({ dryRun: true })` — the store's own `restore` planned, which both bundled stores' `diffStats` already returned — and drop the `diffStats` forwarding from a store wrapper. (2) *What changed:* the contract kit's optional-member channel `fileHistoryStoreContract(…, onOptionalMember)` reports `member: "readBoundaries"` as well as `"blobExchange"`, one report line per optional member, absent ones included. *Who is affected:* a host whose callback annotates its parameter as `{ member: "blobExchange"; … }` (an untyped or inferred callback compiles as before), and a host that compares the whole report with an equality, as @server's `test/file-history-store-kit-db-integration.test.ts` does for its SQL stores (one `blobExchange` line today; a store without `readBoundaries` now adds a second, `absent`). *What to do:* widen the annotation to `"blobExchange" | "readBoundaries"`, or let it be inferred, and compare by member rather than by the whole list. (3) *What changed:* `InMemoryFileHistoryStore` and `FileFileHistoryStore` now carry the `blobExchange` member group (`put` / `get` / `has`), so `fileHistoryBlobExchangeOf(store)` answers the group for them where it answered `undefined`. *Who is affected:* a host that took "the bundled file store has no exchange" for a fact: @server's `test/session-sync-routes.test.ts` and `test/doc-claims-upgrade-notes.test.ts` each assert that `blobExchangeOf(new FileFileHistoryStore(…))` is `undefined` and turn red, and the same sentence stands in its `blobExchangeOf` comment (`src/session-sync.ts`), the `blobExchange` member's comment (`src/plugins/store-backend.ts`) and the `DB_BACKEND=local` bullet of `USAGE.md`; the session-sync blob routes themselves do not open on it, because their gate (`landingBlobFacesOf`) needs the per-landing `blobLanding` member as well and neither bundled store carries that. *What to do:* drop or flip the two assertions, and reword the three sentences to say the bundled file store carries the exchange but not `blobLanding`.
1423
+ - **Contract sentence.** `FileHistoryBlobExchange.put` said bytes no history references yet "are kept like any other unreferenced blob: until the orphan sweep's grace window runs out"; it now says they are kept through the store's routine collection until its grace window runs out, counted from the latest `put` of the same bytes, and that erasing a session's history does not wait for it. A third-party store that implemented the old sentence for erasure too may keep what it kept.
1424
+ - **Not changed.** Which row a boundary is keyed on, on every road measured; every restore ledger value; the rewind preview; the plan's own `diffStats` member (`FileHistoryRestorePlan.diffStats`, `Runner.rewindFiles`' `preview`); `canRestore`; the capture's write-once blob publish; the file store's erase-or-throw law (`deleteBySession` still throws when a blob will not go); `stripEngineMetadata` strips the new member, and the session import door keeps it only as a boolean beside `human_input`.
1425
+ - **Rules.** Target choice: two inline copies → one function. "Which row began the leg": a run-time judgment → a stored fact with one reader. Blob collection: one law ("unreferenced ⇒ gone") → two named passes (routine: by age; erase: all). Retired: the `diffStats` seat and both stores' wrappers, the module helper `previewFileDelta` (no caller since the preview became the plan). Added: `readBoundaries` (one optional seat, batch-shaped: a reader of many checkpoints pays for the history once), `bytesAreBinary` (the NUL test the line count already used, now one predicate), `FILE_HISTORY_UNREFERENCED_BLOB_GRACE_MS`. The file store's private boundary reader is renamed `readBoundaryMapping` (no public face).
1426
+ - **Pins.** `test/backlog4267-s2a-history-seats.test.ts` — P1–P8 the eight roads (boundary rows unchanged; `legFirstInput` per row; P4's slowed startup mints a steer before the objective) · P9 the member on the row the store keeps (read back from the log file by a second repo) · K-S2-4 strip, import door, reader · R1 both stores' ledgers value for value (measured on the tree before) · T1–T7 the seat's five arms on both stores, an absolute key the export leaves out, null exactly where `not_found` and a batch's keys (one per distinct id), one batch over a damaged record, a torn tracked set and an absent id (the tracked set read once per call, counted through `onCorruptRead`), the kit's four seat cases on both stores, a store without the seat reported absent, the function's arm order · T4b a tracked set with a record of the wrong shape (the call still answers, the boundary there `ok: false` without the runtime's text, the absent and reaped ids `null`) · X1–X7 both exchanges verified, the window kept / passed / restarted by a repeat `put`, erase not waiting, a capture not touching, the clock option's door, both passes on a scope with no history, a `put` over a damaged file · X8 a `put` over other bytes / a directory / a link to other bytes / a link to nowhere (replaced; said once, after the bytes are there) · X9 a `put` over a file that cannot be read (not replaced, not said, `adopt_failed`) · D1 the seat on neither store (type-checked) · D2 the preview measured before. Re-pinned: `test/backlog3148-write-faces.test.ts` (the in-memory store's exchange: absent → verified), `test/file-history-file-store.test.ts` (matrix: the seat retired, `readBoundaries` and the exchange on both; two blob-collection cells age their blobs past the window), `test/file-history-retention.test.ts` (two cells, the same), `test/file-history-store.test.ts` G12, `test/backlog1130-rewind-files-verb.test.ts`, `test/backlog3098-interrupted-edit-restore.e2e.test.ts`, `test/file-history-recorded-place.test.ts` (the preview through the plan), `test/backlog3186-store-options-gate.test.ts` (the in-memory store's options fixture names `now`).
1427
+ - **Consumers.** @server: (a) your SQL store may add `readBoundaries` (it is what segment B's checkpoint list reads: a batch of ids, one key per distinct id, the tracked set read once per call); it need not take `fileHistoryTargetOf` for its `restore` — taking it changes two things there (the caller's abort is judged after the frozen arm, so a frozen entry is listed even under an abort; and your mode range guard must stay after the target is chosen); (b) the bundled stores now carry `blobExchange` (hard-breaking entry 3): your session-sync blob routes read it together with `blobLanding`, which they do not carry, so those routes stay closed on `DB_BACKEND=local`; (c) a row projection that treats the user row's members as a closed set fails to compile when it picks this up — one added line passes it; across mixed versions the member passes through as it is. @client-core @cli: no change on the wire beyond the stored row's optional member. @test: black-box form of P1–P8 (which row a code rewind to a turn reaches) and D2 (the preview).
1428
+
1429
+ ### The engine's capability set states that every `task_notification` event it pushes carries its delivery key — `task_notification.note_key` joins `ENGINE_CAPABILITIES`, so a host reads the word before it joins frames to rows by `noteKey`, and an engine without it is told apart from one that states the key (#4637; behavior change: none; narrowing: none; widening: none; hard-breaking: none for a consumer that gates on a word, one for a consumer that pins the whole set or types a table over it (it reads one more member); closed sets: `EngineCapability` +1 member; exports: none; wire: none) (@server @client-core @cli @test)
1430
+
1431
+ - **Now.** `ENGINE_CAPABILITIES` (`src/core/engine-capabilities.ts`) carries a tenth word, `task_notification.note_key`. What it states: every `task_notification` event this engine pushes states `noteKey`, the key of the event's own notification (`taskNotificationDedupKey(notification)`, a root export), and wherever the model is handed that notification the `message_committed` row that hands it over (`role: "user"`, `origin: "queued_note"`) states the same `noteKey`. The key itself shipped in this release (#4559); the word lets a host read, before it sends anything, whether the engine in front of it states the key on every frame — on any road, not only the two #4559 measured. Measured on a real Runner (scripted model; nothing of the lane, the harness, the registry or the drain is stubbed), twelve roads, each frame's `noteKey` equal to the key of its own notification and, where the model is handed the notification, to the key of exactly one `queued_note` row that follows the frame on the same stream: the injector entry every producer rides at each of its three tiers (`next` / `now` / `later`) · a background agent's terminal · a fork's terminal · a host's `notify` live and parked · the turn-open redelivery of three spellings of one task's key (first, `seq`, re-supply `:a2`) · a wake leg over a letter in the session box and over a notification parked in process · a terminal the registry settles for a stopped child, uplinked to the live root leg · cross-session letters and the inbox line that counts what waits (five frames, five rows) · cross-session notices (delivery receipt, dropped receipt, idle notice) · the lines that say what the pending store dropped (a whole session's loss; one task's overflow, fifty frames, fifty rows) · a workflow's terminal. The code that mints the event is one object literal (`taskNotificationFrame`, `src/core/task-notification.ts`) called from exactly two places (the live lane's queue subscription and the turn-open redelivery); a pin counts them by syntax tree.
1432
+ - **Not promised.** A frame the model is never handed (a `session.receive` station consumed it; the leg ended before a turn took it; the run was halted by the person) has the key and no row. `noteKey` stays optional on the type: with the word, a frame without it is not this engine's push (a relay's, or a projection that dropped the member); without the word, its absence says nothing. A `ReadInbox` pull is a tool result, not a frame, and a host-owned `background.notify` sink is no event of the engine: neither carries the word's statement. A later hand-over is not guaranteed (the #4559 delivery rule is unchanged).
1433
+ - **Open to veto — hard-breaking: none; the one break is a pin of the whole set or a table typed over it (@server @cli @client-core).** A consumer that gates on a word reads the new one and nothing else changes. A consumer that pins `ENGINE_CAPABILITIES` or `EngineCapability` as a whole sees one more member: this repository's equality pin (`test/backlog1754-held-values.test.ts` V7) took it, and the #4536 pin that read its word as the set's last member no longer does (`test/backlog4536-attachment-instruction-copies.test.ts` W1); `docs/CLOSED-SETS.md` registers it. @server: the facts table `ENGINE_CAPABILITY_FACTS` (`src/capabilities/engine-capabilities.ts`) is typed over `EngineCapability`, so taking this version needs one row before it compiles.
1434
+ - **Consumers.** @server: put the word on your capability projection when you project the frame's `noteKey` (the member allow-list of the event projection needs `noteKey`, #4559); a host that reads your `/v1/capabilities` then knows before its first run that every frame it receives states the key. @client-core @cli: on an engine with the word, join a frame to its row by `frame.noteKey === row.noteKey`, take a frame without `noteKey` as not from this engine (unjoinable, never "not delivered"), and take a frame whose row never appears on its leg's stream as one the model was not handed (the #4559 rule); on an engine without the word keep what you do today.
1435
+ - **Rules.** Added: one word, stated once in the headed comment where the other nine are (the type's JSDoc and the integration guide point to it), registered in `docs/CLOSED-SETS.md` (the `EngineCapability` row: ten members) and named in the integration guide's capability-words paragraph and on the `task_notification` row of §1.12. Retired: none; the key's formula, the frame, the row and what the model reads are unchanged.
1436
+ - **Pins.** `test/backlog4637-note-key-capability.test.ts` — W1 (the word on the root export, spelt once, frozen) · R1 – R11 (one cell per road above; each frame's key is the key of its own notification and one `queued_note` row after it states the same key; no row names a key without a frame) · R12 (a parent that forwards its child's events carries no `task_notification` of the child's: two independent guards, red only with both opened) · S1 (one literal spells the event, it states `noteKey` from the key formula, the constructor has two call sites, counted by syntax tree); `test/backlog1754-held-values.test.ts` V7 (the whole set, ten members). Per-fixture mutations in the car tree's `.gate-logs/criteria-4637-mutations.md`: the constructor without the key reds R1 – R11 and S1; a mint stating another key reds exactly the roads that take it (live lane: R1 – R4 live half, R6 letter, R7 – R9, R11; turn-open: R4 parked half, R5, R6 in-process, R10), one road alone reds its own cell (workflow R11, notices R9, the whole-session line R10); the row stating another key reds R1 – R11; the word removed reds W1; a third call of the constructor or an inline literal without the key reds S1.
1437
+
1438
+ ### A sentence a `user`-audience notice says to the person no longer names the engine's own code — 32 codes say "the deployment's model catalog", "the allow list", "the verifier model", "this host declared it cannot" where they said `RunnerDeps.models`, `toolAllow`, `verifierModel`, `durableApproval: false`; a structural pin keeps it so (#4639; cli [14487]; wording change: the sentence text of 32 notice codes, three shared sentences of which the model also reads; hard-breaking: none; narrowing: none; widening: none; closed sets: none; exports: none; wire: none — every code, every audience row and every `detail` key and value is as it was) (@cli @client-core @server @test)
1439
+
1440
+ - **Rule.** A notice whose audience is `user` (`NOTICE_AUDIENCE`) is shown on the person's screen word for word, so its sentence names no type, member path, option or result field, function, internal enum word or other notice's code of the engine. The operator who must act on it goes from the CODE (the catalog on `EngineNotice.code`, `docs/INTEGRATION-CORE.md`) and from `detail` to the knob; the sentence says the fact in the person's words.
1441
+ - **Before.** `model.role_defaulted` (the instance cli measured on screen) said `roles.summarize names the model "x", … Declare "x" in the catalog (RunnerDeps.models) or correct the seat`; the same class was in 31 other codes, found by reading every `user` code's mint site and every sentence builder it reaches.
1442
+ - **Now.** `model.role_defaulted`: "The summarize seat names the model "x" … Declare "x" in this deployment's model catalog or correct the seat". The rest, by code: `advisor.not_attached` (the deployment's model tiers), `classifier.seat_rate_limited` / `classifier.unavailable` (the deployment's auto-mode settings / time limit), `model.capability_downgraded` / `model.fast_mode_changed` (the model's catalog entry declares …), `config.command_sandbox_unavailable`, `config.read_deny_floor_unkept` (ask the operator to make the deployment require the floor), `config.durable_gate_unavailable` (the deployment requires durable approvals; this task opted into durable approval; the checkpoint store switched off), `config.session_rules_earlier_grammar` (the allow list / the deny list — one table, `BUCKET_WORDS`), `inherit_env.names_withheld` (the variables the run inherits), `memory.delegation_static_mark_waived` / `memory.harvest_quarantined` / `memory.hold_opened` / `memory.hold_disposed` / `memory.session_polluted` (no member, function or notice code), `mods.display_withheld` (its message-display handler) / `mods.stop_ended` (at the run's / the sub-agent's stop point), `permission.allow_rule_not_used_in_auto`, `permission.allowed_tool_not_granted` and the three codes that share its entry phrase (`config.agent.unknown_tool`, `config.toolpolicy.unmatched_names`, `config.session_rules_earlier_grammar`: the reason words `near_miss` / `tool_name` / `wildcard_all` / `namespace_wildcard` / `content_unsupported` / `earlier_grammar` are phrases of one table, `INERT_REASON_WORDS`, in `src/core/allow-entry.ts`: "differs by case", "a retired tool name, now …", "a bare wildcard", …), `permission.settings_rules_skipped` / `permission.rule_row_dropped` (no issue code, no "this notice's detail names …"), `route.credential_origin_mismatch`, `task.halt_unconsumed`, `task.verdict_refused`, `task.tool_turn_incomplete`, `delegation.ask_unresolvable` (the way out of a leg whose parks nobody resumes), `verify.verifier_is_implementer` (the verifier model / the verifier role; "reported as not independent"), `peer.inbound_disposition` / `peer.idle_subscription` (the session's cross-session inbound / dialog-expiry setting).
1443
+ - **Wording (@cli @client-core @server @test; the model-facing ones are marked M; each is pinned in `test/backlog4639-…` and in the older test that pinned the old sentence, listed below).** M: the not-resumable leg's way out and cause (`notResumableWayOut` / `notResumableClause`, `src/core/park-resumability.ts`: "this host declared it cannot", no `durableApproval: false`) — the tool result of a refused ask or question; M: the entry phrase of an inert tool-name entry (`inertEntryPhrase`) — a refused Skill activation, a sub-agent that did not start; M: the guidance of a retired tool name (`bash_readonly`: "the read-only posture is a setting of the run"). A client that matches a notice sentence by its text (not by code and `detail`) re-pins: the sentences named above are the ones that moved.
1444
+ - **Not changed.** Every code and audience row; every `detail` key and value (`detail.reason`, `detail.bucket`, `detail.verifierSeat`, `detail.source`, `detail.cause`, … keep the engine's own words — that is where the operator reads the knob); the refusals and `onError` sentences that speak to the deployer (`sandbox required but unavailable: … capabilities.commandSandbox …`, the read-floor refusal); `KEYLESS_EXIT` (one sentence shared with `detail.fixHint` of `route.fallback_to_primary`, said to the session user inside `route.credential_origin_mismatch`: it names `apiKey` / `baseUrl` and is listed in the pin as owner-pending); the four server-minted `user` codes (`config.store_ephemeral`, `model.context_window_assumed`, `permission.entry_mode_clamped`, `server.model_unreachable`: their sentences are the server's); closed-set words a sentence interpolates by design (`class: …`, `(settlement; reason)`, `(deniedBy: settlement)`, an authorization reason, an error code in `model.fallback`).
1445
+ - **Rules.** Places a `user` sentence could name an engine identifier: unbounded (each sentence builder) → one structural pin over every mint site and what it reads; reason words of an inert entry: written in the sentences of four codes → one table (`INERT_REASON_WORDS`); words for the two session-rule buckets: written per sentence → one table (`BUCKET_WORDS`); words for the verifier's seat → one table (`VERIFIER_SEAT_WORDS`).
1446
+ - **Known limit.** The pin reads prose (a fragment with a space) and the declarations a sentence reaches by name; a one-word table value and an interpolated runtime value are not read. The words the person writes or reads are a named list in the pin, each with the reason; an entry no sentence says any more is red.
1447
+ - **Pins.** `test/backlog4639-user-notice-no-internal-names.test.ts` — S the structural pin (74 `user` codes, 70 engine-minted, every one with a mint site the scan reads; red on any identifier-shaped token outside the named list, on a stale exemption and on a stale owner-pending entry) · 13 cells, word for word, through the exported producers (advisor, classifier, role seat, command sandbox, session-rule buckets, verifier, verdict, halt, auto strip, the inert-entry table, the not-resumable way out, rows dropped, rules skipped, the retired-name guidance). Mutations (sentence put back, one per file or table; red each time): see the receipt. Re-pinned for the new sentences: `test/backlog1059-…`, `1125-…`, `1353-…`, `1354-…`, `1372-…`, `1377-…`, `1385-…`, `1432-…`, `1579-…`, `1640-…`, `1790-…`, `1830-…`, `1866-…`, `1875-…`, `1910-…`, `1930-…`, `1963-…`, `1971a-…`, `2394-…`, `2511-…`, `2571-…`, `2876-…`, `2944-…`, `2980-…`, `3200-…`, `3335-…`, `3781-…`, `3851-…`, `4111-…`, `4130-…`, `4149-fix1-…`, `4149-generation-no-swap`, `4198-…`, `522-…`, `645-…`, `design324-…`, `memory-pollution-loudness`, `per-task-agents`.
1448
+ - **Wire.** None.
1449
+
1450
+ ### A decision for a parked workflow's card, handed over while the record of the run that holds the card reads `running`, is told the truth — a card that no longer waits answers `not_pending` whatever the record says, and a card still waiting answers the new reason `run_not_ended`, which no longer says the next run will try again (#4553; behavior change: the person's notice and the model's frame for such a decision; narrowing: none; widening: none; hard-breaking: none; closed sets: `WORKFLOW_PARK_UNUSED_REASONS` +`run_not_ended`; exports: none; wire: `workflow.parked_decision_unused`'s `detail.reason` gains a word and two sentences change) (@server @cli @client-core @test)
1451
+
1452
+ - **Rule.** A card is read before the record of the run that holds it. When the record cannot carry the judgment on — unread, gone, its own admission unfinished, still `running`, or its successors unread — each card the decision names is read in the checkpoint store first: one that is no longer pending (decided, expired, removed) answers `not_pending`, the card's own word; one that cannot be read answers `record_unreadable`; only for a card read as still pending does the record's word get said — `run_not_ended` for a record that reads `running`, `record_unreadable` for the other four. A record that reads `running` means the run's end was never written (it is still running, or its process stopped before the terminal write); it does not change by itself.
1453
+ - **Before (measured, `test/backlog4553-adoption-notice-truth.test.ts` on the 7.69.0 stage head `3f86db2fb`: A1 A2 A2b A3 A5a–d A8 R1 R2 red; A4 A6 A7a–c R3 — the reason word of a card still waiting on a record that cannot be read — green).** A run X parked on a card and its record then reading `running`: the decision for the card answered `record_unreadable` whatever the card's state — card expired, card decided elsewhere, card removed, card still waiting alike — and the person was told "the workflow run's record could not be read right now, or the run is still running or did not stop on an approval. The approval card is still waiting; the next run of this session tries again." Two parts of it were not true: the card was not waiting when it had expired or been decided, and a record stuck at `running` is not read differently by the next run.
1454
+ - **Now.** Card expired, decided or removed: `not_pending` ("the approval card is no longer waiting for a decision (it was decided elsewhere, it expired, or it was removed). Nothing is left to do for this decision" — the word and sentence the other record states already gave; no `continuedAs`, the run's successors are not read). Card still waiting: `run_not_ended` — "the run that holds the approval card has not written down how it ended — its record still says it is running — so the engine cannot continue it from this decision and nothing was started. The approval card is still waiting; if that run is still running, decide again once it has ended, and if it stopped without writing its end, nothing continues it from this card: start the workflow again — it runs from its first step." Nothing is started and nothing is written in either case; the card stays pending. The same cards-first reading answers a record that is unreadable, gone, admission-unfinished or whose successors cannot be listed: an expired card there now reads `not_pending` (it read `record_unreadable`, "the card is still waiting"); a card still waiting reads what it read.
1455
+ - **Not changed.** A card still waiting on a record that cannot be read, is gone, has its admission unfinished or whose tree cannot be walked (past the bound, or a listing that fails) is still `record_unreadable`; a run that finished without parking, or any record the judgment goes on from, is judged as before. `record_unreadable`'s sentence loses only the words "the run is still running or" (that cause has its own word now): its remaining causes — a read that failed, a run that did not stop on an approval, a tree past the bound — still end "the next run of this session tries again" where that promise is only true of the first; this is not touched here.
1456
+ - **Exports.** None added or removed. `WorkflowParkUnusedReason` (type) and `WORKFLOW_PARK_UNUSED_REASONS` (the closed set, sixteen words now) gain `run_not_ended`; `docs/CLOSED-SETS.md` and the integration guide's judging steps, reason table and "deliver again?" facts say it.
1457
+ - **Rules.** The card's pending state is one reading (`cardOf`), used by the card judgment and by the cards-first answer; readings of "is the card waiting" 2 → 1. Retired: the answer of a record's `running` word before the card was read. No special case added.
1458
+ - **Pins.** `test/backlog4553-adoption-notice-truth.test.ts` — A1 card expired × record running ⇒ `not_pending` · A2 card decided × running ⇒ `not_pending` · A2b card removed × running ⇒ `not_pending` · A3 card waiting × running ⇒ `run_not_ended`, the notice and the model's frame word for word, nothing started · A4 card waiting × record unreadable ⇒ `record_unreadable` (A4s: its sentence, word for word) · A5a–d an expired card × a record that is unreadable, gone, admission-unfinished, or whose successors cannot be listed ⇒ `not_pending` · A6 a card that cannot be read × running ⇒ `record_unreadable` · A7a–c card waiting × the same three record states ⇒ `record_unreadable` · A8 the closed set · R1 R2 R3 a real Runner (scripted brain): X parked, its record set to `running`, the decision handed through a host leg — waiting, again, expired, decided elsewhere; and the record unreadable. Mutations (`.gate-logs/mutations-4553.md`): the judgment order put back (A1 A2 A2b A5a–d A6 R1 R2 red), the running arm alone (A1 A2 A2b A6 R1 R2), the successors arm alone (A5d), the unreadable / gone / admission-unfinished arm alone (A5a–c), the old sentence on the new word (A3 A8 R1), the old word on a running record (A3 R1), the new word on an unreadable record (A4 A7a–c R3), an unread card counted as waiting (A6). `test/backlog4552-one-waiting-line.test.ts` S5 / N6 / N20's `record_unreadable` sentence loses the same words.
1459
+ - **Consumers.** @server @cli @client-core: a notice's `detail.reason` is one word of the closed set; if you branch on it, add the arm — `run_not_ended` = the decision was not used and is deliverable again only once the run has ended (a record stuck at `running` never does: do not deliver it in a loop), `not_pending` = retire it; a `switch` over `WorkflowParkUnusedReason` that is exhaustive fails to compile until the arm is there. Render `message` as it comes (a whole sentence). Their own repositories were not read for this entry. @test: the black-box cells are the four combinations above.
1460
+ - **Wire.** `workflow.parked_decision_unused`: `detail.reason` +`run_not_ended`; no other member moved; `message` changes for the two readings above.
1461
+
1462
+ ### The factory is told why it is asked and where the env must stand — `ExecutionEnvFactoryContext.purpose` / `requestedCwd`, `RunnerDeps.executionEnvFactoryHonorsReadChanges`, `RewindFilesRequest.cwd`, and one absolute-host-path judgment for every requested cwd (`isAbsoluteHostPath`, `@sema-agent/primitives`) (#4267 S1a; `purpose` required: type-level hard-breaking; the Agent tool's `cwd` narrowed, a drive / UNC path judged by the env instead of the tool, open to veto; a relative `RunnerDeps.rootPath` with a factory refuses every requested cwd, narrowing, #4653; hard-breaking: one, type level, below)
1463
+
1464
+ - **Rule.** At its one factory call the engine states why it asks (`purpose`) and where the env must stand (`requestedCwd`); whether one acquisition asks the factory at all is one judgment with three answers (`ask` / `not_needed` / `not_answered`); every requested cwd — an Agent call's, a `Runner.rewindFiles` caller's — meets one shape judgment, `isAbsoluteHostPath`, owned by `@sema-agent/primitives`; whether it is a place in the env that came back is that env's answer — both the directory and the env's own cwd must be absolute paths of the env's family (its `absolutePath` answers each as written), compared where they land (`canonicalPath`, or that absolute address when the env cannot resolve it).
1465
+ - **New.** `ExecutionEnvFactoryContext.purpose` — why the engine asks for this env (`"run"` | `"rewind_files"` | `"read_changes"`; `ExecutionEnvPurpose`, `EXECUTION_ENV_PURPOSES`), always present. For a purpose other than `"run"` a factory attaches to the session's existing workspace and never mints one — or refuses: a refusal coded `"env.purpose_unsupported"` (exported `ENV_PURPOSE_UNSUPPORTED`) when it does not serve the purpose, which the engine answers as no hands; or its own refusal when it serves the purpose but holds no workspace for the session, passed to the caller unchanged; the env's `destroy()` then only detaches. `ExecutionEnvFactoryContext.requestedCwd` — the directory the env must stand at when its caller requires one (an Agent call's explicit `cwd`, also still handed as `parentCwd`; the `cwd` a `Runner.rewindFiles` caller states); absent (no key) otherwise. `RunnerDeps.executionEnvFactoryHonorsReadChanges` — until it is `true` the factory is never asked for `"read_changes"` and no static env stands in for it; a Runner with no factory ignores its value; a value that is not a boolean is refused at `new Runner` (`config.invalid_argument`), with or without a factory. `RewindFilesRequest.cwd` — an absolute host path (anything else `rewind.invalid_spec`, before the factory is asked), handed as `requestedCwd` and held to it (`config.cwd_unsupported` / `config.cwd_outside_root` / `config.cwd_not_honored`). `Runner.rewindFiles` asks for `"rewind_files"` and answers a purpose refusal — a thrown value whose own `code` is `env.purpose_unsupported` — `rewind.files_env_unsupported` (the factory's refusal as its `cause`); any other factory refusal reaches the caller as the same object, one that only wraps a purpose refusal in its `cause` chain included. `@sema-agent/primitives`: `isAbsoluteHostPath`, `ABSOLUTE_HOST_PATH_MAX` (4096) — a string, no NUL, no `..` segment, posix `/…`, a Windows drive `C:\…` / `C:/…` or UNC `\\server\share\…`; and `isDriveAbsoluteSpelling`, the drive form's one spelling, which the engine's path-family readings (`isWinFormPath`, `isAbsoluteForFamily`) now read instead of a private copy of the same pattern (same answers on every input — pinned).
1466
+ - **Hard-breaking (type level).** (1) *What changed:* `ExecutionEnvFactoryContext.purpose` is a required member. (2) *Who is hurt:* a caller that builds this context itself (a host's own run helper, a test fixture) no longer compiles; a factory that only reads the context is not. (3) *What to do:* add `purpose: "run"` (or the purpose it asks for). @server
1467
+ - **Agent tool `cwd` (model-visible; open to veto @server @cli @client-core @test).** The tool's gate reads `isAbsoluteHostPath` instead of `node:path` `isAbsolute`. *Narrowing:* a `cwd` with a `..` segment, a NUL or more than 4096 characters is now not started (`cwd.relative`). *Moved, not widened:* a Windows drive (`C:\…`, `C:/…`) or UNC (`\\server\share\…`) `cwd` is no longer refused at the tool — it goes to the factory, and the env that comes back answers whether it is an absolute path of its own: an env of the Windows family standing on it runs the child; a posix env reads it as relative, so the child is not started (`config.cwd_not_honored`, `config.cwd_outside_root` under a declared root) and nothing is written — also when a factory written to the contract built a `NodeExecutionEnv` there (which would otherwise work under the host process's directory); with no factory it is `config.cwd_unsupported`. *Narrowing:* an env standing on a relative cwd never honors a requested cwd (before: honored where the env's own reading of that cwd and the requested directory happened to land on one directory — a link — the task root then a relative spelling). The answer now reads `Sub-agent not started: cwd must be an absolute path in the environment the sub-agent runs in, with no ".." segment, no NUL and at most 4096 characters.` (was `… cwd must be an absolute path.` / `… an absolute path string.`) — it names no spelling family, so it does not point the model at a form its environment may not read.
1468
+ - **Narrowing — a relative `RunnerDeps.rootPath` on a deployment with an `executionEnvFactory` (#4653; open to veto @server @test).** Every requested cwd — an Agent call's, a `Runner.rewindFiles` caller's — is refused `config.cwd_outside_root` when the env reads the declared root as a relative path (`"."`, `".."`, `"./sub"`; also a path of another family than the env's, such as `C:\work` on a posix env): the env this fence judges is the one minted for the request, standing on the requested directory, and each run's env stands wherever the factory places it, so a relative root names no fixed place to locate a directory in. The refusal gives the cause and what to do before the requested path, so a sub-agent report, which cuts the field at 300 characters, still carries both: `The requested cwd cannot be located within this deployment's declared root "…": the environment reads that root as a relative path — declare RunnerDeps.rootPath as an absolute path. With an executionEnvFactory each run's environment stands wherever the factory places it, so a relative root names no fixed place and no requested cwd can be located within it (requested: "…").` An absolute root's verdicts and sentence are unchanged, and so is the sentence for a root the env reads nothing of (no env came back: the no-I/O stub). 7.68.3 started these children (a rewind's `cwd` is new in this release), but its fence read the relative root against the env it had just minted on the requested directory, so the fence held nothing there: `"."` and `".."` admitted every directory, `"./sub"` none where `sub` is a real subdirectory (read from the 7.68.3 code, not run). A deployment without a factory never reaches this fence (a requested cwd is `config.cwd_unsupported` there). How the other readers of a relative root anchor it today, and one anchoring for all of them: KNOWN-LIMITS KL-4653-a, #4657. Pins: `test/backlog4653-relative-root-cwd-door.test.ts` — R the fence (three relative roots × six directories in, at, above and beside where the root would land: refused with this sentence, the minted env destroyed once; an absolute root as before, sentence byte for byte; a root no env reads keeps the outside sentence; a drive root on a posix env reads as relative; no root admits any absolute cwd) · W `Runner.rewindFiles({ cwd })` refused, nothing restored; the absolute-root control restores · A the Agent tool through the real Runner: the child is not started and the model reads the cause and what to do, also with a requested cwd of about 240 characters; the absolute-root control runs.
1469
+ - **Still different from the reference (CC 2.1.321).** A relative Agent `cwd`: the reference resolves it against its process directory (cli321.js:292445 refuses only a non-string or blank value; its ancestry walk, cli321.js:275775, runs `path.resolve`); this engine refuses it — an engine embedded as a library has no process directory that is any one session's workspace. A `..` segment: refused by both (cli321.js:275691), different sentences. UNC: refused at the reference's tool (cli321.js:275691 / :275696), here passed to the factory; a drive path: read as relative there (inferred, not run), here passed to the factory — on a posix env neither runs (the env reads it as relative: `config.cwd_not_honored`, measured with `NodeExecutionEnv` and a factory written to the contract); only an env of the Windows family standing on it runs it. NUL and over-long: no dedicated check in the reference; refused at the tool here.
1470
+ - **Wording.** The three requested-cwd refusals (`config.cwd_unsupported` / `config.cwd_outside_root` / `config.cwd_not_honored`) open `The requested cwd` (was `Agent cwd "…"`); the codes are unchanged.
1471
+ - **Fixed on the way.** A requested cwd refused after its env was minted (`config.cwd_outside_root`, `config.cwd_not_honored`) empties the env seat, so a caller that unwinds its stack on the throw (`Runner.rewindFiles`) destroys that env once, not twice.
1472
+ - **Not changed.** The codes `cwd.relative` / `cwd.isolation_conflict`; what a run's factory call carries besides `purpose: "run"`; `TaskResult.editedFiles` (its doc now names `SaveToolResult` and the three-valued failure edge, as the implementation and the integration guide's §3.7 already did).
1473
+ - **Rules.** Shape judgments of a requested cwd: core's (`node:path`) + the contract package's → one, in `@sema-agent/primitives`. Spellings of the drive form: two in core's family readings + one in the new judgment → one (`isDriveAbsoluteSpelling`). "Does this acquisition ask the factory": a condition at the call (`startsEnv && factory`) and no word for out-of-run purposes → one judgment, three answers. Added: one type (`ExecutionEnvPurpose`), one deployment statement. No special case.
1474
+ - **Exports (`npm run handoff:diff`).** Root +3: `ExecutionEnvPurpose` (type), `EXECUTION_ENV_PURPOSES`, `ENV_PURPOSE_UNSUPPORTED`. `@sema-agent/primitives` +3: `isAbsoluteHostPath`, `ABSOLUTE_HOST_PATH_MAX`, `isDriveAbsoluteSpelling`. Removed: none.
1475
+ - **Pins.** `test/backlog4267-s1a-env-purpose.test.ts` — K-S1a-1 a run, the Agent child it spawns and the rewind ask for `run` / `run` / `rewind_files` · K-S1a-2 a purpose refusal ⇒ `rewind.files_env_unsupported`, nothing moved, the boundary still there · K-S1a-3 another refusal is the same object · K-S1a-4 a stated cwd honored / not honored / no factory / outside the root · K-S1a-5 an Agent `cwd` reaches the factory as both `parentCwd` and `requestedCwd` · K-S1a-6 no `requestedCwd` key where none is required · K-S1a-7 the rewind's and the Agent tool's door over relative / non-string / `..` / NUL / over-long, a drive or UNC path passed on · K-S1a-8 one destroy of the factory env, none of a static env · K-S1a-9 the judgment's three answers and the no-factory fold · K-S1a-10 the statement's type at `new Runner` · every row of the contract package's absolute-host-path table · the pair-run of the engine's family readings before / after they read the drive spelling from primitives (50 inputs × 5 readings, no difference) · the inputs where the engine's UNC recognizer and the admission part. `test/prepare-execution-env.test.ts` re-pinned (the context's `purpose`; the refusal leg's single destroy). `test/backlog4267-s1a-env-family.test.ts` — F1 a drive / UNC Agent `cwd` through the real Runner on `NodeExecutionEnv` and a factory written to the contract, no `rootPath`: not started, `config.cwd_not_honored`, the child's model never asked, nothing written under the process directory or the workspace; `//srv/share/proj` runs as before; a declared root refuses all four `config.cwd_outside_root` · F2 the rewind's stated `C:\…` the same way · F3 an env of the Windows family on `C:\work\proj` honors `C:\work\proj` and `C:/work/proj`, not `/work/proj` · F4 each side alone: a requested cwd the env reads as relative (a link making both resolve to one place) and an env standing on a relative cwd (both resolving to one place) are refused · F5 the purpose refusal read on the thrown value itself: top-level purpose / plain object ⇒ mapped; host code wrapping one, no code wrapping one, `unknown` wrapping one, 7 wraps deep ⇒ passed through as the same object · F6 the 49-cell use × deployment net of the phase (unchanged) and the Agent child's single destroy.
1476
+ - **Consumers.** @server: ① the type break above — `buildInternalRunCtx` and the test fixtures that build the context add `purpose`; ② `execution-env-purpose.ts` can retire: attachment materialization reads `ctx.purpose === "run"`, the session's directory reads `ctx.requestedCwd` before the registry, the rewind route writes the body's `cwd` into the request; for a purpose other than `"run"` the host factory, holding no root for the session or handed a directory that is not one, throws its own refusal, and the route's own judgment of it retires — the error order then changes (an unknown anchor's 404, another replica's running 409, the engine's `rewind.session_busy` / `resume.session_not_found` all come before the workspace refusal); ③ set `executionEnvFactoryHonorsReadChanges` once a lane serves `"read_changes"` (safe in the deployment plane: a Runner with no factory ignores it); ④ the contract package's `isAbsoluteHostPath` can re-export the primitives one.
1477
+
1478
+ ### An emoji's variation selector before a color escape, punctuation, another emoji or a letter is no place the credential pass re-reads from: a text with more than 64 of them is read as 7.68.3 read it, not withheld whole (#4648; Security; a correction of this release's candidate — behavior change against 7.68.3: none for these texts; narrowing against 7.68.3: one, below — more than 64 selectors each between two letters or digits withhold the text whole (open to veto @server @cli); against the candidate: less withheld, see below; hard-breaking: none; closed sets: none; exports: none at the root; wire: none) (@server @cli @client-core @test)
1479
+
1480
+ - **Rule.** The format-free reading re-reads the text from a place — and counts it toward the 64 places it can afford — where a run of characters that do not show gave a credential a start the joined reading takes away. A run holding a `\p{Cf}` character is such a place between two characters that are not white space, as before. A run of default-ignorable characters only (a variation selector, the grapheme joiner, a Hangul filler) is one only between two characters a form's start reads as one word: `HEAD_WORD_CHAR` (`src/primitives/secret-vocabulary.ts`), the union of what the vocabulary's start checks refuse (a head word's, a glued scheme word's, a URI scheme's, the strict side's `\b`) — letters, digits, `_ / \ . @ + -` — defined beside those checks. Behind any other character every such start is open in the joined reading too; a userinfo with nothing in front refuses a selector as it refuses any character that shows, so a selector gives it no start.
1481
+ - **Before → now (measured; v7.68.3 / the candidate / this change).** A colored warning log whose `⚠️` stands right before the color reset (3 000 lines, 146 KB): read as written / one oversized mark, 145 890 characters withheld / read as written — on the egress pass of both tiers, a thrown value's text, a remote's words, a delegated child's final report (the parent's notification frame and the stored report), the one-line form and the multi-line cut. The same for keycap emoji (`1️⃣`), emoji written together (`✔️⚠️❤️`), an emoji right before punctuation, a 70-line numbered list in keycaps (from its 64th line, as numbers past 9 are two keycaps) and a 3 KB final report with 70 `✔️` / `⚠️` before a colon. The shortest such text the candidate withheld whole was 131 characters (`✔️` 65 times, then `✔`).
1482
+ - **What the candidate's whole-text mark also hid (open to veto @test).** A key the vocabulary cannot read whole — split by white space, a line break or a color escape — inside such a log: the candidate withheld the whole log, so neither half showed; now each half shows as on 7.68.3 and as in the same lines cut short (the read-only leg's grid: 60 of 600 cells, 12–14 characters each, every one equal to v7.68.3 and to the short text; 0 cells above v7.68.3). A userinfo with nothing in front glued behind an emoji and its selector (`cfg/x⚠️deploy:<password>@db.internal:5432`, `see ✔️//deploy:<password>@db.internal/app`): withheld by the candidate's re-read, now read as the same text without the selector and as on 7.68.3 (the password shows); behind a zero-width space it is withheld on all three.
1483
+ - **Still withheld.** A credential a selector splits — inside a key's body, between a name and its value or separator, two in a row, glued to a word in front, right after an emoji — on every exit, alone and inside the 70-line colored log, with U+FE0F / U+034F / U+3164 / U+E0100 (1 408 cells, none shows 4 characters of the value; 7.68.3 showed 20 in 560 of its 880).
1484
+ - **Narrowing against 7.68.3 (open to veto @server @cli; KNOWN-LIMITS KL-4334-b).** A run of default-ignorable characters only between two characters of `HEAD_WORD_CHAR` (ASCII letters, digits, `_ / \ . @ + -`) is a place, and more than 64 places withhold the text whole, where 7.68.3 counted only runs holding a `\p{Cf}` character: 65 or 70 `a<U+FE0F>b` (space-joined), `ok<U+FE0F>done<n>` in a sentence and `<digit><U+FE0F><digit>` read as written on v7.68.3 and are one oversized mark here, on the egress pass, the one-line form and the multi-line cut; 64 read as written on both (measured, both trees). Ordinary emoji text does not reach it (an emoji's selector stands after the emoji, not between two such characters; measured above and in O1); a text that does needs 65 such selectors in one piece of foreign words (inferred, not measured on a corpus).
1485
+ - **Not changed.** A run holding a zero-width joiner or another `\p{Cf}` character counts as on 7.68.3: 70 `👨‍💻dev<n>` are still withheld whole (KNOWN-LIMITS KL-4334-b). #4334's acceptance corpora read byte for byte as before this change: the 2 111-row repeat corpus (18 cells above v7.68.3, all on the disclosure escape, KL-4334-c ② / KL-4334-d) and the ten-exit corpus. Time on the egress pass, median of three on a shared host: a short error 0 ms, a 100 KiB stack 4 ms, a 20 KB conversation 1 ms, a 200 KB log holding 300 selectors 22 ms (v7.68.3 0 / 6 / 1 / 18; the candidate 0 / 7 / 2 / 22).
1486
+ - **Pins.** `test/backlog4648-variation-selector-overmask.test.ts` — O1 (five shapes and the 146 KB log × every exit), M1 (the shortest texts), C1 (split credentials), C2 (a long text reads a credential as a short one), C3 (a `\p{Cf}` run still gives every start; a selector alone reads as nothing), T1 (reading, 30 s trip wire); `test/backlog4648-head-word-char.test.ts` — S1 (every form's start, over every fixture start and every Basic Multilingual Plane character: what refuses it where a selector does not is in the class, and so is its first character), S2 (the class holds nothing else). Re-pinned: `backlog4334-place-budget` G4 / G5, `backlog4334-foreign-words-redacted-at-mint` F3.
1487
+ - **Wire.** None.
1488
+
1489
+ ### zh-Hans renderings: the native reader's review of the 16 the release candidate named — 13 reworded, 3 as they were (#4543; wording change: the zh-Hans text of 13 renderings, read by a `promptLocale: "zh-Hans"` run's model in the identity, finishing-work and memory sections and the `workflow_continuation` frame, and by a person on the zh-Hans headline of a sandbox network question; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none — every canonical text is byte-unchanged) (@test)
1490
+
1491
+ - **Now.** Reworded (ids under `core/`): `model.fable-identity#5.2` / `#5.1` / `#5` (the tier noun reads as a tier); `simple.finishing-work#default` (the heading says finishing the work, not wrap-up chores; "the access you have" reads as access rights, as the same paragraph says later); `simple.memory-guidance#default` (three phrases read as Chinese: an approach the user "steered you away from", facts the user "would otherwise have to restate", "a caution"); `engine.ask-headline.sandbox_network#default` (the reviewed "a command" restored; no quantifier binds to "sandbox"); the seven `event.workflow-continuation.*` (the catalog's punctuation instead of full-width marks, a run id in plain double quotes; "whether it continued" and "the run's original script" read as Chinese).
1492
+ - **Reviewed as they are.** `model.llm-rnd-capabilities#default`, `mode.orchestration#deferred`, `engine.ask-outside-sandbox#default`.
1493
+ - **Not changed.** Every canonical text, source binding, section and band (a whole-catalog fingerprint diffed before and after: only these 13 renderings' text digests and the catalog digest moved); every placeholder, code span, tool name and line count of each rendering. None of the 13 old renderings shipped in a release.
1494
+ - **Pins.** `test/prompt-catalog-m0.test.ts` — the catalog digest refrozen. The review is board post [14514], recorded in `docs/locale-reviews/zh-Hans.json` (16 entries); `gate:locale-review:rc` 158 / 158.
1495
+
1496
+ ### The `"all"` environment-inheritance policy no longer hands a child the credential names of the engine's own `SEMA_` namespace — `SEMA_WEBSEARCH_KEY_<provider>` and `SEMA_MODEL_KEY_<entry>` stay in the engine process, and only a host's explicit grant, or an allow list naming one, gives one to a child — with one registered exception outside the policy, KL-1181: on Linux the libc probe of `sharp`'s `detect-libc`, when the interpreter, `ldd` and the process report cannot answer, runs with the engine's whole environment (#4705; behavior change: `"all"` now withholds the namespace rule's names, one `namespace-rule` finding each, so `config.secret_env_scrubbed` and `inherit_env.names_withheld` are now said under `"all"` too, and the person's sentence stops offering `"all"` as a way out for these names; hard-breaking: one — the `"all"` reading, below, open to veto @server @cli @client-core @test; narrowing: the `"all"` arm of `inheritedHostEnv` / `hostChildEnv`, so `NodeExecutionEnv({ inheritEnv: "all" })` and `OracleGateSpec.inheritEnv: "all"`; widening: none; closed sets: none; exports: none; wire: none) (@server @cli @client-core @test)
1497
+
1498
+ - **Rule.** One rule says which names are the engine's own credential slots: a `SEMA_` name with a credential word in any `_` segment (`SEMA_MODEL_KEY_<entry>`, `SEMA_WEBSEARCH_KEY_<provider>`; `src/core/secret-env.ts`, finding kind `namespace-rule`). The slots are read only inside the engine / host process, so neither `"scrub"` nor `"all"` hands one to a child (an allow list naming one does: that is the host's own statement). The rule judges by segment, so a path or count setting with a credential word in its name is caught too (KL-1099a). The default `"scrub"` policy already withheld them; `"all"` — this process's environment as written — handed them on. The rule now has a second reader: `"all"` is the process environment less the names that rule names, one finding each, through the one subtraction loop the scrub also reads. No new rule, no new finding kind.
1499
+ - **Before (measured: `hostChildEnv`, a real `NodeExecutionEnv` shell child and a real oracle-gate child, placeholder values planted in `process.env`).** Under `"all"`, `SEMA_WEBSEARCH_KEY_BRAVE`, `SEMA_WEBSEARCH_KEY_TAVILY` and `SEMA_MODEL_KEY_DEEPSEEK` reached the child's environment — a terminal session whose shell runs under `"all"` let the model's `env` read the web-search key a user had put in settings; no finding, no notice.
1500
+ - **Now.** Under `"all"` those names are not in the child's environment — a tool shell, a background shell, an oracle gate with `inheritEnv: "all"`, and a host's hook executor that composes with `hostChildEnv("all", …)` — and each is one `SecretEnvFinding` of kind `namespace-rule` (confidence `medium`). `config.secret_env_scrubbed` (once per process) lists them in `detail.names`, never a value; `inherit_env.names_withheld` (audience `user`, once per session per name set — measured one per run of two shell calls) is said when one is present, and its sentence for these names says that a list naming them, or the host handing them to the shell explicitly, hands them on and that inheriting everything does not — and calls them names "named like the engine's own credential slots", not credential slots (it offered both ways out for every scrubbed name before; the sentence for any other name is the same words as before). `detail.remedies` is unchanged (`inherit_env`). Under `"all"` with none of these names in the environment nothing is said, as before.
1501
+ - **Hard-breaking.** (1) *What changed:* under `inheritEnv: "all"` a name of the engine's own `SEMA_` namespace that carries a credential word is no longer inherited by a child; nothing else about `"all"` moved. *Who is hurt:* a host that relied on `"all"` to carry such a name into the shell it runs — above all one that, under `"all"`, starts the product's own command line in that shell and expects it to read a credential slot (`SEMA_MODEL_KEY_<entry>`, `SEMA_WEBSEARCH_KEY_<provider>`) from the inherited environment (a model key slot whose value the engine already holds was withheld under `"all"` before, as `own-credential`; what is new is every slot the engine does not hold). The rule judges by segment (KL-1099a, as under `"scrub"` since 7.31.1), so fifteen settings that are not credentials go with the slots — counts and switches: `SEMA_TOKENS_TOTAL`, `SEMA_TOKENS_MAX`, `SEMA_TOKEN_BUDGET`, `SEMA_AIDER_MAP_TOKENS`, `SEMA_CODE_IDLE_TOKEN_THRESHOLD`, `SEMA_CODE_API_KEY_HELPER_TTL_MS`, `SEMA_CODE_ENABLE_TOKEN_USAGE_ATTACHMENT`; paths and file descriptors: `SEMA_REGISTRY_TOKEN_FILE`, `SEMA_SESSION_INGRESS_TOKEN_FILE`, `SEMA_KEY_FILE`, `SEMA_KEYS_PATH`, `SEMA_SECRET_DIR`, `SEMA_LLM_KEY_DB`, `SEMA_CODE_API_KEY_FILE_DESCRIPTOR`, `SEMA_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR` (the 7.31.1 entry says who reads which) — while `SEMA_CODE_CLIENT_KEY_PASSPHRASE` is a real credential and rightly withheld, and a variable a user put under the product's namespace with a credential-worded name is withheld the same way. A nested command that reads one of these finds it unset; there is no failure line on the engine's side beyond the two notices above. *How to migrate:* give the variable to the child explicitly — the environment's `shellEnv`, a per-exec `env`, a language server's `env`, an MCP entry's `env` pass as written and win over the withholding — or name it in an `inheritEnv` allow list (a list hands a named variable on as it always did). For the terminal (@cli): you need not copy a namespace judge into the layer that builds the shell's environment — the engine withholds the slots under `"scrub"` and `"all"`, and a key a command must see goes through `shellEnv` / the exec `env`; wire a notice seat (`onNotice`, or the process's default engine notice seat): without one the once-per-process `config.secret_env_scrubbed` line, new under `"all"`, is printed as a process line on standard error. For the server (@server): a key only the host reads (a web-search key, a model key) need not be put into the engine process's environment, and should not be; hand it to the code that reads it, and put in a child's environment only what that child must see; under `"all"` `secret_env_scrubbed_total{kind}` now carries `namespace-rule`, and a slot whose value the engine already holds changes finding kind from `own-credential` to `namespace-rule` (`detail.ownCredentials` still names it), so a metric counted by kind gains a label value. For the desktop (@client-core): the same, in your own layer — a key only the host reads stays out of the engine process, and nothing there re-implements the namespace rule.
1502
+ - **Not changed.** An allow list (`inheritEnv: [...]`) naming a namespace name still hands it on as written, with no finding; the `"scrub"` policy and every rule it reads; `"all"` stays the host's opt-out from the name and value rules (a credential-shaped name outside the `SEMA_` namespace, e.g. `GITHUB_TOKEN`, is still inherited under `"all"`); a `SEMA_` name with no credential word (`SEMA_MODEL_ID`) is still inherited; the declared own credentials (`declareWithheldEnv`, withheld under every policy); a host's explicit grants (`shellEnv`, a per-exec `env`, a language server's `env`, an MCP entry's `env`) are still not read against any of this; the MCP stdio child, the language server and the helpers looked up on PATH (they never read `"all"`).
1503
+ - **Known limit.** KL-4705-a: this closes the INHERITANCE of the slots, not the engine process's own environment, which stays readable to same-user processes (`ps -E`), as KL-1753-a says; a key only the host reads is safest when it never enters the engine's environment. KL-4705-b: the rule reads names that start with `SEMA_` (any case) — a slot written with an `INPUT_` prefix or with hyphens is not its, so `"all"` still hands it on (`"scrub"` withholds it by the name rules).
1504
+ - **Rules.** Readers of the namespace rule 1 → 2 (one predicate, `isNamespaceCredentialName`, and one subtraction loop, shared by the scrub and the `"all"` arm); credential rules added: 0; finding kinds added: 0; sentences of the person's notice 1 → 2 (the scrub's other names keep theirs, the namespace slots get their own).
1505
+ - **Pins.** `test/backlog4705-inherit-all-namespace.test.ts` — N1–N2 the composition under `"all"` (names out, one `namespace-rule` finding each, no value) · N3 a namespace name without a credential word and a credential-shaped name outside the namespace stay in · N4 a grant wins · N5 an allow list hands a namespace name on · N6 `"scrub"` control · N7 a real shell (names only; `shellEnv` and a per-exec `env` grant are in) · N8 a real oracle gate · N9 one `config.secret_env_scrubbed` across several starts · N10 the person's notice (the sentence, and one per run of two shell calls) · N11 a declared own credential that is also a namespace credential stays one finding. Re-aimed: `test/exec-shell.test.ts` D1 (the `"all"` opt-out leg now plants its credential outside the namespace; a new leg pins the namespace name withheld).
1506
+ - **Consumers.** @cli @server @client-core: above. @test: a black-box cell that planted a `SEMA_…_KEY…` name under `"all"` and read it in the child now reads it unset.
1507
+
1508
+ ### Under the two relaxed modes three questions stop reaching a person — a write that reaches a protected path through a link and a read of another person's shared artifact go to auto mode's classifier, and a call made while the person's own rules cannot be read is judged by the classifier (auto) or released (bypassPermissions) without telling the person about the store (the operator is told, once per session); the class that held three facts is split so the organization's unread snapshot and a call unreadable against rules that were read keep asking, each with its own card words; a classifier's allow names the question it answered on the call's record (#4698, #4711; the owner's rulings C-R2273 B2 / B6 and C-R2268; **a safety loosening, the owner's ruling, open to veto**; behavior change; narrowing: none; widening: three, below; hard-breaking: three, three sentences each, below, open to veto @server @cli @client-core @sdk; closed sets: `AskClass` +2 `org_unreadable` `call_unreadable`, `EngineNoticeCode` +1 `permission.rule_store_unreadable_relaxed`; exports: +1 type `ClassifierAsked`; wire: `GateDisposition` allowed arm +`asked` (additive), the class word of two existing asks, one operator notice; divergence: two, below, open to veto) (@server @cli @client-core @test)
1509
+
1510
+ - **Rule.** All three are rows of the one question × mode table (`MODE_ARBITRATION`, `src/core/ask-origin.ts`); nothing outside it reads a mode for them. `write_protection_on_disk` and `artifact_shared_read`: `classifierEligible` false → true. `rule_unreadable` (now only "the person's own rules — a partition of their store, or the rows the read station stands on — cannot be read"): `bypassImmune` true → false, `classifierEligible` false → true; `sandboxAdmission` / `ruleMayClear` stay false, so the asking modes still ask. The four hard refusals are untouched (removal of a protected location, an unverifiable removal, shell text the engine cannot read, cross-boundary), as are an organization's rules, a hook's ask, an explicit ask rule and a deployment's forced ask.
1511
+ - **Today → after (widening, the owner's ruling).** (1) auto, a write whose spelling is innocent but whose link lands on a protected path: asked a person → the classifier judges it (allow runs it; a block refuses it with the reason the model reads; a classifier that cannot rule hands it to the approver as every classified ask is handed on). (2) auto, reading another person's shared artifact — at the gate's row and at the Artifact tool's own consent alike: asked a person → the classifier judges it (its allow answers that call only — one classification per call however many consent checks the call makes, also while other calls on the same artifact overlap it (pin A9); the allow rides that call's result as `details.asked: { askClass, classes }` (pin A8); no person's nod is remembered; a question it hands on is answered by the mode the leg is in by then, and a read that joins a pending question hears its answer). (3) the person's rule store unreadable: auto asked a person → the classifier judges the call; bypassPermissions asked a person → released (`tool_end.gate.disposition.released.classes` holds `rule_unreadable`, `origin` `rule_store_unavailable`); default / acceptEdits / plan still ask, dontAsk still refuses. `permission.rule_store_unavailable` (the person's notice) is not told while the leg's mode answers that class unasked (auto, bypass) and the session's once-per-fault-set record is not spent; under the asking modes and dontAsk it is told as before. The relaxed modes tell the person nothing about this: a bypass release in that state is the released call's own record (`released`, #4695), not a notice (measured on the merged tree: `test/backlog4698-ask-rows.test.ts` R2, the person's notices are the environment's read-deny floor posture alone).
1512
+ - **Operator notice (#4711).** Where the person's notice is not told, the operator's is: `permission.rule_store_unreadable_relaxed` (audience `operator`, minter `engine`), once per session per (fault set, mode) when the run's start read finds the fault, `detail: { at, mode, sessionId, runId, faults: [{ sources, reason }] }` — which partitions, why, under which mode; no rule text, no path. Its sentence says that under that mode the unread rules alone put no call to a person, and that until a read succeeds only the deny and ask rows of the last successful read apply (none, if no read has). Known limit KL-4698-b: a fault first found at a call (the run's start read the store) is told once per run, not once per session — the person's `permission.rule_store_unavailable` alike, which already did so (measured, pin O4). Known limit KL-4698-c: a deployment that asks for auto with no classifier wired (the leg falls back to an asking mode) gets this notice from the run's start read although its person is then asked and told (measured, pin O5). Pins O1–O5.
1513
+ - **Known limit (KL-4698-a, accepted with the ruling).** Under auto and bypassPermissions the person's own deny and ask rows of the unread partition do not hold while it cannot be read. A store that stays broken (every read fails) has no "last successful read": on every run and every call none of those rows applies, and nobody in the session is told (measured by the collection leg: two runs under bypass both read a denied file, zero `permission.rule_store_unavailable`); the operator gets one notice per session (above). A store that fails once recovers on the next call, and the rows the run last read still refuse on the call whose read failed.
1514
+ - **Split (C-R227: one class held three facts that now take three answers).** The organization's snapshot unread (`org === "unavailable"`) now derives the new `org_unreadable`: its row is `org_rule`'s (a person under every asking mode, never the classifier's, bypass does not release it, dontAsk refuses it), and its own card words — headline "Your organization's policy cannot be read right now, so you are asked to approve this step instead." and reason "this deployment's organization policy cannot currently be read …" — so the card no longer reads `org_rule`'s "Your organization's policy asks for your approval here." for it; `org_rule`'s row and words are untouched. A call unreadable against rules that were read (the stored row's lexer word `persisted_call`, a content-form deny / ask row) derives the new `call_unreadable` with the old row: a person under every asking mode, dontAsk refuses it. The card's three-way `rule_unreadable` reason retires; each class has one sentence, and no class's sentence is chosen by the ask's origin any more (a mandate word, a deployment-authored ask and a probe's own account still speak first, as before).
1515
+ - **Additive record.** `GateDisposition` allowed arm `asked?: { askClass, classes }` (type `ClassifierAsked`): present exactly when a classifier's allow is the call's answer, beside `classifier`, never beside a settlement, a release or a clearance (screen I15). Absent on a record an older engine wrote — read absence as "not known". The Artifact tool's own consent has no gate record, so its classifier allow rides that call's result: `details.asked`, the same shape.
1516
+ - **Hard-breaking 1 (closed set).** *What changed:* `AskClass` gains `org_unreadable` and `call_unreadable` (ASK_CLASSES order: right after `org_rule`, `org_unreadable` then `rule_unreadable` then `call_unreadable`). *Who is hurt:* a host that switches over `AskClass` with no default arm, or pins the closed set (@server @client-core @cli; inferred, neighbours' code not read). *What to do:* add two arms — both are bypass-immune, never the classifier's, a person under every asking mode and refused by dontAsk: the same answers `rule_unreadable` had before.
1517
+ - **Hard-breaking 2 (a class word changes on two existing asks).** *What changed:* an ask raised because the organization's snapshot cannot be read now carries `askClass: "org_unreadable"` (was `rule_unreadable`; its `origin` stays `org_unavailable`), and an ask raised because a call could not be read against a stored or content-form rule carries `call_unreadable` (was `rule_unreadable`; `origin` stays `rule_store_unavailable`). *Who is hurt:* an approver or a card renderer that keys on `askClass === "rule_unreadable"` for those two (inferred). *What to do:* read `org_unreadable` for the first, `call_unreadable` for the second; `rule_unreadable` now means the person's rules only.
1518
+ - **Hard-breaking 3 (type level).** *What changed:* `allowRuleShadowSentence` and `cardDisclosureOf` (root exports) no longer take `origin` (nor `ruleUnreadable`) in their argument's type — neither is read. *Who is hurt:* a TypeScript caller passing either in an object literal gets an excess-property error; a caller passing a wider object is unaffected. *What to do:* drop the two members from the literal (this release reads neither; no class's sentence is chosen by the origin any more, the split above).
1519
+ - **Divergence (open to veto; the owner's ruling C-R2273 B2).** The reference keeps its classifier off a settings file reached through a link (cli321.js L280896 `classifierApprovable: O===void 0`, breaker `claudeSettingsFile` at L276093 `classifierRouted:!1`) and off reading someone else's artifact on most branches (L287021 `classifierApprovable:!1` twice; L310068 splits on a user-only flag); this engine hands both to the classifier under auto. For other protected paths reached through a link the reference's classifier may answer (`l9` `classifierApprovable:!0`) — there this engine now matches it.
1520
+ - **Divergence (open to veto; C-R2273 B6).** The reference skips a settings file it cannot read and tells the person once at startup (cli321.js L315113, "Files with errors are skipped entirely"); this engine skips the unread partition under the relaxed modes and does not tell the person (the record and the trace keep the fact, and the operator is told once per session).
1521
+ - **Rules.** Classes 29 → 31, but derivation arms for "a rule could not be read" one class / three facts → three classes / three facts, each a row and its own words; the card's reason function retires its three-way fallback and every origin branch; the Artifact consent keeps one per-call record (the classifier's allow) where it kept a url-keyed cache beside it; the notice's choice between the person's and the operator's reads the table (`modeAnswersUnasked`), no list of modes. The Artifact consent's classifier step follows the gate's classifier station's rule (`src/core/runner/shared-read-classifier.ts`) rather than a rule of its own.
1522
+ - **Pins.** `test/backlog4698-ask-rows.test.ts` — T1 the table whole (every class × mode × face; only the cells above moved) · T2 the three facts · T3 the card's reasons and headlines by class · T4 `modeAnswersUnasked` · T5 screen I15 · W1–W3 a write through a link under auto (classifier allow / block / cannot rule) · R1–R3 an unread store under auto / bypass / default (people asked, notices, the record; R2 counts every person-audience notice) · R4 nobody to ask: the refusal's ways out · O1–O4 the operator's notice (auto and bypass over two runs of one session: one; a mode change: one per mode; default: none; a fault first found at a call: once per run, KL-4698-b) · A1–A9 the Artifact consent (classifier allow / block; one classification per call; a mode change while classifying; a joined read; the seat's route; default asks; the allow on the call's result; overlapping calls) · C1 default still asks the linked write · C2 `dangerous_delete` still asks under bypass and auto. Per-fixture mutations in the car's log.
1523
+ - **Downstream.** @cli @client-core: with nobody to ask, the refusal of a call over the person's unread rules no longer says "no permission mode releases this ask"; its sentence is the approver clause and its `remedies` gain `{ kind: "permission_mode", value: "bypassPermissions", disclosedOn: "gate.disposition.released" }` (the class is releasable now; measured, pin R4) — a host that renders the ways out offers the mode change there; the organization's and the call's keep the approver alone. @cli: render only; the two codes' class words above; no second judgment. @server: an approver / review route keyed on `rule_unreadable` sees fewer asks under the relaxed modes and two re-worded class words; `asked` is additive. @client-core: the card for these three under auto / bypass no longer appears; an exhaustive `AskClass` switch gains `org_unreadable` and `call_unreadable`; a notice-catalog consumer gains one operator code. @test: criteria that pinned "auto asks a person for a linked protected write / a shared read" and "bypass asks for an unread rule store" move to the rows above.
1524
+ - **Not changed.** Every mode's answer for every other class; the hard refusals; `REMOVAL_BREAKER_ROW`; bypass's release of `write_protection_on_disk` and `artifact_shared_read` (already released); the sandbox-network question's own classifier step; the trace line of every unread read.
1525
+
1526
+ ### Every notice says how much attention it asks — `EngineNotice.attention` (`act` / `inform` / `audit`), the code's row of the new `NOTICE_ATTENTION` table, written on every frame by the one delivery throat; a session's screen shows a `user` notice whose attention is `act`, so eleven user codes leave it; and three codes every message of a session repeated are told once per session per fact (#4696, 7.69.0 part; C-R2268 / C-R2275; behavior change: `config.read_deny_floor_unkept`, `mcp.server_unavailable` and `model.fallback` are told once per session, where every message told them again; a Runner with no notice seat now hands `context.tool_turn_repaired`, `task.tool_turn_incomplete` and `context.tool_schema_removed` to the default seat, where they were lost; narrowing: none — no verdict, no audience moves; wording: one sentence — the `message` of `mcp.server_unavailable` for a failure the session's pool does not keep, below; widening: none; hard-breaking: none; closed sets: none — `NoticeAttention` is a new three-word type, `ENGINE_NOTICE_CODES` does not move; exports: +3 `NOTICE_ATTENTION`, `noticeAttentionOf`, type `NoticeAttention`, none removed; wire: `EngineNotice.attention?`, `EngineNotice.factKey?`, `WiringManifest.readDenyFloor?`, `mcp.server_unavailable`'s `detail.memory?`, all additive) (@cli @client-core @server @test)
1527
+
1528
+ - **Rule.** Two properties per notice code, both the code's: the audience answers who has the right to know; the attention answers how much attention the fact asks of that party — `act` (something to do, or a belief that would otherwise be wrong), `inform` (a fact for when they look), `audit` (a record: the echo of their own action, or a step another record carries). One table per property, kept in lockstep with the catalog by the compiler (`NOTICE_ATTENTION_TABLE`, `src/core/governance-codes.ts`); the throat (`deliverEngineNotice`) writes the code's attention on every frame, as it lifts `sessionId` — no mint site chooses it, a code outside the catalog leaves without it. **The reading: a session's screen shows a notice whose audience is `user` and whose attention is `act`**; `inform` belongs on a view the person opens to look; `audit` is for machine readers; an `operator` code's attention speaks to the operator's surfaces and never puts it on a session's screen. Rows in 7.69.0: user × act 60, user × inform 8 (with #4716's `task.tool_turn_incomplete`, above), user × audit 4, operator × act 47 (with #4711's `permission.rule_store_unreadable_relaxed`), operator × inform 26, operator × audit 15.
1529
+ - **Off the session's screen (eleven user codes; their audience is unchanged, so the server's user stream still carries them).** `inform`: `classifier.seat_rate_limited`, `config.read_deny_floor_unkept`, `config.store_ephemeral`, `inherit_env.names_withheld`, `memory.session_polluted`, `model.context_window_assumed`, `mods.display_withheld`; `audit`: `approval.read_root_granted`, `memory.delegation_static_mark_waived`, `memory.hold_released`, `permission.allow_rule_not_used_in_auto`. #4716 (above) takes a twelfth off, `task.tool_turn_incomplete` (`inform`). Every other user code stays `act` in 7.69.0: a code with one arm that asks something of the person stays on the screen as a whole.
1530
+ - **A frame without `attention`.** It was delivered by an engine older than 7.69.0, or carries a code outside the catalog, or was minted by the host itself and the host did not write the member (the five server-minted codes go to the user stream without passing the throat): it has not said — not "ignorable". A reader falls back to the `NOTICE_ATTENTION` its own build carries (`noticeAttentionOf(code)`; `undefined` for a code outside the catalog). A value the reader does not know reads as `act` (a later version may add a word). A consumer that does not read the member shows what it showed before: no louder than today, only the eleven codes stay where they were.
1531
+ - **Once per session per fact (the throat's fact key).** `NOTICE_FACT_KEY` (`src/core/governance-codes.ts`, not a root export) names the codes the throat tells once per session and the `detail` members that make one fact: `config.read_deny_floor_unkept` — the code itself (the row count is not in it); `mcp.server_unavailable` — `server`, `memory`; `model.fallback` — `from`, `to`, `reason`, `outcome`. The frame carries the fact as `factKey` (an opaque string, equal for one fact; compare for equality only). The record is the leg's own session's announced record (`advisories`), the one its once-per-session tellings already use; a delegated leg's is its own session's. Measured on a real Runner, one notice seat, one session, three messages: the floor 1 / 1 / 1 → 1 / 0 / 0 (default local environment); an MCP server that exits as it starts 1 / 1 / 1 → 1 / 0 / 0; a requested model that always fails over 1 / 1 / 1 → 1 / 0 / 0; a new session is told again (1). A server that connects on a leg — or at a host's `reconnectMcpServer` mid-run — releases its two keys, so its next failure is told again; a failure the session's pool keeps that a leg's own dial made afresh (after `forgetMcpFailure` / a reconnect, or under a changed declaration) is told again too; a leg the pool's memory answered tells nothing, as before. `mcp.server_unavailable` gains `detail.memory: "kept"` when the pool keeps the failure (absent when it does not). The main lane's operational alert for a walk that sent no hop keeps its unit (once per run per walk).
1532
+ - **The run's own record of each fact stays on every run.** `TaskResult.degraded` and the answer's marker for a fallback walk; the wiring manifest's `mcp` rows for a server; for the floor, a new effective-half member `WiringManifest.readDenyFloor: { kept: false }`, present iff the table the leg compiled at prepare holds rows its environment's floor does not keep, outside `configFingerprint` (it follows the environment). Absent = the floor is kept, or the table held no row, or an engine older than 7.69.0 minted the manifest — the manifest alone cannot tell the three apart.
1533
+ - **R-4.** The context lane built two of its seats over a closure that called the deployment's seat when there was one and dropped the notice when there was none (`(notice) => deps.onNotice?.(notice)`, always a function to the throat): with no `onNotice` wired, `context.tool_turn_repaired`, `task.tool_turn_incomplete` and `context.tool_schema_removed` were lost. The seats now take the deployment's seat itself, so an absent one reaches the default seat (`setDefaultEngineNoticeSeat`) or the process line, as every other seat's does.
1534
+ - **Wording (@cli @client-core @server @test; open to veto).** The sentence `mcp.server_unavailable` says for a failure the pool does not keep said "could not be reached for this run … its tools are not available to the assistant in this run", while the notice is now said once per session: the second message heard nothing and read as if the server had come back. It now reads `MCP server "<name>" could not be reached, so it was skipped — its tools are not available to the assistant until it connects, and the run goes on with the tools of the servers that did connect. This is said once per session: if the server connects and later fails again, it is said again.` (was `MCP server "<name>" could not be reached for this run, so it was skipped — its tools are not available to the assistant in this run, which goes on with the tools of the servers that did connect.`). A reader that matched "for this run" reads the new words; the `kept` sentence, `code` and `detail` did not move.
1535
+ - **Not changed.** Every verdict (allow / ask / deny), every notice's `message` but the one sentence above, every `detail` member a notice had (`memory` on `mcp.server_unavailable` is added), every audience row, the catalog, the minter table; the model's announcements (`mcp_unavailable`, the listings, `mcp_dropped_tools`); the operator's lines. The other on-screen codes' units (`classifier.unavailable` and `delegation.ask_unresolvable` first) and a delegated leg telling against its tree root's record are 7.70.0.
1536
+ - **Rules.** Readings of "does a person see this" 3 (one in each consumer) → 1 (`audience user ∧ attention act`, from one table). The three codes' own once-latches retire (the floor's per-run latch, the fallback seat's per-leg set); a code is told once per session iff the registry names its fact, read at the one throat. Added: one property, one table, one registry of three rows, one told record type (`NoticeTold`) whose leg instance is the announced record's own; one mint gained release points (`mcp.server_unavailable`: a server that connects, at a prepare or a host re-dial, and a failure the pool newly keeps), the other two have none (the fallback's: KL-4696-b).
1537
+ - **Pins.** `test/backlog4696-notice-attention.test.ts` — ① the table code by code (the eleven, every other user code `act`, the operator lists, the six cells); ② the throat (the attention on every frame and on the frame admission sees, a mint's word overwritten, a host's code bare; the fact key's members; told once, release, a refused admission, no record; the key never names the seat); ③ the told record's two lives over the announced record; ④ – ⑧ real Runner: the floor (three messages, a new session, the manifest member on every run, out of the fingerprint), five codes off the screen each from its real path with its row's word, MCP (failing, connected, failing again; a host re-dial mid-run that connects), fallback, R-4 (the default seat hears the two context-lane codes; on the base none); ⑨ the contrast — one sequence (local environment, an MCP server that exits as it starts, a model that always fails over; three messages): the base delivered ten frames, this tree four, equal frame by frame once `attention` / `factKey` are off and the base's repeats are left out. `test/governance-codes.test.ts` — the attention registry has one row per code. Mutations: `.gate-logs/mutations-4696.md` of the car.
1538
+ - **Consumers.** @cli: the session screen reads `noticeAttentionOf` (or the frame's `attention` when present) and shows `user` × `act` only — a value it does not know reads as `act`; `inform` codes belong in `/status`-type views. @client-core: read `EngineNotice.attention` off the frame and fall back to the exported `NOTICE_ATTENTION` for a frame without it, and read a value you do not know as `act`; fold "the same fact" by `factKey` where you fold. @server: carry `attention` and `factKey` on the `engine_notice` frame as the engine wrote them (the audience whitelist is unchanged); a judge that counted these three codes per run counts them per session now; a code you mint to the user stream yourself does not pass the engine's throat, so write the member on it with `noticeAttentionOf` — a frame of yours without it is read as one that has not said.
1539
+ - **Wire.** `EngineNotice.attention?` / `EngineNotice.factKey?` (optional, additive); `WiringManifest.readDenyFloor?`; `mcp.server_unavailable` `detail.memory?`.
1540
+ - **Known.** KL-4696-a: the told record is the leg's own session's — a delegated child, a workflow agent and a background agent each tell these three codes once in their own session, so a session that delegates a fresh child every message still hears the child's `model.fallback` and read-floor lines once per message, as in 7.68.x (measured by the collecting leg: one delegation + fallback + floor, three messages, 7 / 5 / 5 frames → 7 / 2 / 2; the two left are the child's); only the root leg's own lines are once per session (7.70.0 reads the tree root's record). KL-4696-b: a `model.fallback` walk is one fact for the session: the same requested model failing over the same way after it served again in between is not told again (its `TaskResult.degraded` still records every run's). KL-4696-c: a server whose declaration changed mid-session and still cannot be reached is the same fact (`[server, memory]`) — not told again; the manifest's `failed` row and the operator line still say it. KL-4696-d: a release made by a leg whose prepare then failed is not persisted. KL-4696-e: `model.fallback` and the read floor have no "the fact ended" release point — only `mcp.server_unavailable` has one (the server connects) — so a second fallback of the same shape, or a floor not kept again after it was kept in between, is not told in the same session; one release rule for all three is a later slice.
1541
+
1542
+ ### The removal guard reads a shell text whose program word takes its value from the command's own text (a positional parameter, a name the text set) as shell text the engine cannot read — no mode lets it through, as with a text a program produces (#4702; behavior change: one more family of commands is put to a person, or refused under `dontAsk`, including some that remove nothing; widening: none; narrowing: one, below, open to veto @server @cli @client-core @test; hard-breaking: none; closed sets: none; exports: none; wire: none)
1543
+
1544
+ - **Rule.** One reading in `removalFindingsOf` (`src/tools/fs/removal-targets.ts`, `programWordFromOwnText`): a segment whose program name the text does not settle (`programNameUnsettled`) and whose program word — together with the braces of its expansion and the text of a substitution in it — holds a positional parameter (a number or `@` / `*`, braced or not, with or without an operator), or whose name is one the text set and the value table does not settle (a member of the segment's `rebound` set), gives one finding, `unverifiable_shell_text` with the existing source `produced`, the segment's own text as the text. No new guard word, no new source, no per-form arm; a name only the environment provides, a default that is only another such name, and a substitution of literal text keep the reading they had — unless the text copies such a name into another name before using it as the program, or shows a positional parameter in the braces of its expansion (an error text): the guard reads what the text sets and shows, not where a value comes from.
1545
+ - **Not covered (each has its own reading, or none; KL-4702-a).** A loop's variable handed on as the program (a loop body's binding state reads `all`, so no name is singled out); literal substitution text that is itself a whole command; a value that reaches the program word through an environment variable, through a file, or through another program's output coming back.
1546
+ - **Before.** Such a segment was read as the removal it might be, and that reading judges operands; the words a program is handed through the outer argument list are not bound into the nested plan, so a segment with no operand of its own had no finding and the guard gave no verdict.
1547
+ - **Now.** No mode lets it through: the modes that ask put the `unverifiable_shell_text` card to the person and nothing runs until they answer, and `dontAsk` refuses it; the card is the existing `produced` sentence. When the same command also holds a heavier removal finding, the card shows that heavier class. Positional parameters in a data position (an argument of a printer or a lister, a loop's word list, a function that only echoes its argument) are no program word and read as before. One known over-report: an unnamed `coproc` is read twice (its first word as the command, and as the name of the coprocess), and the second reading puts a data word in the program position, so a `coproc` command that only uses a positional parameter as an argument is asked about too (a rare form).
1548
+ - **Narrowing (open to veto @server @cli @client-core @test).** A wrapper that hands its whole argument list on as the command is now asked about even when what it is given is harmless: the guard does not bind the outer words, so it cannot tell a harmless one from a harmful one. Two more forms are asked about for the same reason: an environment name copied into another name before it is used as the program, and a positional parameter in the error text of the program word's `${NAME:?…}` expansion. KL-4702-a.
1549
+ - **Not changed.** Every other guard word and source; the rows whose program word is a name only the environment provides; the closed sets, the wire and the exports.
1550
+ - **Pins.** `test/backlog4702-removal-guard-positional-program-word.test.ts` — the sample rows' verdict words, the new finding's members, and the whole gate under `bypassPermissions` and `auto`.
1551
+
1552
+ ### A stream that only fills data operands of a literal `xargs … sh/bash -c` script no longer makes the removal guard ask about unreadable shell text (#4699 B1; behavior change: one small class of commands stops drawing the `unverifiable_shell_text` question; widening: one, below, open to veto @server @cli @client-core @test; narrowing: none; hard-breaking: none; closed sets: none; exports: none; wire: none)
1553
+
1554
+ - **Rule.** `streamSuppliesOnlyData` (`src/tools/fs/shell-reentry-text.ts`) reads the stream-fed argv of a plain `xargs … sh/bash -c SCRIPT _` as a literal script when every expansion in the script is a whole double-quoted numeric positional parameter in an operand position after `--` of one of four program-model rows (`cat`, `wc`, `jq .`, `jq -c .`; the model reads the other registered spellings of the same programs — a GNU build's `gcat` / `gwc`, a versioned `jq` name — as the same row, so those are accepted too). The exact prefixes are one field on the program model's rows (`dataOnlyPrefixes`), and the shared role walk must read each such word as an operand with no code role. The consumer must be the last segment of a top-level simple command or pipeline, with no consumer redirect and no changed binding, and every other segment of the pipeline must be a program the read-only list names with no redirect of its own (a producer that writes the stream into a file, `tee`, keeps the question; so does one the list does not name, `printf` or `git ls-files`); any other shape keeps the question. Read checks, deny and ask rules and the mode table still judge the command: an unknown path can still ask, a denied one still refuses, and `unverifiable_shell_text` keeps its bypass-immune row for every form that stays unreadable.
1555
+ - **Widening (open to veto @server @cli @client-core @test).** The listed forms no longer draw the `unverifiable_shell_text` question. The produced-text card now also suggests passing values as whole quoted operands after `--` in a literal script.
1556
+ - **Not changed.** File-backed shell text (`cat F | sh`, `bash < F`, `sh -c "$(cat F)"`) keeps asking: neither ctime nor a write-tool hash binds the bytes a later execution opens. Direct `bash F` is unchanged. A program word whose value comes out of the command's own text keeps the reading of the entry above. No public type, checkpoint field or export is added. [The exact contract and limits](docs/SHELL-TEXT-TRUST.md).
1557
+ - **Pins.** `test/backlog4699-b1-shell-trust.test.ts` (judging functions and a non-executing environment double; no sample command is run).
1558
+
1559
+ ### A turn whose only output was a tool call cut before its arguments closed no longer ends the run: the loop's malformed-tool-use retry asks the model again — the same streak counter and default cap of 2, on all three lanes and however the stream ended — and the run ends on it only at the cap, exactly as it used to on the first such turn (#4716; #4719 folded in; widening: three, below, open to veto @server @cli; narrowing: two, below, open to veto @server @cli; divergence: one, below, open to veto; hard-breaking: none; closed sets: none; exports: none; wire: `StreamOptions.reissueDroppedCalls` (+1 optional per-call member), `LoopMalformedToolUseRecovery.onReask` (+1 optional member), `task.tool_turn_incomplete` `detail` +6 optional members and its attention `act` → `inform`, the retry nudge +1 sentence) (@server @cli @client-core @test)
1560
+
1561
+ - **Rule.** A turn in which tool calls were dropped (arguments not valid JSON, or no tool name) and none survived ends one way whatever else it carries: while the caller holds a re-ask it is a `toolUse` stop that carries no call, which the loop's malformed-tool-use retry asks again on; otherwise it fails (`modelOutputInvalid`). The loop grants the re-ask per call while its retry has one left (`StreamOptions.reissueDroppedCalls`, the shape of the existing `staticReasoningCutDowngrade` grant, read off the one budget reading `malformedRetryLeft`); a direct brain call, a loop without that retry and the loop at its cap get the failure. One reading for the three lanes (`droppedCallsEnding`, `src/brain/stream-shared.ts`), where each lane had carried the failure arm on its own. The loop's grants are its alone: a copy a loop config carries is no longer passed to the brain.
1562
+ - **Before (measured, real Runner over a scripted upstream, three lanes × the tool-call / output-cap / no-stop endings).** A turn whose only output was a cut call failed at first strike: one request, `failed` / `provider.error` / `model_output_invalid`. An unattended run (a scheduled wake, a background child, a non-interactive run) ended there, with nobody to say "continue".
1563
+ - **Now.** That turn's next request carries the drop note (which tool, the argument bytes that arrived) and the retry nudge, which now also asks to split a long argument across several smaller calls; a re-issued whole call runs and the run goes on. Three such turns in a row: the third ends the run with exactly the terminal the first one used to get (code, sentence, `model_output_invalid` account). A turn that carried no call while a message waits to be sent — an engine note (a background task's line, a monitor's output), a steer — counts the same: that message is the model's next input, so no retry nudge is added beside it (the loop's step for that turn stays `steer_injected`), and at the cap the run ends there all the same (measured on the previous head of this ticket: an engine note after every turn and twenty cut-only turns took 21 requests and never ended on the cap; now the third request ends the run). A person's input is the exception, for this count and the same-missing-tool streak's alike (one rule): waiting there, it clears both before either budget is judged — the same rule as where it reaches the model — so a person's redirect at either cap is delivered and the run goes on (an engine note in its place ends the run; measured, real Runner, a person's steer during the third request: the same missing tool three times on all three lanes, and the Anthropic tool-use stop with no call). The count clears only when a tool call actually ran (whatever its result: a tool that ran and failed counts) or an input marked as a person's (`origin: "human_input"`, below) reached the model or waited at the retry's judgment; a turn whose calls were refused (the run's policy, a person on the approval card) or named a tool the roster does not mount neither clears it nor adds to it — so such turns alternating with cut-only turns no longer refill the re-asks (measured before this round, under a 40-turn cap: still re-asking at turn 40 on all three lanes; now the third cut-only turn ends the run). On the output-cap stop it is this retry, not the truncated-output continue, that asks.
1564
+ - **The ending at the cap, by the shape of the turn that reaches it and by lane (measured, `test/backlog4716-reask-lanes.test.ts` T, `test/backlog4716-truncated-only-call.test.ts` ④ / ⑨, `test/backlog3917-same-tool-same-error-loop.test.ts` A). `invalid` = `provider.error` with `terminal.detail.kind: "model_output_invalid"` and its `cause`; `exhausted` = `model.malformed_tool_use_exhausted`:**
1565
+
1566
+ | the turn at the cap | Anthropic | OpenAI-compatible | Responses |
1567
+ |---|---|---|---|
1568
+ | lost every call it made — arguments cut, with or without text | `invalid` `truncated` | `invalid` `truncated` | `invalid` `truncated` |
1569
+ | lost every call it made — no tool name | `invalid` `unnamed` | `invalid` `unnamed` | `invalid` `unnamed` (a `function_call` item with no `name`, the third request) |
1570
+ | the stop word says tool use and not one fragment of a call arrived, no text (Anthropic `tool_use` with no `tool_use` block; OpenAI `finish_reason: "tool_calls"` with no `tool_calls` delta or only an empty slot) | `exhausted` | `invalid` `unnamed` | — (no such stop word) |
1571
+ | the same, beside text | `exhausted` | not re-asked: the turn ends on its text and the run completes (one request, as before this ticket) | — |
1572
+ | every call named the same missing tool, the third such turn in a row | `exhausted` | `exhausted` | `exhausted` |
1573
+
1574
+ `exhausted` is the Anthropic lane's ending for a tool-use stop with no call; on the OpenAI-compatible lane the same stop word with nothing else to give is a call lost without its name (the lane notes one), and ends `invalid` `unnamed`.
1575
+
1576
+ - **Two counts, one budget each (`recovery.malformedToolUse.maxRetries`, default 2).** The turns that carried no call (the first four rows) are one count — the re-ask grant reads it alone; the same-missing-tool streak (the last row) keeps its own count and its names rule unchanged (a miss under other names starts it over; it ends only on the same names). A person's input clears both counts, by one rule (below). A turn of one kind no longer moves the other's count: a turn that carried no call (its calls dropped, or a tool-use stop with none) between two same-name misses neither joins nor ends that streak, so X, no call, X, X ends on the fourth request (was the third). A turn whose call the person's interrupt kept from starting clears nothing by itself; the person's next message does.
1577
+ - **Whose input clears the counts.** An input row that carries `origin: "human_input"` clears both counts — the turns that carried no call and the same-missing-tool streak — at either of the two points they are read: waiting at the retry's judgment, or reaching the model before a request's grant is read (one rule, `clearCountsOnPersonsInput`, over one predicate, `isPersonsInput`): a person's message, and an input relayed for one — an extension's `$.prompt.submit`, an observer's report, a peer's message, a parent model's message to its agent through the steer verb — all carry it. An entry that does not carry it clears neither count: an engine note, an interruption marker, and **(host note)** a message a host hands `AgentHarness.steer` without `input`, or puts in front of `runAgentLoop` itself (measured: such a row waiting at the third tool-use stop with no call ends the run exhausted and is not delivered; at the third same-name miss the same). A host that drives either directly and wants its person's message to start the counts over marks the row `origin: "human_input"`. "Is this a person's words" has a second reading today (the operator-authority table, `countsAsOperator`); this change reads the row's `origin` only, and the two readings are not unified here (another ticket).
1578
+ - **Widening (open to veto @server @cli).** A model that keeps sending cut calls now costs up to two more requests before the run fails. Compensation: the cap is the retry's existing 2, and the person's line says the re-ask. Second, smaller: a turn that carried no call between same-name misses no longer counts toward the miss streak, so that streak ends one request later (above). Third, smaller: a person's input reaching the model now starts the same-missing-tool streak over too (before this ticket that streak was only skipped while a message waited at its judgment, and nothing a person said cleared it — read in the code), so a model that keeps missing the same tool after a person speaks gets up to two more requests (measured on this head: two misses, an answer, a person's follow-up, the same miss — the run goes on and completes; with an engine note as that follow-up it ends exhausted on the miss).
1579
+ - **Narrowing (open to veto @server @cli).** A run whose turns that carried no call alternate with turns whose calls were refused or named missing tools used to have its count cleared by every such turn, so it ran on until a turn cap or the walltime (measured on this ticket's previous head: still re-asking at turn 40; for a tool-use stop that carries no call, alternating with a refused call, the same held before this ticket — read in the code, the path is untouched by the rest of it); it now ends at the third turn that carried no call, with the ending in the table above. A run where something runs between them, or a person speaks, is unchanged. Second: a run in which a message waited to be sent after every such turn (an engine note after each turn, a steer) skipped the count and the nudge alike, so it never ended on this cap — for the Anthropic lane's tool-use stop that carries no call and for the same-missing-tool streak also before this ticket (read in the code: the same condition guarded the whole lane); it now ends at the third such turn, the note still delivered as the next input of the turns before it (a person's input waiting there clears both counts instead, as above — the run goes on and completes, as before this ticket).
1580
+ - **The person's line.** `task.tool_turn_incomplete` (cause `truncated` / `unnamed`) reads `outcome: "reissued"` on the re-asked turn (was `terminal`) and `terminal` on the failing one; still once per run per cause, so in a streak the first turn says `reissued` and the run's terminal tells the end. `detail` gains the turn's facts: `finishReason` (the provider's ending word the drop note quotes), `inputTokens` (the request's whole input, cached parts counted once — `usage.totalTokens − usage.output`) and `outputTokens` as reported (both only when the turn's usage is known), `contextWindow` and `maxTokens` (the model card the request named). No member says why the call was cut. On a Runner run it also carries `reasksSoFar`: how many times the loop's malformed-tool-use retry had asked the model again (on a turn that carried no call — by its nudge or a waiting message) before the turn the line is about; another recovery lane's continue (a repetition cut, a cut answer) is not one — `outcome: "terminal"` with `reasksSoFar: 0` is a turn that failed at first strike (a brain that was not handed the grant: a host wrapper that does not pass it on), with more a run whose re-asks ran out. Its attention is now `inform` (#4696's table; was `act`): the line mostly says the engine is already asking the model again, and a run that ends on it says so on its own terminal — a session's screen no longer shows it.
1581
+ - **Cause clause.** The terminal sentence names the model's declared window only when the reported input plus the request's output cap is over it, and then as those numbers (`; request input N + output cap M tokens is over the model's declared context window of W tokens`). The reported case (input 373733 + cap 64000 under a 524288 window) states nothing new.
1582
+ - **Consumers.** @cli @server: on unattended lanes this shape no longer needs your own re-submit — the engine re-asks within its cap; a re-queue you keyed on `model_output_invalid` for it now fires only after the engine's own two re-asks. `outcome: "terminal"` is still said only where the run ends on that turn. The `detail` members are additive. @cli: the line now carries `attention: "inform"`, so a screen that follows the attention row stops showing it (a run that fails on it shows its own terminal). @client-core: a direct brain call gets no re-ask (the failure, the text in its content), and an OpenAI-compatible answer whose stop word alone claimed a call is a plain answer, as before. @test: a monitor-style note after every turn no longer keeps the run going past the third turn that carried no call; a person's steer during the third same-name miss (or the third tool-use stop with no call) is delivered and the run completes.
1583
+ - **Not changed.** A cut call beside a whole call (the whole call runs, the note asks for the lost one); the terminal at the cap for a turn whose only output was the cut call; the once-per-run-per-cause line; a host brain that does not read the grant (its turn fails as before); the exhausted word for the Anthropic lane's tool-use stop that carries no call at all; on the OpenAI-compatible lane, text with `finish_reason: "tool_calls"` and not one fragment of a call — the turn completes on its text after one request, its unnamed note in the content, as before this ticket (only a fragment that arrived — cut arguments, a missing name — is a lost call).
1584
+ - **Divergence (open to veto).** The reference clears its tool-use-stop count on any turn that carries a tool call (`cli321.js` L293775, its next turn's state); this engine clears it only when a call ran or an input marked `origin: "human_input"` reached the model, so refused calls and calls naming missing tools between turns that carried no call do not refill the re-asks. Its cap is the reference's (`$g = 2`, L293767). Two older divergences ride beside it, unchanged: a call cut at the output cap is dropped and asked again, where the reference keeps it and answers it with a parse-error result (L288458-288460, bound only by its turn cap); the same missing tool named three turns in a row ends the run, where the reference answers every miss (L288453, #3917).
1585
+ - **Rules.** The failure arm each lane carried (three copies) is one reading (`droppedCallsEnding`): a turn whose calls were all lost ends one way on every lane — re-asked while the grant holds, failed without it. What counts as a lost call is a fragment that arrived (cut arguments, a missing name); the OpenAI-compatible lane's stop word alone stands for one only on a turn with nothing else to give (beside text the turn ends on its text, the base reading — one arm added for it). The lane's pending-message exception is gone: every turn that carried no call counts, whatever waits (one condition fewer; the nudge is the only thing a waiting message replaces); the person's-input clear is one rule (`clearCountsOnPersonsInput`, over the one predicate `isPersonsInput`) for both counts at both points they are read (one more use of it, no new reading; no point clears one count and not the other). Added: the per-call grant (one budget reading, `malformedRetryLeft`, that the grant and the retry's admission both take) and the window arm of the cause clause; one more loop state (the same-missing-tool streak's own count, split off the count of turns that carried no call) and the two things that clear the count of turns that carried no call (a batch in which a call ran — `ExecutedToolCallBatch.ran`, one reading for both execution lanes — and an input marked as a person's, read off the row's `origin`, which clears the streak's count too); one Runner record (`Prepared.loopReasksRef`, written by the retry's own observer `LoopMalformedToolUseRecovery.onReask`, +1 optional member, which the Runner's recovery lanes wire) and the line's member it feeds.
1586
+ - **Pins.** `test/backlog4716-truncated-only-call.test.ts` (75 cells: three lanes × three endings for the cut call alone, beside text, beside a whole call; the cap and its terminal; the clear; the grant only while the budget lasts; direct calls without the grant; the line's two words and its facts; the cause clause's window arm, the reported case silent; ⑨ the clear only on a call that ran or a person's input — refused and missing calls alternating with cut-only turns on three lanes, both execution lanes, the person's input against an engine note); `test/backlog2684-streak-stream-interrupt.test.ts` (the interrupt with the person's message, and with an engine note); `test/backlog3917-same-tool-same-error-loop.test.ts` I re-pinned (third → fourth request); `test/backlog4716-reask-lanes.test.ts` (a waiting note after every turn × cut-only turns, tool-use stops with no call and same-name misses: the third ends the run, no nudge; a person's input still clears — reaching the model, and waiting at the cap (W6; an engine note there ends the run, W6c); the OpenAI-compatible stop word alone with and without text, against the Anthropic and Responses lanes; the terminal table T by lane, the Responses nameless arm included; `reasksSoFar` at 0 and after the re-asks; the attention row; P — a person's input is one rule for both counts: a person's steer through the Runner during the third same-name miss on three lanes and during the third tool-use stop with no call, a person's input waiting at the third miss, after the second, after every one, an engine note and an unmarked row in its place, and a person's follow-up after an answer, with each cell's base reading in its name); `test/backlog4696-notice-attention.test.ts` (the attention cells re-counted); `test/loop-transitions.test.ts` (RB-206's redirect at the exhausted moment marked a person's — it still wins — beside its engine-note twin, which ends exhausted; a steered turn counted once, its step still `steer_injected`); mutations `.gate-logs/mutations-4716.md`, `.gate-logs/mutations-4716-fix1.md`, `.gate-logs/mutations-4716-fix3.md`, `.gate-logs/mutations-4716-fix4.md` (car-4716).
1587
+
1588
+ ### On the OpenAI and Responses lanes, text beside a tool call cut before its arguments closed no longer completes the run with the call silently lost — the turn is a tool-use stop the malformed-tool-use retry asks again on, as the Anthropic lane already did (#4716; narrowing: one, below, open to veto @server @cli; widening: none; hard-breaking: none; closed sets: none; exports: none) (@server @cli)
1589
+
1590
+ - **Before (measured).** `finish_reason: "tool_calls"` (OpenAI) / `status: "completed"` (Responses) with text and a cut call ended as a clean `stop`: the run completed after one request, the call never ran and nobody asked for it again (the drop note sat in the transcript). On the output-cap and no-stop endings every lane asked the model to continue its text (the truncated-output / mid-stream continue), not to re-issue the call.
1591
+ - **Now.** Every lane, every ending: a `toolUse` stop with no call, the retry nudge on the next request, the same count and cap. At the cap the turn fails with its own account, as a cut call alone does: `failed` / `provider.error` / `model_output_invalid`. A direct brain call (no re-ask) and a loop without the malformed-tool-use retry get that failure at once, the text kept in the content.
1592
+ - **Narrowing (open to veto @server @cli @client-core).** A run whose model keeps answering with text and a cut call now fails at the cap where it used to complete with the call lost. On the Anthropic lane the same shape (text and a lost call on a `tool_use` stop, three times) already failed, as `model.malformed_tool_use_exhausted`; it now fails as `provider.error` with `terminal.detail.kind: "model_output_invalid"` — one ending for every turn that lost its calls; `model.malformed_tool_use_exhausted` stays the ending of a tool-use stop that carries no call at all and of the same-missing-tool streak. A direct caller (side query, summarizer) that got text beside a lost call back as a plain answer now gets the failure with the text in its content.
1593
+
1594
+ ### Known limits, not changed by this release: what an unattended deployment and a few faces new in this release still do (read off the release review and the ledger at the release; nothing below is fixed here)
1595
+
1596
+ **A shell command that feeds a path to a file-reading program reads past the read-deny table on an unattended answer table — the owner's ruling C-R2308 ①: not fixed in the engine.** On a deployment that declares ordinary questions answered by machine and whose read face is open, a shell spelling that hands a path to a program that reads files (a pipeline into `xargs` and then a file-reading program, and forms like it) reads a file the read-deny table lists, and nobody is asked. A direct read and the file-reading tool are refused as before, and with a person attending the command is asked about as before. The engine does not close it (the same direction as C-R1400 ③); a deployment that must keep such files unread enables a read deny at the operating-system level.
1597
+
1598
+ **The removal guard has no reading for `find`'s own removal forms (#4707, ticketed for 7.70.0).** `find … -exec <a removal command>`, `find … -exec sh -c '<text>'` and `find … -delete` are read as commands that remove nothing (measured on the judging function against a stand-in home directory, nothing executed), where a direct removal command reads as a dangerous removal. The gap is older than this release and has a different root from the program-word reading of #4702 above.
1599
+
1600
+ **A wait frame on a request that tries thinking parameters can announce a failure that does not come (#4655, 7.70.0; @client-core).** With both retry budgets set to 0, a request that asked for thinking parameters its model entry does not declare, and a first request that stalls: the wait frame says the call fails at its cut, then the engine sends the request without those parameters and it answers (measured with a controlled fetch and real timers). Both halves are new in this release.
1601
+
1602
+ **Switching Fast mode during a run does not reach the children started after the switch (KL-4659-a, #4659, 7.70.0).** A child inherits the `TaskSpec.fastMode` read at preparation: a task started with `fastMode: true` and switched off still requests, and is priced for, the fast tier in the children it starts later; started at standard speed and switched on, its new children stay at standard speed (read off the code).
1603
+
1604
+ **The model's sandbox note still says that a host outside the list is refused (KL-4660-a, #4660, 7.70.0).** When the deployment's list is not strict (`network.strictAllowlist` is not `true`) an unlisted host is asked about and can be approved; a model that reads the note may take a connection a person could approve for a refusal (read off the code).
1605
+
1606
+ **A leg with no tools still reads "use the Bash tool" in the approval-free reminder (#4661, 7.70.0).** #4325 above made the system prompt follow the tool face, and the approval-free reminder did not follow it: a first request with no tools carries both "no command can run this turn" and that sentence (measured by the release review: a real Runner with no tools and a deployment that answers allow).
1607
+
1608
+ **Two containers that share a host name and a data root, and that cannot read their process space, can each read the other's live claim holder as dead (#4703, 7.70.0).** On Linux the engine judges a process by its host name when it cannot read its own process space, and from this release the takeover of a workflow continuation's claim (#4652) uses that judgment, so one workflow could run twice there (read off the code; the bad case was not constructed).
1609
+
1610
+ no-notes: #4380(docs and JSDoc only: INTEGRATION-CORE section 11 and the `hostChildEnv` JSDoc in `src/core/secret-env.ts` now say who composes a settings hook's child environment, that `inheritEnv` is not applied to it, and what this package gives that executor; the two section 11 version labels of #2607 read 7.59.0, the release whose notes carry it; no code line changes), #2607(named only by the #4380 docs commit that corrects two section 11 version labels of it; nothing for #2607 itself changes here), #2595(named only by a premerge-7690 glue commit that re-reads two #2595 pins — D1d at the workflow registry's door, the pin header's pool sentence — after #3023 and #4187; the change is #3023's and its notes are there), #4269(named only by a premerge-7690 glue commit: the residual ticket a KNOWN-LIMITS row and one held pin cell cite; nothing in the package changes), #4088(named only by a premerge-7690 glue commit that re-reads the #4088 pin's sandbox judgment in the #2274 S2 form — no `home`; the change is #2274 S2's and its notes are there), #181(named only by a premerge-7690 glue commit: the retired-name census counted a word in a #3964 exclusion reason, reworded; nothing in the package changes), #391(named only by a premerge-7690 glue commit: the envelope census row for #2274 S2's `sandbox_violations` frame; the frame's notes are #2274 S2's), #2077(named only by a premerge-7690 glue commit: the request mint station census counts #4046's host question; its notes are #4046's), #3713(named only by a premerge-7690 glue commit: the O7 census lists #3964's re-key identity table beside the two readers; its notes are #3964's), #3968(named only by a premerge-7690 glue commit: #3964's exclusion table no longer lists the retired `askId`; nothing a row carries changes), #3202(named only by premerge-7690 glue commits: the unknown-key census lists the `ignoreViolations` pattern map as not a gate, and the re-key input's stray-member check reads the engine's one name judgment; #3202 shipped with 7.68.0 and nothing of its own changes here), #3355(named only by the title of premerge-7690's merge of origin/stage-7680 (batch 18), which mentions the stage's no-notes entry for it; #3355 shipped with 7.68.0 and nothing of it changes here), #3757(named only by premerge-7690 glue commits: the adapter-message census counts Monitor reading the spawn failure's text once, and its count is back to 3; #3757 shipped with 7.68.0 and nothing of its own changes here), #3826(named only by premerge-7690 glue commits: the author table gains classified rows for the violation line echo and for `unauthorizedFailure`'s `inlineUntrusted(ctx.server)`; the table shipped with 7.68.0, the new rows belong to the merged cars (#2274 S2, #3985) and their notes are there), #3997(named only by a premerge-7690 pin header and merge message that cite its record-face form (`authorizationClause`) which #3985 follows; #3997 shipped with 7.68.0, the change here is #3985's and its notes are there), #4029(named only by the title of a car-1664-4028-redo commit that re-measured ratchets and read the #4029 pin's carrier off string literals; #4029 shipped with 7.68.0 and nothing of its own changes here), #4103(named only by premerge-7690 glue commits: the announced sandbox frame's value is read by `isTextContentHash` and its digest by `textContentHashOf` — one sha256 text mint; #4103 shipped with 7.68.0, the change here is #2274 S2's and its notes are there), #4111(named only by premerge-7690 commits: the re-key census reads that a synchronous child parks nothing, and the car's contract kit reads `durableApproval`'s widened `| false`; #4111 shipped with 7.68.0 and nothing of its own changes here), #4234(named only by the title of premerge-7690's merge of origin/stage-7680 (8d4fd3436, batch 18); #4234 shipped with 7.68.0 and nothing of it changes here), #4423(release tooling only, scripts/ and one docs snapshot, nothing in the package: `gate:checkpoint-classes` compares the checkpoint requirement table with a snapshot of the last release and asks a named CHANGELOG line for every existing member whose class changed or that left the table), #4389(pin only, zero src: `test/backlog3110-cascade-park-seat.test.ts` cell ⑧ no longer compares the wall-clock `apiDurationMs` of two separate runs; the cell owns a frozen `Date` that each scripted brain call advances by a fixed step, so the legs' reported time is an exact number of calls), #2222(named only by a glue commit title of this batch: `gate:checkpoint-classes` (#4423) mints its scratch directory through the #2222 scratch helper instead of calling `mkdtemp` itself; #2222 shipped earlier and nothing of its own changes here), #2137(evidence only: docs/evidence/deny-before-ask-matrix.json and its pin measure which denies reach an approver; nothing in the package changes), #4333(named only as the known limit that B-249's plain-space cells read and do not judge; no change to it), #4405(repo only: scripts/repro/B-249.mjs runs in gate:repro against the built dist; nothing in the package changes), #4406(test tree only: the git-seam rule reads call expressions and one fixture goes through git()), #4407(release tooling and docs only: scripts/rerun-container-red.mjs), #4415(release tooling only: scripts/tsc-heap.mjs caps the compiler's heap for typecheck / gate:nuia / car:gate), #4431(release tooling and docs only: scripts/release/pickup-grep.mjs), #1030(named only by a glue commit title of this batch: car-4423's test builds its fixture repositories through the one git seam that #1030 introduced instead of spawning `git` itself; #1030 shipped earlier and nothing of its own changes here), #4436(release tooling only, scripts/ and docs/RELEASE-TIERS.md, nothing in the package: post-ship step ⑫ writes docs/checkpoint-classes.snapshot.json from the release's tag for the ledger commit, a tree with no class table is told so and skipped; `gate:checkpoint-classes` reads a word class that carries `earlier` — the class stays `word:<word>` — and judges the reading's appearing, going or changing as a class change, named by a `checkpoint-class-change:` line or red; the snapshot gains an optional `earlier` map), #4424(named only by the body of the #4436 commit, which cites the car whose `earlier` member the class gate now reads; nothing of #4424 itself changes here), #4445(repository tooling and docs only, zero src and nothing in the package: `scripts/suite-red-diff.mjs` and its declaration twin judge a suite run by the red cells it has that a baseline vitest JSON report did not — a file's name no longer hides a new red cell inside it — and `docs/RELEASE-TIERS.md` / `docs/TESTING.md` say so; `test/suite-red-diff.test.ts` pins it), #4441(test files only, zero src: `test/backlog1599-delegate-auto.test.ts` and `test/backlog1602-child-scope.test.ts` read the executed command's output as `ran:42`, a text no session reminder mark can hold, and run their refusal-text cells under a mark pinned to a value that holds `42` as well as a freshly minted one, through one helper, `test/reminder-mark-pin.ts` — a bare `42` was a substring of about one random mark in two hundred), #4430(pins only, zero src: the release-chain fixtures' fake git answers the push's own destination probe instead of letting it reach a real `git ls-remote`, and the fixture repositories are built once per test module and copied; nothing in the package changes), #954(named only by car-4374-4375's fix commits, which re-pin the #954 header-value ledger; #954 shipped with 7.67.0 and nothing of its own changes here), #1675(named only by car-4374-4375's commits, which cite its A6e / A7 pin cells as the base tree's reading they keep; #1675 shipped with 7.51.0 and nothing of its own changes here), #4457(the native reader's review of the 68 zh-Hans renderings the release candidate named, recorded in docs/locale-reviews/zh-Hans.json: five of them reworded — the sandbox-network approval headline, the workflow size tier, the auto-mode posture frame, the final-verification frame and its re-entry — before any release carried them, so no text a released engine shipped moves; no canonical text, source binding, key or variant changes), #4328(shipped with 7.68.2, whose `## 7.68.2` block is its notes; on the stage the landing line's merge carries the same fix and the bookkeeping commit 2c553e86a re-banks its ceilings and export snapshot — nothing further to announce), #1023(named only by the title of car-4321's test commit, which re-records one pinned sentence of #1023's row-shape equivalence pin for the absent-id wording — a test file only, nothing for #1023 changes), #4110(named only by #4352 commits: its park-to-publish pins read the date anchor's and the record's share of the bound the settle's waits now share — cell 0b the anchor's third, cell 5 the record's half; nothing for #4110 changes), #4483(a src comment and one test file, no behaviour: the doc on `START_TIME_TOLERANCE_MS` in `src/core/process-identity.ts` says what the probe's own delay does to the span of two readings of one process — one second with no delay, two with the longest delay a reading is kept for, which is the whole window — where it said one second and a full second of headroom; `test/fs-atomic-process-fingerprint.test.ts` no longer asserts a rounded start never reads past the uptime it was derived from — it reads up to half a second past it on a host whose uptime has a fraction, which went red in 5 of 20 runs of the file in a k3s8 container (overshoots of 380 – 480 ms), and the pid 1 cell, which asserted pid 1 older than two minutes, in 20 of 20 (a container's pid 1 is a minute old) — the pid 1 cell now supplies the age it needs instead of reading the machine's, 20 of 20 green in the same container, and a driven-host sweep holds that one live process read at two instants is `running` while a recycled pid is `gone`), #4508(a security-ledger row filed by car-4481's work commit, whose title names it beside KL-4481-e; the row is in docs/SECURITY-BACKLOG.md and the engine behaviour it concerns is in #4481's own notes), #1778(zero src change for it: the stated defect — the earlier-grammar announcement as a plain Error on onError — was closed in 7.53.0 by #1970 which made it an engine notice with no onError arm; what stays is the unreadable advisory as an Error with its code on onError by audience; the family's shape is pinned by F1-F3 of test/backlog1778-1779-earlier-grammar-notice-shape.test.ts and the unify-to-SessionPolicyError form is not taken since that class is the putRules refusal set), #2861(named only by the title of car-orch-truth's fix commit, which re-reads the #2861 I1 pin through the one row projection and pins a registry cell's clock — test files only, nothing changes for #2861), #4539(repository hygiene: the stage no longer tracks the .gate-logs/ directory (twelve files a branch had forced into the tree leave the index); no engine, doc or test content changes), #4280(shipped in 7.68.0; named only by the header of a merge of the stage-7680 line into car-1579's own history, which changes nothing for #4280), #777(a source-text pin re-anchored: it cut the verifier spec literal at its opening brace and now cuts it at its declaration, so the literal may be wrapped by the parent spec seat's apply; the pin's three claims are unchanged), #1386(named only by a #4525 commit body: the workspace reading calls the one factory judge `deploymentCanRerootChild` that the #1386 G pin holds every site to; the pin is unchanged and nothing for #1386 changes), #4079(named only by a #4525 commit body: the #4079 ⑨ source pin reads the driver as prepare plus the task-start doors it enters first, where the leg fact's one derivation now sits; the fact and its readers are unchanged, nothing for #4079 changes), #4356(named only by a #4525 commit body: the #4356 U5 source pin reads the leg's selector build in the task-start doors, where it moved with the pre-acquire stretch; the selector and its switch are unchanged, nothing for #4356 changes), #4451(a correction of the #2274 S2 notes and one line of docs/CLOSED-SETS.md, no src, test or behaviour change: the section's HB-2 now names the older worker as 7.68.x or earlier — the word `command_sandbox` is on no tag up to v7.68.3 — and says what a rollback from this release does to a row parked under a sandbox requirement; the notes it corrects are #2274 S2's), #3698(named only by the subject of a work-in-progress commit on car-4500 that changes the file-history store contract kit's stand-in and its pin for #4533, the artifact store's directory mode this ticket asks for is not in this range), #4511(named only as the ticket for a known limit of the 2394 round, written in docs/KNOWN-LIMITS.md and INTEGRATION-CORE 1.10d: a top-level error object from a self-hosted server is read as no envelope; nothing for it changes in this range), #1699(named only by the subject of a test commit on car-4121 that registers the retain entries of cells 5b to 5d with the row-verified word #4408 made required; no source change for it in this range), #3712(named only by a #4334 commit that re-reads the #3712 L1 leaf pin's import list — the fs failure-message leaf now imports the one-line form of foreign words, `foreignLine`; the closure assertions are unchanged and nothing for #3712 changes), #3758(the same #4334 commit and the same reason, the #3758 B cell), #4267(docs and one src comment only, no behaviour, nothing in the package changes: INTEGRATION-CORE's optional-member row for `FileHistoryStore` names `readBoundaries` and `blobExchange` and no longer the retired `diffStats`, its `Runner.rewindFiles` sentence says the dry-run preview is the restore planned and never `null`, SERVICE-INTEGRATION-GUIDE's file-history seat paragraph no longer lists `diffStats` as an optional store verb, and the root-export comment above `countRestoreLineDiff` no longer speaks of a backend's preview verb or the retired `previewFileDelta`; the notes of the retirement are the #4267 section above), #4619(a test file only, zero src and nothing in the package: `test/verify-debts-closed-sha-existence.test.ts` took the first 8 hex characters of a real commit as a coordinate, and the gate reads a pure-decimal 8-character token as a date or a count, not a commit, so a head whose front 8 characters were all digits, about 2.3% of commits, reddened the cells that cite it; the commits a cell cites now come from a throwaway stand-in for the checked repository and every other fixture repository, each re-minted until its short sha holds a letter, with pins J1 to J7 on the minting loop and on the gate's decimal reading), #4630(one fixture of the run-store contract kit and nothing a store does: the cell "an update stating a cause persists the same row as one stating none" now puts two park entries on each row, the one the write passes on and one it does not, in both orders, and holds that only the passed one carries `passedTo` after the write, with the cause and without it; a store that puts the member on another entry when the write states a cause was green on the single-entry fixture and is red on the two-entry one, on the in-memory and on the file store alike; no bundled store does it, and a store of a host that runs the kit (@server's SQL stores) is red only if it moves the member), #4632(a test file only, zero src: `test/cascade.test.ts` cell "totalTimeoutMs stops escalation once the overall wall-clock ceiling is crossed" gave a 1 ms ceiling to an 8 ms real gate delay, so a host that stalled for a millisecond before the first rung ran the zero-attempt path and the cell counted 0 attempts where it expected 1; it is now three cells over a clock only `Date` of which is faked, which a rung's gate moves by a stated step: a gate that burns the whole ceiling ends the ladder after one attempt, one millisecond less lets a second rung run, and none never crosses; the load-relative widening it carried is removed with nothing left to widen), #4434(docs only: `docs/wiki/` restamped against the 7.69.0 tree — ten pages re-read and re-stamped and the README index regenerated, with the sentences the tree had outgrown corrected on the model-setup page (the fallback reasons gain `route_refused`; a cut answer's `terminal.detail`; an undeclared `reasoning` tier is tried), the persistent-allow-rules page (two sandbox questions a rule may clear) and the feature index, and one new page on yielding a leg and its background work; no code line changes), #4658(folded into the #4481 section above, which no release carries yet: its hard-breaking item 1 says what a session's own writers do on an entry stored before the upgrade — one `tool_result.offload_put_failed` per session, and on a store that refuses the write at once a cleared marker without a ref — and KL-4481-f names the two places this does not reach; nothing against v7.68.3 beyond that section), #4663(a test file only, zero src and nothing in the package: `test/backlog4121-continuation-judge.test.ts` cell ⑫ no longer reads the ledger a fixed 80 ms past the stated deadline — it reads the entry standing before the deadline and waits with a bound for the real reaper timer to take it, never before the deadline, so a loaded host no longer turns it red), #4667(shipped in 7.68.4, whose `## 7.68.4` block below is its notes; on this branch it meets the bound #4652 gives a removal gate whose holder cannot be judged: a lock that bound reclaims is not said as a reclaim on the declaration, which is said only when the declared judgment found the process gone, and the integration guide keeps the shipped section number 5.15a for the declaration (the damaged-ledger section is 5.15b)), #4668(shipped in 7.68.4, whose `## 7.68.4` block below is its notes; on this branch its car merges as it shipped — nothing further to announce), #4672(shipped in 7.68.5, whose `## 7.68.5` block below is its notes; on this branch its car merges as it shipped, with the two wording changes of the cross-session disclosure that the branch already carried kept inside the function that moved), #4715(test-only: five withheld-env pins count only the names their fixtures planted, so a variable in the host process environment that the namespace rule withholds under "all" no longer turns them red; no behavior change), #1618(named only by two #4695 car commits that re-aim the #1618 ②b pin (test/backlog1618-neutering-survives-stripping.test.ts) from the retired mode-release notice onto the allowed-tools advisory; test only, the change is #4695's and its notes are there), #4720(test-only: the #4334 foreign-words pin file read a random secret against each cell's output by longest common run, and a run of 4 that the cell's own fixed words carry by chance ("reda" in the redaction mark, "fuse" in "refused") turned a cell red about one file run in fifty; a run now counts only if the same cell fed another random draw of the same shape does not write it too, so a leak of the secret itself still reads in full, the bound of 4 is unchanged; no behavior change), #1230(an existing pin re-aimed by the #4716 section above: the closed detail key set of the tool-turn-incomplete cells now takes the re-ask count; no behaviour of its own), #1598(four exact-detail cells re-aimed by the #4716 section above (they take a re-ask count of 0); no behaviour of its own), #2879(named only by the header of a merge of the main line into the release branch that changes the ledger alone; the ticket stays open, placed in 7.70.0, and nothing for it changes in this range), #3631(named only by the same merge header; the ticket stays open and nothing for it changes in this range), #4138(a repository gate script and its pins only, nothing in the package: gate:changelog-breaking reads two more manifest item forms — `type made keys required`, and a closed-set member that holds line breaks, named by its first line — without changing how any other form is read)
1611
+
1612
+ ## 7.68.5 — 2026-11-16
1613
+
1614
+ ### A finished run lets go of what it handed its session's process-level seats: a long-lived host with a mailbox store no longer keeps each session's last leg for the life of the process (#4672; fix; behavior change: one, below, open to veto; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none)
1615
+
1616
+ - **Before.** Since 7.4.0, on a deployment whose sessions have a session box (a mailbox store safe across processes over a session store that reads a row by id), every top-level leg mounts the box drain, which opens its session's idle machine and the held queue of each box it drains — process-level seats, one per session address. The drain bound them sinks built inside the leg; at the leg's loop end only the held queue's injector was detached, and every other sink still closed over the leg. A timer a seat armed for the leg (an idle ask's 12 h, a held card's deadline) also kept the async context of the run that armed it. So each session's last leg — its prepared state, tool table, guard rows, harness and conversation — stayed reachable for as long as the process lived. Measured on the engine alone (one Runner on the file backend, a new session per run, 50 caller tools, the session deleted through the store after each run, 300 runs, base and fix alternated twice): 771,232 and 771,686 bytes of heap and one whole leg (its harness, its session object, its 50 tools) kept per run on 7.68.4; 11,812 and 11,895 bytes and no leg with this fix (what is left is the "Not fixed" paragraph below).
1617
+ - **Affected.** Long-lived hosts that wire a mailbox store: every session they ever ran keeps its last leg. A host that runs each request in a new session grows by one leg per request (about 770 KB in the measurement above; more with a longer conversation or a larger tool table) until the heap runs out.
1618
+ - **Now.** What a leg binds its session's seats is handed through the run's end — the one end that already takes back the listeners a run hangs on a signal it does not own — and taken back once the run has settled, whatever way it ended: each seat is re-bound to the session's facts as the leg ended with them (its mode class, its name, its last turn's text) and to the deployment's own seats, nothing of the leg. A seat is re-bound only while it still holds this leg's binding: when two legs of one session are bound at once (two Runners in one process on one session id), the run's end of the one that ends first leaves the other's binding — its injector, its live readings — in place (that leg's loop end can still take the other's injector off the held queue until the other's next pass, as on every released version). A seat (a held queue, either idle half) arms its timers outside any run, on whatever clock it was given. Each seat is taken back on its own: if re-binding one throws, the others are still re-bound, and the fault reaches `RunnerDeps.onError` (`phase: "degraded"`, `classification: "run-end-take-back"`), never the process as an unhandled rejection; the run's result is unchanged. A Runner with no `onError` hears nothing of it, as with its other degraded arms.
1619
+ - **Not changed.** Between legs the seats stand and work as before: a subscription recorded in one leg is fired at the end of a later one; a subscription fired after the leg ended reaches its requester, authored as before; a session's own idle ask answers it `expired` at 12 h; a held card expires at its deadline with its receipt, and an approval between legs answers `released_pending`. The host face (`peerIdleMachineIfAny`, `peerHeldQueueIfAny`, `listPeerHeldQueues`) reads them as before. Deleting a session does to its seats what it did before (nothing; a new occupant of the id replaces them). `realPeerClock` is a plain clock as before (a timer armed on it directly keeps its caller's async context).
1620
+ - **Not fixed (as in every released version).** Each session whose legs mounted the drain keeps its idle machine and its held queue in this process until the process ends or a new occupant of the id replaces them — now without the leg: about 7.6 KB per session (measured: a host-owned session store, each session's box dropped, 2,400 sessions per pass, the heap slope with the seats kept less the slope with them cleared each round: 7,619 and 7,637 bytes in two passes). A host that calls the root `runTask(spec, deps)` once per request (a new Runner each call) keeps more: each session also keeps one Runner — about 22 KB per session in one measurement (an in-memory session store, 20 caller tools, one shared file mailbox; about 361 KB before the fix); what holds it is, by reading the code and not traced, the seats' resting form reaching that call's Runner through its error sink. A seat whose re-bind throws at the run's end keeps the leg it was bound (the fault reaches the error sink; no take-back is known to throw today). Deleting the session, through the engine's store or the host's own, does not remove them, and `listPeerHeldQueues()` keeps listing each ended session's empty queue. On the file backend, a host that does not drop a deleted session's box also keeps the box's open log in the mailbox store until the store closes: about 850 bytes (866 and 834 in the same two passes) and one open log per session, so one file descriptor each by reading the code (the descriptors were not counted). The drop is the deletion cascade's mailbox leg, `mailboxStore.drop`, at the scope the session's legs drained it in — the leg's `isolationScope`, else its `principal`, else `"default"`; the file mailbox keys a box by a digest of the scope's bytes, so another spelling drops another box.
1621
+ - **Behavior change, an exit (open to veto).** `PeerIdleTarget.configure` no longer clears an exit the host declared (`exited`); `busy` (the session starts working) does. For a Runner's leg that begins it is the same moment as before (the leg binds and then begins). Two forms differ: a leg refused after the drain mounted and before it begins no longer clears the exit (measured: after `exited` and one such refused leg, a subscription was recorded on 7.68.4 and is answered `full` now; after the next leg that runs it is recorded on both), and between a leg's bind and its first turn a subscription is answered `full` where it was recorded (by reading the code, not measured); the run's end re-binding the seats no longer revives a target the host declared exited. A host that drives `createPeerIdleTarget` directly and re-binds it after `exited` sees subscriptions refused until it calls `busy`.
1622
+ - **Rules.** The run's end gains one verb (`lend`: hand something over and name how it is taken back); listening to a signal is one use of it; the stream leg ends the run through one call that hands a take-back's fault to the error sink. The leg's seat logic (judgment, route, receipt, disclosure, the three sinks) has one spelling, read by the bound and the resting form; every bind of a seat goes through one function that records which leg's bind landed, and a leg whose run ended re-binds only a seat still its own (or one a failed bind left with no known holder). A seat's timers are armed outside any run (one clock wrapper, read by the three seat factories).
1623
+ - **Pins.** `test/backlog4672-session-machine-lets-go-of-the-leg.test.ts` — R (an in-memory session store and the file backend; nothing after the run / the session deleted; a prepare that refuses after the drain mounted; the no-mailbox control), B1–B4 (each with the leg collected first: a subscriber told after the leg; a subscription across two legs; a session's own 12 h ask; a held card's deadline and an approval between legs), F1 (a real Runner whose seat throws when the run's end re-binds it: no unhandled rejection, one `run-end-take-back` error, every other take-back ran, the result unchanged), F2 (the first seat's re-bind throws: the others are still re-bound), O1 (two legs of one session bound at once: the first to end re-binds nothing the other bound), O2 (a bind that throws leaves no known holder: the earlier leg still takes the seat back), E1–E3, E5–E7 (a getter that throws at the run's end keeps nothing of the leg; a pass after the end binds the resting form; an exit stands across the take-back; with the real clock, and with a clock the host supplies, a leg whose idle ask is outstanding is collected; `realPeerClock` itself unchanged).
1624
+ - **Consumers.** Nothing to change to get the fix. What a long-lived host still keeps per ended session is the "Not fixed" paragraph above: a host on the file backend that deletes sessions should drop each session's box at that exact scope; a host that shows `listPeerHeldQueues()` to people sees ended sessions' empty queues. A host whose `onError` sink sorts by `classification` has one more word, `run-end-take-back`.
1625
+
1
1626
  ## 7.68.4 — 2026-11-16
2
1627
 
3
1628
  ### A host can declare that every process opening a file data root runs in this one process table, and the directory locks under that root then judge a lock written by an engine before 7.67.0 by its pid; without the declaration nothing changes but the refusal's sentence and one re-read under the reclaim gate, below (#4667; ruled C-R2243; new host declaration; default unchanged; narrowing: none; widening: one, below, open to veto @server @cli; hard-breaking: none; closed sets: one, `EngineNoticeCode` +1; exports: two, `declareDataRoot`, `DataRootDeclaration`, and one optional member on the exported class `FileStoreLockError`, `ownerFingerprintUnread`; wire: none)