@sema-agent/core 7.69.1 → 7.71.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 (988) hide show
  1. package/CHANGELOG.md +3205 -0
  2. package/dist/agents/agent-definition.d.ts +18 -0
  3. package/dist/agents/agent-definition.js +10 -0
  4. package/dist/agents/agent-transcript-tool.d.ts +2 -1
  5. package/dist/agents/agent-transcript-tool.js +45 -19
  6. package/dist/agents/cascade.d.ts +10 -0
  7. package/dist/agents/cascade.js +33 -5
  8. package/dist/agents/cc-peer-directory.d.ts +1 -1
  9. package/dist/agents/cc-peer-directory.js +2 -1
  10. package/dist/agents/child-model-seat.d.ts +1 -1
  11. package/dist/agents/composition-allowance.d.ts +63 -19
  12. package/dist/agents/composition-allowance.js +62 -45
  13. package/dist/agents/composition-placement.d.ts +22 -4
  14. package/dist/agents/composition-placement.js +10 -1
  15. package/dist/agents/cross-session-envelope.d.ts +4 -5
  16. package/dist/agents/cross-session-envelope.js +4 -5
  17. package/dist/agents/inherited-tool-pool.d.ts +5 -1
  18. package/dist/agents/inherited-tool-pool.js +7 -2
  19. package/dist/agents/list-agents-tool.js +2 -1
  20. package/dist/agents/parked-resume-drive.d.ts +38 -0
  21. package/dist/agents/parked-resume-drive.js +57 -0
  22. package/dist/agents/peer-admission.js +4 -3
  23. package/dist/agents/peer-held-queue.d.ts +4 -2
  24. package/dist/agents/peer-held-queue.js +2 -1
  25. package/dist/agents/peer-session-drain.d.ts +2 -0
  26. package/dist/agents/peer-session-drain.js +49 -29
  27. package/dist/agents/repair-loop.js +15 -11
  28. package/dist/agents/retain-ledger.d.ts +71 -18
  29. package/dist/agents/retain-ledger.js +47 -13
  30. package/dist/agents/roster-store.d.ts +11 -3
  31. package/dist/agents/roster-store.js +6 -2
  32. package/dist/agents/send-message-tool.d.ts +14 -2
  33. package/dist/agents/send-message-tool.js +57 -16
  34. package/dist/agents/subagent.d.ts +24 -7
  35. package/dist/agents/subagent.js +287 -154
  36. package/dist/agents/tool-filter.js +1 -2
  37. package/dist/agents/verify.d.ts +4 -1
  38. package/dist/agents/verify.js +34 -17
  39. package/dist/agents/yield-adoption.js +13 -2
  40. package/dist/bench/metrics.js +2 -2
  41. package/dist/brain/anthropic.d.ts +2 -1
  42. package/dist/brain/anthropic.js +3 -3
  43. package/dist/brain/circuit-breaker.js +1 -1
  44. package/dist/brain/claude-model-id.d.ts +11 -0
  45. package/dist/brain/claude-model-id.js +3 -1
  46. package/dist/brain/model-lane.d.ts +2 -1
  47. package/dist/brain/model-lane.js +22 -9
  48. package/dist/brain/open-responses.d.ts +77 -1
  49. package/dist/brain/open-responses.js +1 -1
  50. package/dist/brain/openai.d.ts +2 -1
  51. package/dist/brain/openai.js +3 -3
  52. package/dist/brain/reasoning.d.ts +8 -1
  53. package/dist/brain/reasoning.js +3 -0
  54. package/dist/brain/reference-model-traits.d.ts +13 -12
  55. package/dist/brain/reference-model-traits.js +11 -10
  56. package/dist/brain/request-route.d.ts +1 -1
  57. package/dist/brain/request-route.js +2 -2
  58. package/dist/brain/route-adjudicator.d.ts +72 -2
  59. package/dist/brain/route-adjudicator.js +210 -69
  60. package/dist/brain/route-conformance.js +35 -0
  61. package/dist/brain/routing.js +2 -2
  62. package/dist/brain/spend-meter.d.ts +56 -0
  63. package/dist/brain/spend-meter.js +263 -0
  64. package/dist/brain/stream-shared.d.ts +1 -1
  65. package/dist/brain/stream-shared.js +3 -1
  66. package/dist/config/catalog.js +10 -1
  67. package/dist/config/defaults.d.ts +3 -0
  68. package/dist/config/defaults.js +1 -0
  69. package/dist/core/a2a-bound-grant.d.ts +110 -0
  70. package/dist/core/a2a-bound-grant.js +83 -0
  71. package/dist/core/a2a-task-state.d.ts +153 -51
  72. package/dist/core/a2a-task-state.js +85 -45
  73. package/dist/core/a2a.d.ts +62 -14
  74. package/dist/core/a2a.js +298 -57
  75. package/dist/core/agent-config-dir.d.ts +53 -6
  76. package/dist/core/agent-config-dir.js +59 -6
  77. package/dist/core/agent-definition.d.ts +1 -1
  78. package/dist/core/agent-state.d.ts +10 -1
  79. package/dist/core/agent-state.js +11 -4
  80. package/dist/core/allow-entry.d.ts +80 -42
  81. package/dist/core/allow-entry.js +119 -62
  82. package/dist/core/allow-rule-shadow.d.ts +25 -3
  83. package/dist/core/allow-rule-shadow.js +7 -0
  84. package/dist/core/approval-object.js +2 -2
  85. package/dist/core/artifact-host.d.ts +109 -6
  86. package/dist/core/artifact-host.js +68 -0
  87. package/dist/core/ask-headline.d.ts +10 -9
  88. package/dist/core/ask-headline.js +9 -3
  89. package/dist/core/ask-origin.d.ts +143 -49
  90. package/dist/core/ask-origin.js +91 -53
  91. package/dist/core/ask-question.d.ts +74 -39
  92. package/dist/core/ask-question.js +150 -23
  93. package/dist/core/ask-unresolvable-notice.d.ts +80 -10
  94. package/dist/core/ask-unresolvable-notice.js +52 -14
  95. package/dist/core/attachment-source.d.ts +1 -1
  96. package/dist/core/attachment-source.js +2 -0
  97. package/dist/core/auto-compaction.d.ts +17 -53
  98. package/dist/core/auto-compaction.js +6 -10
  99. package/dist/core/auto-mode-directive.d.ts +17 -5
  100. package/dist/core/auto-mode-directive.js +12 -3
  101. package/dist/core/auto-mode.d.ts +34 -5
  102. package/dist/core/auto-mode.js +43 -5
  103. package/dist/core/auto-strip.js +2 -0
  104. package/dist/core/background-agent-store.d.ts +100 -11
  105. package/dist/core/background-agent-store.js +64 -6
  106. package/dist/core/background-shell.d.ts +9 -0
  107. package/dist/core/background-shell.js +10 -0
  108. package/dist/core/caller-text.d.ts +4 -35
  109. package/dist/core/caller-text.js +2 -23
  110. package/dist/core/caller-tool-name.d.ts +6 -0
  111. package/dist/core/caller-tool-name.js +2 -2
  112. package/dist/core/canonical-json.d.ts +9 -0
  113. package/dist/core/canonical-json.js +6 -0
  114. package/dist/core/checkpoint-features.d.ts +79 -500
  115. package/dist/core/checkpoint-features.js +53 -19
  116. package/dist/core/checkpoint-generation.d.ts +89 -19
  117. package/dist/core/checkpoint-generation.js +89 -14
  118. package/dist/core/checkpoint-queries.d.ts +109 -18
  119. package/dist/core/checkpoint-queries.js +117 -11
  120. package/dist/core/checkpoint-rekey.d.ts +2 -1
  121. package/dist/core/checkpoint-rekey.js +2 -2
  122. package/dist/core/checkpoint-requirements.d.ts +76 -8
  123. package/dist/core/checkpoint-requirements.js +14 -7
  124. package/dist/core/checkpoint-row-verdict.d.ts +71 -19
  125. package/dist/core/checkpoint-row-verdict.js +93 -68
  126. package/dist/core/checkpoint-store.d.ts +139 -109
  127. package/dist/core/checkpoint-store.js +50 -34
  128. package/dist/core/classifier-unavailable-arm.d.ts +6 -1
  129. package/dist/core/classifier-unavailable-arm.js +8 -5
  130. package/dist/core/command-sandbox.d.ts +5 -3
  131. package/dist/core/command-sandbox.js +17 -9
  132. package/dist/core/config-refusal-codes.d.ts +7 -5
  133. package/dist/core/config-refusal-codes.js +8 -2
  134. package/dist/core/config-refusal-input.d.ts +46 -0
  135. package/dist/core/config-refusal-input.js +62 -0
  136. package/dist/core/context-edit.d.ts +18 -1
  137. package/dist/core/context-edit.js +13 -2
  138. package/dist/core/context-guard.d.ts +60 -13
  139. package/dist/core/context-guard.js +77 -35
  140. package/dist/core/context-settings.d.ts +2 -1
  141. package/dist/core/context-settings.js +10 -6
  142. package/dist/core/corrupt-session-form.d.ts +97 -0
  143. package/dist/core/corrupt-session-form.js +54 -0
  144. package/dist/core/cross-boundary-taint.d.ts +3 -3
  145. package/dist/core/data-root.d.ts +32 -0
  146. package/dist/core/data-root.js +86 -0
  147. package/dist/core/decision-receipt.d.ts +2 -0
  148. package/dist/core/decision-receipt.js +3 -2
  149. package/dist/core/declaration-words.d.ts +38 -0
  150. package/dist/core/declaration-words.js +32 -0
  151. package/dist/core/delegation-frames.d.ts +76 -35
  152. package/dist/core/delegation-frames.js +21 -1
  153. package/dist/core/durable-sync.d.ts +9 -0
  154. package/dist/core/durable-sync.js +37 -0
  155. package/dist/core/effective-path-target.d.ts +23 -0
  156. package/dist/core/effective-path-target.js +15 -1
  157. package/dist/core/engine-attestation.d.ts +5 -1
  158. package/dist/core/engine-attestation.js +1 -0
  159. package/dist/core/engine-capabilities.d.ts +123 -11
  160. package/dist/core/engine-capabilities.js +1 -1
  161. package/dist/core/engine-notice.d.ts +313 -163
  162. package/dist/core/engine-notice.js +13 -19
  163. package/dist/core/engine-version.js +1 -1
  164. package/dist/core/entries-not-applied.d.ts +22 -0
  165. package/dist/core/entries-not-applied.js +27 -0
  166. package/dist/core/exec-gate.d.ts +8 -1
  167. package/dist/core/exec-gate.js +24 -9
  168. package/dist/core/exec-outcome.d.ts +102 -0
  169. package/dist/core/exec-outcome.js +79 -0
  170. package/dist/core/existing-target.d.ts +45 -0
  171. package/dist/core/existing-target.js +54 -8
  172. package/dist/core/fast-tier-door.d.ts +2 -2
  173. package/dist/core/fast-tier-door.js +3 -3
  174. package/dist/core/file-history-store.d.ts +230 -27
  175. package/dist/core/file-history-store.js +234 -45
  176. package/dist/core/gate-fold.js +21 -8
  177. package/dist/core/gate-lanes.js +72 -45
  178. package/dist/core/gate-outcome.d.ts +3 -1
  179. package/dist/core/gate-outcome.js +7 -1
  180. package/dist/core/git-worktree-env.d.ts +25 -5
  181. package/dist/core/git-worktree-env.js +38 -13
  182. package/dist/core/governance-codes.d.ts +231 -43
  183. package/dist/core/governance-codes.js +552 -47
  184. package/dist/core/grant-holder.d.ts +53 -0
  185. package/dist/core/grant-holder.js +80 -0
  186. package/dist/core/hands-band.d.ts +1 -1
  187. package/dist/core/hooks.d.ts +80 -14
  188. package/dist/core/hooks.js +6 -2
  189. package/dist/core/host-floor.d.ts +1 -1
  190. package/dist/core/host-floor.js +1 -1
  191. package/dist/core/identity-rekey.d.ts +2 -1
  192. package/dist/core/identity-rekey.js +5 -5
  193. package/dist/core/image-admission.d.ts +2 -2
  194. package/dist/core/image-admission.js +1 -1
  195. package/dist/core/isolation-scope.d.ts +42 -17
  196. package/dist/core/isolation-scope.js +12 -4
  197. package/dist/core/leg-identity.d.ts +17 -2
  198. package/dist/core/leg-identity.js +6 -1
  199. package/dist/core/locked-config.d.ts +93 -17
  200. package/dist/core/locked-config.js +109 -36
  201. package/dist/core/mailbox-store.d.ts +4 -0
  202. package/dist/core/mailbox-store.js +7 -0
  203. package/dist/core/mcp-call-meta.d.ts +52 -7
  204. package/dist/core/mcp-call-meta.js +21 -2
  205. package/dist/core/mcp-failure.d.ts +13 -4
  206. package/dist/core/mcp-failure.js +10 -0
  207. package/dist/core/mcp-host-read.d.ts +1 -1
  208. package/dist/core/mcp-injection-drop.d.ts +30 -13
  209. package/dist/core/mcp-injection-drop.js +25 -7
  210. package/dist/core/mcp-leg-wait.d.ts +88 -0
  211. package/dist/core/mcp-leg-wait.js +100 -0
  212. package/dist/core/mcp-name-judge.js +1 -2
  213. package/dist/core/mcp-probe.d.ts +30 -1
  214. package/dist/core/mcp-probe.js +5 -3
  215. package/dist/core/mcp-read-bound.d.ts +51 -0
  216. package/dist/core/mcp-read-bound.js +49 -0
  217. package/dist/core/mcp-server-link.js +4 -3
  218. package/dist/core/mcp-server-spec.d.ts +115 -26
  219. package/dist/core/mcp-server-spec.js +52 -19
  220. package/dist/core/mcp-server-unavailable-notice.d.ts +15 -6
  221. package/dist/core/mcp-server-unavailable-notice.js +12 -11
  222. package/dist/core/mcp-stderr-lines.d.ts +69 -0
  223. package/dist/core/mcp-stderr-lines.js +333 -0
  224. package/dist/core/mcp.d.ts +32 -9
  225. package/dist/core/mcp.js +189 -46
  226. package/dist/core/member-outcome.d.ts +302 -0
  227. package/dist/core/member-outcome.js +305 -0
  228. package/dist/core/memory-engine/consolidation.js +3 -3
  229. package/dist/core/memory-engine/content-origin.js +5 -4
  230. package/dist/core/memory-engine/control-objects.js +6 -4
  231. package/dist/core/memory-engine/delegation-settlement.js +5 -5
  232. package/dist/core/memory-engine/distiller.js +2 -2
  233. package/dist/core/memory-engine/dual-root.d.ts +12 -5
  234. package/dist/core/memory-engine/dual-root.js +13 -7
  235. package/dist/core/memory-engine/engine.d.ts +27 -31
  236. package/dist/core/memory-engine/engine.js +122 -80
  237. package/dist/core/memory-engine/file-backend.d.ts +23 -5
  238. package/dist/core/memory-engine/file-backend.js +29 -32
  239. package/dist/core/memory-engine/frontmatter.js +1 -1
  240. package/dist/core/memory-engine/index-copies.d.ts +8 -6
  241. package/dist/core/memory-engine/index-copies.js +2 -1
  242. package/dist/core/memory-engine/index.d.ts +4 -2
  243. package/dist/core/memory-engine/index.js +4 -2
  244. package/dist/core/memory-engine/layout.d.ts +197 -29
  245. package/dist/core/memory-engine/layout.js +271 -59
  246. package/dist/core/memory-engine/memory-backend-contract.js +20 -20
  247. package/dist/core/memory-engine/memory-deployment.d.ts +29 -16
  248. package/dist/core/memory-engine/memory-deployment.js +38 -28
  249. package/dist/core/memory-engine/mount-failed-notice.d.ts +71 -4
  250. package/dist/core/memory-engine/mount-failed-notice.js +54 -3
  251. package/dist/core/memory-engine/projection-ledger.d.ts +48 -0
  252. package/dist/core/memory-engine/projection-ledger.js +130 -0
  253. package/dist/core/memory-engine/scope-contract.js +2 -2
  254. package/dist/core/memory-engine/sync-client.js +1 -2
  255. package/dist/core/memory-engine/types.d.ts +10 -4
  256. package/dist/core/memory.js +3 -5
  257. package/dist/core/mode-policy.d.ts +87 -16
  258. package/dist/core/mode-policy.js +69 -29
  259. package/dist/core/model-seat.d.ts +13 -1
  260. package/dist/core/mods/classic-events.d.ts +13 -1
  261. package/dist/core/mods/dollar.js +2 -1
  262. package/dist/core/mods/extension-call.d.ts +3 -0
  263. package/dist/core/mods/extension-call.js +3 -0
  264. package/dist/core/mods/host.d.ts +2 -1
  265. package/dist/core/mods/host.js +7 -6
  266. package/dist/core/mods/kernel/dispatch.d.ts +4 -0
  267. package/dist/core/mods/kernel/dispatch.js +3 -3
  268. package/dist/core/mods/kernel/events.d.ts +11 -3
  269. package/dist/core/mods/kernel/events.js +4 -4
  270. package/dist/core/mods/kernel/index.d.ts +1 -1
  271. package/dist/core/mods/kernel/index.js +1 -1
  272. package/dist/core/mods/kernel/registration.d.ts +5 -2
  273. package/dist/core/mods/kernel/registration.js +19 -3
  274. package/dist/core/mods/message-display.d.ts +6 -3
  275. package/dist/core/mods/message-display.js +13 -5
  276. package/dist/core/mods/package.d.ts +12 -1
  277. package/dist/core/mods/package.js +36 -9
  278. package/dist/core/mods/stations.d.ts +15 -2
  279. package/dist/core/mods/stations.js +22 -6
  280. package/dist/core/mods/teammate-stations.d.ts +78 -0
  281. package/dist/core/mods/teammate-stations.js +108 -0
  282. package/dist/core/mounted-mcp.js +1 -2
  283. package/dist/core/namespaced-rule-name.d.ts +1 -1
  284. package/dist/core/namespaced-rule-name.js +1 -1
  285. package/dist/core/native-signal.d.ts +13 -0
  286. package/dist/core/native-signal.js +18 -0
  287. package/dist/core/notice-fact.d.ts +28 -0
  288. package/dist/core/notice-fact.js +25 -0
  289. package/dist/core/owner-identity.d.ts +8 -3
  290. package/dist/core/owner-identity.js +6 -3
  291. package/dist/core/parent-spec-seat.d.ts +16 -6
  292. package/dist/core/parent-spec-seat.js +28 -6
  293. package/dist/core/park-resumability.d.ts +25 -18
  294. package/dist/core/park-resumability.js +12 -4
  295. package/dist/core/park-selfcheck.js +2 -1
  296. package/dist/core/path-rule-binding.js +1 -1
  297. package/dist/core/peer-seat.d.ts +1 -2
  298. package/dist/core/permission-rule-consent.d.ts +50 -1
  299. package/dist/core/permission-rule-consent.js +121 -14
  300. package/dist/core/permission-rule-model.d.ts +145 -43
  301. package/dist/core/permission-rule-model.js +155 -26
  302. package/dist/core/permission-rule-org.d.ts +13 -0
  303. package/dist/core/permission-rule-org.js +9 -1
  304. package/dist/core/permission-rule-provider.d.ts +112 -8
  305. package/dist/core/permission-rule-provider.js +439 -29
  306. package/dist/core/permission-rule-session.d.ts +35 -5
  307. package/dist/core/permission-rule-session.js +35 -2
  308. package/dist/core/permission-rule-store.d.ts +24 -3
  309. package/dist/core/permission-rule-store.js +56 -14
  310. package/dist/core/permission-rule-sync.js +5 -2
  311. package/dist/core/permission-rules.d.ts +2 -2
  312. package/dist/core/permission-rules.js +9 -5
  313. package/dist/core/persisted-rule-arms.d.ts +10 -4
  314. package/dist/core/persisted-rule-arms.js +16 -11
  315. package/dist/core/persisted-rule-buckets.d.ts +66 -0
  316. package/dist/core/persisted-rule-buckets.js +57 -0
  317. package/dist/core/plan-review-facts.d.ts +33 -0
  318. package/dist/core/plan-review-facts.js +25 -0
  319. package/dist/core/prefix-declaration.d.ts +50 -0
  320. package/dist/core/prefix-declaration.js +13 -0
  321. package/dist/core/present-plan-tool.d.ts +13 -3
  322. package/dist/core/present-plan-tool.js +14 -3
  323. package/dist/core/pricing.d.ts +5 -1
  324. package/dist/core/pricing.js +8 -5
  325. package/dist/core/principal-name.d.ts +67 -5
  326. package/dist/core/principal-name.js +61 -16
  327. package/dist/core/process-identity.d.ts +11 -7
  328. package/dist/core/process-identity.js +26 -36
  329. package/dist/core/process-table.d.ts +67 -0
  330. package/dist/core/process-table.js +177 -0
  331. package/dist/core/protocol-http-auth.d.ts +75 -12
  332. package/dist/core/protocol-http-auth.js +223 -26
  333. package/dist/core/protocol-revocation.d.ts +29 -10
  334. package/dist/core/protocol-revocation.js +9 -5
  335. package/dist/core/read-only-shell.d.ts +1 -1
  336. package/dist/core/read-only-shell.js +1 -1
  337. package/dist/core/read-root-grant-screen.d.ts +19 -7
  338. package/dist/core/read-root-grant-screen.js +14 -5
  339. package/dist/core/reminder-mint.d.ts +6 -0
  340. package/dist/core/reminder-mint.js +13 -0
  341. package/dist/core/remote-env.d.ts +153 -11
  342. package/dist/core/remote-env.js +20 -0
  343. package/dist/core/request-copy-projection.js +97 -18
  344. package/dist/core/resource-limit-reasons.d.ts +52 -0
  345. package/dist/core/resource-limit-reasons.js +6 -0
  346. package/dist/core/resume-at-refusal.d.ts +10 -6
  347. package/dist/core/resume-at-refusal.js +2 -2
  348. package/dist/core/resume-config-judge.d.ts +3 -2
  349. package/dist/core/resume-config-judge.js +3 -2
  350. package/dist/core/resume-startup-cause.d.ts +35 -6
  351. package/dist/core/resume-startup-cause.js +53 -10
  352. package/dist/core/retention.d.ts +12 -2
  353. package/dist/core/retention.js +6 -1
  354. package/dist/core/retired-keys.d.ts +5 -0
  355. package/dist/core/retired-keys.js +12 -0
  356. package/dist/core/rewind-conversation.d.ts +58 -0
  357. package/dist/core/rewind-conversation.js +1 -0
  358. package/dist/core/rewrite-rejudge.d.ts +9 -1
  359. package/dist/core/rewrite-rejudge.js +11 -1
  360. package/dist/core/roles.d.ts +61 -3
  361. package/dist/core/roles.js +81 -28
  362. package/dist/core/rule-lane-reads.d.ts +2 -1
  363. package/dist/core/rule-lane-reads.js +54 -29
  364. package/dist/core/rule-offer-read.js +8 -4
  365. package/dist/core/rule-owner.d.ts +6 -1
  366. package/dist/core/rule-owner.js +8 -2
  367. package/dist/core/rule-store-fault.d.ts +4 -2
  368. package/dist/core/rule-store-fault.js +4 -1
  369. package/dist/core/runner/advertised-writable-dirs.d.ts +17 -0
  370. package/dist/core/runner/advertised-writable-dirs.js +15 -9
  371. package/dist/core/runner/announce-once-ledger.js +12 -11
  372. package/dist/core/runner/assemble-result.d.ts +36 -17
  373. package/dist/core/runner/assemble-result.js +35 -8
  374. package/dist/core/runner/auto-strip-notice.d.ts +1 -1
  375. package/dist/core/runner/boundary-reminders.d.ts +104 -0
  376. package/dist/core/runner/boundary-reminders.js +108 -0
  377. package/dist/core/runner/branch-window.d.ts +25 -2
  378. package/dist/core/runner/branch-window.js +47 -11
  379. package/dist/core/runner/branch-writeback.d.ts +21 -7
  380. package/dist/core/runner/branch-writeback.js +44 -6
  381. package/dist/core/runner/chain-refusal-throw.d.ts +19 -0
  382. package/dist/core/runner/chain-refusal-throw.js +30 -0
  383. package/dist/core/runner/changes-git.d.ts +21 -0
  384. package/dist/core/runner/changes-git.js +291 -0
  385. package/dist/core/runner/changes-history.d.ts +80 -0
  386. package/dist/core/runner/changes-history.js +351 -0
  387. package/dist/core/runner/checkpoint-scope.d.ts +16 -8
  388. package/dist/core/runner/checkpoint-scope.js +6 -4
  389. package/dist/core/runner/child-tree.d.ts +31 -20
  390. package/dist/core/runner/child-tree.js +24 -9
  391. package/dist/core/runner/classifier-ladder.d.ts +4 -2
  392. package/dist/core/runner/classifier-ladder.js +14 -12
  393. package/dist/core/runner/clock-and-limits.d.ts +0 -3
  394. package/dist/core/runner/clock-and-limits.js +1 -2
  395. package/dist/core/runner/command-sandbox-frame.js +2 -1
  396. package/dist/core/runner/compact-session.js +27 -51
  397. package/dist/core/runner/compaction-restate.js +2 -1
  398. package/dist/core/runner/constraint-layers.d.ts +120 -0
  399. package/dist/core/runner/constraint-layers.js +115 -0
  400. package/dist/core/runner/construction-doors.js +2 -0
  401. package/dist/core/runner/content-ask-bindings.d.ts +3 -3
  402. package/dist/core/runner/continuation-gate.d.ts +8 -4
  403. package/dist/core/runner/continuation-gate.js +5 -1
  404. package/dist/core/runner/continues-from.d.ts +7 -0
  405. package/dist/core/runner/continues-from.js +9 -0
  406. package/dist/core/runner/contracts.d.ts +225 -55
  407. package/dist/core/runner/cross-boundary-lane.js +2 -1
  408. package/dist/core/runner/decide-continuation.d.ts +2 -2
  409. package/dist/core/runner/delegation-owner.d.ts +246 -45
  410. package/dist/core/runner/delegation-owner.js +237 -63
  411. package/dist/core/runner/denial-limit-arms.js +3 -4
  412. package/dist/core/runner/earlier-grammar-notice.js +5 -3
  413. package/dist/core/runner/env-capability-census.js +2 -1
  414. package/dist/core/runner/expire-settle.d.ts +17 -0
  415. package/dist/core/runner/expire-settle.js +8 -2
  416. package/dist/core/runner/file-history-request.d.ts +4 -3
  417. package/dist/core/runner/file-history-request.js +4 -1
  418. package/dist/core/runner/file-history-restore.d.ts +46 -12
  419. package/dist/core/runner/file-history-restore.js +45 -10
  420. package/dist/core/runner/finish-reason-seat.js +13 -4
  421. package/dist/core/runner/gate-exit.d.ts +30 -1
  422. package/dist/core/runner/gate-exit.js +37 -14
  423. package/dist/core/runner/halt-attribution.js +1 -1
  424. package/dist/core/runner/initial-run-state.d.ts +1 -1
  425. package/dist/core/runner/initial-run-state.js +2 -2
  426. package/dist/core/runner/left-as-is-seat.js +1 -1
  427. package/dist/core/runner/mcp-redial.d.ts +15 -4
  428. package/dist/core/runner/mcp-redial.js +53 -6
  429. package/dist/core/runner/memory-capture-optout.d.ts +7 -11
  430. package/dist/core/runner/memory-capture-optout.js +7 -4
  431. package/dist/core/runner/memory-phase-refusals.d.ts +19 -0
  432. package/dist/core/runner/memory-phase-refusals.js +18 -0
  433. package/dist/core/runner/messages-omitted-seat.d.ts +24 -1
  434. package/dist/core/runner/messages-omitted-seat.js +30 -9
  435. package/dist/core/runner/model-fallback-seat.d.ts +18 -5
  436. package/dist/core/runner/model-fallback-seat.js +29 -24
  437. package/dist/core/runner/model-lane-seat.d.ts +23 -1
  438. package/dist/core/runner/model-lane-seat.js +20 -2
  439. package/dist/core/runner/nested-memory-content.js +1 -1
  440. package/dist/core/runner/nested-memory-lane.d.ts +74 -59
  441. package/dist/core/runner/nested-memory-lane.js +335 -114
  442. package/dist/core/runner/own-model-money-door.d.ts +13 -0
  443. package/dist/core/runner/own-model-money-door.js +17 -0
  444. package/dist/core/runner/park-commit.d.ts +29 -6
  445. package/dist/core/runner/park-commit.js +20 -8
  446. package/dist/core/runner/permission-rule-lanes.d.ts +9 -0
  447. package/dist/core/runner/permission-rule-lanes.js +51 -11
  448. package/dist/core/runner/person-path-rows.d.ts +124 -21
  449. package/dist/core/runner/person-path-rows.js +179 -20
  450. package/dist/core/runner/placement-fence.d.ts +8 -2
  451. package/dist/core/runner/placement-fence.js +8 -3
  452. package/dist/core/runner/policy-throw.d.ts +3 -2
  453. package/dist/core/runner/policy-throw.js +2 -2
  454. package/dist/core/runner/prefix-ledger.d.ts +57 -3
  455. package/dist/core/runner/prefix-ledger.js +98 -8
  456. package/dist/core/runner/prepare-acquire-reconcile.d.ts +24 -14
  457. package/dist/core/runner/prepare-acquire-reconcile.js +44 -78
  458. package/dist/core/runner/prepare-advisor.js +2 -1
  459. package/dist/core/runner/prepare-artifact.d.ts +18 -2
  460. package/dist/core/runner/prepare-artifact.js +8 -3
  461. package/dist/core/runner/prepare-ask-lane.d.ts +12 -0
  462. package/dist/core/runner/prepare-ask-lane.js +19 -8
  463. package/dist/core/runner/prepare-boundary-parks.js +12 -5
  464. package/dist/core/runner/prepare-caps-and-workflow.js +37 -25
  465. package/dist/core/runner/prepare-config-doors.d.ts +22 -18
  466. package/dist/core/runner/prepare-config-doors.js +143 -127
  467. package/dist/core/runner/prepare-context-lane.d.ts +32 -11
  468. package/dist/core/runner/prepare-context-lane.js +77 -48
  469. package/dist/core/runner/prepare-defer-classify.d.ts +16 -0
  470. package/dist/core/runner/prepare-defer-classify.js +30 -8
  471. package/dist/core/runner/prepare-delegation-surface.d.ts +2 -0
  472. package/dist/core/runner/prepare-delegation-surface.js +8 -4
  473. package/dist/core/runner/prepare-execution-env.d.ts +7 -1
  474. package/dist/core/runner/prepare-execution-env.js +18 -8
  475. package/dist/core/runner/prepare-file-history.d.ts +26 -0
  476. package/dist/core/runner/prepare-file-history.js +19 -2
  477. package/dist/core/runner/prepare-gate-stations.d.ts +10 -0
  478. package/dist/core/runner/prepare-gate-stations.js +15 -6
  479. package/dist/core/runner/prepare-hands-readface.d.ts +28 -7
  480. package/dist/core/runner/prepare-hands-readface.js +83 -23
  481. package/dist/core/runner/prepare-inherited-gate.d.ts +28 -14
  482. package/dist/core/runner/prepare-inherited-gate.js +35 -17
  483. package/dist/core/runner/prepare-leg-adoption.d.ts +2 -2
  484. package/dist/core/runner/prepare-memory-engine-session.js +4 -2
  485. package/dist/core/runner/prepare-memory.d.ts +8 -1
  486. package/dist/core/runner/prepare-memory.js +37 -33
  487. package/dist/core/runner/prepare-offload-wrappers.d.ts +7 -7
  488. package/dist/core/runner/prepare-offload-wrappers.js +26 -17
  489. package/dist/core/runner/prepare-park-ask.d.ts +8 -11
  490. package/dist/core/runner/prepare-park-ask.js +18 -12
  491. package/dist/core/runner/prepare-policy-chain.d.ts +29 -1
  492. package/dist/core/runner/prepare-policy-chain.js +69 -33
  493. package/dist/core/runner/prepare-project-context.d.ts +4 -0
  494. package/dist/core/runner/prepare-project-context.js +9 -8
  495. package/dist/core/runner/prepare-prompt-assembly.d.ts +3 -0
  496. package/dist/core/runner/prepare-prompt-assembly.js +6 -5
  497. package/dist/core/runner/prepare-protocol-tools.d.ts +2 -2
  498. package/dist/core/runner/prepare-protocol-tools.js +44 -24
  499. package/dist/core/runner/prepare-question-face.d.ts +4 -9
  500. package/dist/core/runner/prepare-question-face.js +8 -3
  501. package/dist/core/runner/prepare-suspend-saga.d.ts +11 -2
  502. package/dist/core/runner/prepare-suspend-saga.js +28 -8
  503. package/dist/core/runner/prepare-task.d.ts +4 -7
  504. package/dist/core/runner/prepare-task.js +203 -74
  505. package/dist/core/runner/prepare-tool-disclosure-mount.js +10 -5
  506. package/dist/core/runner/prepare-turn-wiring.d.ts +3 -1
  507. package/dist/core/runner/prepare-turn-wiring.js +15 -11
  508. package/dist/core/runner/prepare-wiring-manifest.d.ts +6 -19
  509. package/dist/core/runner/prepare-wiring-manifest.js +17 -35
  510. package/dist/core/runner/prepare-workspace-restore.d.ts +4 -11
  511. package/dist/core/runner/prepare-workspace-restore.js +60 -42
  512. package/dist/core/runner/read-root-grant.d.ts +49 -13
  513. package/dist/core/runner/read-root-grant.js +54 -21
  514. package/dist/core/runner/read-session-changes.d.ts +9 -0
  515. package/dist/core/runner/read-session-changes.js +192 -0
  516. package/dist/core/runner/remote-env-retry.d.ts +4 -4
  517. package/dist/core/runner/resume-admission.d.ts +14 -7
  518. package/dist/core/runner/resume-admission.js +28 -16
  519. package/dist/core/runner/resume-apply.js +9 -6
  520. package/dist/core/runner/resume-checkpoint-screen.d.ts +7 -2
  521. package/dist/core/runner/resume-checkpoint-screen.js +32 -17
  522. package/dist/core/runner/resume-claim.d.ts +2 -2
  523. package/dist/core/runner/resume-claim.js +4 -4
  524. package/dist/core/runner/resume-internals-and-config.d.ts +3 -0
  525. package/dist/core/runner/resume-internals-and-config.js +10 -7
  526. package/dist/core/runner/resume-policy-outcome.d.ts +5 -4
  527. package/dist/core/runner/resume-policy-outcome.js +8 -6
  528. package/dist/core/runner/resume-preflight.d.ts +3 -0
  529. package/dist/core/runner/resume-preflight.js +10 -3
  530. package/dist/core/runner/retired-name-policy.d.ts +15 -0
  531. package/dist/core/runner/retired-name-policy.js +37 -0
  532. package/dist/core/runner/retired-runner-deps.js +3 -1
  533. package/dist/core/runner/rewind-conversation.d.ts +10 -0
  534. package/dist/core/runner/rewind-conversation.js +107 -0
  535. package/dist/core/runner/rewind-files.js +56 -24
  536. package/dist/core/runner/rewind-outcome.d.ts +27 -0
  537. package/dist/core/runner/rewind-outcome.js +14 -0
  538. package/dist/core/runner/rewind-target.d.ts +28 -0
  539. package/dist/core/runner/rewind-target.js +58 -0
  540. package/dist/core/runner/role-resolution-table.d.ts +3 -16
  541. package/dist/core/runner/role-resolution-table.js +1 -3
  542. package/dist/core/runner/role-seat-defaulted.d.ts +14 -5
  543. package/dist/core/runner/role-seat-defaulted.js +17 -13
  544. package/dist/core/runner/rule-store-unreadable-notice.d.ts +8 -6
  545. package/dist/core/runner/rule-store-unreadable-notice.js +6 -4
  546. package/dist/core/runner/run-attachment-seats.js +2 -1
  547. package/dist/core/runner/run-clock-and-content.js +2 -0
  548. package/dist/core/runner/run-compaction-machinery.js +2 -2
  549. package/dist/core/runner/run-harness-handlers.js +43 -11
  550. package/dist/core/runner/run-identity-wiring.d.ts +2 -0
  551. package/dist/core/runner/run-identity-wiring.js +5 -2
  552. package/dist/core/runner/run-leg.js +30 -29
  553. package/dist/core/runner/run-notification-lane.d.ts +3 -0
  554. package/dist/core/runner/run-notification-lane.js +4 -4
  555. package/dist/core/runner/run-settle-and-teardown.d.ts +4 -2
  556. package/dist/core/runner/run-settle-and-teardown.js +78 -51
  557. package/dist/core/runner/run-stop-and-final-verify.d.ts +4 -0
  558. package/dist/core/runner/run-stop-and-final-verify.js +71 -73
  559. package/dist/core/runner/run-telemetry-and-budget-seats.js +14 -8
  560. package/dist/core/runner/run-terminal-adoption.d.ts +1 -1
  561. package/dist/core/runner/run-terminal-adoption.js +3 -3
  562. package/dist/core/runner/run-turn-boundary.js +10 -6
  563. package/dist/core/runner/runtask.d.ts +29 -20
  564. package/dist/core/runner/runtask.js +35 -16
  565. package/dist/core/runner/sandbox-network-seat.js +1 -1
  566. package/dist/core/runner/seat-model-doors.d.ts +6 -5
  567. package/dist/core/runner/seat-model-doors.js +4 -3
  568. package/dist/core/runner/session-call-grant-station.d.ts +64 -0
  569. package/dist/core/runner/session-call-grant-station.js +119 -0
  570. package/dist/core/runner/session-file-state-replay.d.ts +47 -8
  571. package/dist/core/runner/session-file-state-replay.js +99 -13
  572. package/dist/core/runner/session-files-open.d.ts +64 -0
  573. package/dist/core/runner/session-files-open.js +33 -0
  574. package/dist/core/runner/session-prompt-seats.d.ts +95 -0
  575. package/dist/core/runner/session-prompt-seats.js +62 -0
  576. package/dist/core/runner/session-read-file-states.d.ts +37 -41
  577. package/dist/core/runner/session-read-file-states.js +14 -6
  578. package/dist/core/runner/session-rule-policy.d.ts +5 -0
  579. package/dist/core/runner/session-rule-policy.js +16 -9
  580. package/dist/core/runner/session-verb-doors.d.ts +41 -4
  581. package/dist/core/runner/session-verb-doors.js +66 -11
  582. package/dist/core/runner/session-write-ledger.d.ts +8 -0
  583. package/dist/core/runner/session-write-ledger.js +16 -0
  584. package/dist/core/runner/shared-read-classifier.d.ts +14 -3
  585. package/dist/core/runner/shared-read-classifier.js +14 -6
  586. package/dist/core/runner/shell-env-withheld.d.ts +4 -2
  587. package/dist/core/runner/shell-env-withheld.js +3 -2
  588. package/dist/core/runner/side-call-account.d.ts +47 -5
  589. package/dist/core/runner/side-call-account.js +42 -4
  590. package/dist/core/runner/skipped-rules-notice.d.ts +5 -5
  591. package/dist/core/runner/skipped-rules-notice.js +3 -3
  592. package/dist/core/runner/stop-tail-notice.d.ts +7 -0
  593. package/dist/core/runner/stop-tail-notice.js +23 -8
  594. package/dist/core/runner/stream-reap.js +4 -2
  595. package/dist/core/runner/stream-settle-backstop.d.ts +1 -1
  596. package/dist/core/runner/stream-settle-backstop.js +20 -20
  597. package/dist/core/runner/sub-agent-deny-lists.d.ts +26 -7
  598. package/dist/core/runner/sub-agent-deny-lists.js +23 -15
  599. package/dist/core/runner/task-start-doors.d.ts +7 -3
  600. package/dist/core/runner/task-start-doors.js +72 -31
  601. package/dist/core/runner/terminal-account.js +26 -11
  602. package/dist/core/runner/terminal-projection.d.ts +4 -2
  603. package/dist/core/runner/terminal-projection.js +2 -2
  604. package/dist/core/runner/tool-defer-gate.d.ts +1 -1
  605. package/dist/core/runner/tool-end-body.d.ts +8 -1
  606. package/dist/core/runner/tool-end-body.js +4 -3
  607. package/dist/core/runner/tool-face-overlay.js +6 -4
  608. package/dist/core/runner/tool-result-media-seat.d.ts +2 -1
  609. package/dist/core/runner/tool-table-view.js +1 -1
  610. package/dist/core/runner/tool-turn-repair-seat.d.ts +2 -2
  611. package/dist/core/runner/tool-turn-repair-seat.js +12 -7
  612. package/dist/core/runner/trim-stretch.d.ts +43 -0
  613. package/dist/core/runner/trim-stretch.js +34 -0
  614. package/dist/core/runner/turn-attachments.d.ts +22 -1
  615. package/dist/core/runner/turn-attachments.js +27 -5
  616. package/dist/core/runner/unreadable-person-rows.d.ts +39 -0
  617. package/dist/core/runner/unreadable-person-rows.js +20 -0
  618. package/dist/core/runner/verdict-refusal.d.ts +22 -7
  619. package/dist/core/runner/verdict-refusal.js +35 -3
  620. package/dist/core/runner/workspace-sync.d.ts +49 -0
  621. package/dist/core/runner/workspace-sync.js +170 -0
  622. package/dist/core/runner-deps.d.ts +63 -34
  623. package/dist/core/scheduler.d.ts +34 -14
  624. package/dist/core/secret-env.d.ts +188 -18
  625. package/dist/core/secret-env.js +291 -56
  626. package/dist/core/sensitive-path-policy.js +3 -2
  627. package/dist/core/session-call-grant-screen.d.ts +58 -0
  628. package/dist/core/session-call-grant-screen.js +18 -0
  629. package/dist/core/session-call-grant.d.ts +93 -0
  630. package/dist/core/session-call-grant.js +524 -0
  631. package/dist/core/session-changes.d.ts +260 -0
  632. package/dist/core/session-changes.js +40 -0
  633. package/dist/core/session-checkout.d.ts +90 -3
  634. package/dist/core/session-checkout.js +142 -9
  635. package/dist/core/session-log-transfer.js +13 -7
  636. package/dist/core/session-policy-store.d.ts +54 -12
  637. package/dist/core/session-policy-store.js +66 -26
  638. package/dist/core/session-store.d.ts +41 -11
  639. package/dist/core/session-store.js +59 -16
  640. package/dist/core/session.d.ts +92 -13
  641. package/dist/core/session.js +8 -1
  642. package/dist/core/shared-artifact-reads.d.ts +93 -0
  643. package/dist/core/shared-artifact-reads.js +94 -0
  644. package/dist/core/shell-read-silence.d.ts +3 -3
  645. package/dist/core/shell-read-silence.js +3 -1
  646. package/dist/core/shell-run-candidates.d.ts +23 -6
  647. package/dist/core/shell-run-candidates.js +34 -11
  648. package/dist/core/skill-grant.d.ts +11 -6
  649. package/dist/core/skill-grant.js +24 -16
  650. package/dist/core/skills-directory.d.ts +9 -45
  651. package/dist/core/skills-directory.js +9 -722
  652. package/dist/core/spend-account.d.ts +232 -0
  653. package/dist/core/spend-account.js +289 -0
  654. package/dist/core/store-contracts/background-agent-store-contract.js +85 -0
  655. package/dist/core/store-contracts/checkpoint-store-contract.d.ts +28 -6
  656. package/dist/core/store-contracts/checkpoint-store-contract.js +423 -35
  657. package/dist/core/store-contracts/file-history-store-contract.d.ts +11 -3
  658. package/dist/core/store-contracts/file-history-store-contract.js +66 -6
  659. package/dist/core/store-contracts/grant-fixture.d.ts +52 -0
  660. package/dist/core/store-contracts/grant-fixture.js +84 -0
  661. package/dist/core/store-contracts/mailbox-store-contract.d.ts +2 -1
  662. package/dist/core/store-contracts/mailbox-store-contract.js +22 -11
  663. package/dist/core/store-contracts/peer-directory-contract.js +8 -0
  664. package/dist/core/store-contracts/permission-rule-sync-contract.js +3 -3
  665. package/dist/core/store-contracts/session-deletion-cascade-contract.js +23 -4
  666. package/dist/core/store-contracts/session-policy-store-contract.js +9 -0
  667. package/dist/core/store-contracts/session-repo-contract.js +56 -1
  668. package/dist/core/store-contracts/session-store-contract.d.ts +35 -2
  669. package/dist/core/store-contracts/session-store-contract.js +579 -6
  670. package/dist/core/store-contracts/tool-result-store-contract.js +8 -7
  671. package/dist/core/store-contracts/workflow-journal-store-contract.js +80 -8
  672. package/dist/core/suspend-lane-reasons.d.ts +13 -0
  673. package/dist/core/suspend-lane-reasons.js +5 -0
  674. package/dist/core/synthetic-read-verdict.d.ts +5 -3
  675. package/dist/core/synthetic-read-verdict.js +1 -1
  676. package/dist/core/task-event.d.ts +57 -53
  677. package/dist/core/task-limits.d.ts +30 -8
  678. package/dist/core/task-notification.d.ts +50 -19
  679. package/dist/core/task-notification.js +54 -18
  680. package/dist/core/task-registry-agent.d.ts +36 -31
  681. package/dist/core/task-registry-agent.js +116 -35
  682. package/dist/core/task-registry-monitor.js +2 -1
  683. package/dist/core/task-registry-shared.d.ts +112 -20
  684. package/dist/core/task-registry-shared.js +33 -7
  685. package/dist/core/task-registry-workflow.d.ts +9 -1
  686. package/dist/core/task-registry-workflow.js +11 -3
  687. package/dist/core/task-registry.d.ts +47 -28
  688. package/dist/core/task-registry.js +77 -20
  689. package/dist/core/task-result.d.ts +199 -35
  690. package/dist/core/task-spec-members.d.ts +21 -3
  691. package/dist/core/task-spec-members.js +11 -2
  692. package/dist/core/task-spec.d.ts +59 -48
  693. package/dist/core/task-start-judge.js +10 -3
  694. package/dist/core/task-stream.d.ts +2 -1
  695. package/dist/core/terminal-cause.d.ts +94 -3
  696. package/dist/core/tool-catalog-entries.js +2 -2
  697. package/dist/core/tool-check-reading.js +2 -1
  698. package/dist/core/tool-errors.js +2 -0
  699. package/dist/core/tool-face-reader.d.ts +3 -2
  700. package/dist/core/tool-gate-phase.d.ts +16 -0
  701. package/dist/core/tool-gate-phase.js +1 -0
  702. package/dist/core/tool-list-grammar.d.ts +0 -47
  703. package/dist/core/tool-list-grammar.js +1 -75
  704. package/dist/core/tool-model-gate.d.ts +7 -11
  705. package/dist/core/tool-model-gate.js +5 -8
  706. package/dist/core/tool-mount-plan.d.ts +7 -0
  707. package/dist/core/tool-mount-plan.js +25 -1
  708. package/dist/core/tool-mount-static.js +3 -2
  709. package/dist/core/tool-name-aliases.d.ts +81 -106
  710. package/dist/core/tool-name-aliases.js +59 -155
  711. package/dist/core/tool-name-readings.d.ts +6 -0
  712. package/dist/core/tool-name-readings.js +10 -1
  713. package/dist/core/tool-policy.d.ts +211 -64
  714. package/dist/core/tool-policy.js +146 -81
  715. package/dist/core/tool-registry.d.ts +2 -0
  716. package/dist/core/tool-registry.js +3 -0
  717. package/dist/core/tool-result-bytes.d.ts +27 -3
  718. package/dist/core/tool-result-bytes.js +53 -0
  719. package/dist/core/tool-result-store.d.ts +11 -28
  720. package/dist/core/tool-result-store.js +7 -38
  721. package/dist/core/tool-roster.d.ts +33 -22
  722. package/dist/core/tool-roster.js +28 -18
  723. package/dist/core/tool-spec-members.d.ts +12 -0
  724. package/dist/core/tool-spec-members.js +31 -0
  725. package/dist/core/tool-spec.d.ts +46 -29
  726. package/dist/core/trace.d.ts +21 -64
  727. package/dist/core/trace.js +2 -3
  728. package/dist/core/types.d.ts +7 -7
  729. package/dist/core/types.js +2 -2
  730. package/dist/core/unavailable-landing.d.ts +72 -0
  731. package/dist/core/unavailable-landing.js +18 -0
  732. package/dist/core/untrusted-egress.d.ts +27 -5
  733. package/dist/core/untrusted-egress.js +32 -10
  734. package/dist/core/untrusted-text.d.ts +8 -0
  735. package/dist/core/untrusted-text.js +14 -0
  736. package/dist/core/usage-window-store.d.ts +11 -1
  737. package/dist/core/usage-window-store.js +5 -0
  738. package/dist/core/user-attachment.d.ts +89 -48
  739. package/dist/core/user-attachment.js +168 -76
  740. package/dist/core/user-row-origin.d.ts +10 -0
  741. package/dist/core/user-row-origin.js +6 -0
  742. package/dist/core/wiring-manifest.d.ts +95 -30
  743. package/dist/core/wiring-manifest.js +65 -13
  744. package/dist/core/workflow-journal-store.d.ts +70 -14
  745. package/dist/core/workflow-journal-store.js +68 -16
  746. package/dist/core/workflow-run-store-contract.js +158 -1
  747. package/dist/core/workflow-run-store.d.ts +138 -23
  748. package/dist/core/workflow-run-store.js +91 -13
  749. package/dist/engine/compaction/compaction.d.ts +15 -3
  750. package/dist/engine/compaction/compaction.js +29 -10
  751. package/dist/engine/execution-env/kill-tree.js +44 -49
  752. package/dist/engine/execution-env/node-execution-env.d.ts +6 -1
  753. package/dist/engine/execution-env/node-execution-env.js +22 -11
  754. package/dist/engine/harness/agent-harness.d.ts +23 -5
  755. package/dist/engine/harness/agent-harness.js +28 -5
  756. package/dist/engine/harness/types.d.ts +118 -30
  757. package/dist/engine/harness/types.js +36 -4
  758. package/dist/engine/llm/rejected-images.js +1 -1
  759. package/dist/engine/llm/tool-turns.d.ts +1 -1
  760. package/dist/engine/llm/types.d.ts +27 -6
  761. package/dist/engine/llm/types.js +5 -2
  762. package/dist/engine/loop/agent-loop.js +43 -11
  763. package/dist/engine/loop/types.d.ts +11 -0
  764. package/dist/engine/session/import-validate.d.ts +9 -0
  765. package/dist/engine/session/import-validate.js +50 -9
  766. package/dist/engine/session/memory-repo.d.ts +20 -4
  767. package/dist/engine/session/memory-repo.js +28 -5
  768. package/dist/engine/session/memory-storage.d.ts +5 -0
  769. package/dist/engine/session/memory-storage.js +8 -3
  770. package/dist/engine/session/parent-chain-guard.js +1 -1
  771. package/dist/engine/session/path-to-root.js +1 -1
  772. package/dist/engine/session/repo-utils.d.ts +28 -12
  773. package/dist/engine/session/repo-utils.js +26 -7
  774. package/dist/engine/session/session.d.ts +30 -10
  775. package/dist/engine/session/session.js +52 -20
  776. package/dist/engine/session/storage-base.d.ts +20 -7
  777. package/dist/engine/session/storage-base.js +15 -3
  778. package/dist/fixtures/index.d.ts +3 -1
  779. package/dist/fixtures/index.js +3 -0
  780. package/dist/host-env.d.ts +17 -0
  781. package/dist/host-env.js +1 -0
  782. package/dist/index.d.ts +113 -53
  783. package/dist/index.js +88 -39
  784. package/dist/internal/harness-types.d.ts +1 -1
  785. package/dist/internal/harness.d.ts +5 -3
  786. package/dist/internal/harness.js +4 -3
  787. package/dist/internal/llm.d.ts +1 -1
  788. package/dist/internal/llm.js +1 -1
  789. package/dist/orchestration/run-workflow-tool.d.ts +53 -13
  790. package/dist/orchestration/run-workflow-tool.js +305 -133
  791. package/dist/orchestration/workflow-catalog.d.ts +254 -0
  792. package/dist/orchestration/workflow-catalog.js +702 -0
  793. package/dist/orchestration/workflow-governance.d.ts +1 -1
  794. package/dist/orchestration/workflow-meta.d.ts +11 -1
  795. package/dist/orchestration/workflow-meta.js +48 -0
  796. package/dist/orchestration/workflow-observe.d.ts +8 -10
  797. package/dist/orchestration/workflow-observe.js +6 -1
  798. package/dist/orchestration/workflow-park-adoption.d.ts +355 -100
  799. package/dist/orchestration/workflow-park-adoption.js +676 -298
  800. package/dist/orchestration/workflow-requirements.d.ts +51 -0
  801. package/dist/orchestration/workflow-requirements.js +54 -0
  802. package/dist/orchestration/workflow-script-runner.d.ts +18 -0
  803. package/dist/orchestration/workflow-script-store.d.ts +19 -64
  804. package/dist/orchestration/workflow-script-store.js +1 -24
  805. package/dist/orchestration/workflow-tree-id.d.ts +66 -0
  806. package/dist/orchestration/workflow-tree-id.js +66 -0
  807. package/dist/orchestration/workflow-types.d.ts +258 -47
  808. package/dist/orchestration/workflow-types.js +32 -5
  809. package/dist/orchestration/workflow.d.ts +86 -46
  810. package/dist/orchestration/workflow.js +1050 -225
  811. package/dist/prompt-assembly/catalog/constitution.js +5 -1
  812. package/dist/prompt-assembly/catalog/core-behavior.d.ts +3 -4
  813. package/dist/prompt-assembly/catalog/core-behavior.js +67 -24
  814. package/dist/prompt-assembly/catalog/engine.d.ts +36 -0
  815. package/dist/prompt-assembly/catalog/engine.js +4 -0
  816. package/dist/prompt-assembly/catalog/environment.js +2 -2
  817. package/dist/prompt-assembly/catalog/events.d.ts +32 -0
  818. package/dist/prompt-assembly/catalog/events.js +4 -0
  819. package/dist/prompt-assembly/catalog/locales/zh-Hans/core-behavior.js +79 -44
  820. package/dist/prompt-assembly/catalog/locales/zh-Hans/engine.js +4 -0
  821. package/dist/prompt-assembly/catalog/locales/zh-Hans/environment.js +2 -2
  822. package/dist/prompt-assembly/catalog/locales/zh-Hans/events.js +4 -0
  823. package/dist/prompt-assembly/catalog/locales/zh-Hans/mechanism.js +2 -2
  824. package/dist/prompt-assembly/catalog/mechanism.js +2 -2
  825. package/dist/prompt-assembly/catalog/schema.d.ts +10 -3
  826. package/dist/prompt-assembly/catalog/schema.js +3 -0
  827. package/dist/prompt-assembly/catalog/sections.js +3 -14
  828. package/dist/prompt-assembly/epoch.d.ts +26 -0
  829. package/dist/prompt-assembly/epoch.js +29 -0
  830. package/dist/prompt-assembly/event-registry.js +4 -0
  831. package/dist/prompt-assembly/select.js +1 -0
  832. package/dist/prompt-assembly/tool-catalog.d.ts +11 -8
  833. package/dist/prompt-assembly/tool-catalog.js +21 -7
  834. package/dist/prompt-assembly/turn-snapshot.d.ts +1 -1
  835. package/dist/prompt-assembly/types.d.ts +3 -0
  836. package/dist/prompts/default.d.ts +6 -3
  837. package/dist/prompts/default.js +6 -0
  838. package/dist/shell/lex.d.ts +10 -7
  839. package/dist/shell/lex.js +56 -6
  840. package/dist/stores/file/adoption/adopt.d.ts +12 -0
  841. package/dist/stores/file/adoption/adopt.js +78 -31
  842. package/dist/stores/file/adoption/marker.d.ts +48 -26
  843. package/dist/stores/file/adoption/marker.js +24 -11
  844. package/dist/stores/file/background-agent-store.d.ts +5 -0
  845. package/dist/stores/file/background-agent-store.js +26 -5
  846. package/dist/stores/file/checkpoint-store.d.ts +11 -10
  847. package/dist/stores/file/checkpoint-store.js +36 -10
  848. package/dist/stores/file/data-root-declaration.js +2 -1
  849. package/dist/stores/file/descriptor-seat.d.ts +100 -0
  850. package/dist/stores/file/descriptor-seat.js +150 -0
  851. package/dist/stores/file/file-history-store.d.ts +6 -0
  852. package/dist/stores/file/file-history-store.js +23 -5
  853. package/dist/stores/file/fs-atomic.d.ts +127 -79
  854. package/dist/stores/file/fs-atomic.js +313 -253
  855. package/dist/stores/file/index.d.ts +24 -5
  856. package/dist/stores/file/index.js +49 -21
  857. package/dist/stores/file/ledger-damage.js +6 -10
  858. package/dist/stores/file/lock-reading.d.ts +158 -0
  859. package/dist/stores/file/lock-reading.js +252 -0
  860. package/dist/stores/file/mailbox-store.d.ts +8 -5
  861. package/dist/stores/file/mailbox-store.js +23 -14
  862. package/dist/stores/file/permission-rule-adopt.js +11 -11
  863. package/dist/stores/file/permission-rule-store.d.ts +14 -3
  864. package/dist/stores/file/permission-rule-store.js +33 -37
  865. package/dist/stores/file/process-anchor.d.ts +93 -0
  866. package/dist/stores/file/process-anchor.js +392 -0
  867. package/dist/stores/file/session-policy-store.d.ts +18 -2
  868. package/dist/stores/file/session-policy-store.js +56 -5
  869. package/dist/stores/file/session-store.d.ts +46 -1
  870. package/dist/stores/file/session-store.js +129 -25
  871. package/dist/stores/file/shared-ledger.d.ts +3 -3
  872. package/dist/stores/file/task-list-store.js +1 -1
  873. package/dist/stores/file/tool-result-store.js +2 -1
  874. package/dist/stores/file/usage-window-store.js +1 -1
  875. package/dist/stores/file/workflow-journal-store.d.ts +19 -6
  876. package/dist/stores/file/workflow-journal-store.js +43 -48
  877. package/dist/stores/file/workflow-run-store.d.ts +20 -4
  878. package/dist/stores/file/workflow-run-store.js +95 -12
  879. package/dist/tools/artifact/artifact-text.d.ts +29 -11
  880. package/dist/tools/artifact/artifact-text.js +13 -6
  881. package/dist/tools/artifact/artifact-tool.d.ts +45 -8
  882. package/dist/tools/artifact/artifact-tool.js +256 -46
  883. package/dist/tools/artifact/conformance.d.ts +27 -5
  884. package/dist/tools/artifact/conformance.js +420 -45
  885. package/dist/tools/artifact/local-stub.d.ts +2 -2
  886. package/dist/tools/artifact/local-stub.js +29 -26
  887. package/dist/tools/fs/bash-failure-output.d.ts +64 -0
  888. package/dist/tools/fs/bash-failure-output.js +40 -0
  889. package/dist/tools/fs/bash-program-position.d.ts +17 -7
  890. package/dist/tools/fs/bash-program-position.js +20 -14
  891. package/dist/tools/fs/bash-readonly-classifier.d.ts +7 -4
  892. package/dist/tools/fs/bash-readonly-classifier.js +9 -2
  893. package/dist/tools/fs/bound-open.d.ts +9 -8
  894. package/dist/tools/fs/bound-open.js +6 -4
  895. package/dist/tools/fs/dead-cwd.d.ts +8 -0
  896. package/dist/tools/fs/dead-cwd.js +7 -7
  897. package/dist/tools/fs/file-read-check.d.ts +8 -6
  898. package/dist/tools/fs/file-read-check.js +8 -4
  899. package/dist/tools/fs/file-write-check.d.ts +14 -0
  900. package/dist/tools/fs/file-write-check.js +35 -0
  901. package/dist/tools/fs/find-actions.d.ts +200 -0
  902. package/dist/tools/fs/find-actions.js +791 -0
  903. package/dist/tools/fs/fs-bash.d.ts +6 -3
  904. package/dist/tools/fs/fs-bash.js +75 -65
  905. package/dist/tools/fs/fs-pdf.js +16 -5
  906. package/dist/tools/fs/fs-read.js +5 -3
  907. package/dist/tools/fs/fs-shared.d.ts +67 -32
  908. package/dist/tools/fs/fs-shared.js +70 -39
  909. package/dist/tools/fs/fs-write.d.ts +23 -3
  910. package/dist/tools/fs/fs-write.js +139 -34
  911. package/dist/tools/fs/index.d.ts +15 -2
  912. package/dist/tools/fs/index.js +8 -4
  913. package/dist/tools/fs/program-read-model.d.ts +17 -1
  914. package/dist/tools/fs/program-read-model.js +7 -2
  915. package/dist/tools/fs/program-read-model.rows.js +5 -1
  916. package/dist/tools/fs/read-deny-home.js +12 -5
  917. package/dist/tools/fs/read-deny.d.ts +6 -1
  918. package/dist/tools/fs/read-deny.js +6 -1
  919. package/dist/tools/fs/read-floor.d.ts +22 -0
  920. package/dist/tools/fs/read-floor.js +15 -6
  921. package/dist/tools/fs/removal-actions.d.ts +43 -0
  922. package/dist/tools/fs/removal-actions.js +25 -0
  923. package/dist/tools/fs/removal-targets.d.ts +4 -5
  924. package/dist/tools/fs/removal-targets.js +115 -6
  925. package/dist/tools/fs/safety.d.ts +39 -1
  926. package/dist/tools/fs/safety.js +61 -2
  927. package/dist/tools/fs/shell-climb.d.ts +46 -0
  928. package/dist/tools/fs/shell-climb.js +79 -0
  929. package/dist/tools/fs/shell-read-bindings.d.ts +56 -7
  930. package/dist/tools/fs/shell-read-bindings.js +175 -26
  931. package/dist/tools/fs/shell-read-check.d.ts +11 -2
  932. package/dist/tools/fs/shell-read-check.js +78 -24
  933. package/dist/tools/fs/shell-read-command-environment.d.ts +56 -0
  934. package/dist/tools/fs/shell-read-command-environment.js +75 -0
  935. package/dist/tools/fs/shell-read-establish.js +97 -37
  936. package/dist/tools/fs/shell-read-judge.d.ts +62 -9
  937. package/dist/tools/fs/shell-read-judge.js +67 -25
  938. package/dist/tools/fs/shell-read-lost-walk.d.ts +19 -0
  939. package/dist/tools/fs/shell-read-lost-walk.js +35 -0
  940. package/dist/tools/fs/shell-read-plan.d.ts +7 -0
  941. package/dist/tools/fs/shell-read-plan.js +47 -13
  942. package/dist/tools/fs/shell-read-sourced.d.ts +4 -3
  943. package/dist/tools/fs/shell-read-sourced.js +28 -3
  944. package/dist/tools/fs/shell-read-start.d.ts +7 -0
  945. package/dist/tools/fs/shell-read-word.js +1 -0
  946. package/dist/tools/fs/shell-read-workdir.d.ts +9 -11
  947. package/dist/tools/fs/shell-read-workdir.js +23 -28
  948. package/dist/tools/fs/shell-read-write-targets.d.ts +17 -8
  949. package/dist/tools/fs/shell-read-write-targets.js +54 -9
  950. package/dist/tools/monitor.d.ts +2 -1
  951. package/dist/tools/monitor.js +2 -0
  952. package/dist/tools/scheduler-tools.d.ts +7 -4
  953. package/dist/tools/scheduler-tools.js +60 -20
  954. package/dist/tools/task-list.d.ts +11 -1
  955. package/dist/tools/task-list.js +187 -134
  956. package/dist/tools/todo.d.ts +1 -1
  957. package/dist/tools/worktree.js +10 -9
  958. package/package.json +6 -2
  959. package/test/export-surface.snapshot.json +760 -36
  960. package/wire-changes/core-stores-sql@7.68.7.json +39 -0
  961. package/wire-changes/core-stores-sql@7.70.0.json +414 -0
  962. package/wire-changes/core-stores-sql@7.71.0.json +40 -0
  963. package/wire-changes/core@7.68.7.json +140 -0
  964. package/wire-changes/core@7.70.0.json +14689 -0
  965. package/wire-changes/core@7.71.0.json +5827 -0
  966. package/wire-changes/mods-kernel@7.68.7.json +39 -0
  967. package/wire-changes/mods-kernel@7.70.0.json +75 -0
  968. package/wire-changes/mods-kernel@7.71.0.json +52 -0
  969. package/wire-changes/primitives@7.68.7.json +39 -0
  970. package/wire-changes/primitives@7.70.0.json +807 -0
  971. package/wire-changes/primitives@7.71.0.json +473 -0
  972. package/wire-changes/wiki-gate@7.68.7.json +39 -0
  973. package/wire-changes/wiki-gate@7.70.0.json +40 -0
  974. package/wire-changes/wiki-gate@7.71.0.json +40 -0
  975. package/dist/core/cache-break-detector.d.ts +0 -98
  976. package/dist/core/cache-break-detector.js +0 -146
  977. package/dist/core/compaction-retired-members.d.ts +0 -12
  978. package/dist/core/compaction-retired-members.js +0 -22
  979. package/dist/core/frontmatter-fence.d.ts +0 -10
  980. package/dist/core/frontmatter-fence.js +0 -6
  981. package/dist/core/loopback-host.d.ts +0 -18
  982. package/dist/core/loopback-host.js +0 -40
  983. package/dist/core/permission-rule-syntax.d.ts +0 -46
  984. package/dist/core/permission-rule-syntax.js +0 -52
  985. package/dist/core/protocol-naming.d.ts +0 -95
  986. package/dist/core/protocol-naming.js +0 -70
  987. package/dist/core/protocol-table.d.ts +0 -88
  988. package/dist/core/protocol-table.js +0 -47
