@sema-agent/core 7.72.0 → 7.74.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 (375) hide show
  1. package/CHANGELOG.md +565 -0
  2. package/dist/agents/inherited-tool-pool.d.ts +26 -1
  3. package/dist/agents/inherited-tool-pool.js +46 -2
  4. package/dist/agents/list-agents-tool.js +1 -1
  5. package/dist/agents/parked-resume-drive.d.ts +10 -0
  6. package/dist/agents/parked-resume-drive.js +9 -0
  7. package/dist/agents/retain-ledger.d.ts +3 -0
  8. package/dist/agents/retain-ledger.js +3 -3
  9. package/dist/agents/send-message-tool.js +5 -4
  10. package/dist/agents/send-user-message-tool.d.ts +12 -0
  11. package/dist/agents/send-user-message-tool.js +67 -0
  12. package/dist/agents/subagent-steps.d.ts +9 -0
  13. package/dist/agents/subagent-steps.js +38 -0
  14. package/dist/agents/subagent.d.ts +2 -0
  15. package/dist/agents/subagent.js +43 -12
  16. package/dist/agents/verify.js +23 -8
  17. package/dist/agents/yield-adoption.js +3 -1
  18. package/dist/brain/anthropic.d.ts +42 -1
  19. package/dist/brain/anthropic.js +68 -13
  20. package/dist/brain/failover.d.ts +5 -0
  21. package/dist/brain/failover.js +51 -22
  22. package/dist/brain/model-lane.d.ts +12 -3
  23. package/dist/brain/model-lane.js +5 -5
  24. package/dist/brain/open-responses.js +7 -8
  25. package/dist/brain/openai.js +31 -24
  26. package/dist/brain/route-adjudicator.d.ts +33 -4
  27. package/dist/brain/route-adjudicator.js +49 -12
  28. package/dist/brain/stream-engine.js +166 -156
  29. package/dist/brain/stream-shared.d.ts +4 -3
  30. package/dist/brain/stream-shared.js +2 -2
  31. package/dist/core/actions-digest.d.ts +43 -0
  32. package/dist/core/actions-digest.js +22 -0
  33. package/dist/core/allow-entry.js +4 -4
  34. package/dist/core/ask-class.d.ts +2 -2
  35. package/dist/core/ask-headline.d.ts +1 -1
  36. package/dist/core/ask-origin.d.ts +44 -4
  37. package/dist/core/ask-origin.js +29 -10
  38. package/dist/core/auto-mode.d.ts +7 -9
  39. package/dist/core/auto-mode.js +114 -8
  40. package/dist/core/background-agent-store.d.ts +1 -0
  41. package/dist/core/background-agent-store.js +49 -8
  42. package/dist/core/checkpoint-features.d.ts +3 -2
  43. package/dist/core/checkpoint-features.js +1 -1
  44. package/dist/core/checkpoint-rekey.d.ts +1 -1
  45. package/dist/core/checkpoint-rekey.js +6 -1
  46. package/dist/core/checkpoint-requirements.d.ts +23 -3
  47. package/dist/core/checkpoint-requirements.js +5 -1
  48. package/dist/core/checkpoint-row-verdict.d.ts +1 -1
  49. package/dist/core/checkpoint-row-verdict.js +9 -3
  50. package/dist/core/checkpoint-store.d.ts +26 -2
  51. package/dist/core/checkpoint-store.js +9 -2
  52. package/dist/core/child-clamp-seats.d.ts +15 -0
  53. package/dist/core/child-clamp-seats.js +15 -0
  54. package/dist/core/config-refusal-codes.d.ts +1 -1
  55. package/dist/core/config-refusal-codes.js +1 -0
  56. package/dist/core/cron.js +9 -1
  57. package/dist/core/delegation-frames.d.ts +1 -0
  58. package/dist/core/delegation-frames.js +1 -1
  59. package/dist/core/deployment-shape.d.ts +7 -0
  60. package/dist/core/deployment-shape.js +19 -0
  61. package/dist/core/engine-capabilities.d.ts +13 -1
  62. package/dist/core/engine-capabilities.js +1 -1
  63. package/dist/core/engine-notice.d.ts +41 -28
  64. package/dist/core/engine-version.js +1 -1
  65. package/dist/core/entries-not-applied.d.ts +19 -7
  66. package/dist/core/entries-not-applied.js +33 -1
  67. package/dist/core/gate-fold.js +5 -4
  68. package/dist/core/gate-lanes.js +8 -12
  69. package/dist/core/gate-outcome.d.ts +8 -2
  70. package/dist/core/gate-outcome.js +10 -3
  71. package/dist/core/governance-codes.d.ts +14 -2
  72. package/dist/core/governance-codes.js +22 -6
  73. package/dist/core/hook-condition.d.ts +37 -0
  74. package/dist/core/hook-condition.js +567 -0
  75. package/dist/core/hooks.d.ts +5 -0
  76. package/dist/core/hooks.js +1 -0
  77. package/dist/core/host-instance.d.ts +23 -0
  78. package/dist/core/host-instance.js +69 -0
  79. package/dist/core/instruction-preview.d.ts +63 -0
  80. package/dist/core/instruction-preview.js +406 -0
  81. package/dist/core/leg-budget.d.ts +26 -0
  82. package/dist/core/leg-budget.js +9 -0
  83. package/dist/core/leg-identity.d.ts +51 -1
  84. package/dist/core/leg-identity.js +45 -2
  85. package/dist/core/manager-launch-check.d.ts +48 -0
  86. package/dist/core/manager-launch-check.js +64 -0
  87. package/dist/core/mcp-call-meta.d.ts +2 -2
  88. package/dist/core/mcp-injection-drop.d.ts +20 -10
  89. package/dist/core/mcp-injection-drop.js +9 -3
  90. package/dist/core/mcp-server-spec.d.ts +2 -1
  91. package/dist/core/member-outcome.d.ts +3 -2
  92. package/dist/core/member-outcome.js +1 -1
  93. package/dist/core/memory-engine/deletion-record.d.ts +46 -0
  94. package/dist/core/memory-engine/deletion-record.js +96 -0
  95. package/dist/core/memory-engine/engine.js +24 -16
  96. package/dist/core/memory-engine/file-backend.js +7 -5
  97. package/dist/core/memory-engine/projection-ledger.d.ts +1 -1
  98. package/dist/core/memory-engine/projection-ledger.js +1 -1
  99. package/dist/core/memory-engine/scope-contract.d.ts +18 -13
  100. package/dist/core/memory-engine/scope-contract.js +18 -18
  101. package/dist/core/memory-engine/sync-client.js +26 -6
  102. package/dist/core/memory-engine/sync.d.ts +20 -2
  103. package/dist/core/memory-engine/sync.js +18 -17
  104. package/dist/core/mode-policy.d.ts +25 -6
  105. package/dist/core/mode-policy.js +33 -8
  106. package/dist/core/model-seat.d.ts +8 -5
  107. package/dist/core/model-shell.d.ts +129 -0
  108. package/dist/core/model-shell.js +249 -0
  109. package/dist/core/mods/kernel/digest.d.ts +4 -0
  110. package/dist/core/mods/kernel/digest.js +5 -0
  111. package/dist/core/mods/kernel/dispatch.d.ts +3 -0
  112. package/dist/core/mods/kernel/dispatch.js +15 -6
  113. package/dist/core/mods/kernel/events.d.ts +21 -5
  114. package/dist/core/mods/kernel/events.js +19 -10
  115. package/dist/core/mods/kernel/hash-mirror.d.ts +1 -0
  116. package/dist/core/mods/kernel/hash-mirror.js +55 -0
  117. package/dist/core/mods/kernel/index.d.ts +1 -0
  118. package/dist/core/mods/kernel/index.js +1 -0
  119. package/dist/core/mods/kernel/package-reader.d.ts +48 -0
  120. package/dist/core/mods/kernel/package-reader.js +149 -0
  121. package/dist/core/mods/kernel/site-rules.d.ts +4 -0
  122. package/dist/core/mods/kernel/site-rules.js +13 -0
  123. package/dist/core/mods/package.d.ts +7 -3
  124. package/dist/core/mods/package.js +47 -80
  125. package/dist/core/own-property-receipt.js +11 -4
  126. package/dist/core/parent-spec-seat.d.ts +13 -11
  127. package/dist/core/parent-spec-seat.js +13 -9
  128. package/dist/core/peer-seat.js +3 -3
  129. package/dist/core/peer-task-store.d.ts +365 -0
  130. package/dist/core/peer-task-store.js +682 -0
  131. package/dist/core/permission-rule-consent.js +6 -11
  132. package/dist/core/permission-rule-model.d.ts +27 -0
  133. package/dist/core/permission-rule-model.js +33 -5
  134. package/dist/core/permission-rule-org.js +13 -3
  135. package/dist/core/permission-rule-provider.d.ts +35 -33
  136. package/dist/core/permission-rule-provider.js +38 -295
  137. package/dist/core/permission-rule-store.d.ts +181 -8
  138. package/dist/core/permission-rule-store.js +420 -17
  139. package/dist/core/permission-rule-sync.js +15 -1
  140. package/dist/core/permission-rules.js +4 -1
  141. package/dist/core/project-seat.d.ts +55 -0
  142. package/dist/core/project-seat.js +96 -0
  143. package/dist/core/protocol-http-auth.d.ts +3 -2
  144. package/dist/core/protocol-http-auth.js +26 -18
  145. package/dist/core/remote-env.d.ts +4 -4
  146. package/dist/core/retain-seat.d.ts +42 -0
  147. package/dist/core/retain-seat.js +76 -0
  148. package/dist/core/retired-keys.js +1 -0
  149. package/dist/core/rewind-refusal-codes.d.ts +8 -0
  150. package/dist/core/rewind-refusal-codes.js +12 -0
  151. package/dist/core/roles.d.ts +2 -2
  152. package/dist/core/roles.js +15 -1
  153. package/dist/core/rule-offer-read.d.ts +1 -1
  154. package/dist/core/rule-offer-read.js +32 -4
  155. package/dist/core/rule-store-fault.d.ts +9 -7
  156. package/dist/core/rule-store-fault.js +8 -3
  157. package/dist/core/run-ledger-seat.d.ts +66 -0
  158. package/dist/core/run-ledger-seat.js +70 -0
  159. package/dist/core/run-ledger.d.ts +332 -0
  160. package/dist/core/run-ledger.js +550 -0
  161. package/dist/core/runner/checkpoint-scope.d.ts +14 -3
  162. package/dist/core/runner/checkpoint-scope.js +16 -6
  163. package/dist/core/runner/compact-session.js +1 -1
  164. package/dist/core/runner/construction-doors.js +8 -0
  165. package/dist/core/runner/contracts.d.ts +21 -5
  166. package/dist/core/runner/cross-boundary-lane.d.ts +8 -1
  167. package/dist/core/runner/cross-boundary-lane.js +4 -0
  168. package/dist/core/runner/delegation-owner.d.ts +30 -0
  169. package/dist/core/runner/delegation-owner.js +20 -4
  170. package/dist/core/runner/finish-reason-seat.js +4 -2
  171. package/dist/core/runner/gate-exit.d.ts +7 -0
  172. package/dist/core/runner/gate-exit.js +2 -1
  173. package/dist/core/runner/leg-frame.js +3 -0
  174. package/dist/core/runner/model-lane-seat.d.ts +3 -0
  175. package/dist/core/runner/model-lane-seat.js +4 -0
  176. package/dist/core/runner/nested-memory-lane.d.ts +22 -5
  177. package/dist/core/runner/nested-memory-lane.js +91 -30
  178. package/dist/core/runner/person-path-rows.d.ts +27 -16
  179. package/dist/core/runner/person-path-rows.js +93 -15
  180. package/dist/core/runner/prepare-caps-and-workflow.js +98 -88
  181. package/dist/core/runner/prepare-config-doors.d.ts +1 -0
  182. package/dist/core/runner/prepare-config-doors.js +13 -7
  183. package/dist/core/runner/prepare-context-lane.js +1 -0
  184. package/dist/core/runner/prepare-delegation-surface.d.ts +3 -0
  185. package/dist/core/runner/prepare-delegation-surface.js +6 -0
  186. package/dist/core/runner/prepare-execution-env.d.ts +3 -3
  187. package/dist/core/runner/prepare-gate-stations.d.ts +6 -0
  188. package/dist/core/runner/prepare-gate-stations.js +3 -1
  189. package/dist/core/runner/prepare-hands-readface.d.ts +5 -2
  190. package/dist/core/runner/prepare-hands-readface.js +15 -3
  191. package/dist/core/runner/prepare-inherited-gate.d.ts +6 -3
  192. package/dist/core/runner/prepare-inherited-gate.js +13 -5
  193. package/dist/core/runner/prepare-offload-wrappers.js +1 -1
  194. package/dist/core/runner/prepare-run-refs.d.ts +1 -1
  195. package/dist/core/runner/prepare-run-refs.js +3 -2
  196. package/dist/core/runner/prepare-suspend-saga.d.ts +6 -2
  197. package/dist/core/runner/prepare-suspend-saga.js +4 -2
  198. package/dist/core/runner/prepare-task.js +42 -30
  199. package/dist/core/runner/prepare-turn-wiring.d.ts +4 -3
  200. package/dist/core/runner/prepare-turn-wiring.js +2 -1
  201. package/dist/core/runner/prepare-wiring-manifest.d.ts +3 -1
  202. package/dist/core/runner/prepare-wiring-manifest.js +8 -6
  203. package/dist/core/runner/resume-apply.js +11 -5
  204. package/dist/core/runner/resume-policy-outcome.js +5 -2
  205. package/dist/core/runner/resume-review-outcome.d.ts +3 -0
  206. package/dist/core/runner/resume-review-outcome.js +24 -1
  207. package/dist/core/runner/role-seat-defaulted.d.ts +3 -3
  208. package/dist/core/runner/role-seat-defaulted.js +1 -1
  209. package/dist/core/runner/rule-store-unreadable-notice.d.ts +1 -1
  210. package/dist/core/runner/rule-store-unreadable-notice.js +3 -3
  211. package/dist/core/runner/run-harness-handlers.js +4 -1
  212. package/dist/core/runner/run-identity-wiring.js +3 -2
  213. package/dist/core/runner/run-leg.js +5 -2
  214. package/dist/core/runner/run-notification-lane.js +20 -1
  215. package/dist/core/runner/run-settle-and-teardown.js +21 -12
  216. package/dist/core/runner/run-stop-and-final-verify.js +6 -0
  217. package/dist/core/runner/run-telemetry-and-budget-seats.js +1 -1
  218. package/dist/core/runner/runtask.d.ts +6 -2
  219. package/dist/core/runner/runtask.js +21 -9
  220. package/dist/core/runner/shell-env-withheld.d.ts +6 -4
  221. package/dist/core/runner/shell-env-withheld.js +25 -3
  222. package/dist/core/runner/stop-tail-notice.d.ts +10 -2
  223. package/dist/core/runner/stop-tail-notice.js +9 -2
  224. package/dist/core/runner/stream-settle-backstop.d.ts +1 -0
  225. package/dist/core/runner/stream-settle-backstop.js +1 -0
  226. package/dist/core/runner/sub-agent-deny-lists.js +9 -5
  227. package/dist/core/runner/task-start-doors.js +6 -3
  228. package/dist/core/runner/terminal-account.d.ts +6 -1
  229. package/dist/core/runner/terminal-account.js +16 -1
  230. package/dist/core/runner/tool-end-body.d.ts +1 -1
  231. package/dist/core/runner/tool-not-executed.d.ts +27 -8
  232. package/dist/core/runner/tool-not-executed.js +22 -11
  233. package/dist/core/runner/unreadable-person-rows.d.ts +2 -1
  234. package/dist/core/runner/write-protection-station.d.ts +1 -1
  235. package/dist/core/runner/write-protection-station.js +1 -1
  236. package/dist/core/runner-deps.d.ts +17 -10
  237. package/dist/core/secret-env.d.ts +61 -37
  238. package/dist/core/secret-env.js +49 -49
  239. package/dist/core/session-checkout.d.ts +3 -0
  240. package/dist/core/session-checkout.js +1 -0
  241. package/dist/core/session-store.d.ts +12 -6
  242. package/dist/core/session-store.js +26 -6
  243. package/dist/core/session.d.ts +31 -8
  244. package/dist/core/shell-read-silence.d.ts +40 -2
  245. package/dist/core/shell-read-silence.js +23 -4
  246. package/dist/core/store-contracts/checkpoint-store-contract.js +10 -0
  247. package/dist/core/store-contracts/peer-task-store-contract.d.ts +21 -0
  248. package/dist/core/store-contracts/peer-task-store-contract.js +516 -0
  249. package/dist/core/store-contracts/session-store-contract.d.ts +15 -2
  250. package/dist/core/store-contracts/session-store-contract.js +87 -3
  251. package/dist/core/store-contracts/workflow-journal-store-contract.d.ts +19 -1
  252. package/dist/core/store-contracts/workflow-journal-store-contract.js +89 -1
  253. package/dist/core/task-event.d.ts +14 -7
  254. package/dist/core/task-notification.d.ts +96 -10
  255. package/dist/core/task-notification.js +135 -6
  256. package/dist/core/task-registry-agent.d.ts +1 -0
  257. package/dist/core/task-registry-agent.js +1 -1
  258. package/dist/core/task-registry-shared.d.ts +12 -1
  259. package/dist/core/task-registry-shared.js +3 -1
  260. package/dist/core/task-registry-workflow.d.ts +1 -1
  261. package/dist/core/task-registry-workflow.js +9 -1
  262. package/dist/core/task-registry.d.ts +40 -2
  263. package/dist/core/task-registry.js +80 -15
  264. package/dist/core/task-result.d.ts +18 -3
  265. package/dist/core/task-spec-members.d.ts +3 -1
  266. package/dist/core/task-spec-members.js +19 -3
  267. package/dist/core/task-spec.d.ts +48 -22
  268. package/dist/core/tool-catalog-entries.js +2 -0
  269. package/dist/core/tool-gate-phase.d.ts +6 -3
  270. package/dist/core/tool-gate-phase.js +1 -0
  271. package/dist/core/tool-mount-facts.d.ts +8 -4
  272. package/dist/core/tool-mount-facts.js +7 -2
  273. package/dist/core/tool-mount-plan.d.ts +3 -1
  274. package/dist/core/tool-mount-plan.js +10 -3
  275. package/dist/core/tool-mount-static.d.ts +1 -1
  276. package/dist/core/tool-mount-static.js +4 -2
  277. package/dist/core/tool-result-store.d.ts +56 -3
  278. package/dist/core/tool-result-store.js +219 -25
  279. package/dist/core/tool-spec.d.ts +9 -2
  280. package/dist/core/trace.d.ts +3 -3
  281. package/dist/core/user-attachment.d.ts +5 -1
  282. package/dist/core/user-attachment.js +14 -7
  283. package/dist/core/wiring-manifest.d.ts +26 -20
  284. package/dist/core/wiring-manifest.js +7 -3
  285. package/dist/core/workflow-journal-store.d.ts +53 -10
  286. package/dist/core/workflow-journal-store.js +27 -4
  287. package/dist/core/workflow-run-store-contract.js +16 -0
  288. package/dist/core/workflow-run-store.d.ts +9 -7
  289. package/dist/core/workflow-run-store.js +4 -1
  290. package/dist/engine/execution-env/node-execution-env.d.ts +75 -1
  291. package/dist/engine/execution-env/node-execution-env.js +227 -13
  292. package/dist/engine/harness/types.d.ts +49 -1
  293. package/dist/engine/harness/types.js +10 -0
  294. package/dist/engine/llm/types.d.ts +13 -7
  295. package/dist/engine/llm/validation.d.ts +8 -1
  296. package/dist/engine/llm/validation.js +31 -2
  297. package/dist/engine/lsp/node-lsp-manager.js +2 -1
  298. package/dist/engine/session/import-validate.js +6 -1
  299. package/dist/engine/session/session.d.ts +15 -2
  300. package/dist/engine/session/session.js +34 -4
  301. package/dist/host-env.d.ts +10 -0
  302. package/dist/host-env.js +1 -0
  303. package/dist/index.d.ts +28 -9
  304. package/dist/index.js +22 -6
  305. package/dist/internal/harness-types.d.ts +1 -1
  306. package/dist/orchestration/goal.js +1 -1
  307. package/dist/orchestration/run-workflow-tool.js +40 -32
  308. package/dist/orchestration/workflow-park-adoption.d.ts +51 -12
  309. package/dist/orchestration/workflow-park-adoption.js +47 -12
  310. package/dist/orchestration/workflow-primitives.js +10 -1
  311. package/dist/orchestration/workflow-script-runner.d.ts +2 -2
  312. package/dist/orchestration/workflow-stop.d.ts +128 -0
  313. package/dist/orchestration/workflow-stop.js +156 -0
  314. package/dist/orchestration/workflow.d.ts +31 -7
  315. package/dist/orchestration/workflow.js +119 -57
  316. package/dist/prompts/manager-recipe.d.ts +18 -0
  317. package/dist/prompts/manager-recipe.js +24 -0
  318. package/dist/shell/lex.d.ts +2 -2
  319. package/dist/shell/lex.js +1 -1
  320. package/dist/stores/file/permission-rule-store.d.ts +3 -1
  321. package/dist/stores/file/permission-rule-store.js +0 -1
  322. package/dist/stores/file/workflow-journal-store.d.ts +16 -3
  323. package/dist/stores/file/workflow-journal-store.js +93 -5
  324. package/dist/stores/file/workflow-run-store.d.ts +1 -1
  325. package/dist/tools/fs/bash-model-shell.d.ts +23 -0
  326. package/dist/tools/fs/bash-model-shell.js +25 -0
  327. package/dist/tools/fs/bash-readonly-classifier.d.ts +6 -0
  328. package/dist/tools/fs/bash-readonly-classifier.js +3 -0
  329. package/dist/tools/fs/file-write-check.js +9 -3
  330. package/dist/tools/fs/fs-bash.js +13 -11
  331. package/dist/tools/fs/index.d.ts +8 -7
  332. package/dist/tools/fs/index.js +4 -4
  333. package/dist/tools/fs/read-deny-home.d.ts +1 -1
  334. package/dist/tools/fs/read-deny-home.js +5 -5
  335. package/dist/tools/fs/read-deny.d.ts +33 -8
  336. package/dist/tools/fs/read-deny.js +114 -25
  337. package/dist/tools/fs/safety.d.ts +4 -1
  338. package/dist/tools/fs/safety.js +4 -2
  339. package/dist/tools/fs/shell-read-argv.js +1 -0
  340. package/dist/tools/fs/shell-read-check.d.ts +9 -2
  341. package/dist/tools/fs/shell-read-check.js +134 -22
  342. package/dist/tools/fs/shell-read-establish.d.ts +9 -0
  343. package/dist/tools/fs/shell-read-establish.js +21 -11
  344. package/dist/tools/fs/shell-read-judge.d.ts +13 -1
  345. package/dist/tools/fs/shell-read-judge.js +26 -7
  346. package/dist/tools/fs/shell-read-plan.d.ts +7 -3
  347. package/dist/tools/fs/shell-read-plan.js +8 -5
  348. package/dist/tools/fs/shell-read-word.d.ts +8 -0
  349. package/dist/tools/fs/shell-read-word.js +13 -4
  350. package/dist/tools/fs/shell-read-write-targets.js +17 -9
  351. package/dist/tools/monitor.js +12 -8
  352. package/dist/tools/scheduler-tools.d.ts +1 -0
  353. package/dist/tools/scheduler-tools.js +5 -2
  354. package/package.json +3 -2
  355. package/test/export-surface.snapshot.json +192 -3
  356. package/wire-changes/answers/core-stores-sql@7.73.0.json +28 -0
  357. package/wire-changes/answers/core-stores-sql@7.74.0.json +7 -0
  358. package/wire-changes/answers/core@7.73.0.json +216 -0
  359. package/wire-changes/answers/core@7.74.0.json +68 -0
  360. package/wire-changes/answers/mods-kernel@7.73.0.json +7 -0
  361. package/wire-changes/answers/mods-kernel@7.74.0.json +21 -0
  362. package/wire-changes/answers/primitives@7.73.0.json +12 -0
  363. package/wire-changes/answers/primitives@7.74.0.json +7 -0
  364. package/wire-changes/answers/wiki-gate@7.73.0.json +7 -0
  365. package/wire-changes/answers/wiki-gate@7.74.0.json +8 -0
  366. package/wire-changes/core-stores-sql@7.73.0.json +326 -0
  367. package/wire-changes/core-stores-sql@7.74.0.json +143 -0
  368. package/wire-changes/core@7.73.0.json +6480 -0
  369. package/wire-changes/core@7.74.0.json +2210 -0
  370. package/wire-changes/mods-kernel@7.73.0.json +147 -0
  371. package/wire-changes/mods-kernel@7.74.0.json +421 -0
  372. package/wire-changes/primitives@7.73.0.json +227 -0
  373. package/wire-changes/primitives@7.74.0.json +174 -0
  374. package/wire-changes/wiki-gate@7.73.0.json +145 -0
  375. package/wire-changes/wiki-gate@7.74.0.json +145 -0
