@sema-agent/core 7.67.2 → 7.68.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 (505) hide show
  1. package/CHANGELOG.md +1533 -0
  2. package/README.md +18 -9
  3. package/README.zh-CN.md +16 -8
  4. package/dist/agents/agent-definition.d.ts +1 -1
  5. package/dist/agents/agent-definition.js +4 -1
  6. package/dist/agents/cascade.d.ts +2 -2
  7. package/dist/agents/cascade.js +3 -1
  8. package/dist/agents/cumulative-stats.d.ts +2 -1
  9. package/dist/agents/cumulative-stats.js +4 -1
  10. package/dist/agents/list-agents-tool.d.ts +30 -0
  11. package/dist/agents/list-agents-tool.js +45 -3
  12. package/dist/agents/peer-admission.d.ts +2 -2
  13. package/dist/agents/peer-session-drain.d.ts +2 -0
  14. package/dist/agents/peer-session-drain.js +1 -0
  15. package/dist/agents/repair-loop.js +3 -1
  16. package/dist/agents/retain-ledger.d.ts +61 -8
  17. package/dist/agents/retain-ledger.js +25 -3
  18. package/dist/agents/roster-store.d.ts +4 -2
  19. package/dist/agents/send-message-tool.d.ts +1 -1
  20. package/dist/agents/send-message-tool.js +20 -15
  21. package/dist/agents/subagent-steps.js +2 -10
  22. package/dist/agents/subagent.d.ts +3 -0
  23. package/dist/agents/subagent.js +106 -76
  24. package/dist/agents/tool-filter.d.ts +20 -11
  25. package/dist/agents/tool-filter.js +8 -4
  26. package/dist/agents/verify.d.ts +3 -1
  27. package/dist/agents/verify.js +2 -0
  28. package/dist/brain/anthropic.js +4 -4
  29. package/dist/brain/errors.d.ts +20 -0
  30. package/dist/brain/errors.js +114 -0
  31. package/dist/brain/open-responses.js +3 -1
  32. package/dist/brain/openai.js +3 -1
  33. package/dist/brain/provider-message.d.ts +5 -3
  34. package/dist/brain/provider-message.js +35 -8
  35. package/dist/brain/reasoning-request.d.ts +73 -19
  36. package/dist/brain/reasoning-request.js +164 -72
  37. package/dist/brain/reasoning-stamp.d.ts +26 -0
  38. package/dist/brain/reasoning-stamp.js +10 -0
  39. package/dist/brain/reasoning.d.ts +95 -162
  40. package/dist/brain/reasoning.js +31 -86
  41. package/dist/brain/route-adjudicator.d.ts +9 -7
  42. package/dist/brain/route-adjudicator.js +12 -10
  43. package/dist/brain/status-sink.d.ts +19 -64
  44. package/dist/brain/status-sink.js +5 -21
  45. package/dist/brain/stream-engine.d.ts +11 -2
  46. package/dist/brain/stream-engine.js +10 -0
  47. package/dist/core/a2a.d.ts +17 -5
  48. package/dist/core/a2a.js +11 -3
  49. package/dist/core/allow-entry.d.ts +35 -15
  50. package/dist/core/allow-entry.js +47 -60
  51. package/dist/core/ask-headline.d.ts +68 -0
  52. package/dist/core/ask-headline.js +23 -0
  53. package/dist/core/ask-origin.d.ts +36 -8
  54. package/dist/core/ask-origin.js +17 -10
  55. package/dist/core/ask-question.d.ts +34 -7
  56. package/dist/core/ask-question.js +10 -1
  57. package/dist/core/ask-unresolvable-notice.d.ts +7 -0
  58. package/dist/core/ask-unresolvable-notice.js +9 -3
  59. package/dist/core/auto-strip.d.ts +53 -0
  60. package/dist/core/auto-strip.js +76 -0
  61. package/dist/core/background-agent-store.d.ts +45 -5
  62. package/dist/core/background-agent-store.js +69 -15
  63. package/dist/core/background-shell.d.ts +2 -2
  64. package/dist/core/caller-text.js +2 -2
  65. package/dist/core/canonical-json.d.ts +13 -0
  66. package/dist/core/canonical-json.js +7 -0
  67. package/dist/core/checkpoint-features.d.ts +66 -20
  68. package/dist/core/checkpoint-features.js +12 -1
  69. package/dist/core/checkpoint-generation.d.ts +1 -1
  70. package/dist/core/checkpoint-queries.d.ts +1 -1
  71. package/dist/core/checkpoint-queries.js +4 -1
  72. package/dist/core/checkpoint-requirements.d.ts +25 -1
  73. package/dist/core/checkpoint-requirements.js +5 -1
  74. package/dist/core/checkpoint-row-verdict.d.ts +1 -0
  75. package/dist/core/checkpoint-row-verdict.js +4 -0
  76. package/dist/core/checkpoint-store.d.ts +66 -38
  77. package/dist/core/checkpoint-store.js +15 -6
  78. package/dist/core/child-clamp-seats.d.ts +6 -0
  79. package/dist/core/child-clamp-seats.js +1 -0
  80. package/dist/core/config-refusal-codes.d.ts +1 -1
  81. package/dist/core/config-refusal-codes.js +1 -0
  82. package/dist/core/delegation-frames.d.ts +9 -12
  83. package/dist/core/delegation-frames.js +9 -8
  84. package/dist/core/engine-capabilities.d.ts +21 -8
  85. package/dist/core/engine-capabilities.js +1 -1
  86. package/dist/core/engine-notice.d.ts +147 -34
  87. package/dist/core/engine-notice.js +27 -16
  88. package/dist/core/engine-storage-backend.d.ts +2 -1
  89. package/dist/core/env-budget.js +3 -3
  90. package/dist/core/env-knob-announce.d.ts +10 -10
  91. package/dist/core/env-knob-announce.js +3 -6
  92. package/dist/core/file-history-store.d.ts +29 -4
  93. package/dist/core/file-history-store.js +13 -0
  94. package/dist/core/frame-settlement.d.ts +2 -1
  95. package/dist/core/gate-fold.js +1 -1
  96. package/dist/core/gate-lanes.js +56 -49
  97. package/dist/core/governance-codes.d.ts +39 -3
  98. package/dist/core/governance-codes.js +61 -3
  99. package/dist/core/hooks.d.ts +29 -11
  100. package/dist/core/hooks.js +5 -2
  101. package/dist/core/human-input-projection.js +3 -3
  102. package/dist/core/input-author.d.ts +17 -3
  103. package/dist/core/input-author.js +15 -3
  104. package/dist/core/leg-identity.d.ts +10 -28
  105. package/dist/core/leg-identity.js +1 -21
  106. package/dist/core/lsp.d.ts +18 -13
  107. package/dist/core/lsp.js +30 -22
  108. package/dist/core/mailbox-store.d.ts +1 -1
  109. package/dist/core/mailbox-store.js +4 -4
  110. package/dist/core/mcp-connection-pool.d.ts +93 -4
  111. package/dist/core/mcp-connection-pool.js +104 -1
  112. package/dist/core/mcp-failure.d.ts +38 -12
  113. package/dist/core/mcp-failure.js +9 -13
  114. package/dist/core/mcp-probe.d.ts +4 -3
  115. package/dist/core/mcp-server-link.d.ts +4 -2
  116. package/dist/core/mcp-server-link.js +4 -5
  117. package/dist/core/mcp-server-spec.d.ts +3 -3
  118. package/dist/core/mcp-server-unavailable-notice.d.ts +22 -8
  119. package/dist/core/mcp-server-unavailable-notice.js +18 -4
  120. package/dist/core/mcp.d.ts +40 -6
  121. package/dist/core/mcp.js +39 -13
  122. package/dist/core/memory-engine/content-origin.js +2 -2
  123. package/dist/core/memory-engine/control-objects.d.ts +2 -4
  124. package/dist/core/memory-engine/control-objects.js +2 -10
  125. package/dist/core/memory-engine/delegation-settlement.js +6 -1
  126. package/dist/core/memory-engine/dual-root.js +3 -0
  127. package/dist/core/memory-engine/engine.d.ts +6 -4
  128. package/dist/core/memory-engine/engine.js +32 -29
  129. package/dist/core/memory-engine/file-backend.d.ts +20 -5
  130. package/dist/core/memory-engine/file-backend.js +21 -31
  131. package/dist/core/memory-engine/frontmatter.d.ts +2 -0
  132. package/dist/core/memory-engine/frontmatter.js +4 -0
  133. package/dist/core/memory-engine/layout.d.ts +114 -20
  134. package/dist/core/memory-engine/layout.js +340 -22
  135. package/dist/core/memory-engine/memory-deployment.d.ts +7 -5
  136. package/dist/core/memory-engine/mount-failed-notice.d.ts +19 -7
  137. package/dist/core/memory-engine/mount-failed-notice.js +43 -10
  138. package/dist/core/memory-engine/sync-client.js +4 -5
  139. package/dist/core/model-fallbacks.d.ts +5 -1
  140. package/dist/core/model-fallbacks.js +3 -3
  141. package/dist/core/model-receipt.d.ts +2 -1
  142. package/dist/core/model-receipt.js +12 -1
  143. package/dist/core/mods/kernel/dispatch.d.ts +2 -2
  144. package/dist/core/mods/kernel/dispatch.js +14 -6
  145. package/dist/core/mods/kernel/events.d.ts +8 -5
  146. package/dist/core/mods/kernel/events.js +2 -2
  147. package/dist/core/mods/kernel/index.d.ts +1 -1
  148. package/dist/core/mods/kernel/registration.d.ts +9 -0
  149. package/dist/core/mods/package.js +1 -1
  150. package/dist/core/mods/session-append.d.ts +4 -2
  151. package/dist/core/mods/session-append.js +3 -0
  152. package/dist/core/mods/stations.d.ts +7 -11
  153. package/dist/core/mods/stations.js +4 -7
  154. package/dist/core/mods/tool-call.d.ts +10 -8
  155. package/dist/core/mods/tool-call.js +15 -18
  156. package/dist/core/mounted-mcp.d.ts +0 -4
  157. package/dist/core/mounted-mcp.js +1 -1
  158. package/dist/core/park-noun.d.ts +24 -0
  159. package/dist/core/park-noun.js +21 -0
  160. package/dist/core/park-resumability.d.ts +60 -0
  161. package/dist/core/park-resumability.js +30 -0
  162. package/dist/core/permission-rule-provider.d.ts +24 -2
  163. package/dist/core/permission-rule-provider.js +11 -8
  164. package/dist/core/permission-rule-store.d.ts +8 -1
  165. package/dist/core/permission-rule-store.js +2 -3
  166. package/dist/core/permission-rules.d.ts +2 -1
  167. package/dist/core/permission-rules.js +8 -4
  168. package/dist/core/persisted-rule-arms.d.ts +3 -0
  169. package/dist/core/persisted-rule-arms.js +2 -1
  170. package/dist/core/present-plan-tool.d.ts +47 -3
  171. package/dist/core/present-plan-tool.js +62 -4
  172. package/dist/core/principal-name.d.ts +1 -1
  173. package/dist/core/principal-name.js +5 -5
  174. package/dist/core/process-identity.js +10 -5
  175. package/dist/core/protocol-http-auth.d.ts +30 -9
  176. package/dist/core/protocol-http-auth.js +113 -59
  177. package/dist/core/read-only-shell.js +9 -5
  178. package/dist/core/redaction-marks.d.ts +4 -26
  179. package/dist/core/redaction-marks.js +9 -21
  180. package/dist/core/remote-env.d.ts +43 -16
  181. package/dist/core/remote-env.js +1 -1
  182. package/dist/core/request-copy-projection.d.ts +1 -1
  183. package/dist/core/request-copy-projection.js +40 -50
  184. package/dist/core/resume-config-judge.js +1 -1
  185. package/dist/core/resume-startup-cause.d.ts +35 -18
  186. package/dist/core/resume-startup-cause.js +13 -10
  187. package/dist/core/retention.d.ts +167 -25
  188. package/dist/core/retention.js +100 -20
  189. package/dist/core/roles.d.ts +6 -0
  190. package/dist/core/roles.js +11 -5
  191. package/dist/core/rule-lane-reads.d.ts +3 -0
  192. package/dist/core/rule-lane-reads.js +5 -1
  193. package/dist/core/rule-store-fault.d.ts +70 -0
  194. package/dist/core/rule-store-fault.js +102 -0
  195. package/dist/core/runner/advertised-writable-dirs.js +16 -31
  196. package/dist/core/runner/announce-once-ledger.d.ts +19 -2
  197. package/dist/core/runner/announce-once-ledger.js +24 -2
  198. package/dist/core/runner/assemble-result.d.ts +6 -0
  199. package/dist/core/runner/assemble-result.js +1 -1
  200. package/dist/core/runner/auto-strip-notice.d.ts +36 -0
  201. package/dist/core/runner/auto-strip-notice.js +59 -0
  202. package/dist/core/runner/branch-window.d.ts +3 -0
  203. package/dist/core/runner/branch-window.js +37 -0
  204. package/dist/core/runner/caller-roster.d.ts +8 -3
  205. package/dist/core/runner/capability-withheld-seat.js +3 -9
  206. package/dist/core/runner/clock-and-limits.d.ts +22 -1
  207. package/dist/core/runner/clock-and-limits.js +30 -0
  208. package/dist/core/runner/contracts.d.ts +58 -35
  209. package/dist/core/runner/credential-refusal-seat.d.ts +2 -0
  210. package/dist/core/runner/credential-refusal-seat.js +47 -0
  211. package/dist/core/runner/cross-boundary-lane.js +6 -4
  212. package/dist/core/runner/decide-continuation.js +1 -1
  213. package/dist/core/runner/file-history-restore.d.ts +53 -2
  214. package/dist/core/runner/file-history-restore.js +29 -10
  215. package/dist/core/runner/forward-sink.d.ts +14 -1
  216. package/dist/core/runner/forward-sink.js +14 -12
  217. package/dist/core/runner/gate-exit.d.ts +8 -7
  218. package/dist/core/runner/gate-exit.js +13 -13
  219. package/dist/core/runner/git-status-frame.js +2 -4
  220. package/dist/core/runner/initial-run-state.js +1 -1
  221. package/dist/core/runner/main-call-account.d.ts +3 -1
  222. package/dist/core/runner/main-call-account.js +5 -3
  223. package/dist/core/runner/mcp-redial.d.ts +2 -5
  224. package/dist/core/runner/mcp-redial.js +2 -2
  225. package/dist/core/runner/nested-memory-content.d.ts +7 -1
  226. package/dist/core/runner/nested-memory-content.js +73 -13
  227. package/dist/core/runner/nested-memory-lane.d.ts +44 -19
  228. package/dist/core/runner/nested-memory-lane.js +152 -76
  229. package/dist/core/runner/park-commit.js +3 -1
  230. package/dist/core/runner/permission-rule-lanes.d.ts +8 -2
  231. package/dist/core/runner/permission-rule-lanes.js +29 -3
  232. package/dist/core/runner/person-path-rows.d.ts +3 -11
  233. package/dist/core/runner/person-path-rows.js +21 -24
  234. package/dist/core/runner/prepare-acquire-reconcile.js +3 -1
  235. package/dist/core/runner/prepare-artifact.d.ts +1 -1
  236. package/dist/core/runner/prepare-artifact.js +20 -14
  237. package/dist/core/runner/prepare-ask-lane.d.ts +9 -6
  238. package/dist/core/runner/prepare-ask-lane.js +6 -5
  239. package/dist/core/runner/prepare-boundary-parks.d.ts +7 -1
  240. package/dist/core/runner/prepare-boundary-parks.js +27 -24
  241. package/dist/core/runner/prepare-caps-and-workflow.d.ts +5 -2
  242. package/dist/core/runner/prepare-caps-and-workflow.js +4 -3
  243. package/dist/core/runner/prepare-config-doors.d.ts +9 -24
  244. package/dist/core/runner/prepare-config-doors.js +58 -41
  245. package/dist/core/runner/prepare-context-lane.d.ts +2 -2
  246. package/dist/core/runner/prepare-context-lane.js +3 -5
  247. package/dist/core/runner/prepare-defer-classify.d.ts +1 -1
  248. package/dist/core/runner/prepare-defer-classify.js +1 -1
  249. package/dist/core/runner/prepare-delegation-surface.d.ts +2 -2
  250. package/dist/core/runner/prepare-delegation-surface.js +3 -2
  251. package/dist/core/runner/prepare-file-history.d.ts +62 -26
  252. package/dist/core/runner/prepare-file-history.js +117 -46
  253. package/dist/core/runner/prepare-gate-stations.d.ts +4 -0
  254. package/dist/core/runner/prepare-gate-stations.js +6 -5
  255. package/dist/core/runner/prepare-hands-readface.d.ts +9 -4
  256. package/dist/core/runner/prepare-hands-readface.js +8 -4
  257. package/dist/core/runner/prepare-inherited-gate.d.ts +11 -4
  258. package/dist/core/runner/prepare-inherited-gate.js +6 -6
  259. package/dist/core/runner/prepare-listings.d.ts +1 -1
  260. package/dist/core/runner/prepare-listings.js +1 -1
  261. package/dist/core/runner/prepare-memory.js +2 -2
  262. package/dist/core/runner/prepare-offload-wrappers.d.ts +1 -1
  263. package/dist/core/runner/prepare-offload-wrappers.js +1 -1
  264. package/dist/core/runner/prepare-park-ask.d.ts +10 -3
  265. package/dist/core/runner/prepare-park-ask.js +7 -9
  266. package/dist/core/runner/prepare-policy-chain.d.ts +18 -9
  267. package/dist/core/runner/prepare-policy-chain.js +18 -13
  268. package/dist/core/runner/prepare-project-context.d.ts +1 -1
  269. package/dist/core/runner/prepare-project-context.js +5 -3
  270. package/dist/core/runner/prepare-prompt-assembly.js +2 -1
  271. package/dist/core/runner/prepare-prompt-inputs.d.ts +2 -2
  272. package/dist/core/runner/prepare-prompt-inputs.js +1 -1
  273. package/dist/core/runner/prepare-protocol-tools.d.ts +4 -5
  274. package/dist/core/runner/prepare-protocol-tools.js +7 -7
  275. package/dist/core/runner/prepare-question-face.d.ts +4 -2
  276. package/dist/core/runner/prepare-run-refs.d.ts +7 -2
  277. package/dist/core/runner/prepare-run-refs.js +8 -7
  278. package/dist/core/runner/prepare-safety-scan.d.ts +4 -3
  279. package/dist/core/runner/prepare-suspend-saga.d.ts +3 -7
  280. package/dist/core/runner/prepare-suspend-saga.js +4 -3
  281. package/dist/core/runner/prepare-task.js +66 -53
  282. package/dist/core/runner/prepare-tool-disclosure-mount.d.ts +3 -2
  283. package/dist/core/runner/prepare-tool-disclosure-mount.js +2 -1
  284. package/dist/core/runner/prepare-turn-wiring.d.ts +3 -1
  285. package/dist/core/runner/prepare-turn-wiring.js +1 -1
  286. package/dist/core/runner/prepare-wiring-manifest.d.ts +9 -4
  287. package/dist/core/runner/prepare-wiring-manifest.js +14 -6
  288. package/dist/core/runner/prepare-workspace-restore.d.ts +4 -4
  289. package/dist/core/runner/prepare-workspace-restore.js +15 -6
  290. package/dist/core/runner/remote-env-retry.d.ts +3 -3
  291. package/dist/core/runner/restore-seat.d.ts +41 -0
  292. package/dist/core/runner/restore-seat.js +38 -0
  293. package/dist/core/runner/resume-admission.js +1 -1
  294. package/dist/core/runner/resume-apply.js +4 -3
  295. package/dist/core/runner/resume-checkpoint-screen.js +2 -1
  296. package/dist/core/runner/resume-internals-and-config.js +2 -1
  297. package/dist/core/runner/resume-preflight.js +2 -1
  298. package/dist/core/runner/rewind-files.js +22 -6
  299. package/dist/core/runner/rule-store-unreadable-notice.d.ts +8 -0
  300. package/dist/core/runner/rule-store-unreadable-notice.js +11 -0
  301. package/dist/core/runner/run-brain-sinks.d.ts +3 -6
  302. package/dist/core/runner/run-brain-sinks.js +6 -6
  303. package/dist/core/runner/run-compaction-machinery.d.ts +2 -2
  304. package/dist/core/runner/run-git-lane.d.ts +2 -0
  305. package/dist/core/runner/run-git-lane.js +2 -1
  306. package/dist/core/runner/run-harness-handlers.js +5 -4
  307. package/dist/core/runner/run-identity-wiring.js +20 -12
  308. package/dist/core/runner/run-leg.js +31 -72
  309. package/dist/core/runner/run-notification-lane.d.ts +3 -0
  310. package/dist/core/runner/run-notification-lane.js +2 -4
  311. package/dist/core/runner/run-reasoning-seat.d.ts +5 -6
  312. package/dist/core/runner/run-reasoning-seat.js +13 -18
  313. package/dist/core/runner/run-settle-and-teardown.js +13 -9
  314. package/dist/core/runner/run-terminal-adoption.js +4 -8
  315. package/dist/core/runner/run-turn-boundary.js +6 -3
  316. package/dist/core/runner/runtask.d.ts +9 -4
  317. package/dist/core/runner/runtask.js +29 -22
  318. package/dist/core/runner/session-rule-policy.d.ts +11 -1
  319. package/dist/core/runner/shell-env-withheld.js +2 -7
  320. package/dist/core/runner/side-call-account.d.ts +5 -6
  321. package/dist/core/runner/side-call-account.js +2 -2
  322. package/dist/core/runner/stream-lifecycle-verbs.d.ts +3 -0
  323. package/dist/core/runner/stream-lifecycle-verbs.js +5 -3
  324. package/dist/core/runner/stream-settle-backstop.js +4 -6
  325. package/dist/core/runner/stream-steer-verb.d.ts +1 -1
  326. package/dist/core/runner/stream-steer-verb.js +4 -4
  327. package/dist/core/runner/sub-agent-deny-lists.d.ts +8 -3
  328. package/dist/core/runner/sub-agent-deny-lists.js +7 -4
  329. package/dist/core/runner/teardown-bounded.d.ts +7 -0
  330. package/dist/core/runner/teardown-bounded.js +7 -0
  331. package/dist/core/runner/terminal-account.js +41 -13
  332. package/dist/core/runner/terminal-projection.d.ts +1 -5
  333. package/dist/core/runner/tool-end-body.d.ts +9 -3
  334. package/dist/core/runner/tool-end-body.js +6 -3
  335. package/dist/core/runner/tool-output-projection.d.ts +13 -4
  336. package/dist/core/runner/tool-output-projection.js +10 -14
  337. package/dist/core/runner/turn-attachments.d.ts +3 -2
  338. package/dist/core/runner/turn-attachments.js +12 -5
  339. package/dist/core/runner-deps.d.ts +6 -6
  340. package/dist/core/runtime-caps.d.ts +2 -1
  341. package/dist/core/secret-env.d.ts +20 -3
  342. package/dist/core/secret-env.js +13 -15
  343. package/dist/core/session-checkout.d.ts +115 -15
  344. package/dist/core/session-checkout.js +435 -136
  345. package/dist/core/session-policy-store.js +21 -3
  346. package/dist/core/session-reconcile.js +1 -0
  347. package/dist/core/session-store.js +2 -0
  348. package/dist/core/session.d.ts +11 -1
  349. package/dist/core/shell-run-candidates.d.ts +1 -0
  350. package/dist/core/shell-run-candidates.js +1 -1
  351. package/dist/core/shutdown-debug.d.ts +6 -5
  352. package/dist/core/shutdown-debug.js +5 -1
  353. package/dist/core/skill-grant.js +4 -1
  354. package/dist/core/skills-directory.js +5 -3
  355. package/dist/core/spec-contract.d.ts +1 -1
  356. package/dist/core/store-contracts/checkpoint-store-contract.js +2 -7
  357. package/dist/core/store-contracts/file-history-store-contract.js +26 -2
  358. package/dist/core/store-contracts/session-deletion-cascade-contract.js +130 -14
  359. package/dist/core/store-contracts/task-list-store-contract.d.ts +2 -1
  360. package/dist/core/store-contracts/task-list-store-contract.js +28 -1
  361. package/dist/core/task-event.d.ts +48 -27
  362. package/dist/core/task-notification.d.ts +15 -9
  363. package/dist/core/task-notification.js +12 -0
  364. package/dist/core/task-registry-agent.d.ts +24 -22
  365. package/dist/core/task-registry-agent.js +65 -46
  366. package/dist/core/task-registry-shared.d.ts +17 -5
  367. package/dist/core/task-registry.d.ts +17 -6
  368. package/dist/core/task-registry.js +6 -1
  369. package/dist/core/task-result.d.ts +71 -25
  370. package/dist/core/task-spec-members.d.ts +0 -1
  371. package/dist/core/task-spec-members.js +1 -1
  372. package/dist/core/task-spec.d.ts +60 -52
  373. package/dist/core/task-stream.d.ts +45 -12
  374. package/dist/core/terminal-cause.d.ts +45 -8
  375. package/dist/core/terminal-cause.js +5 -0
  376. package/dist/core/tool-card-bound.d.ts +32 -0
  377. package/dist/core/tool-card-bound.js +33 -0
  378. package/dist/core/tool-catalog-entries.d.ts +9 -0
  379. package/dist/core/tool-catalog-entries.js +48 -0
  380. package/dist/core/tool-errors.d.ts +4 -3
  381. package/dist/core/tool-face.d.ts +3 -3
  382. package/dist/core/tool-mount-facts.d.ts +3 -2
  383. package/dist/core/tool-mount-facts.js +1 -1
  384. package/dist/core/tool-mount-static.js +7 -5
  385. package/dist/core/tool-policy.d.ts +21 -19
  386. package/dist/core/tool-policy.js +5 -6
  387. package/dist/core/tool-registry.d.ts +3 -1
  388. package/dist/core/tool-registry.js +15 -1
  389. package/dist/core/tool-result-store.d.ts +9 -3
  390. package/dist/core/tool-result-store.js +14 -1
  391. package/dist/core/tool-roster.d.ts +6 -0
  392. package/dist/core/tool-roster.js +18 -0
  393. package/dist/core/tool-spec.d.ts +17 -8
  394. package/dist/core/trace.d.ts +35 -31
  395. package/dist/core/types.d.ts +2 -2
  396. package/dist/core/untrusted-egress.d.ts +19 -7
  397. package/dist/core/untrusted-egress.js +26 -7
  398. package/dist/core/untrusted-text.d.ts +6 -18
  399. package/dist/core/untrusted-text.js +11 -4
  400. package/dist/core/user-attachment.d.ts +9 -6
  401. package/dist/core/user-attachment.js +12 -10
  402. package/dist/core/user-row-origin.d.ts +44 -25
  403. package/dist/core/user-row-origin.js +30 -20
  404. package/dist/core/wiring-manifest.d.ts +26 -7
  405. package/dist/core/wiring-manifest.js +14 -11
  406. package/dist/core/workspace-snapshot.d.ts +3 -1
  407. package/dist/core/workspace-snapshot.js +1 -0
  408. package/dist/engine/execution-env/node-execution-env.d.ts +23 -16
  409. package/dist/engine/execution-env/node-execution-env.js +127 -67
  410. package/dist/engine/harness/agent-harness.d.ts +4 -5
  411. package/dist/engine/harness/agent-harness.js +2 -7
  412. package/dist/engine/harness/types.d.ts +51 -19
  413. package/dist/engine/harness/types.js +28 -1
  414. package/dist/engine/llm/types.d.ts +26 -14
  415. package/dist/engine/llm/types.js +2 -2
  416. package/dist/engine/loop/agent-loop.d.ts +2 -2
  417. package/dist/engine/loop/agent-loop.js +51 -275
  418. package/dist/engine/loop/types.d.ts +0 -18
  419. package/dist/engine/session/import-validate.d.ts +3 -0
  420. package/dist/engine/session/import-validate.js +34 -2
  421. package/dist/engine/session/repo-utils.d.ts +42 -4
  422. package/dist/engine/session/repo-utils.js +33 -5
  423. package/dist/engine/session/session.d.ts +41 -14
  424. package/dist/engine/session/session.js +96 -25
  425. package/dist/index.d.ts +21 -16
  426. package/dist/index.js +16 -10
  427. package/dist/orchestration/run-spec.d.ts +1 -1
  428. package/dist/orchestration/run-workflow-tool.d.ts +12 -9
  429. package/dist/orchestration/run-workflow-tool.js +15 -19
  430. package/dist/orchestration/workflow-governance.js +13 -21
  431. package/dist/orchestration/workflow-observe.d.ts +4 -3
  432. package/dist/orchestration/workflow-primitives.d.ts +1 -1
  433. package/dist/orchestration/workflow-record-artifact.d.ts +14 -0
  434. package/dist/orchestration/workflow-record-artifact.js +32 -0
  435. package/dist/orchestration/workflow-script-store.d.ts +9 -0
  436. package/dist/orchestration/workflow-script-store.js +20 -1
  437. package/dist/orchestration/workflow-types.d.ts +33 -3
  438. package/dist/orchestration/workflow.d.ts +24 -14
  439. package/dist/orchestration/workflow.js +52 -23
  440. package/dist/prompt-assembly/artifact.js +4 -8
  441. package/dist/prompt-assembly/catalog/engine.d.ts +263 -0
  442. package/dist/prompt-assembly/catalog/engine.js +30 -0
  443. package/dist/prompt-assembly/catalog/index.d.ts +1 -1
  444. package/dist/prompt-assembly/catalog/index.js +2 -2
  445. package/dist/prompt-assembly/catalog/locales/zh-Hans/engine.d.ts +1 -1
  446. package/dist/prompt-assembly/catalog/locales/zh-Hans/engine.js +29 -0
  447. package/dist/prompt-assembly/epoch.js +6 -8
  448. package/dist/prompt-assembly/turn-snapshot.js +8 -9
  449. package/dist/stores/file/background-agent-store.js +5 -6
  450. package/dist/stores/file/checkpoint-store.d.ts +0 -4
  451. package/dist/stores/file/checkpoint-store.js +7 -3
  452. package/dist/stores/file/file-history-store.d.ts +8 -0
  453. package/dist/stores/file/file-history-store.js +72 -0
  454. package/dist/stores/file/fs-atomic.js +17 -12
  455. package/dist/stores/file/index.js +11 -5
  456. package/dist/stores/file/mailbox-store.js +13 -4
  457. package/dist/stores/file/permission-rule-store.js +14 -13
  458. package/dist/stores/file/shared-ledger.d.ts +4 -0
  459. package/dist/stores/file/shared-ledger.js +4 -0
  460. package/dist/stores/file/task-list-store.js +12 -3
  461. package/dist/stores/file/workflow-run-store.js +1 -0
  462. package/dist/tools/fs/bash-program-position.d.ts +4 -2
  463. package/dist/tools/fs/bash-program-position.js +1 -1
  464. package/dist/tools/fs/bash-readonly-classifier.js +1 -1
  465. package/dist/tools/fs/bound-open.d.ts +97 -0
  466. package/dist/tools/fs/bound-open.js +103 -0
  467. package/dist/tools/fs/containment-face.d.ts +2 -2
  468. package/dist/tools/fs/fs-pdf.d.ts +7 -1
  469. package/dist/tools/fs/fs-pdf.js +31 -23
  470. package/dist/tools/fs/fs-read.d.ts +24 -17
  471. package/dist/tools/fs/fs-read.js +84 -53
  472. package/dist/tools/fs/fs-shared.d.ts +14 -12
  473. package/dist/tools/fs/fs-shared.js +5 -4
  474. package/dist/tools/fs/fs-write.d.ts +2 -2
  475. package/dist/tools/fs/fs-write.js +20 -12
  476. package/dist/tools/fs/index.d.ts +4 -4
  477. package/dist/tools/fs/index.js +2 -2
  478. package/dist/tools/fs/notebook.d.ts +1 -1
  479. package/dist/tools/fs/pdf.d.ts +12 -3
  480. package/dist/tools/fs/pdf.js +22 -9
  481. package/dist/tools/fs/read-deny-home.d.ts +3 -2
  482. package/dist/tools/fs/read-deny-home.js +8 -11
  483. package/dist/tools/fs/safety.d.ts +3 -2
  484. package/dist/tools/fs/shell-read-check.js +10 -9
  485. package/dist/tools/monitor.d.ts +6 -5
  486. package/dist/tools/task-list.d.ts +16 -6
  487. package/dist/tools/task-list.js +4 -0
  488. package/dist/tools/web.d.ts +9 -1
  489. package/dist/tools/web.js +8 -3
  490. package/dist/tools/worktree.d.ts +7 -5
  491. package/dist/tools/worktree.js +4 -3
  492. package/package.json +4 -3
  493. package/test/export-surface.snapshot.json +93 -7
  494. package/wire-changes/core-stores-sql@7.67.3.json +39 -0
  495. package/wire-changes/core-stores-sql@7.68.0.json +39 -0
  496. package/wire-changes/core@7.67.3.json +65 -0
  497. package/wire-changes/core@7.68.0.json +4257 -0
  498. package/wire-changes/mods-kernel@7.67.3.json +39 -0
  499. package/wire-changes/mods-kernel@7.68.0.json +129 -0
  500. package/wire-changes/primitives@7.67.3.json +39 -0
  501. package/wire-changes/primitives@7.68.0.json +253 -0
  502. package/wire-changes/wiki-gate@7.67.3.json +39 -0
  503. package/wire-changes/wiki-gate@7.68.0.json +39 -0
  504. package/dist/core/runner/credential-origin-seat.d.ts +0 -2
  505. package/dist/core/runner/credential-origin-seat.js +0 -20
