@sema-agent/core 7.70.0 → 7.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. package/CHANGELOG.md +728 -0
  2. package/dist/agents/agent-transcript-tool.js +43 -19
  3. package/dist/agents/inherited-tool-pool.d.ts +5 -1
  4. package/dist/agents/inherited-tool-pool.js +6 -0
  5. package/dist/agents/retain-ledger.js +2 -0
  6. package/dist/agents/send-message-tool.d.ts +12 -1
  7. package/dist/agents/send-message-tool.js +47 -9
  8. package/dist/agents/subagent.js +31 -10
  9. package/dist/agents/tool-filter.js +1 -2
  10. package/dist/agents/verify.js +13 -2
  11. package/dist/agents/yield-adoption.js +11 -1
  12. package/dist/brain/claude-model-id.d.ts +11 -0
  13. package/dist/brain/claude-model-id.js +3 -1
  14. package/dist/config/catalog.js +10 -1
  15. package/dist/config/defaults.d.ts +3 -0
  16. package/dist/config/defaults.js +1 -0
  17. package/dist/core/allow-entry.js +1 -2
  18. package/dist/core/ask-origin.d.ts +55 -21
  19. package/dist/core/ask-origin.js +19 -11
  20. package/dist/core/ask-question.d.ts +4 -7
  21. package/dist/core/ask-question.js +2 -4
  22. package/dist/core/ask-unresolvable-notice.d.ts +17 -3
  23. package/dist/core/ask-unresolvable-notice.js +18 -4
  24. package/dist/core/attachment-source.d.ts +1 -1
  25. package/dist/core/attachment-source.js +2 -0
  26. package/dist/core/auto-compaction.d.ts +14 -4
  27. package/dist/core/auto-compaction.js +3 -2
  28. package/dist/core/auto-strip.js +2 -0
  29. package/dist/core/caller-text.d.ts +2 -33
  30. package/dist/core/caller-text.js +2 -23
  31. package/dist/core/caller-tool-name.js +1 -2
  32. package/dist/core/canonical-json.d.ts +9 -0
  33. package/dist/core/canonical-json.js +6 -0
  34. package/dist/core/checkpoint-features.d.ts +43 -80
  35. package/dist/core/checkpoint-features.js +10 -20
  36. package/dist/core/checkpoint-generation.d.ts +89 -19
  37. package/dist/core/checkpoint-generation.js +89 -14
  38. package/dist/core/checkpoint-queries.d.ts +95 -15
  39. package/dist/core/checkpoint-queries.js +108 -7
  40. package/dist/core/checkpoint-rekey.d.ts +2 -1
  41. package/dist/core/checkpoint-rekey.js +2 -2
  42. package/dist/core/checkpoint-requirements.d.ts +7 -6
  43. package/dist/core/checkpoint-requirements.js +2 -5
  44. package/dist/core/checkpoint-row-verdict.d.ts +3 -4
  45. package/dist/core/checkpoint-row-verdict.js +20 -41
  46. package/dist/core/checkpoint-store.d.ts +65 -41
  47. package/dist/core/checkpoint-store.js +28 -14
  48. package/dist/core/command-sandbox.d.ts +5 -3
  49. package/dist/core/command-sandbox.js +17 -9
  50. package/dist/core/config-refusal-codes.d.ts +1 -1
  51. package/dist/core/config-refusal-codes.js +1 -0
  52. package/dist/core/declaration-words.d.ts +2 -1
  53. package/dist/core/declaration-words.js +13 -2
  54. package/dist/core/effective-path-target.d.ts +23 -0
  55. package/dist/core/effective-path-target.js +15 -1
  56. package/dist/core/engine-attestation.d.ts +5 -1
  57. package/dist/core/engine-attestation.js +1 -0
  58. package/dist/core/engine-capabilities.d.ts +14 -9
  59. package/dist/core/engine-capabilities.js +1 -1
  60. package/dist/core/engine-notice.d.ts +62 -32
  61. package/dist/core/engine-version.js +1 -1
  62. package/dist/core/entries-not-applied.d.ts +1 -1
  63. package/dist/core/entries-not-applied.js +1 -0
  64. package/dist/core/file-history-store.d.ts +95 -11
  65. package/dist/core/file-history-store.js +117 -19
  66. package/dist/core/gate-fold.js +13 -7
  67. package/dist/core/gate-lanes.js +9 -9
  68. package/dist/core/governance-codes.d.ts +56 -7
  69. package/dist/core/governance-codes.js +105 -7
  70. package/dist/core/grant-holder.d.ts +53 -0
  71. package/dist/core/grant-holder.js +80 -0
  72. package/dist/core/hooks.d.ts +7 -3
  73. package/dist/core/hooks.js +2 -2
  74. package/dist/core/locked-config.d.ts +7 -1
  75. package/dist/core/locked-config.js +9 -2
  76. package/dist/core/mcp-call-meta.d.ts +52 -7
  77. package/dist/core/mcp-call-meta.js +21 -2
  78. package/dist/core/mcp-host-read.d.ts +1 -1
  79. package/dist/core/mcp-server-spec.d.ts +18 -0
  80. package/dist/core/mcp-server-spec.js +1 -0
  81. package/dist/core/mcp.js +2 -2
  82. package/dist/core/member-outcome.d.ts +22 -1
  83. package/dist/core/member-outcome.js +18 -6
  84. package/dist/core/memory-engine/delegation-settlement.js +5 -5
  85. package/dist/core/memory-engine/engine.js +19 -19
  86. package/dist/core/memory-engine/file-backend.d.ts +7 -2
  87. package/dist/core/memory-engine/file-backend.js +14 -12
  88. package/dist/core/memory-engine/frontmatter.js +1 -1
  89. package/dist/core/memory-engine/index.d.ts +1 -0
  90. package/dist/core/memory-engine/index.js +1 -0
  91. package/dist/core/memory-engine/layout.d.ts +34 -9
  92. package/dist/core/memory-engine/layout.js +36 -19
  93. package/dist/core/memory-engine/memory-deployment.js +8 -8
  94. package/dist/core/memory-engine/mount-failed-notice.d.ts +8 -5
  95. package/dist/core/memory-engine/mount-failed-notice.js +5 -2
  96. package/dist/core/mode-policy.d.ts +5 -0
  97. package/dist/core/mode-policy.js +6 -0
  98. package/dist/core/mods/host.d.ts +2 -1
  99. package/dist/core/mods/host.js +7 -6
  100. package/dist/core/mods/kernel/index.d.ts +1 -1
  101. package/dist/core/mods/kernel/index.js +1 -1
  102. package/dist/core/mods/kernel/registration.d.ts +5 -2
  103. package/dist/core/mods/kernel/registration.js +19 -3
  104. package/dist/core/mods/package.d.ts +12 -1
  105. package/dist/core/mods/package.js +36 -9
  106. package/dist/core/mods/stations.d.ts +7 -1
  107. package/dist/core/mods/stations.js +17 -3
  108. package/dist/core/mods/teammate-stations.d.ts +4 -1
  109. package/dist/core/mods/teammate-stations.js +1 -1
  110. package/dist/core/native-signal.d.ts +13 -0
  111. package/dist/core/native-signal.js +18 -0
  112. package/dist/core/park-resumability.d.ts +16 -14
  113. package/dist/core/park-resumability.js +9 -4
  114. package/dist/core/path-rule-binding.js +1 -1
  115. package/dist/core/permission-rule-model.d.ts +11 -5
  116. package/dist/core/permission-rule-model.js +5 -3
  117. package/dist/core/permission-rule-org.js +1 -1
  118. package/dist/core/permission-rule-provider.d.ts +5 -1
  119. package/dist/core/permission-rule-provider.js +6 -1
  120. package/dist/core/permission-rule-session.d.ts +35 -5
  121. package/dist/core/permission-rule-session.js +32 -1
  122. package/dist/core/permission-rule-store.d.ts +5 -1
  123. package/dist/core/permission-rule-store.js +28 -5
  124. package/dist/core/permission-rules.d.ts +2 -2
  125. package/dist/core/permission-rules.js +2 -3
  126. package/dist/core/principal-name.d.ts +12 -0
  127. package/dist/core/principal-name.js +6 -2
  128. package/dist/core/read-root-grant-screen.d.ts +7 -6
  129. package/dist/core/read-root-grant-screen.js +7 -8
  130. package/dist/core/remote-env.d.ts +42 -8
  131. package/dist/core/resume-config-judge.js +1 -1
  132. package/dist/core/resume-startup-cause.d.ts +19 -4
  133. package/dist/core/resume-startup-cause.js +25 -6
  134. package/dist/core/rewind-conversation.d.ts +4 -0
  135. package/dist/core/rewrite-rejudge.d.ts +9 -1
  136. package/dist/core/rewrite-rejudge.js +11 -1
  137. package/dist/core/rule-offer-read.js +3 -2
  138. package/dist/core/runner/assemble-result.d.ts +21 -11
  139. package/dist/core/runner/assemble-result.js +24 -4
  140. package/dist/core/runner/boundary-reminders.d.ts +104 -0
  141. package/dist/core/runner/boundary-reminders.js +108 -0
  142. package/dist/core/runner/branch-writeback.d.ts +21 -7
  143. package/dist/core/runner/branch-writeback.js +44 -6
  144. package/dist/core/runner/command-sandbox-frame.js +2 -1
  145. package/dist/core/runner/compact-session.js +11 -4
  146. package/dist/core/runner/constraint-layers.d.ts +24 -5
  147. package/dist/core/runner/constraint-layers.js +21 -2
  148. package/dist/core/runner/continuation-gate.js +3 -1
  149. package/dist/core/runner/contracts.d.ts +83 -13
  150. package/dist/core/runner/cross-boundary-lane.js +2 -1
  151. package/dist/core/runner/delegation-owner.d.ts +246 -45
  152. package/dist/core/runner/delegation-owner.js +237 -63
  153. package/dist/core/runner/expire-settle.d.ts +17 -0
  154. package/dist/core/runner/expire-settle.js +8 -2
  155. package/dist/core/runner/file-history-request.d.ts +4 -3
  156. package/dist/core/runner/file-history-request.js +4 -1
  157. package/dist/core/runner/file-history-restore.d.ts +11 -3
  158. package/dist/core/runner/file-history-restore.js +11 -3
  159. package/dist/core/runner/gate-exit.d.ts +22 -1
  160. package/dist/core/runner/gate-exit.js +12 -14
  161. package/dist/core/runner/nested-memory-content.js +1 -1
  162. package/dist/core/runner/nested-memory-lane.d.ts +10 -2
  163. package/dist/core/runner/nested-memory-lane.js +29 -8
  164. package/dist/core/runner/own-model-money-door.d.ts +13 -0
  165. package/dist/core/runner/own-model-money-door.js +17 -0
  166. package/dist/core/runner/park-commit.d.ts +4 -2
  167. package/dist/core/runner/park-commit.js +2 -1
  168. package/dist/core/runner/permission-rule-lanes.d.ts +4 -0
  169. package/dist/core/runner/permission-rule-lanes.js +7 -0
  170. package/dist/core/runner/person-path-rows.js +1 -1
  171. package/dist/core/runner/placement-fence.d.ts +8 -2
  172. package/dist/core/runner/placement-fence.js +8 -3
  173. package/dist/core/runner/policy-throw.d.ts +3 -2
  174. package/dist/core/runner/policy-throw.js +2 -2
  175. package/dist/core/runner/prepare-acquire-reconcile.d.ts +23 -14
  176. package/dist/core/runner/prepare-acquire-reconcile.js +33 -15
  177. package/dist/core/runner/prepare-artifact.d.ts +14 -1
  178. package/dist/core/runner/prepare-artifact.js +7 -2
  179. package/dist/core/runner/prepare-ask-lane.d.ts +8 -0
  180. package/dist/core/runner/prepare-ask-lane.js +14 -5
  181. package/dist/core/runner/prepare-boundary-parks.js +5 -4
  182. package/dist/core/runner/prepare-config-doors.d.ts +9 -4
  183. package/dist/core/runner/prepare-config-doors.js +25 -8
  184. package/dist/core/runner/prepare-defer-classify.d.ts +8 -4
  185. package/dist/core/runner/prepare-defer-classify.js +6 -6
  186. package/dist/core/runner/prepare-execution-env.d.ts +4 -1
  187. package/dist/core/runner/prepare-execution-env.js +8 -3
  188. package/dist/core/runner/prepare-file-history.d.ts +26 -0
  189. package/dist/core/runner/prepare-file-history.js +15 -1
  190. package/dist/core/runner/prepare-inherited-gate.d.ts +8 -3
  191. package/dist/core/runner/prepare-inherited-gate.js +9 -2
  192. package/dist/core/runner/prepare-leg-adoption.d.ts +2 -2
  193. package/dist/core/runner/prepare-park-ask.js +8 -5
  194. package/dist/core/runner/prepare-policy-chain.d.ts +5 -0
  195. package/dist/core/runner/prepare-policy-chain.js +18 -7
  196. package/dist/core/runner/prepare-prompt-assembly.d.ts +3 -0
  197. package/dist/core/runner/prepare-prompt-assembly.js +4 -3
  198. package/dist/core/runner/prepare-suspend-saga.d.ts +4 -1
  199. package/dist/core/runner/prepare-suspend-saga.js +19 -5
  200. package/dist/core/runner/prepare-task.d.ts +2 -5
  201. package/dist/core/runner/prepare-task.js +71 -26
  202. package/dist/core/runner/prepare-turn-wiring.js +7 -5
  203. package/dist/core/runner/prepare-workspace-restore.js +59 -28
  204. package/dist/core/runner/read-root-grant.d.ts +1 -0
  205. package/dist/core/runner/read-root-grant.js +1 -2
  206. package/dist/core/runner/resume-admission.d.ts +3 -0
  207. package/dist/core/runner/resume-admission.js +6 -4
  208. package/dist/core/runner/resume-apply.js +7 -5
  209. package/dist/core/runner/resume-claim.d.ts +2 -2
  210. package/dist/core/runner/resume-claim.js +4 -4
  211. package/dist/core/runner/resume-policy-outcome.d.ts +1 -1
  212. package/dist/core/runner/resume-policy-outcome.js +6 -4
  213. package/dist/core/runner/resume-preflight.d.ts +3 -0
  214. package/dist/core/runner/resume-preflight.js +10 -3
  215. package/dist/core/runner/rewind-conversation.js +11 -4
  216. package/dist/core/runner/rewind-files.js +29 -14
  217. package/dist/core/runner/rewind-outcome.d.ts +27 -0
  218. package/dist/core/runner/rewind-outcome.js +14 -0
  219. package/dist/core/runner/run-attachment-seats.js +2 -1
  220. package/dist/core/runner/run-clock-and-content.js +2 -0
  221. package/dist/core/runner/run-identity-wiring.js +2 -0
  222. package/dist/core/runner/run-leg.js +11 -1
  223. package/dist/core/runner/run-notification-lane.d.ts +3 -0
  224. package/dist/core/runner/run-notification-lane.js +2 -2
  225. package/dist/core/runner/run-settle-and-teardown.d.ts +4 -2
  226. package/dist/core/runner/run-settle-and-teardown.js +52 -40
  227. package/dist/core/runner/run-stop-and-final-verify.d.ts +4 -0
  228. package/dist/core/runner/run-stop-and-final-verify.js +5 -4
  229. package/dist/core/runner/run-terminal-adoption.d.ts +1 -1
  230. package/dist/core/runner/run-terminal-adoption.js +3 -3
  231. package/dist/core/runner/run-turn-boundary.js +7 -0
  232. package/dist/core/runner/runtask.d.ts +7 -4
  233. package/dist/core/runner/runtask.js +18 -9
  234. package/dist/core/runner/session-call-grant-station.d.ts +64 -0
  235. package/dist/core/runner/session-call-grant-station.js +119 -0
  236. package/dist/core/runner/session-file-state-replay.js +2 -2
  237. package/dist/core/runner/session-prompt-seats.d.ts +95 -0
  238. package/dist/core/runner/session-prompt-seats.js +62 -0
  239. package/dist/core/runner/session-rule-policy.js +1 -1
  240. package/dist/core/runner/session-write-ledger.d.ts +8 -0
  241. package/dist/core/runner/session-write-ledger.js +16 -0
  242. package/dist/core/runner/side-call-account.js +5 -1
  243. package/dist/core/runner/stop-tail-notice.d.ts +7 -0
  244. package/dist/core/runner/stop-tail-notice.js +23 -8
  245. package/dist/core/runner/stream-reap.js +4 -2
  246. package/dist/core/runner/stream-settle-backstop.d.ts +1 -1
  247. package/dist/core/runner/stream-settle-backstop.js +17 -18
  248. package/dist/core/runner/terminal-account.js +17 -8
  249. package/dist/core/runner/terminal-projection.d.ts +3 -2
  250. package/dist/core/runner/terminal-projection.js +1 -1
  251. package/dist/core/runner/tool-turn-repair-seat.d.ts +2 -2
  252. package/dist/core/runner/tool-turn-repair-seat.js +12 -7
  253. package/dist/core/runner/turn-attachments.d.ts +22 -1
  254. package/dist/core/runner/turn-attachments.js +20 -3
  255. package/dist/core/runner-deps.d.ts +6 -2
  256. package/dist/core/secret-env.d.ts +26 -6
  257. package/dist/core/secret-env.js +6 -6
  258. package/dist/core/session-call-grant-screen.d.ts +58 -0
  259. package/dist/core/session-call-grant-screen.js +18 -0
  260. package/dist/core/session-call-grant.d.ts +93 -0
  261. package/dist/core/session-call-grant.js +524 -0
  262. package/dist/core/session-checkout.d.ts +3 -0
  263. package/dist/core/session-checkout.js +8 -3
  264. package/dist/core/session-policy-store.d.ts +14 -0
  265. package/dist/core/session-policy-store.js +16 -2
  266. package/dist/core/session-store.d.ts +18 -1
  267. package/dist/core/session-store.js +20 -4
  268. package/dist/core/session.d.ts +36 -4
  269. package/dist/core/shared-artifact-reads.d.ts +93 -0
  270. package/dist/core/shared-artifact-reads.js +94 -0
  271. package/dist/core/skill-grant.js +1 -1
  272. package/dist/core/skills-directory.d.ts +9 -45
  273. package/dist/core/skills-directory.js +9 -722
  274. package/dist/core/spend-account.js +3 -0
  275. package/dist/core/store-contracts/checkpoint-store-contract.d.ts +22 -4
  276. package/dist/core/store-contracts/checkpoint-store-contract.js +363 -29
  277. package/dist/core/store-contracts/file-history-store-contract.d.ts +11 -3
  278. package/dist/core/store-contracts/file-history-store-contract.js +62 -2
  279. package/dist/core/store-contracts/grant-fixture.d.ts +52 -0
  280. package/dist/core/store-contracts/grant-fixture.js +84 -0
  281. package/dist/core/store-contracts/session-repo-contract.js +18 -0
  282. package/dist/core/store-contracts/session-store-contract.d.ts +15 -1
  283. package/dist/core/store-contracts/session-store-contract.js +211 -2
  284. package/dist/core/store-contracts/workflow-journal-store-contract.js +47 -8
  285. package/dist/core/suspend-lane-reasons.d.ts +13 -0
  286. package/dist/core/suspend-lane-reasons.js +5 -0
  287. package/dist/core/synthetic-read-verdict.d.ts +5 -3
  288. package/dist/core/synthetic-read-verdict.js +1 -1
  289. package/dist/core/task-limits.d.ts +15 -0
  290. package/dist/core/task-notification.d.ts +33 -7
  291. package/dist/core/task-notification.js +34 -9
  292. package/dist/core/task-registry-agent.d.ts +1 -1
  293. package/dist/core/task-registry-agent.js +18 -7
  294. package/dist/core/task-registry-shared.d.ts +29 -4
  295. package/dist/core/task-registry-shared.js +7 -0
  296. package/dist/core/task-registry.d.ts +21 -1
  297. package/dist/core/task-registry.js +36 -9
  298. package/dist/core/task-result.d.ts +55 -1
  299. package/dist/core/task-spec.d.ts +17 -3
  300. package/dist/core/terminal-cause.d.ts +68 -5
  301. package/dist/core/tool-catalog-entries.js +1 -1
  302. package/dist/core/tool-check-reading.js +2 -1
  303. package/dist/core/tool-errors.js +1 -0
  304. package/dist/core/tool-list-grammar.d.ts +0 -47
  305. package/dist/core/tool-list-grammar.js +1 -75
  306. package/dist/core/tool-model-gate.d.ts +7 -11
  307. package/dist/core/tool-model-gate.js +5 -8
  308. package/dist/core/tool-name-aliases.js +2 -3
  309. package/dist/core/tool-name-readings.d.ts +4 -0
  310. package/dist/core/tool-name-readings.js +1 -0
  311. package/dist/core/tool-policy.d.ts +46 -4
  312. package/dist/core/tool-policy.js +47 -18
  313. package/dist/core/tool-result-store.d.ts +0 -24
  314. package/dist/core/tool-result-store.js +1 -36
  315. package/dist/core/tool-spec.d.ts +8 -4
  316. package/dist/core/untrusted-egress.js +2 -2
  317. package/dist/core/untrusted-text.d.ts +8 -0
  318. package/dist/core/untrusted-text.js +14 -0
  319. package/dist/core/user-attachment.d.ts +16 -1
  320. package/dist/core/user-attachment.js +42 -18
  321. package/dist/core/wiring-manifest.d.ts +4 -9
  322. package/dist/core/wiring-manifest.js +1 -1
  323. package/dist/core/workflow-journal-store.d.ts +55 -8
  324. package/dist/core/workflow-journal-store.js +34 -10
  325. package/dist/core/workflow-run-store-contract.js +56 -1
  326. package/dist/core/workflow-run-store.d.ts +43 -19
  327. package/dist/core/workflow-run-store.js +17 -2
  328. package/dist/engine/execution-env/node-execution-env.d.ts +3 -0
  329. package/dist/engine/execution-env/node-execution-env.js +4 -0
  330. package/dist/engine/harness/agent-harness.d.ts +10 -5
  331. package/dist/engine/harness/agent-harness.js +12 -4
  332. package/dist/engine/harness/types.d.ts +18 -0
  333. package/dist/engine/llm/tool-turns.d.ts +1 -1
  334. package/dist/engine/llm/types.d.ts +5 -4
  335. package/dist/engine/session/memory-repo.d.ts +15 -3
  336. package/dist/engine/session/memory-repo.js +21 -3
  337. package/dist/engine/session/memory-storage.d.ts +5 -0
  338. package/dist/engine/session/memory-storage.js +8 -3
  339. package/dist/engine/session/repo-utils.d.ts +9 -0
  340. package/dist/engine/session/repo-utils.js +14 -0
  341. package/dist/engine/session/storage-base.d.ts +20 -7
  342. package/dist/engine/session/storage-base.js +13 -1
  343. package/dist/index.d.ts +37 -19
  344. package/dist/index.js +30 -15
  345. package/dist/internal/harness.d.ts +1 -1
  346. package/dist/internal/harness.js +1 -1
  347. package/dist/orchestration/run-workflow-tool.d.ts +13 -1
  348. package/dist/orchestration/run-workflow-tool.js +101 -32
  349. package/dist/orchestration/workflow-park-adoption.d.ts +309 -92
  350. package/dist/orchestration/workflow-park-adoption.js +588 -323
  351. package/dist/orchestration/workflow-tree-id.d.ts +66 -0
  352. package/dist/orchestration/workflow-tree-id.js +66 -0
  353. package/dist/orchestration/workflow-types.d.ts +90 -11
  354. package/dist/orchestration/workflow-types.js +10 -1
  355. package/dist/orchestration/workflow.d.ts +30 -4
  356. package/dist/orchestration/workflow.js +424 -114
  357. package/dist/prompt-assembly/catalog/constitution.js +5 -1
  358. package/dist/prompt-assembly/catalog/core-behavior.d.ts +3 -4
  359. package/dist/prompt-assembly/catalog/core-behavior.js +61 -22
  360. package/dist/prompt-assembly/catalog/environment.js +2 -2
  361. package/dist/prompt-assembly/catalog/events.d.ts +16 -0
  362. package/dist/prompt-assembly/catalog/events.js +2 -0
  363. package/dist/prompt-assembly/catalog/locales/zh-Hans/core-behavior.js +72 -44
  364. package/dist/prompt-assembly/catalog/locales/zh-Hans/environment.js +2 -2
  365. package/dist/prompt-assembly/catalog/locales/zh-Hans/events.js +2 -0
  366. package/dist/prompt-assembly/catalog/schema.d.ts +5 -1
  367. package/dist/prompt-assembly/catalog/schema.js +2 -0
  368. package/dist/prompt-assembly/catalog/sections.js +3 -14
  369. package/dist/prompt-assembly/event-registry.js +2 -0
  370. package/dist/prompt-assembly/select.js +1 -0
  371. package/dist/prompt-assembly/tool-catalog.d.ts +10 -7
  372. package/dist/prompt-assembly/tool-catalog.js +21 -7
  373. package/dist/prompt-assembly/types.d.ts +3 -0
  374. package/dist/prompts/default.d.ts +4 -1
  375. package/dist/prompts/default.js +6 -0
  376. package/dist/stores/file/checkpoint-store.d.ts +11 -10
  377. package/dist/stores/file/checkpoint-store.js +36 -10
  378. package/dist/stores/file/file-history-store.d.ts +6 -0
  379. package/dist/stores/file/file-history-store.js +21 -4
  380. package/dist/stores/file/fs-atomic.d.ts +1 -1
  381. package/dist/stores/file/index.d.ts +14 -4
  382. package/dist/stores/file/index.js +21 -5
  383. package/dist/stores/file/process-anchor.d.ts +9 -1
  384. package/dist/stores/file/session-policy-store.js +2 -17
  385. package/dist/stores/file/session-store.d.ts +27 -0
  386. package/dist/stores/file/session-store.js +81 -9
  387. package/dist/stores/file/workflow-journal-store.d.ts +14 -4
  388. package/dist/stores/file/workflow-journal-store.js +32 -24
  389. package/dist/stores/file/workflow-run-store.d.ts +15 -4
  390. package/dist/stores/file/workflow-run-store.js +76 -0
  391. package/dist/tools/artifact/artifact-tool.d.ts +10 -3
  392. package/dist/tools/artifact/artifact-tool.js +16 -1
  393. package/dist/tools/fs/bash-program-position.d.ts +10 -4
  394. package/dist/tools/fs/bash-program-position.js +11 -8
  395. package/dist/tools/fs/bash-readonly-classifier.d.ts +3 -1
  396. package/dist/tools/fs/bash-readonly-classifier.js +9 -2
  397. package/dist/tools/fs/find-actions.d.ts +30 -16
  398. package/dist/tools/fs/find-actions.js +272 -19
  399. package/dist/tools/fs/fs-bash.js +8 -5
  400. package/dist/tools/fs/fs-shared.d.ts +0 -29
  401. package/dist/tools/fs/fs-shared.js +0 -5
  402. package/dist/tools/fs/fs-write.js +2 -1
  403. package/dist/tools/fs/read-deny.d.ts +6 -1
  404. package/dist/tools/fs/read-deny.js +6 -1
  405. package/dist/tools/fs/read-floor.d.ts +6 -0
  406. package/dist/tools/fs/read-floor.js +5 -1
  407. package/dist/tools/fs/removal-actions.d.ts +43 -0
  408. package/dist/tools/fs/removal-actions.js +25 -0
  409. package/dist/tools/fs/removal-targets.d.ts +2 -21
  410. package/dist/tools/fs/removal-targets.js +2 -3
  411. package/dist/tools/fs/safety.d.ts +37 -1
  412. package/dist/tools/fs/safety.js +52 -0
  413. package/dist/tools/fs/shell-climb.d.ts +46 -0
  414. package/dist/tools/fs/shell-climb.js +79 -0
  415. package/dist/tools/fs/shell-read-check.js +47 -19
  416. package/dist/tools/fs/shell-read-establish.js +36 -22
  417. package/dist/tools/fs/shell-read-judge.d.ts +10 -2
  418. package/dist/tools/fs/shell-read-judge.js +4 -4
  419. package/dist/tools/fs/shell-read-plan.d.ts +3 -0
  420. package/dist/tools/fs/shell-read-plan.js +1 -1
  421. package/dist/tools/fs/shell-read-workdir.js +3 -2
  422. package/dist/tools/fs/shell-read-write-targets.d.ts +4 -3
  423. package/dist/tools/fs/shell-read-write-targets.js +3 -0
  424. package/package.json +2 -2
  425. package/test/export-surface.snapshot.json +169 -15
  426. package/wire-changes/core-stores-sql@7.71.0.json +40 -0
  427. package/wire-changes/core@7.71.0.json +5827 -0
  428. package/wire-changes/mods-kernel@7.71.0.json +52 -0
  429. package/wire-changes/primitives@7.71.0.json +473 -0
  430. package/wire-changes/wiki-gate@7.71.0.json +40 -0
  431. package/dist/core/frontmatter-fence.d.ts +0 -10
  432. package/dist/core/frontmatter-fence.js +0 -6
  433. package/dist/core/permission-rule-syntax.d.ts +0 -46
  434. package/dist/core/permission-rule-syntax.js +0 -52
