@sema-agent/core 7.69.0 → 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 (944) hide show
  1. package/CHANGELOG.md +3060 -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 +21 -25
  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 +258 -145
  35. package/dist/agents/tool-filter.js +1 -1
  36. package/dist/agents/verify.d.ts +5 -2
  37. package/dist/agents/verify.js +29 -17
  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-request.d.ts +7 -0
  50. package/dist/brain/reasoning-request.js +6 -0
  51. package/dist/brain/reasoning.d.ts +8 -1
  52. package/dist/brain/reasoning.js +3 -0
  53. package/dist/brain/reference-model-traits.d.ts +13 -12
  54. package/dist/brain/reference-model-traits.js +11 -10
  55. package/dist/brain/request-route.d.ts +1 -1
  56. package/dist/brain/request-route.js +2 -2
  57. package/dist/brain/route-adjudicator.d.ts +72 -2
  58. package/dist/brain/route-adjudicator.js +210 -69
  59. package/dist/brain/route-conformance.js +35 -0
  60. package/dist/brain/routing.js +2 -2
  61. package/dist/brain/spend-meter.d.ts +56 -0
  62. package/dist/brain/spend-meter.js +263 -0
  63. package/dist/brain/stream-shared.d.ts +1 -1
  64. package/dist/brain/stream-shared.js +3 -1
  65. package/dist/core/a2a-bound-grant.d.ts +110 -0
  66. package/dist/core/a2a-bound-grant.js +83 -0
  67. package/dist/core/a2a-task-state.d.ts +153 -51
  68. package/dist/core/a2a-task-state.js +85 -45
  69. package/dist/core/a2a.d.ts +62 -14
  70. package/dist/core/a2a.js +298 -57
  71. package/dist/core/agent-config-dir.d.ts +86 -3
  72. package/dist/core/agent-config-dir.js +122 -13
  73. package/dist/core/agent-definition.d.ts +1 -1
  74. package/dist/core/agent-state.d.ts +10 -1
  75. package/dist/core/agent-state.js +11 -4
  76. package/dist/core/allow-entry.d.ts +80 -42
  77. package/dist/core/allow-entry.js +118 -54
  78. package/dist/core/allow-rule-shadow.d.ts +25 -3
  79. package/dist/core/allow-rule-shadow.js +7 -0
  80. package/dist/core/approval-object.js +2 -2
  81. package/dist/core/artifact-host.d.ts +109 -6
  82. package/dist/core/artifact-host.js +68 -0
  83. package/dist/core/ask-headline.d.ts +12 -11
  84. package/dist/core/ask-headline.js +9 -3
  85. package/dist/core/ask-origin.d.ts +115 -55
  86. package/dist/core/ask-origin.js +80 -43
  87. package/dist/core/ask-question.d.ts +76 -38
  88. package/dist/core/ask-question.js +151 -22
  89. package/dist/core/ask-unresolvable-notice.d.ts +66 -10
  90. package/dist/core/ask-unresolvable-notice.js +38 -14
  91. package/dist/core/attachment-source.d.ts +1 -1
  92. package/dist/core/attachment-source.js +1 -0
  93. package/dist/core/auto-compaction.d.ts +31 -95
  94. package/dist/core/auto-compaction.js +40 -104
  95. package/dist/core/auto-mode-directive.d.ts +17 -5
  96. package/dist/core/auto-mode-directive.js +12 -3
  97. package/dist/core/auto-mode.d.ts +34 -5
  98. package/dist/core/auto-mode.js +43 -5
  99. package/dist/core/background-agent-store.d.ts +100 -11
  100. package/dist/core/background-agent-store.js +64 -6
  101. package/dist/core/background-shell.d.ts +9 -0
  102. package/dist/core/background-shell.js +10 -0
  103. package/dist/core/caller-text.d.ts +2 -2
  104. package/dist/core/caller-tool-name.d.ts +6 -0
  105. package/dist/core/caller-tool-name.js +2 -1
  106. package/dist/core/checkpoint-features.d.ts +39 -423
  107. package/dist/core/checkpoint-features.js +45 -1
  108. package/dist/core/checkpoint-queries.d.ts +14 -3
  109. package/dist/core/checkpoint-queries.js +9 -4
  110. package/dist/core/checkpoint-requirements.d.ts +87 -2
  111. package/dist/core/checkpoint-requirements.js +18 -2
  112. package/dist/core/checkpoint-row-verdict.d.ts +70 -17
  113. package/dist/core/checkpoint-row-verdict.js +78 -29
  114. package/dist/core/checkpoint-store.d.ts +88 -71
  115. package/dist/core/checkpoint-store.js +24 -22
  116. package/dist/core/child-clamp-seats.d.ts +30 -3
  117. package/dist/core/child-clamp-seats.js +24 -0
  118. package/dist/core/classifier-unavailable-arm.d.ts +6 -1
  119. package/dist/core/classifier-unavailable-arm.js +8 -5
  120. package/dist/core/config-refusal-codes.d.ts +7 -5
  121. package/dist/core/config-refusal-codes.js +9 -2
  122. package/dist/core/config-refusal-input.d.ts +46 -0
  123. package/dist/core/config-refusal-input.js +62 -0
  124. package/dist/core/context-edit.d.ts +50 -18
  125. package/dist/core/context-edit.js +41 -2
  126. package/dist/core/context-guard.d.ts +60 -13
  127. package/dist/core/context-guard.js +77 -35
  128. package/dist/core/context-settings.d.ts +2 -1
  129. package/dist/core/context-settings.js +10 -6
  130. package/dist/core/corrupt-session-form.d.ts +97 -0
  131. package/dist/core/corrupt-session-form.js +54 -0
  132. package/dist/core/cron.d.ts +68 -0
  133. package/dist/core/cron.js +259 -0
  134. package/dist/core/cross-boundary-taint.d.ts +3 -3
  135. package/dist/core/data-root.d.ts +32 -0
  136. package/dist/core/data-root.js +86 -0
  137. package/dist/core/decision-receipt.d.ts +2 -0
  138. package/dist/core/decision-receipt.js +3 -2
  139. package/dist/core/declaration-words.d.ts +37 -0
  140. package/dist/core/declaration-words.js +21 -0
  141. package/dist/core/delegation-frames.d.ts +76 -35
  142. package/dist/core/delegation-frames.js +21 -1
  143. package/dist/core/durable-sync.d.ts +9 -0
  144. package/dist/core/durable-sync.js +37 -0
  145. package/dist/core/engine-attestation.d.ts +16 -0
  146. package/dist/core/engine-attestation.js +2 -0
  147. package/dist/core/engine-capabilities.d.ts +123 -3
  148. package/dist/core/engine-capabilities.js +1 -1
  149. package/dist/core/engine-notice.d.ts +267 -136
  150. package/dist/core/engine-notice.js +13 -19
  151. package/dist/core/engine-version.js +1 -1
  152. package/dist/core/entries-not-applied.d.ts +22 -0
  153. package/dist/core/entries-not-applied.js +26 -0
  154. package/dist/core/exec-gate.d.ts +8 -1
  155. package/dist/core/exec-gate.js +24 -9
  156. package/dist/core/exec-outcome.d.ts +102 -0
  157. package/dist/core/exec-outcome.js +79 -0
  158. package/dist/core/existing-target.d.ts +45 -0
  159. package/dist/core/existing-target.js +54 -8
  160. package/dist/core/fast-tier-door.d.ts +2 -2
  161. package/dist/core/fast-tier-door.js +3 -3
  162. package/dist/core/file-history-store.d.ts +138 -19
  163. package/dist/core/file-history-store.js +124 -33
  164. package/dist/core/gate-fold.js +8 -1
  165. package/dist/core/gate-lanes.js +65 -38
  166. package/dist/core/gate-outcome.d.ts +32 -3
  167. package/dist/core/gate-outcome.js +13 -1
  168. package/dist/core/git-read-only.d.ts +10 -0
  169. package/dist/core/git-read-only.js +1 -0
  170. package/dist/core/git-worktree-env.d.ts +25 -5
  171. package/dist/core/git-worktree-env.js +47 -21
  172. package/dist/core/governance-codes.d.ts +184 -38
  173. package/dist/core/governance-codes.js +455 -39
  174. package/dist/core/hands-band.d.ts +1 -1
  175. package/dist/core/hooks.d.ts +75 -13
  176. package/dist/core/hooks.js +4 -0
  177. package/dist/core/host-floor.d.ts +1 -1
  178. package/dist/core/host-floor.js +1 -1
  179. package/dist/core/identity-rekey.d.ts +2 -1
  180. package/dist/core/identity-rekey.js +5 -5
  181. package/dist/core/image-admission.d.ts +2 -2
  182. package/dist/core/image-admission.js +1 -1
  183. package/dist/core/isolation-scope.d.ts +42 -17
  184. package/dist/core/isolation-scope.js +12 -4
  185. package/dist/core/leg-identity.d.ts +17 -2
  186. package/dist/core/leg-identity.js +6 -1
  187. package/dist/core/locked-config.d.ts +86 -16
  188. package/dist/core/locked-config.js +106 -36
  189. package/dist/core/lsp.d.ts +3 -0
  190. package/dist/core/lsp.js +3 -2
  191. package/dist/core/mailbox-store.d.ts +4 -0
  192. package/dist/core/mailbox-store.js +7 -0
  193. package/dist/core/mcp-failure.d.ts +13 -4
  194. package/dist/core/mcp-failure.js +10 -0
  195. package/dist/core/mcp-injection-drop.d.ts +30 -13
  196. package/dist/core/mcp-injection-drop.js +25 -7
  197. package/dist/core/mcp-leg-wait.d.ts +88 -0
  198. package/dist/core/mcp-leg-wait.js +100 -0
  199. package/dist/core/mcp-name-judge.js +1 -2
  200. package/dist/core/mcp-probe.d.ts +30 -1
  201. package/dist/core/mcp-probe.js +5 -3
  202. package/dist/core/mcp-read-bound.d.ts +51 -0
  203. package/dist/core/mcp-read-bound.js +49 -0
  204. package/dist/core/mcp-server-link.js +4 -3
  205. package/dist/core/mcp-server-spec.d.ts +97 -26
  206. package/dist/core/mcp-server-spec.js +51 -19
  207. package/dist/core/mcp-server-unavailable-notice.d.ts +15 -6
  208. package/dist/core/mcp-server-unavailable-notice.js +12 -11
  209. package/dist/core/mcp-stderr-lines.d.ts +69 -0
  210. package/dist/core/mcp-stderr-lines.js +333 -0
  211. package/dist/core/mcp.d.ts +32 -9
  212. package/dist/core/mcp.js +187 -44
  213. package/dist/core/member-outcome.d.ts +281 -0
  214. package/dist/core/member-outcome.js +293 -0
  215. package/dist/core/memory-engine/consolidation.js +3 -3
  216. package/dist/core/memory-engine/content-origin.js +5 -4
  217. package/dist/core/memory-engine/control-objects.js +6 -4
  218. package/dist/core/memory-engine/distiller.js +2 -2
  219. package/dist/core/memory-engine/dual-root.d.ts +12 -5
  220. package/dist/core/memory-engine/dual-root.js +13 -7
  221. package/dist/core/memory-engine/engine.d.ts +74 -42
  222. package/dist/core/memory-engine/engine.js +206 -102
  223. package/dist/core/memory-engine/file-backend.d.ts +18 -4
  224. package/dist/core/memory-engine/file-backend.js +15 -20
  225. package/dist/core/memory-engine/index-copies.d.ts +49 -0
  226. package/dist/core/memory-engine/index-copies.js +89 -0
  227. package/dist/core/memory-engine/index.d.ts +3 -2
  228. package/dist/core/memory-engine/index.js +3 -2
  229. package/dist/core/memory-engine/layout.d.ts +186 -26
  230. package/dist/core/memory-engine/layout.js +273 -42
  231. package/dist/core/memory-engine/memory-backend-contract.js +20 -20
  232. package/dist/core/memory-engine/memory-deployment.d.ts +29 -16
  233. package/dist/core/memory-engine/memory-deployment.js +30 -20
  234. package/dist/core/memory-engine/mount-failed-notice.d.ts +64 -0
  235. package/dist/core/memory-engine/mount-failed-notice.js +50 -2
  236. package/dist/core/memory-engine/origin-clearance.d.ts +9 -7
  237. package/dist/core/memory-engine/origin-clearance.js +2 -4
  238. package/dist/core/memory-engine/projection-ledger.d.ts +48 -0
  239. package/dist/core/memory-engine/projection-ledger.js +130 -0
  240. package/dist/core/memory-engine/scope-contract.js +2 -2
  241. package/dist/core/memory-engine/sync-client.js +1 -2
  242. package/dist/core/memory-engine/types.d.ts +22 -3
  243. package/dist/core/memory.js +3 -5
  244. package/dist/core/mode-policy.d.ts +89 -17
  245. package/dist/core/mode-policy.js +72 -29
  246. package/dist/core/model-seat.d.ts +13 -1
  247. package/dist/core/mods/classic-events.d.ts +13 -1
  248. package/dist/core/mods/dollar.js +2 -1
  249. package/dist/core/mods/extension-call.d.ts +3 -0
  250. package/dist/core/mods/extension-call.js +3 -0
  251. package/dist/core/mods/kernel/dispatch.d.ts +4 -0
  252. package/dist/core/mods/kernel/dispatch.js +3 -3
  253. package/dist/core/mods/kernel/events.d.ts +11 -3
  254. package/dist/core/mods/kernel/events.js +4 -4
  255. package/dist/core/mods/message-display.d.ts +6 -3
  256. package/dist/core/mods/message-display.js +13 -5
  257. package/dist/core/mods/session-compact.js +3 -3
  258. package/dist/core/mods/stations.d.ts +10 -1
  259. package/dist/core/mods/stations.js +7 -4
  260. package/dist/core/mods/teammate-stations.d.ts +75 -0
  261. package/dist/core/mods/teammate-stations.js +108 -0
  262. package/dist/core/mounted-mcp.js +1 -2
  263. package/dist/core/namespaced-rule-name.d.ts +1 -1
  264. package/dist/core/namespaced-rule-name.js +1 -1
  265. package/dist/core/notice-fact.d.ts +28 -0
  266. package/dist/core/notice-fact.js +25 -0
  267. package/dist/core/owner-identity.d.ts +8 -3
  268. package/dist/core/owner-identity.js +6 -3
  269. package/dist/core/parent-spec-seat.d.ts +16 -6
  270. package/dist/core/parent-spec-seat.js +28 -6
  271. package/dist/core/park-resumability.d.ts +10 -5
  272. package/dist/core/park-resumability.js +3 -0
  273. package/dist/core/park-selfcheck.js +2 -1
  274. package/dist/core/path-guard-rows.d.ts +8 -3
  275. package/dist/core/path-guard-rows.js +18 -5
  276. package/dist/core/peer-seat.d.ts +4 -2
  277. package/dist/core/peer-seat.js +3 -0
  278. package/dist/core/permission-rule-consent.d.ts +50 -1
  279. package/dist/core/permission-rule-consent.js +121 -14
  280. package/dist/core/permission-rule-model.d.ts +135 -39
  281. package/dist/core/permission-rule-model.js +154 -26
  282. package/dist/core/permission-rule-org.d.ts +13 -0
  283. package/dist/core/permission-rule-org.js +8 -0
  284. package/dist/core/permission-rule-provider.d.ts +107 -7
  285. package/dist/core/permission-rule-provider.js +434 -29
  286. package/dist/core/permission-rule-session.js +3 -1
  287. package/dist/core/permission-rule-store.d.ts +19 -2
  288. package/dist/core/permission-rule-store.js +29 -10
  289. package/dist/core/permission-rule-sync.js +5 -2
  290. package/dist/core/permission-rules.js +8 -3
  291. package/dist/core/persisted-rule-arms.d.ts +10 -4
  292. package/dist/core/persisted-rule-arms.js +16 -11
  293. package/dist/core/persisted-rule-buckets.d.ts +66 -0
  294. package/dist/core/persisted-rule-buckets.js +57 -0
  295. package/dist/core/plan-review-facts.d.ts +33 -0
  296. package/dist/core/plan-review-facts.js +25 -0
  297. package/dist/core/prefix-declaration.d.ts +50 -0
  298. package/dist/core/prefix-declaration.js +13 -0
  299. package/dist/core/present-plan-tool.d.ts +13 -3
  300. package/dist/core/present-plan-tool.js +14 -3
  301. package/dist/core/pricing.d.ts +5 -1
  302. package/dist/core/pricing.js +8 -5
  303. package/dist/core/principal-name.d.ts +55 -5
  304. package/dist/core/principal-name.js +57 -16
  305. package/dist/core/process-identity.d.ts +21 -9
  306. package/dist/core/process-identity.js +51 -51
  307. package/dist/core/process-table.d.ts +67 -0
  308. package/dist/core/process-table.js +177 -0
  309. package/dist/core/protocol-http-auth.d.ts +75 -12
  310. package/dist/core/protocol-http-auth.js +223 -26
  311. package/dist/core/protocol-revocation.d.ts +29 -10
  312. package/dist/core/protocol-revocation.js +9 -5
  313. package/dist/core/read-only-shell.d.ts +1 -1
  314. package/dist/core/read-only-shell.js +1 -1
  315. package/dist/core/read-root-grant-screen.d.ts +17 -6
  316. package/dist/core/read-root-grant-screen.js +15 -5
  317. package/dist/core/reminder-mint.d.ts +6 -0
  318. package/dist/core/reminder-mint.js +13 -0
  319. package/dist/core/remote-env.d.ts +111 -3
  320. package/dist/core/remote-env.js +20 -0
  321. package/dist/core/request-copy-projection.js +97 -18
  322. package/dist/core/resource-limit-reasons.d.ts +52 -0
  323. package/dist/core/resource-limit-reasons.js +6 -0
  324. package/dist/core/resume-at-refusal.d.ts +10 -6
  325. package/dist/core/resume-at-refusal.js +2 -2
  326. package/dist/core/resume-config-judge.d.ts +3 -2
  327. package/dist/core/resume-config-judge.js +2 -1
  328. package/dist/core/resume-startup-cause.d.ts +18 -4
  329. package/dist/core/resume-startup-cause.js +30 -6
  330. package/dist/core/retention.d.ts +12 -2
  331. package/dist/core/retention.js +6 -1
  332. package/dist/core/retired-keys.d.ts +5 -0
  333. package/dist/core/retired-keys.js +12 -0
  334. package/dist/core/rewind-conversation.d.ts +54 -0
  335. package/dist/core/rewind-conversation.js +1 -0
  336. package/dist/core/roles.d.ts +61 -3
  337. package/dist/core/roles.js +81 -28
  338. package/dist/core/rule-lane-reads.d.ts +2 -1
  339. package/dist/core/rule-lane-reads.js +54 -29
  340. package/dist/core/rule-offer-read.js +5 -2
  341. package/dist/core/rule-owner.d.ts +6 -1
  342. package/dist/core/rule-owner.js +8 -2
  343. package/dist/core/rule-store-fault.d.ts +4 -2
  344. package/dist/core/rule-store-fault.js +4 -1
  345. package/dist/core/runner/advertised-writable-dirs.d.ts +17 -0
  346. package/dist/core/runner/advertised-writable-dirs.js +15 -9
  347. package/dist/core/runner/announce-once-ledger.js +12 -11
  348. package/dist/core/runner/assemble-result.d.ts +20 -6
  349. package/dist/core/runner/assemble-result.js +12 -5
  350. package/dist/core/runner/auto-strip-notice.d.ts +1 -1
  351. package/dist/core/runner/branch-window.d.ts +25 -2
  352. package/dist/core/runner/branch-window.js +47 -11
  353. package/dist/core/runner/chain-refusal-throw.d.ts +19 -0
  354. package/dist/core/runner/chain-refusal-throw.js +30 -0
  355. package/dist/core/runner/changes-git.d.ts +21 -0
  356. package/dist/core/runner/changes-git.js +291 -0
  357. package/dist/core/runner/changes-history.d.ts +80 -0
  358. package/dist/core/runner/changes-history.js +351 -0
  359. package/dist/core/runner/checkpoint-scope.d.ts +16 -8
  360. package/dist/core/runner/checkpoint-scope.js +6 -4
  361. package/dist/core/runner/child-tree.d.ts +31 -20
  362. package/dist/core/runner/child-tree.js +24 -9
  363. package/dist/core/runner/classifier-ladder.d.ts +4 -2
  364. package/dist/core/runner/classifier-ladder.js +14 -12
  365. package/dist/core/runner/cleared-results-record.d.ts +33 -0
  366. package/dist/core/runner/cleared-results-record.js +56 -0
  367. package/dist/core/runner/clock-and-limits.d.ts +0 -3
  368. package/dist/core/runner/clock-and-limits.js +1 -2
  369. package/dist/core/runner/compact-session.js +30 -56
  370. package/dist/core/runner/compaction-knobs.d.ts +1 -1
  371. package/dist/core/runner/compaction-restate.js +2 -1
  372. package/dist/core/runner/constraint-layers.d.ts +101 -0
  373. package/dist/core/runner/constraint-layers.js +96 -0
  374. package/dist/core/runner/construction-doors.js +2 -0
  375. package/dist/core/runner/content-ask-bindings.d.ts +3 -3
  376. package/dist/core/runner/continuation-gate.d.ts +8 -4
  377. package/dist/core/runner/continuation-gate.js +4 -1
  378. package/dist/core/runner/continues-from.d.ts +8 -1
  379. package/dist/core/runner/continues-from.js +10 -1
  380. package/dist/core/runner/contracts.d.ts +226 -74
  381. package/dist/core/runner/conversation-segment.d.ts +19 -12
  382. package/dist/core/runner/conversation-segment.js +27 -7
  383. package/dist/core/runner/decide-continuation.d.ts +2 -2
  384. package/dist/core/runner/denial-limit-arms.js +3 -4
  385. package/dist/core/runner/derived-route-fallback.d.ts +2 -12
  386. package/dist/core/runner/derived-route-fallback.js +0 -6
  387. package/dist/core/runner/earlier-grammar-notice.js +5 -3
  388. package/dist/core/runner/env-capability-census.js +2 -1
  389. package/dist/core/runner/file-history-restore.d.ts +35 -9
  390. package/dist/core/runner/file-history-restore.js +36 -9
  391. package/dist/core/runner/finish-reason-seat.js +13 -4
  392. package/dist/core/runner/gate-exit.d.ts +10 -1
  393. package/dist/core/runner/gate-exit.js +40 -13
  394. package/dist/core/runner/git-status-frame.d.ts +2 -2
  395. package/dist/core/runner/git-status-frame.js +2 -1
  396. package/dist/core/runner/halt-attribution.js +1 -1
  397. package/dist/core/runner/initial-run-state.d.ts +1 -1
  398. package/dist/core/runner/initial-run-state.js +3 -3
  399. package/dist/core/runner/left-as-is-seat.js +1 -1
  400. package/dist/core/runner/leg-caller-places.d.ts +39 -0
  401. package/dist/core/runner/leg-caller-places.js +23 -0
  402. package/dist/core/runner/leg-frame.d.ts +8 -2
  403. package/dist/core/runner/leg-receipt.d.ts +29 -2
  404. package/dist/core/runner/leg-receipt.js +37 -6
  405. package/dist/core/runner/mcp-redial.d.ts +15 -4
  406. package/dist/core/runner/mcp-redial.js +53 -6
  407. package/dist/core/runner/media-removed-seat.d.ts +10 -6
  408. package/dist/core/runner/media-removed-seat.js +6 -3
  409. package/dist/core/runner/memory-capture-optout.d.ts +7 -11
  410. package/dist/core/runner/memory-capture-optout.js +7 -4
  411. package/dist/core/runner/memory-phase-refusals.d.ts +19 -0
  412. package/dist/core/runner/memory-phase-refusals.js +18 -0
  413. package/dist/core/runner/messages-omitted-seat.d.ts +25 -1
  414. package/dist/core/runner/messages-omitted-seat.js +41 -10
  415. package/dist/core/runner/model-fallback-seat.d.ts +18 -5
  416. package/dist/core/runner/model-fallback-seat.js +29 -24
  417. package/dist/core/runner/model-lane-seat.d.ts +23 -1
  418. package/dist/core/runner/model-lane-seat.js +20 -2
  419. package/dist/core/runner/nested-memory-lane.d.ts +64 -57
  420. package/dist/core/runner/nested-memory-lane.js +310 -110
  421. package/dist/core/runner/park-commit.d.ts +26 -5
  422. package/dist/core/runner/park-commit.js +19 -8
  423. package/dist/core/runner/permission-rule-lanes.d.ts +5 -0
  424. package/dist/core/runner/permission-rule-lanes.js +44 -11
  425. package/dist/core/runner/person-path-rows.d.ts +146 -25
  426. package/dist/core/runner/person-path-rows.js +195 -22
  427. package/dist/core/runner/prefix-ledger.d.ts +174 -0
  428. package/dist/core/runner/prefix-ledger.js +266 -0
  429. package/dist/core/runner/prepare-acquire-reconcile.d.ts +2 -1
  430. package/dist/core/runner/prepare-acquire-reconcile.js +13 -65
  431. package/dist/core/runner/prepare-advisor.d.ts +2 -0
  432. package/dist/core/runner/prepare-advisor.js +4 -2
  433. package/dist/core/runner/prepare-artifact.d.ts +7 -1
  434. package/dist/core/runner/prepare-artifact.js +4 -4
  435. package/dist/core/runner/prepare-ask-lane.d.ts +4 -0
  436. package/dist/core/runner/prepare-ask-lane.js +7 -5
  437. package/dist/core/runner/prepare-boundary-parks.js +9 -3
  438. package/dist/core/runner/prepare-caps-and-workflow.d.ts +2 -0
  439. package/dist/core/runner/prepare-caps-and-workflow.js +41 -28
  440. package/dist/core/runner/prepare-config-doors.d.ts +13 -13
  441. package/dist/core/runner/prepare-config-doors.js +125 -123
  442. package/dist/core/runner/prepare-context-lane.d.ts +55 -15
  443. package/dist/core/runner/prepare-context-lane.js +135 -51
  444. package/dist/core/runner/prepare-defer-classify.d.ts +12 -0
  445. package/dist/core/runner/prepare-defer-classify.js +29 -7
  446. package/dist/core/runner/prepare-delegation-surface.d.ts +2 -0
  447. package/dist/core/runner/prepare-delegation-surface.js +8 -4
  448. package/dist/core/runner/prepare-execution-env.d.ts +3 -0
  449. package/dist/core/runner/prepare-execution-env.js +10 -5
  450. package/dist/core/runner/prepare-file-history.js +4 -1
  451. package/dist/core/runner/prepare-gate-stations.d.ts +11 -2
  452. package/dist/core/runner/prepare-gate-stations.js +17 -10
  453. package/dist/core/runner/prepare-hands-readface.d.ts +45 -11
  454. package/dist/core/runner/prepare-hands-readface.js +118 -39
  455. package/dist/core/runner/prepare-inherited-gate.d.ts +25 -11
  456. package/dist/core/runner/prepare-inherited-gate.js +29 -16
  457. package/dist/core/runner/prepare-memory-engine-session.js +4 -2
  458. package/dist/core/runner/prepare-memory.d.ts +18 -3
  459. package/dist/core/runner/prepare-memory.js +86 -36
  460. package/dist/core/runner/prepare-offload-wrappers.d.ts +7 -7
  461. package/dist/core/runner/prepare-offload-wrappers.js +26 -17
  462. package/dist/core/runner/prepare-park-ask.d.ts +8 -11
  463. package/dist/core/runner/prepare-park-ask.js +11 -8
  464. package/dist/core/runner/prepare-policy-chain.d.ts +27 -1
  465. package/dist/core/runner/prepare-policy-chain.js +65 -29
  466. package/dist/core/runner/prepare-project-context.d.ts +4 -0
  467. package/dist/core/runner/prepare-project-context.js +9 -8
  468. package/dist/core/runner/prepare-prompt-assembly.d.ts +12 -4
  469. package/dist/core/runner/prepare-prompt-assembly.js +12 -6
  470. package/dist/core/runner/prepare-prompt-inputs.d.ts +3 -7
  471. package/dist/core/runner/prepare-prompt-inputs.js +6 -7
  472. package/dist/core/runner/prepare-protocol-tools.d.ts +2 -2
  473. package/dist/core/runner/prepare-protocol-tools.js +44 -24
  474. package/dist/core/runner/prepare-question-face.d.ts +4 -9
  475. package/dist/core/runner/prepare-question-face.js +8 -3
  476. package/dist/core/runner/prepare-safety-scan.js +7 -0
  477. package/dist/core/runner/prepare-suspend-saga.d.ts +11 -1
  478. package/dist/core/runner/prepare-suspend-saga.js +12 -5
  479. package/dist/core/runner/prepare-task.d.ts +2 -2
  480. package/dist/core/runner/prepare-task.js +188 -98
  481. package/dist/core/runner/prepare-tool-disclosure-mount.d.ts +5 -11
  482. package/dist/core/runner/prepare-tool-disclosure-mount.js +16 -12
  483. package/dist/core/runner/prepare-turn-wiring.d.ts +19 -26
  484. package/dist/core/runner/prepare-turn-wiring.js +15 -23
  485. package/dist/core/runner/prepare-wiring-manifest.d.ts +7 -19
  486. package/dist/core/runner/prepare-wiring-manifest.js +19 -36
  487. package/dist/core/runner/prepare-workspace-restore.d.ts +4 -11
  488. package/dist/core/runner/prepare-workspace-restore.js +1 -14
  489. package/dist/core/runner/prompt-suggestions.d.ts +3 -1
  490. package/dist/core/runner/prompt-suggestions.js +1 -1
  491. package/dist/core/runner/read-block-judge.d.ts +47 -0
  492. package/dist/core/runner/read-block-judge.js +33 -0
  493. package/dist/core/runner/read-root-grant.d.ts +48 -13
  494. package/dist/core/runner/read-root-grant.js +53 -19
  495. package/dist/core/runner/read-session-changes.d.ts +9 -0
  496. package/dist/core/runner/read-session-changes.js +192 -0
  497. package/dist/core/runner/remote-env-retry.d.ts +4 -4
  498. package/dist/core/runner/resume-admission.d.ts +11 -7
  499. package/dist/core/runner/resume-admission.js +25 -15
  500. package/dist/core/runner/resume-apply.js +2 -1
  501. package/dist/core/runner/resume-checkpoint-screen.d.ts +7 -2
  502. package/dist/core/runner/resume-checkpoint-screen.js +32 -17
  503. package/dist/core/runner/resume-internals-and-config.d.ts +3 -0
  504. package/dist/core/runner/resume-internals-and-config.js +10 -7
  505. package/dist/core/runner/resume-policy-outcome.d.ts +4 -3
  506. package/dist/core/runner/resume-policy-outcome.js +2 -2
  507. package/dist/core/runner/retired-name-policy.d.ts +15 -0
  508. package/dist/core/runner/retired-name-policy.js +37 -0
  509. package/dist/core/runner/retired-runner-deps.js +3 -1
  510. package/dist/core/runner/rewind-conversation.d.ts +10 -0
  511. package/dist/core/runner/rewind-conversation.js +100 -0
  512. package/dist/core/runner/rewind-files.js +37 -20
  513. package/dist/core/runner/rewind-target.d.ts +28 -0
  514. package/dist/core/runner/rewind-target.js +58 -0
  515. package/dist/core/runner/role-resolution-table.d.ts +8 -16
  516. package/dist/core/runner/role-resolution-table.js +3 -6
  517. package/dist/core/runner/role-seat-defaulted.d.ts +14 -5
  518. package/dist/core/runner/role-seat-defaulted.js +17 -13
  519. package/dist/core/runner/rule-store-unreadable-notice.d.ts +9 -4
  520. package/dist/core/runner/rule-store-unreadable-notice.js +8 -5
  521. package/dist/core/runner/run-compaction-machinery.d.ts +0 -10
  522. package/dist/core/runner/run-compaction-machinery.js +4 -40
  523. package/dist/core/runner/run-harness-handlers.js +46 -27
  524. package/dist/core/runner/run-identity-wiring.d.ts +2 -0
  525. package/dist/core/runner/run-identity-wiring.js +7 -3
  526. package/dist/core/runner/run-leg.js +30 -29
  527. package/dist/core/runner/run-notification-lane.js +2 -2
  528. package/dist/core/runner/run-recovery-lanes.d.ts +0 -4
  529. package/dist/core/runner/run-recovery-lanes.js +34 -18
  530. package/dist/core/runner/run-settle-and-teardown.d.ts +1 -3
  531. package/dist/core/runner/run-settle-and-teardown.js +45 -38
  532. package/dist/core/runner/run-stop-and-final-verify.js +66 -69
  533. package/dist/core/runner/run-telemetry-and-budget-seats.js +14 -9
  534. package/dist/core/runner/run-terminal-adoption.d.ts +11 -30
  535. package/dist/core/runner/run-terminal-adoption.js +5 -88
  536. package/dist/core/runner/run-tool-mount-facts.js +1 -5
  537. package/dist/core/runner/run-turn-boundary.js +59 -32
  538. package/dist/core/runner/runtask.d.ts +22 -16
  539. package/dist/core/runner/runtask.js +25 -15
  540. package/dist/core/runner/sandbox-network-seat.js +1 -1
  541. package/dist/core/runner/seat-model-doors.d.ts +6 -5
  542. package/dist/core/runner/seat-model-doors.js +4 -3
  543. package/dist/core/runner/session-file-state-replay.d.ts +47 -8
  544. package/dist/core/runner/session-file-state-replay.js +97 -11
  545. package/dist/core/runner/session-files-open.d.ts +64 -0
  546. package/dist/core/runner/session-files-open.js +33 -0
  547. package/dist/core/runner/session-hash-salt.d.ts +18 -0
  548. package/dist/core/runner/session-hash-salt.js +36 -0
  549. package/dist/core/runner/session-read-file-states.d.ts +37 -41
  550. package/dist/core/runner/session-read-file-states.js +14 -6
  551. package/dist/core/runner/session-rule-policy.d.ts +5 -0
  552. package/dist/core/runner/session-rule-policy.js +16 -9
  553. package/dist/core/runner/session-verb-doors.d.ts +41 -4
  554. package/dist/core/runner/session-verb-doors.js +66 -11
  555. package/dist/core/runner/shared-read-classifier.d.ts +14 -3
  556. package/dist/core/runner/shared-read-classifier.js +14 -6
  557. package/dist/core/runner/shell-env-withheld.d.ts +10 -5
  558. package/dist/core/runner/shell-env-withheld.js +4 -3
  559. package/dist/core/runner/side-call-account.d.ts +56 -6
  560. package/dist/core/runner/side-call-account.js +52 -7
  561. package/dist/core/runner/skill-mention.d.ts +12 -0
  562. package/dist/core/runner/skill-mention.js +50 -0
  563. package/dist/core/runner/skipped-rules-notice.d.ts +5 -5
  564. package/dist/core/runner/skipped-rules-notice.js +3 -3
  565. package/dist/core/runner/stream-settle-backstop.js +6 -4
  566. package/dist/core/runner/sub-agent-deny-lists.d.ts +26 -7
  567. package/dist/core/runner/sub-agent-deny-lists.js +23 -15
  568. package/dist/core/runner/synthetic-tools.js +2 -2
  569. package/dist/core/runner/task-start-doors.d.ts +7 -3
  570. package/dist/core/runner/task-start-doors.js +72 -31
  571. package/dist/core/runner/terminal-account.js +14 -8
  572. package/dist/core/runner/terminal-projection.d.ts +3 -2
  573. package/dist/core/runner/terminal-projection.js +2 -2
  574. package/dist/core/runner/tool-defer-gate.d.ts +1 -1
  575. package/dist/core/runner/tool-end-body.d.ts +8 -1
  576. package/dist/core/runner/tool-end-body.js +4 -3
  577. package/dist/core/runner/tool-face-overlay.js +6 -4
  578. package/dist/core/runner/tool-result-media-seat.d.ts +2 -1
  579. package/dist/core/runner/tool-table-view.d.ts +5 -9
  580. package/dist/core/runner/tool-table-view.js +24 -22
  581. package/dist/core/runner/trim-stretch.d.ts +43 -0
  582. package/dist/core/runner/trim-stretch.js +34 -0
  583. package/dist/core/runner/turn-attachments.js +7 -2
  584. package/dist/core/runner/unreadable-person-rows.d.ts +39 -0
  585. package/dist/core/runner/unreadable-person-rows.js +20 -0
  586. package/dist/core/runner/verdict-refusal.d.ts +22 -7
  587. package/dist/core/runner/verdict-refusal.js +35 -3
  588. package/dist/core/runner/workspace-sync.d.ts +49 -0
  589. package/dist/core/runner/workspace-sync.js +170 -0
  590. package/dist/core/runner/write-protection-station.d.ts +5 -2
  591. package/dist/core/runner/write-protection-station.js +1 -1
  592. package/dist/core/runner-deps.d.ts +76 -53
  593. package/dist/core/scheduler.d.ts +47 -17
  594. package/dist/core/scheduler.js +0 -12
  595. package/dist/core/secret-env.d.ts +209 -23
  596. package/dist/core/secret-env.js +343 -47
  597. package/dist/core/sensitive-path-policy.js +7 -2
  598. package/dist/core/session-changes.d.ts +260 -0
  599. package/dist/core/session-changes.js +40 -0
  600. package/dist/core/session-checkout.d.ts +87 -3
  601. package/dist/core/session-checkout.js +144 -15
  602. package/dist/core/session-log-transfer.js +13 -7
  603. package/dist/core/session-policy-store.d.ts +40 -12
  604. package/dist/core/session-policy-store.js +51 -25
  605. package/dist/core/session-store.d.ts +23 -10
  606. package/dist/core/session-store.js +40 -13
  607. package/dist/core/session.d.ts +56 -9
  608. package/dist/core/session.js +8 -1
  609. package/dist/core/shell-read-silence.d.ts +3 -2
  610. package/dist/core/shell-read-silence.js +3 -1
  611. package/dist/core/shell-run-candidates.d.ts +23 -6
  612. package/dist/core/shell-run-candidates.js +41 -10
  613. package/dist/core/skill-grant.d.ts +11 -6
  614. package/dist/core/skill-grant.js +23 -15
  615. package/dist/core/spend-account.d.ts +232 -0
  616. package/dist/core/spend-account.js +286 -0
  617. package/dist/core/store-contracts/background-agent-store-contract.js +85 -0
  618. package/dist/core/store-contracts/checkpoint-store-contract.d.ts +6 -2
  619. package/dist/core/store-contracts/checkpoint-store-contract.js +60 -6
  620. package/dist/core/store-contracts/file-history-store-contract.js +4 -4
  621. package/dist/core/store-contracts/mailbox-store-contract.d.ts +2 -1
  622. package/dist/core/store-contracts/mailbox-store-contract.js +22 -11
  623. package/dist/core/store-contracts/peer-directory-contract.js +8 -0
  624. package/dist/core/store-contracts/permission-rule-sync-contract.js +3 -3
  625. package/dist/core/store-contracts/session-deletion-cascade-contract.js +23 -4
  626. package/dist/core/store-contracts/session-policy-store-contract.js +9 -0
  627. package/dist/core/store-contracts/session-repo-contract.js +38 -1
  628. package/dist/core/store-contracts/session-store-contract.d.ts +21 -2
  629. package/dist/core/store-contracts/session-store-contract.js +369 -5
  630. package/dist/core/store-contracts/tool-result-store-contract.js +8 -7
  631. package/dist/core/store-contracts/workflow-journal-store-contract.js +33 -0
  632. package/dist/core/task-event.d.ts +83 -57
  633. package/dist/core/task-intake.d.ts +5 -3
  634. package/dist/core/task-intake.js +6 -2
  635. package/dist/core/task-limits.d.ts +15 -8
  636. package/dist/core/task-notification.d.ts +17 -12
  637. package/dist/core/task-notification.js +20 -9
  638. package/dist/core/task-registry-agent.d.ts +35 -30
  639. package/dist/core/task-registry-agent.js +102 -32
  640. package/dist/core/task-registry-monitor.js +2 -1
  641. package/dist/core/task-registry-shared.d.ts +83 -16
  642. package/dist/core/task-registry-shared.js +26 -7
  643. package/dist/core/task-registry-workflow.d.ts +9 -1
  644. package/dist/core/task-registry-workflow.js +11 -3
  645. package/dist/core/task-registry.d.ts +26 -27
  646. package/dist/core/task-registry.js +42 -12
  647. package/dist/core/task-result.d.ts +182 -33
  648. package/dist/core/task-spec-members.d.ts +24 -3
  649. package/dist/core/task-spec-members.js +13 -4
  650. package/dist/core/task-spec.d.ts +74 -60
  651. package/dist/core/task-start-judge.js +10 -3
  652. package/dist/core/task-stream.d.ts +2 -1
  653. package/dist/core/terminal-cause.d.ts +30 -2
  654. package/dist/core/tool-catalog-entries.js +1 -1
  655. package/dist/core/tool-errors.js +1 -0
  656. package/dist/core/tool-face-reader.d.ts +3 -2
  657. package/dist/core/tool-gate-phase.d.ts +16 -0
  658. package/dist/core/tool-gate-phase.js +1 -0
  659. package/dist/core/tool-mount-plan.d.ts +7 -0
  660. package/dist/core/tool-mount-plan.js +25 -1
  661. package/dist/core/tool-mount-static.js +3 -2
  662. package/dist/core/tool-name-aliases.d.ts +81 -106
  663. package/dist/core/tool-name-aliases.js +60 -155
  664. package/dist/core/tool-name-readings.d.ts +2 -0
  665. package/dist/core/tool-name-readings.js +9 -1
  666. package/dist/core/tool-policy.d.ts +195 -78
  667. package/dist/core/tool-policy.js +147 -99
  668. package/dist/core/tool-registry.d.ts +2 -0
  669. package/dist/core/tool-registry.js +3 -0
  670. package/dist/core/tool-result-bytes.d.ts +27 -3
  671. package/dist/core/tool-result-bytes.js +53 -0
  672. package/dist/core/tool-result-store.d.ts +11 -4
  673. package/dist/core/tool-result-store.js +6 -2
  674. package/dist/core/tool-roster.d.ts +41 -16
  675. package/dist/core/tool-roster.js +55 -17
  676. package/dist/core/tool-spec-members.d.ts +12 -0
  677. package/dist/core/tool-spec-members.js +32 -1
  678. package/dist/core/tool-spec.d.ts +68 -28
  679. package/dist/core/tools.js +1 -0
  680. package/dist/core/trace.d.ts +54 -74
  681. package/dist/core/trace.js +2 -3
  682. package/dist/core/types.d.ts +7 -7
  683. package/dist/core/types.js +2 -2
  684. package/dist/core/unavailable-landing.d.ts +72 -0
  685. package/dist/core/unavailable-landing.js +18 -0
  686. package/dist/core/unc-spelling.d.ts +31 -0
  687. package/dist/core/unc-spelling.js +51 -0
  688. package/dist/core/untrusted-egress.d.ts +27 -5
  689. package/dist/core/untrusted-egress.js +30 -8
  690. package/dist/core/usage-window-store.d.ts +11 -1
  691. package/dist/core/usage-window-store.js +5 -0
  692. package/dist/core/user-attachment.d.ts +74 -48
  693. package/dist/core/user-attachment.js +137 -69
  694. package/dist/core/user-row-origin.d.ts +10 -0
  695. package/dist/core/user-row-origin.js +6 -0
  696. package/dist/core/wiring-manifest.d.ts +123 -26
  697. package/dist/core/wiring-manifest.js +75 -13
  698. package/dist/core/workflow-journal-store.d.ts +16 -7
  699. package/dist/core/workflow-journal-store.js +34 -6
  700. package/dist/core/workflow-run-store-contract.js +124 -0
  701. package/dist/core/workflow-run-store.d.ts +112 -17
  702. package/dist/core/workflow-run-store.js +75 -12
  703. package/dist/core/write-protect.d.ts +4 -0
  704. package/dist/core/write-protect.js +17 -15
  705. package/dist/engine/compaction/compaction.d.ts +63 -101
  706. package/dist/engine/compaction/compaction.js +165 -226
  707. package/dist/engine/compaction/utils.d.ts +2 -11
  708. package/dist/engine/compaction/utils.js +4 -13
  709. package/dist/engine/execution-env/kill-tree.js +44 -49
  710. package/dist/engine/execution-env/node-execution-env.d.ts +3 -1
  711. package/dist/engine/execution-env/node-execution-env.js +35 -17
  712. package/dist/engine/harness/agent-harness.d.ts +32 -5
  713. package/dist/engine/harness/agent-harness.js +34 -8
  714. package/dist/engine/harness/types.d.ts +100 -32
  715. package/dist/engine/harness/types.js +36 -4
  716. package/dist/engine/llm/rejected-images.js +1 -1
  717. package/dist/engine/llm/types.d.ts +22 -2
  718. package/dist/engine/llm/types.js +5 -2
  719. package/dist/engine/loop/agent-loop.d.ts +14 -1
  720. package/dist/engine/loop/agent-loop.js +74 -22
  721. package/dist/engine/loop/types.d.ts +19 -2
  722. package/dist/engine/session/import-validate.d.ts +9 -0
  723. package/dist/engine/session/import-validate.js +50 -9
  724. package/dist/engine/session/memory-repo.d.ts +5 -1
  725. package/dist/engine/session/memory-repo.js +8 -3
  726. package/dist/engine/session/parent-chain-guard.js +1 -1
  727. package/dist/engine/session/path-to-root.js +1 -1
  728. package/dist/engine/session/repo-utils.d.ts +19 -12
  729. package/dist/engine/session/repo-utils.js +12 -7
  730. package/dist/engine/session/session.d.ts +30 -10
  731. package/dist/engine/session/session.js +52 -20
  732. package/dist/engine/session/storage-base.js +2 -2
  733. package/dist/fixtures/index.d.ts +3 -1
  734. package/dist/fixtures/index.js +3 -0
  735. package/dist/host-env.d.ts +17 -0
  736. package/dist/host-env.js +1 -0
  737. package/dist/index.d.ts +91 -46
  738. package/dist/index.js +71 -35
  739. package/dist/internal/harness-types.d.ts +2 -2
  740. package/dist/internal/harness.d.ts +5 -3
  741. package/dist/internal/harness.js +4 -3
  742. package/dist/internal/llm.d.ts +1 -1
  743. package/dist/internal/llm.js +1 -1
  744. package/dist/orchestration/run-spec.js +7 -2
  745. package/dist/orchestration/run-workflow-tool.d.ts +40 -12
  746. package/dist/orchestration/run-workflow-tool.js +210 -105
  747. package/dist/orchestration/workflow-catalog.d.ts +254 -0
  748. package/dist/orchestration/workflow-catalog.js +702 -0
  749. package/dist/orchestration/workflow-governance.d.ts +1 -1
  750. package/dist/orchestration/workflow-meta.d.ts +11 -1
  751. package/dist/orchestration/workflow-meta.js +48 -0
  752. package/dist/orchestration/workflow-observe.d.ts +8 -10
  753. package/dist/orchestration/workflow-observe.js +6 -1
  754. package/dist/orchestration/workflow-park-adoption.d.ts +129 -33
  755. package/dist/orchestration/workflow-park-adoption.js +327 -64
  756. package/dist/orchestration/workflow-requirements.d.ts +51 -0
  757. package/dist/orchestration/workflow-requirements.js +54 -0
  758. package/dist/orchestration/workflow-script-runner.d.ts +18 -0
  759. package/dist/orchestration/workflow-script-store.d.ts +19 -64
  760. package/dist/orchestration/workflow-script-store.js +1 -24
  761. package/dist/orchestration/workflow-types.d.ts +183 -31
  762. package/dist/orchestration/workflow-types.js +23 -4
  763. package/dist/orchestration/workflow.d.ts +59 -44
  764. package/dist/orchestration/workflow.js +664 -143
  765. package/dist/prompt-assembly/catalog/core-behavior.js +12 -2
  766. package/dist/prompt-assembly/catalog/engine.d.ts +36 -0
  767. package/dist/prompt-assembly/catalog/engine.js +4 -0
  768. package/dist/prompt-assembly/catalog/events.d.ts +24 -0
  769. package/dist/prompt-assembly/catalog/events.js +2 -0
  770. package/dist/prompt-assembly/catalog/locales/zh-Hans/core-behavior.js +13 -0
  771. package/dist/prompt-assembly/catalog/locales/zh-Hans/engine.js +4 -0
  772. package/dist/prompt-assembly/catalog/locales/zh-Hans/events.js +2 -0
  773. package/dist/prompt-assembly/catalog/locales/zh-Hans/mechanism.js +3 -2
  774. package/dist/prompt-assembly/catalog/mechanism.d.ts +8 -0
  775. package/dist/prompt-assembly/catalog/mechanism.js +3 -2
  776. package/dist/prompt-assembly/catalog/schema.d.ts +6 -3
  777. package/dist/prompt-assembly/catalog/schema.js +2 -0
  778. package/dist/prompt-assembly/catalog/sections.js +8 -0
  779. package/dist/prompt-assembly/epoch.d.ts +26 -0
  780. package/dist/prompt-assembly/epoch.js +29 -0
  781. package/dist/prompt-assembly/event-registry.js +3 -0
  782. package/dist/prompt-assembly/select.js +1 -0
  783. package/dist/prompt-assembly/tool-catalog.d.ts +1 -1
  784. package/dist/prompt-assembly/turn-snapshot.d.ts +14 -27
  785. package/dist/prompt-assembly/turn-snapshot.js +6 -18
  786. package/dist/prompt-assembly/types.d.ts +3 -0
  787. package/dist/prompts/default.d.ts +11 -2
  788. package/dist/prompts/default.js +4 -0
  789. package/dist/shell/lex.d.ts +78 -11
  790. package/dist/shell/lex.js +392 -78
  791. package/dist/stores/file/adoption/adopt.d.ts +12 -0
  792. package/dist/stores/file/adoption/adopt.js +78 -31
  793. package/dist/stores/file/adoption/marker.d.ts +48 -26
  794. package/dist/stores/file/adoption/marker.js +24 -11
  795. package/dist/stores/file/background-agent-store.d.ts +5 -0
  796. package/dist/stores/file/background-agent-store.js +26 -5
  797. package/dist/stores/file/data-root-declaration.js +2 -1
  798. package/dist/stores/file/descriptor-seat.d.ts +100 -0
  799. package/dist/stores/file/descriptor-seat.js +150 -0
  800. package/dist/stores/file/file-history-store.js +2 -1
  801. package/dist/stores/file/fs-atomic.d.ts +126 -78
  802. package/dist/stores/file/fs-atomic.js +313 -253
  803. package/dist/stores/file/index.d.ts +10 -1
  804. package/dist/stores/file/index.js +28 -16
  805. package/dist/stores/file/ledger-damage.js +6 -10
  806. package/dist/stores/file/lock-reading.d.ts +158 -0
  807. package/dist/stores/file/lock-reading.js +252 -0
  808. package/dist/stores/file/mailbox-store.d.ts +8 -5
  809. package/dist/stores/file/mailbox-store.js +23 -14
  810. package/dist/stores/file/permission-rule-adopt.js +11 -11
  811. package/dist/stores/file/permission-rule-store.d.ts +14 -3
  812. package/dist/stores/file/permission-rule-store.js +33 -37
  813. package/dist/stores/file/process-anchor.d.ts +85 -0
  814. package/dist/stores/file/process-anchor.js +392 -0
  815. package/dist/stores/file/session-policy-store.d.ts +18 -2
  816. package/dist/stores/file/session-policy-store.js +71 -5
  817. package/dist/stores/file/session-store.d.ts +19 -1
  818. package/dist/stores/file/session-store.js +51 -19
  819. package/dist/stores/file/shared-ledger.d.ts +3 -3
  820. package/dist/stores/file/task-list-store.js +1 -1
  821. package/dist/stores/file/tool-result-store.js +2 -1
  822. package/dist/stores/file/usage-window-store.js +1 -1
  823. package/dist/stores/file/workflow-journal-store.d.ts +5 -2
  824. package/dist/stores/file/workflow-journal-store.js +12 -25
  825. package/dist/stores/file/workflow-run-store.d.ts +5 -0
  826. package/dist/stores/file/workflow-run-store.js +19 -12
  827. package/dist/tools/artifact/artifact-text.d.ts +29 -11
  828. package/dist/tools/artifact/artifact-text.js +13 -6
  829. package/dist/tools/artifact/artifact-tool.d.ts +35 -5
  830. package/dist/tools/artifact/artifact-tool.js +240 -45
  831. package/dist/tools/artifact/conformance.d.ts +27 -5
  832. package/dist/tools/artifact/conformance.js +420 -45
  833. package/dist/tools/artifact/local-stub.d.ts +2 -2
  834. package/dist/tools/artifact/local-stub.js +29 -26
  835. package/dist/tools/fs/bash-failure-output.d.ts +64 -0
  836. package/dist/tools/fs/bash-failure-output.js +40 -0
  837. package/dist/tools/fs/bash-program-position.d.ts +7 -3
  838. package/dist/tools/fs/bash-program-position.js +11 -12
  839. package/dist/tools/fs/bash-readonly-classifier.d.ts +22 -6
  840. package/dist/tools/fs/bash-readonly-classifier.js +19 -9
  841. package/dist/tools/fs/bound-open.d.ts +9 -8
  842. package/dist/tools/fs/bound-open.js +6 -4
  843. package/dist/tools/fs/containment-face.d.ts +12 -3
  844. package/dist/tools/fs/containment-face.js +16 -7
  845. package/dist/tools/fs/dead-cwd.d.ts +8 -0
  846. package/dist/tools/fs/dead-cwd.js +7 -7
  847. package/dist/tools/fs/file-read-check.d.ts +30 -3
  848. package/dist/tools/fs/file-read-check.js +28 -6
  849. package/dist/tools/fs/file-write-check.d.ts +14 -0
  850. package/dist/tools/fs/file-write-check.js +35 -0
  851. package/dist/tools/fs/find-actions.d.ts +186 -0
  852. package/dist/tools/fs/find-actions.js +538 -0
  853. package/dist/tools/fs/fs-bash.d.ts +6 -3
  854. package/dist/tools/fs/fs-bash.js +71 -64
  855. package/dist/tools/fs/fs-pdf.js +16 -5
  856. package/dist/tools/fs/fs-read.d.ts +3 -0
  857. package/dist/tools/fs/fs-read.js +7 -5
  858. package/dist/tools/fs/fs-search-tools.d.ts +2 -2
  859. package/dist/tools/fs/fs-search-tools.js +4 -4
  860. package/dist/tools/fs/fs-shared.d.ts +67 -3
  861. package/dist/tools/fs/fs-shared.js +70 -34
  862. package/dist/tools/fs/fs-write.d.ts +23 -3
  863. package/dist/tools/fs/fs-write.js +137 -33
  864. package/dist/tools/fs/index.d.ts +15 -2
  865. package/dist/tools/fs/index.js +13 -7
  866. package/dist/tools/fs/pdf.js +12 -4
  867. package/dist/tools/fs/program-read-model.d.ts +17 -1
  868. package/dist/tools/fs/program-read-model.js +7 -2
  869. package/dist/tools/fs/program-read-model.rows.js +5 -1
  870. package/dist/tools/fs/read-deny-home.d.ts +13 -2
  871. package/dist/tools/fs/read-deny-home.js +38 -27
  872. package/dist/tools/fs/read-deny.js +15 -6
  873. package/dist/tools/fs/read-floor.d.ts +16 -0
  874. package/dist/tools/fs/read-floor.js +10 -5
  875. package/dist/tools/fs/removal-targets.d.ts +55 -21
  876. package/dist/tools/fs/removal-targets.js +272 -63
  877. package/dist/tools/fs/repo-map.d.ts +1 -1
  878. package/dist/tools/fs/repo-map.js +2 -2
  879. package/dist/tools/fs/safety.d.ts +30 -5
  880. package/dist/tools/fs/safety.js +80 -9
  881. package/dist/tools/fs/shell-read-bindings.d.ts +60 -5
  882. package/dist/tools/fs/shell-read-bindings.js +189 -21
  883. package/dist/tools/fs/shell-read-check.d.ts +14 -2
  884. package/dist/tools/fs/shell-read-check.js +52 -8
  885. package/dist/tools/fs/shell-read-command-environment.d.ts +56 -0
  886. package/dist/tools/fs/shell-read-command-environment.js +75 -0
  887. package/dist/tools/fs/shell-read-establish.js +134 -58
  888. package/dist/tools/fs/shell-read-judge.d.ts +84 -21
  889. package/dist/tools/fs/shell-read-judge.js +76 -26
  890. package/dist/tools/fs/shell-read-lost-walk.d.ts +19 -0
  891. package/dist/tools/fs/shell-read-lost-walk.js +35 -0
  892. package/dist/tools/fs/shell-read-object-path.d.ts +5 -1
  893. package/dist/tools/fs/shell-read-object-path.js +17 -4
  894. package/dist/tools/fs/shell-read-plan.d.ts +12 -2
  895. package/dist/tools/fs/shell-read-plan.js +79 -31
  896. package/dist/tools/fs/shell-read-sourced.d.ts +4 -3
  897. package/dist/tools/fs/shell-read-sourced.js +39 -6
  898. package/dist/tools/fs/shell-read-start.d.ts +11 -2
  899. package/dist/tools/fs/shell-read-start.js +3 -3
  900. package/dist/tools/fs/shell-read-word.js +1 -0
  901. package/dist/tools/fs/shell-read-workdir.d.ts +23 -17
  902. package/dist/tools/fs/shell-read-workdir.js +54 -42
  903. package/dist/tools/fs/shell-read-write-targets.d.ts +13 -5
  904. package/dist/tools/fs/shell-read-write-targets.js +51 -9
  905. package/dist/tools/monitor.d.ts +2 -1
  906. package/dist/tools/monitor.js +2 -0
  907. package/dist/tools/scheduler-tools.d.ts +14 -21
  908. package/dist/tools/scheduler-tools.js +68 -104
  909. package/dist/tools/task-list.d.ts +11 -1
  910. package/dist/tools/task-list.js +187 -134
  911. package/dist/tools/todo.d.ts +1 -1
  912. package/dist/tools/worktree.js +15 -13
  913. package/package.json +7 -2
  914. package/test/export-surface.snapshot.json +638 -22
  915. package/wire-changes/core-stores-sql@7.68.6.json +39 -0
  916. package/wire-changes/core-stores-sql@7.68.7.json +39 -0
  917. package/wire-changes/core-stores-sql@7.69.1.json +39 -0
  918. package/wire-changes/core-stores-sql@7.70.0.json +414 -0
  919. package/wire-changes/core@7.68.6.json +125 -0
  920. package/wire-changes/core@7.68.7.json +140 -0
  921. package/wire-changes/core@7.69.1.json +2561 -0
  922. package/wire-changes/core@7.70.0.json +14689 -0
  923. package/wire-changes/mods-kernel@7.68.6.json +39 -0
  924. package/wire-changes/mods-kernel@7.68.7.json +39 -0
  925. package/wire-changes/mods-kernel@7.69.1.json +39 -0
  926. package/wire-changes/mods-kernel@7.70.0.json +75 -0
  927. package/wire-changes/primitives@7.68.6.json +39 -0
  928. package/wire-changes/primitives@7.68.7.json +39 -0
  929. package/wire-changes/primitives@7.69.1.json +39 -0
  930. package/wire-changes/primitives@7.70.0.json +807 -0
  931. package/wire-changes/wiki-gate@7.68.6.json +39 -0
  932. package/wire-changes/wiki-gate@7.68.7.json +39 -0
  933. package/wire-changes/wiki-gate@7.69.1.json +39 -0
  934. package/wire-changes/wiki-gate@7.70.0.json +40 -0
  935. package/dist/core/cache-break-detector.d.ts +0 -86
  936. package/dist/core/cache-break-detector.js +0 -140
  937. package/dist/core/loopback-host.d.ts +0 -18
  938. package/dist/core/loopback-host.js +0 -40
  939. package/dist/core/protocol-naming.d.ts +0 -95
  940. package/dist/core/protocol-naming.js +0 -70
  941. package/dist/core/protocol-table.d.ts +0 -88
  942. package/dist/core/protocol-table.js +0 -47
  943. package/dist/core/runner/prompt-hash-salt.d.ts +0 -1
  944. package/dist/core/runner/prompt-hash-salt.js +0 -2