@@ -1,5 +1,7 @@
1
1
  import type { Checkpoint, ProbeCause, StoreFidelity } from "./checkpoint-store.js";
2
2
  import type { SteerReplayFacet } from "./steer-replay.js";
3
+ import type { UnstartedRowOutcome } from "./terminal-cause.js";
4
+ import type { CallRiskAxes } from "./ask-origin.js";
3
5
  /** True ONLY for a PLAIN data record (not null / array / class-instance / proxy-with-odd-prototype) — the only
4
6
  * shape we safely digest. Adversarial args (a proxy, a getter that throws) must never crash the mint, so this +
5
7
  * {@link safeDataValue}/{@link safeKeys} make {@link buildRiskDescriptor} fully TOTAL. */
@@ -7,6 +9,15 @@ export declare function isPlainRecord(x: unknown): x is Record<string, unknown>;
7
9
  /** Read `obj[key]` as a DATA property only — NEVER invokes a getter/accessor (so a throwing getter can't escape
8
10
  * AND a non-deterministic getter can't vary the digest); a trapped descriptor read ⇒ undefined. */
9
11
  export declare function safeDataValue(obj: Record<string, unknown>, key: string): unknown;
12
+ /**
13
+ * The descriptor's `riskAxes` from what the park's mint handed {@link buildRiskDescriptor}: each of the two members only when it
14
+ * is a boolean (a judged `false` stays), copied — the row is persisted, never aliased to the caller's object — and the whole
15
+ * member only when one stays. Data-property reads only, so a hostile value can neither throw nor vary. It judges nothing: the
16
+ * judgment is the projection's (`riskAxesOf`, the card's too), read by the park at its own moment and copied here.
17
+ */
18
+ export declare function copiedRiskAxes(given: unknown): {
19
+ riskAxes?: CallRiskAxes;
20
+ };
10
21
  /**
11
22
  * The ONE validator for a {@link ProbeCause} arriving from a probe.
12
23
  *
@@ -167,7 +178,9 @@ export declare function checkpointVersionOf(cp: Pick<Checkpoint, "version">): nu
167
178
  * the host rolls the binary forward instead of routing one token elsewhere), `"seat_retired"` (the row
168
179
  * carries a seat this engine no longer reads — terminal for the row's bytes: the retired pre-queue single
169
180
  * steer seat, which no worker version reads and the host decides itself, or a retired mode-seed member of
170
- * `inheritedGate`, which an engine at 7.38.x or earlier still reads once).
181
+ * `inheritedGate`, which an engine at 7.38.x or earlier still reads once), `"leg_not_resumable"` (a row a synchronous child
182
+ * parked under an earlier release — it carries the synchronous-child block — whose leg nobody resumes: its result has no road back to
183
+ * the run that spawned it; terminal for the row's bytes on every worker of this release — expire it and run the work again).
171
184
  * · `invalid_outcome` pre-CAS row-integrity arms: `"real_approval_damaged"`, `"real_approval_forged"`,
172
185
  * `"read_face_damaged"`, `"read_face_forged"`, `"write_face_damaged"`, `"skill_grants_damaged"`, `"skill_scopes_damaged"`, `"constraint_chain_missing"`, `"hands_coordinates_damaged"`, `"requirements_damaged"`, `"bound_input_hash_missing"` (all terminal for the row's
173
186
  * current bytes — no worker version redeems a damaged row).
@@ -176,7 +189,7 @@ export declare function checkpointVersionOf(cp: Pick<Checkpoint, "version">): nu
176
189
  * ROW-INTEGRITY word and only that, `detail.field` ({@link CheckpointErrorField}) names the cell of the decision to act on, a refusal carries at most
177
190
  * one of them, and a refusal with neither is never a damaged row.
178
191
  */