@@ -1,6 +1,7 @@
1
1
  import { Type } from "typebox";
2
2
  import { defineTool, errorResult } from "../core/tools.js";
3
3
  import { governanceBaselineError, receiveGovernanceBaseline } from "./governance-baseline-validity.js";
4
+ import { isWorkflowRunId, WORKFLOW_RUN_ID_CHARACTERS } from "../core/workflow-run-store.js";
4
5
  import { occupantStamp } from "../core/task-registry-shared.js";
5
6
  import { workflowRecordPickupOf } from "./workflow-record-artifact.js";
6
7
  import { admitsBackgroundLaunch, oweTerminalDelivery, resolveCompletionSink } from "../core/task-notification.js";
@@ -11,9 +12,9 @@ import { LAUNCH_RECEIPT_OWN_WORDS_CLAUSE, launchReceiptNoQuoteClause } from "../
11
12
  import { createHash, randomUUID } from "node:crypto";
12
13
  import { startWorkflow, WORKFLOW_STORE_WAIT_BOUND_MS, takeWorkflowResumeClaim, releaseWorkflowResumeClaim } from "./workflow.js";
13
14
  import { assertJournalStoreGivesClaimsBack, journalKeepsLaunches } from "../core/workflow-journal-store.js";
14
- import { boundedStoreRead, createWorkflowParkAdopter, otherWaitingLine, readWorkflowRunChain, registerWorkflowParkAdopter, workflowTreeOverBoundSentence } from "./workflow-park-adoption.js";
15
+ import { boundedStoreRead, createWorkflowParkAdopter, otherWaitingLine, readWorkflowRunTree, readWorkflowRunTreeWithin, registerWorkflowParkAdopter, workflowLineForkReason, workflowLineTailOf, workflowTreeOverBoundSentence } from "./workflow-park-adoption.js";
15
16
  import { settledRunOf } from "../core/workflow-settled-run.js";