@@ -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
@@ -61,15 +62,6 @@ export interface EngineNotice {
61
62
  * at least one type is listed name-only (`nameOnly`) or not at all (`dropped`). Audience `operator`.
62
63
  * `detail: { budgetBytes, total, kept, nameOnly: [name], dropped: [name], sessionId }`; the same
63
64
  * firing rule as its skills sibling below (once per delivered frame, on the carrying message's receipt).
64
- * - `"permission.allowed_tool_not_granted"` — an allow list holds entries that grant (or refuse) nothing: a loaded skill's
65
- * `allowed-tools` / `disallowed-tools`, the request's `TaskSpec.allowedTools`, the deployment's `RunnerDeps.allowedTools`.
66
- * `*` (it voids an allow list; on a deny list it reads as nothing and the rest still refuses), `mcp__*` / `mcp__*__*` (no server
67
- * named), a rule on a tool with no such rule form (an allow by path on a tool other than `Read` / `Edit`),
68
- * a shape the rule grammar refuses, a tool name stale against the run's roster. The run goes on and asks for those tools
69
- * as usual. Audience `user`; once per prepared task for the skill and request lists (`detail.sessionId` present), once
70
- * per Runner for the deployment's (at construction, no session). `detail: { sessionId?, entries: [{ source, entry,
71
- * reason, skill?, list? }] }` (`source` ∈ `skill` / `request` / `deployment`; `skill` and `list` only on a skill's;
72
- * `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).
73
65
  * - `"permission.allow_rule_not_used_in_auto"` — auto mode does not use an allow rule the person holds (`auto-strip.ts`): the calls