179
- export type CheckpointErrorReason = "version_newer" | "env_factory_missing" | "governed_unwired" | "origin_missing" | "tool_identity_missing" | "ledger_event_unknown" | "seat_retired" | "real_approval_damaged" | "real_approval_forged" | "read_face_damaged" | "read_face_forged"
192
+ export type CheckpointErrorReason = "version_newer" | "env_factory_missing" | "governed_unwired" | "origin_missing" | "tool_identity_missing" | "ledger_event_unknown" | "seat_retired" | "leg_not_resumable" | "real_approval_damaged" | "real_approval_forged" | "read_face_damaged" | "read_face_forged"
180
193
  /** `state.writeFace` is present but not a well-formed section. No `_forged` twin: the section is
181
194
  * legal-and-absent at every version, so there is no version to judge a fabrication against — and a
182
195
  * fabricated "open" still needs the LIVE resolution to say open too. */
@@ -231,16 +244,19 @@ export type CheckpointErrorReason = "version_newer" | "env_factory_missing" | "g
231
244
  * `config.locked_key`), an MCP server's content class, the skills-listing seats (`config.skill_listing_budget_invalid`), the limits and the
232
245
  * resource-suspend knobs, the attachment modes, the governance windows, the brain-call guardrail, the host floor (`config.host_floor_invalid`) and the retention declaration over the stores the leg