16
- import { WORKFLOW_AGENT_PARKED_ERROR_CODE, WORKFLOW_STEP_ASKED_AGAIN, parkedAgentsOf, workflowMembersOf, workflowParkHolderOf } from "./workflow-types.js";
17
+ import { WORKFLOW_AGENT_PARKED_ERROR_CODE, WORKFLOW_STEP_ASKED_AGAIN, firstFailedAgentCodeOf, parkedAgentsOf, workflowMembersOf, workflowParkHolderOf } from "./workflow-types.js";
17
18
  import { memberLedgerClause, memberRefusalsText } from "../core/member-outcome.js";
18
19
  import { checkpointStoreOfSeat } from "../core/checkpoint-seat.js";
19
20
  import { buildWorkflowPrimitives } from "./workflow-primitives.js";
@@ -48,7 +49,7 @@ import { ANONYMOUS_SCOPE, callScopeOf } from "../core/isolation-scope.js";
48
49
  import { readKeptLaunch } from "../core/workflow-journal-store.js";
49
50
  import { isThinkingLevel } from "../brain/reasoning.js";
50
51
  import { inlineUntrusted } from "../core/untrusted-text.js";
51
- import { claimHeldOf, HOST_FOLD_INPUTS, hostFoldStampOf, notContinuedRefusalOf, storeErrorClassOf, storeFaultReport } from "./workflow-park-adoption.js";
52
+ import { answerRecordClaimHolder, claimHeldOf, HOST_FOLD_INPUTS, hostFoldStampOf, notContinuedRefusalOf, storeErrorClassOf, storeFaultReport } from "./workflow-park-adoption.js";
52
53
  import { createSafeNotifier, observeThenableRejection } from "../core/safe-notify.js";