@@ -7,7 +7,7 @@ import type { StoreFidelity, Checkpoint, CheckpointGate, PendingAction } from ".
7
7
  * had carried beside the one its word now names, and the members added after the table, each a capability a reader
8
8
  * must have. Downstream reads them for display only (`CheckpointError.detail.requires`).
9
9
  */
10
- export declare const REQUIREMENT_WORDS: readonly ["resource", "binding", "token", "orgAdmission", "f012", "realApproval", "face", "requirements_digest", "org_admission_inherited", "org_write_grant", "org_governed", "delegation_provenance", "skill_grants", "skill_card_binding", "hands_coordinates", "hands_home", "path_rule_anchors", "path_rule_installations", "permission_mode", "plan_mode_restore", "persisted_rule_mandate", "deployment_authored", "call_names", "write_face", "denial_limit_fallback", "leg_scope", "tool_ceiling", "tool_lists_judged", "own_tool_lists", "approval_targets", "approval_target_reads", "cross_boundary", "mount_site", "skill_scopes", "run_origin", "tool_declaration", "composition_leg", "row_task_id", "held_rows", "source_session", "tool_binding", "raw_name_identity", "isolation_scope", "from_subagent", "command_sandbox", "agent_config_dirs", "agent_home_dirs", "read_block", "persisted_rule_buckets", "constraint_layer_kinds"];
10
+ export declare const REQUIREMENT_WORDS: readonly ["resource", "binding", "token", "orgAdmission", "f012", "realApproval", "face", "requirements_digest", "org_admission_inherited", "org_write_grant", "org_governed", "delegation_provenance", "skill_grants", "skill_card_binding", "hands_coordinates", "hands_home", "path_rule_anchors", "path_rule_installations", "permission_mode", "plan_mode_restore", "persisted_rule_mandate", "deployment_authored", "call_names", "write_face", "denial_limit_fallback", "leg_scope", "tool_ceiling", "tool_lists_judged", "own_tool_lists", "approval_targets", "approval_target_reads", "cross_boundary", "mount_site", "skill_scopes", "run_origin", "tool_declaration", "composition_leg", "row_task_id", "held_rows", "source_session", "tool_binding", "raw_name_identity", "isolation_scope", "from_subagent", "command_sandbox", "agent_config_dirs", "agent_home_dirs", "read_block", "persisted_rule_buckets", "constraint_layer_kinds", "run_ledger", "leg_identity"];
11
11
  export type RequirementWord = (typeof REQUIREMENT_WORDS)[number];