233
246
  * would run on (`config.retention_policy`, `config.retention_capability`), and the checkpoint store seat itself (`config.invalid_checkpoint_store`: the
234
- * retired `null` spelling, a store that declares no execution outcome), and the skills seat and the hands band (`config.invalid_argument`;
235
- * a skill's `baseDir` by its own reader, `config.skill_base_dir_invalid`). A door not entered here (the leg's model, its rebuilt
236
- * roster, its answer face, the approval seat's value) still refuses after the claim, each for a stated reason (INTEGRATION-CORE, "A resume's two doors").
247
+ * retired `null` spelling, a store without a required verb), and the skills seat and the hands band (`config.invalid_argument`;
248
+ * a skill's `baseDir` by its own reader, `config.skill_base_dir_invalid`), and the value arms of three doors whose other arms need the leg:
249
+ * the interaction posture's word and its contradiction with `interactiveTools: false` (`config.interaction_posture`), the requested role's
250
+ * word (`config.unknown_role`, `detail.reason` `unknown_role_word`), and per-task agents beside a roster the receipt reads whole that mounts no
251
+ * delegation tool (`config.agents.no_delegation_tool`). A door not entered here (the leg's model, its rebuilt
252
+ * roster, its answer face, the approval seat's value, whether the posture's human is reachable) still refuses after the claim, each for a stated reason (INTEGRATION-CORE, "A resume's two doors").
237
253
  * The re-supplied config's one read (`readCallerSpec`, the read a run takes of its spec) refuses with its own two words, last in the set:
238
254
  * a member whose read throws (`config.spec_member_unreadable`) and a key the engine does not read (`config.spec_unknown_key`); its third,
239
255
  * a retired key, is `config.spec_retired_key` (first).
240
256
  *
241
257
  * A SUBSET of {@link CONFIG_REFUSAL_CODES}, the family's whole refusal vocabulary: the words a resume's screen can produce, held to that set at compile time.
242
258
  */
243
- export declare const CHECKPOINT_CONFIG_REFUSAL_CODES: readonly ["config.spec_retired_key", "config.output_style_invalid", "config.language_invalid", "config.permission_mode_invalid", "config.shell_gate_value_retired", "config.approval_reach_invalid", "config.run_origin_invalid", "config.user_invoked_skill_unknown", "config.skill_deny_unreadable", "config.user_attachment_invalid", "config.tool_face_control", "config.deps_retired_key", "config.peer_presence_invalid", "config.tool_model_gate_invalid", "config.microcompact_invalid", "config.prompt_selector_invalid", "resume_at.conflicts_resume", "resume_at.mode_without_target", "config.read_face_invalid", "config.write_face_invalid", "config.invalid_argument", "config.tool_face_invalid", "config.memory_delegation_evidence", "config.memory_provenance", "config.memory_capture_policy", "config.cross_boundary_posture", "config.advisor_tool_invalid", "config.advisor_model_invalid", "config.auto_consolidation", "config.unknown_role", "config.tool_materialize_invalid", "config.memory_persistence_invalid", "config.tool_materialize_unreachable", "config.locked_registry", "config.locked_key", "config.mcp_content_class", "config.skill_listing_budget_invalid", "config.limit_unknown_key", "config.limit_invalid", "config.attachment_invalid", "config.usage_window_invalid", "config.brain_call_guardrail_invalid", "config.retention_policy", "config.retention_capability", "config.invalid_checkpoint_store", "config.skill_base_dir_invalid", "config.host_floor_invalid", "config.credential_in_declaration", "config.credential_ref_invalid", "config.peer_seat_missing", "config.spec_member_unreadable", "config.spec_unknown_key"];
259
+ export declare const CHECKPOINT_CONFIG_REFUSAL_CODES: readonly ["config.spec_retired_key", "config.output_style_invalid", "config.language_invalid", "config.permission_mode_invalid", "config.shell_gate_value_retired", "config.approval_reach_invalid", "config.run_origin_invalid", "config.user_invoked_skill_unknown", "config.skill_deny_unreadable", "config.user_attachment_invalid", "config.tool_face_control", "config.deps_retired_key", "config.peer_presence_invalid", "config.tool_model_gate_invalid", "config.microcompact_invalid", "config.prompt_selector_invalid", "resume_at.conflicts_resume", "resume_at.mode_without_target", "config.read_face_invalid", "config.write_face_invalid", "config.invalid_argument", "config.tool_face_invalid", "config.memory_delegation_evidence", "config.memory_provenance", "config.memory_capture_policy", "config.cross_boundary_posture", "config.advisor_tool_invalid", "config.advisor_model_invalid", "config.auto_consolidation", "config.unknown_role", "config.tool_materialize_invalid", "config.memory_persistence_invalid", "config.tool_materialize_unreachable", "config.locked_registry", "config.locked_key", "config.mcp_content_class", "config.skill_listing_budget_invalid", "config.limit_unknown_key", "config.limit_invalid", "config.attachment_invalid", "config.usage_window_invalid", "config.brain_call_guardrail_invalid", "config.retention_policy", "config.retention_capability", "config.invalid_checkpoint_store", "config.skill_base_dir_invalid", "config.host_floor_invalid", "config.credential_in_declaration", "config.credential_ref_invalid", "config.peer_seat_missing", "config.interaction_posture", "config.agents.no_delegation_tool", "config.spec_member_unreadable", "config.spec_unknown_key"];
244
260
  export type CheckpointConfigRefusalCode = (typeof CHECKPOINT_CONFIG_REFUSAL_CODES)[number];
245
261
  export declare const isCheckpointConfigRefusalCode: (word: unknown) => word is CheckpointConfigRefusalCode;
246
262
  /** The words of a {@link CheckpointError}'s optional `detail.field` (what each means: the `detail` member's doc). A CLOSED SET with one home, registered in
@@ -273,15 +289,22 @@ export declare class CheckpointError extends Error {
273
289
  /** The resume's `TaskSpec.signal` was aborted at the entrance — handed in ALREADY-ABORTED, or aborted
274
290
  * while the wake screen / `resumePreflight` / pre-claim re-adjudication still ran: ONE code for a
275
291
  * cancellation there (the seats' own codes keep what the hook itself did). Refused BEFORE the CAS, so
276
- * the checkpoint stays `pending`; consuming the decision on a leg that aborts at once would lose it. */
292
+ * the checkpoint stays `pending`; consuming the decision on a leg that aborts at once would lose it.
293
+ * The same code ends a resume aborted AFTER its claim and before its leg started: where the engine reversed the
294
+ * claim, `detail.unstartedRow` is `"reopened"` — the row is pending again, the same token resumes it. Without the
295
+ * member the code says nothing about the row: it is pending and untouched after an abort before the claim, and
296
+ * consumed after an abort that found the row's park already claimed (the caller's rollback then settles the
297
+ * outcome-unknown terminal) — read the row. */
277
298
  | "checkpoint.resume_aborted"