53
54
  export const RUN_WORKFLOW_TOOL_NAME = "Workflow";
54
55
  const CATALOG_HELD = "workflow.catalog_held";
@@ -168,12 +169,15 @@ async function heldStepOf(run, store) {
168
169
  return undefined;
169
170
  if (store === undefined)
170
171
  return {};
171
- const chain = await readWorkflowRunChain(store, inherited.parkedBy, run.scope, boundedStoreRead(WORKFLOW_STORE_WAIT_BOUND_MS));
172
- if (typeof chain === "string")
172
+ const tree = await readWorkflowRunTree(store, inherited.parkedBy, run.scope);
173
+ if (typeof tree === "string")
173
174
  return {};
174
- const holder = workflowParkHolderOf(inherited.token, [chain.root, ...chain.successors]);
175
+ const holder = workflowParkHolderOf(inherited.token, tree);
175
176
  return holder.kind === "held" ? { holder: holder.runId } : {};
176
177
  }
178
+ export function workflowNotifiedCodeOf(run) {
179
+ return run.errorCode === WORKFLOW_AGENT_PARKED_ERROR_CODE ? WORKFLOW_AGENT_PARKED_ERROR_CODE : firstFailedAgentCodeOf(run.agents);
180
+ }
177
181
  const SCRIPT_ERROR_CODES = new Set([
178
182
  "workflow.script_error",
179
183
  "workflow.parked_call_changed",
@@ -219,7 +223,8 @@ function continuedBeforeSentence(run) {
219
223
  }
220
224
  function failureSummaryOf(err, runId, run, held) {
221
225
  const codeWord = readMember(err, "code");
222
- const code = typeof codeWord === "string" ? codeWord : undefined;
226
+ const thrownCode = typeof codeWord === "string" && codeWord !== WORKFLOW_AGENT_PARKED_ERROR_CODE ? codeWord : undefined;
227
+ const code = run !== undefined ? run.errorCode : thrownCode;
223
228
  const refused = code === WORKFLOW_AGENT_PARKED_ERROR_CODE ? run?.decisions?.find((d) => d.result === "refused") : undefined;
224
229
  if (refused !== undefined) {
225
230
  const label = run?.agents.find((a) => a.callKey === refused.callKey)?.label ?? `#${refused.ordinal}`;
@@ -327,6 +332,26 @@ function claimWithin(p, late) {
327
332
  });
328
333
  });
329
334
  }
