@sema-agent/core 7.69.1 → 7.70.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 (840) hide show
  1. package/CHANGELOG.md +2477 -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 +2 -0
  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.js +1 -2
  18. package/dist/agents/list-agents-tool.js +2 -1
  19. package/dist/agents/parked-resume-drive.d.ts +38 -0
  20. package/dist/agents/parked-resume-drive.js +57 -0
  21. package/dist/agents/peer-admission.js +4 -3
  22. package/dist/agents/peer-held-queue.d.ts +4 -2
  23. package/dist/agents/peer-held-queue.js +2 -1
  24. package/dist/agents/peer-session-drain.d.ts +2 -0
  25. package/dist/agents/peer-session-drain.js +49 -29
  26. package/dist/agents/repair-loop.js +15 -11
  27. package/dist/agents/retain-ledger.d.ts +71 -18
  28. package/dist/agents/retain-ledger.js +45 -13
  29. package/dist/agents/roster-store.d.ts +11 -3
  30. package/dist/agents/roster-store.js +6 -2
  31. package/dist/agents/send-message-tool.d.ts +2 -1
  32. package/dist/agents/send-message-tool.js +10 -7
  33. package/dist/agents/subagent.d.ts +24 -7
  34. package/dist/agents/subagent.js +256 -144
  35. package/dist/agents/tool-filter.js +1 -1
  36. package/dist/agents/verify.d.ts +4 -1
  37. package/dist/agents/verify.js +22 -16
  38. package/dist/agents/yield-adoption.js +2 -1
  39. package/dist/bench/metrics.js +2 -2
  40. package/dist/brain/anthropic.d.ts +2 -1
  41. package/dist/brain/anthropic.js +3 -3
  42. package/dist/brain/circuit-breaker.js +1 -1
  43. package/dist/brain/model-lane.d.ts +2 -1
  44. package/dist/brain/model-lane.js +22 -9
  45. package/dist/brain/open-responses.d.ts +77 -1
  46. package/dist/brain/open-responses.js +1 -1
  47. package/dist/brain/openai.d.ts +2 -1
  48. package/dist/brain/openai.js +3 -3
  49. package/dist/brain/reasoning.d.ts +8 -1
  50. package/dist/brain/reasoning.js +3 -0
  51. package/dist/brain/reference-model-traits.d.ts +13 -12
  52. package/dist/brain/reference-model-traits.js +11 -10
  53. package/dist/brain/request-route.d.ts +1 -1
  54. package/dist/brain/request-route.js +2 -2
  55. package/dist/brain/route-adjudicator.d.ts +72 -2
  56. package/dist/brain/route-adjudicator.js +210 -69
  57. package/dist/brain/route-conformance.js +35 -0
  58. package/dist/brain/routing.js +2 -2
  59. package/dist/brain/spend-meter.d.ts +56 -0
  60. package/dist/brain/spend-meter.js +263 -0
  61. package/dist/brain/stream-shared.d.ts +1 -1
  62. package/dist/brain/stream-shared.js +3 -1
  63. package/dist/core/a2a-bound-grant.d.ts +110 -0
  64. package/dist/core/a2a-bound-grant.js +83 -0
  65. package/dist/core/a2a-task-state.d.ts +153 -51
  66. package/dist/core/a2a-task-state.js +85 -45
  67. package/dist/core/a2a.d.ts +62 -14
  68. package/dist/core/a2a.js +298 -57
  69. package/dist/core/agent-config-dir.d.ts +53 -6
  70. package/dist/core/agent-config-dir.js +59 -6
  71. package/dist/core/agent-definition.d.ts +1 -1
  72. package/dist/core/agent-state.d.ts +10 -1
  73. package/dist/core/agent-state.js +11 -4
  74. package/dist/core/allow-entry.d.ts +80 -42
  75. package/dist/core/allow-entry.js +119 -61
  76. package/dist/core/allow-rule-shadow.d.ts +25 -3
  77. package/dist/core/allow-rule-shadow.js +7 -0
  78. package/dist/core/approval-object.js +2 -2
  79. package/dist/core/artifact-host.d.ts +109 -6
  80. package/dist/core/artifact-host.js +68 -0
  81. package/dist/core/ask-headline.d.ts +10 -9
  82. package/dist/core/ask-headline.js +9 -3
  83. package/dist/core/ask-origin.d.ts +88 -28
  84. package/dist/core/ask-origin.js +73 -43
  85. package/dist/core/ask-question.d.ts +76 -38
  86. package/dist/core/ask-question.js +151 -22
  87. package/dist/core/ask-unresolvable-notice.d.ts +66 -10
  88. package/dist/core/ask-unresolvable-notice.js +38 -14
  89. package/dist/core/auto-compaction.d.ts +3 -49
  90. package/dist/core/auto-compaction.js +3 -8
  91. package/dist/core/auto-mode-directive.d.ts +17 -5
  92. package/dist/core/auto-mode-directive.js +12 -3
  93. package/dist/core/auto-mode.d.ts +34 -5
  94. package/dist/core/auto-mode.js +43 -5
  95. package/dist/core/background-agent-store.d.ts +100 -11
  96. package/dist/core/background-agent-store.js +64 -6
  97. package/dist/core/background-shell.d.ts +9 -0
  98. package/dist/core/background-shell.js +10 -0
  99. package/dist/core/caller-text.d.ts +2 -2
  100. package/dist/core/caller-tool-name.d.ts +6 -0
  101. package/dist/core/caller-tool-name.js +2 -1
  102. package/dist/core/checkpoint-features.d.ts +38 -422
  103. package/dist/core/checkpoint-features.js +44 -0
  104. package/dist/core/checkpoint-queries.d.ts +14 -3
  105. package/dist/core/checkpoint-queries.js +9 -4
  106. package/dist/core/checkpoint-requirements.d.ts +69 -2
  107. package/dist/core/checkpoint-requirements.js +12 -2
  108. package/dist/core/checkpoint-row-verdict.d.ts +70 -17
  109. package/dist/core/checkpoint-row-verdict.js +75 -29
  110. package/dist/core/checkpoint-store.d.ts +75 -69
  111. package/dist/core/checkpoint-store.js +24 -22
  112. package/dist/core/classifier-unavailable-arm.d.ts +6 -1
  113. package/dist/core/classifier-unavailable-arm.js +8 -5
  114. package/dist/core/config-refusal-codes.d.ts +7 -5
  115. package/dist/core/config-refusal-codes.js +7 -2
  116. package/dist/core/config-refusal-input.d.ts +46 -0
  117. package/dist/core/config-refusal-input.js +62 -0
  118. package/dist/core/context-edit.d.ts +18 -1
  119. package/dist/core/context-edit.js +13 -2
  120. package/dist/core/context-guard.d.ts +60 -13
  121. package/dist/core/context-guard.js +77 -35
  122. package/dist/core/context-settings.d.ts +2 -1
  123. package/dist/core/context-settings.js +10 -6
  124. package/dist/core/corrupt-session-form.d.ts +97 -0
  125. package/dist/core/corrupt-session-form.js +54 -0
  126. package/dist/core/cross-boundary-taint.d.ts +3 -3
  127. package/dist/core/data-root.d.ts +32 -0
  128. package/dist/core/data-root.js +86 -0
  129. package/dist/core/decision-receipt.d.ts +2 -0
  130. package/dist/core/decision-receipt.js +3 -2
  131. package/dist/core/declaration-words.d.ts +37 -0
  132. package/dist/core/declaration-words.js +21 -0
  133. package/dist/core/delegation-frames.d.ts +76 -35
  134. package/dist/core/delegation-frames.js +21 -1
  135. package/dist/core/durable-sync.d.ts +9 -0
  136. package/dist/core/durable-sync.js +37 -0
  137. package/dist/core/engine-capabilities.d.ts +110 -3
  138. package/dist/core/engine-capabilities.js +1 -1
  139. package/dist/core/engine-notice.d.ts +259 -139
  140. package/dist/core/engine-notice.js +13 -19
  141. package/dist/core/engine-version.js +1 -1
  142. package/dist/core/entries-not-applied.d.ts +22 -0
  143. package/dist/core/entries-not-applied.js +26 -0
  144. package/dist/core/exec-gate.d.ts +8 -1
  145. package/dist/core/exec-gate.js +24 -9
  146. package/dist/core/exec-outcome.d.ts +102 -0
  147. package/dist/core/exec-outcome.js +79 -0
  148. package/dist/core/existing-target.d.ts +45 -0
  149. package/dist/core/existing-target.js +54 -8
  150. package/dist/core/fast-tier-door.d.ts +2 -2
  151. package/dist/core/fast-tier-door.js +3 -3
  152. package/dist/core/file-history-store.d.ts +138 -19
  153. package/dist/core/file-history-store.js +124 -33
  154. package/dist/core/gate-fold.js +8 -1
  155. package/dist/core/gate-lanes.js +65 -38
  156. package/dist/core/gate-outcome.d.ts +3 -1
  157. package/dist/core/gate-outcome.js +7 -1
  158. package/dist/core/git-worktree-env.d.ts +25 -5
  159. package/dist/core/git-worktree-env.js +38 -13
  160. package/dist/core/governance-codes.d.ts +179 -40
  161. package/dist/core/governance-codes.js +450 -43
  162. package/dist/core/hands-band.d.ts +1 -1
  163. package/dist/core/hooks.d.ts +75 -13
  164. package/dist/core/hooks.js +4 -0
  165. package/dist/core/host-floor.d.ts +1 -1
  166. package/dist/core/host-floor.js +1 -1
  167. package/dist/core/identity-rekey.d.ts +2 -1
  168. package/dist/core/identity-rekey.js +5 -5
  169. package/dist/core/image-admission.d.ts +2 -2
  170. package/dist/core/image-admission.js +1 -1
  171. package/dist/core/isolation-scope.d.ts +42 -17
  172. package/dist/core/isolation-scope.js +12 -4
  173. package/dist/core/leg-identity.d.ts +17 -2
  174. package/dist/core/leg-identity.js +6 -1
  175. package/dist/core/locked-config.d.ts +86 -16
  176. package/dist/core/locked-config.js +100 -34
  177. package/dist/core/mailbox-store.d.ts +4 -0
  178. package/dist/core/mailbox-store.js +7 -0
  179. package/dist/core/mcp-failure.d.ts +13 -4
  180. package/dist/core/mcp-failure.js +10 -0
  181. package/dist/core/mcp-injection-drop.d.ts +30 -13
  182. package/dist/core/mcp-injection-drop.js +25 -7
  183. package/dist/core/mcp-leg-wait.d.ts +88 -0
  184. package/dist/core/mcp-leg-wait.js +100 -0
  185. package/dist/core/mcp-name-judge.js +1 -2
  186. package/dist/core/mcp-probe.d.ts +30 -1
  187. package/dist/core/mcp-probe.js +5 -3
  188. package/dist/core/mcp-read-bound.d.ts +51 -0
  189. package/dist/core/mcp-read-bound.js +49 -0
  190. package/dist/core/mcp-server-link.js +4 -3
  191. package/dist/core/mcp-server-spec.d.ts +97 -26
  192. package/dist/core/mcp-server-spec.js +51 -19
  193. package/dist/core/mcp-server-unavailable-notice.d.ts +15 -6
  194. package/dist/core/mcp-server-unavailable-notice.js +12 -11
  195. package/dist/core/mcp-stderr-lines.d.ts +69 -0
  196. package/dist/core/mcp-stderr-lines.js +333 -0
  197. package/dist/core/mcp.d.ts +32 -9
  198. package/dist/core/mcp.js +187 -44
  199. package/dist/core/member-outcome.d.ts +281 -0
  200. package/dist/core/member-outcome.js +293 -0
  201. package/dist/core/memory-engine/consolidation.js +3 -3
  202. package/dist/core/memory-engine/content-origin.js +5 -4
  203. package/dist/core/memory-engine/control-objects.js +6 -4
  204. package/dist/core/memory-engine/distiller.js +2 -2
  205. package/dist/core/memory-engine/dual-root.d.ts +12 -5
  206. package/dist/core/memory-engine/dual-root.js +13 -7
  207. package/dist/core/memory-engine/engine.d.ts +27 -31
  208. package/dist/core/memory-engine/engine.js +103 -61
  209. package/dist/core/memory-engine/file-backend.d.ts +16 -3
  210. package/dist/core/memory-engine/file-backend.js +15 -20
  211. package/dist/core/memory-engine/index-copies.d.ts +8 -6
  212. package/dist/core/memory-engine/index-copies.js +2 -1
  213. package/dist/core/memory-engine/index.d.ts +3 -2
  214. package/dist/core/memory-engine/index.js +3 -2
  215. package/dist/core/memory-engine/layout.d.ts +166 -23
  216. package/dist/core/memory-engine/layout.js +235 -40
  217. package/dist/core/memory-engine/memory-backend-contract.js +20 -20
  218. package/dist/core/memory-engine/memory-deployment.d.ts +29 -16
  219. package/dist/core/memory-engine/memory-deployment.js +30 -20
  220. package/dist/core/memory-engine/mount-failed-notice.d.ts +64 -0
  221. package/dist/core/memory-engine/mount-failed-notice.js +50 -2
  222. package/dist/core/memory-engine/projection-ledger.d.ts +48 -0
  223. package/dist/core/memory-engine/projection-ledger.js +130 -0
  224. package/dist/core/memory-engine/scope-contract.js +2 -2
  225. package/dist/core/memory-engine/sync-client.js +1 -2
  226. package/dist/core/memory-engine/types.d.ts +10 -4
  227. package/dist/core/memory.js +3 -5
  228. package/dist/core/mode-policy.d.ts +82 -16
  229. package/dist/core/mode-policy.js +63 -29
  230. package/dist/core/model-seat.d.ts +13 -1
  231. package/dist/core/mods/classic-events.d.ts +13 -1
  232. package/dist/core/mods/dollar.js +2 -1
  233. package/dist/core/mods/extension-call.d.ts +3 -0
  234. package/dist/core/mods/extension-call.js +3 -0
  235. package/dist/core/mods/kernel/dispatch.d.ts +4 -0
  236. package/dist/core/mods/kernel/dispatch.js +3 -3
  237. package/dist/core/mods/kernel/events.d.ts +11 -3
  238. package/dist/core/mods/kernel/events.js +4 -4
  239. package/dist/core/mods/message-display.d.ts +6 -3
  240. package/dist/core/mods/message-display.js +13 -5
  241. package/dist/core/mods/stations.d.ts +8 -1
  242. package/dist/core/mods/stations.js +5 -3
  243. package/dist/core/mods/teammate-stations.d.ts +75 -0
  244. package/dist/core/mods/teammate-stations.js +108 -0
  245. package/dist/core/mounted-mcp.js +1 -2
  246. package/dist/core/namespaced-rule-name.d.ts +1 -1
  247. package/dist/core/namespaced-rule-name.js +1 -1
  248. package/dist/core/notice-fact.d.ts +28 -0
  249. package/dist/core/notice-fact.js +25 -0
  250. package/dist/core/owner-identity.d.ts +8 -3
  251. package/dist/core/owner-identity.js +6 -3
  252. package/dist/core/parent-spec-seat.d.ts +16 -6
  253. package/dist/core/parent-spec-seat.js +28 -6
  254. package/dist/core/park-resumability.d.ts +10 -5
  255. package/dist/core/park-resumability.js +3 -0
  256. package/dist/core/park-selfcheck.js +2 -1
  257. package/dist/core/peer-seat.d.ts +1 -2
  258. package/dist/core/permission-rule-consent.d.ts +50 -1
  259. package/dist/core/permission-rule-consent.js +121 -14
  260. package/dist/core/permission-rule-model.d.ts +135 -39
  261. package/dist/core/permission-rule-model.js +151 -24
  262. package/dist/core/permission-rule-org.d.ts +13 -0
  263. package/dist/core/permission-rule-org.js +8 -0
  264. package/dist/core/permission-rule-provider.d.ts +107 -7
  265. package/dist/core/permission-rule-provider.js +434 -29
  266. package/dist/core/permission-rule-session.js +3 -1
  267. package/dist/core/permission-rule-store.d.ts +19 -2
  268. package/dist/core/permission-rule-store.js +29 -10
  269. package/dist/core/permission-rule-sync.js +5 -2
  270. package/dist/core/permission-rules.js +8 -3
  271. package/dist/core/persisted-rule-arms.d.ts +10 -4
  272. package/dist/core/persisted-rule-arms.js +16 -11
  273. package/dist/core/persisted-rule-buckets.d.ts +66 -0
  274. package/dist/core/persisted-rule-buckets.js +57 -0
  275. package/dist/core/plan-review-facts.d.ts +33 -0
  276. package/dist/core/plan-review-facts.js +25 -0
  277. package/dist/core/prefix-declaration.d.ts +50 -0
  278. package/dist/core/prefix-declaration.js +13 -0
  279. package/dist/core/present-plan-tool.d.ts +13 -3
  280. package/dist/core/present-plan-tool.js +14 -3
  281. package/dist/core/pricing.d.ts +5 -1
  282. package/dist/core/pricing.js +8 -5
  283. package/dist/core/principal-name.d.ts +55 -5
  284. package/dist/core/principal-name.js +57 -16
  285. package/dist/core/process-identity.d.ts +11 -7
  286. package/dist/core/process-identity.js +26 -36
  287. package/dist/core/process-table.d.ts +67 -0
  288. package/dist/core/process-table.js +177 -0
  289. package/dist/core/protocol-http-auth.d.ts +75 -12
  290. package/dist/core/protocol-http-auth.js +223 -26
  291. package/dist/core/protocol-revocation.d.ts +29 -10
  292. package/dist/core/protocol-revocation.js +9 -5
  293. package/dist/core/read-only-shell.d.ts +1 -1
  294. package/dist/core/read-only-shell.js +1 -1
  295. package/dist/core/read-root-grant-screen.d.ts +17 -6
  296. package/dist/core/read-root-grant-screen.js +15 -5
  297. package/dist/core/reminder-mint.d.ts +6 -0
  298. package/dist/core/reminder-mint.js +13 -0
  299. package/dist/core/remote-env.d.ts +111 -3
  300. package/dist/core/remote-env.js +20 -0
  301. package/dist/core/request-copy-projection.js +97 -18
  302. package/dist/core/resource-limit-reasons.d.ts +52 -0
  303. package/dist/core/resource-limit-reasons.js +6 -0
  304. package/dist/core/resume-at-refusal.d.ts +10 -6
  305. package/dist/core/resume-at-refusal.js +2 -2
  306. package/dist/core/resume-config-judge.d.ts +3 -2
  307. package/dist/core/resume-config-judge.js +2 -1
  308. package/dist/core/resume-startup-cause.d.ts +18 -4
  309. package/dist/core/resume-startup-cause.js +30 -6
  310. package/dist/core/retention.d.ts +12 -2
  311. package/dist/core/retention.js +6 -1
  312. package/dist/core/retired-keys.d.ts +5 -0
  313. package/dist/core/retired-keys.js +12 -0
  314. package/dist/core/rewind-conversation.d.ts +54 -0
  315. package/dist/core/rewind-conversation.js +1 -0
  316. package/dist/core/roles.d.ts +61 -3
  317. package/dist/core/roles.js +81 -28
  318. package/dist/core/rule-lane-reads.d.ts +2 -1
  319. package/dist/core/rule-lane-reads.js +54 -29
  320. package/dist/core/rule-offer-read.js +5 -2
  321. package/dist/core/rule-owner.d.ts +6 -1
  322. package/dist/core/rule-owner.js +8 -2
  323. package/dist/core/rule-store-fault.d.ts +4 -2
  324. package/dist/core/rule-store-fault.js +4 -1
  325. package/dist/core/runner/advertised-writable-dirs.d.ts +17 -0
  326. package/dist/core/runner/advertised-writable-dirs.js +15 -9
  327. package/dist/core/runner/announce-once-ledger.js +12 -11
  328. package/dist/core/runner/assemble-result.d.ts +15 -6
  329. package/dist/core/runner/assemble-result.js +12 -5
  330. package/dist/core/runner/auto-strip-notice.d.ts +1 -1
  331. package/dist/core/runner/branch-window.d.ts +25 -2
  332. package/dist/core/runner/branch-window.js +47 -11
  333. package/dist/core/runner/chain-refusal-throw.d.ts +19 -0
  334. package/dist/core/runner/chain-refusal-throw.js +30 -0
  335. package/dist/core/runner/changes-git.d.ts +21 -0
  336. package/dist/core/runner/changes-git.js +291 -0
  337. package/dist/core/runner/changes-history.d.ts +80 -0
  338. package/dist/core/runner/changes-history.js +351 -0
  339. package/dist/core/runner/checkpoint-scope.d.ts +16 -8
  340. package/dist/core/runner/checkpoint-scope.js +6 -4
  341. package/dist/core/runner/child-tree.d.ts +31 -20
  342. package/dist/core/runner/child-tree.js +24 -9
  343. package/dist/core/runner/classifier-ladder.d.ts +4 -2
  344. package/dist/core/runner/classifier-ladder.js +14 -12
  345. package/dist/core/runner/clock-and-limits.d.ts +0 -3
  346. package/dist/core/runner/clock-and-limits.js +1 -2
  347. package/dist/core/runner/compact-session.js +19 -50
  348. package/dist/core/runner/compaction-restate.js +2 -1
  349. package/dist/core/runner/constraint-layers.d.ts +101 -0
  350. package/dist/core/runner/constraint-layers.js +96 -0
  351. package/dist/core/runner/construction-doors.js +2 -0
  352. package/dist/core/runner/content-ask-bindings.d.ts +3 -3
  353. package/dist/core/runner/continuation-gate.d.ts +8 -4
  354. package/dist/core/runner/continuation-gate.js +2 -0
  355. package/dist/core/runner/continues-from.d.ts +7 -0
  356. package/dist/core/runner/continues-from.js +9 -0
  357. package/dist/core/runner/contracts.d.ts +144 -44
  358. package/dist/core/runner/decide-continuation.d.ts +2 -2
  359. package/dist/core/runner/denial-limit-arms.js +3 -4
  360. package/dist/core/runner/earlier-grammar-notice.js +5 -3
  361. package/dist/core/runner/env-capability-census.js +2 -1
  362. package/dist/core/runner/file-history-restore.d.ts +35 -9
  363. package/dist/core/runner/file-history-restore.js +36 -9
  364. package/dist/core/runner/finish-reason-seat.js +13 -4
  365. package/dist/core/runner/gate-exit.d.ts +8 -0
  366. package/dist/core/runner/gate-exit.js +36 -11
  367. package/dist/core/runner/halt-attribution.js +1 -1
  368. package/dist/core/runner/initial-run-state.d.ts +1 -1
  369. package/dist/core/runner/initial-run-state.js +2 -2
  370. package/dist/core/runner/left-as-is-seat.js +1 -1
  371. package/dist/core/runner/mcp-redial.d.ts +15 -4
  372. package/dist/core/runner/mcp-redial.js +53 -6
  373. package/dist/core/runner/memory-capture-optout.d.ts +7 -11
  374. package/dist/core/runner/memory-capture-optout.js +7 -4
  375. package/dist/core/runner/memory-phase-refusals.d.ts +19 -0
  376. package/dist/core/runner/memory-phase-refusals.js +18 -0
  377. package/dist/core/runner/messages-omitted-seat.d.ts +24 -1
  378. package/dist/core/runner/messages-omitted-seat.js +30 -9
  379. package/dist/core/runner/model-fallback-seat.d.ts +18 -5
  380. package/dist/core/runner/model-fallback-seat.js +29 -24
  381. package/dist/core/runner/model-lane-seat.d.ts +23 -1
  382. package/dist/core/runner/model-lane-seat.js +20 -2
  383. package/dist/core/runner/nested-memory-lane.d.ts +64 -57
  384. package/dist/core/runner/nested-memory-lane.js +310 -110
  385. package/dist/core/runner/park-commit.d.ts +26 -5
  386. package/dist/core/runner/park-commit.js +19 -8
  387. package/dist/core/runner/permission-rule-lanes.d.ts +5 -0
  388. package/dist/core/runner/permission-rule-lanes.js +44 -11
  389. package/dist/core/runner/person-path-rows.d.ts +124 -21
  390. package/dist/core/runner/person-path-rows.js +179 -20
  391. package/dist/core/runner/prefix-ledger.d.ts +57 -3
  392. package/dist/core/runner/prefix-ledger.js +98 -8
  393. package/dist/core/runner/prepare-acquire-reconcile.d.ts +2 -1
  394. package/dist/core/runner/prepare-acquire-reconcile.js +13 -65
  395. package/dist/core/runner/prepare-advisor.js +2 -1
  396. package/dist/core/runner/prepare-artifact.d.ts +4 -1
  397. package/dist/core/runner/prepare-artifact.js +3 -3
  398. package/dist/core/runner/prepare-ask-lane.d.ts +4 -0
  399. package/dist/core/runner/prepare-ask-lane.js +7 -5
  400. package/dist/core/runner/prepare-boundary-parks.js +9 -3
  401. package/dist/core/runner/prepare-caps-and-workflow.js +37 -25
  402. package/dist/core/runner/prepare-config-doors.d.ts +13 -14
  403. package/dist/core/runner/prepare-config-doors.js +121 -122
  404. package/dist/core/runner/prepare-context-lane.d.ts +32 -11
  405. package/dist/core/runner/prepare-context-lane.js +77 -48
  406. package/dist/core/runner/prepare-defer-classify.d.ts +12 -0
  407. package/dist/core/runner/prepare-defer-classify.js +29 -7
  408. package/dist/core/runner/prepare-delegation-surface.d.ts +2 -0
  409. package/dist/core/runner/prepare-delegation-surface.js +8 -4
  410. package/dist/core/runner/prepare-execution-env.d.ts +3 -0
  411. package/dist/core/runner/prepare-execution-env.js +10 -5
  412. package/dist/core/runner/prepare-file-history.js +4 -1
  413. package/dist/core/runner/prepare-gate-stations.d.ts +10 -0
  414. package/dist/core/runner/prepare-gate-stations.js +15 -6
  415. package/dist/core/runner/prepare-hands-readface.d.ts +28 -7
  416. package/dist/core/runner/prepare-hands-readface.js +83 -23
  417. package/dist/core/runner/prepare-inherited-gate.d.ts +20 -11
  418. package/dist/core/runner/prepare-inherited-gate.js +27 -16
  419. package/dist/core/runner/prepare-memory-engine-session.js +4 -2
  420. package/dist/core/runner/prepare-memory.d.ts +8 -1
  421. package/dist/core/runner/prepare-memory.js +37 -33
  422. package/dist/core/runner/prepare-offload-wrappers.d.ts +7 -7
  423. package/dist/core/runner/prepare-offload-wrappers.js +26 -17
  424. package/dist/core/runner/prepare-park-ask.d.ts +8 -11
  425. package/dist/core/runner/prepare-park-ask.js +11 -8
  426. package/dist/core/runner/prepare-policy-chain.d.ts +24 -1
  427. package/dist/core/runner/prepare-policy-chain.js +53 -28
  428. package/dist/core/runner/prepare-project-context.d.ts +4 -0
  429. package/dist/core/runner/prepare-project-context.js +9 -8
  430. package/dist/core/runner/prepare-prompt-assembly.js +2 -2
  431. package/dist/core/runner/prepare-protocol-tools.d.ts +2 -2
  432. package/dist/core/runner/prepare-protocol-tools.js +44 -24
  433. package/dist/core/runner/prepare-question-face.d.ts +4 -9
  434. package/dist/core/runner/prepare-question-face.js +8 -3
  435. package/dist/core/runner/prepare-suspend-saga.d.ts +7 -1
  436. package/dist/core/runner/prepare-suspend-saga.js +10 -4
  437. package/dist/core/runner/prepare-task.d.ts +2 -2
  438. package/dist/core/runner/prepare-task.js +141 -57
  439. package/dist/core/runner/prepare-tool-disclosure-mount.js +10 -5
  440. package/dist/core/runner/prepare-turn-wiring.d.ts +3 -1
  441. package/dist/core/runner/prepare-turn-wiring.js +10 -8
  442. package/dist/core/runner/prepare-wiring-manifest.d.ts +6 -19
  443. package/dist/core/runner/prepare-wiring-manifest.js +17 -35
  444. package/dist/core/runner/prepare-workspace-restore.d.ts +4 -11
  445. package/dist/core/runner/prepare-workspace-restore.js +1 -14
  446. package/dist/core/runner/read-root-grant.d.ts +48 -13
  447. package/dist/core/runner/read-root-grant.js +53 -19
  448. package/dist/core/runner/read-session-changes.d.ts +9 -0
  449. package/dist/core/runner/read-session-changes.js +192 -0
  450. package/dist/core/runner/remote-env-retry.d.ts +4 -4
  451. package/dist/core/runner/resume-admission.d.ts +11 -7
  452. package/dist/core/runner/resume-admission.js +25 -15
  453. package/dist/core/runner/resume-apply.js +2 -1
  454. package/dist/core/runner/resume-checkpoint-screen.d.ts +7 -2
  455. package/dist/core/runner/resume-checkpoint-screen.js +32 -17
  456. package/dist/core/runner/resume-internals-and-config.d.ts +3 -0
  457. package/dist/core/runner/resume-internals-and-config.js +10 -7
  458. package/dist/core/runner/resume-policy-outcome.d.ts +4 -3
  459. package/dist/core/runner/resume-policy-outcome.js +2 -2
  460. package/dist/core/runner/retired-name-policy.d.ts +15 -0
  461. package/dist/core/runner/retired-name-policy.js +37 -0
  462. package/dist/core/runner/retired-runner-deps.js +3 -1
  463. package/dist/core/runner/rewind-conversation.d.ts +10 -0
  464. package/dist/core/runner/rewind-conversation.js +100 -0
  465. package/dist/core/runner/rewind-files.js +37 -20
  466. package/dist/core/runner/rewind-target.d.ts +28 -0
  467. package/dist/core/runner/rewind-target.js +58 -0
  468. package/dist/core/runner/role-resolution-table.d.ts +3 -16
  469. package/dist/core/runner/role-resolution-table.js +1 -3
  470. package/dist/core/runner/role-seat-defaulted.d.ts +14 -5
  471. package/dist/core/runner/role-seat-defaulted.js +17 -13
  472. package/dist/core/runner/rule-store-unreadable-notice.d.ts +8 -6
  473. package/dist/core/runner/rule-store-unreadable-notice.js +6 -4
  474. package/dist/core/runner/run-compaction-machinery.js +2 -2
  475. package/dist/core/runner/run-harness-handlers.js +43 -11
  476. package/dist/core/runner/run-identity-wiring.d.ts +2 -0
  477. package/dist/core/runner/run-identity-wiring.js +3 -2
  478. package/dist/core/runner/run-leg.js +19 -28
  479. package/dist/core/runner/run-notification-lane.js +2 -2
  480. package/dist/core/runner/run-settle-and-teardown.js +32 -17
  481. package/dist/core/runner/run-stop-and-final-verify.js +66 -69
  482. package/dist/core/runner/run-telemetry-and-budget-seats.js +14 -8
  483. package/dist/core/runner/run-turn-boundary.js +3 -6
  484. package/dist/core/runner/runtask.d.ts +22 -16
  485. package/dist/core/runner/runtask.js +18 -8
  486. package/dist/core/runner/sandbox-network-seat.js +1 -1
  487. package/dist/core/runner/seat-model-doors.d.ts +6 -5
  488. package/dist/core/runner/seat-model-doors.js +4 -3
  489. package/dist/core/runner/session-file-state-replay.d.ts +47 -8
  490. package/dist/core/runner/session-file-state-replay.js +97 -11
  491. package/dist/core/runner/session-files-open.d.ts +64 -0
  492. package/dist/core/runner/session-files-open.js +33 -0
  493. package/dist/core/runner/session-read-file-states.d.ts +37 -41
  494. package/dist/core/runner/session-read-file-states.js +14 -6
  495. package/dist/core/runner/session-rule-policy.d.ts +5 -0
  496. package/dist/core/runner/session-rule-policy.js +16 -9
  497. package/dist/core/runner/session-verb-doors.d.ts +41 -4
  498. package/dist/core/runner/session-verb-doors.js +66 -11
  499. package/dist/core/runner/shared-read-classifier.d.ts +14 -3
  500. package/dist/core/runner/shared-read-classifier.js +14 -6
  501. package/dist/core/runner/shell-env-withheld.d.ts +4 -2
  502. package/dist/core/runner/shell-env-withheld.js +3 -2
  503. package/dist/core/runner/side-call-account.d.ts +47 -5
  504. package/dist/core/runner/side-call-account.js +37 -3
  505. package/dist/core/runner/skipped-rules-notice.d.ts +5 -5
  506. package/dist/core/runner/skipped-rules-notice.js +3 -3
  507. package/dist/core/runner/stream-settle-backstop.js +5 -4
  508. package/dist/core/runner/sub-agent-deny-lists.d.ts +26 -7
  509. package/dist/core/runner/sub-agent-deny-lists.js +23 -15
  510. package/dist/core/runner/task-start-doors.d.ts +7 -3
  511. package/dist/core/runner/task-start-doors.js +72 -31
  512. package/dist/core/runner/terminal-account.js +14 -8
  513. package/dist/core/runner/terminal-projection.d.ts +3 -2
  514. package/dist/core/runner/terminal-projection.js +2 -2
  515. package/dist/core/runner/tool-defer-gate.d.ts +1 -1
  516. package/dist/core/runner/tool-end-body.d.ts +8 -1
  517. package/dist/core/runner/tool-end-body.js +4 -3
  518. package/dist/core/runner/tool-face-overlay.js +6 -4
  519. package/dist/core/runner/tool-result-media-seat.d.ts +2 -1
  520. package/dist/core/runner/tool-table-view.js +1 -1
  521. package/dist/core/runner/trim-stretch.d.ts +43 -0
  522. package/dist/core/runner/trim-stretch.js +34 -0
  523. package/dist/core/runner/turn-attachments.js +7 -2
  524. package/dist/core/runner/unreadable-person-rows.d.ts +39 -0
  525. package/dist/core/runner/unreadable-person-rows.js +20 -0
  526. package/dist/core/runner/verdict-refusal.d.ts +22 -7
  527. package/dist/core/runner/verdict-refusal.js +35 -3
  528. package/dist/core/runner/workspace-sync.d.ts +49 -0
  529. package/dist/core/runner/workspace-sync.js +170 -0
  530. package/dist/core/runner-deps.d.ts +57 -32
  531. package/dist/core/scheduler.d.ts +34 -14
  532. package/dist/core/secret-env.d.ts +168 -18
  533. package/dist/core/secret-env.js +291 -56
  534. package/dist/core/sensitive-path-policy.js +3 -2
  535. package/dist/core/session-changes.d.ts +260 -0
  536. package/dist/core/session-changes.js +40 -0
  537. package/dist/core/session-checkout.d.ts +87 -3
  538. package/dist/core/session-checkout.js +134 -6
  539. package/dist/core/session-log-transfer.js +13 -7
  540. package/dist/core/session-policy-store.d.ts +40 -12
  541. package/dist/core/session-policy-store.js +51 -25
  542. package/dist/core/session-store.d.ts +23 -10
  543. package/dist/core/session-store.js +40 -13
  544. package/dist/core/session.d.ts +56 -9
  545. package/dist/core/session.js +8 -1
  546. package/dist/core/shell-read-silence.d.ts +3 -3
  547. package/dist/core/shell-read-silence.js +3 -1
  548. package/dist/core/shell-run-candidates.d.ts +23 -6
  549. package/dist/core/shell-run-candidates.js +34 -11
  550. package/dist/core/skill-grant.d.ts +11 -6
  551. package/dist/core/skill-grant.js +23 -15
  552. package/dist/core/spend-account.d.ts +232 -0
  553. package/dist/core/spend-account.js +286 -0
  554. package/dist/core/store-contracts/background-agent-store-contract.js +85 -0
  555. package/dist/core/store-contracts/checkpoint-store-contract.d.ts +6 -2
  556. package/dist/core/store-contracts/checkpoint-store-contract.js +60 -6
  557. package/dist/core/store-contracts/file-history-store-contract.js +4 -4
  558. package/dist/core/store-contracts/mailbox-store-contract.d.ts +2 -1
  559. package/dist/core/store-contracts/mailbox-store-contract.js +22 -11
  560. package/dist/core/store-contracts/peer-directory-contract.js +8 -0
  561. package/dist/core/store-contracts/permission-rule-sync-contract.js +3 -3
  562. package/dist/core/store-contracts/session-deletion-cascade-contract.js +23 -4
  563. package/dist/core/store-contracts/session-policy-store-contract.js +9 -0
  564. package/dist/core/store-contracts/session-repo-contract.js +38 -1
  565. package/dist/core/store-contracts/session-store-contract.d.ts +21 -2
  566. package/dist/core/store-contracts/session-store-contract.js +369 -5
  567. package/dist/core/store-contracts/tool-result-store-contract.js +8 -7
  568. package/dist/core/store-contracts/workflow-journal-store-contract.js +33 -0
  569. package/dist/core/task-event.d.ts +57 -53
  570. package/dist/core/task-limits.d.ts +15 -8
  571. package/dist/core/task-notification.d.ts +17 -12
  572. package/dist/core/task-notification.js +20 -9
  573. package/dist/core/task-registry-agent.d.ts +35 -30
  574. package/dist/core/task-registry-agent.js +102 -32
  575. package/dist/core/task-registry-monitor.js +2 -1
  576. package/dist/core/task-registry-shared.d.ts +83 -16
  577. package/dist/core/task-registry-shared.js +26 -7
  578. package/dist/core/task-registry-workflow.d.ts +9 -1
  579. package/dist/core/task-registry-workflow.js +11 -3
  580. package/dist/core/task-registry.d.ts +26 -27
  581. package/dist/core/task-registry.js +42 -12
  582. package/dist/core/task-result.d.ts +145 -35
  583. package/dist/core/task-spec-members.d.ts +21 -3
  584. package/dist/core/task-spec-members.js +11 -2
  585. package/dist/core/task-spec.d.ts +42 -45
  586. package/dist/core/task-start-judge.js +10 -3
  587. package/dist/core/task-stream.d.ts +2 -1
  588. package/dist/core/terminal-cause.d.ts +30 -2
  589. package/dist/core/tool-catalog-entries.js +1 -1
  590. package/dist/core/tool-errors.js +1 -0
  591. package/dist/core/tool-face-reader.d.ts +3 -2
  592. package/dist/core/tool-gate-phase.d.ts +16 -0
  593. package/dist/core/tool-gate-phase.js +1 -0
  594. package/dist/core/tool-mount-plan.d.ts +7 -0
  595. package/dist/core/tool-mount-plan.js +25 -1
  596. package/dist/core/tool-mount-static.js +3 -2
  597. package/dist/core/tool-name-aliases.d.ts +81 -106
  598. package/dist/core/tool-name-aliases.js +60 -155
  599. package/dist/core/tool-name-readings.d.ts +2 -0
  600. package/dist/core/tool-name-readings.js +9 -1
  601. package/dist/core/tool-policy.d.ts +165 -60
  602. package/dist/core/tool-policy.js +105 -69
  603. package/dist/core/tool-registry.d.ts +2 -0
  604. package/dist/core/tool-registry.js +3 -0
  605. package/dist/core/tool-result-bytes.d.ts +27 -3
  606. package/dist/core/tool-result-bytes.js +53 -0
  607. package/dist/core/tool-result-store.d.ts +11 -4
  608. package/dist/core/tool-result-store.js +6 -2
  609. package/dist/core/tool-roster.d.ts +33 -22
  610. package/dist/core/tool-roster.js +28 -18
  611. package/dist/core/tool-spec-members.d.ts +12 -0
  612. package/dist/core/tool-spec-members.js +31 -0
  613. package/dist/core/tool-spec.d.ts +41 -28
  614. package/dist/core/trace.d.ts +21 -64
  615. package/dist/core/trace.js +2 -3
  616. package/dist/core/types.d.ts +7 -7
  617. package/dist/core/types.js +2 -2
  618. package/dist/core/unavailable-landing.d.ts +72 -0
  619. package/dist/core/unavailable-landing.js +18 -0
  620. package/dist/core/untrusted-egress.d.ts +27 -5
  621. package/dist/core/untrusted-egress.js +30 -8
  622. package/dist/core/usage-window-store.d.ts +11 -1
  623. package/dist/core/usage-window-store.js +5 -0
  624. package/dist/core/user-attachment.d.ts +74 -48
  625. package/dist/core/user-attachment.js +137 -69
  626. package/dist/core/user-row-origin.d.ts +10 -0
  627. package/dist/core/user-row-origin.js +6 -0
  628. package/dist/core/wiring-manifest.d.ts +94 -24
  629. package/dist/core/wiring-manifest.js +65 -13
  630. package/dist/core/workflow-journal-store.d.ts +16 -7
  631. package/dist/core/workflow-journal-store.js +34 -6
  632. package/dist/core/workflow-run-store-contract.js +102 -0
  633. package/dist/core/workflow-run-store.d.ts +95 -4
  634. package/dist/core/workflow-run-store.js +74 -11
  635. package/dist/engine/compaction/compaction.d.ts +15 -3
  636. package/dist/engine/compaction/compaction.js +29 -10
  637. package/dist/engine/execution-env/kill-tree.js +44 -49
  638. package/dist/engine/execution-env/node-execution-env.d.ts +3 -1
  639. package/dist/engine/execution-env/node-execution-env.js +18 -11
  640. package/dist/engine/harness/agent-harness.d.ts +13 -0
  641. package/dist/engine/harness/agent-harness.js +16 -1
  642. package/dist/engine/harness/types.d.ts +100 -30
  643. package/dist/engine/harness/types.js +36 -4
  644. package/dist/engine/llm/rejected-images.js +1 -1
  645. package/dist/engine/llm/types.d.ts +22 -2
  646. package/dist/engine/llm/types.js +5 -2
  647. package/dist/engine/loop/agent-loop.js +43 -11
  648. package/dist/engine/loop/types.d.ts +11 -0
  649. package/dist/engine/session/import-validate.d.ts +9 -0
  650. package/dist/engine/session/import-validate.js +50 -9
  651. package/dist/engine/session/memory-repo.d.ts +5 -1
  652. package/dist/engine/session/memory-repo.js +8 -3
  653. package/dist/engine/session/parent-chain-guard.js +1 -1
  654. package/dist/engine/session/path-to-root.js +1 -1
  655. package/dist/engine/session/repo-utils.d.ts +19 -12
  656. package/dist/engine/session/repo-utils.js +12 -7
  657. package/dist/engine/session/session.d.ts +30 -10
  658. package/dist/engine/session/session.js +52 -20
  659. package/dist/engine/session/storage-base.js +2 -2
  660. package/dist/fixtures/index.d.ts +3 -1
  661. package/dist/fixtures/index.js +3 -0
  662. package/dist/host-env.d.ts +17 -0
  663. package/dist/host-env.js +1 -0
  664. package/dist/index.d.ts +83 -41
  665. package/dist/index.js +64 -30
  666. package/dist/internal/harness-types.d.ts +1 -1
  667. package/dist/internal/harness.d.ts +5 -3
  668. package/dist/internal/harness.js +4 -3
  669. package/dist/internal/llm.d.ts +1 -1
  670. package/dist/internal/llm.js +1 -1
  671. package/dist/orchestration/run-workflow-tool.d.ts +40 -12
  672. package/dist/orchestration/run-workflow-tool.js +205 -102
  673. package/dist/orchestration/workflow-catalog.d.ts +254 -0
  674. package/dist/orchestration/workflow-catalog.js +702 -0
  675. package/dist/orchestration/workflow-governance.d.ts +1 -1
  676. package/dist/orchestration/workflow-meta.d.ts +11 -1
  677. package/dist/orchestration/workflow-meta.js +48 -0
  678. package/dist/orchestration/workflow-observe.d.ts +8 -10
  679. package/dist/orchestration/workflow-observe.js +6 -1
  680. package/dist/orchestration/workflow-park-adoption.d.ts +71 -33
  681. package/dist/orchestration/workflow-park-adoption.js +153 -40
  682. package/dist/orchestration/workflow-requirements.d.ts +51 -0
  683. package/dist/orchestration/workflow-requirements.js +54 -0
  684. package/dist/orchestration/workflow-script-runner.d.ts +18 -0
  685. package/dist/orchestration/workflow-script-store.d.ts +19 -64
  686. package/dist/orchestration/workflow-script-store.js +1 -24
  687. package/dist/orchestration/workflow-types.d.ts +173 -41
  688. package/dist/orchestration/workflow-types.js +22 -4
  689. package/dist/orchestration/workflow.d.ts +56 -42
  690. package/dist/orchestration/workflow.js +654 -139
  691. package/dist/prompt-assembly/catalog/core-behavior.js +6 -2
  692. package/dist/prompt-assembly/catalog/engine.d.ts +36 -0
  693. package/dist/prompt-assembly/catalog/engine.js +4 -0
  694. package/dist/prompt-assembly/catalog/events.d.ts +16 -0
  695. package/dist/prompt-assembly/catalog/events.js +2 -0
  696. package/dist/prompt-assembly/catalog/locales/zh-Hans/core-behavior.js +7 -0
  697. package/dist/prompt-assembly/catalog/locales/zh-Hans/engine.js +4 -0
  698. package/dist/prompt-assembly/catalog/locales/zh-Hans/events.js +2 -0
  699. package/dist/prompt-assembly/catalog/locales/zh-Hans/mechanism.js +2 -2
  700. package/dist/prompt-assembly/catalog/mechanism.js +2 -2
  701. package/dist/prompt-assembly/catalog/schema.d.ts +5 -2
  702. package/dist/prompt-assembly/catalog/schema.js +1 -0
  703. package/dist/prompt-assembly/epoch.d.ts +26 -0
  704. package/dist/prompt-assembly/epoch.js +29 -0
  705. package/dist/prompt-assembly/event-registry.js +2 -0
  706. package/dist/prompt-assembly/tool-catalog.d.ts +1 -1
  707. package/dist/prompt-assembly/turn-snapshot.d.ts +1 -1
  708. package/dist/prompts/default.d.ts +2 -2
  709. package/dist/shell/lex.d.ts +10 -7
  710. package/dist/shell/lex.js +56 -6
  711. package/dist/stores/file/adoption/adopt.d.ts +12 -0
  712. package/dist/stores/file/adoption/adopt.js +78 -31
  713. package/dist/stores/file/adoption/marker.d.ts +48 -26
  714. package/dist/stores/file/adoption/marker.js +24 -11
  715. package/dist/stores/file/background-agent-store.d.ts +5 -0
  716. package/dist/stores/file/background-agent-store.js +26 -5
  717. package/dist/stores/file/data-root-declaration.js +2 -1
  718. package/dist/stores/file/descriptor-seat.d.ts +100 -0
  719. package/dist/stores/file/descriptor-seat.js +150 -0
  720. package/dist/stores/file/file-history-store.js +2 -1
  721. package/dist/stores/file/fs-atomic.d.ts +126 -78
  722. package/dist/stores/file/fs-atomic.js +313 -253
  723. package/dist/stores/file/index.d.ts +10 -1
  724. package/dist/stores/file/index.js +28 -16
  725. package/dist/stores/file/ledger-damage.js +6 -10
  726. package/dist/stores/file/lock-reading.d.ts +158 -0
  727. package/dist/stores/file/lock-reading.js +252 -0
  728. package/dist/stores/file/mailbox-store.d.ts +8 -5
  729. package/dist/stores/file/mailbox-store.js +23 -14
  730. package/dist/stores/file/permission-rule-adopt.js +11 -11
  731. package/dist/stores/file/permission-rule-store.d.ts +14 -3
  732. package/dist/stores/file/permission-rule-store.js +33 -37
  733. package/dist/stores/file/process-anchor.d.ts +85 -0
  734. package/dist/stores/file/process-anchor.js +392 -0
  735. package/dist/stores/file/session-policy-store.d.ts +18 -2
  736. package/dist/stores/file/session-policy-store.js +71 -5
  737. package/dist/stores/file/session-store.d.ts +19 -1
  738. package/dist/stores/file/session-store.js +51 -19
  739. package/dist/stores/file/shared-ledger.d.ts +3 -3
  740. package/dist/stores/file/task-list-store.js +1 -1
  741. package/dist/stores/file/tool-result-store.js +2 -1
  742. package/dist/stores/file/usage-window-store.js +1 -1
  743. package/dist/stores/file/workflow-journal-store.d.ts +5 -2
  744. package/dist/stores/file/workflow-journal-store.js +12 -25
  745. package/dist/stores/file/workflow-run-store.d.ts +5 -0
  746. package/dist/stores/file/workflow-run-store.js +19 -12
  747. package/dist/tools/artifact/artifact-text.d.ts +29 -11
  748. package/dist/tools/artifact/artifact-text.js +13 -6
  749. package/dist/tools/artifact/artifact-tool.d.ts +35 -5
  750. package/dist/tools/artifact/artifact-tool.js +240 -45
  751. package/dist/tools/artifact/conformance.d.ts +27 -5
  752. package/dist/tools/artifact/conformance.js +420 -45
  753. package/dist/tools/artifact/local-stub.d.ts +2 -2
  754. package/dist/tools/artifact/local-stub.js +29 -26
  755. package/dist/tools/fs/bash-failure-output.d.ts +64 -0
  756. package/dist/tools/fs/bash-failure-output.js +40 -0
  757. package/dist/tools/fs/bash-program-position.d.ts +7 -3
  758. package/dist/tools/fs/bash-program-position.js +9 -6
  759. package/dist/tools/fs/bash-readonly-classifier.d.ts +4 -3
  760. package/dist/tools/fs/bound-open.d.ts +9 -8
  761. package/dist/tools/fs/bound-open.js +6 -4
  762. package/dist/tools/fs/dead-cwd.d.ts +8 -0
  763. package/dist/tools/fs/dead-cwd.js +7 -7
  764. package/dist/tools/fs/file-read-check.d.ts +8 -6
  765. package/dist/tools/fs/file-read-check.js +8 -4
  766. package/dist/tools/fs/file-write-check.d.ts +14 -0
  767. package/dist/tools/fs/file-write-check.js +35 -0
  768. package/dist/tools/fs/find-actions.d.ts +186 -0
  769. package/dist/tools/fs/find-actions.js +538 -0
  770. package/dist/tools/fs/fs-bash.d.ts +6 -3
  771. package/dist/tools/fs/fs-bash.js +67 -60
  772. package/dist/tools/fs/fs-pdf.js +16 -5
  773. package/dist/tools/fs/fs-read.js +5 -3
  774. package/dist/tools/fs/fs-shared.d.ts +67 -3
  775. package/dist/tools/fs/fs-shared.js +70 -34
  776. package/dist/tools/fs/fs-write.d.ts +23 -3
  777. package/dist/tools/fs/fs-write.js +137 -33
  778. package/dist/tools/fs/index.d.ts +15 -2
  779. package/dist/tools/fs/index.js +8 -4
  780. package/dist/tools/fs/program-read-model.d.ts +17 -1
  781. package/dist/tools/fs/program-read-model.js +7 -2
  782. package/dist/tools/fs/program-read-model.rows.js +5 -1
  783. package/dist/tools/fs/read-deny-home.js +12 -5
  784. package/dist/tools/fs/read-floor.d.ts +16 -0
  785. package/dist/tools/fs/read-floor.js +10 -5
  786. package/dist/tools/fs/removal-targets.d.ts +22 -4
  787. package/dist/tools/fs/removal-targets.js +116 -6
  788. package/dist/tools/fs/safety.d.ts +2 -0
  789. package/dist/tools/fs/safety.js +9 -2
  790. package/dist/tools/fs/shell-read-bindings.d.ts +56 -7
  791. package/dist/tools/fs/shell-read-bindings.js +175 -26
  792. package/dist/tools/fs/shell-read-check.d.ts +11 -2
  793. package/dist/tools/fs/shell-read-check.js +31 -5
  794. package/dist/tools/fs/shell-read-command-environment.d.ts +56 -0
  795. package/dist/tools/fs/shell-read-command-environment.js +75 -0
  796. package/dist/tools/fs/shell-read-establish.js +62 -16
  797. package/dist/tools/fs/shell-read-judge.d.ts +52 -7
  798. package/dist/tools/fs/shell-read-judge.js +63 -21
  799. package/dist/tools/fs/shell-read-lost-walk.d.ts +19 -0
  800. package/dist/tools/fs/shell-read-lost-walk.js +35 -0
  801. package/dist/tools/fs/shell-read-plan.d.ts +4 -0
  802. package/dist/tools/fs/shell-read-plan.js +47 -13
  803. package/dist/tools/fs/shell-read-sourced.d.ts +4 -3
  804. package/dist/tools/fs/shell-read-sourced.js +28 -3
  805. package/dist/tools/fs/shell-read-start.d.ts +7 -0
  806. package/dist/tools/fs/shell-read-word.js +1 -0
  807. package/dist/tools/fs/shell-read-workdir.d.ts +9 -11
  808. package/dist/tools/fs/shell-read-workdir.js +20 -26
  809. package/dist/tools/fs/shell-read-write-targets.d.ts +13 -5
  810. package/dist/tools/fs/shell-read-write-targets.js +51 -9
  811. package/dist/tools/monitor.d.ts +2 -1
  812. package/dist/tools/monitor.js +2 -0
  813. package/dist/tools/scheduler-tools.d.ts +7 -4
  814. package/dist/tools/scheduler-tools.js +60 -20
  815. package/dist/tools/task-list.d.ts +11 -1
  816. package/dist/tools/task-list.js +187 -134
  817. package/dist/tools/todo.d.ts +1 -1
  818. package/dist/tools/worktree.js +10 -9
  819. package/package.json +6 -2
  820. package/test/export-surface.snapshot.json +592 -22
  821. package/wire-changes/core-stores-sql@7.68.7.json +39 -0
  822. package/wire-changes/core-stores-sql@7.70.0.json +414 -0
  823. package/wire-changes/core@7.68.7.json +140 -0
  824. package/wire-changes/core@7.70.0.json +14689 -0
  825. package/wire-changes/mods-kernel@7.68.7.json +39 -0
  826. package/wire-changes/mods-kernel@7.70.0.json +75 -0
  827. package/wire-changes/primitives@7.68.7.json +39 -0
  828. package/wire-changes/primitives@7.70.0.json +807 -0
  829. package/wire-changes/wiki-gate@7.68.7.json +39 -0
  830. package/wire-changes/wiki-gate@7.70.0.json +40 -0
  831. package/dist/core/cache-break-detector.d.ts +0 -98
  832. package/dist/core/cache-break-detector.js +0 -146
  833. package/dist/core/compaction-retired-members.d.ts +0 -12
  834. package/dist/core/compaction-retired-members.js +0 -22
  835. package/dist/core/loopback-host.d.ts +0 -18
  836. package/dist/core/loopback-host.js +0 -40
  837. package/dist/core/protocol-naming.d.ts +0 -95
  838. package/dist/core/protocol-naming.js +0 -70
  839. package/dist/core/protocol-table.d.ts +0 -88
  840. 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,