278
299
  /** `runner.resume` was handed an outcome whose payload is unsafe to apply — e.g. a deny `reason`
279
300
  * carrying a `</system-reminder>` tag that would escape the model-facing wrapper (round-2 #1). */
280
301
  | "checkpoint.invalid_outcome"
281
302
  /** The checkpoint's {@link Checkpoint.version} is newer than this worker supports
282
303
  * (`> MAX_SUPPORTED_CHECKPOINT_VERSION`), or it carries a remote `workspaceHandle` but no
283
- * `executionEnvFactory` is wired to rebuild the env — either way this worker cannot safely resume it.
284
- * Rejected pre-CAS so the checkpoint stays `pending` and a capable worker can still resume it
304
+ * `executionEnvFactory` is wired to rebuild the env, or it is a row of a kind this engine no longer resumes (a retired
305
+ * seat; a synchronous child's park, `detail.reason` `leg_not_resumable`) — either way this worker cannot safely resume it.
306
+ * Rejected pre-CAS so the checkpoint stays `pending` and nothing is consumed: a capable worker can still resume it where
307
+ * `detail.reason` names a retryable arm; a terminal arm (`leg_not_resumable`, `seat_retired`, …) is the host's to expire
285
308
  * (design/49 §2/§3, code-ready council round-2). */