74
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
75
67
  * conversation for that rule (`src/core/runner/auto-strip-notice.ts`). Audience `user`. `detail: { entry, source, reason, toolName,
@@ -86,13 +78,18 @@ export interface EngineNotice {
86
78
  * unchanged. Audience `user`. Once per failing handler per window, said when the window is released. `detail: { messageId, turn, index, final, cause, registration?,
87
79
  * sessionId }` (`cause` ∈ `threw` / `timeout` / `violation` / `reentry` / `deadline` / `fault`; `registration` names the failing
88
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.
89
- * - `"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
90
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
91
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
92
84
  * `user`. Once per stop point it closed. `detail: { event, registration, seat, reason?, sessionId, sourceSessionId?, agentId?, runId }`
93
- * (`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
94
86
  * registration produced carries none; `seat` ∈ `deployment` / `task`; `reason` the `end` text, bounded, absent when blank; the address
95
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.
96
93
  * - `"skills.listing_truncated"` — the `<skills>` disclosure block did not fit its byte budget, so
97
94
  * at least one skill is listed without its description (`nameOnly`) or, in the pathological case,
98
95
  * not listed at all (`dropped`); the `Skill` tool still serves every one of them. Audience
@@ -122,14 +119,14 @@ export interface EngineNotice {
122
119
  * (never the bytes), so the model, `tool_end.output` and the transcript read that; this is the operator's account. A
123
120
  * block refused for its SIZE (`raw_too_large`, `dimensions_too_large`, `base64_too_large`) has its bytes kept in the
124
121
  * run's tool-result store and its placeholder names the `ref`, or why they were not kept (`notKept`: `no_byte_store` |
125
- * `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.
126
123
  * `detail: { toolName, toolCallId, refused: [{ type, reason, bytes, limit?, width?, height?, mimeType?, ref?, notKept?,
127
124
  * saveError? }], sessionId, runId }` — closed-set words, counts, a media type only when it can be one (≤ 100 characters).
128
125
  * - `"tool_result.media_persisted"` — an MCP tool call or resource read whose server sent binary content the result does
129
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
130
127
  * no document, every blob a resource read returns): the result names each kept piece's ref, or says why it was not kept;