@@ -91,13 +78,18 @@ export interface EngineNotice {
91
78
  * unchanged. Audience `user`. Once per failing handler per window, said when the window is released. `detail: { messageId, turn, index, final, cause, registration?,
92
79
  * sessionId }` (`cause` ∈ `threw` / `timeout` / `violation` / `reentry` / `deadline` / `fault`; `registration` names the failing
93
80
  * 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
81
+ * - `"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
82
  * 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
83
  * 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
84
  * `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
85
+ * (`event` ∈ `classic.Stop` / `classic.SubagentStop` / `classic.TaskCompleted` / `classic.TeammateIdle`; `registration` the extension whose handler's answer carried `end` — an answer no
99
86
  * registration produced carries none; `seat` ∈ `deployment` / `task`; `reason` the `end` text, bounded, absent when blank; the address
100
87
  * 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.
88
+ * 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.
89
+ * - `"mods.stop_continue_dropped"` (7.70.0) — the deployment seat's answer carrying `end` decided the stop point alone while the task
90
+ * seat's own answer asked the run to continue (a non-empty `block` or `additionalContext`): that request was dropped — the run was not
91
+ * pushed back, the model is not told. Audience `user`, attention `act`. Once per stop point it closed. `detail` as `mods.stop_ended`'s
92
+ * (`seat` is always `deployment`). One stop point closes under exactly one of the two codes.
101
93
  * - `"skills.listing_truncated"` — the `<skills>` disclosure block did not fit its byte budget, so
102
94
  * at least one skill is listed without its description (`nameOnly`) or, in the pathological case,
103
95
  * not listed at all (`dropped`); the `Skill` tool still serves every one of them. Audience
@@ -127,14 +119,14 @@ export interface EngineNotice {
127
119
  * (never the bytes), so the model, `tool_end.output` and the transcript read that; this is the operator's account. A
128
120
  * block refused for its SIZE (`raw_too_large`, `dimensions_too_large`, `base64_too_large`) has its bytes kept in the
129
121
  * 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.
122
+ * `over_limit` | `store_failed`; the store's words in `saveError` whenever it threw, this account only). ONCE PER CALL.
131
123
  * `detail: { toolName, toolCallId, refused: [{ type, reason, bytes, limit?, width?, height?, mimeType?, ref?, notKept?,
132
124
  * saveError? }], sessionId, runId }` — closed-set words, counts, a media type only when it can be one (≤ 100 characters).
133
125
  * - `"tool_result.media_persisted"` — an MCP tool call or resource read whose server sent binary content the result does
134
126
  * 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
127
  * no document, every blob a resource read returns): the result names each kept piece's ref, or says why it was not kept;
136
128
  * 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 }`.
129
+ * mimeType?, ref | notKept (+ limit on `over_limit`, + saveError whenever the store threw) }], sessionId, runId }`.
138
130
  * - `"tool_result.read_refused"` — a run's `ReadToolResult` / `SaveToolResult` asked for a ref its tool-result store HOLDS
139
131
  * but which is not the run's to read: the entry records another identity (principal and isolation scope), records none, was
140
132
  * 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 +136,28 @@ export interface EngineNotice {
144
136
  * `owner_read_failed` | `no_owner_read`; `cause` (on `owner_read_failed`) the store's thrown text. A ref the store does not
145
137
  * hold is never told — except `owner_read_failed`, told whether or not the ref exists (the store could not say; a store
146
138
  * outage is not a miss). Dedup key: (code, occurrenceId).
139
+ * - `"artifact.owner_refused"` — an Artifact tool call whose host answers carried owner records the engine did not judge the
140
+ * run's own (`identityReadVerdict` against the run's identity): another identity's page the host did not mark as shared
141
+ * with the caller, a record naming no identity, one not of its shape, or none at all — withheld (the model read "no artifact
142
+ * at …", a conflict snapshot was not handed back, a listing row was dropped) — or a host that marked the run's own page as
143
+ * shared (the owner record decided; the page was treated as the run's own). AT MOST ONCE PER TOOL CALL. `detail: { action,
144
+ * reasons, count, write, plane, toolCallId, sessionId?, runId }` — `reasons` the distinct words of `other_identity` |
145
+ * `no_identity` | `owner_unreadable` | `no_owner` | `own_page_marked_shared`, `count` the answers and rows judged so, `write`
146
+ * `"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
147
  * - `"config.image_processor_unavailable"` — an image went to the model as it was, over the image admission's soft
148
148
  * target (`IMAGE_ADMISSION.soft.targetBytes`), because the run has no image processor (`RunnerDeps.imageProcessor`
149
149
  * is `false`, or sharp did not resolve). ONCE PER RUN, at the first such image wherever it entered (a tool's result,
150
150
  * the task's images, an attachment). `detail: { bytes, targetBytes, sessionId, runId }`.
151
151
  * - `"fs.staging_file_left"` — a whole-file replace (`NodeExecutionEnv.writeFile`) whose write itself SUCCEEDED could not
152
152
  * 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.
153
+ * the file is still on disk, up to the whole content. Audience `operator`. `detail: { path }`, the staged path. An environment
154
+ * with no `onNotice` seat tells it on the process's default seat (`setDefaultEngineNoticeSeat`), else as one process line (a
155
+ * failed write carries the same sentence in its error instead). ONCE PER LEFT FILE.
156
156
  * - `"fs.staging_file_swept"` — a whole-file replace (`NodeExecutionEnv.writeFile`) removed the staged siblings of its target
157
157
  * that a process which no longer runs had left behind (a process killed mid-write runs no cleanup): exactly the names the
158
158
  * 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.
159
+ * file is never touched. Audience `operator`. `detail: { count }` — how many, no names. An environment with no `onNotice`
160
+ * seat tells it on the process's default seat, else as one process line. ONCE PER WRITE THAT REMOVED ANY.
161
161
  * - `"session.lineage_rerooted"` — the session this run continues has a log whose replay dropped records it could not read, and this
162
162
  * 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
163
  * 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 +177,8 @@ export interface EngineNotice {
177
177
  * of the person's input the boundary was for, `cause` the store's code (`FILE_HISTORY_ERROR_CODES`; `aborted` for the fence); never
178
178
  * the store's message, never a path. ONCE PER FAILED CAPTURE, at most once per run.
179
179
  * - `"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.
180
+ * `FILE_HISTORY_LEFT_AS_IS_CLASSES`). Audience `user`. The message names the key and its directory, as the run's note does;
181
+ * `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
182
  * - `"verify.verifier_is_implementer"` (`src/agents/verifier-independence.ts`) — the verification gate's verifier leg answered on the
183
183
  * SAME resolved model id as the implementation leg it judged (`TaskResult.model` of the two: an unset `verifier` role falling back to
184
184
  * 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 +188,12 @@ export interface EngineNotice {
188
188
  * RUN, at the first verifier leg that read so. Audience `user`; `detail: { model, verifierSeat, sessionId? }` — `model` the
189
189
  * shared id (bounded at 80), `verifierSeat` is `verifierModel` (the call named it) or `roles.verifier` (the role resolved it);
190
190
  * `sessionId` (also lifted to the top level) is the implementation's session, absent when the result carries none.
191
+ * - `"workspace.sync_failed"` (`src/core/runner/workspace-sync.ts`) — an execution environment's `syncWorkspace` seat did not answer
192
+ * ok: it answered `{ ok: false }` (its own code), threw or answered outside the seam's shape (`unknown`), passed the engine's bound
193
+ * (`timeout`; the call may still be running), the run was cut while it ran (`aborted`), or it was not made beside an earlier sync
194
+ * of the workspace that did not return after its abort (`command_in_flight`). The run goes on, its result unchanged; a sync the
195
+ * result was still open for is also a `TaskResult.remoteEnvFailures` row (`op: "syncWorkspace"`). Audience `operator`. `detail:
196
+ * { reason, code, retryable, sessionId, runId? }` — never the adapter's message. ONCE PER SUCH SYNC; `command_in_flight` once a run.
191
197
  * - `"workflow.governance_key_stripped"` (#235) — the fields of an LLM-authored workflow `agent(spec)`
192
198
  * that did NOT cross the governed default-deny whitelist: an unrecognized/control-plane field, or a
193
199
  * `readFace` value that is not the containment-tightening one. The spawn PROCEEDS on the deployment
@@ -207,11 +213,13 @@ export interface EngineNotice {
207
213
  * (`model`, `modelName`, `thinking`, …) is REFUSED at the membrane instead — a silently ignored
208
214
  * `model` runs a different agent than the author asked for.
209
215
  * - `"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,
216
+ * this leg (`RunInternals.workflowParkedResume`) and the engine did not use it to continue the run. Once per (leg, run); a decision is told once per state (#4833): a reason of `WORKFLOW_PARK_SETTLING_REASONS` 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);
217
+ * `detail: { runId, decisionIds, reason, holder?, code?, changed?, inputs?, why?, rowReason?, terminal?, continuedAs? }` plus the leg's address,
212
218
  * never the token; `reason` ∈ `WORKFLOW_PARK_UNUSED_REASONS`. `ask_unanswerable` = not used, still deliverable; `decision_spent` = used and refused,
213
219
  * a person decides again; `card_unresumable` = this engine never resumes the card (`terminal: true` = no release does); `continuing_elsewhere` = the claim
214
220
  * 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.
221
+ * - `"workflow.record_unwritten"` (#4486) — a workflow run ended and its terminal record did not land: said on the default seat
222
+ * 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
223
  * - `"config.host_sink_failed"` — a host seat the run calls failed and was contained: it threw, or —
216
224
  * since an `async` function satisfies a `=> void` seat — it returned a promise that rejected. The run
217
225
  * is untouched (the seat's frame or event is dropped; delivery is never awaited, so a seat that never
@@ -227,6 +235,10 @@ export interface EngineNotice {
227
235
  * observer (`RunnerDeps.onDelegationLifecycle` — its frames are not delivered) or a Node environment's
228
236
  * `onSecretEnvScrub` (its findings fall back to the summary line). `detail: { seat }`. Audience
229
237
  * `operator`. Once per process per seat.
238
+ * - `"config.session_delete_withheld"` — a `TtlSessionStore` was built over a repo that has a head read and a row read but no
239
+ * header-only placement read (`SessionRepo.placementOf`): the owner's delete is judged on the row's head, never on its log, so that store
240
+ * offers no owner's delete (`SessionStore.delete` is absent) until the repo answers the placement from its header. `detail:
241
+ * { missing: "placementOf" }`. Said on the default seat; audience `operator`; once per process.
230
242
  * - `"config.env_knob_adjusted"` — a process-level numeric env knob was not used as written: ignored (not
231
243
  * a positive whole number — the default stands), capped to its ceiling or raised to its floor; the
232
244
  * sentence names the value asked for and the value in force. `detail: { name, applied? }` — `applied`
@@ -245,9 +257,17 @@ export interface EngineNotice {
245
257
  * record naming a process (a file store's directory lock, a run claim, a memory writer's session
246
258
  * account) is judged by pid alone. `detail: { reason }`. Said on the default seat; audience
247
259
  * `operator`; once per process.
260
+ * - `"config.data_root_spelling_split"` — the memory root's value is written in a decomposed spelling: the engine opens its
261
+ * composed (NFC) spelling, and the written spelling's own directory holds data that one does not (`state: "moved"`) or both
262
+ * hold some (`"both"`); nothing is read from it or moved. `detail: { written, opened, state }`. Said on the default seat;
263
+ * audience `operator`, attention `act`; once per directory per process.
248
264
  * - `"store.tail_segment_unjudged"` — a file store's JSONL tail segment larger than the judgeable bound
249
265
  * was ended as a line, not judged; its bytes are untouched. `detail: { path }`. Said on the default
250
- * seat; audience `operator`; once per repair.
266
+ * seat, on a microtask after the write that repaired it; audience `operator`; once per repair.
267
+ * - `"store.append_log_parked"` — the append logs of this loaded module reached their descriptor budget, or an
268
+ * open met the process's descriptor limit and lowered it, and the least recently written ones released theirs
269
+ * (they reopen on their next write). `detail: { budget, cause }` (`budget_reached` | `descriptors_exhausted`).
270
+ * Said on the default seat, on a microtask after the work that parked; `operator`; once per (cause, budget value).
251
271
  * - `"store.lock_retained"` — a lock this live process took could not be handed back, so it may still
252
272
  * name this pid: `detail: { lock, path, pid }`, `lock` one of `"directory_fence"`, `"boot"` (a file
253
273
  * store's data root) or `"mailbox"` (a box lock, unreadable at release or not removable). Said on the
@@ -257,6 +277,8 @@ export interface EngineNotice {
257
277
  * true })`, that every process opening that data root runs in this process table, and the process the
258
278
  * record names is gone from it. `detail: { path, pid, root }` — the lock, the pid it named, the declared
259
279
  * root that covers it. Said on the default seat; audience `operator`; once per lock removed.
280
+ * - `"store.process_anchor_unavailable"` (Linux; once per process) / `"store.process_anchor_lost"` (once per anchor):
281
+ * the process anchor of a directory lock could not be made, or stopped being its pipe — see `process-anchor.ts`.
260
282
  * - `"memory.notice_unscoped"` — a memory notice (the engine's, or a file store's) named no single
261
283
  * scope, so it was kept off every session's memory notices; said here only when the memory engine has
262
284
  * no incident sink (with one, the sink is told `memory.announcement_withheld`). `detail: { stage }`.
@@ -277,6 +299,10 @@ export interface EngineNotice {
277
299
  * (its body does not decode, or it carries no state word, and the store's listing states none): the row is left parked.
278
300
  * `detail: { handle, scope, cause }`, `cause` `"decode"` | `"no_state"`; once per (scope, handle) per process; said on the
279
301
  * default seat; audience `operator`. Formerly a process `warning` event.
302
+ * - `"delegation.agent_row_ending_unreadable"` — a stored background agent row's ending record does not read (its `outcome`, or the
303
+ * refused asks an earlier engine kept under their own key): the row is answered from its status words and its refusals read as not
304
+ * known (`refused.unreadable`). `detail: { handle, scope, member }`, `member` `"outcome"` | `"refusedAsks"`; once per (scope, handle)
305
+ * per process; said on the default seat; audience `operator`.
280
306
  * - `"delegation.parked_card_id_untrusted"` — a parked background agent's approval card was read, but the id it carries does not
281
307
  * pass the identity judge (`readGateIdentity` against the card's token): the agent's state (`AgentPark`) is read without the id and
282
308
  * says `checkpointIdMissing: "untrusted"`. `detail: { handle, scope }` — never the id; once per (scope, handle) per process; said
@@ -301,7 +327,7 @@ export interface EngineNotice {
301
327
  * mount (the declaration is already the fact, and a mount that later fails must not swallow
302
328
  * it). Dedup unit: once per prepared leg.
303
329
  * - `"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,
330
+ * 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
331
  * whichever protocol asked first (a resume prepares again and may announce again).
306
332
  * `detail: { message, runId }` — still no sessionId (a deployment wiring fact, not session-attributed); `runId`
307
333
  * (#499) makes the once-per-leg claim CHECKABLE without attributing the line to a conversation, an opaque
@@ -340,11 +366,17 @@ export interface EngineNotice {
340
366
  * 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
367
  * 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
368
  * `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
369
+ * Dedup unit: a fact per (server, memory) — the delivery throat's fact key ({@link NOTICE_FACT_KEY}), told while it holds and not
370
+ * 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
371
+ * 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
372
  * 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
373
  * 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
374
+ * - `"mcp.server_connecting"` — the leg's wait for its MCP servers (before its first model request) has lasted `MCP_CONNECTING_NOTICE_AFTER_MS`
375
+ * 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 }`
376
+ * — 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
377
+ * `RunnerDeps.mcpFirstRequestWaitMs` when it is less). `"user"` audience, attention `inform`. Dedup unit: once per leg per server — the
378
+ * 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.
379
+ * - `"mcp.credential_echoed"` —a protocol peer (an MCP server, an A2A peer) echoed a credential its
348
380
  * connection's requests carried into what it said about itself: an MCP server's `serverInfo`, its
349
381
  * instructions or its tool listing, an A2A peer's agent card. The engine reads that account through
350
382
  * one eraser whose needle is the connection's credentials (`PeerCarrier.credentials`): free text
@@ -355,14 +387,15 @@ export interface EngineNotice {
355
387
  * (`server_info` / `instructions` / `tool_listing` / `agent_card`); never a value. `"operator"`
356
388
  * audience: the endpoint repeats what it is sent, which only whoever wired it can act on. Dedup unit:
357
389
  * 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.
390
+ * - `"a2a.peer_card_drift"` — an A2A peer registered inside the trust boundary (`A2aServerSpec.boundary: "inside"`) mounted, and
391
+ * its card and its registration's reviewed skills (`allowSkills`) differ: skills the card names that were not reviewed (not
392
+ * mounted) and reviewed skills the card no longer names (nothing mounts for them). The same two lists ride the peer's status row
393
+ * (`A2aPeerStatus.cardDrift`). `detail: { peer, unreviewed, missing, sessionId, runId }` — the skill ids, each spelled as a list entry is (`renderListEntry`:
394
+ * 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
395
+ * 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
396
+ * (a card read in part makes "no drift" unknown, not true). Never minted for an
397
+ * outside peer (its `allowSkills` picks skills; it does not review them).
398
+ * - `"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
399
  * - `"config.models_swapped"` — `Runner.swapDeps` replaced the model catalog generation
367
400
  * (zero-restart model switching; the `models` / `tiers` seats of the swappable set). `detail:
368
401
  * { models, tiers, generation, occurrenceId }` — key COUNTS and the `generation` the swap leaves in force (a digest of
@@ -472,10 +505,15 @@ export interface EngineNotice {
472
505
  * it; a declared departure from CC, which refuses either way), `"denied"` = refused with the classifier's own
473
506
  * sentence (route `none`: no approver and no park facility); the two delegation sites (`readDelegationReview`) mint it
474
507
  * 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
508
+ * 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
509
  * 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
510
  * `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.
511
+ * run. It is not a block — the denial limit does not count it. 7.70.0 narrows it to `disposition: "denied"` (attention
512
+ * `act`); the other two dispositions are their own codes, with the same `detail` and sentence:
513
+ * - `"classifier.unavailable_handed_on"` (7.70.0) — `site: "call"`, `disposition: "asked"`: the call went on to the live
514
+ * approver or the durable park, whose card or policy answers it. Audience `user`, attention `audit`.
515
+ * - `"classifier.review_skipped"` (7.70.0) — `site` `spawn` / `handback`, `disposition: "proceeded"`: the delegation went
516
+ * ahead without the classifier's check (its own gated calls are still judged one by one). Audience `user`, attention `inform`.
479
517
  * - `"route.credential_origin_mismatch"` (key↔URL pairing, `src/brain/route-adjudicator.ts`; announced by
480
518
  * `src/core/runner/credential-refusal-seat.ts`) — a request was REFUSED, nothing sent, because the per-model
481
519
  * credential it would carry is bound to another origin: the law binds a per-model credential to the origin
@@ -534,7 +572,12 @@ export interface EngineNotice {
534
572
  * delta, a block, a new message). The first ending decided the turn and nothing after it was added
535
573
  * (`AssistantMessage.streamEndIgnored`). ONCE PER LEG PER (statement, word). Audience `user`; `detail: {
536
574
  * statement: "ending" | "error" | "content", word, frames, sessionId, runId }` — `word` the first such frame's
537
- * (for content, its kind), `frames` how many came.
575
+ * (for content, its kind), `frames` how many came. 7.70.0 narrows it to refused frames none of which carried the model's
576
+ * output — a later ending, an error, a frame that only closes or opens a message (attention `inform`); the next code is the other.
577
+ * - `"route.stream_content_dropped"` (7.70.0) — among the frames refused after the end, at least one carried the model's
578
+ * output (text, reasoning, a refusal, a tool call, or a block that opens one: `streamEndIgnored.contentDropped`), which the
579
+ * turn does not have. ONCE PER LEG PER word. Audience `user`, attention `act`; `detail: { word, frames, sessionId, runId }` —
580
+ * `word` the first such frame's kind, `frames` how many frames came after the end in all.
538
581
  * - `"route.extra_body_reserved_dropped"` (#1520) — a request's `Model.extraBody` carried keys the wire adapter
539
582
  * sets itself (`temperature`, `max_tokens`, `stop`, the thinking-enable keys, `messages`, `tools`, …), so the
540
583
  * adapter stripped them and the request went out with the engine's value (or without the key); core wins, and
@@ -573,26 +616,23 @@ export interface EngineNotice {
573
616
  * speed alone. The request that met the push-back is re-sent at standard speed at once. ONCE PER CHANGE. Audience `user`;
574
617
  * `detail: { model, state, reason?, cooldown?, overage?, sessionId, runId }` — the reading of `model` after it
575
618
  * (`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
619
  * - `"model.fallback"` (#3567; `src/core/runner/model-fallback-seat.ts`) — a model request walked its `Model.fallbacks`
586
620
  * chain: a fallback model answered (`outcome: "served"`) or none could (`"exhausted"`, the request ending with the requested
587
621
  * model's own failure). Read off the answer's marker where the run books each answer — the main loop (`lane: "main"`) and
588
622
  * 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,
623
+ * ONCE PER SESSION PER (from, lane, to, reason, outcome) — the delivery throat's fact key ({@link NOTICE_FACT_KEY}), judged against the
624
+ * 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
625
+ * 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
626
  * fromWindow?, toWindow?, sessionId, runId? }` — `chain` the hops tried after `from`, `skipped` the hops the deployment Brain's
592
627
  * route judgment refused before sending (`{ model, code?, fixHint? }`, chain order; `route.judgment_failed` for a judgment that threw), the windows the models' `contextWindow`;
593
628
  * `reason: "route_refused"`: the requested model ITSELF was refused before sending (its entry leads `skipped`). A walk that began and
594
629
  * sent no hop (every hop it reached refused) is announced too — `exhausted`, `chain: []`, `skipped`, and no `to` /
595
630
  * `toWindow` (no hop was tried; the answer, its marker-less message and `TaskResult.degraded` stay the requested model's own).
631
+ * 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.
632
+ * - `"model.fallback_side_call"` (7.70.0) — a side call's request (`lane` `compaction` / `classifier` / `mod` / `advisor`) walked its
633
+ * fallback chain. It does not change who answers the person, so it is the deployment's to watch: audience `operator`, attention
634
+ * `inform`. The same sentence, `detail` and once-told unit as `model.fallback` (fact key: `from` and `lane`, then `to`, `reason`
635
+ * and `outcome`; the requested model's own answer on that lane ends it).
596
636
  * - `"context.tool_turn_repaired"` (#1224) — a provider request was built from a transcript that breaks the
597
637
  * tool-turn law, and the request view restored it (`engine/llm/tool-turns.ts`; the transcript is never
598
638
  * rewritten): a block after an assistant's tool calls moved ahead of them (`trailing_text`), a result recorded
@@ -627,19 +667,21 @@ export interface EngineNotice {
627
667
  * transcript; a compaction that summarizes the record away returns the schema until the provider refuses it again).
628
668
  * The model can still call the tool. Audience `user`; `detail: { tool, sessionId, runId }`. ONCE PER REFUSAL.
629
669
  * - `"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.
670
+ * 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
671
+ * earlier messages were omitted; the session keeps every message): why compaction did not make it fit, what was left out, the way
672
+ * out. Audience `user`; `detail: { omitted, compaction?, sessionId, runId }`, `omitted` = how many messages that request left out,
673
+ * `compaction` = the in-turn compaction's verdict (`landed` yet too large / `noop` / `failed` / `paused` / `off` / `suppressed` /
674
+ * `cut`). ONCE PER TRIMMED STRETCH: told on the first trimmed request a context hook handed on, silent while the requests after it
675
+ * stay trimmed unless one leaves out more of the person's own messages (`userMessages`), said again after a request that fit (a
676
+ * provisional view the in-turn compaction replaced says nothing). A shell rendering "the context was not shrunk" reads this code for
677
+ * that request: the context the model saw WAS shrunk, by omission. A stretch's first request whose room (what the fixed prompt
678
+ * leaves of the guard line) cannot hold what it kept is said (`omitted` 0 only past the model's window) with `fixedTokens` /
679
+ * `lineTokens` / `roomTokens` / `neededTokens`.
638
680
  * - `"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
681
+ * 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`).
682
+ * 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`:
683
+ * `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);
684
+ * 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
643
685
  * (an I/O error, not text, past the read bound) is the operator's line instead (`onError` phase `degraded`,
644
686
  * classification `attachment-read`), once per session per path.
645
687
  * - `"instructions.family_undeclared"` (#4179) — a run was prepared with no instruction family declared (`TaskSpec.instructionFamily`
@@ -727,13 +769,16 @@ export interface EngineNotice {
727
769
  * `detail: { key, valueType }`. Also minted for
728
770
  * `withheldEnv` (key `"withheldEnv"`) when it is neither a list of findings nor `"unknown"`, read at a shell call of
729
771
  * a root leg (once per run).
772
+ * - `"config.execution_env_failure_contract_broken"` (#4740) — the environment broke its failure contract (`execFailureBreachLedger`,
773
+ * `src/core/exec-outcome.ts`, where the breaches, the scope and the detail are); `detail: { breach, code, face, sessionId? }`.
730
774
  * - `"config.read_deny_floor_unkept"` (#2936) — the run's read-deny table holds rows and its execution environment does
731
775
  * not declare it keeps the byte floor (`capabilities.keepsReadFloor`): the engine refuses what a command names, but a
732
776
  * recursive read under a root reads the files below it there, deny rows included. The notice dialect of the refusal
733
777
  * `RunnerDeps.readDenyFloorRequired` turns it into (the prepare then fails with the same code); never minted for an
734
778
  * 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
779
+ * 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
780
+ * leg's own session's record (each delegated child on its own environment and its own session); a leg that judged tables and found
781
+ * 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
782
  * library-direct band that compiles its own table. Every run's own fact stays on its wiring manifest
738
783
  * (`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
784
  * - `"config.read_floor_confinement_unavailable"` — a Node environment was asked to confine its starts to the floor
@@ -832,30 +877,64 @@ export interface EngineNotice {
832
877
  * others), `owner_mismatch` (the folder is another account's), `damaged` (the stored rules, or what holds them, are damaged or not in
833
878
  * 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
879
  * 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.
880
+ * - `"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`.
881
+ * - `"config.entries_not_applied"` (7.70.0) — an entry the person wrote did not apply. One frame per kind (`detail.kind`, closed
882
+ * `ENTRIES_NOT_APPLIED_KINDS`), each told as its own mint decides and in its own sentence; `detail: { kind, entries, count, identity,
883
+ * …routing }` — `entries` at most the first eight (`ENTRIES_NOT_APPLIED_SHOWN`), each with `entry` (what the person wrote, as written:
884
+ * a rule's text through `noticeRuleText` — at most 1 024 code points, then the truncation mark; `(unreadable)` for a row whose text
885
+ * 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
886
+ * the whole set (equal for the same set). Audience `user`, attention `act`. The kinds:
887
+ * · `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
888
+ * edit's, in practice): entries whose behavior word could not be read (no rows: the sentence says where each was served and what
889
+ * was read there), project-scoped rows whose scope root is not a complete absolute path — a deny or ask row among them protects
890
+ * nothing — and allow rows whose text is not the canonical spelling of their stored fields, or a member of which could not be
891
+ * read as the type it holds (they allow nothing), until rewritten or removed; and deny or ask rows of either personal partition a
892
+ * member of which could not be read (`EffectivePermissionRules.unreadableRows`: one whose tool, match and path read, or whose
893
+ * text says them, applies as written; one neither of whose spellings reads — no allow clears a call it may reach). Once per run,
894
+ * by whichever read met them first; one sentence per kind of row present. Each entry: `reason` (`scope_root_not_absolute` /
895
+ * `invalid_rule_text` / `metadata_mismatch` / the unreadable rows' words), `scopeRoot?` (scope rows only, neutralized and
896
+ * bounded), `member?` (the first member that could not be read), `behavior?` (a deny or ask row so read), `element?` (an entry
897
+ * that is no row: `{ partition, index, read }`). Left-out rows first. Routing `sessionId`, `runId`.
898
+ * · `rule_text_unreadable` — a leg's own tool policy left out rules a person's settings layer (`user` / `project`) wrote whose
899
+ * text the compiler cannot read (`ToolPolicy.skippedRules`); a deny or ask rule among them is NOT in force, each in its own
900
+ * clause. At prepare on every leg, for rules no ancestor of its delegation chain holds; once per session per set. Each entry:
901
+ * `reason` (the issue code), `behavior`, `layer`. Routing: the leg notice's (`sessionId`, `sourceSessionId?`, `agentId?`), `runId`.
902
+ * · `mcp_injection_dropped` — an entry of the user's own request-lane MCP injection was NOT mounted for the leg (minted by the
903
+ * host's intake through `mcpInjectionDroppedNotice`, the one mint; see its module). One entry: `entry` the server name as the
904
+ * user spelled it, `reason` (`MCP_INJECTION_DROP_REASONS`), `field?`. Routing `sessionId` (required at the mint).
905
+ * · `model_word_unknown` — a role seat (other than `default` and `classifier`) names a model word the catalog does not hold, or a
906
+ * 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
907
+ * (seat, word, cause), root legs only. One entry: `entry` the word (bounded), `seat`, `role`, `reason` (`unknown_model_ref` /
908
+ * `tier_unbound`), `fallback` (the role's chain). Routing `sessionId`, `runId?`.
909
+ * · `allow_entry_inert` — allow-list entries that grant nothing (a skill's `allowed-tools`, the request's list: once per prepared
910
+ * task; the deployment's: once per Runner, at construction, no session). Each entry: the list (`source`, `skill?`, `list?`) and
911
+ * its reading (`reason` and the inert members). A skill's `disallowed-tools` entry that refuses nothing is
912
+ * `config.skill_deny_unreadable`.
913
+ * · `session_rule_unread` / `session_rule_named_no_tool` — a session's stored allow list (`toolAllow`, `RunnerDeps.sessionPolicyStore`)
914
+ * written in an earlier rule grammar holds entries this engine's grammar reads as no rule (they admit nothing), or that named no
915
+ * tool in grammar 0. Once per session per entry set per rules session. Each entry: `reader`; frame members `bucket`,
916
+ * `storedGrammar`, `rewrite` (`{ by: "rewrite_in_current_grammar", stampsGrammar }`), `rulesSessionId` with `sessionId` (both
917
+ * absent on a hand-built `createSessionRulePolicy`'s notice).
918
+ * RETIRED here (BREAKING, named; `NOTICE_CODE_LINEAGE`): `permission.rule_row_dropped`, `permission.settings_rules_skipped`,
919
+ * `mcp.injection_dropped`, `model.role_defaulted` and `permission.allowed_tool_not_granted` — each fact is one kind above (the
920
+ * last one's refusing side `config.skill_deny_unreadable`); last minted by 7.69.1.
921
+ * - `"config.skill_deny_unreadable"` (7.70.0; the spelling of the refusal the skill's activation meets) — a skill's `disallowed-tools`
922
+ * holds entries that refuse nothing, so the skill does not activate: a refusal that reads as nothing is not dropped. Once per
923
+ * prepared task. `detail: { entries, count, identity, sessionId? }` — each entry as `allow_entry_inert`'s. Audience `user`, attention `act`.
924
+ * Before 7.70.0 the refusing side of `permission.allowed_tool_not_granted`.
925
+ * - `"config.session_rules_earlier_grammar"` — a session's stored deny list (`toolDeny`) was written in an earlier rule grammar and
926
+ * holds entries this engine's grammar reads as no rule, so those rules refuse every call until they are rewritten. The message
927
+ * names the session, the bucket, the entries (the first five, the rest counted) and the way out. Audience `user`, attention `act`.
928
+ * Once per session per entry set per bucket per rules session (the session's announced record; runner/earlier-grammar-notice.ts).
929
+ * `detail: { bucket, storedGrammar, entries: [{ entry, reader }], rewrite: { by, stampsGrammar }, rulesSessionId, sessionId }` —
930
+ * `entry` through `noticeRuleText`, `reader` `no_rule`; `rulesSessionId` the session whose rules they are (an ancestor's on a
931
+ * delegated child), `sessionId` the run that read them — both absent on the notice a hand-built `createSessionRulePolicy` given no
932
+ * `onEarlierGrammar` tells through the default seat or a process line. 7.70.0 narrows it to this bucket: an allow-list entry so
933
+ * read is `config.entries_not_applied`, a revised meaning the next code.
934
+ * - `"config.session_rules_reread"` (7.70.0) — the same stored rules hold entries whose meaning a grammar revision after the row's
935
+ * 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
936
+ * which, with both, and the way to this grammar's. Same `detail` (`reader` `grammar_revised`) and dedup unit. Audience `user`,
937
+ * attention `inform`.
859
938
  * - `"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
939
  * an ancestor's session handed down) holds names of tools the engine retired with NO successor (`TaskOutput`, `TeamCreate`, …: the
861
940
  * 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 +1071,9 @@ export interface EngineNotice {
992
1071
  * is the registration that asked, `turn` the turn number it ended; no `inputId`, no `actorId`. The notice
993
1072
  * rides the cut's ACCEPTANCE: a cut that lands after the request's end was delivered but before the loop
994
1073
  * 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.
1074
+ * disclosed by `mods.turn_abort_unconsumed` (`detail.source: "extension"`) at the result's settlement.
1075
+ * 7.70.0 narrows this code to the two lanes above (attention `audit`: the echo of the person's own cut); this lane
1076
+ * mints `mods.turn_aborted` (attention `act`, the same `detail`) — an extension's cut is its own fact.
996
1077
  * In every lane: one notice per REAL cut (a `now` that found nothing in flight or whose frame
997
1078
  * already rode the imminent boundary, and a halt with nothing in flight, announce nothing — no
998
1079
  * false interrupt claims); `runId` is the INVOCATION that was cut; every cut turn counts toward
@@ -1019,13 +1100,17 @@ export interface EngineNotice {
1019
1100
  * beside the verb receipt. `detail: { source: "halt", sessionId, runId, taskId }` — `runId` is the run whose ending
1020
1101
  * the halt failed to claim. Audience `"user"`. A REFUSED halt (typed `steering.not_running` throw)
1021
1102
  * 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.
1103
+ * 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.
1104
+ * - `"mods.turn_abort_unconsumed"` (7.70.0; before it, `task.halt_unconsumed` with `source: "extension"`) — an extension's
1105
+ * `$.turn.abort` whose cut was ACCEPTED (`mods.turn_aborted` was announced) but that no settlement took as its turn's
1106
+ * cause: the turn had already ended on its own outcome (its request's end was delivered before the cut, so it ends as an
1107
+ * answer), or the run's own ending won. The result does NOT carry `turnAbortedBy` for it. One per such cut, at the result's
1108
+ * settlement. `detail: { source: "extension", extension, turn, sessionId, runId, taskId }` — `extension` and `turn` are the
1109
+ * cut's own (the ones its `mods.turn_aborted` carried). Audience `"user"`, attention `inform`: the turn's own outcome stands.
1110
+ * - `"mods.turn_aborted"` (7.70.0; before it, `task.turn_interrupted` with `cause: "extension_abort"`) — an extension's
1111
+ * `$.turn.abort({ turn })` cut the running model turn; the run goes on at the ordinary turn boundary. `detail: { cause:
1112
+ * "extension_abort", extension, turn, sessionId, runId, taskId }`. One per real cut. Audience `"user"`, attention `act`: the
1113
+ * person's run ended a turn on someone else's word.
1029
1114
  *
1030
1115
  * - `"task.late_approval"` (design/384 slice 1) — a synchronous ask approval was NOT CONSUMED:
1031
1116
  * a run or turn interrupt released the wait (the `resolveAsk` race arm detached the approver's
@@ -1066,11 +1151,15 @@ export interface EngineNotice {
1066
1151
  * verb alike): the refusal itself is the loud answer.
1067
1152
  *
1068
1153
  * - `"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`
1154
+ * (`AskOutcome`, with its `readRootGrantLasts`). GRANTED: it equalled the card's `readRootCandidate.dir` beside
1155
+ * `allow: true`; the READ directories now include it (never the write roots), for `detail.lasts`: `"session"` — a
1156
+ * session rule the session's later runs read too — or `"run"` (the sentence says why a session-long answer took the
1157
+ * run: the card did not offer it, a policy answered, or the rule could not be written — `sessionUnconfirmed: true` when its
1158
+ * write may have landed all the same); `detail: { dir, covers?, root, lasts, sessionUnconfirmed?, toolName, toolCallId,
1159
+ * sessionId, runId, taskId }`, `root` = the canonical spelling held. REJECTED: nothing
1160
+ * changed, nothing was written, the verdict stands; `detail: { reason, offered?, requested?, …same ids }`, `reason` ∈
1161
+ * `on_refusal` | `not_a_string` | `lasts_invalid` (a duration outside `"session"` / `"run"`, or one with no grant
1162
+ * beside it) | `no_candidate` | `mismatch` | `unresolvable` | `resolves_elsewhere` | `admits_artifact_store`
1074
1163
  * (the directory contains the wired local artifact store, lies inside it or is it) | `no_read_roots`. Once per
1075
1164
  * answered ask. Audience `"user"`.
1076
1165
  * - `"approval.approver_defect"` (`src/core/runner/approver-defect-announcer.ts`, `approverDefectAnnouncer`; minted by the four stations that put an
@@ -1251,14 +1340,19 @@ export interface EngineNotice {
1251
1340
  * the message is written per value (a delegated child's inherited floor and a fork's inherited
1252
1341
  * one-way record say so, rather than claiming the session declared it). Audience `"user"`.
1253
1342
  * 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.
1343
+ * arm folds into the standing entry instead of double-announcing. 7.70.0 narrows it to the origins the person did not
1344
+ * give on this session (`standing-record`, `delegation-floor`, `fork-origin`; attention `act`); the person's own switch is next.
1345
+ * - `"memory.capture_switched_off"` (7.70.0) — the same posture and message, landed by the person's own switch: `origin`
1346
+ * `declaration` (the task declared `capture: "off"`) or `flip-verb` (the live verb). `detail: { sessionId, origin }`. Audience
1347
+ * `"user"` — the frame still reaches the person's stream, where a surface confirms the switch landed — attention `audit`.
1348
+ * Same dedup unit.
1255
1349
  * - `"memory.capture_optout_unpersisted"` (design/383 §2.8) — the OPPOSITE receipt, and a
1256
1350
  * separate code on purpose ("it is off for you" and "it could not be turned off" must never
1257
1351
  * 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
1352
+ * failed, or the memory phase failed before the record was made), so it is REFUSED rather than honored in-process under a
1353
+ * switch that would silently stop holding at the next resume. Minted only beside that refusal — the throw carrying the same
1354
+ * code — never beside a success, and no success notice is minted on this arm. `detail: { sessionId, ingress?, cause, retry,
1355
+ * outsideReason? }` — why, and whether a retry can succeed (`mount-failed-notice.ts`). Audience `"user"` (the operator repairs the store, but the
1262
1356
  * entitlement to the fact belongs to whoever asked for the privacy). **TWO ingresses, and they
1263
1357
  * settle differently — a consumer must not read one as the other:**
1264
1358
  * · PREPARE-TIME (a declared/inherited opt-out, before the run starts) — the refusal is
@@ -1346,26 +1440,45 @@ export interface EngineNotice {
1346
1440
  * the box and the drain stops at its seq until the bucket refills). Disclosed once per seq per leg,
1347
1441
  * and again when a re-judgment moves a held entry's cause. `detail: { disposition, cause, seq, box,
1348
1442
  * fromSession?, sessionId, runId }`. Audience `"user"`: the session's user is the one who did
1349
- * not receive it.
1443
+ * not receive it. 7.70.0 narrows it to `refused` / `admission_refused` / `notice_unrouted` / `held` (attention `inform`);
1444
+ * the other two arms are their own codes, below, with the same `detail`:
1445
+ * - `"peer.inbound_unread"` (7.70.0) — `disposition: "resupply_exhausted"`: the message's frame was summarized away by a
1446
+ * compaction, re-supplied once and summarized away again; the model never read it and the sender was not told. Attention `act`.
1447
+ * - `"peer.notice_user_only"` (7.70.0) — `disposition: "notice_user_only"` for an idle notice, or a receipt saying the person's
1448
+ * message was not delivered (held, denied, expired, dropped, refused): shown to the person only, the model did not read it —
1449
+ * the person is its one reader. Attention `act`.
1450
+ * - `"peer.receipt_delivered_user_only"` (7.70.0) — `disposition: "notice_user_only"` for a receipt saying the person's message
1451
+ * was delivered: a success, shown to the person only. Attention `inform`.
1350
1452
  * - `"peer.held_settled"` (design/385 §4.4, slice 4) — a message left THIS session's held queue.
1351
1453
  * `detail.settlement` names how: `"delivered"` (a re-judgment or an approval released it into
1352
1454
  * this session's model context), `"refused"` (the setting moved to refuse, or an approval met a
1353
1455
  * refusing policy), `"expired"` (the `dialogExpiry` deadline, an eviction when the 100-entry queue
1354
1456
  * 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).
1457
+ * `"denied"` (the review face), `"dropped"` (the injection lane refused the released frame), `"retired"` (the card left
1458
+ * this process with no decision taken: the record stays held in its box, or another consumer settled it).
1356
1459
  * `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
1460
+ * approved | denied | cancelled | inject_failed | superseded | decided_elsewhere`); the sender was sent the matching receipt
1461
+ * whenever the record carried a reply address — except on `superseded` and `decided_elsewhere`, where the consumer that
1359
1462
  * settled the record sent it.
1360
1463
  * `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.
1464
+ * `"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
1465
+ * decided for the person (a deadline, an eviction, a shutdown, a refusal or a drop of a card no person had approved, a
1466
+ * card retired or decided elsewhere; attention `inform`); the other two are their own codes, below, with the same `detail`:
1467
+ * - `"peer.held_approval_unhonored"` (7.70.0) — a card a person approved (the approval itself, a card already `approved`, or
1468
+ * one a person's approval handed over) ended `refused` (the policy refuses now) or `dropped` (the injection lane refused
1469
+ * it): the approval was not honoured. Attention `act`.
1470
+ * - `"peer.held_decision_applied"` (7.70.0) — a card `delivered`, or settled by the person's own deny (`denied`) or cancel
1471
+ * (`expired` with `reason: "cancelled"`): the echo of the decision. Attention `audit`.
1362
1472
  * - `"peer.idle_subscription"` (design/385 §5.2, slice 4) — a peer session asked to be told when
1363
1473
  * THIS session next goes idle (`SendMessage … notify_when_idle`). `detail.outcome`: `"recorded"`
1364
1474
  * / `"refreshed"` (a same-requester re-ask; the subscription is one-shot and expires unfired after
1365
1475
  * 12 h), `"full"` (the 32-entry table is full) or `"refused"` (this session's `crossSessionInbound`
1366
1476
  * is `refuse`) — the last two answered the requester with an `unavailable` notice. `detail:
1367
1477
  * { 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).
1478
+ * session is being watched is the one entitled to know (CC announces it in the session UI). 7.70.0 narrows it to
1479
+ * `recorded` / `refreshed` (attention `act`); `full` / `refused` are the next code.
1480
+ * - `"peer.idle_subscription_declined"` (7.70.0) — the same ask answered `unavailable` (`outcome` `full` or `refused`): the
1481
+ * requester was told, nothing of this session's is watched. Same `detail`. Audience `"user"`, attention `inform`.
1369
1482
  *
1370
1483
  * - `"delegation.transcript_integrity"` (subagent transcript persistence) — a durable agent row
1371
1484
  * with a BOUND transcript sessionId names a session the reading tree could not open — the store attests `not_found`, or the
@@ -1398,7 +1511,11 @@ export interface EngineNotice {
1398
1511
  * work is the session user's own; the operator hears it through the sink like every code.
1399
1512
  * - `"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
1513
  * 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"`.
1514
+ * 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"`.
1515
+ * - `"delegation.spawn_depth_unknown"` — a background agent revived from a row that records no delegation depth
1516
+ * (`BackgroundAgentRecord.spawnDepth`, absent on a row an earlier release wrote) runs without the delegation tool: the
1517
+ * 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
1518
+ * of the runner the delegation tool runs on. `detail: { taskId }`. Audience `"operator"`.
1402
1519
  * - `"delegation.delivery_discarded"` (#3431) — a frame (a background task's completion, a monitor event, a child's message)
1403
1520
  * addressed to an earlier occupant of a session id — the id deleted and created again, by another principal or the same
1404
1521
  * one — was discarded instead of delivered to the occupant the id holds now. Once per frame, by the Runner's per-session
@@ -1495,30 +1612,30 @@ export interface EngineNotice {
1495
1612
  * {@link deliverEngineNotice} — the ONE delivery throat — for every catalogued code. A session screen shows a notice whose audience
1496
1613
  * is `"user"` and whose attention is `"act"`. ABSENT = it has not said, never "ignorable": the delivering engine is older than this
1497
1614
  * 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"`. */
1615
+ * and did not write it ({@link noticeAttentionOf}). The throat reads it off the catalog alone: a value a mint or a host carried
1616
+ * into the throat is taken off, so a code outside the catalog always leaves without it. A reader falls back to its own
1617
+ * `NOTICE_ATTENTION`; an unknown value reads `"act"`. */
1499
1618
  attention?: NoticeAttention;
1500
1619
  /** 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. */
1620
+ * string, equal on two notices that tell the same fact, compared only for equality. Written by the throat from the catalog
1621
+ * alone (a value carried into the throat is taken off); absent for every other code.
1622
+ *
1623
+ * The engine is the one de-duplicator of a code that carries it: the throat has already told the fact once per session and
1624
+ * 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
1625
+ * `factKey` is therefore the fact happening again — a reader must show it as a new notice and never fold it into the earlier
1626
+ * one. This frame carries no `groupKey` and never will: grouping a per-occurrence code (one with no `factKey`) is the
1627
+ * reader's own choice, over the detail members it chooses. */
1503
1628
  factKey?: string;
1504
1629
  }
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;
1630
+ export { announceDigest, endNoticeFact, factUnder, type NoticeTold } from "./notice-fact.js";
1631
+ /** 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
1632
+ * that is not a function calls it. A call site that names none is told with the seats the throat serves listed together. */
1633
+ declare const NOTICE_SEAT_NAMES: {
1634
+ readonly runner: "RunnerDeps.onNotice";
1635
+ readonly environment: "the `onNotice` option of the execution environment";
1636
+ readonly toolkit: "the `onNotice` option of the toolkit";
1637
+ };
1638
+ export type NoticeSeatName = keyof typeof NOTICE_SEAT_NAMES;
1522
1639
  /** 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
1640
  * 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
1641
  * 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 +1674,14 @@ export declare function __resetMalformedNoticeSeatAnnouncement(): void;
1557
1674
  * 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
1675
  * 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
1676
  *
1677
+ * · `seat`, when given, is the name the call site knows its `onNotice` by ({@link NoticeSeatName}); the one-time line that says a
1678
+ * 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
1679
+ * throat serves listed together.
1680
+ *
1560
1681
  * Every process line goes through one writer ({@link writeProcessLine}), which is guarded: what the engine says can never fail
1561
1682
  * the call that said it, whichever arm it leaves by.
1562
1683
  */
1563
- export declare function deliverEngineNotice(onNotice: ((notice: EngineNotice) => void) | undefined, notice: EngineNotice, admission?: (notice: EngineNotice) => boolean, told?: NoticeTold): void;
1684
+ export declare function deliverEngineNotice(onNotice: ((notice: EngineNotice) => void) | undefined, notice: EngineNotice, admission?: (notice: EngineNotice) => boolean, told?: NoticeTold, seat?: NoticeSeatName): void;
1564
1685
  /**
1565
1686
  * #259 loud half, one notice PER FAMILY (`task.user_steer_undrained` / `task.user_followup_undrained`):
1566
1687
  * a consumer routing on `code` alone must never mistake a stranded follow-up for a stranded steer, so
@@ -1777,4 +1898,3 @@ export declare function undrainedUserInputNotices(counts: {
1777
1898
  approvalFeedback?: number;
1778
1899
  approvalCarry?: ApprovalCarryRefusal;
1779
1900
  }, taskId?: string, sessionId?: string, runId?: string, parent?: ParentLegIds): EngineNotice[];
1780
- export {};