286
309
  | "checkpoint.unsupported_version"
287
310
  /** The resume's re-supplied config, or a mode the checkpoint row recorded, is one prepare would refuse
@@ -318,10 +341,12 @@ export declare class CheckpointError extends Error {
318
341
  * row is still `pending` — fail-closed; the caller must re-`get` and re-validate against the CURRENT state
319
342
  * (a fresh resume), never blindly retry. */
320
343
  | "checkpoint.reopened_concurrently"
321
- /** A post-CAS compensation {@link CheckpointStore.reopen} returned `false` — the consumed row could not
322
- * be flipped back to `pending` (missing, expired, or changed under a concurrent cycle), so no retryable
323
- * checkpoint exists. Surfaced instead of silently treating the failed reopen as committed, so the
324
- * caller's compensation path settles the token as terminally consumed. */
344
+ /** A resume aborted after its claim and before its leg started, whose claim the engine could not prove reversed:
345
+ * `detail.unstartedRow` (always present on this code) says which — `"declined"` (the store's {@link CheckpointStore.reopen}
346
+ * answered `false`: the row is no longer the resolved row this resume claimed — read it before deciding; if it is resolved
347
+ * or gone, a retry needs a fresh approval) or `"unknown"` (the reopen threw and the row does not show it landed: its state
348
+ * is unprovable — re-read it, and do not issue a fresh approval on the assumption the old one is dead). Surfaced instead
349
+ * of silently treating the failed reopen as committed. */
325
350
  | "checkpoint.reopen_failed"
326
351
  /** `Runner.voidVerifierPause` voided the card — the row IS expired and its env duty ran — but releasing the verifier
327
352
  * session's pin threw or did not settle within the teardown bound: the session stays pinned until it is unpinned. */