@@ -1,4 +1,5 @@
1
1
  import { type NoticeAttention } from "./governance-codes.js";
2
+ import { type NoticeTold } from "./notice-fact.js";
2
3
  /**
3
4
  * A structured operator-facing notice ({@link RunnerDeps.onNotice}) — a fact the engine announces that
4
5
  * is neither an error nor part of the task result: today, a configured value that was discarded in
@@ -13,11 +14,6 @@ export interface EngineNotice {
13
14
  * announced once per prepared task; `detail: { modelId, declaredAutoCompactTokens,
14
15
  * physicalWindow, sessionId, runId }` — `runId` is what makes the "once per prepared task" claim
15
16
  * checkable, the session id beside it being shared by every run of the session.
16
- * - `"config.compaction_member_ignored"` — a host handed a compaction member this engine receives and no longer
17
- * reads (the summary always runs on the main model, reusing the main request): `TaskSpec.compactionModel`,
18
- * `TaskSpec.compaction.clampTolerance`, the same two on `Runner.compactSession`, and `maybeCompact`'s
19
- * `compactionModel` / `fallbackBudget` / `onWindowSafety`. Told once per process per member; refused by name
20
- * from 7.70.0. `detail: { member }`.
21
17
  * - `"config.env_timeout_discarded"` — a Bash timeout knob (option or env) held a value that is not
22
18
  * the value in force; `detail: { knob, raw, usedMs }`.
23
19
  * - `"config.materialize_env_discarded"` — `SEMA_TOOL_MATERIALIZE_STRATEGY` held a value outside the
@@ -66,15 +62,6 @@ export interface EngineNotice {
66
62
  * at least one type is listed name-only (`nameOnly`) or not at all (`dropped`). Audience `operator`.
67
63
  * `detail: { budgetBytes, total, kept, nameOnly: [name], dropped: [name], sessionId }`; the same
68
64
  * firing rule as its skills sibling below (once per delivered frame, on the carrying message's receipt).
69
- * - `"permission.allowed_tool_not_granted"` — an allow list holds entries that grant (or refuse) nothing: a loaded skill's
70
- * `allowed-tools` / `disallowed-tools`, the request's `TaskSpec.allowedTools`, the deployment's `RunnerDeps.allowedTools`.
71
- * `*` (it voids an allow list; on a deny list it reads as nothing and the rest still refuses), `mcp__*` / `mcp__*__*` (no server
72
- * named), a rule on a tool with no such rule form (an allow by path on a tool other than `Read` / `Edit`),
73
- * a shape the rule grammar refuses, a tool name stale against the run's roster. The run goes on and asks for those tools
74
- * as usual. Audience `user`; once per prepared task for the skill and request lists (`detail.sessionId` present), once
75
- * per Runner for the deployment's (at construction, no session). `detail: { sessionId?, entries: [{ source, entry,
76
- * reason, skill?, list? }] }` (`source` ∈ `skill` / `request` / `deployment`; `skill` and `list` only on a skill's;
77
- * `reason` ∈ {@link import("./allow-entry.js").ALLOW_ENTRY_INERT_REASONS}; `entry` is the entry as written — the message spells it — when it is at most `NOTICE_RULE_TEXT_MAX` (1 024) code points; a longer one is cut to 1 024 plus the truncation mark, 1 025 in all).
78
65
  * - `"permission.allow_rule_not_used_in_auto"` — auto mode does not use an allow rule the person holds (`auto-strip.ts`): the calls
79
66
  * it names go to the classifier. Said at the first call in `auto` the rule would have been read for, then not again in the
80
67
  * conversation for that rule (`src/core/runner/auto-strip-notice.ts`). Audience `user`. `detail: { entry, source, reason, toolName,
@@ -82,8 +69,16 @@ export interface EngineNotice {
82
69
  * source) / `request` / `deployment` / `skill`, `reason` from {@link import("./auto-strip.js").AUTO_STRIP_REASONS}.
83
70
  * - `"mods.registration_refused"` — an extension registration was not mounted: a registration admitted before it
84
71
  * answered `{ refuse }` on `plugin.register`, or failed while judging it (fail-closed). The run goes on without it.
85
- * Audience `user` (the seat is in `detail`). Once per refused registration per run. `detail: { name, seat, tier,
86
- * provenance?, refusedBy, reason, sessionId }` (`seat` ∈ `deployment` / `task`; `provenance` as the host gave it, absent when none).
72
+ * Audience `user`, attention `act`. Once per refused registration per run. `detail: { name, seat, tier,
73
+ * provenance?, refusedBy, reason, sessionId }` (`provenance` as the host gave it, absent when none). 7.71.0 narrows it to the task seat.
74
+ * - `"mods.registration_refused_deployment"` (7.71.0) — the same, for the deployment seat (`RunnerDeps.mods`): audience
75
+ * `operator`, attention `act`; the same message, `detail` and frequency.
76
+ * - `"mods.package_key_unread"` — `loadModPackage` read a package whose `plugin.json` or `hooks.json` carries a member it does not
77
+ * read (another reader's — a skill's, a command's — or a misspelling): the package is loaded without it, and the member is listed on
78
+ * the registration's `unread`. Told when the package is read, outside any run, to the process's notice seat. Audience `operator`.
79
+ * Once per member per read; a package refused is told by its refusal alone. `detail: { package, file, key }` — `package` the
80
+ * package's directory (its real path), `file` the manifest's path inside it, `key` the member's name as a foreign line (one line,
81
+ * up to 60 characters, then the cut mark); never the member's value. The sentence sets the directory as a foreign line too.
87
82
  * - `"mods.display_withheld"` — an answer for a window of an assistant message's display did not stand: its `classic.MessageDisplay`
88
83
  * handler threw, answered a form the station cannot take, or the window was not answered within its own 10 s (counted from when
89
84
  * its text settled, a dispatch slot's wait included). The handler is skipped (the ones below it answer in its place) and the window
@@ -91,13 +86,18 @@ export interface EngineNotice {
91
86
  * unchanged. Audience `user`. Once per failing handler per window, said when the window is released. `detail: { messageId, turn, index, final, cause, registration?,
92
87
  * sessionId }` (`cause` ∈ `threw` / `timeout` / `violation` / `reentry` / `deadline` / `fault`; `registration` names the failing
93
88
  * extension, absent on `deadline` (the window's time ran out) and on `fault` (the engine's own failure to raise it)). A caller's stop says nothing.
94
- * - `"mods.stop_ended"` — a `classic.Stop` / `classic.SubagentStop` answer carrying `end` closed the stop point: the run was not pushed
89
+ * - `"mods.stop_ended"` — a stop event's answer carrying `end` (or a teammate event's, at a named teammate's stop point) closed the stop point: the run was not pushed
95
90
  * back there (the answer's `block` and contexts, and the other seat's, were not fed to the model; the model is not told). It closes
96
91
  * that stop point only — a one-shot submission still waits for what its lane is owed, and a later stop point asks again. Audience
97
92
  * `user`. Once per stop point it closed. `detail: { event, registration, seat, reason?, sessionId, sourceSessionId?, agentId?, runId }`
98
- * (`event` ∈ `classic.Stop` / `classic.SubagentStop`; `registration` the extension whose handler's answer carried `end` — an answer no
93
+ * (`event` ∈ `classic.Stop` / `classic.SubagentStop` / `classic.TaskCompleted` / `classic.TeammateIdle`; `registration` the extension whose handler's answer carried `end` — an answer no
99
94
  * registration produced carries none; `seat` ∈ `deployment` / `task`; `reason` the `end` text, bounded, absent when blank; the address
100
95
  * keys are the leg notice's: a delegated leg's notice goes to its tree's root session and names the leg). A cancelled run says nothing.
96
+ * 7.70.0 narrows it to an `end` that dropped no request of the task seat's to continue (attention `inform`); the other one is the next code.
97
+ * - `"mods.stop_continue_dropped"` (7.70.0) — the deployment seat's answer carrying `end` decided the stop point alone while the task
98
+ * seat's own answer asked the run to continue (a non-empty `block` or `additionalContext`): that request was dropped — the run was not
99
+ * pushed back, the model is not told. Audience `user`, attention `act`. Once per stop point it closed. `detail` as `mods.stop_ended`'s
100
+ * (`seat` is always `deployment`). One stop point closes under exactly one of the two codes.
101
101
  * - `"skills.listing_truncated"` — the `<skills>` disclosure block did not fit its byte budget, so
102
102
  * at least one skill is listed without its description (`nameOnly`) or, in the pathological case,
103
103
  * not listed at all (`dropped`); the `Skill` tool still serves every one of them. Audience
@@ -127,14 +127,14 @@ export interface EngineNotice {
127
127
  * (never the bytes), so the model, `tool_end.output` and the transcript read that; this is the operator's account. A
128
128
  * block refused for its SIZE (`raw_too_large`, `dimensions_too_large`, `base64_too_large`) has its bytes kept in the
129
129
  * run's tool-result store and its placeholder names the `ref`, or why they were not kept (`notKept`: `no_byte_store` |
130
- * `over_limit` | `store_failed`; the store's error text in `saveError`, this account only). ONCE PER CALL.
130
+ * `over_limit` | `store_failed`; the store's words in `saveError` whenever it threw, this account only). ONCE PER CALL.
131
131
  * `detail: { toolName, toolCallId, refused: [{ type, reason, bytes, limit?, width?, height?, mimeType?, ref?, notKept?,
132
132
  * saveError? }], sessionId, runId }` — closed-set words, counts, a media type only when it can be one (≤ 100 characters).
133
133
  * - `"tool_result.media_persisted"` — an MCP tool call or resource read whose server sent binary content the result does
134
134
  * not carry as a media block (audio; a blob outside the admission's image and document sets, a pdf for a model that reads
135
135
  * no document, every blob a resource read returns): the result names each kept piece's ref, or says why it was not kept;
136
136
  * the message is made of the counts. ONCE PER CALL (or read). `detail: { server, toolName, toolCallId, kept: [{ bytes,
137
- * mimeType?, ref | notKept (+ limit on `over_limit`, + saveError on `store_failed`) }], sessionId, runId }`.
137
+ * mimeType?, ref | notKept (+ limit on `over_limit`, + saveError whenever the store threw) }], sessionId, runId }`.
138
138
  * - `"tool_result.read_refused"` — a run's `ReadToolResult` / `SaveToolResult` asked for a ref its tool-result store HOLDS
139
139
  * but which is not the run's to read: the entry records another identity (principal and isolation scope), records none, was
140
140
  * stored without provenance, or the store could not say whose it is. The model read the same miss sentence a ref that is not
@@ -144,20 +144,28 @@ export interface EngineNotice {
144
144
  * `owner_read_failed` | `no_owner_read`; `cause` (on `owner_read_failed`) the store's thrown text. A ref the store does not
145
145
  * hold is never told — except `owner_read_failed`, told whether or not the ref exists (the store could not say; a store
146
146
  * outage is not a miss). Dedup key: (code, occurrenceId).
147
+ * - `"artifact.owner_refused"` — an Artifact tool call whose host answers carried owner records the engine did not judge the
148
+ * run's own (`identityReadVerdict` against the run's identity): another identity's page the host did not mark as shared
149
+ * with the caller, a record naming no identity, one not of its shape, or none at all — withheld (the model read "no artifact
150
+ * at …", a conflict snapshot was not handed back, a listing row was dropped) — or a host that marked the run's own page as
151
+ * shared (the owner record decided; the page was treated as the run's own). AT MOST ONCE PER TOOL CALL. `detail: { action,
152
+ * reasons, count, write, plane, toolCallId, sessionId?, runId }` — `reasons` the distinct words of `other_identity` |
153
+ * `no_identity` | `owner_unreadable` | `no_owner` | `own_page_marked_shared`, `count` the answers and rows judged so, `write`
154
+ * `"unknown"` (a withheld publish answer was `ok`: it may have written) / `"none"` (none was a write's). No owner, no url. Dedup: (code, runId, toolCallId).
147
155
  * - `"config.image_processor_unavailable"` — an image went to the model as it was, over the image admission's soft
148
156
  * target (`IMAGE_ADMISSION.soft.targetBytes`), because the run has no image processor (`RunnerDeps.imageProcessor`
149
157
  * is `false`, or sharp did not resolve). ONCE PER RUN, at the first such image wherever it entered (a tool's result,
150
158
  * the task's images, an attachment). `detail: { bytes, targetBytes, sessionId, runId }`.
151
159
  * - `"fs.staging_file_left"` — a whole-file replace (`NodeExecutionEnv.writeFile`) whose write itself SUCCEEDED could not
152
160
  * remove the staged sibling it had written (the in-place rewrite after a refused rename, or after a refused staging open):
153
- * the file is still on disk, up to the whole content. Audience `operator`. `detail: { path }`, the staged path. Seat-only:
154
- * an environment with no `onNotice` seat says nothing (a failed write carries the same sentence in its error instead).
155
- * ONCE PER LEFT FILE.
161
+ * the file is still on disk, up to the whole content. Audience `operator`. `detail: { path }`, the staged path. An environment
162
+ * with no `onNotice` seat tells it on the process's default seat (`setDefaultEngineNoticeSeat`), else as one process line (a
163
+ * failed write carries the same sentence in its error instead). ONCE PER LEFT FILE.
156
164
  * - `"fs.staging_file_swept"` — a whole-file replace (`NodeExecutionEnv.writeFile`) removed the staged siblings of its target
157
165
  * that a process which no longer runs had left behind (a process killed mid-write runs no cleanup): exactly the names the
158
166
  * replace itself would mint for this target, under a pid that is gone, plain files with one name. A running writer's staged
159
- * file is never touched. Audience `operator`. `detail: { count }` — how many, no names. Seat-only (an environment with no
160
- * `onNotice` seat says nothing). ONCE PER WRITE THAT REMOVED ANY.
167
+ * file is never touched. Audience `operator`. `detail: { count }` — how many, no names. An environment with no `onNotice`
168
+ * seat tells it on the process's default seat, else as one process line. ONCE PER WRITE THAT REMOVED ANY.
161
169
  * - `"session.lineage_rerooted"` — the session this run continues has a log whose replay dropped records it could not read, and this
162
170
  * says what the run lost. Two forms, told apart by `detail.break`: `true` — the branch the run reads broke at a parent the log does
163
171
  * not hold, and the run continues from the entry that names that parent (the branch ends there, as a bounded window ends at its floor)
@@ -177,8 +185,8 @@ export interface EngineNotice {
177
185
  * of the person's input the boundary was for, `cause` the store's code (`FILE_HISTORY_ERROR_CODES`; `aborted` for the fence); never
178
186
  * the store's message, never a path. ONCE PER FAILED CAPTURE, at most once per run.
179
187
  * - `"rewind.file_left_as_is"` — a run's rewind left a tracked file as it is, not a refusal (a `leftAsIs` row; why = its class,
180
- * `FILE_HISTORY_LEFT_AS_IS_CLASSES`). Audience `user`. `detail: { sessionId, path, class }` — the key, never a directory. ONCE PER
181
- * SESSION PER FILE AND CLASS. `Runner.rewindFiles` says no notice: its answer's `leftAsIs` names each such file.
188
+ * `FILE_HISTORY_LEFT_AS_IS_CLASSES`). Audience `user`. The message names the key and its directory, as the run's note does;
189
+ * `detail: { sessionId, path, class }` — the key, no directory. ONCE PER SESSION PER FILE AND CLASS. `Runner.rewindFiles` says no notice: its answer's `leftAsIs` names each such file.
182
190
  * - `"verify.verifier_is_implementer"` (`src/agents/verifier-independence.ts`) — the verification gate's verifier leg answered on the
183
191
  * SAME resolved model id as the implementation leg it judged (`TaskResult.model` of the two: an unset `verifier` role falling back to
184
192
  * the main model, a tier default that names the same entry, or a `verifierModel` that is the implementer's own), so the verdict is a
@@ -188,6 +196,12 @@ export interface EngineNotice {
188
196
  * RUN, at the first verifier leg that read so. Audience `user`; `detail: { model, verifierSeat, sessionId? }` — `model` the
189
197
  * shared id (bounded at 80), `verifierSeat` is `verifierModel` (the call named it) or `roles.verifier` (the role resolved it);
190
198
  * `sessionId` (also lifted to the top level) is the implementation's session, absent when the result carries none.
199
+ * - `"workspace.sync_failed"` (`src/core/runner/workspace-sync.ts`) — an execution environment's `syncWorkspace` seat did not answer
200
+ * ok: it answered `{ ok: false }` (its own code), threw or answered outside the seam's shape (`unknown`), passed the engine's bound
201
+ * (`timeout`; the call may still be running), the run was cut while it ran (`aborted`), or it was not made beside an earlier sync
202
+ * of the workspace that did not return after its abort (`command_in_flight`). The run goes on, its result unchanged; a sync the
203
+ * result was still open for is also a `TaskResult.remoteEnvFailures` row (`op: "syncWorkspace"`). Audience `operator`. `detail:
204
+ * { reason, code, retryable, sessionId, runId? }` — never the adapter's message. ONCE PER SUCH SYNC; `command_in_flight` once a run.
191
205
  * - `"workflow.governance_key_stripped"` (#235) — the fields of an LLM-authored workflow `agent(spec)`
192
206
  * that did NOT cross the governed default-deny whitelist: an unrecognized/control-plane field, or a
193
207
  * `readFace` value that is not the containment-tightening one. The spawn PROCEEDS on the deployment
@@ -207,11 +221,14 @@ export interface EngineNotice {
207
221
  * (`model`, `modelName`, `thinking`, …) is REFUSED at the membrane instead — a silently ignored
208
222
  * `model` runs a different agent than the author asked for.
209
223
  * - `"workflow.parked_decision_unused"` (#4390) — a person's decision for a card a finished workflow run parked on reached
210
- * this leg (`RunInternals.workflowParkedResume`) and the engine did not use it to continue the run. Once per (leg, run); a reason of `WORKFLOW_PARK_SETTLING_REASONS` is told once, recorded on the park's holder, and a later hand-over answered with nothing (`workflowParkDecisionOf` reads it);
211
- * `detail: { runId, decisionIds, reason, holder?, code?, changed?, inputs?, why?, askedBefore?, rowReason?, terminal?, continuedAs? }` plus the leg's address,
212
- * never the token; `reason` ∈ `WORKFLOW_PARK_UNUSED_REASONS`. `ask_unanswerable` = not used, still deliverable; `decision_spent` = used and refused,
224
+ * this leg (`RunInternals.workflowParkedResume`) and the engine did not use it to continue the run. Once per (leg, run) for the run's answer, and once more per reason and code for the decisions of that batch the judgment found settled for good (a drive refused them and no continuation had told it) that the run's answer does not name; a decision is told once per state (#4833): an answer that spends it (its reason's row of `WORKFLOW_PARK_UNUSED_REASON_CLASS` has a `spent` class, and no `kept` one or the answer carries that row's `spentWhen`) once for good, any other reason the park's holder can record once per state it names (the keys `reason`, `code`, `changed`, `inputs`, `holder`, `why`) — recorded on the park's holder, and a later hand-over in that state answered with nothing (`workflowParkDecisionOf` reads it);
225
+ * `detail: { runId, decisionIds, decisionKey, reason, holder?, code?, changed?, inputs?, why?, rowReason?, terminal?, continuedAs?, spent }` plus the leg's address,
226
+ * never the token; `reason` ∈ `WORKFLOW_PARK_UNUSED_REASONS`; `spent` (#5208, always a boolean: whether the answer spent these decisions for good; a notice without it is an older engine's) — what is left to do is `workflowParkUnusedClassOf(reason, spent)`. `ask_unanswerable` = not used, still deliverable; `decision_spent` = used and refused,
213
227
  * a person decides again; `card_unresumable` = this engine never resumes the card (`terminal: true` = no release does); `continuing_elsewhere` = the claim
214
228
  * is held elsewhere, `waiting_elsewhere` = continuing the run would add a waiting line — another line waits on a card (`holder` = its head run, or every head run when several lines wait): not used, still deliverable (once none of those lines waits); `run_not_ended` = the run that holds a card still waiting is recorded as running (its end was never written): not used, deliverable again only once that run has ended; a card no longer pending is `not_pending` whatever the run's record says. Audience user.
229
+ * - `"workflow.parked_decision_used"` (#5208) — the pair of the row above, the positive word: a continuation the engine started from the decisions this leg carried, told once by the leg that started it (a decision it carries is not among that run's unused notices); `detail: { runId, decisionIds, decisionKey, continuedAs }` plus the leg's address, never the token. `decisionKey` (both codes): the first 32 hex characters of the sha256 of the JSON `[runId, ids]` (`runId` the run the decisions name, never the leg that carried them; `ids` without repeats, ascending code-unit order) — compare it, never parse it; a notice's occurrence is (code, `decisionKey`, `reason`). Both codes are told before the leg's first request to its own model; on a leg that resumed to run the model's own `Workflow({ resumeFromRunId })` call for a run, with a Workflow tool mounted, neither is told for that run's readable decisions. The rest — guarantees, presence, limits — is docs/INTEGRATION-CORE.md's. Audience user; attention `audit` (off the screen).
230
+ * - `"workflow.record_unwritten"` (#4486) — a workflow run ended and its terminal record did not land: said on the default seat
231
+ * after the run has answered, at most once per run's end; its `detail` is on its row in `ENGINE_NOTICE_CODES`. Audience operator.
215
232
  * - `"config.host_sink_failed"` — a host seat the run calls failed and was contained: it threw, or —
216
233
  * since an `async` function satisfies a `=> void` seat — it returned a promise that rejected. The run
217
234
  * is untouched (the seat's frame or event is dropped; delivery is never awaited, so a seat that never
@@ -227,6 +244,10 @@ export interface EngineNotice {
227
244
  * observer (`RunnerDeps.onDelegationLifecycle` — its frames are not delivered) or a Node environment's
228
245
  * `onSecretEnvScrub` (its findings fall back to the summary line). `detail: { seat }`. Audience
229
246
  * `operator`. Once per process per seat.
247
+ * - `"config.session_delete_withheld"` — a `TtlSessionStore` was built over a repo that has a head read and a row read but no
248
+ * header-only placement read (`SessionRepo.placementOf`): the owner's delete is judged on the row's head, never on its log, so that store
249
+ * offers no owner's delete (`SessionStore.delete` is absent) until the repo answers the placement from its header. `detail:
250
+ * { missing: "placementOf" }`. Said on the default seat; audience `operator`; once per process.
230
251
  * - `"config.env_knob_adjusted"` — a process-level numeric env knob was not used as written: ignored (not
231
252
  * a positive whole number — the default stands), capped to its ceiling or raised to its floor; the
232
253
  * sentence names the value asked for and the value in force. `detail: { name, applied? }` — `applied`
@@ -245,18 +266,32 @@ export interface EngineNotice {
245
266
  * record naming a process (a file store's directory lock, a run claim, a memory writer's session
246
267
  * account) is judged by pid alone. `detail: { reason }`. Said on the default seat; audience
247
268
  * `operator`; once per process.
269
+ * - `"config.data_root_spelling_split"` — the memory root's value is written in a decomposed spelling: the engine opens its
270
+ * composed (NFC) spelling, and the written spelling's own directory holds data that one does not (`state: "moved"`) or both
271
+ * hold some (`"both"`); nothing is read from it or moved. `detail: { written, opened, state }`. Said on the default seat;
272
+ * audience `operator`, attention `act`; once per directory per process.
248
273
  * - `"store.tail_segment_unjudged"` — a file store's JSONL tail segment larger than the judgeable bound
249
274
  * was ended as a line, not judged; its bytes are untouched. `detail: { path }`. Said on the default
250
- * seat; audience `operator`; once per repair.
275
+ * seat, on a microtask after the write that repaired it; audience `operator`; once per repair.
276
+ * - `"store.append_log_parked"` — the append logs of this loaded module reached their descriptor budget, or an
277
+ * open met the process's descriptor limit and lowered it, and the least recently written ones released theirs
278
+ * (they reopen on their next write). `detail: { budget, cause }` (`budget_reached` | `descriptors_exhausted`).
279
+ * Said on the default seat, on a microtask after the work that parked; `operator`; once per (cause, budget value).
251
280
  * - `"store.lock_retained"` — a lock this live process took could not be handed back, so it may still
252
281
  * name this pid: `detail: { lock, path, pid }`, `lock` one of `"directory_fence"`, `"boot"` (a file
253
282
  * store's data root) or `"mailbox"` (a box lock, unreadable at release or not removable). Said on the
254
283
  * default seat; audience `operator`; once per failed release.
284
+ * - `"store.tree_id_stamp_incomplete"` — the file workflow-run store's open could not give some finished records their tree id
285
+ * (a write that failed or lost: `notStamped`), or its closing compaction failed (`notSynced`: the stamps read as written, and a
286
+ * crash before the store's next synced write loses them): `detail: { path, notStamped, notSynced, code }`, `code` the first
287
+ * failure's system code (`ENOSPC`, …). Said on the default seat; audience `operator`; once per open; the next open tries again.
255
288
  * - `"store.lock_reclaimed_on_declaration"` — a file store's directory lock whose record names no pid
256
289
  * namespace was removed because the host declared, with `declareDataRoot(root, { singleProcessTable:
257
290
  * true })`, that every process opening that data root runs in this process table, and the process the
258
291
  * record names is gone from it. `detail: { path, pid, root }` — the lock, the pid it named, the declared
259
292
  * root that covers it. Said on the default seat; audience `operator`; once per lock removed.
293
+ * - `"store.process_anchor_unavailable"` (Linux; once per process) / `"store.process_anchor_lost"` (once per anchor):
294
+ * the process anchor of a directory lock could not be made, or stopped being its pipe — see `process-anchor.ts`.
260
295
  * - `"memory.notice_unscoped"` — a memory notice (the engine's, or a file store's) named no single
261
296
  * scope, so it was kept off every session's memory notices; said here only when the memory engine has
262
297
  * no incident sink (with one, the sink is told `memory.announcement_withheld`). `detail: { stage }`.
@@ -277,6 +312,10 @@ export interface EngineNotice {
277
312
  * (its body does not decode, or it carries no state word, and the store's listing states none): the row is left parked.
278
313
  * `detail: { handle, scope, cause }`, `cause` `"decode"` | `"no_state"`; once per (scope, handle) per process; said on the
279
314
  * default seat; audience `operator`. Formerly a process `warning` event.
315
+ * - `"delegation.agent_row_ending_unreadable"` — a stored background agent row's ending record does not read (its `outcome`, or the
316
+ * refused asks an earlier engine kept under their own key): the row is answered from its status words and its refusals read as not
317
+ * known (`refused.unreadable`). `detail: { handle, scope, member }`, `member` `"outcome"` | `"refusedAsks"`; once per (scope, handle)
318
+ * per process; said on the default seat; audience `operator`.
280
319
  * - `"delegation.parked_card_id_untrusted"` — a parked background agent's approval card was read, but the id it carries does not
281
320
  * pass the identity judge (`readGateIdentity` against the card's token): the agent's state (`AgentPark`) is read without the id and
282
321
  * says `checkpointIdMissing: "untrusted"`. `detail: { handle, scope }` — never the id; once per (scope, handle) per process; said
@@ -301,7 +340,7 @@ export interface EngineNotice {
301
340
  * mount (the declaration is already the fact, and a mount that later fails must not swallow
302
341
  * it). Dedup unit: once per prepared leg.
303
342
  * - `"protocol.revocation_probe_failed"` (design/338) — the `protocolRevocations.revoked` probe threw or answered a
304
- * non-boolean; MCP and A2A requests FAIL OPEN (revocation tightens) and this announces once per prepared leg,
343
+ * non-boolean; an MCP server's and an outside A2A peer's requests go out, an inside A2A peer's are NOT sent, and this announces once per prepared leg,
305
344
  * whichever protocol asked first (a resume prepares again and may announce again).
306
345
  * `detail: { message, runId }` — still no sessionId (a deployment wiring fact, not session-attributed); `runId`
307
346
  * (#499) makes the once-per-leg claim CHECKABLE without attributing the line to a conversation, an opaque
@@ -340,11 +379,17 @@ export interface EngineNotice {
340
379
  * failure (it waited out the startup bound and is not dialed again), absent when it does not; `sessionId` the session whose MCP pool holds the
341
380
  * attempt (a child's or a workflow agent's: its session tree's root session), `runId` the leg's. A server whose dial failed
342
381
  * `unauthorized` (an authorization the user owes) is NOT told here — `mcp.authorization_required` is its notice; reason `seat_unavailable` owes none and IS told here. `"user"` audience; `sessionId` REQUIRED at the mint.
343
- * Dedup unit: once per session per (server, memory) — the delivery throat's fact key ({@link NOTICE_FACT_KEY}), judged against the
344
- * leg's own session's record; a leg on which the server connected (or a host re-dial that connected it) releases its keys, so a later failure is told again, and a
382
+ * Dedup unit: a fact per (server, memory) — the delivery throat's fact key ({@link NOTICE_FACT_KEY}), told while it holds and not
383
+ * again, judged against the leg's own session's record; a leg on which the server connected (or a host re-dial that connected it), or whose endpoint answered
384
+ * 401 / 403 (an authorization the user owes, told by `mcp.authorization_required`), ends the server's fact ({@link endNoticeFact}), so a later failure is told again, and a
345
385
  * kept failure a leg's own dial made (after a forget, or under a changed declaration) is told again too — a leg the session's
346
386
  * memory answered (`recalled`) tells nothing. Never folded across servers (a second server's failure is its own fact).
347
- * - `"mcp.credential_echoed"` — a protocol peer (an MCP server, an A2A peer) echoed a credential its
387
+ * - `"mcp.server_connecting"` — the leg's wait for its MCP servers (before its first model request) has lasted `MCP_CONNECTING_NOTICE_AFTER_MS`
388
+ * and this server's attempt is still in the air: whom this task's start waits for (a root's, a child's, a workflow member's alike). `detail: { server, waitedMs, boundMs, sessionId, runId }`
389
+ * — the declared name, how long the wait has lasted, the server's startup bound (the wait lasts at most that, or the host's budget
390
+ * `RunnerDeps.mcpFirstRequestWaitMs` when it is less). `"user"` audience, attention `inform`. Dedup unit: once per leg per server — the
391
+ * fact is that leg's wait (the throat's fact key against a record of the wait's own, never the session's), so a later wait is told again.
392
+ * - `"mcp.credential_echoed"` —a protocol peer (an MCP server, an A2A peer) echoed a credential its
348
393
  * connection's requests carried into what it said about itself: an MCP server's `serverInfo`, its
349
394
  * instructions or its tool listing, an A2A peer's agent card. The engine reads that account through
350
395
  * one eraser whose needle is the connection's credentials (`PeerCarrier.credentials`): free text
@@ -355,14 +400,15 @@ export interface EngineNotice {
355
400
  * (`server_info` / `instructions` / `tool_listing` / `agent_card`); never a value. `"operator"`
356
401
  * audience: the endpoint repeats what it is sent, which only whoever wired it can act on. Dedup unit:
357
402
  * once per (materialization, server, site) for MCP and per (materialization, peer) for A2A.
358
- * - `"mcp.injection_dropped"` (L-167) — an entry of the user's own request-lane MCP injection
359
- * was NOT mounted for the leg. The HOST owns the drop sites and supplies the facts; CORE composes
360
- * the notice ({@link import("./mcp-injection-drop.js").mcpInjectionDroppedNotice}, the one mint).
361
- * `detail: { sessionId, server, reason, field? }` — `reason` is the closed set
362
- * `malformed_entry` / `name_reserved_by_deployment` / `gate_closed` / `over_cap`
363
- * (`MCP_INJECTION_DROP_REASONS`, CLOSED-SETS), `field` names the bad key for `malformed_entry`
364
- * when known. `"user"` audience; `sessionId` REQUIRED at the mint (a user row with no session
365
- * routes nowhere — refused, never fabricated). Dedup unit: per leg per server name, the host's.
403
+ * - `"a2a.peer_card_drift"` — an A2A peer registered inside the trust boundary (`A2aServerSpec.boundary: "inside"`) mounted, and
404
+ * its card and its registration's reviewed skills (`allowSkills`) differ: skills the card names that were not reviewed (not
405
+ * mounted) and reviewed skills the card no longer names (nothing mounts for them). The same two lists ride the peer's status row
406
+ * (`A2aPeerStatus.cardDrift`). `detail: { peer, unreviewed, missing, sessionId, runId }` — the skill ids, each spelled as a list entry is (`renderListEntry`:
407
+ * a JSON string, control / format / space characters as `\uXXXX`, cut after 122), one entry per id, each list sorted, at least one non-empty. `"operator"` audience: only whoever owns the registration can review it again. Dedup unit: once per
408
+ * session per (peer, unreviewed, missing) — the delivery throat's fact key ({@link NOTICE_FACT_KEY}), with no end read: a drift told stays told for the session
409
+ * (a card read in part makes "no drift" unknown, not true). Never minted for an
410
+ * outside peer (its `allowSkills` picks skills; it does not review them).
411
+ * - `"mcp.server_stderr"` — what a stdio MCP server wrote to its stderr while its connection was being established, judged whole with its credentials withheld (`mcp-stderr-lines.ts`; the reference's form: not read once the connection is up): one per dial that connected or failed and whose server wrote anything (a stopped dial tells none), its latest lines in the message (at most 32 lines, 2 048 characters). `detail: { server, outcome, lines, notShown, withheld, truncated }` — `outcome` `connected` / `failed`, `lines` the lines written (not blank) and read, `notShown` those the message does not carry, `withheld` those of them a credential's mark or the hold bound swallowed, `truncated` whether more was still arriving when the dial settled. No session — a pooled connection is dialed by one leg, whose seat hears it. `"operator"` audience.
366
412
  * - `"config.models_swapped"` — `Runner.swapDeps` replaced the model catalog generation
367
413
  * (zero-restart model switching; the `models` / `tiers` seats of the swappable set). `detail:
368
414
  * { models, tiers, generation, occurrenceId }` — key COUNTS and the `generation` the swap leaves in force (a digest of
@@ -472,10 +518,15 @@ export interface EngineNotice {
472
518
  * it; a declared departure from CC, which refuses either way), `"denied"` = refused with the classifier's own
473
519
  * sentence (route `none`: no approver and no park facility); the two delegation sites (`readDelegationReview`) mint it
474
520
  * with `disposition: "proceeded"` (went ahead without a ruling; the result records `unreviewed`). `detail: { toolName,
475
- * toolCallId, cause, site, disposition, sessionId?, runId? }` — `cause` is the `AutoModeFallbackCause` word; `site` ∈ `CLASSIFIER_REVIEW_SITES` (`call` at both per-call stations). Once per classification that could not answer (a call judged by an ancestor's
521
+ * toolCallId, cause, site, disposition, refusedBySpend?, sessionId?, runId? }` — `cause` is the `AutoModeFallbackCause` word; `refusedBySpend` (`ceiling` / `closed`, at `call`) says the classification did not run because the spend account refused its request (cause `error`, the sentence says so); `site` ∈ `CLASSIFIER_REVIEW_SITES` (`call` at both per-call stations). Once per classification that could not answer (a call judged by an ancestor's
476
522
  * classifier and the leg's own can carry two); not minted while the call is being aborted (a halt, or the run's end). Audience
477
523
  * `user`: on a lane with no approval face this line is the only place the user hears why the call did not
478
- * run. It is not a block — the denial limit does not count it.
524
+ * run. It is not a block — the denial limit does not count it. 7.70.0 narrows it to `disposition: "denied"` (attention
525
+ * `act`); the other two dispositions are their own codes, with the same `detail` and sentence:
526
+ * - `"classifier.unavailable_handed_on"` (7.70.0) — `site: "call"`, `disposition: "asked"`: the call went on to the live
527
+ * approver or the durable park, whose card or policy answers it. Audience `user`, attention `audit`.
528
+ * - `"classifier.review_skipped"` (7.70.0) — `site` `spawn` / `handback`, `disposition: "proceeded"`: the delegation went
529
+ * ahead without the classifier's check (its own gated calls are still judged one by one). Audience `user`, attention `inform`.
479
530
  * - `"route.credential_origin_mismatch"` (key↔URL pairing, `src/brain/route-adjudicator.ts`; announced by
480
531
  * `src/core/runner/credential-refusal-seat.ts`) — a request was REFUSED, nothing sent, because the per-model
481
532
  * credential it would carry is bound to another origin: the law binds a per-model credential to the origin
@@ -534,7 +585,12 @@ export interface EngineNotice {
534
585
  * delta, a block, a new message). The first ending decided the turn and nothing after it was added
535
586
  * (`AssistantMessage.streamEndIgnored`). ONCE PER LEG PER (statement, word). Audience `user`; `detail: {
536
587
  * statement: "ending" | "error" | "content", word, frames, sessionId, runId }` — `word` the first such frame's
537
- * (for content, its kind), `frames` how many came.
588
+ * (for content, its kind), `frames` how many came. 7.70.0 narrows it to refused frames none of which carried the model's
589
+ * output — a later ending, an error, a frame that only closes or opens a message (attention `inform`); the next code is the other.
590
+ * - `"route.stream_content_dropped"` (7.70.0) — among the frames refused after the end, at least one carried the model's
591
+ * output (text, reasoning, a refusal, a tool call, or a block that opens one: `streamEndIgnored.contentDropped`), which the
592
+ * turn does not have. ONCE PER LEG PER word. Audience `user`, attention `act`; `detail: { word, frames, sessionId, runId }` —
593
+ * `word` the first such frame's kind, `frames` how many frames came after the end in all.
538
594
  * - `"route.extra_body_reserved_dropped"` (#1520) — a request's `Model.extraBody` carried keys the wire adapter
539
595
  * sets itself (`temperature`, `max_tokens`, `stop`, the thinking-enable keys, `messages`, `tools`, …), so the
540
596
  * adapter stripped them and the request went out with the engine's value (or without the key); core wins, and
@@ -573,26 +629,23 @@ export interface EngineNotice {
573
629
  * speed alone. The request that met the push-back is re-sent at standard speed at once. ONCE PER CHANGE. Audience `user`;
574
630
  * `detail: { model, state, reason?, cooldown?, overage?, sessionId, runId }` — the reading of `model` after it
575
631
  * (`fastModeReadingOf`, `brain/fast-mode.ts` words; `cooldown.until` in epoch milliseconds).
576
- * - `"model.role_defaulted"` (#2571; `src/core/runner/role-seat-defaulted.ts`) — a role seat of the merged deployment and task
577
- * maps names a model word the catalog does not hold, so the roles family reads it as an UNSET seat (the tier default and the
578
- * fallback chain follow; a `subagent` seat's children run on the parent's model) and the run goes on, where it used to be
579
- * refused at every prepare. Never minted for `default` (the main model's seat: an unknown word there is still refused,
580
- * `config.unknown_role` / `unknown_model_ref`) nor `classifier` (its own stand-in and its own line, `classifier.role_defaulted`).
581
- * Named once per SESSION per (seat, word), whether or not a read of this leg reaches the seat; root legs only. Audience
582
- * `user` (the default answers where the named model was meant to; the fix stays the operator's), always session-attributed; `detail: { seat, role, model, reason: "unknown_model_ref", fallback, sessionId, runId? }` — `seat` the
583
- * `roles.<role>` the refusal would have named, `model` the word written there (bounded at 80), `fallback` the roles the seat's
584
- * chain would reach, nearest first.
585
632
  * - `"model.fallback"` (#3567; `src/core/runner/model-fallback-seat.ts`) — a model request walked its `Model.fallbacks`
586
633
  * chain: a fallback model answered (`outcome: "served"`) or none could (`"exhausted"`, the request ending with the requested
587
634
  * model's own failure). Read off the answer's marker where the run books each answer — the main loop (`lane: "main"`) and
588
635
  * the side-call book (`compaction` / `classifier` / `mod` / `advisor`); a call outside a leg's book announces nothing.
589
- * ONCE PER SESSION PER (from, to, reason, outcome) — the delivery throat's fact key ({@link NOTICE_FACT_KEY}), judged against the
590
- * leg's own session's record (a compaction pass outside any run, against its pass). Audience `user`; `detail: { from, to, reason, outcome, chain, skipped?, lane,
636
+ * ONCE PER SESSION PER (from, lane, to, reason, outcome) — the delivery throat's fact key ({@link NOTICE_FACT_KEY}), judged against the
637
+ * leg's own session's record (a compaction pass outside any run, against its pass); the requested model's own answer on that lane ends its walks
638
+ * there ({@link endNoticeFact}; another lane's answer ends nothing of them), so the next time it cannot serve there is told again. Audience `user`; `detail: { from, to, reason, outcome, chain, skipped?, lane,
591
639
  * fromWindow?, toWindow?, sessionId, runId? }` — `chain` the hops tried after `from`, `skipped` the hops the deployment Brain's
592
640
  * route judgment refused before sending (`{ model, code?, fixHint? }`, chain order; `route.judgment_failed` for a judgment that threw), the windows the models' `contextWindow`;
593
641
  * `reason: "route_refused"`: the requested model ITSELF was refused before sending (its entry leads `skipped`). A walk that began and
594
642
  * sent no hop (every hop it reached refused) is announced too — `exhausted`, `chain: []`, `skipped`, and no `to` /
595
643
  * `toWindow` (no hop was tried; the answer, its marker-less message and `TaskResult.degraded` stay the requested model's own).
644
+ * Attention `act`. 7.70.0 narrows it to the main lane — the person's own request: a side call's walk is the next code.
645
+ * - `"model.fallback_side_call"` (7.70.0) — a side call's request (`lane` `compaction` / `classifier` / `mod` / `advisor`) walked its
646
+ * fallback chain. It does not change who answers the person, so it is the deployment's to watch: audience `operator`, attention
647
+ * `inform`. The same sentence, `detail` and once-told unit as `model.fallback` (fact key: `from` and `lane`, then `to`, `reason`
648
+ * and `outcome`; the requested model's own answer on that lane ends it).
596
649
  * - `"context.tool_turn_repaired"` (#1224) — a provider request was built from a transcript that breaks the
597
650
  * tool-turn law, and the request view restored it (`engine/llm/tool-turns.ts`; the transcript is never
598
651
  * rewritten): a block after an assistant's tool calls moved ahead of them (`trailing_text`), a result recorded
@@ -627,21 +680,23 @@ export interface EngineNotice {
627
680
  * transcript; a compaction that summarizes the record away returns the schema until the provider refuses it again).
628
681
  * The model can still call the tool. Audience `user`; `detail: { tool, sessionId, runId }`. ONCE PER REFUSAL.
629
682
  * - `"context.messages_omitted"` (#1822) — the request's guard trim, the last resort after compaction declined, failed
630
- * or did not get the request under its guard, left the OLDEST messages out of what the model sees (the model reads
631
- * a line saying earlier messages were omitted; the session keeps every message): why compaction did not make it fit, what
632
- * was left out, the way out. Audience `user`; `detail: { omitted, compaction?, sessionId, runId }`, `compaction` = the in-turn
633
- * compaction's verdict (`landed` yet too large / `noop` / `failed` / `paused` / `off` / `suppressed` / `cut`). ONCE PER TRIMMED
634
- * STRETCH: told on the first trimmed request a context hook handed on, silent while the requests after it stay
635
- * trimmed, said again only after a request that fit (a provisional view the in-turn compaction replaced says
636
- * nothing). A shell that renders a compaction failure as "the context was not shrunk" reads this code for that
637
- * request: the context the model saw WAS shrunk, by omission.
683
+ * or did not get the request under its guard, left the OLDEST messages out of what the model sees (the model reads a line saying
684
+ * earlier messages were omitted; the session keeps every message): why compaction did not make it fit, what was left out, the way
685
+ * out. Audience `user`; `detail: { omitted, compaction?, sessionId, runId }`, `omitted` = how many messages that request left out,
686
+ * `compaction` = the in-turn compaction's verdict (`landed` yet too large / `noop` / `failed` / `paused` / `off` / `suppressed` /
687
+ * `cut`). ONCE PER TRIMMED STRETCH: told on the first trimmed request a context hook handed on, silent while the requests after it
688
+ * stay trimmed unless one leaves out more of the person's own messages (`userMessages`), said again after a request that fit (a
689
+ * provisional view the in-turn compaction replaced says nothing). A shell rendering "the context was not shrunk" reads this code for
690
+ * that request: the context the model saw WAS shrunk, by omission. A stretch's first request whose room (what the fixed prompt
691
+ * leaves of the guard line) cannot hold what it kept is said (`omitted` 0 only past the model's window) with `fixedTokens` /
692
+ * `lineTokens` / `roomTokens` / `neededTokens`.
638
693
  * - `"instructions.withheld"` — an instruction file of the family `NESTED_MEMORY_LANE.declaration` names was not loaded and none of it
639
- * reached the model: the Read admission did not pass it, or (a file the lane found by itself) it lies outside its root and the task root.
640
- * Audience `user`; `detail: { path, reason, sessionId, runId }`, `reason` closed (`INSTRUCTIONS_WITHHELD_REASONS`:
641
- * `rule_denied`, `outside_roots`, `approval_required`, `admission_unknown`, `target_moved`, `outside_its_root`). ONCE PER SESSION per
642
- * (path, reason), across runs; a delegated leg records it and says nothing. A file that exists but cannot be read
643
- * (an I/O error, not text, past the read bound) is the operator's line instead (`onError` phase `degraded`,
644
- * classification `attachment-read`), once per session per path.
694
+ * reached the model: the Read admission did not pass it, or (a file the lane found by itself) it lies outside its root and the task root (unless the request's `TaskSpec.instructionFamily.externalIncludes` approves it — listed by this notice's `detail.path`).
695
+ * Audience `user`; `detail: { path, reason, sessionId, runId }` and, ONLY when the refused probe reached the file through an `@` include (any reason), `includedBy` (the including file's resolved absolute path, or the name of the host text that includes it) and `spelled` (the path after the `@` as the engine read it: a `#fragment` dropped, `\ ` read as a space) — a rules directory's file or a family member carries neither; an `outside_its_root` notice also carries `target` (the key the lane's resolution gave the file it judged — links followed; equal to `path` for a plain file named by its real spelling — present whenever that resolution named a key; the value a host sends back in `externalIncludes` to approve that file); `reason` closed (`INSTRUCTIONS_WITHHELD_REASONS`:
696
+ * `rule_denied`, `outside_roots`, `approval_required`, `admission_unknown`, `target_moved`, `outside_its_root`, `unanchored` — an include that names a place, of a host text named by a label or on a leg with no hands (a relative one in a label's text is told to no one), `path` its spelling — and `too_many_texts` — a host text past the first 20, `path` the first such text's name, no include keys). ONCE PER (FILE, REASON) PER SESSION — keyed on the probed `path` + `reason` (+ `target` where the notice has one), across runs (not once per session: another file, or the same file for another reason, is told again; the same path reached both ways is told by the first probe — a refusal for lying outside the roots by its widest edge when the load ends, and only for a file no edge read in that load);
697
+ * a file an earlier run delivered under an approval stays in the session; the `message` ends with what a person can do about that reason; a delegated leg records it and says nothing. A file that exists but cannot be read
698
+ * (an I/O error, not text, past the read bound) is the operator's line instead (`onError` phase `degraded`, classification `attachment-read`), once per session per path.
699
+ * - `"instructions.outside_root"` (#4820) — a member the family names was LOADED though its real location (links followed) lies outside its root and the task root, as the reference reads it: audience `user`, attention `inform`, `detail: { path, target, sessionId, runId }` (never the contents), once per session per (`path`, `target`) when its frame reaches the transcript; a delegated leg records it and says nothing.
645
700
  * - `"instructions.family_undeclared"` (#4179) — a run was prepared with no instruction family declared (`TaskSpec.instructionFamily`
646
701
  * absent, `projectMemory` not `"disabled"`): no run of this deployment reads an instruction file (CLAUDE.md or another) into the
647
702
  * model's context, and the wiring manifest says only `projectMemory: "absent"`. Declare the family (which file names, which rules
@@ -670,19 +725,16 @@ export interface EngineNotice {
670
725
  * is on that operator line only). Audience `"user"`; `detail: { cause, count, outcome?, finishReason?, inputTokens?,
671
726
  * outputTokens?, contextWindow?, maxTokens?, reasksSoFar?, toolCallIds?, sessionId, runId }` — the five turn facts
672
727
  * and `reasksSoFar` on `truncated` / `unnamed` only (#4716): `reasksSoFar` the re-asks this run's malformed-tool-use
673
- * retry made before the turn the line is about (on a Runner run; other recovery lanes' continues are not counted;
674
- * `"terminal"` with 0 is a turn that failed at first strike, with more a run whose re-asks ran out);
675
- * `count` the calls (or frames) of that cause in the turn or request that first showed it; `outcome` (#1640) on
676
- * `truncated` / `unnamed` only, and only where the turn's own message states it: `"terminal"` — the lane failed
677
- * the run on those calls (its dropped-calls account is on the failed turn; the terminal's `detail.kind` is
678
- * `model_output_invalid`), the sentence says the run ended; `"reissued"` — the turn goes on by the loop's turn
679
- * rules (it carries a tool call, or stopped to call a tool, or stopped at the output cap) and the next request
680
- * asks the model to re-issue them. ABSENT is a fact, not missing data: the message does not say what became of the
681
- * run (a refusal, an abort, a completed turn with nothing to run, a torn stream the loop may resume), and the
682
- * sentence then stops at "so they did not run". Once for the cause that first showed it; `toolCallIds` on
683
- * `missing_result_synthesized` only, each id in the provider echo shape (a stored id outside it is not shown;
684
- * `count` still counts it). Closed-set words, a count and call ids only: never a tool name, an argument or the
685
- * note's text. ONCE PER RUN PER CAUSE. Absent ⇒ nothing of that cause reached the model.
728
+ * retry made before the turn the line is about (on a Runner run; other recovery lanes' continues are not counted);
729
+ * `count` the calls (or frames) of that cause in the turn or request that first showed it. Once for the cause that
730
+ * first showed it; `toolCallIds` on `missing_result_synthesized` only, each id in the provider echo shape (a stored
731
+ * id outside it is not shown; `count` still counts it). Closed-set words, a count and call ids only: never a tool
732
+ * name, an argument or the note's text. ONCE PER RUN PER CODE PER CAUSE. 7.71.0 narrows it to dropped calls whose turn's
733
+ * own message says what became of them (#1640), attention `inform`: `outcome` `terminal` (the lane failed the run on them,
734
+ * `model_output_invalid`; KL-4808-a) or `reissued` (the turn goes on and the next request asks the model to re-issue them).
735
+ * - `"task.tool_turn_unrecovered"` (7.71.0) — the rest of that line, attention `act`, `detail` without `outcome`: dropped
736
+ * calls whose turn states no outcome (a refusal, an abort, a completed turn with nothing to run, a torn stream; the
737
+ * sentence stops at "so they did not run"), `bad_frame`, `missing_result_synthesized`.
686
738
  * - `"config.read_face_deployment_clamped"` (#237) — a deployment-wide `readFace: "open"` is not
687
739
  * in force beside a read-only (verifier) mount: it clamps to "roots" without throwing
688
740
  * (stricter-wins; the clamp verdict stands, only its occurrence was undisclosed). Announced
@@ -727,13 +779,16 @@ export interface EngineNotice {
727
779
  * `detail: { key, valueType }`. Also minted for
728
780
  * `withheldEnv` (key `"withheldEnv"`) when it is neither a list of findings nor `"unknown"`, read at a shell call of
729
781
  * a root leg (once per run).
782
+ * - `"config.execution_env_failure_contract_broken"` (#4740) — the environment broke its failure contract (`execFailureBreachLedger`,
783
+ * `src/core/exec-outcome.ts`, where the breaches, the scope and the detail are); `detail: { breach, code, face, sessionId? }`.
730
784
  * - `"config.read_deny_floor_unkept"` (#2936) — the run's read-deny table holds rows and its execution environment does
731
785
  * not declare it keeps the byte floor (`capabilities.keepsReadFloor`): the engine refuses what a command names, but a
732
786
  * recursive read under a root reads the files below it there, deny rows included. The notice dialect of the refusal
733
787
  * `RunnerDeps.readDenyFloorRequired` turns it into (the prepare then fails with the same code); never minted for an
734
788
  * empty table or an environment that keeps the floor (the Stub of a run without hands keeps it by refusing every
735
- * start). Once per session — the delivery throat's fact key ({@link NOTICE_FACT_KEY}) is the code itself, judged against the
736
- * leg's own session's record (each delegated child on its own environment and its own session) — and once per construction of a
789
+ * start). Told while the fact holds and not again — the delivery throat's fact key ({@link NOTICE_FACT_KEY}) is the code itself, judged against the
790
+ * leg's own session's record (each delegated child on its own environment and its own session); a leg that judged tables and found
791
+ * every one kept or empty ends the fact ({@link endNoticeFact}), so a later leg that finds it unkept is told again — and once per construction of a
737
792
  * library-direct band that compiles its own table. Every run's own fact stays on its wiring manifest
738
793
  * (`WiringManifest.readDenyFloor`). Audience `user` (the session's own reads can reach a forbidden file's bytes; the way out stays the operator's); `detail: { rowCount, sessionId?, runId? }` — both ids on a run's notice, neither on a library-direct band's (no session).
739
794
  * - `"config.read_floor_confinement_unavailable"` — a Node environment was asked to confine its starts to the floor
@@ -832,30 +887,65 @@ export interface EngineNotice {
832
887
  * others), `owner_mismatch` (the folder is another account's), `damaged` (the stored rules, or what holds them, are damaged or not in
833
888
  * a form this engine reads: for a file store a link, not an ordinary file, bytes that are no rule file, or a marker that is none), `later_grammar` (a newer engine wrote them), `no_answer` (the read did not answer in time) or `unclassified` (a
834
889
  * store that states none of these). The sentence names the partition, the cause and the repair; no path rides the notice (the store's own disclosure line carries where). Audience `user`.
835
- * - `"permission.rule_store_unreadable_relaxed"` — the same fact where the leg's mode answers the class with nobody asked (`auto`, `bypassPermissions`), so the line above is not minted; once per SESSION per (fault set, mode) — a fault first found at a call, once per run — `detail: { at, mode, sessionId, runId, faults }` (as above; no rule text, no path). Audience `operator`.
836
- * - `"permission.rule_row_dropped"` — the person's store served project-scoped rows whose scope root is not a
837
- * complete absolute path (only a foreign writer or a hand edit makes one; every engine write face refuses it): they
838
- * take no part in this run's checks — a deny or ask row among them protects nothing — until they are rewritten or
839
- * removed. Once per run, by whichever read met them first. `detail: { rows, count, sessionId, runId }` — `rows`
840
- * the first eight `{ rule, scopeRoot }`, `count` all of them; `rule` is the rule text as the store served it, through the same reading
841
- * as `permission.allowed_tool_not_granted`'s `entries[].entry` (the original, not a spelling of it, when it is at most 1 024 code points;
842
- * a longer one is cut to 1 024 plus the truncation mark, 1 025 in all), `scopeRoot` neutralized and bounded. Audience `user`.
843
- * - `"permission.settings_rules_skipped"` — a leg's own tool policy left out rules a person's settings layer (`user` / `project`) wrote
844
- * whose text the compiler cannot read (`ToolPolicy.skippedRules`); a deny or ask rule among them is NOT in force, each in its own
845
- * clause. At prepare on every leg, for rules no ancestor of its delegation chain holds; once per session per set. `detail: { rules:
846
- * [{ rule, reason, behavior, layer }] (first eight; `reason` the issue code), count, sessionId, sourceSessionId?, agentId?, runId }`
847
- * — a delegated leg's is addressed to its tree's root and names the leg. Audience `user`; never in the model's context.
848
- * - `"config.session_rules_earlier_grammar"` — a session's stored permission rules (`RunnerDeps.sessionPolicyStore`) were
849
- * written in an earlier rule grammar and hold entries it reads otherwise than this engine's would: an entry that grammar
850
- * reads as nothing (an allow admits nothing; a `toolDeny` entry this engine's grammar reads as no rule makes those rules
851
- * refuse every call until they are rewritten), or one whose meaning a later grammar revised — the entry keeps its writer's
852
- * meaning, or takes this grammar's when its writer's could not read it, and the message says which, with both. The message names
853
- * the session, the bucket, the entries (the first five, the rest counted), the reader's word and the way out. Audience
854
- * `user`. Once per session per entry set per bucket per rules session (the session's announced record; runner/earlier-grammar-notice.ts).
855
- * `detail: { bucket, storedGrammar, entries: [{ entry, reader }], rewrite: { by, stampsGrammar }, rulesSessionId,
856
- * sessionId }` — `entries` every one, `entry` through the same reading as `permission.allowed_tool_not_granted`'s;
857
- * `reader` ∈ `no_rule` / `named_no_tool` / `grammar_revised`; `rewrite.by` = `rewrite_in_current_grammar`; `rulesSessionId` the session
858
- * whose rules they are (an ancestor's on a delegated child), `sessionId` the run that read them — both absent on the notice a hand-built `createSessionRulePolicy` given no `onEarlierGrammar` tells through the default seat or a process line.
890
+ * - `"permission.rule_store_unreadable_relaxed"` — the same fact where the leg's mode answers the class with nobody asked (`auto`, `bypassPermissions`), so the line above is not minted; once per SESSION per (fault set, mode) — a fault first found at a call, once per run — `detail: { at, mode, sessionId, runId, faults }` (as above; no rule text, no path). Also minted, under those modes only, for deny or ask rows whose rule itself could not be read (`EffectivePermissionRules.unreadableRows` other than `as_read`): the calls they may reach take the same class (`faults`: `damaged` over the sources their scopes name). Audience `operator`.
891
+ * - `"permission.revival_root_policy_unrestated"` (7.71.0) — a resume on the runner that holds a parked agent's chain live (it registered it when the agent last parked there: its spawn, or an earlier revival there), handed no root task policy (`RunInternals.rootPolicy` / `parkedResume.rootPolicy`) for a chain that carries the root task's own layer: the chain it runs under keeps that layer as registered (on another runner the same resume is refused for it). Said on the resuming runner's `onNotice` the moment the resume's claim is won, before the leg starts — an attempt refused before the claim, or one that loses it, says nothing; a start that fails after the claim and reopens the row says it again on the next won claim (no per-token suppression). `detail: { sessionId }` (the revived leg's). Audience `operator`, attention `act`.
892
+ * - `"config.entries_not_applied"` (7.70.0) — an entry the person wrote did not apply. One frame per kind (`detail.kind`, closed
893
+ * `ENTRIES_NOT_APPLIED_KINDS`), each told as its own mint decides and in its own sentence; `detail: { kind, entries, count, identity,
894
+ * …routing }` — `entries` at most the first eight (`ENTRIES_NOT_APPLIED_SHOWN`), each with `entry` (what the person wrote, as written:
895
+ * a rule's text through `noticeRuleText` — at most 1 024 code points, then the truncation mark; `(unreadable)` for a row whose text
896
+ * could not be read —, a server's name, a model word) and the kind's own members; `count` all of them; `identity` an opaque digest of
897
+ * the whole set (equal for the same set). Audience `user`, attention `act`. The kinds:
898
+ * · `stored_rule_row` — the person's store served rows that take no part in this run's checks (a foreign writer's or a hand
899
+ * edit's, in practice): entries whose behavior word could not be read (no rows: the sentence says where each was served and what
900
+ * was read there), project-scoped rows whose scope root is not a complete absolute path — a deny or ask row among them protects
901
+ * nothing — and allow rows whose text is not the canonical spelling of their stored fields, or a member of which could not be
902
+ * read as the type it holds (they allow nothing), until rewritten or removed; and deny or ask rows of either personal partition a
903
+ * member of which could not be read (`EffectivePermissionRules.unreadableRows`: one whose tool, match and path read, or whose
904
+ * text says them, applies as written; one neither of whose spellings reads — no allow clears a call it may reach). Once per run,
905
+ * by whichever read met them first; one sentence per kind of row present. Each entry: `reason` (`scope_root_not_absolute` /
906
+ * `invalid_rule_text` / `metadata_mismatch` / the unreadable rows' words), `scopeRoot?` (scope rows only, neutralized and
907
+ * bounded), `member?` (the first member that could not be read), `behavior?` (a deny or ask row so read), `element?` (an entry
908
+ * that is no row: `{ partition, index, read }`). Left-out rows first. Routing `sessionId`, `runId`.
909
+ * · `rule_text_unreadable` — a leg's own tool policy left out rules a person's settings layer (`user` / `project`) wrote whose
910
+ * text the compiler cannot read (`ToolPolicy.skippedRules`); a deny or ask rule among them is NOT in force, each in its own
911
+ * clause. At prepare on every leg, for rules no ancestor of its delegation chain holds; once per session per set. Each entry:
912
+ * `reason` (the issue code), `behavior`, `layer`. Routing: the leg notice's (`sessionId`, `sourceSessionId?`, `agentId?`), `runId`.
913
+ * · `mcp_injection_dropped` — an entry of the user's own request-lane MCP injection was NOT mounted for the leg (minted by the
914
+ * host's intake through `mcpInjectionDroppedNotice`, the one mint; see its module). One entry: `entry` the server name as the
915
+ * user spelled it, `reason` (`MCP_INJECTION_DROP_REASONS`), `field?`. Routing `sessionId` (required at the mint).
916
+ * · `model_word_unknown` — a role seat (other than `default` and `classifier`) names a model word the catalog does not hold, or a
917
+ * tier the deployment's tiers leave absent, so the seat is read as an unset one and the run goes on. Once per SESSION per
918
+ * (seat, word, cause), root legs only. One entry: `entry` the word (bounded), `seat`, `role`, `reason` (`unknown_model_ref` /
919
+ * `tier_unbound`), `fallback` (the role's chain). Routing `sessionId`, `runId?`.
920
+ * · `allow_entry_inert` — allow-list entries that grant nothing (a skill's `allowed-tools`, the request's list: once per prepared
921
+ * task; the deployment's: once per Runner, at construction, no session). Each entry: the list (`source`, `skill?`, `list?`) and
922
+ * its reading (`reason` and the inert members). A skill's `disallowed-tools` entry that refuses nothing is
923
+ * `config.skill_deny_unreadable`.
924
+ * · `session_rule_unread` / `session_rule_named_no_tool` — a session's stored allow list (`toolAllow`, `RunnerDeps.sessionPolicyStore`)
925
+ * written in an earlier rule grammar holds entries this engine's grammar reads as no rule (they admit nothing), or that named no
926
+ * tool in grammar 0. Once per session per entry set per rules session. Each entry: `reader`; frame members `bucket`,
927
+ * `storedGrammar`, `rewrite` (`{ by: "rewrite_in_current_grammar", stampsGrammar }`), `rulesSessionId` with `sessionId` (both
928
+ * absent on a hand-built `createSessionRulePolicy`'s notice). · `setting_not_applied` (7.71.0) — see `src/core/shared-artifact-reads.ts`.
929
+ * RETIRED here (BREAKING, named; `NOTICE_CODE_LINEAGE`): `permission.rule_row_dropped`, `permission.settings_rules_skipped`,
930
+ * `mcp.injection_dropped`, `model.role_defaulted` and `permission.allowed_tool_not_granted` — each fact is one kind above (the
931
+ * last one's refusing side `config.skill_deny_unreadable`); last minted by 7.69.1.
932
+ * - `"config.skill_deny_unreadable"` (7.70.0; the spelling of the refusal the skill's activation meets) — a skill's `disallowed-tools`
933
+ * holds entries that refuse nothing, so the skill does not activate: a refusal that reads as nothing is not dropped. Once per
934
+ * prepared task. `detail: { entries, count, identity, sessionId? }` — each entry as `allow_entry_inert`'s. Audience `user`, attention `act`.
935
+ * Before 7.70.0 the refusing side of `permission.allowed_tool_not_granted`.
936
+ * - `"config.session_rules_earlier_grammar"` — a session's stored deny list (`toolDeny`) was written in an earlier rule grammar and
937
+ * holds entries this engine's grammar reads as no rule, so those rules refuse every call until they are rewritten. The message
938
+ * names the session, the bucket, the entries (the first five, the rest counted) and the way out. Audience `user`, attention `act`.
939
+ * Once per session per entry set per bucket per rules session (the session's announced record; runner/earlier-grammar-notice.ts).
940
+ * `detail: { bucket, storedGrammar, entries: [{ entry, reader }], rewrite: { by, stampsGrammar }, rulesSessionId, sessionId }` —
941
+ * `entry` through `noticeRuleText`, `reader` `no_rule`; `rulesSessionId` the session whose rules they are (an ancestor's on a
942
+ * delegated child), `sessionId` the run that read them — both absent on the notice a hand-built `createSessionRulePolicy` given no
943
+ * `onEarlierGrammar` tells through the default seat or a process line. 7.70.0 narrows it to this bucket: an allow-list entry so
944
+ * read is `config.entries_not_applied`, a revised meaning the next code.
945
+ * - `"config.session_rules_reread"` (7.70.0) — the same stored rules hold entries whose meaning a grammar revision after the row's
946
+ * changed: the entry keeps its writer's meaning, or takes this grammar's when its writer's could not read it, and the message says
947
+ * which, with both, and the way to this grammar's. Same `detail` (`reader` `grammar_revised`) and dedup unit. Audience `user`,
948
+ * attention `inform`.
859
949
  * - `"config.legacy_tool_name"` — a tool policy's `deny` or `ask` list (the run's own policy, the session's stored rules, or the rules
860
950
  * an ancestor's session handed down) holds names of tools the engine retired with NO successor (`TaskOutput`, `TeamCreate`, …: the
861
951
  * retirement table's `removed` and `folded` lines). Such a name reaches no tool in any roster, so the prepare-time name audit leaves
@@ -992,7 +1082,9 @@ export interface EngineNotice {
992
1082
  * is the registration that asked, `turn` the turn number it ended; no `inputId`, no `actorId`. The notice
993
1083
  * rides the cut's ACCEPTANCE: a cut that lands after the request's end was delivered but before the loop
994
1084
  * obtained its final is accepted and announced, yet the turn still ends as its answer — that cut is then
995
- * disclosed by `task.halt_unconsumed` (`detail.source: "extension"`) at the result's settlement.
1085
+ * disclosed by `mods.turn_abort_unconsumed` (`detail.source: "extension"`) at the result's settlement.
1086
+ * 7.70.0 narrows this code to the two lanes above (attention `audit`: the echo of the person's own cut); this lane
1087
+ * mints `mods.turn_aborted` (attention `act`, the same `detail`) — an extension's cut is its own fact.
996
1088
  * In every lane: one notice per REAL cut (a `now` that found nothing in flight or whose frame
997
1089
  * already rode the imminent boundary, and a halt with nothing in flight, announce nothing — no
998
1090
  * false interrupt claims); `runId` is the INVOCATION that was cut; every cut turn counts toward
@@ -1019,13 +1111,17 @@ export interface EngineNotice {
1019
1111
  * beside the verb receipt. `detail: { source: "halt", sessionId, runId, taskId }` — `runId` is the run whose ending
1020
1112
  * the halt failed to claim. Audience `"user"`. A REFUSED halt (typed `steering.not_running` throw)
1021
1113
  * mints nothing: the refusal itself is the loud answer.
1022
- * The same code is the trace of the OTHER request that asks to end a turn — an extension's `$.turn.abort` whose cut
1023
- * was ACCEPTED (`task.turn_interrupted` was announced) but that no settlement took as its turn's cause: the turn had
1024
- * already ended on its own outcome (its request's end was delivered before the cut, so it ends as an answer), or
1025
- * the run's own ending won. The result does NOT carry `turnAbortedBy` for it. One per such cut, at the result's
1026
- * settlement (the settle arm). `detail: { source: "extension", extension, turn, sessionId, runId, taskId }` —
1027
- * `extension` and `turn` are the cut's own (the ones its `task.turn_interrupted` carried). `detail.source`
1028
- * (`"halt" | "extension"`) names whose request it was; a steer-now's cut asks to redirect, not to end, and has none.
1114
+ * Attention `act`. 7.70.0 narrows it to the person's halt: the trace of the OTHER request that asks to end a turn is its own code, next.
1115
+ * - `"mods.turn_abort_unconsumed"` (7.70.0; before it, `task.halt_unconsumed` with `source: "extension"`) — an extension's
1116
+ * `$.turn.abort` whose cut was ACCEPTED (`mods.turn_aborted` was announced) but that no settlement took as its turn's
1117
+ * cause: the turn had already ended on its own outcome (its request's end was delivered before the cut, so it ends as an
1118
+ * answer), or the run's own ending won. The result does NOT carry `turnAbortedBy` for it. One per such cut, at the result's
1119
+ * settlement. `detail: { source: "extension", extension, turn, sessionId, runId, taskId }` — `extension` and `turn` are the
1120
+ * cut's own (the ones its `mods.turn_aborted` carried). Audience `"user"`, attention `inform`: the turn's own outcome stands.
1121
+ * - `"mods.turn_aborted"` (7.70.0; before it, `task.turn_interrupted` with `cause: "extension_abort"`) — an extension's
1122
+ * `$.turn.abort({ turn })` cut the running model turn; the run goes on at the ordinary turn boundary. `detail: { cause:
1123
+ * "extension_abort", extension, turn, sessionId, runId, taskId }`. One per real cut. Audience `"user"`, attention `act`: the
1124
+ * person's run ended a turn on someone else's word.
1029
1125
  *
1030
1126
  * - `"task.late_approval"` (design/384 slice 1) — a synchronous ask approval was NOT CONSUMED:
1031
1127
  * a run or turn interrupt released the wait (the `resolveAsk` race arm detached the approver's
@@ -1065,14 +1161,36 @@ export interface EngineNotice {
1065
1161
  * loop's ending stands as it was. A stop that arrives once the result is out is refused typed (`steering.not_running`, every
1066
1162
  * verb alike): the refusal itself is the loud answer.
1067
1163
  *
1164
+ * - `"task.wait_ceiling_reached"` — a one-shot submission's ending (`TaskSpec.oneShot`) waited for the loop-type
1165
+ * background tasks it started and stopped at the wait's own ceiling (`limits.oneShotWaitCeilingMs`, default 600 000 ms)
1166
+ * with some still owed: no stop arrived — the wait gave up. The answer stands as the result. Once per such run, read as the
1167
+ * notice is built, before the run-end sweep: `detail: { sessionId, runId, taskId?, ceilingMs, waitedFor }`, `waitedFor` the
1168
+ * same reading `task.interrupt_unconsumed` carries (`{ taskId, taskType?, status?, description?, stopped? }`, never empty);
1169
+ * the sentence names each task with what the run's end does to it. A stop that lands on the run's tail after this cut no wait:
1170
+ * its `task.interrupt_unconsumed` carries `waitedFor: []`. Audience `"user"`, attention `act` (the result carries nothing from them).
1171
+ *
1068
1172
  * - `"approval.read_root_granted"` / `"approval.read_root_grant_rejected"` — an approver's `readRootGrant`
1069
- * (`AskOutcome`). GRANTED: it equalled the card's `readRootCandidate.dir` beside `allow: true`; this run's READ
1070
- * directories now include it (never the write roots; this run only); `detail: { dir, covers?, root, toolName,
1071
- * toolCallId, sessionId, runId, taskId }`, `root` = the canonical spelling held. REJECTED: nothing changed,
1072
- * the verdict stands; `detail: { reason, offered?, requested?, …same ids }`, `reason` ∈ `on_refusal` |
1073
- * `not_a_string` | `no_candidate` | `mismatch` | `unresolvable` | `resolves_elsewhere` | `admits_artifact_store`
1074
- * (the directory contains the wired local artifact store, lies inside it or is it) | `no_read_roots`. Once per
1075
- * answered ask. Audience `"user"`.
1173
+ * (`AskOutcome`, with its `readRootGrantLasts`). GRANTED: it equalled the card's `readRootCandidate.dir` beside
1174
+ * `allow: true`; the READ directories now include it (never the write roots), for `detail.lasts`: `"session"` — a
1175
+ * session rule the session's later runs read too — or `"run"` (the sentence says why a session-long answer took the
1176
+ * run: the card did not offer it, a policy answered, or the rule could not be written — `sessionUnconfirmed: true` when its
1177
+ * write may have landed all the same); `detail: { dir, covers?, root, lasts, sessionUnconfirmed?, toolName, toolCallId,
1178
+ * checkpointId, sessionId, runId, taskId }`, `root` = the canonical spelling held, `checkpointId` = the card's
1179
+ * `AskRequest.checkpointId`. REJECTED: nothing changed (save a write the message says may have landed), the verdict stands; `detail: { reason,
1180
+ * offered?, requested?, …same ids }`, `reason` ∈ `not_a_string` | `lasts_invalid` (a duration outside `"session"` /
1181
+ * `"run"`, or one with no grant beside it) | `no_candidate` | `mismatch` | `unresolvable` | `resolves_elsewhere` |
1182
+ * `admits_artifact_store` (the directory contains the wired local artifact store, lies inside it or is it) |
1183
+ * `no_read_roots`. Once per answered ask whose grant was a choice that did not take; a grant riding a refusal does not
1184
+ * apply and mints nothing. Audience `"user"`; attention `audit` for both.
1185
+ * - `"approval.session_call_granted"` / `"approval.session_call_grant_rejected"` (`src/core/runner/session-call-grant-station.ts`) —
1186
+ * an approver's `sessionCallGrant` (`AskOutcome`). GRANTED: the card's own `grant` beside `allow: true`, no edit, a person's answer,
1187
+ * and the session row binding the call written (later calls of the session that read back the same binding are allowed by it);
1188
+ * `detail: { rule, cwd, programs, toolName, toolCallId, checkpointId, sessionId, runId, taskId }` (`rule` = the row's text, the key
1189
+ * `removePersistedRule` takes it back by; no word of the command; `checkpointId` = the card's `AskRequest.checkpointId`). REJECTED:
1190
+ * nothing kept (save a write the message says may have landed); `detail: { reason, offered?, requested?, …same ids }` (`offered`: the card's key, when it offered one), `reason` ∈
1191
+ * `SESSION_CALL_GRANT_REJECTIONS` (`not_written`: no longer keeping session rules, or the write failed). Once per answered ask whose
1192
+ * member was a choice that did not take; a refusal, or the card's key in an answer no person gave, mints nothing. Audience `"user"`;
1193
+ * attention `audit` for both (a record of the person's own answer; a surface joins either to its card by `checkpointId`).
1076
1194
  * - `"approval.approver_defect"` (`src/core/runner/approver-defect-announcer.ts`, `approverDefectAnnouncer`; minted by the four stations that put an
1077
1195
  * ask to an approver) — the approver THREW, or ANSWERED outside its contract (an answer that is not `true` / `false` /
1078
1196
  * `"unavailable"` / the `{allow}` object, or an object the seam refuses: a reason that is no string, an attribution or a
@@ -1179,7 +1297,8 @@ export interface EngineNotice {
1179
1297
  * (the design/336 §13-2 model-psyche guardrail). `detail.reportId` (#479) is shared by all
1180
1298
  * three families AND `"memory.harvest_quarantined"` when they derive from the same harvest
1181
1299
  * report — that sharing is the contract (one report, several distinct facts): dedup on
1182
- * `(code, detail.reportId)`; a repeat with the same pair is a replay, a new pair is a new fact.
1300
+ * `(code, detail.reportId)`; a repeat with the same pair is a replay, a new pair is a new fact. `hold_opened`: attention
1301
+ * `inform` (7.71.0; `act` before).
1183
1302
  * - `"memory.harvest_refused"` (#2424) — the boundary harvest was refused wholesale by an incident
1184
1303
  * — the deletion fuse: nothing deleted, the removed files back from their saved copies (and how many
1185
1304
  * could not); a vanished write root or an unreadable control plane: its memory changes did not take effect.
@@ -1251,14 +1370,19 @@ export interface EngineNotice {
1251
1370
  * the message is written per value (a delegated child's inherited floor and a fork's inherited
1252
1371
  * one-way record say so, rather than claiming the session declared it). Audience `"user"`.
1253
1372
  * Dedup unit: once per SESSION — key `(code, detail.sessionId)`, so the standing-record resume
1254
- * arm folds into the standing entry instead of double-announcing.
1373
+ * arm folds into the standing entry instead of double-announcing. 7.70.0 narrows it to the origins the person did not
1374
+ * give on this session (`standing-record`, `delegation-floor`, `fork-origin`); the person's own switch is next. Attention `inform` (7.71.0).
1375
+ * - `"memory.capture_switched_off"` (7.70.0) — the same posture and message, landed by the person's own switch: `origin`
1376
+ * `declaration` (the task declared `capture: "off"`) or `flip-verb` (the live verb). `detail: { sessionId, origin }`. Audience
1377
+ * `"user"` — the frame still reaches the person's stream, where a surface confirms the switch landed — attention `audit`.
1378
+ * Same dedup unit.
1255
1379
  * - `"memory.capture_optout_unpersisted"` (design/383 §2.8) — the OPPOSITE receipt, and a
1256
1380
  * separate code on purpose ("it is off for you" and "it could not be turned off" must never
1257
1381
  * share a spelling): the opt-out could NOT be durably recorded (the control-plane write
1258
- * failed), so it is REFUSED rather than honored in-process under a switch that would silently
1259
- * stop holding at the next resume. Minted only beside that refusal — the throw carrying the
1260
- * same code — never beside a success, and no success notice is minted on this arm.
1261
- * `detail: { sessionId }`. Audience `"user"` (the operator repairs the store, but the
1382
+ * failed, or the memory phase failed before the record was made), so it is REFUSED rather than honored in-process under a
1383
+ * switch that would silently stop holding at the next resume. Minted only beside that refusal — the throw carrying the same
1384
+ * code — never beside a success, and no success notice is minted on this arm. `detail: { sessionId, ingress?, cause, retry,
1385
+ * outsideReason? }` — why, and whether a retry can succeed (`mount-failed-notice.ts`). Audience `"user"` (the operator repairs the store, but the
1262
1386
  * entitlement to the fact belongs to whoever asked for the privacy). **TWO ingresses, and they
1263
1387
  * settle differently — a consumer must not read one as the other:**
1264
1388
  * · PREPARE-TIME (a declared/inherited opt-out, before the run starts) — the refusal is
@@ -1275,9 +1399,9 @@ export interface EngineNotice {
1275
1399
  * - `"memory.mount_failed"` — a memory store that was asked for did not mount for this run (the memory phase's fail-open
1276
1400
  * arm: the task runs without its memory). Minted under the guard that mints the run's `memoryless` / `mount-failed`
1277
1401
  * observation, so the two are one fact; the operator's half is `onError` (`{ phase: "memory" }`), this is the person's.
1278
- * `detail: { sessionId, scopes, cause, outsideReason? }` — `scopes` what the task asked to mount (the whole span failed), `cause`
1279
- * the refusal's code when a member of `STORE_FORM_REFUSAL_CODES`, else `"unclassified"`; `outsideReason` exactly when `cause` is
1280
- * `memory.target_outside_store` (its case); never the thrown text or a path. Audience `"user"`. Dedup: once per SESSION — key
1402
+ * `detail: { sessionId, scopes, cause, outsideReason? }` — `scopes` what the task asked to mount (the whole span failed), `cause` the
1403
+ * refusal's code when a member of `STORE_FORM_REFUSAL_CODES` or `memory.root_anchor_damaged`, else `"unclassified"`; `outsideReason`
1404
+ * exactly when `cause` is `memory.target_outside_store` (its case); never the thrown text or a path. Audience `"user"`. Dedup: once per SESSION — key
1281
1405
  * `(code, detail.sessionId)`; the phase mints once per leg whose mount failed. The model's half: the memory band's writes-unavailable notice.
1282
1406
  * - `"memory.consolidation_incomplete"` (design/376, LLM consolidation driver) — a driver run
1283
1407
  * settled without reaching the fixpoint: `detail` names the stop reason (the closed
@@ -1346,26 +1470,45 @@ export interface EngineNotice {
1346
1470
  * the box and the drain stops at its seq until the bucket refills). Disclosed once per seq per leg,
1347
1471
  * and again when a re-judgment moves a held entry's cause. `detail: { disposition, cause, seq, box,
1348
1472
  * fromSession?, sessionId, runId }`. Audience `"user"`: the session's user is the one who did
1349
- * not receive it.
1473
+ * not receive it. 7.70.0 narrows it to `refused` / `admission_refused` / `notice_unrouted` / `held` (attention `inform`);
1474
+ * the other two arms are their own codes, below, with the same `detail`:
1475
+ * - `"peer.inbound_unread"` (7.70.0) — `disposition: "resupply_exhausted"`: the message's frame was summarized away by a
1476
+ * compaction, re-supplied once and summarized away again; the model never read it and the sender was not told. Attention `act`.
1477
+ * - `"peer.notice_user_only"` (7.70.0) — `disposition: "notice_user_only"` for an idle notice, or a receipt saying the person's
1478
+ * message was not delivered (held, denied, expired, dropped, refused): shown to the person only, the model did not read it —
1479
+ * the person is its one reader. Attention `act`.
1480
+ * - `"peer.receipt_delivered_user_only"` (7.70.0) — `disposition: "notice_user_only"` for a receipt saying the person's message
1481
+ * was delivered: a success, shown to the person only. Attention `inform`.
1350
1482
  * - `"peer.held_settled"` (design/385 §4.4, slice 4) — a message left THIS session's held queue.
1351
1483
  * `detail.settlement` names how: `"delivered"` (a re-judgment or an approval released it into
1352
1484
  * this session's model context), `"refused"` (the setting moved to refuse, or an approval met a
1353
1485
  * refusing policy), `"expired"` (the `dialogExpiry` deadline, an eviction when the 100-entry queue
1354
1486
  * was full, a cancelled review, a graceful shutdown, or a record another lease holder already settled),
1355
- * `"denied"` (the review face), `"dropped"` (the injection lane refused the released frame).
1487
+ * `"denied"` (the review face), `"dropped"` (the injection lane refused the released frame), `"retired"` (the card left
1488
+ * this process with no decision taken: the record stays held in its box, or another consumer settled it).
1356
1489
  * `detail.reason` is the trigger (`PeerHeldSettleReason`: `deadline | evicted | shutdown | rejudge |
1357
- * approved | denied | cancelled | inject_failed | superseded`); the sender was sent the matching receipt
1358
- * whenever the record carried a reply address — except on `superseded`, where the lease holder that
1490
+ * approved | denied | cancelled | inject_failed | superseded | decided_elsewhere`); the sender was sent the matching receipt
1491
+ * whenever the record carried a reply address — except on `superseded` and `decided_elsewhere`, where the consumer that
1359
1492
  * settled the record sent it.
1360
1493
  * `detail: { settlement, reason, seq, box, fromSession?, heldCount, sessionId, runId }`. Audience
1361
- * `"user"`: it is this session's user who held (or was holding) the message.
1494
+ * `"user"`: it is this session's user who held (or was holding) the message. 7.70.0 narrows it to the ways out no one
1495
+ * decided for the person (a deadline, an eviction, a shutdown, a refusal or a drop of a card no person had approved, a
1496
+ * card retired or decided elsewhere; attention `inform`); the other two are their own codes, below, with the same `detail`:
1497
+ * - `"peer.held_approval_unhonored"` (7.70.0) — a card a person approved (the approval itself, a card already `approved`, or
1498
+ * one a person's approval handed over) ended `refused` (the policy refuses now) or `dropped` (the injection lane refused
1499
+ * it): the approval was not honoured. Attention `act`.
1500
+ * - `"peer.held_decision_applied"` (7.70.0) — a card `delivered`, or settled by the person's own deny (`denied`) or cancel
1501
+ * (`expired` with `reason: "cancelled"`): the echo of the decision. Attention `audit`.
1362
1502
  * - `"peer.idle_subscription"` (design/385 §5.2, slice 4) — a peer session asked to be told when
1363
1503
  * THIS session next goes idle (`SendMessage … notify_when_idle`). `detail.outcome`: `"recorded"`
1364
1504
  * / `"refreshed"` (a same-requester re-ask; the subscription is one-shot and expires unfired after
1365
1505
  * 12 h), `"full"` (the 32-entry table is full) or `"refused"` (this session's `crossSessionInbound`
1366
1506
  * is `refuse`) — the last two answered the requester with an `unavailable` notice. `detail:
1367
1507
  * { outcome, fromSession, live, seq, box, sessionId, runId }`. Audience `"user"`: the person whose
1368
- * session is being watched is the one entitled to know (CC announces it in the session UI).
1508
+ * session is being watched is the one entitled to know (CC announces it in the session UI). 7.70.0 narrows it to
1509
+ * `recorded` / `refreshed` (attention `act`); `full` / `refused` are the next code.
1510
+ * - `"peer.idle_subscription_declined"` (7.70.0) — the same ask answered `unavailable` (`outcome` `full` or `refused`): the
1511
+ * requester was told, nothing of this session's is watched. Same `detail`. Audience `"user"`, attention `inform`.
1369
1512
  *
1370
1513
  * - `"delegation.transcript_integrity"` (subagent transcript persistence) — a durable agent row
1371
1514
  * with a BOUND transcript sessionId names a session the reading tree could not open — the store attests `not_found`, or the
@@ -1398,7 +1541,11 @@ export interface EngineNotice {
1398
1541
  * work is the session user's own; the operator hears it through the sink like every code.
1399
1542
  * - `"delegation.resume_lane_missing"` (#3334) — a parked agent resumed by a lane-less drive whose task registry holds no park of it: its completion is routed to its
1400
1543
  * tree's root session — its live run on the drive's runner, else its durable box (`detail.path: "box"`) — or, where the root has no durable box (the sentence names why),
1401
- * the mount's sink; a submission waiting on it elsewhere is not settled by it. Once per drive, at the consume, to the process default seat. `detail: { taskId, rootSessionId?, path? }`. Audience `"operator"`.
1544
+ * the mount's sink; a submission waiting on it elsewhere is not settled by it. Once per drive, at the consume, on the notice seat of the runner the delegation tool runs on (7.70.0; the process default seat for a hand-built seat with no notice door). `detail: { taskId, rootSessionId?, path? }`. Audience `"operator"`.
1545
+ * - `"delegation.spawn_depth_unknown"` — a background agent revived from a row that records no delegation depth
1546
+ * (`BackgroundAgentRecord.spawnDepth`, absent on a row an earlier release wrote) runs without the delegation tool: the
1547
+ * depth it was born at cannot be read, and the waking tool's depth is not its own. Once per revival, on the notice seat
1548
+ * of the runner the delegation tool runs on. `detail: { taskId }`. Audience `"operator"`.
1402
1549
  * - `"delegation.delivery_discarded"` (#3431) — a frame (a background task's completion, a monitor event, a child's message)
1403
1550
  * addressed to an earlier occupant of a session id — the id deleted and created again, by another principal or the same
1404
1551
  * one — was discarded instead of delivered to the occupant the id holds now. Once per frame, by the Runner's per-session
@@ -1495,30 +1642,30 @@ export interface EngineNotice {
1495
1642
  * {@link deliverEngineNotice} — the ONE delivery throat — for every catalogued code. A session screen shows a notice whose audience
1496
1643
  * is `"user"` and whose attention is `"act"`. ABSENT = it has not said, never "ignorable": the delivering engine is older than this
1497
1644
  * member, the code is not catalogued, or the host minted the frame itself ({@link NOTICE_MINTER} `"server"` codes skip the throat)
1498
- * and did not write it ({@link noticeAttentionOf}). A reader falls back to its own `NOTICE_ATTENTION`; an unknown value reads `"act"`. */
1645
+ * and did not write it ({@link noticeAttentionOf}). The throat reads it off the catalog alone: a value a mint or a host carried
1646
+ * into the throat is taken off, so a code outside the catalog always leaves without it. A reader falls back to its own
1647
+ * `NOTICE_ATTENTION`; an unknown value reads `"act"`. */
1499
1648
  attention?: NoticeAttention;