335
+ async function takeToolResumeClaim(journal, args, what, runId, reportStoreFault) {
336
+ const who = what === "record" ? "record of a person's answer" : what;
337
+ let verdict;
338
+ try {
339
+ verdict = await claimWithin(takeWorkflowResumeClaim(journal, args), (late) => void (late.granted ? releaseWorkflowResumeClaim(journal, args, late.fallback) : undefined));
340
+ }
341
+ catch (err) {
342
+ reportStoreFault?.(`the ${who}'s resume claim on workflow run ${JSON.stringify(runId)} could not be taken`, err);
343
+ return { refused: `the ${who}'s resume claim could not be taken (the journal store threw ${storeErrorClassOf(err)}) — not started` };
344
+ }
345
+ if (verdict === "timeout")
346
+ return { refused: `the ${who}'s resume claim was not answered within ${WORKFLOW_STORE_WAIT_BOUND_MS}ms — not started` };
347
+ if (verdict.granted)
348
+ return { granted: { args, fallback: verdict.fallback } };
349
+ const held = claimHeldOf(verdict);
350
+ if (held.claimLapseUnreadable === true) {
351
+ reportStoreFault?.(`the journal store's refusal of the ${who}'s resume claim on workflow run ${JSON.stringify(runId)} answered a remaining time that does not read`, new Error("remainingMs is not a whole number of milliseconds from 1 to 86400000"));
352
+ }
353
+ return { held };
354
+ }
330
355
  function launchRefusalText(content) {
331
356
  const text = typeof content === "string" ? content : Array.isArray(content) ? content.map((c) => (c !== null && typeof c === "object" && typeof c.text === "string" ? c.text : "")).join("") : "";
332
357
  try {
@@ -785,8 +810,15 @@ async function mountRunWorkflowTool(d) {
785
810
  const subject = workflowCallSubject(preparedArgs);
786
811
  const scriptArgs = rawArgs.args;
787
812
  const rawResume = rawArgs.resumeFromRunId;
788
- const resumeFromRunId = continuation !== undefined ? continuation.fromRunId : typeof rawResume === "string" && rawResume.length > 0 ? rawResume : undefined;
789
- const held = continuation === undefined ? takeHeldForCall(resumeFromRunId, ctx.toolCallId) : undefined;
813
+ if (continuation === undefined && rawResume !== undefined && !isWorkflowRunId(rawResume)) {
814
+ return structuredError({
815
+ error: `resumeFromRunId ${JSON.stringify(String(rawResume).slice(0, 80))} is not a workflow run id — a run id is ${WORKFLOW_RUN_ID_CHARACTERS}. To continue a run, pass the runId its Workflow call returned (the tool result and the completion notification name it); to start fresh, leave resumeFromRunId out. Not started.`,
816
+ code: "config.invalid_argument",
817
+ });
818
+ }
819
+ const namedResume = continuation !== undefined ? continuation.fromRunId : rawResume;
820
+ const held = continuation === undefined ? takeHeldForCall(namedResume, ctx.toolCallId) : undefined;
821
+ let resumeFromRunId = namedResume;
790
822
  if (held !== undefined && "refusal" in held)
791
823
  return structuredError(held.refusal);
792
824
  const sourceTaskId = ctx.taskId ?? d.sourceTaskId;
@@ -883,21 +915,34 @@ async function mountRunWorkflowTool(d) {
883
915
  const parkStore = checkpointStoreOfSeat(childParkSeat);
884
916
  const resumeScope = runScope;
885
917
  const heldDecisionIds = held !== undefined && "decisions" in held ? held.decisions.map((x) => x.decisionId) : [];
918
+ const within = boundedStoreRead(WORKFLOW_STORE_WAIT_BOUND_MS);
886
919
  const modelLineRefusal = async () => {
887
- if (continuation !== undefined || resumeFromRunId === undefined || d.store === undefined)
920
+ if (continuation !== undefined || namedResume === undefined || d.store === undefined)
888
921
  return undefined;
889
- const line = await otherWaitingLine(d.store, parkStore, resumeFromRunId, resumeScope, boundedStoreRead(WORKFLOW_STORE_WAIT_BOUND_MS));
922
+ const tree = await readWorkflowRunTreeWithin(d.store, namedResume, resumeScope, within);
923
+ if (tree === "unreadable")
924
+ return `the records of workflow run "${inlineUntrusted(namedResume, 64)}"'s workflow could not be read (the run store did not answer, or holds no record of that run under this scope) — not started; check the run id, or resume again once the run store answers`;
925
+ if (tree === "over_bound")
926
+ return workflowTreeOverBoundSentence(namedResume);
927
+ let target = namedResume;
928
+ if (heldDecisionIds.length === 0) {
929
+ const tail = workflowLineTailOf(tree, namedResume);
930
+ if (tail.kind === "fork")
931
+ return `workflow run "${inlineUntrusted(namedResume, 64)}" is not continued: ${workflowLineForkReason(tail.leaves.map((l) => inlineUntrusted(l, 64)))}. Nothing was started.`;
932
+ target = tail.runId;
933
+ }
934
+ const line = await otherWaitingLine(tree, parkStore, target, within);
890
935
  if (line.kind === "unreadable")
891
- return `the records of workflow run "${inlineUntrusted(resumeFromRunId, 64)}"'s workflow, or one of its approval cards, could not be read — not started; resume again once the run store answers`;
892
- if (line.kind === "over_bound")
893
- return workflowTreeOverBoundSentence(resumeFromRunId);
936
+ return `an approval card of workflow run "${inlineUntrusted(target, 64)}"'s workflow could not be read — not started; resume again once the checkpoint store answers`;
894
937
  if (line.kind === "waiting")
895
- return notContinuedRefusalOf(resumeFromRunId, "waiting_elsewhere", { waiting: line.lines, decisionIds: heldDecisionIds });
896
- return { root: line.root };
938
+ return notContinuedRefusalOf(namedResume, "waiting_elsewhere", { waiting: line.lines, decisionIds: heldDecisionIds });
939
+ return { root: line.root, target };
897
940
  };
898
941
  const firstLine = await modelLineRefusal();
899
942
  if (typeof firstLine === "string")
900
943
  return structuredError(firstLine);
944
+ if (firstLine !== undefined)
945
+ resumeFromRunId = firstLine.target;
901
946
  const claimKey = continuation !== undefined ? continuation.claimKey : firstLine?.root;
902
947
  let sourceLaunch = continuation?.launch;
903
948
  if (continuation === undefined && resumeFromRunId !== undefined && journalKeepsLaunches(d.journalStore)) {
@@ -942,24 +987,16 @@ async function mountRunWorkflowTool(d) {
942
987
  if (resumeFromRunId !== undefined && claimKey !== undefined && d.journalStore !== undefined && launchRunId !== undefined) {
943
988
  const journal = d.journalStore;
944
989
  const args = { sourceRunId: claimKey, newRunId: launchRunId, scope: resumeScope };
945
- let verdict;
946
- try {
947
- verdict = await claimWithin(takeWorkflowResumeClaim(journal, args), (late) => void (late.granted ? releaseWorkflowResumeClaim(journal, args, late.fallback) : undefined));
948
- }
949
- catch (err) {
950
- reportStoreFault?.(`the ${continuation !== undefined ? "continuation" : "resume"}'s resume claim on workflow run ${JSON.stringify(resumeFromRunId)} could not be taken`, err);
951
- return structuredError(`the ${continuation !== undefined ? "continuation" : "resume"}'s resume claim could not be taken (the journal store threw ${storeErrorClassOf(err)}) — not started`);
952
- }
953
- if (verdict === "timeout")
954
- return structuredError(`the ${continuation !== undefined ? "continuation" : "resume"}'s resume claim was not answered within ${WORKFLOW_STORE_WAIT_BOUND_MS}ms — not started`);
955
- if (!verdict.granted) {
956
- const held = claimHeldOf(verdict);
990
+ const taken = await takeToolResumeClaim(journal, args, continuation !== undefined ? "continuation" : "resume", resumeFromRunId, reportStoreFault);
991
+ if ("refused" in taken)
992
+ return structuredError(taken.refused);
993
+ if ("held" in taken) {
957
994
  if (continuation === undefined)
958
- return structuredError(notContinuedRefusalOf(resumeFromRunId, "continuing_elsewhere", { ...held, decisionIds: heldDecisionIds }));
959
- continuation.onClaimHeld(held);
995
+ return structuredError(notContinuedRefusalOf(namedResume ?? resumeFromRunId, "continuing_elsewhere", { ...taken.held, decisionIds: heldDecisionIds }));
996
+ continuation.onClaimHeld(taken.held);
960
997
  return structuredError("another run already holds this run's resume claim — not started");
961
998
  }
962
- continuationClaim = { args, fallback: verdict.fallback };
999
+ continuationClaim = taken.granted;
963
1000
  if (continuation === undefined) {
964
1001
  let again;
965
1002
  try {
@@ -968,6 +1005,9 @@ async function mountRunWorkflowTool(d) {
968
1005
  catch {
969
1006
  again = `the records of workflow run "${inlineUntrusted(resumeFromRunId, 64)}"'s workflow could not be read — not started`;
970
1007
  }
1008
+ if (again !== undefined && typeof again !== "string" && (again.root !== claimKey || again.target !== resumeFromRunId)) {
1009
+ again = `the records of workflow run "${inlineUntrusted(namedResume ?? "", 64)}"'s workflow changed while this call took its resume claim (a run of it was continued, removed or created again meanwhile) — not started; call again to continue from what they say now`;
1010
+ }
971
1011
  if (typeof again === "string") {
972
1012
  releaseContinuationClaim();
973
1013
  return structuredError(again);
@@ -1070,7 +1110,13 @@ async function mountRunWorkflowTool(d) {
1070
1110
  : {}),
1071
1111
  ...(autoModeReview !== undefined ? { autoModeReview } : {}),
1072
1112
  ...(agentStations !== undefined ? { agentStations } : {}),
1073
- }, { workflowDepth: d.workflowDepth, launchingTool: tool, ...((ctx.toolSelector?.layers ?? d.parentToolCeiling) !== undefined ? { toolCeiling: (ctx.toolSelector?.layers ?? d.parentToolCeiling) } : {}) });
1113
+ }, {
1114
+ workflowDepth: d.workflowDepth,
1115
+ launchingTool: tool,
1116
+ ...((ctx.toolSelector?.layers ?? d.parentToolCeiling) !== undefined ? { toolCeiling: (ctx.toolSelector?.layers ?? d.parentToolCeiling) } : {}),
1117
+ ...(continuationClaim !== undefined ? { resumeClaimKey: continuationClaim.args.sourceRunId } : {}),
1118
+ ...(namedResume !== undefined && resumeFromRunId !== namedResume ? { resumeAsked: namedResume } : {}),
1119
+ });
1074
1120
  }
1075
1121
  catch (err) {
1076
1122
  releaseContinuationClaim();
@@ -1128,6 +1174,7 @@ async function mountRunWorkflowTool(d) {
1128
1174
  sourceTaskId,
1129
1175
  ...(d.originatingSessionId !== undefined ? { originatingSessionId: d.originatingSessionId } : {}),
1130
1176
  principal,
1177
+ scope: runScope,
1131
1178
  status: notification.status === "completed" ? "completed" : "failed",
1132
1179
  summary: egressText("human", notification.summary),
1133
1180
  ...(notification.result !== undefined ? { result: egressText("human", notification.result) } : {}),
@@ -1135,6 +1182,7 @@ async function mountRunWorkflowTool(d) {
1135
1182
  ...(notification.diagnostics !== undefined ? { diagnostics: egressText("human", notification.diagnostics) } : {}),
1136
1183
  ...(notification.completionId !== undefined ? { completionId: notification.completionId } : {}),
1137
1184
  ...(notification.members !== undefined ? { members: notification.members } : {}),
1185
+ ...(notification.errorCode !== undefined ? { errorCode: notification.errorCode } : {}),
1138
1186
  }))
1139
1187
  .catch(() => { });
1140
1188
  };
@@ -1172,6 +1220,7 @@ async function mountRunWorkflowTool(d) {
1172
1220
  diagnostics: workflowDiagnostics(runId, undefined, undefined, record, held),
1173
1221
  ...(settleId !== undefined ? { completionId: settleId } : {}),
1174
1222
  ...(failedRun !== undefined ? { members: workflowMembersOf(failedRun) } : {}),
1223
+ ...((code) => (code !== undefined ? { errorCode: code } : {}))(failedRun === undefined ? undefined : workflowNotifiedCodeOf(failedRun)),
1175
1224
  };
1176
1225
  }
1177
1226
  catch {
@@ -1193,6 +1242,9 @@ async function mountRunWorkflowTool(d) {
1193
1242
  task_id: runId,
1194
1243
  status: "started",
1195
1244
  ...(persistedScriptPath !== undefined ? { scriptPath: persistedScriptPath } : {}),
1245
+ ...(namedResume !== undefined && resumeFromRunId !== undefined && resumeFromRunId !== namedResume
1246
+ ? { resumedFrom: resumeFromRunId, resumeNote: `run "${inlineUntrusted(namedResume, 64)}" had already been continued, so this call continues the last run of its line, "${inlineUntrusted(resumeFromRunId, 64)}": its completed steps replay and only what it did not reach runs live. To continue this run later, resume from "${runId}".` }
1247
+ : {}),
1196
1248
  handling: `${launchReceiptNoQuoteClause(" (the ids above, and scriptPath when present)")} ${LAUNCH_RECEIPT_OWN_WORDS_CLAUSE}`,
1197
1249
  note: (() => {
1198
1250
  const journalRef = journalLocatorOf(runId, runScope);
@@ -1226,6 +1278,23 @@ async function mountRunWorkflowTool(d) {
1226
1278
  return { refused: launchRefusalText(details?.content) };
1227
1279
  return { runId: details.details.workflowRunId };
1228
1280
  },
1281
+ underClaim: async (claimKey, scope, body) => {
1282
+ const journal = d.journalStore;
1283
+ if (journal === undefined)
1284
+ return { refused: "no journal store holds this workflow's resume claim" };
1285
+ const args = { sourceRunId: claimKey, newRunId: answerRecordClaimHolder(), scope };
1286
+ const taken = await takeToolResumeClaim(journal, args, "record", claimKey, reportStoreFault);
1287
+ if ("refused" in taken)
1288
+ return { refused: taken.refused };
1289
+ if ("held" in taken)
1290
+ return { claimHeld: taken.held };
1291
+ try {
1292
+ return { value: await body() };
1293
+ }
1294
+ finally {
1295
+ void releaseWorkflowResumeClaim(journal, args, taken.granted.fallback);
1296
+ }
1297
+ },
1229
1298
  waitBoundMs: WORKFLOW_STORE_WAIT_BOUND_MS,
1230
1299
  ...(reportStoreFault !== undefined ? { reportStoreFault } : {}),
1231
1300
  toolName: RUN_WORKFLOW_TOOL_NAME,