@@ -502,6 +527,12 @@ export declare class CheckpointError extends Error {
502
527
  /** On the permanent arms of `resume.preflight_rejected` (the deployment's `terminal` verdict) — who settled the row ({@link ResumePreflightSettler}).
503
528
  * Absent on every retry-later arm of that code and on every other code. */
504
529
  settler?: ResumePreflightSettler;
530
+ /** On a resume aborted after its claim and before its leg started, where the engine reversed the claim — what became of the
531
+ * row ({@link UnstartedRowOutcome}, the word a failed result states as `terminal.unstartedRow`): `"reopened"` on
532
+ * `checkpoint.resume_aborted`, `"declined"` / `"unknown"` on `checkpoint.reopen_failed`. The message's sentence is derived
533
+ * from the word; branch on the word. Absent on every other code and on every other arm of `checkpoint.resume_aborted` (an abort
534
+ * before the claim, the row untouched; an abort after the row's park was claimed, the row consumed — the code alone does not say which). */
535
+ unstartedRow?: UnstartedRowOutcome;
505
536
  /** On a `version_newer` refusal of a v10 row: the reader-requirement words the row lists that this worker lacks
506
537
  * (sorted, display only). Absent on every other arm. */
507
538
  requires?: readonly string[];
@@ -525,15 +556,22 @@ export declare class CheckpointError extends Error {
525
556
  /** The resume's `TaskSpec.signal` was aborted at the entrance — handed in ALREADY-ABORTED, or aborted
526
557
  * while the wake screen / `resumePreflight` / pre-claim re-adjudication still ran: ONE code for a
527
558
  * cancellation there (the seats' own codes keep what the hook itself did). Refused BEFORE the CAS, so
528
- * the checkpoint stays `pending`; consuming the decision on a leg that aborts at once would lose it. */
559
+ * the checkpoint stays `pending`; consuming the decision on a leg that aborts at once would lose it.
560
+ * The same code ends a resume aborted AFTER its claim and before its leg started: where the engine reversed the
561
+ * claim, `detail.unstartedRow` is `"reopened"` — the row is pending again, the same token resumes it. Without the
562
+ * member the code says nothing about the row: it is pending and untouched after an abort before the claim, and
563
+ * consumed after an abort that found the row's park already claimed (the caller's rollback then settles the
564
+ * outcome-unknown terminal) — read the row. */
529
565
  | "checkpoint.resume_aborted"
530
566
  /** `runner.resume` was handed an outcome whose payload is unsafe to apply — e.g. a deny `reason`
531
567
  * carrying a `</system-reminder>` tag that would escape the model-facing wrapper (round-2 #1). */
532
568
  | "checkpoint.invalid_outcome"
533
569
  /** The checkpoint's {@link Checkpoint.version} is newer than this worker supports
534
570
  * (`> MAX_SUPPORTED_CHECKPOINT_VERSION`), or it carries a remote `workspaceHandle` but no
535
- * `executionEnvFactory` is wired to rebuild the env — either way this worker cannot safely resume it.
536
- * Rejected pre-CAS so the checkpoint stays `pending` and a capable worker can still resume it
571
+ * `executionEnvFactory` is wired to rebuild the env, or it is a row of a kind this engine no longer resumes (a retired
572
+ * seat; a synchronous child's park, `detail.reason` `leg_not_resumable`) — either way this worker cannot safely resume it.
573
+ * Rejected pre-CAS so the checkpoint stays `pending` and nothing is consumed: a capable worker can still resume it where
574
+ * `detail.reason` names a retryable arm; a terminal arm (`leg_not_resumable`, `seat_retired`, …) is the host's to expire
537
575
  * (design/49 §2/§3, code-ready council round-2). */
538
576
  | "checkpoint.unsupported_version"
539
577
  /** The resume's re-supplied config, or a mode the checkpoint row recorded, is one prepare would refuse
@@ -570,10 +608,12 @@ export declare class CheckpointError extends Error {
570
608
  * row is still `pending` — fail-closed; the caller must re-`get` and re-validate against the CURRENT state
571
609
  * (a fresh resume), never blindly retry. */
572
610
  | "checkpoint.reopened_concurrently"
573
- /** A post-CAS compensation {@link CheckpointStore.reopen} returned `false` — the consumed row could not
574
- * be flipped back to `pending` (missing, expired, or changed under a concurrent cycle), so no retryable
575
- * checkpoint exists. Surfaced instead of silently treating the failed reopen as committed, so the
576
- * caller's compensation path settles the token as terminally consumed. */
611
+ /** A resume aborted after its claim and before its leg started, whose claim the engine could not prove reversed:
612
+ * `detail.unstartedRow` (always present on this code) says which — `"declined"` (the store's {@link CheckpointStore.reopen}
613
+ * answered `false`: the row is no longer the resolved row this resume claimed — read it before deciding; if it is resolved
614
+ * or gone, a retry needs a fresh approval) or `"unknown"` (the reopen threw and the row does not show it landed: its state
615
+ * is unprovable — re-read it, and do not issue a fresh approval on the assumption the old one is dead). Surfaced instead
616
+ * of silently treating the failed reopen as committed. */
577
617
  | "checkpoint.reopen_failed"
578
618
  /** `Runner.voidVerifierPause` voided the card — the row IS expired and its env duty ran — but releasing the verifier
579
619
  * session's pin threw or did not settle within the teardown bound: the session stays pinned until it is unpinned. */
@@ -754,6 +794,12 @@ export declare class CheckpointError extends Error {
754
794
  /** On the permanent arms of `resume.preflight_rejected` (the deployment's `terminal` verdict) — who settled the row ({@link ResumePreflightSettler}).
755
795
  * Absent on every retry-later arm of that code and on every other code. */
756
796
  settler?: ResumePreflightSettler;
797
+ /** On a resume aborted after its claim and before its leg started, where the engine reversed the claim — what became of the
798
+ * row ({@link UnstartedRowOutcome}, the word a failed result states as `terminal.unstartedRow`): `"reopened"` on
799
+ * `checkpoint.resume_aborted`, `"declined"` / `"unknown"` on `checkpoint.reopen_failed`. The message's sentence is derived
800
+ * from the word; branch on the word. Absent on every other code and on every other arm of `checkpoint.resume_aborted` (an abort
801
+ * before the claim, the row untouched; an abort after the row's park was claimed, the row consumed — the code alone does not say which). */
802
+ unstartedRow?: UnstartedRowOutcome;
757
803
  /** On a `version_newer` refusal of a v10 row: the reader-requirement words the row lists that this worker lacks
758
804
  * (sorted, display only). Absent on every other arm. */
759
805
  requires?: readonly string[];
@@ -20,6 +20,17 @@ export function safeDataValue(obj, key) {
20
20
  }
21
21
  }
22
22
  const PROBE_CAUSE_MAX_SHOWN = 8;
23
+ export function copiedRiskAxes(given) {
24
+ if (!isPlainRecord(given))
25
+ return {};
26
+ const irreversible = safeDataValue(given, "irreversible");
27
+ const egress = safeDataValue(given, "egress");
28
+ const copy = {
29
+ ...(typeof irreversible === "boolean" ? { irreversible } : {}),
30
+ ...(typeof egress === "boolean" ? { egress } : {}),
31
+ };
32
+ return Object.keys(copy).length > 0 ? { riskAxes: copy } : {};
33
+ }
23
34
  export function normalizeProbeCause(value) {
24
35
  if (!isPlainRecord(value))
25
36
  return undefined;
@@ -73,7 +84,7 @@ export const MAX_SUPPORTED_CHECKPOINT_VERSION = CHECKPOINT_FEATURES.requirements
73
84
  export function checkpointVersionOf(cp) {
74
85
  return cp.version ?? 0;
75
86
  }
76
- export const CHECKPOINT_CONFIG_REFUSAL_CODES = Object.freeze(["config.spec_retired_key", "config.output_style_invalid", "config.language_invalid", "config.permission_mode_invalid", "config.shell_gate_value_retired", "config.approval_reach_invalid", "config.run_origin_invalid", "config.user_invoked_skill_unknown", "config.skill_deny_unreadable", "config.user_attachment_invalid", "config.tool_face_control", "config.deps_retired_key", "config.peer_presence_invalid", "config.tool_model_gate_invalid", "config.microcompact_invalid", "config.prompt_selector_invalid", "resume_at.conflicts_resume", "resume_at.mode_without_target", "config.read_face_invalid", "config.write_face_invalid", "config.invalid_argument", "config.tool_face_invalid", "config.memory_delegation_evidence", "config.memory_provenance", "config.memory_capture_policy", "config.cross_boundary_posture", "config.advisor_tool_invalid", "config.advisor_model_invalid", "config.auto_consolidation", "config.unknown_role", "config.tool_materialize_invalid", "config.memory_persistence_invalid", "config.tool_materialize_unreachable", "config.locked_registry", "config.locked_key", "config.mcp_content_class", "config.skill_listing_budget_invalid", "config.limit_unknown_key", "config.limit_invalid", "config.attachment_invalid", "config.usage_window_invalid", "config.brain_call_guardrail_invalid", "config.retention_policy", "config.retention_capability", "config.invalid_checkpoint_store", "config.skill_base_dir_invalid", "config.host_floor_invalid", "config.credential_in_declaration", "config.credential_ref_invalid", "config.peer_seat_missing", "config.spec_member_unreadable", "config.spec_unknown_key"]);
87
+ export const CHECKPOINT_CONFIG_REFUSAL_CODES = Object.freeze(["config.spec_retired_key", "config.output_style_invalid", "config.language_invalid", "config.permission_mode_invalid", "config.shell_gate_value_retired", "config.approval_reach_invalid", "config.run_origin_invalid", "config.user_invoked_skill_unknown", "config.skill_deny_unreadable", "config.user_attachment_invalid", "config.tool_face_control", "config.deps_retired_key", "config.peer_presence_invalid", "config.tool_model_gate_invalid", "config.microcompact_invalid", "config.prompt_selector_invalid", "resume_at.conflicts_resume", "resume_at.mode_without_target", "config.read_face_invalid", "config.write_face_invalid", "config.invalid_argument", "config.tool_face_invalid", "config.memory_delegation_evidence", "config.memory_provenance", "config.memory_capture_policy", "config.cross_boundary_posture", "config.advisor_tool_invalid", "config.advisor_model_invalid", "config.auto_consolidation", "config.unknown_role", "config.tool_materialize_invalid", "config.memory_persistence_invalid", "config.tool_materialize_unreachable", "config.locked_registry", "config.locked_key", "config.mcp_content_class", "config.skill_listing_budget_invalid", "config.limit_unknown_key", "config.limit_invalid", "config.attachment_invalid", "config.usage_window_invalid", "config.brain_call_guardrail_invalid", "config.retention_policy", "config.retention_capability", "config.invalid_checkpoint_store", "config.skill_base_dir_invalid", "config.host_floor_invalid", "config.credential_in_declaration", "config.credential_ref_invalid", "config.peer_seat_missing", "config.interaction_posture", "config.agents.no_delegation_tool", "config.spec_member_unreadable", "config.spec_unknown_key"]);
77
88
  export const isCheckpointConfigRefusalCode = (word) => CHECKPOINT_CONFIG_REFUSAL_CODES.some((w) => w === word);
78
89
  export class CheckpointError extends Error {
79
90
  code;
@@ -55,6 +55,6 @@ export declare function checkpointHolderMatches(expect: ResolveExpectation | und
55
55
  export declare function assertHolderValue(holder: unknown): void;
56
56
  /** The store-seat refusal of a claim holder the seat's store cannot judge: a run handed {@link ResolveExpectation.holder} (through
57
57
  * `RunInternals.holder`) whose store does not declare `fence = { holder: true }`. The store seat's door and code
58
- * (`config.invalid_checkpoint_store`, as for a store without the execution declaration); no store (a disarmed run) has nothing to
58
+ * (`config.invalid_checkpoint_store`, as for a store without a required verb); no store (a disarmed run) has nothing to
59
59
  * judge. The holder's value is never named. */
60
60
  export declare function assertCheckpointStoreJudgesHolder(seat: "TaskSpec.checkpointStore" | "RunnerDeps.checkpointStore", store: CheckpointStore | undefined, holder: string | undefined): void;
@@ -200,7 +200,7 @@ type ShapeMembers = Pick<RowMembers, "gate" | "pendingAction" | "state" | "creat
200
200
  * this table and no shape test of their own, so over these members no face answers `ok` for a row another cannot read. The gate a
201
201
  * record of a registered gate kind; the pending action a record of a registered pending kind — the one the gate's kind pairs with in
202
202
  * the pause registry — a tool approval carrying a tool call id and, when it carries the identity of its tool, a capability id of the form
203
- * the engine mints ({@link isSha16}: the park mints it from the roster row, never by another route); the state a record; `createdAt` a finite number; `deadline` absent or a finite number; the resource ledger absent or a record
203
+ * the engine mints ({@link isSha16}: the park mints it from the roster row, never by another route); the state a record, whose leg task id (the summary's agent id reads it) is absent or a string — the task id as the leg minted it, a blank one included; `createdAt` a finite number; `deadline` absent or a finite number; the resource ledger absent or a record
204
204
  * (the summary reads its spend); the checkpoint id absent or a non-blank string (the summary echoes it and names the row by it: an
205
205
  * empty one, or one of whitespace alone, names no row, and no writer mints one); the synchronous-child block (the parent session and task and the tree's root
206
206
  * session and its occupant) each absent or a non-blank string of the same kind. Each entry names the member by its shape, never a particular value; `undefined`
@@ -171,7 +171,10 @@ const ROW_MEMBER_SHAPES = Object.freeze([
171
171
  return capabilityId === undefined || isSha16(capabilityId) ? undefined : "its tool approval's capability id is not a digest the engine mints (sixteen lowercase hex digits)";
172
172
  },
173
173
  ],
174
- ["state", (m) => (isRecord(m.state) ? undefined : "its state is not an object")],
174
+ [
175
+ "state",
176
+ (m) => !isRecord(m.state) ? "its state is not an object" : ((id) => id === undefined || typeof id === "string")(memberOf(m.state, "legTaskId")) ? undefined : "its state's leg task id is not a string",
177
+ ],
175
178
  ["createdAt", (m) => (isFiniteNumber(m.createdAt) ? undefined : "its createdAt is not a finite number")],
176
179
  ["deadline", (m) => (m.deadline === undefined || isFiniteNumber(m.deadline) ? undefined : "its deadline is not a finite number")],
177
180
  ["resourceLedger", (m) => (m.resourceLedger === undefined || isRecord(m.resourceLedger) ? undefined : "its resource ledger is not an object")],
@@ -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"];
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"];
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;
@@ -216,6 +216,12 @@ export declare const CHECKPOINT_STATE_REQUIREMENTS: {
216
216
  readonly rowTaskId: {
217
217
  readonly word: "row_task_id";
218
218
  };
219
+ readonly legTaskId: {
220
+ readonly ignorable: "shown, never decided (card, listing, transcript or reported count): every read of the name renders, carries transcript or counts";
221
+ };
222
+ readonly fromSubagent: {
223
+ readonly word: "from_subagent";
224
+ };
219
225
  readonly placementRootSessionId: {
220
226
  readonly digest: "decision-read";
221
227
  };
@@ -312,6 +318,9 @@ export declare const PENDING_ACTION_REQUIREMENTS: {
312
318
  readonly cardAskRule: {
313
319
  readonly ignorable: "shown, never decided (card, listing, transcript or reported count): every read of the name renders, carries transcript or counts";
314
320
  };
321
+ readonly headline: {
322
+ readonly ignorable: "shown, never decided (card, listing, transcript or reported count): every read of the name renders, carries transcript or counts";
323
+ };
315
324
  readonly boundInputHash: {
316
325
  readonly word: "tool_binding";
317
326
  };
@@ -390,6 +399,9 @@ export declare const PENDING_ACTION_REQUIREMENTS: {
390
399
  readonly requestedByCallId: {
391
400
  readonly ignorable: "shown, never decided (card, listing, transcript or reported count): every read of the name renders, carries transcript or counts";
392
401
  };
402
+ readonly planContentHash: {
403
+ readonly ignorable: "shown, never decided (card, listing, transcript or reported count): every read of the name renders, carries transcript or counts";
404
+ };
393
405
  };
394
406
  readonly task_done: {
395
407
  readonly kind: {
@@ -628,6 +640,12 @@ export declare const CHECKPOINT_REQUIREMENTS: {
628
640
  readonly rowTaskId: {
629
641
  readonly word: "row_task_id";
630
642
  };
643
+ readonly legTaskId: {
644
+ readonly ignorable: "shown, never decided (card, listing, transcript or reported count): every read of the name renders, carries transcript or counts";
645
+ };
646
+ readonly fromSubagent: {
647
+ readonly word: "from_subagent";
648
+ };
631
649
  readonly placementRootSessionId: {
632
650
  readonly digest: "decision-read";
633
651
  };
@@ -872,6 +890,9 @@ export declare const CHECKPOINT_REQUIREMENTS: {
872
890
  readonly cardAskRule: {
873
891
  readonly ignorable: "shown, never decided (card, listing, transcript or reported count): every read of the name renders, carries transcript or counts";
874
892
  };
893
+ readonly headline: {
894
+ readonly ignorable: "shown, never decided (card, listing, transcript or reported count): every read of the name renders, carries transcript or counts";
895
+ };
875
896
  readonly boundInputHash: {
876
897
  readonly word: "tool_binding";
877
898
  };
@@ -950,6 +971,9 @@ export declare const CHECKPOINT_REQUIREMENTS: {
950
971
  readonly requestedByCallId: {
951
972
  readonly ignorable: "shown, never decided (card, listing, transcript or reported count): every read of the name renders, carries transcript or counts";
952
973
  };
974
+ readonly planContentHash: {
975
+ readonly ignorable: "shown, never decided (card, listing, transcript or reported count): every read of the name renders, carries transcript or counts";
976
+ };
953
977
  };
954
978
  readonly task_done: {
955
979
  readonly kind: {
@@ -46,6 +46,7 @@ export const REQUIREMENT_WORDS = Object.freeze([
46
46
  "tool_binding",
47
47
  "raw_name_identity",
48
48
  "isolation_scope",
49
+ "from_subagent",
49
50
  ]);
50
51
  export function isRequirementWord(word) {
51
52
  return typeof word === "string" && REQUIREMENT_WORDS.includes(word);
@@ -103,6 +104,8 @@ export const CHECKPOINT_STATE_REQUIREMENTS = {
103
104
  delegationProvenance: { word: "delegation_provenance" },
104
105
  isDelegatedChild: DECISION_READ,
105
106
  rowTaskId: { word: "row_task_id" },
107
+ legTaskId: SHOWN,
108
+ fromSubagent: { word: "from_subagent" },
106
109
  placementRootSessionId: DECISION_READ,
107
110
  compositionLeg: { word: "composition_leg" },
108
111
  externalContentTarget: DECISION_READ,
@@ -137,6 +140,7 @@ export const PENDING_ACTION_REQUIREMENTS = {
137
140
  askReasons: SHOWN,
138
141
  cardMessage: SHOWN,
139
142
  cardAskRule: SHOWN,
143
+ headline: SHOWN,
140
144
  boundInputHash: { word: "tool_binding" },
141
145
  boundGrantDigest: { word: "skill_card_binding" },
142
146
  boundGrants: SHOWN,
@@ -159,7 +163,7 @@ export const PENDING_ACTION_REQUIREMENTS = {
159
163
  },
160
164
  resource_limit: { kind: DECISION_READ, reason: DECISION_READ },
161
165
  review: { kind: DECISION_READ },
162
- plan_review: { kind: { word: "binding" }, requestedByCallId: SHOWN },
166
+ plan_review: { kind: { word: "binding" }, requestedByCallId: SHOWN, planContentHash: SHOWN },
163
167
  task_done: { kind: DECISION_READ },
164
168
  };
165
169
  export const CHECKPOINT_GATE_REQUIREMENTS = {
@@ -45,6 +45,7 @@ import type { PermissionMode, ShellGateDoctrine } from "./types.js";
45
45
  export declare const ROW_REFUSAL_SENTENCES: Readonly<{
46
46
  readonly "checkpoint.unsupported_version|version_newer": "This engine cannot resume this checkpoint: it was parked by a newer engine release, whose row this release cannot read. The checkpoint stays pending; resume it on a worker at or above the release that parked it.";
47
47
  readonly "checkpoint.unsupported_version|seat_retired": "This engine cannot resume this checkpoint: it carries a seat an earlier engine release wrote and this release retired. The checkpoint stays pending and nothing was consumed; finish it on a worker of a release that still reads that seat, or expire it.";
48
+ readonly "checkpoint.unsupported_version|leg_not_resumable": "This engine cannot resume this checkpoint: it was parked by a synchronous child leg, and nobody resumes such a leg's parks — its result has no road back to the run that spawned it. Nothing was consumed; expire it, and run the work again: have a person who is present approve it live, or delegate it as a background agent whose approvals can wait.";
48
49
  readonly "checkpoint.invalid_outcome|requirements_damaged": "This engine cannot resume this checkpoint: its content does not read the way it was written — it was parked by an earlier engine release whose reading this release changed, or it was changed in storage. The checkpoint stays pending; start the task again (a worker of the release that parked it may still resume it).";
49
50
  readonly "checkpoint.invalid_outcome|real_approval_damaged": "This engine cannot resume this checkpoint: its real-approval mark is missing or malformed (a corruption or downgrade guard). The checkpoint stays pending.";
50
51
  readonly "checkpoint.invalid_outcome|real_approval_forged": "This engine cannot resume this checkpoint: it carries a real-approval mark no release of its row format ever wrote (a corruption or forgery guard). The checkpoint stays pending.";
@@ -12,9 +12,11 @@ import { refusePersistedToolNames } from "./runner/sub-agent-deny-lists.js";
12
12
  import { boundedThrownName } from "./thrown-value.js";
13
13
  import { memberPresent } from "./own-property-receipt.js";
14
14
  import { CHECKPOINT_ROW_DAMAGED_SENTENCE, rowMemberProblem } from "./checkpoint-queries.js";
15
+ import { SYNC_CHILD_BLOCK_MEMBERS } from "./leg-identity.js";
15
16
  export const ROW_REFUSAL_SENTENCES = Object.freeze({
16
17
  "checkpoint.unsupported_version|version_newer": "This engine cannot resume this checkpoint: it was parked by a newer engine release, whose row this release cannot read. The checkpoint stays pending; resume it on a worker at or above the release that parked it.",
17
18
  "checkpoint.unsupported_version|seat_retired": "This engine cannot resume this checkpoint: it carries a seat an earlier engine release wrote and this release retired. The checkpoint stays pending and nothing was consumed; finish it on a worker of a release that still reads that seat, or expire it.",
19
+ "checkpoint.unsupported_version|leg_not_resumable": "This engine cannot resume this checkpoint: it was parked by a synchronous child leg, and nobody resumes such a leg's parks — its result has no road back to the run that spawned it. Nothing was consumed; expire it, and run the work again: have a person who is present approve it live, or delegate it as a background agent whose approvals can wait.",
18
20
  "checkpoint.invalid_outcome|requirements_damaged": CHECKPOINT_ROW_DAMAGED_SENTENCE,
19
21
  "checkpoint.invalid_outcome|real_approval_damaged": "This engine cannot resume this checkpoint: its real-approval mark is missing or malformed (a corruption or downgrade guard). The checkpoint stays pending.",
20
22
  "checkpoint.invalid_outcome|real_approval_forged": "This engine cannot resume this checkpoint: it carries a real-approval mark no release of its row format ever wrote (a corruption or forgery guard). The checkpoint stays pending.",
@@ -107,6 +109,8 @@ function rowRefusalOf(cp) {
107
109
  const shape = rowMemberProblem(cp);
108
110
  if (shape !== undefined)
109
111
  return new CheckpointError("checkpoint.invalid_outcome", `this checkpoint's \`${shape.member}\` does not read as every reader of a row reads it (${shape.problem}) — a damaged row`, { reason: "requirements_damaged" });
112
+ if (SYNC_CHILD_BLOCK_MEMBERS.some((m) => memberPresent(cp, m)))
113
+ return new CheckpointError("checkpoint.unsupported_version", "this checkpoint was parked by a synchronous child leg (it carries the synchronous-child block), and this engine resumes no such leg: nobody can resume it and its result has no road back to the run that spawned it", { reason: "leg_not_resumable" });
110
114
  const retiredSeed = retiredModeSeedRefusal(cp.state);
111
115
  if (retiredSeed !== undefined)
112
116
  return retiredSeed;