1500
1649
  /** The fact this notice tells, for a code the throat tells once per session per fact ({@link NOTICE_FACT_KEY}): an opaque
1501
- * string, equal on two notices that tell the same fact, compared only for equality. Written by the throat; absent for every
1502
- * other code. */
1650
+ * string, equal on two notices that tell the same fact, compared only for equality. Written by the throat from the catalog
1651
+ * alone (a value carried into the throat is taken off); absent for every other code.
1652
+ *
1653
+ * The engine is the one de-duplicator of a code that carries it: the throat has already told the fact once per session and
1654
+ * lets it be told again only after the fact ended (or after a told record that did not persist). A later frame with the same
1655
+ * `factKey` is therefore the fact happening again — a reader must show it as a new notice and never fold it into the earlier
1656
+ * one. This frame carries no `groupKey` and never will: grouping a per-occurrence code (one with no `factKey`) is the
1657
+ * reader's own choice, over the detail members it chooses. */
1503
1658
  factKey?: string;
1504
1659
  }
1505
- /**
1506
- * What a session has been told through the throat's fact keys ({@link deliverEngineNotice}'s `told`): `has` — was the fact
1507
- * already told; `add` — it was told now; `release` — its fact ended (a server that connected), so a later notice of it is told
1508
- * again. Keys are {@link EngineNotice.factKey} values. The run's implementation is the session's announced record
1509
- * (`announce-once-ledger.ts`); a caller with no session record uses an in-memory one of the same type.
1510
- */
1511
- export interface NoticeTold {
1512
- has(key: string): boolean;
1513
- add(key: string): void;
1514
- release(key: string): void;
1515
- }
1516
- /** Stable digest of one announcement: `sha256(lane \n text)` as hex — the one form of every digest a session's announced record
1517
- * holds (the record's own once-arms, and the throat's fact keys). Opaque on the wire; only ever compared for equality. */
1518
- export declare function announceDigest(lane: string, text: string): string;
1519
- /** The fact key a notice of `code` with this (minted, not yet passed) `detail` leaves the throat with — for a seat that releases
1520
- * a fact it did not deliver (a server that connected): the same text pass the throat applies, then the same digest. */
1521
- export declare function noticeFactKeyOf(code: string, detail: Readonly<Record<string, string>>): string | undefined;
1660
+ export { announceDigest, endNoticeFact, factUnder, type NoticeTold } from "./notice-fact.js";
1661
+ /** The seats a call site can name to the throat ({@link deliverEngineNotice}'s `seat`): what the one-time line for a seat that holds a value
1662
+ * that is not a function calls it. A call site that names none is told with the seats the throat serves listed together. */
1663
+ declare const NOTICE_SEAT_NAMES: {
1664
+ readonly runner: "RunnerDeps.onNotice";
1665
+ readonly environment: "the `onNotice` option of the execution environment";
1666
+ readonly toolkit: "the `onNotice` option of the toolkit";
1667
+ };
1668
+ export type NoticeSeatName = keyof typeof NOTICE_SEAT_NAMES;
1522
1669
  /** Install the process's default notice seat, for what the engine says where no seat is in hand (a brain's construction, a route reading, a peer's dial,
1523
1670
  * a store, a tool band, a process-level knob, a memory engine a host built itself): a second call replaces it, `undefined` removes it (such notices then
1524
1671
  * print as one process line), a seat a station holds always wins, anything but a function or `undefined` is refused (`config.invalid_argument`). */