131
128
  * the message is made of the counts. ONCE PER CALL (or read). `detail: { server, toolName, toolCallId, kept: [{ bytes,
132
- * 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 }`.
133
130
  * - `"tool_result.read_refused"` — a run's `ReadToolResult` / `SaveToolResult` asked for a ref its tool-result store HOLDS
134
131
  * but which is not the run's to read: the entry records another identity (principal and isolation scope), records none, was
135
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
@@ -139,20 +136,28 @@ export interface EngineNotice {
139
136
  * `owner_read_failed` | `no_owner_read`; `cause` (on `owner_read_failed`) the store's thrown text. A ref the store does not
140
137
  * hold is never told — except `owner_read_failed`, told whether or not the ref exists (the store could not say; a store
141
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).
142
147
  * - `"config.image_processor_unavailable"` — an image went to the model as it was, over the image admission's soft
143
148
  * target (`IMAGE_ADMISSION.soft.targetBytes`), because the run has no image processor (`RunnerDeps.imageProcessor`
144
149
  * is `false`, or sharp did not resolve). ONCE PER RUN, at the first such image wherever it entered (a tool's result,
145
150
  * the task's images, an attachment). `detail: { bytes, targetBytes, sessionId, runId }`.
146
151
  * - `"fs.staging_file_left"` — a whole-file replace (`NodeExecutionEnv.writeFile`) whose write itself SUCCEEDED could not
147
152
  * remove the staged sibling it had written (the in-place rewrite after a refused rename, or after a refused staging open):
148
- * the file is still on disk, up to the whole content. Audience `operator`. `detail: { path }`, the staged path. Seat-only:
149
- * an environment with no `onNotice` seat says nothing (a failed write carries the same sentence in its error instead).
150
- * 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.
151
156
  * - `"fs.staging_file_swept"` — a whole-file replace (`NodeExecutionEnv.writeFile`) removed the staged siblings of its target
152
157
  * that a process which no longer runs had left behind (a process killed mid-write runs no cleanup): exactly the names the
153
158
  * replace itself would mint for this target, under a pid that is gone, plain files with one name. A running writer's staged
154
- * file is never touched. Audience `operator`. `detail: { count }` — how many, no names. Seat-only (an environment with no
155
- * `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.
156
161
  * - `"session.lineage_rerooted"` — the session this run continues has a log whose replay dropped records it could not read, and this
157
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
158
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)
@@ -172,8 +177,8 @@ export interface EngineNotice {
172
177
  * of the person's input the boundary was for, `cause` the store's code (`FILE_HISTORY_ERROR_CODES`; `aborted` for the fence); never
173
178
  * the store's message, never a path. ONCE PER FAILED CAPTURE, at most once per run.
174
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,
175
- * `FILE_HISTORY_LEFT_AS_IS_CLASSES`). Audience `user`. `detail: { sessionId, path, class }` — the key, never a directory. ONCE PER
176
- * 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.
177
182
  * - `"verify.verifier_is_implementer"` (`src/agents/verifier-independence.ts`) — the verification gate's verifier leg answered on the
178
183
  * SAME resolved model id as the implementation leg it judged (`TaskResult.model` of the two: an unset `verifier` role falling back to
179
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
@@ -183,6 +188,12 @@ export interface EngineNotice {
183
188
  * RUN, at the first verifier leg that read so. Audience `user`; `detail: { model, verifierSeat, sessionId? }` — `model` the
184
189
  * shared id (bounded at 80), `verifierSeat` is `verifierModel` (the call named it) or `roles.verifier` (the role resolved it);
185
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.
186
197
  * - `"workflow.governance_key_stripped"` (#235) — the fields of an LLM-authored workflow `agent(spec)`
187
198
  * that did NOT cross the governed default-deny whitelist: an unrecognized/control-plane field, or a
188
199
  * `readFace` value that is not the containment-tightening one. The spawn PROCEEDS on the deployment
@@ -202,11 +213,13 @@ export interface EngineNotice {
202
213
  * (`model`, `modelName`, `thinking`, …) is REFUSED at the membrane instead — a silently ignored
203
214
  * `model` runs a different agent than the author asked for.
204
215
  * - `"workflow.parked_decision_unused"` (#4390) — a person's decision for a card a finished workflow run parked on reached
205
- * this leg (`RunInternals.workflowParkedResume`) and the engine did not use it to continue the run. Once per (leg, run);
206
- * `detail: { runId, decisionIds, reason, holder?, code?, changed?, 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,
207
218
  * never the token; `reason` ∈ `WORKFLOW_PARK_UNUSED_REASONS`. `ask_unanswerable` = not used, still deliverable; `decision_spent` = used and refused,
208
219
  * a person decides again; `card_unresumable` = this engine never resumes the card (`terminal: true` = no release does); `continuing_elsewhere` = the claim
209
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.
210
223
  * - `"config.host_sink_failed"` — a host seat the run calls failed and was contained: it threw, or —
211
224
  * since an `async` function satisfies a `=> void` seat — it returned a promise that rejected. The run
212
225
  * is untouched (the seat's frame or event is dropped; delivery is never awaited, so a seat that never
@@ -222,6 +235,10 @@ export interface EngineNotice {
222
235
  * observer (`RunnerDeps.onDelegationLifecycle` — its frames are not delivered) or a Node environment's
223
236
  * `onSecretEnvScrub` (its findings fall back to the summary line). `detail: { seat }`. Audience
224
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.
225
242
  * - `"config.env_knob_adjusted"` — a process-level numeric env knob was not used as written: ignored (not
226
243
  * a positive whole number — the default stands), capped to its ceiling or raised to its floor; the
227
244
  * sentence names the value asked for and the value in force. `detail: { name, applied? }` — `applied`
@@ -240,9 +257,17 @@ export interface EngineNotice {
240
257
  * record naming a process (a file store's directory lock, a run claim, a memory writer's session
241
258
  * account) is judged by pid alone. `detail: { reason }`. Said on the default seat; audience
242
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.
243
264
  * - `"store.tail_segment_unjudged"` — a file store's JSONL tail segment larger than the judgeable bound
244
265
  * was ended as a line, not judged; its bytes are untouched. `detail: { path }`. Said on the default
245
- * 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).
246
271
  * - `"store.lock_retained"` — a lock this live process took could not be handed back, so it may still
247
272
  * name this pid: `detail: { lock, path, pid }`, `lock` one of `"directory_fence"`, `"boot"` (a file
248
273
  * store's data root) or `"mailbox"` (a box lock, unreadable at release or not removable). Said on the
@@ -252,6 +277,8 @@ export interface EngineNotice {
252
277
  * true })`, that every process opening that data root runs in this process table, and the process the
253
278
  * record names is gone from it. `detail: { path, pid, root }` — the lock, the pid it named, the declared
254
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`.
255
282
  * - `"memory.notice_unscoped"` — a memory notice (the engine's, or a file store's) named no single
256
283
  * scope, so it was kept off every session's memory notices; said here only when the memory engine has
257
284
  * no incident sink (with one, the sink is told `memory.announcement_withheld`). `detail: { stage }`.
@@ -272,6 +299,10 @@ export interface EngineNotice {
272
299
  * (its body does not decode, or it carries no state word, and the store's listing states none): the row is left parked.
273
300
  * `detail: { handle, scope, cause }`, `cause` `"decode"` | `"no_state"`; once per (scope, handle) per process; said on the
274
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`.
275
306
  * - `"delegation.parked_card_id_untrusted"` — a parked background agent's approval card was read, but the id it carries does not
276
307
  * pass the identity judge (`readGateIdentity` against the card's token): the agent's state (`AgentPark`) is read without the id and
277
308
  * says `checkpointIdMissing: "untrusted"`. `detail: { handle, scope }` — never the id; once per (scope, handle) per process; said
@@ -296,7 +327,7 @@ export interface EngineNotice {
296
327
  * mount (the declaration is already the fact, and a mount that later fails must not swallow
297
328
  * it). Dedup unit: once per prepared leg.
298
329
  * - `"protocol.revocation_probe_failed"` (design/338) — the `protocolRevocations.revoked` probe threw or answered a
299
- * 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,
300
331
  * whichever protocol asked first (a resume prepares again and may announce again).
301
332
  * `detail: { message, runId }` — still no sessionId (a deployment wiring fact, not session-attributed); `runId`
302
333
  * (#499) makes the once-per-leg claim CHECKABLE without attributing the line to a conversation, an opaque
@@ -335,11 +366,17 @@ export interface EngineNotice {
335
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
336
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
337
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.
338
- * Dedup unit: once per session per (server, memory) — the delivery throat's fact key ({@link NOTICE_FACT_KEY}), judged against the
339
- * 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
340
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
341
373
  * memory answered (`recalled`) tells nothing. Never folded across servers (a second server's failure is its own fact).
342
- * - `"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
343
380
  * connection's requests carried into what it said about itself: an MCP server's `serverInfo`, its
344
381
  * instructions or its tool listing, an A2A peer's agent card. The engine reads that account through
345
382
  * one eraser whose needle is the connection's credentials (`PeerCarrier.credentials`): free text
@@ -350,14 +387,15 @@ export interface EngineNotice {
350
387
  * (`server_info` / `instructions` / `tool_listing` / `agent_card`); never a value. `"operator"`
351
388
  * audience: the endpoint repeats what it is sent, which only whoever wired it can act on. Dedup unit:
352
389
  * once per (materialization, server, site) for MCP and per (materialization, peer) for A2A.
353
- * - `"mcp.injection_dropped"` (L-167) — an entry of the user's own request-lane MCP injection
354
- * was NOT mounted for the leg. The HOST owns the drop sites and supplies the facts; CORE composes
355
- * the notice ({@link import("./mcp-injection-drop.js").mcpInjectionDroppedNotice}, the one mint).
356
- * `detail: { sessionId, server, reason, field? }` — `reason` is the closed set
357
- * `malformed_entry` / `name_reserved_by_deployment` / `gate_closed` / `over_cap`
358
- * (`MCP_INJECTION_DROP_REASONS`, CLOSED-SETS), `field` names the bad key for `malformed_entry`
359
- * when known. `"user"` audience; `sessionId` REQUIRED at the mint (a user row with no session
360
- * 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.
361
399
  * - `"config.models_swapped"` — `Runner.swapDeps` replaced the model catalog generation
362
400
  * (zero-restart model switching; the `models` / `tiers` seats of the swappable set). `detail:
363
401
  * { models, tiers, generation, occurrenceId }` — key COUNTS and the `generation` the swap leaves in force (a digest of
@@ -467,10 +505,15 @@ export interface EngineNotice {
467
505
  * it; a declared departure from CC, which refuses either way), `"denied"` = refused with the classifier's own
468
506
  * sentence (route `none`: no approver and no park facility); the two delegation sites (`readDelegationReview`) mint it
469
507
  * with `disposition: "proceeded"` (went ahead without a ruling; the result records `unreviewed`). `detail: { toolName,
470
- * 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
471
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
472
510
  * `user`: on a lane with no approval face this line is the only place the user hears why the call did not
473
- * 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`.
474
517
  * - `"route.credential_origin_mismatch"` (key↔URL pairing, `src/brain/route-adjudicator.ts`; announced by
475
518
  * `src/core/runner/credential-refusal-seat.ts`) — a request was REFUSED, nothing sent, because the per-model
476
519
  * credential it would carry is bound to another origin: the law binds a per-model credential to the origin
@@ -529,7 +572,12 @@ export interface EngineNotice {
529
572
  * delta, a block, a new message). The first ending decided the turn and nothing after it was added
530
573
  * (`AssistantMessage.streamEndIgnored`). ONCE PER LEG PER (statement, word). Audience `user`; `detail: {
531
574
  * statement: "ending" | "error" | "content", word, frames, sessionId, runId }` — `word` the first such frame's
532
- * (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.
533
581
  * - `"route.extra_body_reserved_dropped"` (#1520) — a request's `Model.extraBody` carried keys the wire adapter
534
582
  * sets itself (`temperature`, `max_tokens`, `stop`, the thinking-enable keys, `messages`, `tools`, …), so the
535
583
  * adapter stripped them and the request went out with the engine's value (or without the key); core wins, and
@@ -568,26 +616,23 @@ export interface EngineNotice {
568
616
  * speed alone. The request that met the push-back is re-sent at standard speed at once. ONCE PER CHANGE. Audience `user`;
569
617
  * `detail: { model, state, reason?, cooldown?, overage?, sessionId, runId }` — the reading of `model` after it
570
618
  * (`fastModeReadingOf`, `brain/fast-mode.ts` words; `cooldown.until` in epoch milliseconds).
571
- * - `"model.role_defaulted"` (#2571; `src/core/runner/role-seat-defaulted.ts`) — a role seat of the merged deployment and task
572
- * 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
573
- * fallback chain follow; a `subagent` seat's children run on the parent's model) and the run goes on, where it used to be
574
- * refused at every prepare. Never minted for `default` (the main model's seat: an unknown word there is still refused,
575
- * `config.unknown_role` / `unknown_model_ref`) nor `classifier` (its own stand-in and its own line, `classifier.role_defaulted`).
576
- * Named once per SESSION per (seat, word), whether or not a read of this leg reaches the seat; root legs only. Audience
577
- * `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
578
- * `roles.<role>` the refusal would have named, `model` the word written there (bounded at 80), `fallback` the roles the seat's
579
- * chain would reach, nearest first.
580
619
  * - `"model.fallback"` (#3567; `src/core/runner/model-fallback-seat.ts`) — a model request walked its `Model.fallbacks`
581
620
  * chain: a fallback model answered (`outcome: "served"`) or none could (`"exhausted"`, the request ending with the requested
582
621
  * model's own failure). Read off the answer's marker where the run books each answer — the main loop (`lane: "main"`) and
583
622
  * the side-call book (`compaction` / `classifier` / `mod` / `advisor`); a call outside a leg's book announces nothing.
584
- * ONCE PER SESSION PER (from, to, reason, outcome) — the delivery throat's fact key ({@link NOTICE_FACT_KEY}), judged against the
585
- * 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,
586
626
  * fromWindow?, toWindow?, sessionId, runId? }` — `chain` the hops tried after `from`, `skipped` the hops the deployment Brain's
587
627
  * route judgment refused before sending (`{ model, code?, fixHint? }`, chain order; `route.judgment_failed` for a judgment that threw), the windows the models' `contextWindow`;
588
628
  * `reason: "route_refused"`: the requested model ITSELF was refused before sending (its entry leads `skipped`). A walk that began and
589
629
  * sent no hop (every hop it reached refused) is announced too — `exhausted`, `chain: []`, `skipped`, and no `to` /
590
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).
591
636
  * - `"context.tool_turn_repaired"` (#1224) — a provider request was built from a transcript that breaks the
592
637
  * tool-turn law, and the request view restored it (`engine/llm/tool-turns.ts`; the transcript is never
593
638
  * rewritten): a block after an assistant's tool calls moved ahead of them (`trailing_text`), a result recorded
@@ -622,18 +667,21 @@ export interface EngineNotice {
622
667
  * transcript; a compaction that summarizes the record away returns the schema until the provider refuses it again).
623
668
  * The model can still call the tool. Audience `user`; `detail: { tool, sessionId, runId }`. ONCE PER REFUSAL.
624
669
  * - `"context.messages_omitted"` (#1822) — the request's guard trim, the last resort after compaction declined, failed
625
- * or did not get the request under its guard, left the OLDEST messages out of what the model sees (the model reads
626
- * a line saying earlier messages were omitted; the session keeps every message). Audience `user`;
627
- * `detail: { omitted, sessionId, runId }`, `omitted` = how many messages that request left out. ONCE PER TRIMMED
628
- * STRETCH: told on the first trimmed request a context hook handed on, silent while the requests after it stay
629
- * trimmed, said again only after a request that fit (a provisional view the in-turn compaction replaced says
630
- * nothing). A shell that renders a compaction failure as "the context was not shrunk" reads this code for that
631
- * 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`.
632
680
  * - `"instructions.withheld"` — an instruction file of the family `NESTED_MEMORY_LANE.declaration` names was not loaded and none of it
633
- * 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.
634
- * Audience `user`; `detail: { path, reason, sessionId, runId }`, `reason` closed (`INSTRUCTIONS_WITHHELD_REASONS`:
635
- * `rule_denied`, `outside_roots`, `approval_required`, `admission_unknown`, `target_moved`, `outside_its_root`). ONCE PER SESSION per
636
- * (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
637
685
  * (an I/O error, not text, past the read bound) is the operator's line instead (`onError` phase `degraded`,
638
686
  * classification `attachment-read`), once per session per path.
639
687
  * - `"instructions.family_undeclared"` (#4179) — a run was prepared with no instruction family declared (`TaskSpec.instructionFamily`
@@ -721,13 +769,16 @@ export interface EngineNotice {
721
769
  * `detail: { key, valueType }`. Also minted for
722
770
  * `withheldEnv` (key `"withheldEnv"`) when it is neither a list of findings nor `"unknown"`, read at a shell call of
723
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? }`.
724
774
  * - `"config.read_deny_floor_unkept"` (#2936) — the run's read-deny table holds rows and its execution environment does
725
775
  * not declare it keeps the byte floor (`capabilities.keepsReadFloor`): the engine refuses what a command names, but a
726
776
  * recursive read under a root reads the files below it there, deny rows included. The notice dialect of the refusal
727
777
  * `RunnerDeps.readDenyFloorRequired` turns it into (the prepare then fails with the same code); never minted for an
728
778
  * empty table or an environment that keeps the floor (the Stub of a run without hands keeps it by refusing every
729
- * start). Once per session — the delivery throat's fact key ({@link NOTICE_FACT_KEY}) is the code itself, judged against the
730
- * 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
731
782
  * library-direct band that compiles its own table. Every run's own fact stays on its wiring manifest
732
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).
733
784
  * - `"config.read_floor_confinement_unavailable"` — a Node environment was asked to confine its starts to the floor
@@ -826,30 +877,64 @@ export interface EngineNotice {
826
877
  * others), `owner_mismatch` (the folder is another account's), `damaged` (the stored rules, or what holds them, are damaged or not in
827
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
828
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`.
829
- * - `"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`.
830
- * - `"permission.rule_row_dropped"` — the person's store served project-scoped rows whose scope root is not a
831
- * complete absolute path (only a foreign writer or a hand edit makes one; every engine write face refuses it): they
832
- * take no part in this run's checks — a deny or ask row among them protects nothing — until they are rewritten or
833
- * removed. Once per run, by whichever read met them first. `detail: { rows, count, sessionId, runId }` — `rows`
834
- * the first eight `{ rule, scopeRoot }`, `count` all of them; `rule` is the rule text as the store served it, through the same reading
835
- * 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;
836
- * a longer one is cut to 1 024 plus the truncation mark, 1 025 in all), `scopeRoot` neutralized and bounded. Audience `user`.
837
- * - `"permission.settings_rules_skipped"` — a leg's own tool policy left out rules a person's settings layer (`user` / `project`) wrote
838
- * whose text the compiler cannot read (`ToolPolicy.skippedRules`); a deny or ask rule among them is NOT in force, each in its own
839
- * clause. At prepare on every leg, for rules no ancestor of its delegation chain holds; once per session per set. `detail: { rules:
840
- * [{ rule, reason, behavior, layer }] (first eight; `reason` the issue code), count, sessionId, sourceSessionId?, agentId?, runId }`
841
- * — a delegated leg's is addressed to its tree's root and names the leg. Audience `user`; never in the model's context.
842
- * - `"config.session_rules_earlier_grammar"` — a session's stored permission rules (`RunnerDeps.sessionPolicyStore`) were
843
- * written in an earlier rule grammar and hold entries it reads otherwise than this engine's would: an entry that grammar
844
- * reads as nothing (an allow admits nothing; a `toolDeny` entry this engine's grammar reads as no rule makes those rules
845
- * refuse every call until they are rewritten), or one whose meaning a later grammar revised — the entry keeps its writer's
846
- * meaning, or takes this grammar's when its writer's could not read it, and the message says which, with both. The message names
847
- * the session, the bucket, the entries (the first five, the rest counted), the reader's word and the way out. Audience
848
- * `user`. Once per session per entry set per bucket per rules session (the session's announced record; runner/earlier-grammar-notice.ts).
849
- * `detail: { bucket, storedGrammar, entries: [{ entry, reader }], rewrite: { by, stampsGrammar }, rulesSessionId,
850
- * sessionId }` — `entries` every one, `entry` through the same reading as `permission.allowed_tool_not_granted`'s;
851
- * `reader` ∈ `no_rule` / `named_no_tool` / `grammar_revised`; `rewrite.by` = `rewrite_in_current_grammar`; `rulesSessionId` the session
852
- * 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`.
853
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
854
939
  * an ancestor's session handed down) holds names of tools the engine retired with NO successor (`TaskOutput`, `TeamCreate`, …: the
855
940
  * retirement table's `removed` and `folded` lines). Such a name reaches no tool in any roster, so the prepare-time name audit leaves
@@ -986,7 +1071,9 @@ export interface EngineNotice {
986
1071
  * is the registration that asked, `turn` the turn number it ended; no `inputId`, no `actorId`. The notice
987
1072
  * rides the cut's ACCEPTANCE: a cut that lands after the request's end was delivered but before the loop
988
1073
  * obtained its final is accepted and announced, yet the turn still ends as its answer — that cut is then
989
- * 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.
990
1077
  * In every lane: one notice per REAL cut (a `now` that found nothing in flight or whose frame
991
1078
  * already rode the imminent boundary, and a halt with nothing in flight, announce nothing — no
992
1079
  * false interrupt claims); `runId` is the INVOCATION that was cut; every cut turn counts toward
@@ -1013,13 +1100,17 @@ export interface EngineNotice {
1013
1100
  * beside the verb receipt. `detail: { source: "halt", sessionId, runId, taskId }` — `runId` is the run whose ending
1014
1101
  * the halt failed to claim. Audience `"user"`. A REFUSED halt (typed `steering.not_running` throw)
1015
1102
  * mints nothing: the refusal itself is the loud answer.
1016
- * The same code is the trace of the OTHER request that asks to end a turn — an extension's `$.turn.abort` whose cut
1017
- * was ACCEPTED (`task.turn_interrupted` was announced) but that no settlement took as its turn's cause: the turn had
1018
- * already ended on its own outcome (its request's end was delivered before the cut, so it ends as an answer), or
1019
- * the run's own ending won. The result does NOT carry `turnAbortedBy` for it. One per such cut, at the result's
1020
- * settlement (the settle arm). `detail: { source: "extension", extension, turn, sessionId, runId, taskId }` —
1021
- * `extension` and `turn` are the cut's own (the ones its `task.turn_interrupted` carried). `detail.source`
1022
- * (`"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.
1023
1114
  *
1024
1115
  * - `"task.late_approval"` (design/384 slice 1) — a synchronous ask approval was NOT CONSUMED:
1025
1116
  * a run or turn interrupt released the wait (the `resolveAsk` race arm detached the approver's
@@ -1060,11 +1151,15 @@ export interface EngineNotice {
1060
1151
  * verb alike): the refusal itself is the loud answer.
1061
1152
  *
1062
1153
  * - `"approval.read_root_granted"` / `"approval.read_root_grant_rejected"` — an approver's `readRootGrant`
1063
- * (`AskOutcome`). GRANTED: it equalled the card's `readRootCandidate.dir` beside `allow: true`; this run's READ
1064
- * directories now include it (never the write roots; this run only); `detail: { dir, covers?, root, toolName,
1065
- * toolCallId, sessionId, runId, taskId }`, `root` = the canonical spelling held. REJECTED: nothing changed,
1066
- * the verdict stands; `detail: { reason, offered?, requested?, …same ids }`, `reason` ∈ `on_refusal` |
1067
- * `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`
1068
1163
  * (the directory contains the wired local artifact store, lies inside it or is it) | `no_read_roots`. Once per
1069
1164
  * answered ask. Audience `"user"`.
1070
1165
  * - `"approval.approver_defect"` (`src/core/runner/approver-defect-announcer.ts`, `approverDefectAnnouncer`; minted by the four stations that put an
@@ -1175,8 +1270,8 @@ export interface EngineNotice {
1175
1270
  * report — that sharing is the contract (one report, several distinct facts): dedup on
1176
1271
  * `(code, detail.reportId)`; a repeat with the same pair is a replay, a new pair is a new fact.
1177
1272
  * - `"memory.harvest_refused"` (#2424) — the boundary harvest was refused wholesale by an incident
1178
- * (the deletion fuse, a vanished write root, a control plane that could not be read or written):
1179
- * what the session did to memory — what it said it remembered or forgot — did not take effect.
1273
+ * — the deletion fuse: nothing deleted, the removed files back from their saved copies (and how many
1274
+ * could not); a vanished write root or an unreadable control plane: its memory changes did not take effect.
1180
1275
  * Minted by the runner at the harvest seat, one notice per refused harvest report;
1181
1276
  * `detail: { kind, committed, reportId?, sessionId? }` (`kind` = `HarvestReport.incident.kind`,
1182
1277
  * `committed` = the report's applied patch count, 0 unless a dual-root merge carries the other
@@ -1245,14 +1340,19 @@ export interface EngineNotice {
1245
1340
  * the message is written per value (a delegated child's inherited floor and a fork's inherited
1246
1341
  * one-way record say so, rather than claiming the session declared it). Audience `"user"`.
1247
1342
  * Dedup unit: once per SESSION — key `(code, detail.sessionId)`, so the standing-record resume
1248
- * 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.
1249
1349
  * - `"memory.capture_optout_unpersisted"` (design/383 §2.8) — the OPPOSITE receipt, and a
1250
1350
  * separate code on purpose ("it is off for you" and "it could not be turned off" must never
1251
1351
  * share a spelling): the opt-out could NOT be durably recorded (the control-plane write
1252
- * failed), so it is REFUSED rather than honored in-process under a switch that would silently
1253
- * stop holding at the next resume. Minted only beside that refusal — the throw carrying the
1254
- * same code — never beside a success, and no success notice is minted on this arm.
1255
- * `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
1256
1356
  * entitlement to the fact belongs to whoever asked for the privacy). **TWO ingresses, and they
1257
1357
  * settle differently — a consumer must not read one as the other:**
1258
1358
  * · PREPARE-TIME (a declared/inherited opt-out, before the run starts) — the refusal is
@@ -1340,26 +1440,45 @@ export interface EngineNotice {
1340
1440
  * the box and the drain stops at its seq until the bucket refills). Disclosed once per seq per leg,
1341
1441
  * and again when a re-judgment moves a held entry's cause. `detail: { disposition, cause, seq, box,
1342
1442
  * fromSession?, sessionId, runId }`. Audience `"user"`: the session's user is the one who did
1343
- * 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`.
1344
1452
  * - `"peer.held_settled"` (design/385 §4.4, slice 4) — a message left THIS session's held queue.
1345
1453
  * `detail.settlement` names how: `"delivered"` (a re-judgment or an approval released it into
1346
1454
  * this session's model context), `"refused"` (the setting moved to refuse, or an approval met a
1347
1455
  * refusing policy), `"expired"` (the `dialogExpiry` deadline, an eviction when the 100-entry queue
1348
1456
  * was full, a cancelled review, a graceful shutdown, or a record another lease holder already settled),
1349
- * `"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).
1350
1459
  * `detail.reason` is the trigger (`PeerHeldSettleReason`: `deadline | evicted | shutdown | rejudge |
1351
- * approved | denied | cancelled | inject_failed | superseded`); the sender was sent the matching receipt
1352
- * 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
1353
1462
  * settled the record sent it.
1354
1463
  * `detail: { settlement, reason, seq, box, fromSession?, heldCount, sessionId, runId }`. Audience
1355
- * `"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`.
1356
1472
  * - `"peer.idle_subscription"` (design/385 §5.2, slice 4) — a peer session asked to be told when
1357
1473
  * THIS session next goes idle (`SendMessage … notify_when_idle`). `detail.outcome`: `"recorded"`
1358
1474
  * / `"refreshed"` (a same-requester re-ask; the subscription is one-shot and expires unfired after
1359
1475
  * 12 h), `"full"` (the 32-entry table is full) or `"refused"` (this session's `crossSessionInbound`
1360
1476
  * is `refuse`) — the last two answered the requester with an `unavailable` notice. `detail:
1361
1477
  * { outcome, fromSession, live, seq, box, sessionId, runId }`. Audience `"user"`: the person whose
1362
- * 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`.
1363
1482
  *
1364
1483
  * - `"delegation.transcript_integrity"` (subagent transcript persistence) — a durable agent row
1365
1484
  * with a BOUND transcript sessionId names a session the reading tree could not open — the store attests `not_found`, or the
@@ -1392,7 +1511,11 @@ export interface EngineNotice {
1392
1511
  * work is the session user's own; the operator hears it through the sink like every code.
1393
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
1394
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),
1395
- * 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"`.
1396
1519
  * - `"delegation.delivery_discarded"` (#3431) — a frame (a background task's completion, a monitor event, a child's message)
1397
1520
  * addressed to an earlier occupant of a session id — the id deleted and created again, by another principal or the same
1398
1521
  * one — was discarded instead of delivered to the occupant the id holds now. Once per frame, by the Runner's per-session
@@ -1428,7 +1551,7 @@ export interface EngineNotice {
1428
1551
  * throw rendered twice keeps one id, two refusals sharing a code/scope/message get two. Omitted
1429
1552
  * (never fabricated) when the caller composes the line with no error in hand.
1430
1553
  *
1431
- * The five SERVER-minted rows ({@link NOTICE_MINTER} `"server"`) — catalogued so their audience and detail shape
1554
+ * The six SERVER-minted rows ({@link NOTICE_MINTER} `"server"`) — catalogued so their audience and detail shape
1432
1555
  * are read here like every other row; this engine never mints them. A server forwards them through the same sink.
1433
1556
  * - `"permission.entry_mode_clamped"` — the permission mode the caller requested was clamped by the deployment's
1434
1557
  * entry floor BEFORE the run reached this engine (the server's own clamp, through this package's
@@ -1456,6 +1579,11 @@ export interface EngineNotice {
1456
1579
  * `"user"` — the person's parked work and later resume are what the declaration bounds, and the remedy (a
1457
1580
  * durable store) stays the deployment's; `detail.sessionId` names the session. The sentence the person reads and
1458
1581
  * how often it is told are the server's; this engine only catalogues the code.
1582
+ * - `"memory.sync_layer_parked"` — a memory sync layer of the serving process stopped syncing on its cursor (cause `cursor_refused` |
1583
+ * `cursor_unusable`) and stays stopped until the cursor is reset. Audience `"user"`, attention `"act"` (a server's frame skips the throat,
1584
+ * so the server writes the attention member itself); `detail: { scope, cause, axis?, found?, wayOut, sessionId }` — `axis` / `found` as the
1585
+ * engine's cursor-refusal detail when the cause is `cursor_refused`. Once per parking per serving process; the sentence is the server's,
1586
+ * and this engine only catalogues the code.
1459
1587
  *
1460
1588
  * Deliberately NOT a notice family: brain retry/reconnect liveness (a rate limit, a 5xx, a
1461
1589
  * transient network failure being retried). Those are per-attempt liveness frames with their own
@@ -1484,30 +1612,30 @@ export interface EngineNotice {
1484
1612
  * {@link deliverEngineNotice} — the ONE delivery throat — for every catalogued code. A session screen shows a notice whose audience
1485
1613
  * is `"user"` and whose attention is `"act"`. ABSENT = it has not said, never "ignorable": the delivering engine is older than this
1486
1614
  * member, the code is not catalogued, or the host minted the frame itself ({@link NOTICE_MINTER} `"server"` codes skip the throat)
1487
- * 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"`. */
1488
1618
  attention?: NoticeAttention;
1489
1619
  /** The fact this notice tells, for a code the throat tells once per session per fact ({@link NOTICE_FACT_KEY}): an opaque
1490
- * string, equal on two notices that tell the same fact, compared only for equality. Written by the throat; absent for every
1491
- * 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. */
1492
1628
  factKey?: string;
1493
1629
  }
1494
- /**
1495
- * What a session has been told through the throat's fact keys ({@link deliverEngineNotice}'s `told`): `has` — was the fact
1496
- * already told; `add` — it was told now; `release` — its fact ended (a server that connected), so a later notice of it is told
1497
- * again. Keys are {@link EngineNotice.factKey} values. The run's implementation is the session's announced record
1498
- * (`announce-once-ledger.ts`); a caller with no session record uses an in-memory one of the same type.
1499
- */
1500
- export interface NoticeTold {
1501
- has(key: string): boolean;
1502
- add(key: string): void;
1503
- release(key: string): void;
1504
- }
1505
- /** Stable digest of one announcement: `sha256(lane \n text)` as hex — the one form of every digest a session's announced record
1506
- * holds (the record's own once-arms, and the throat's fact keys). Opaque on the wire; only ever compared for equality. */
1507
- export declare function announceDigest(lane: string, text: string): string;
1508
- /** The fact key a notice of `code` with this (minted, not yet passed) `detail` leaves the throat with — for a seat that releases
1509
- * a fact it did not deliver (a server that connected): the same text pass the throat applies, then the same digest. */
1510
- 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;
1511
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,
1512
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
1513
1641
  * print as one process line), a seat a station holds always wins, anything but a function or `undefined` is refused (`config.invalid_argument`). */
@@ -1546,10 +1674,14 @@ export declare function __resetMalformedNoticeSeatAnnouncement(): void;
1546
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,
1547
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.
1548
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
+ *
1549
1681
  * Every process line goes through one writer ({@link writeProcessLine}), which is guarded: what the engine says can never fail
1550
1682
  * the call that said it, whichever arm it leaves by.
1551
1683
  */
1552
- 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;
1553
1685
  /**
1554
1686
  * #259 loud half, one notice PER FAMILY (`task.user_steer_undrained` / `task.user_followup_undrained`):
1555
1687
  * a consumer routing on `code` alone must never mistake a stranded follow-up for a stranded steer, so
@@ -1766,4 +1898,3 @@ export declare function undrainedUserInputNotices(counts: {
1766
1898
  approvalFeedback?: number;
1767
1899
  approvalCarry?: ApprovalCarryRefusal;
1768
1900
  }, taskId?: string, sessionId?: string, runId?: string, parent?: ParentLegIds): EngineNotice[];
1769
- export {};