12
12
  /** Runtime twin of {@link RequirementWord}. */
13
13
  export declare function isRequirementWord(word: unknown): word is RequirementWord;
@@ -327,6 +327,12 @@ export declare const CHECKPOINT_STATE_REQUIREMENTS: {
327
327
  readonly agentHomeDirs: {
328
328
  readonly word: "agent_home_dirs";
329
329
  };
330
+ readonly runLedger: {
331
+ readonly word: "run_ledger";
332
+ };
333
+ readonly legIdentity: {
334
+ readonly word: "leg_identity";
335
+ };
330
336
  };
331
337
  export declare const PENDING_ACTION_REQUIREMENTS: {
332
338
  readonly tool_approval: {
@@ -567,7 +573,11 @@ export declare const CHECKPOINT_GATE_REQUIREMENTS: {
567
573
  };
568
574
  readonly plan_review: {
569
575
  readonly kind: {
570
- readonly digest: "decision-read";
576
+ readonly word: "leg_identity";
577
+ readonly earlier: {
578
+ readonly was: "decision-read";
579
+ readonly agrees: () => true;
580
+ };
571
581
  };
572
582
  readonly reason: {
573
583
  readonly digest: "decision-read";
@@ -797,6 +807,12 @@ export declare const CHECKPOINT_REQUIREMENTS: {
797
807
  readonly agentHomeDirs: {
798
808
  readonly word: "agent_home_dirs";
799
809
  };
810
+ readonly runLedger: {
811
+ readonly word: "run_ledger";
812
+ };
813
+ readonly legIdentity: {
814
+ readonly word: "leg_identity";
815
+ };
800
816
  };
801
817
  };
802
818
  readonly resourceLedger: {
@@ -939,7 +955,11 @@ export declare const CHECKPOINT_REQUIREMENTS: {
939
955
  };
940
956
  readonly plan_review: {
941
957
  readonly kind: {
942
- readonly digest: "decision-read";
958
+ readonly word: "leg_identity";
959
+ readonly earlier: {
960
+ readonly was: "decision-read";
961
+ readonly agrees: () => true;
962
+ };
943
963
  };
944
964
  readonly reason: {
945
965
  readonly digest: "decision-read";
@@ -54,6 +54,8 @@ export const REQUIREMENT_WORDS = Object.freeze([
54
54
  "read_block",
55
55
  "persisted_rule_buckets",
56
56
  "constraint_layer_kinds",
57
+ "run_ledger",
58
+ "leg_identity",
57
59
  ]);
58
60
  export function isRequirementWord(word) {
59
61
  return typeof word === "string" && REQUIREMENT_WORDS.includes(word);
@@ -129,6 +131,8 @@ export const CHECKPOINT_STATE_REQUIREMENTS = {
129
131
  commandSandbox: { word: "command_sandbox" },
130
132
  agentConfigDirs: { word: "agent_config_dirs" },
131
133
  agentHomeDirs: { word: "agent_home_dirs" },
134
+ runLedger: { word: "run_ledger" },
135
+ legIdentity: { word: "leg_identity" },
132
136
  };
133
137
  export const PENDING_ACTION_REQUIREMENTS = {
134
138
  tool_approval: {
@@ -188,7 +192,7 @@ export const CHECKPOINT_GATE_REQUIREMENTS = {
188
192
  irreversible_ask: { kind: DECISION_READ, reason: DECISION_READ, toolName: DECISION_READ, approvalCard: DECISION_READ, safetyAxis: SHOWN, realApproval: { word: "realApproval" }, riskDescriptor: SHOWN },
189
193
  resource_limit: { kind: { word: "resource" }, reason: DECISION_READ, resumeAfterMs: DECISION_READ },
190
194
  needs_review: { kind: DECISION_READ, reason: DECISION_READ },
191
- plan_review: { kind: DECISION_READ, reason: DECISION_READ },
195
+ plan_review: { kind: { word: "leg_identity", earlier: { was: "decision-read", agrees: () => true } }, reason: DECISION_READ },
192
196
  task_done: { kind: DECISION_READ },
193
197
  };
194
198
  export const CHECKPOINT_REQUIREMENTS = {
@@ -87,7 +87,7 @@ export declare const ROW_REFUSAL_SENTENCES: Readonly<{
87
87
  readonly "checkpoint.invalid_outcome|read_face_damaged": "This engine cannot resume this checkpoint: its read-face section is missing or malformed (a corruption or downgrade guard). The checkpoint stays pending. Expire it, then start the task again.";
88
88
  readonly "checkpoint.invalid_outcome|write_face_damaged": "This engine cannot resume this checkpoint: its write-face section is malformed (a corruption guard). The checkpoint stays pending. Expire it, then start the task again.";
89
89
  readonly "checkpoint.invalid_outcome|skill_grants_damaged": "This engine cannot resume this checkpoint: its skill-grant section does not read as grant rows under this engine — damaged, or written by an earlier release whose entries this release reads differently. The checkpoint stays pending. Expire it and run the work again.";
90
- readonly "checkpoint.invalid_outcome|skill_scopes_damaged": "This engine cannot resume this checkpoint: its skill-scope section does not read as a list of named skills (a damaged section). The checkpoint stays pending. Expire it and run the work again.";
90
+ readonly "checkpoint.invalid_outcome|skill_scopes_damaged": "This engine cannot resume this checkpoint: its skill-scope section does not read as a list of named skills (a damaged section). The checkpoint stays pending. Expire it, then start the task again.";
91
91
  readonly "checkpoint.invalid_outcome|hands_coordinates_damaged": "This engine cannot resume this checkpoint: one of its recorded workspace coordinates is not an absolute path (a corruption guard). The checkpoint stays pending. Expire it, then start the task again.";
92
92
  readonly "checkpoint.invalid_outcome|constraint_chain_missing": "This engine cannot resume this checkpoint: it requires parent constraints but does not carry both their frozen chain and its digest (a corruption or downgrade guard). The checkpoint stays pending. Expire it, then start the task again.";
93
93
  readonly "checkpoint.walltime_axis_retired|": "This engine cannot resume this checkpoint: its budget carries a wall-clock allocation, an axis this engine retired, so resuming here would run the work with that ceiling unenforced. The checkpoint stays pending. Expire it and start a fresh task bounded by tokens or budget.";
@@ -5,6 +5,7 @@ import { validatePath } from "./effective-path-target.js";
5
5
  import { persistedReadDenyEntryProblem } from "../tools/fs/read-deny.js";
6
6
  import { readFrozenSkillGrants } from "./skill-grant.js";
7
7
  import { readFrozenSkillScopes } from "./mods/spec-seats.js";
8
+ import { readRunLedgerParked } from "./run-ledger.js";
8
9
  import { constraintChainDigestReading } from "./tool-policy.js";
9
10
  import { asResumeConfigRefusal } from "./mode-policy.js";
10
11
  import { screenRecordedRunOrigin } from "./run-origin.js";
@@ -12,7 +13,7 @@ import { refusePersistedToolNames } from "./runner/sub-agent-deny-lists.js";
12
13
  import { boundedThrownName } from "./thrown-value.js";
13
14
  import { memberPresent } from "./own-property-receipt.js";
14
15
  import { CHECKPOINT_ROW_DAMAGED_SENTENCE, checkpointRowUnreadable, rowMemberProblem } from "./checkpoint-queries.js";
15
- import { SYNC_CHILD_BLOCK_MEMBERS } from "./leg-identity.js";
16
+ import { readLegIdentityRecord, SYNC_CHILD_BLOCK_MEMBERS } from "./leg-identity.js";
16
17
  import { checkpointExecutionRecorded } from "./checkpoint-execution-record.js";
17
18
  import { readStoredPrincipal, recordedPrincipalNameOf } from "./principal-name.js";
18
19
  import { GLOBAL_USAGE_KEY } from "./usage-window-store.js";
@@ -41,7 +42,7 @@ export const ROW_REFUSAL_SENTENCES = Object.freeze({
41
42
  "checkpoint.invalid_outcome|read_face_damaged": "This engine cannot resume this checkpoint: its read-face section is missing or malformed (a corruption or downgrade guard). The checkpoint stays pending. Expire it, then start the task again.",
42
43
  "checkpoint.invalid_outcome|write_face_damaged": "This engine cannot resume this checkpoint: its write-face section is malformed (a corruption guard). The checkpoint stays pending. Expire it, then start the task again.",
43
44
  "checkpoint.invalid_outcome|skill_grants_damaged": "This engine cannot resume this checkpoint: its skill-grant section does not read as grant rows under this engine — damaged, or written by an earlier release whose entries this release reads differently. The checkpoint stays pending. Expire it and run the work again.",
44
- "checkpoint.invalid_outcome|skill_scopes_damaged": "This engine cannot resume this checkpoint: its skill-scope section does not read as a list of named skills (a damaged section). The checkpoint stays pending. Expire it and run the work again.",
45
+ "checkpoint.invalid_outcome|skill_scopes_damaged": "This engine cannot resume this checkpoint: its skill-scope section does not read as a list of named skills (a damaged section). The checkpoint stays pending. Expire it, then start the task again.",
45
46
  "checkpoint.invalid_outcome|hands_coordinates_damaged": "This engine cannot resume this checkpoint: one of its recorded workspace coordinates is not an absolute path (a corruption guard). The checkpoint stays pending. Expire it, then start the task again.",
46
47
  "checkpoint.invalid_outcome|constraint_chain_missing": "This engine cannot resume this checkpoint: it requires parent constraints but does not carry both their frozen chain and its digest (a corruption or downgrade guard). The checkpoint stays pending. Expire it, then start the task again.",
47
48
  "checkpoint.walltime_axis_retired|": "This engine cannot resume this checkpoint: its budget carries a wall-clock allocation, an axis this engine retired, so resuming here would run the work with that ceiling unenforced. The checkpoint stays pending. Expire it and start a fresh task bounded by tokens or budget.",
@@ -61,7 +62,7 @@ export const ROW_REFUSAL_TERMINAL = Object.freeze({
61
62
  "checkpoint.invalid_outcome|read_face_damaged": true,
62
63
  "checkpoint.invalid_outcome|write_face_damaged": true,
63
64
  "checkpoint.invalid_outcome|skill_grants_damaged": false,
64
- "checkpoint.invalid_outcome|skill_scopes_damaged": false,
65
+ "checkpoint.invalid_outcome|skill_scopes_damaged": true,
65
66
  "checkpoint.invalid_outcome|hands_coordinates_damaged": true,
66
67
  "checkpoint.invalid_outcome|constraint_chain_missing": true,
67
68
  "checkpoint.walltime_axis_retired|": false,
@@ -227,6 +228,11 @@ function rowRefusalOf(cp) {
227
228
  return new CheckpointError("checkpoint.invalid_outcome", "this checkpoint carries a skill-grant section (state.skillGrants) that does not read as grant rows under this engine — a damaged section, or a row an earlier release wrote whose entry this release reads as nothing (an entry with a surrounding space, say) — refusing to resume without the grant rows and refusals it carries; the checkpoint stays pending: expire it and run the work again", { reason: "skill_grants_damaged" });
228
229
  if (readFrozenSkillScopes(cp.state.skillScopes) === undefined)
229
230
  return new CheckpointError("checkpoint.invalid_outcome", "this checkpoint carries a skill-scope section (state.skillScopes) that does not read as a list of SkillSpec names — a damaged section — refusing to resume without the active skills' hooks it records; the checkpoint stays pending: expire it and run the work again", { reason: "skill_scopes_damaged" });
231
+ const runLedgerRaw = cp.state.runLedger;
232
+ if (runLedgerRaw !== undefined && readRunLedgerParked(runLedgerRaw) === undefined)
233
+ return new CheckpointError("checkpoint.invalid_outcome", "this checkpoint's member ledger section (state.runLedger) does not read as the book an engine froze — a damaged row; the checkpoint stays pending", { reason: "requirements_damaged" });
234
+ if (readLegIdentityRecord(cp.state.legIdentity) === "damaged")
235
+ return new CheckpointError("checkpoint.invalid_outcome", "this checkpoint's leg identity section (state.legIdentity) does not read as the record an engine mints — a damaged row; the checkpoint stays pending", { reason: "requirements_damaged" });
230
236
  for (const field of ["handsRoot", "handsHome", "handsCwd"]) {
231
237
  const coordinate = cp.state[field];
232
238
  if (coordinate !== undefined && validatePath(coordinate, { intent: "validate-coordinate" }) === undefined)
@@ -670,6 +670,12 @@ export type ResumeOutcome = {
670
670
  decision: "approve" | "edit" | "reject";
671
671
  editedPlan?: string;
672
672
  reason?: string;
673
+ /** The mode the approved plan runs under — the approver's choice, on `approve` / `edit` only: any mode but `plan` (an approved
674
+ * plan is not kept open). Absent ⇒ the resume config's mode (a config of `plan` reads as none), else the mode the leg had before
675
+ * the plan. Recorded on the decided row (`ResolvedOutcome.permissionMode`), so an `env_failed` retry replays it. Refused before the
676
+ * claim (`checkpoint.invalid_outcome`, the row pending): a word outside the set, `plan`, a mode on a `reject`, or a mode the
677
+ * resume config contradicts (a config naming another mode but `plan`). */
678
+ permissionMode?: PermissionMode;
673
679
  /** Who ended this wait — the tool-approval arm's member, same shape, closed set, validation and refusals; REQUIRED.
674
680
  * `reject` is the refusal direction; `"sla_timeout"` is refused here (a plan pause expires, a sweep never resolves it). */
675
681
  hostDecision: HostDecisionFacts;
@@ -1373,8 +1379,8 @@ export interface CheckpointState {
1373
1379
  * frame — a deployment watching only that seat saw a human-approved delegation frozen at its
1374
1380
  * park-leg `"suspended"` terminal forever. Live internals still win when re-supplied (the in-engine
1375
1381
  * resume lanes all do); the checkpoint key is the fallback for the deps-only leg. Of the delegation
1376
- * axes this one, {@link fromSubagent} and the asks' display name ({@link sourceAgentName}) persist — `insideFork`, the hook identity's
1377
- * `agentName` / `spawnName` and `parentToolCallId` stay internals-only, honestly absent on a deps-only resume rather than guessed. `insideFork` needs no axis: no lane holds a fork leg's
1382
+ * axes this one, {@link fromSubagent}, the asks' display name ({@link sourceAgentName}) and the {@link legIdentity} section (the spawn name
1383
+ * among it) persist — `insideFork`, the hook identity's `agentName` and `parentToolCallId` stay internals-only, honestly absent on a deps-only resume rather than guessed. `insideFork` needs no axis: no lane holds a fork leg's
1378
1384
  * parks (`RunInternals.parkLaneHeld` is set only by a background lane that can park and an armed
1379
1385
  * workflow), so a fork leg mints no row and no resume of one exists to read the facet back. Schema ADDITION (additive, old readers ignore it —
1380
1386
  * the Q5 posture; no version movement): an older worker resuming a newer row keeps the pre-key
@@ -1500,6 +1506,18 @@ export interface CheckpointState {
1500
1506
  agentConfigDirs?: string[];
1501
1507
  /** The caller homes a task layer of the parked leg declared: a resume places the home-anchored rows there again. */
1502
1508
  agentHomeDirs?: string[];
1509
+ /** The parked leg's member ledger book (`TaskSpec.runLedger`; {@link import("./run-ledger.js").RunLedgerParked}): the members it
1510
+ * dispatched, the calls a check may cite, the accepted claims and the snapshot numbering — the leg that resumes the row continues
1511
+ * the same book. Written on every park of a leg that keeps a book; absent ⇒ the leg kept none, and a resumed leg that declares a
1512
+ * ledger starts a new one. A reader that lacks the word would resume the leg with the members dispatched before the park gone
1513
+ * from its ledger (an older engine refuses the row as newer); a section that does not read is a damaged row. */
1514
+ runLedger?: import("./run-ledger.js").RunLedgerParked;
1515
+ /** The parked leg's identity facts ({@link import("./leg-identity.js").LegIdentityRecord}: the task id its host declared, the task that
1516
+ * spawned it, its tree's root and that root's occupant, its explicit spawn name), stamped at every mint; a resume reads each one
1517
+ * the resuming call does not hand (live wins), so the resumed leg runs as the leg that parked. Absent ⇒ the leg had none of them, or
1518
+ * an earlier release minted the row (each then reads as the resume hands it). A reader that lacks the word would resume the leg
1519
+ * under the resuming call's identities (an older engine refuses the row as newer); a section that does not read is a damaged row. */
1520
+ legIdentity?: import("./leg-identity.js").LegIdentityRecord;
1503
1521
  }
1504
1522
  /**
1505
1523
  * {@link CheckpointState} with **every** field made required-PRESENT, while each value keeps its original
@@ -1622,6 +1640,10 @@ export interface ResolvedOutcome {
1622
1640
  * and bound by the replay equality on the same ADDITIVE rule as {@link reason}: absence means "never recorded". No
1623
1641
  * reader requirement word guards it: `resolvedOutcome` is a store-written state-machine member, never minted with the row. */
1624
1642
  feedback?: string;
1643
+ /** The mode an approved or edited `plan_review` exits the plan to, as the approval named it (`outcome.permissionMode`): the
1644
+ * substance of the approval, bound by the replay equality on the same ADDITIVE rule as {@link reason} (absence = never recorded:
1645
+ * a winner of a decision that named none, or one written before the member, leaves the mode unbound on a retry). */
1646
+ permissionMode?: PermissionMode;
1625
1647
  /** The settlement record core minted for this decide ({@link import("./gate-outcome.js").GateOutcome}):
1626
1648
  * the row's own copy of what the resolved call's `tool_end` frame carries, written with the winner so
1627
1649
  * an audit reading the row reads the same record the stream carried. NOT part of the replay equality
@@ -2238,6 +2260,8 @@ export interface CheckpointSummary {
2238
2260
  fromApprovalList?: true;
2239
2261
  /** The row's `PendingAction.tool_approval.mandate`, echoed ONLY as a member of the closed set. ECHO-ONLY. */
2240
2262
  mandate?: import("./ask-origin.js").PersistedRuleMandate;
2263
+ /** The parked ask's word for why its card offers no persisted rule (the row's pendingAction.ruleOffersAbsence), present only when that member is one of RULE_OFFERS_ABSENCES; any other value is left out, never echoed. */
2264
+ ruleOffersAbsence?: import("./ask-origin.js").RuleOffersAbsence;
2241
2265
  /** The row's `PendingAction.tool_approval.denialLimitFallback`, projected BESIDE the preview
2242
2266
  * for the same one-call reason: a card that shows the fallback's counts and limit must not re-open
2243
2267
  * the row to learn them (`autoDenyAfterMs` is `0` on every row — see the row member). Pure echo;
@@ -10,7 +10,7 @@ import { planReviewFactsOf } from "./plan-review-facts.js";
10
10
  import { carriesBidiControls } from "./tool-policy.js";
11
11
  import { agentIdOf, legTaskIdOf } from "./leg-identity.js";
12
12
  import { isAutoModeFallbackCause, readDenialLimitFallback } from "./auto-mode.js";
13
- import { isAskOrigin, isPersistedRuleMandate, receiveAskReasons } from "./ask-origin.js";
13
+ import { isAskOrigin, isPersistedRuleMandate, isRuleOffersAbsence, receiveAskReasons } from "./ask-origin.js";
14
14
  import { approvalMessageOf } from "./approval-display.js";
15
15
  import { isRunOrigin, RUN_ORIGINS } from "./run-origin.js";
16
16
  import { describeRejectedValue } from "./tool-search-setting.js";
@@ -401,7 +401,13 @@ function projectCheckpoint(cp, rowVerdict, disclose) {
401
401
  const origin = tool?.origin;
402
402
  const mandate = tool?.mandate;
403
403
  const why = tool?.classifierNoRuling;
404
- return { ...(isAskOrigin(origin) ? { origin } : {}), ...(isPersistedRuleMandate(mandate) ? { mandate } : {}), ...(isAutoModeFallbackCause(why) ? { classifierNoRuling: why } : {}) };
404
+ const absence = tool?.ruleOffersAbsence;
405
+ return {
406
+ ...(isAskOrigin(origin) ? { origin } : {}),
407
+ ...(isPersistedRuleMandate(mandate) ? { mandate } : {}),
408
+ ...(isAutoModeFallbackCause(why) ? { classifierNoRuling: why } : {}),
409
+ ...(isRuleOffersAbsence(absence) ? { ruleOffersAbsence: absence } : {}),
410
+ };
405
411
  })(),
406
412
  ...((askReasons) => (askReasons !== undefined ? { askReasons } : {}))(receiveAskReasons(tool?.askReasons)),
407
413
  ...((cardMessage) => (cardMessage !== undefined ? { cardMessage } : {}))(approvalMessageOf(tool?.cardMessage)),
@@ -478,6 +484,7 @@ export function winnerFromOutcome(outcome) {
478
484
  decision: outcome.decision,
479
485
  ...(editedPlan !== undefined ? { updatedInput: editedPlan } : {}),
480
486
  ...(outcome.reason !== undefined ? { reason: outcome.reason } : {}),
487
+ ...(outcome.gate === "plan_review" && outcome.permissionMode !== undefined ? { permissionMode: outcome.permissionMode } : {}),
481
488
  ...(outcome.gate === "plan_review" && outcome.gateOutcome !== undefined ? { gateOutcome: outcome.gateOutcome } : {}),
482
489
  };
483
490
  }
@@ -343,6 +343,21 @@ export declare const CHILD_CLAMP_SEATS_NOT_CARRIED: Readonly<Record<string, stri
343
343
  * shape it misses leaves the real constructor invisible while a namesake answers for it.
344
344
  */
345
345
  export declare const ENGINE_CHILD_SPEC_CONSTRUCTORS: readonly ["src/agents/subagent.ts#buildChildSpec", "src/agents/subagent.ts#observerSpec", "src/agents/subagent.ts#resumeSpec", "src/agents/verify.ts#verifierSpec", "src/agents/verify.ts#fixLegSpec", "src/orchestration/workflow-primitives.ts#workflowChildClamps"];
346
+ /**
347
+ * THE leg-local narrowing of a leg's hands ({@link TaskSpec.ownHandsReadOnly}) — the one place it meets the table's
348
+ * `handsReadOnly` row. A leg that declares it reads its own hands exactly as a `handsReadOnly` leg does (every reader of
349
+ * the leg reads the one `handsReadOnly` cell, rebound here), while the clamp its children inherit stays the one it was
350
+ * handed: {@link handsReadOnlyCarried} is what the run's clamp source reads for that row. The narrowing therefore subtracts
351
+ * from this leg alone and never reaches a child — a child's hands are exactly what they would be without it.
352
+ *
353
+ * Rebound shape: `ownHandsReadOnly` is kept on the spec only while it is the SOLE reason the leg is read-only (a spec that
354
+ * was also handed the clamp drops it: the clamp already travels), so "the read-only cell here is this leg's own" is one
355
+ * reading of the rebound spec. A value other than `true` or absent is refused (a `false` would read as a loosening).
356
+ */
357
+ export declare function withOwnLegHands<S extends Pick<TaskSpec, "handsReadOnly" | "ownHandsReadOnly">>(spec: S): S;
358
+ /** The `handsReadOnly` cell a rebound spec hands its children: the spec's own cell, unless that cell is the leg-local
359
+ * narrowing ({@link withOwnLegHands}), which never travels. */
360
+ export declare function handsReadOnlyCarried(spec: Pick<TaskSpec, "handsReadOnly" | "ownHandsReadOnly">): TaskSpec["handsReadOnly"];
346
361
  /** Do these clamps leave nobody on the leg to ask — the hard-headless clamp (`interactiveTools: false`) or the declaration
347
362
  * that nobody can be asked (`approvalReach: "none"`)? The one reading {@link postureUnderClamps} and a revival's posture read. */
348
363
  export declare function clampsReachNoPerson(clamps: {
@@ -342,6 +342,21 @@ export const ENGINE_CHILD_SPEC_CONSTRUCTORS = Object.freeze([
342
342
  "src/agents/verify.ts#fixLegSpec",
343
343
  "src/orchestration/workflow-primitives.ts#workflowChildClamps",
344
344
  ]);
345
+ export function withOwnLegHands(spec) {
346
+ const own = spec.ownHandsReadOnly;
347
+ if (own === undefined)
348
+ return spec;
349
+ if (own !== true)
350
+ throw clampRecordError(`TaskSpec.ownHandsReadOnly must be true or absent (got ${describeStated(own)}) — it only narrows this leg's own hands; to keep them whole, leave it out.`);
351
+ if (spec.handsReadOnly === CLAMP_SET.handsReadOnly.value) {
352
+ const { ownHandsReadOnly: _dropped, ...rest } = spec;
353
+ return rest;
354
+ }
355
+ return { ...spec, handsReadOnly: CLAMP_SET.handsReadOnly.value };
356
+ }
357
+ export function handsReadOnlyCarried(spec) {
358
+ return spec.ownHandsReadOnly === true ? undefined : spec.handsReadOnly;
359
+ }
345
360
  export function clampsReachNoPerson(clamps) {
346
361
  return clamps.interactiveTools === false || clamps.approvalReach === "none";
347
362
  }
@@ -18,7 +18,7 @@
18
18
  * A CLOSED SET with one home, registered in `docs/CLOSED-SETS.md`; `gate:closed-sets` holds the whole family to it: every family literal under
19
19
  * `src/` is a member, a notice word in a notice's `code`, or a ledgered non-word, and every member is still spelled somewhere.
20
20
  */
21
- export declare const CONFIG_REFUSAL_CODES: readonly ["config.a2a_inside_incomplete", "config.a2a_peer_name_collision", "config.advisor_model_invalid", "config.advisor_tool_invalid", "config.agent.duplicate", "config.agent.invalid", "config.agent.reserved_name", "config.agent.unknown_model", "config.agent.unknown_tool", "config.agent_config_dir_invalid", "config.agent_home_dir_invalid", "config.agents.no_delegation_tool", "config.approval_reach_invalid", "config.attachment_invalid", "config.auto_consolidation", "config.auto_mode_classifier_fallback_invalid", "config.auto_mode_denial_limit_invalid", "config.auto_mode_rate_limit_break_invalid", "config.auto_mode_timeout_invalid", "config.brain_call_guardrail_invalid", "config.cascade_invalid", "config.circuit_breaker_invalid", "config.command_sandbox_unavailable", "config.compliance_denied", "config.compliance_posture", "config.compliance_required", "config.context_settings_unknown_word", "config.credential_in_declaration", "config.credential_ref_invalid", "config.cross_boundary_posture", "config.cwd_conflicts_restore", "config.cwd_not_honored", "config.cwd_outside_root", "config.cwd_unsupported", "config.defer_mode_invalid", "config.delegation_entry_caps", "config.deps_retired_key", "config.egress_requires_write_effect", "config.empty_objective", "config.env_lifetime_invalid", "config.execution_env_home_dir_invalid", "config.extra_body_output_cap", "config.extra_tool_names", "config.host_floor_invalid", "config.host_floor_refused", "config.image_invalid", "config.interaction_posture", "config.interaction_wiring", "config.invalid_argument", "config.invalid_checkpoint_store", "config.invalid_file_history_capture", "config.invalid_file_history_store", "config.invalid_governance_baseline", "config.invalid_on_track_failure", "config.invalid_output_schema", "config.invalid_permission_rules", "config.invalid_session_store", "config.invalid_task_registry", "config.invalid_tool_name_set", "config.language_invalid", "config.legacy_tool_name", "config.limit_invalid", "config.limit_unknown_key", "config.locked_key", "config.locked_registry", "config.mcp_content_class", "config.mcp_dialable_failed", "config.mcp_fingerprint_invalid", "config.mcp_first_request_wait_invalid", "config.mcp_host_seat_missing", "config.mcp_host_seat_undeclared", "config.mcp_pool_foreign_connection", "config.mcp_probe_option", "config.mcp_server_name_collision", "config.mcp_startup_timeout_invalid", "config.memory_capture_policy", "config.memory_capture_spelling", "config.memory_capture_unsupported", "config.memory_challenge_request", "config.memory_consolidation", "config.memory_consolidation_driver", "config.memory_consolidation_lease_required", "config.memory_consolidation_provenance_off", "config.memory_consolidation_replica_local", "config.memory_consolidation_write_gate", "config.memory_delegation_evidence", "config.memory_dir_not_backend_root", "config.memory_distiller_purity_contract", "config.memory_dual_root_overlap", "config.memory_erasure_request", "config.memory_erasure_scope", "config.memory_export_request", "config.memory_hold_timeout", "config.memory_import_request", "config.memory_persistence_invalid", "config.memory_project_identity", "config.memory_project_key_spelling", "config.memory_project_marker", "config.memory_project_marker_nested", "config.memory_provenance", "config.memory_reanchor", "config.memory_rebuild_reason", "config.memory_scope_key", "config.memory_scope_placement", "config.memory_scope_spelling", "config.memory_sync_cursor_mismatch", "config.memory_sync_store", "config.memory_sync_target_mismatch", "config.memory_write_scope_mismatch", "config.microcompact_invalid", "config.missing_scope", "config.model_fallback_invalid", "config.mods_invalid", "config.nothing_to_wake", "config.output_style_invalid", "config.parent_spec_seat_missing", "config.peer_answer_invalid", "config.peer_presence_invalid", "config.peer_seat_missing", "config.permission_mode_invalid", "config.persisted_rule_bucket_missing", "config.placement_not_honored", "config.placement_root_invalid", "config.plan_file_invalid", "config.principal_inbox_consumer_invalid", "config.project_id_invalid", "config.project_identity_mismatch", "config.prompt_selector_invalid", "config.prompt_trait_unknown", "config.protocol_endpoint_unbound", "config.protocol_header_collision", "config.protocol_plaintext_credentials", "config.read_deny_floor_unkept", "config.read_face_invalid", "config.read_face_org_task_escalation", "config.read_face_read_block_conflict", "config.read_face_readonly_conflict", "config.read_face_seat", "config.registry_scope_mismatch", "config.reserved_tool_name", "config.retention_capability", "config.retention_policy", "config.retention_policy_invalid", "config.run_origin_invalid", "config.safe_vars_reserved_name", "config.sandbox_admission_unavailable", "config.sandbox_settings_invalid", "config.session_box_floor_mismatch", "config.session_rules_unreadable", "config.session_workspace_changed", "config.session_workspace_invalid", "config.shell_gate_value_retired", "config.skill_base_dir_invalid", "config.skill_deny_unreadable", "config.skill_listing_budget_invalid", "config.spec_member_unreadable", "config.spec_retired_key", "config.spec_unknown_key", "config.stale_tool_result_offload_invalid", "config.stall_timeout_invalid", "config.stall_timeout_retired", "config.store_durability_invalid", "config.store_fidelity_invalid", "config.tool_contract_too_long", "config.tool_face_control", "config.tool_face_invalid", "config.tool_materialize_invalid", "config.tool_materialize_unreachable", "config.tool_model_gate_env_invalid", "config.tool_model_gate_invalid", "config.tool_mount_denied", "config.tool_name_invalid", "config.tool_name_too_long", "config.tool_roster_bound", "config.tool_roster_mount_tag", "config.tool_roster_origin", "config.tool_schema_bound", "config.tool_search_invalid", "config.toolpolicy.unmatched_names", "config.unknown_role", "config.usage_window_invalid", "config.usage_window_unpriced", "config.user_attachment_invalid", "config.user_invoked_skill_unknown", "config.verify_internals_invalid", "config.web_max_bytes_invalid", "config.web_search_max_results_invalid", "config.web_summary_max_content_invalid", "config.web_timeout_invalid", "config.write_exempt_dir_covers_root", "config.write_face_invalid", "config.write_face_org_task_escalation", "config.write_face_readonly_conflict", "resume_at.before_root_unsupported", "resume_at.before_target_not_user", "resume_at.conflicts_resume", "resume_at.empty_branch", "resume_at.invalid_mode", "resume_at.mode_without_target", "resume_at.no_session", "resume_at.not_found", "resume_at.open_tool_call", "resume_at.outside_window"];
21
+ export declare const CONFIG_REFUSAL_CODES: readonly ["config.a2a_inside_incomplete", "config.a2a_peer_name_collision", "config.advisor_model_invalid", "config.advisor_tool_invalid", "config.agent.duplicate", "config.agent.invalid", "config.agent.reserved_name", "config.agent.unknown_model", "config.agent.unknown_tool", "config.agent_config_dir_invalid", "config.agent_home_dir_invalid", "config.agents.no_delegation_tool", "config.approval_reach_invalid", "config.attachment_invalid", "config.auto_consolidation", "config.auto_mode_classifier_fallback_invalid", "config.auto_mode_denial_limit_invalid", "config.auto_mode_rate_limit_break_invalid", "config.auto_mode_timeout_invalid", "config.brain_call_guardrail_invalid", "config.cascade_invalid", "config.circuit_breaker_invalid", "config.command_sandbox_unavailable", "config.compliance_denied", "config.compliance_posture", "config.compliance_required", "config.context_settings_unknown_word", "config.credential_in_declaration", "config.credential_ref_invalid", "config.cross_boundary_posture", "config.cwd_conflicts_restore", "config.cwd_not_honored", "config.cwd_outside_root", "config.cwd_unsupported", "config.defer_mode_invalid", "config.delegation_entry_caps", "config.deployment_shape", "config.deps_retired_key", "config.egress_requires_write_effect", "config.empty_objective", "config.env_lifetime_invalid", "config.execution_env_home_dir_invalid", "config.extra_body_output_cap", "config.extra_tool_names", "config.host_floor_invalid", "config.host_floor_refused", "config.image_invalid", "config.interaction_posture", "config.interaction_wiring", "config.invalid_argument", "config.invalid_checkpoint_store", "config.invalid_file_history_capture", "config.invalid_file_history_store", "config.invalid_governance_baseline", "config.invalid_on_track_failure", "config.invalid_output_schema", "config.invalid_permission_rules", "config.invalid_session_store", "config.invalid_task_registry", "config.invalid_tool_name_set", "config.language_invalid", "config.legacy_tool_name", "config.limit_invalid", "config.limit_unknown_key", "config.locked_key", "config.locked_registry", "config.mcp_content_class", "config.mcp_dialable_failed", "config.mcp_fingerprint_invalid", "config.mcp_first_request_wait_invalid", "config.mcp_host_seat_missing", "config.mcp_host_seat_undeclared", "config.mcp_pool_foreign_connection", "config.mcp_probe_option", "config.mcp_server_name_collision", "config.mcp_startup_timeout_invalid", "config.memory_capture_policy", "config.memory_capture_spelling", "config.memory_capture_unsupported", "config.memory_challenge_request", "config.memory_consolidation", "config.memory_consolidation_driver", "config.memory_consolidation_lease_required", "config.memory_consolidation_provenance_off", "config.memory_consolidation_replica_local", "config.memory_consolidation_write_gate", "config.memory_delegation_evidence", "config.memory_dir_not_backend_root", "config.memory_distiller_purity_contract", "config.memory_dual_root_overlap", "config.memory_erasure_request", "config.memory_erasure_scope", "config.memory_export_request", "config.memory_hold_timeout", "config.memory_import_request", "config.memory_persistence_invalid", "config.memory_project_identity", "config.memory_project_key_spelling", "config.memory_project_marker", "config.memory_project_marker_nested", "config.memory_provenance", "config.memory_reanchor", "config.memory_rebuild_reason", "config.memory_scope_key", "config.memory_scope_placement", "config.memory_scope_spelling", "config.memory_sync_cursor_mismatch", "config.memory_sync_store", "config.memory_sync_target_mismatch", "config.memory_write_scope_mismatch", "config.microcompact_invalid", "config.missing_scope", "config.model_fallback_invalid", "config.mods_invalid", "config.nothing_to_wake", "config.output_style_invalid", "config.parent_spec_seat_missing", "config.peer_answer_invalid", "config.peer_presence_invalid", "config.peer_seat_missing", "config.permission_mode_invalid", "config.persisted_rule_bucket_missing", "config.placement_not_honored", "config.placement_root_invalid", "config.plan_file_invalid", "config.principal_inbox_consumer_invalid", "config.project_id_invalid", "config.project_identity_mismatch", "config.prompt_selector_invalid", "config.prompt_trait_unknown", "config.protocol_endpoint_unbound", "config.protocol_header_collision", "config.protocol_plaintext_credentials", "config.read_deny_floor_unkept", "config.read_face_invalid", "config.read_face_org_task_escalation", "config.read_face_read_block_conflict", "config.read_face_readonly_conflict", "config.read_face_seat", "config.registry_scope_mismatch", "config.reserved_tool_name", "config.retention_capability", "config.retention_policy", "config.retention_policy_invalid", "config.run_origin_invalid", "config.safe_vars_reserved_name", "config.sandbox_admission_unavailable", "config.sandbox_settings_invalid", "config.session_box_floor_mismatch", "config.session_rules_unreadable", "config.session_workspace_changed", "config.session_workspace_invalid", "config.shell_gate_value_retired", "config.skill_base_dir_invalid", "config.skill_deny_unreadable", "config.skill_listing_budget_invalid", "config.spec_member_unreadable", "config.spec_retired_key", "config.spec_unknown_key", "config.stale_tool_result_offload_invalid", "config.stall_timeout_invalid", "config.stall_timeout_retired", "config.store_durability_invalid", "config.store_fidelity_invalid", "config.tool_contract_too_long", "config.tool_face_control", "config.tool_face_invalid", "config.tool_materialize_invalid", "config.tool_materialize_unreachable", "config.tool_model_gate_env_invalid", "config.tool_model_gate_invalid", "config.tool_mount_denied", "config.tool_name_invalid", "config.tool_name_too_long", "config.tool_roster_bound", "config.tool_roster_mount_tag", "config.tool_roster_origin", "config.tool_schema_bound", "config.tool_search_invalid", "config.toolpolicy.unmatched_names", "config.unknown_role", "config.usage_window_invalid", "config.usage_window_unpriced", "config.user_attachment_invalid", "config.user_invoked_skill_unknown", "config.verify_internals_invalid", "config.web_max_bytes_invalid", "config.web_search_max_results_invalid", "config.web_summary_max_content_invalid", "config.web_timeout_invalid", "config.write_exempt_dir_covers_root", "config.write_face_invalid", "config.write_face_org_task_escalation", "config.write_face_readonly_conflict", "resume_at.before_root_unsupported", "resume_at.before_target_not_user", "resume_at.conflicts_resume", "resume_at.empty_branch", "resume_at.invalid_mode", "resume_at.mode_without_target", "resume_at.no_session", "resume_at.not_found", "resume_at.open_tool_call", "resume_at.outside_window"];
22
22
  export type ConfigRefusalCode = (typeof CONFIG_REFUSAL_CODES)[number];
23
23
  /**
24
24
  * The CLASS of every `resume_at.*` word the ENGINE throws, declared beside the words — so a client that must decide "is the request still
@@ -35,6 +35,7 @@ export const CONFIG_REFUSAL_CODES = Object.freeze([
35
35
  "config.cwd_unsupported",
36
36
  "config.defer_mode_invalid",
37
37
  "config.delegation_entry_caps",
38
+ "config.deployment_shape",
38
39
  "config.deps_retired_key",
39
40
  "config.egress_requires_write_effect",
40
41
  "config.empty_objective",
package/dist/core/cron.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { SchedulerError } from "./scheduler.js";
2
+ import { foldToOneLine, inlineUntrusted } from "./untrusted-text.js";
2
3
  const MAX_EXPR_LENGTH = 100;
3
4
  const CRON_ALPHABET = /^[0-9*/,\-\s]+$/;
4
5
  export const CRON_FIELD_SEPARATOR = /\s+/;
@@ -47,8 +48,15 @@ function expandCronField(field, { min, max }) {
47
48
  }
48
49
  return out.size > 0 ? [...out] : null;
49
50
  }
51
+ function foldedAwayClause(text) {
52
+ const parts = [
53
+ ...(foldToOneLine(text) !== text.trim().replace(/ +/g, " ") ? ["control or non-printing characters, shown folded"] : []),
54
+ ...(/^\s|\s$/u.test(text) ? ["white space at its start or end"] : []),
55
+ ];
56
+ return parts.length === 0 ? "" : ` (the text given holds ${parts.join(", and ")})`;
57
+ }
50
58
  function quoted(expr) {
51
- return expr.length <= MAX_EXPR_LENGTH ? JSON.stringify(expr) : `(${expr.length} characters)`;
59
+ return expr.length <= MAX_EXPR_LENGTH ? `${JSON.stringify(inlineUntrusted(expr, MAX_EXPR_LENGTH))}${foldedAwayClause(expr)}` : `(${expr.length} characters)`;
52
60
  }
53
61
  function parseCron(expr) {
54
62
  if (typeof expr !== "string")
@@ -423,6 +423,7 @@ export declare function taskStartedFrame(run: {
423
423
  sessionId: string;
424
424
  model: string;
425
425
  identity: import("./hooks.js").HookInvocationIdentity;
426
+ startedAt: number;
426
427
  }, spawner: {
427
428
  delegationTaskType?: import("./task-event.js").DelegationTaskType;
428
429
  cycleSeq?: number;
@@ -75,7 +75,7 @@ export function taskStartedFrame(run, spawner, stamp) {
75
75
  ...(spawner?.explicitAgentName !== undefined ? { spawnName: spawner.explicitAgentName } : {}),
76
76
  ...(spawner?.spawnAgentType !== undefined ? { agentType: spawner.spawnAgentType } : {}),
77
77
  model: run.model,
78
- startedAt: Date.now(),
78
+ startedAt: run.startedAt,
79
79
  ...stamp,
80
80
  };
81
81
  }
@@ -0,0 +1,7 @@
1
+ /** The words of `RunnerDeps.deploymentShape`. A CLOSED SET with one home, registered in `docs/CLOSED-SETS.md`. */
2
+ export declare const DEPLOYMENT_SHAPES: readonly ["isolated_sandbox", "own_device", "single_user_host"];
3
+ export type DeploymentShape = (typeof DEPLOYMENT_SHAPES)[number];
4
+ /** The seat's door, at `new Runner` (the seat is fixed there — `swapDeps` does not carry it): absent, or one of the words beside a
5
+ * posture that is not `multi_tenant`. A word outside the set, or a shape beside `crossBoundaryPosture: "multi_tenant"` (a
6
+ * deployment that says it serves several tenants is not confined), is refused by name (`config.deployment_shape`, about `deps`). */
7
+ export declare function screenDeploymentShape(shape: unknown, crossBoundaryPosture: unknown): DeploymentShape | undefined;
@@ -0,0 +1,19 @@
1
+ import { stampConfigInput } from "./config-refusal-input.js";
2
+ import { describeRejectedValue } from "./tool-search-setting.js";
3
+ export const DEPLOYMENT_SHAPES = Object.freeze(["isolated_sandbox", "own_device", "single_user_host"]);
4
+ export function screenDeploymentShape(shape, crossBoundaryPosture) {
5
+ if (shape === undefined)
6
+ return undefined;
7
+ const word = DEPLOYMENT_SHAPES.find((w) => w === shape);
8
+ const why = word === undefined
9
+ ? `RunnerDeps.deploymentShape must be ${DEPLOYMENT_SHAPES.map((w) => `"${w}"`).join(", ")} when present (got ${describeRejectedValue(shape)}) — an unreadable shape is refused, never read as any shape or as none`
10
+ : crossBoundaryPosture === "multi_tenant"
11
+ ? `RunnerDeps.deploymentShape "${word}" contradicts RunnerDeps.crossBoundaryPosture "multi_tenant" — a shape is declared only by a deployment with one owner; drop one of the two`
12
+ : undefined;
13
+ if (why === undefined)
14
+ return word;
15
+ const e = new Error(`${why} (refused at new Runner)`);
16
+ e.code = "config.deployment_shape";
17
+ stampConfigInput(e, "deps");
18
+ throw e;
19
+ }
@@ -208,7 +208,19 @@
208
208
  * nothing from elsewhere and puts everything inline. One bad entry refuses the whole Artifact mount (`config.artifact_host_invalid`,
209
209
  * the sentence naming the entry and repeating none of its url). An engine without the word ignores the member and says nothing
210
210
  * of libraries; a host that declares them gates on the word.
211
+ * - `instruction_family.preview` — `WiringManifest.instructions` carries first-load `included` (`@`-included files) and `withheld`
212
+ * (lane-discovered and host-text withholds, with `blockedAfterApproval` on `outside_its_root` when Read admission still refuses after
213
+ * approval), and `Runner.previewInstructions(spec)` returns that identical object before any turn with no model call, session/read-state
214
+ * write, checkpoint, or notice (coded refusal on invalid specs). A host that prompts for external includes before Turn 1 gates on the word.
215
+ * - `brain.anthropic_oauth_bearer` — the Anthropic adapter gives a qualifying Bearer the header its protocol requires: a credential
216
+ * whose value opens with `sk-ant-oat` rides as `Authorization: Bearer <value>` from the key seat while no header bag filled that
217
+ * header (a bag's own `Authorization` stays the host's, the key then keeps `x-api-key`) or from an `Authorization` header itself,
218
+ * and a request whose one `Authorization` header is such a Bearer carries `oauth-2025-04-20` in its `anthropic-beta` list; no
219
+ * header that states a client identity is added, and a refusal is the run's terminal as the provider stated it (`auth` /
220
+ * `rate_limit` / `invalid_request` with `provider_rejected`; re-sent only as any request is). The word says the
221
+ * request's shape only: whether the endpoint accepts the credential, and whether the account may use it, it does not answer. A
222
+ * shell may offer "a subscription token can be entered" on it, never "it works".
211
223
  */
212
- export declare const ENGINE_CAPABILITIES: readonly ["inherit_env.own_credentials_withheld", "inherit_env.own_credential_values_withheld", "mods.skill_seat", "user_attachments.read_state", "task.wake", "file_history.recorded_place", "ask.workflow_member", "task.fast_mode", "user_attachments.instruction_access", "task_notification.note_key", "task.continues_from", "execution_env.workspace_sync", "session.rewind_conversation", "instruction_family.external_includes", "instruction_family.host_text", "instruction_family.local_files", "session_changes.checkpoints", "session_changes.git", "task.agent_config_dirs", "task.agent_home_dirs", "artifact_host.libraries", "file_history.unplaced_recorded_under"];
224
+ export declare const ENGINE_CAPABILITIES: readonly ["inherit_env.own_credentials_withheld", "inherit_env.own_credential_values_withheld", "mods.skill_seat", "user_attachments.read_state", "task.wake", "file_history.recorded_place", "ask.workflow_member", "task.fast_mode", "user_attachments.instruction_access", "task_notification.note_key", "task.continues_from", "execution_env.workspace_sync", "session.rewind_conversation", "instruction_family.external_includes", "instruction_family.host_text", "instruction_family.local_files", "instruction_family.preview", "session_changes.checkpoints", "session_changes.git", "task.agent_config_dirs", "task.agent_home_dirs", "artifact_host.libraries", "file_history.unplaced_recorded_under", "brain.anthropic_oauth_bearer"];
213
225
  /** One word of {@link ENGINE_CAPABILITIES}. */
214
226
  export type EngineCapability = (typeof ENGINE_CAPABILITIES)[number];
@@ -1 +1 @@
1
- export const ENGINE_CAPABILITIES = Object.freeze(["inherit_env.own_credentials_withheld", "inherit_env.own_credential_values_withheld", "mods.skill_seat", "user_attachments.read_state", "task.wake", "file_history.recorded_place", "ask.workflow_member", "task.fast_mode", "user_attachments.instruction_access", "task_notification.note_key", "task.continues_from", "execution_env.workspace_sync", "session.rewind_conversation", "instruction_family.external_includes", "instruction_family.host_text", "instruction_family.local_files", "session_changes.checkpoints", "session_changes.git", "task.agent_config_dirs", "task.agent_home_dirs", "artifact_host.libraries", "file_history.unplaced_recorded_under"]);
1
+ export const ENGINE_CAPABILITIES = Object.freeze(["inherit_env.own_credentials_withheld", "inherit_env.own_credential_values_withheld", "mods.skill_seat", "user_attachments.read_state", "task.wake", "file_history.recorded_place", "ask.workflow_member", "task.fast_mode", "user_attachments.instruction_access", "task_notification.note_key", "task.continues_from", "execution_env.workspace_sync", "session.rewind_conversation", "instruction_family.external_includes", "instruction_family.host_text", "instruction_family.local_files", "instruction_family.preview", "session_changes.checkpoints", "session_changes.git", "task.agent_config_dirs", "task.agent_home_dirs", "artifact_host.libraries", "file_history.unplaced_recorded_under", "brain.anthropic_oauth_bearer"]);