@@ -1557,10 +1704,14 @@ export declare function __resetMalformedNoticeSeatAnnouncement(): void;
1557
1704
  * handed to no seat; one it does not hold is delivered (by whichever arm below) and then recorded. A code without a fact key,
1558
1705
  * or a delivery with no `told`, is delivered every time, as its mint site decides. The key never names the seat it went to.
1559
1706
  *
1707
+ * · `seat`, when given, is the name the call site knows its `onNotice` by ({@link NoticeSeatName}); the one-time line that says a
1708
+ * present seat holds a value that is not a function names that seat. A call site that does not name it is told with the seats the
1709
+ * throat serves listed together.
1710
+ *
1560
1711
  * Every process line goes through one writer ({@link writeProcessLine}), which is guarded: what the engine says can never fail
1561
1712
  * the call that said it, whichever arm it leaves by.
1562
1713
  */
1563
- export declare function deliverEngineNotice(onNotice: ((notice: EngineNotice) => void) | undefined, notice: EngineNotice, admission?: (notice: EngineNotice) => boolean, told?: NoticeTold): void;
1714
+ export declare function deliverEngineNotice(onNotice: ((notice: EngineNotice) => void) | undefined, notice: EngineNotice, admission?: (notice: EngineNotice) => boolean, told?: NoticeTold, seat?: NoticeSeatName): void;
1564
1715
  /**
1565
1716
  * #259 loud half, one notice PER FAMILY (`task.user_steer_undrained` / `task.user_followup_undrained`):
1566
1717
  * a consumer routing on `code` alone must never mistake a stranded follow-up for a stranded steer, so
@@ -1777,4 +1928,3 @@ export declare function undrainedUserInputNotices(counts: {
1777
1928
  approvalFeedback?: number;
1778
1929
  approvalCarry?: ApprovalCarryRefusal;
1779
1930
  }, taskId?: string, sessionId?: string, runId?: string, parent?: ParentLegIds): EngineNotice[];
1780
- export {};