@astrosheep/keiyaku 4.6.30 → 4.6.31

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 (398) hide show
  1. package/README.md +5 -5
  2. package/build/plugins/claude/.claude-plugin/plugin.json +1 -1
  3. package/build/plugins/claude/skills/keiyaku/SKILL.md +12 -12
  4. package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +16 -16
  5. package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +14 -14
  6. package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +10 -10
  7. package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +15 -15
  8. package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +16 -16
  9. package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +21 -21
  10. package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
  11. package/build/plugins/codex/skills/keiyaku/SKILL.md +12 -12
  12. package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +16 -16
  13. package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +14 -14
  14. package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +10 -10
  15. package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +15 -15
  16. package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +16 -16
  17. package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +21 -21
  18. package/build/plugins/opencode/package.json +1 -1
  19. package/build/plugins/opencode/skills/keiyaku/SKILL.md +12 -12
  20. package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +16 -16
  21. package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +14 -14
  22. package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +10 -10
  23. package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +15 -15
  24. package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +16 -16
  25. package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +21 -21
  26. package/build/plugins/pi/README.md +5 -5
  27. package/build/plugins/pi/akuma-tools.ts +17 -23
  28. package/build/skills/keiyaku/SKILL.md +12 -12
  29. package/build/skills/keiyaku-akuma/SKILL.md +16 -16
  30. package/build/skills/keiyaku-akuma/references/automation.md +14 -14
  31. package/build/skills/keiyaku-babysit/SKILL.md +10 -10
  32. package/build/skills/keiyaku-bind/SKILL.md +15 -15
  33. package/build/skills/keiyaku-debt/SKILL.md +16 -16
  34. package/build/skills/keiyaku-workflow/SKILL.md +21 -21
  35. package/build/src/akuma/akuma-call.d.ts +1 -1
  36. package/build/src/akuma/akuma-call.js +9 -9
  37. package/build/src/akuma/akuma-errors.d.ts +5 -5
  38. package/build/src/akuma/akuma-instance.d.ts +355 -12
  39. package/build/src/akuma/akuma-instance.js +20 -20
  40. package/build/src/akuma/akuma-observe.d.ts +11 -12
  41. package/build/src/akuma/akuma-observe.js +34 -26
  42. package/build/src/akuma/akuma-owner.d.ts +32 -11
  43. package/build/src/akuma/akuma-owner.js +35 -16
  44. package/build/src/akuma/akuma-probe.d.ts +3 -3
  45. package/build/src/akuma/akuma-probe.js +2 -2
  46. package/build/src/akuma/akuma-selection-execution.d.ts +985 -1
  47. package/build/src/akuma/akuma-selection-execution.js +42 -18
  48. package/build/src/akuma/akuma-stream.d.ts +2 -2
  49. package/build/src/akuma/akuma-stream.js +1 -1
  50. package/build/src/akuma/akuma-wait.d.ts +5 -5
  51. package/build/src/akuma/akuma-wait.js +52 -14
  52. package/build/src/akuma/akuma.d.ts +245 -271
  53. package/build/src/akuma/akuma.js +98 -46
  54. package/build/src/akuma/archetype.d.ts +19 -6
  55. package/build/src/akuma/archetype.js +25 -9
  56. package/build/src/akuma/body-launch.d.ts +2 -2
  57. package/build/src/akuma/body.js +4 -4
  58. package/build/src/akuma/call-initial-tell.d.ts +60 -44
  59. package/build/src/akuma/call-initial-tell.js +41 -2
  60. package/build/src/akuma/caller.d.ts +26 -17
  61. package/build/src/akuma/caller.js +22 -9
  62. package/build/src/akuma/coordinate.d.ts +9 -0
  63. package/build/src/akuma/coordinate.js +13 -0
  64. package/build/src/akuma/detached-body.js +2 -2
  65. package/build/src/akuma/dispatch-association.d.ts +4 -4
  66. package/build/src/akuma/dispatch-association.js +12 -3
  67. package/build/src/akuma/execution-instructions.js +2 -2
  68. package/build/src/akuma/heart/facts.d.ts +29 -7
  69. package/build/src/akuma/heart/facts.js +13 -0
  70. package/build/src/akuma/heart/index.d.ts +0 -3
  71. package/build/src/akuma/heart/index.js +3 -6
  72. package/build/src/akuma/heart/rows.js +2 -2
  73. package/build/src/akuma/heart/soul.js +5 -5
  74. package/build/src/akuma/identity.d.ts +17 -16
  75. package/build/src/akuma/identity.js +20 -19
  76. package/build/src/akuma/index.d.ts +1 -2
  77. package/build/src/akuma/lineage-cache.d.ts +4 -4
  78. package/build/src/akuma/lineage-cache.js +10 -10
  79. package/build/src/akuma/projection-read.d.ts +2 -5
  80. package/build/src/akuma/projection-read.js +34 -47
  81. package/build/src/akuma/projection.d.ts +659 -569
  82. package/build/src/akuma/projection.js +203 -94
  83. package/build/src/akuma/providers/acp/index.js +1 -1
  84. package/build/src/akuma/providers/execution-environment.d.ts +1 -3
  85. package/build/src/akuma/providers/execution-environment.js +0 -4
  86. package/build/src/akuma/publication.d.ts +2 -2
  87. package/build/src/akuma/publication.js +3 -3
  88. package/build/src/akuma/retention.js +2 -2
  89. package/build/src/akuma/selection-observation.d.ts +507 -43
  90. package/build/src/akuma/selection-observation.js +153 -1
  91. package/build/src/akuma/status-projection.d.ts +288 -0
  92. package/build/src/akuma/status-projection.js +154 -0
  93. package/build/src/akuma/turn-drive.js +0 -3
  94. package/build/src/alias/index.d.ts +9 -4
  95. package/build/src/alias/index.js +11 -9
  96. package/build/src/bounded-list.d.ts +8 -0
  97. package/build/src/bounded-list.js +9 -0
  98. package/build/src/cli/commands/akuma-grammar.d.ts +2 -2
  99. package/build/src/cli/commands/akuma-grammar.js +21 -21
  100. package/build/src/cli/commands/akuma.d.ts +1 -2
  101. package/build/src/cli/commands/akuma.js +115 -251
  102. package/build/src/cli/commands/contract-grammar.d.ts +4 -3
  103. package/build/src/cli/commands/contract-grammar.js +39 -22
  104. package/build/src/cli/commands/contract-help.d.ts +3 -1
  105. package/build/src/cli/commands/contract-help.js +4 -3
  106. package/build/src/cli/commands/contract.d.ts +6 -3
  107. package/build/src/cli/commands/contract.js +203 -434
  108. package/build/src/cli/commands/debt.d.ts +2 -3
  109. package/build/src/cli/commands/debt.js +101 -317
  110. package/build/src/cli/commands/report.js +11 -28
  111. package/build/src/cli/commands/whoami.d.ts +3 -43
  112. package/build/src/cli/commands/whoami.js +8 -121
  113. package/build/src/cli/coordinates.d.ts +4 -35
  114. package/build/src/cli/coordinates.js +13 -129
  115. package/build/src/cli/parse.d.ts +0 -6
  116. package/build/src/cli/parse.js +5 -48
  117. package/build/src/cli/render/akuma-activity.d.ts +31 -16
  118. package/build/src/cli/render/akuma-activity.js +157 -149
  119. package/build/src/cli/render/akuma-tool.d.ts +3 -6
  120. package/build/src/cli/render/akuma-tool.js +20 -14
  121. package/build/src/cli/render/akuma.d.ts +25 -26
  122. package/build/src/cli/render/akuma.js +100 -129
  123. package/build/src/cli/render/catalog.d.ts +4 -7
  124. package/build/src/cli/render/catalog.js +52 -99
  125. package/build/src/cli/render/contract-history.d.ts +3 -1
  126. package/build/src/cli/render/contract-history.js +140 -215
  127. package/build/src/cli/render/contract-observation.d.ts +43 -30
  128. package/build/src/cli/render/contract-observation.js +64 -31
  129. package/build/src/cli/render/contract-wait.js +6 -6
  130. package/build/src/cli/render/contract.d.ts +41 -6
  131. package/build/src/cli/render/contract.js +274 -370
  132. package/build/src/cli/render/debt.d.ts +9 -19
  133. package/build/src/cli/render/debt.js +120 -185
  134. package/build/src/cli/render/delivery-preview.d.ts +4 -3
  135. package/build/src/cli/render/delivery-preview.js +68 -96
  136. package/build/src/cli/render/kanshi-akuma.d.ts +4 -4
  137. package/build/src/cli/render/kanshi-akuma.js +70 -59
  138. package/build/src/cli/render/kanshi.d.ts +4 -4
  139. package/build/src/cli/render/kanshi.js +205 -221
  140. package/build/src/cli/render/marks.d.ts +11 -2
  141. package/build/src/cli/render/marks.js +13 -3
  142. package/build/src/cli/render/nuke.d.ts +3 -3
  143. package/build/src/cli/render/nuke.js +13 -16
  144. package/build/src/cli/render/receipt.d.ts +37 -43
  145. package/build/src/cli/render/receipt.js +313 -236
  146. package/build/src/cli/render/reconcile.d.ts +6 -4
  147. package/build/src/cli/render/reconcile.js +53 -137
  148. package/build/src/cli/render/refusal.d.ts +3 -2
  149. package/build/src/cli/render/refusal.js +73 -54
  150. package/build/src/cli/render/region.d.ts +11 -2
  151. package/build/src/cli/render/region.js +17 -23
  152. package/build/src/cli/render/settings.d.ts +0 -1
  153. package/build/src/cli/render/settings.js +8 -17
  154. package/build/src/cli/render/terminal.d.ts +2 -0
  155. package/build/src/cli/render/verbs.d.ts +4 -0
  156. package/build/src/cli/render/verbs.js +312 -0
  157. package/build/src/cli/render/whoami.d.ts +1 -1
  158. package/build/src/cli/render/whoami.js +24 -31
  159. package/build/src/cli/runtime.d.ts +3 -11
  160. package/build/src/cli/runtime.js +96 -79
  161. package/build/src/cli/scan.d.ts +1 -1
  162. package/build/src/cli/streams.js +1 -0
  163. package/build/src/contract-guidance.js +2 -2
  164. package/build/src/contract-worktree.d.ts +2 -15
  165. package/build/src/contract-worktree.js +19 -35
  166. package/build/src/core/facts/observation.d.ts +4 -5
  167. package/build/src/core/facts/observation.js +7 -9
  168. package/build/src/core/verbs/amend.d.ts +0 -1
  169. package/build/src/core/verbs/amend.js +3 -3
  170. package/build/src/core/verbs/bind.d.ts +0 -1
  171. package/build/src/core/verbs/bind.js +5 -5
  172. package/build/src/core/verbs/deliver.d.ts +3 -2
  173. package/build/src/core/verbs/deliver.js +2 -2
  174. package/build/src/core/verbs/placement.d.ts +0 -5
  175. package/build/src/core/verbs/placement.js +4 -6
  176. package/build/src/core/verbs/reintegrate.d.ts +0 -1
  177. package/build/src/core/verbs/reintegrate.js +2 -2
  178. package/build/src/debt/board.d.ts +132 -116
  179. package/build/src/debt/board.js +138 -94
  180. package/build/src/debt/catalog.d.ts +4 -4
  181. package/build/src/debt/catalog.js +2 -18
  182. package/build/src/debt/context.d.ts +15 -3
  183. package/build/src/debt/context.js +12 -1
  184. package/build/src/debt/created-observation.d.ts +5 -17
  185. package/build/src/debt/created-observation.js +14 -6
  186. package/build/src/debt/document.d.ts +20 -15
  187. package/build/src/debt/document.js +18 -1
  188. package/build/src/debt/index.d.ts +346 -23
  189. package/build/src/debt/index.js +68 -22
  190. package/build/src/debt/input.d.ts +2 -1
  191. package/build/src/debt/input.js +14 -0
  192. package/build/src/debt/lifecycle-operations.d.ts +2 -2
  193. package/build/src/debt/lifecycle-operations.js +14 -22
  194. package/build/src/debt/operation-types.d.ts +188 -66
  195. package/build/src/debt/operation-types.js +113 -1
  196. package/build/src/debt/operations.d.ts +11 -10
  197. package/build/src/debt/operations.js +46 -71
  198. package/build/src/debt/query.d.ts +14 -10
  199. package/build/src/debt/query.js +3 -12
  200. package/build/src/debt/store.d.ts +4 -2
  201. package/build/src/debt/store.js +8 -8
  202. package/build/src/debt/view.d.ts +0 -3
  203. package/build/src/debt/view.js +0 -4
  204. package/build/src/dispatch/index.d.ts +22 -5
  205. package/build/src/dispatch/index.js +46 -37
  206. package/build/src/git/admission.d.ts +2 -2
  207. package/build/src/git/admission.js +2 -1
  208. package/build/src/git/hooks.d.ts +14 -35
  209. package/build/src/git/hooks.js +45 -25
  210. package/build/src/git/integration.d.ts +6 -24
  211. package/build/src/git/integration.js +10 -16
  212. package/build/src/git/private-state-seat.d.ts +2 -2
  213. package/build/src/git/private-state-seat.js +2 -1
  214. package/build/src/git/reconcile.d.ts +17 -79
  215. package/build/src/git/reconcile.js +37 -52
  216. package/build/src/git/scratch.d.ts +3 -3
  217. package/build/src/git/scratch.js +4 -1
  218. package/build/src/git/target-placement.d.ts +23 -31
  219. package/build/src/git/target-placement.js +42 -27
  220. package/build/src/git/target.d.ts +2 -2
  221. package/build/src/git/target.js +2 -1
  222. package/build/src/git/tender.d.ts +7 -39
  223. package/build/src/git/tender.js +21 -54
  224. package/build/src/git/terminal-reconcile.js +15 -18
  225. package/build/src/git/terminal-seal.d.ts +2 -4
  226. package/build/src/git/terminal-seal.js +7 -33
  227. package/build/src/git/workspace.d.ts +65 -41
  228. package/build/src/git/workspace.js +45 -14
  229. package/build/src/identity/selector.d.ts +2 -0
  230. package/build/src/identity/selector.js +13 -3
  231. package/build/src/index.d.ts +48 -54
  232. package/build/src/index.js +31 -43
  233. package/build/src/kanshi/counts.d.ts +42 -8
  234. package/build/src/kanshi/counts.js +13 -2
  235. package/build/src/kanshi/index.d.ts +5 -5
  236. package/build/src/kanshi/index.js +4 -3
  237. package/build/src/kanshi/read.d.ts +489 -6
  238. package/build/src/kanshi/read.js +334 -483
  239. package/build/src/kanshi/report.d.ts +2504 -103
  240. package/build/src/kanshi/report.js +165 -1
  241. package/build/src/kanshi/select.d.ts +0 -8
  242. package/build/src/kanshi/select.js +20 -59
  243. package/build/src/library/address.d.ts +8 -8
  244. package/build/src/library/address.js +7 -7
  245. package/build/src/library/akuma-creation.d.ts +690 -84
  246. package/build/src/library/akuma-creation.js +202 -142
  247. package/build/src/library/akuma-retention.d.ts +2 -2
  248. package/build/src/library/akuma-retention.js +2 -2
  249. package/build/src/library/akumas.d.ts +10 -6
  250. package/build/src/library/akumas.js +24 -7
  251. package/build/src/library/bind.d.ts +28 -54
  252. package/build/src/library/bind.js +6 -4
  253. package/build/src/library/continuation.d.ts +197 -479
  254. package/build/src/library/continuation.js +40 -23
  255. package/build/src/library/contract-address.d.ts +6 -5
  256. package/build/src/library/contract-address.js +5 -7
  257. package/build/src/library/contract-composition.d.ts +18 -12
  258. package/build/src/library/contract-composition.js +55 -47
  259. package/build/src/library/contract-creation.d.ts +3 -2
  260. package/build/src/library/contract-creation.js +38 -32
  261. package/build/src/library/contract-execution.js +77 -38
  262. package/build/src/library/contract-outcomes.d.ts +1877 -27
  263. package/build/src/library/contract-outcomes.js +93 -10
  264. package/build/src/library/contract-settings.d.ts +2 -2
  265. package/build/src/library/contract-settings.js +18 -14
  266. package/build/src/library/contract-types.d.ts +238 -61
  267. package/build/src/library/contract-types.js +131 -1
  268. package/build/src/library/contract-wait.d.ts +38 -17
  269. package/build/src/library/contract-wait.js +40 -10
  270. package/build/src/library/delivery.d.ts +588 -36
  271. package/build/src/library/delivery.js +35 -27
  272. package/build/src/library/input.d.ts +1 -1
  273. package/build/src/library/input.js +1 -2
  274. package/build/src/library/invocation.d.ts +11 -7
  275. package/build/src/library/invocation.js +42 -51
  276. package/build/src/library/kei.d.ts +48 -0
  277. package/build/src/library/kei.js +256 -0
  278. package/build/src/library/keiyaku-attribution.d.ts +11 -0
  279. package/build/src/{cli/delivery-identity.js → library/keiyaku-attribution.js} +12 -1
  280. package/build/src/library/keiyaku-classify.d.ts +11 -0
  281. package/build/src/library/keiyaku-classify.js +146 -0
  282. package/build/src/library/keiyaku-coordinates.d.ts +31 -0
  283. package/build/src/library/keiyaku-coordinates.js +103 -0
  284. package/build/src/library/keiyaku-debt.d.ts +142 -0
  285. package/build/src/library/keiyaku-debt.js +188 -0
  286. package/build/src/library/keiyaku-identity.d.ts +58 -0
  287. package/build/src/library/keiyaku-identity.js +176 -0
  288. package/build/src/library/keiyaku-policy.d.ts +27 -0
  289. package/build/src/library/keiyaku-policy.js +44 -0
  290. package/build/src/library/keiyaku-status.d.ts +1487 -0
  291. package/build/src/library/keiyaku-status.js +92 -0
  292. package/build/src/library/keiyaku-verbs.d.ts +6774 -0
  293. package/build/src/library/keiyaku-verbs.js +458 -0
  294. package/build/src/library/keiyaku.d.ts +871 -38
  295. package/build/src/library/keiyaku.js +677 -127
  296. package/build/src/library/nuke.d.ts +22 -0
  297. package/build/src/library/nuke.js +4 -1
  298. package/build/src/library/outcome.d.ts +706 -692
  299. package/build/src/library/outcome.js +582 -167
  300. package/build/src/library/reconcile.d.ts +464 -116
  301. package/build/src/library/reconcile.js +174 -102
  302. package/build/src/library/refusal.d.ts +113 -577
  303. package/build/src/library/refusal.js +64 -51
  304. package/build/src/library/region.d.ts +5 -24
  305. package/build/src/library/region.js +6 -21
  306. package/build/src/library/selection.d.ts +181 -32
  307. package/build/src/library/selection.js +99 -64
  308. package/build/src/mcp/adapter.d.ts +11 -0
  309. package/build/src/mcp/adapter.js +106 -0
  310. package/build/src/mcp/help.d.ts +1 -0
  311. package/build/src/mcp/help.js +26 -0
  312. package/build/src/mcp/index.d.ts +2 -0
  313. package/build/src/mcp/index.js +37 -0
  314. package/build/src/plugin/public.d.ts +1 -1
  315. package/build/src/plugin/runtime.js +17 -14
  316. package/build/src/protocol/arc.d.ts +4 -1
  317. package/build/src/protocol/arc.js +7 -1
  318. package/build/src/protocol/attempt.d.ts +2 -3
  319. package/build/src/protocol/attempt.js +1 -10
  320. package/build/src/protocol/bind.d.ts +6 -7
  321. package/build/src/protocol/bind.js +9 -5
  322. package/build/src/protocol/completion.d.ts +448 -12
  323. package/build/src/protocol/completion.js +164 -26
  324. package/build/src/protocol/deliver.d.ts +26 -24
  325. package/build/src/protocol/deliver.js +24 -52
  326. package/build/src/protocol/delivery-preview.d.ts +97 -247
  327. package/build/src/protocol/delivery-preview.js +132 -128
  328. package/build/src/protocol/execution-observation.d.ts +146 -123
  329. package/build/src/protocol/execution-observation.js +9 -6
  330. package/build/src/protocol/intent.d.ts +9 -48
  331. package/build/src/protocol/intent.js +32 -46
  332. package/build/src/protocol/operations.d.ts +207 -505
  333. package/build/src/protocol/operations.js +81 -134
  334. package/build/src/protocol/placement.d.ts +0 -1
  335. package/build/src/protocol/placement.js +5 -2
  336. package/build/src/protocol/progress.d.ts +7 -97
  337. package/build/src/protocol/progress.js +7 -55
  338. package/build/src/protocol/read/observation.d.ts +13 -6
  339. package/build/src/protocol/read/observation.js +10 -9
  340. package/build/src/protocol/read/status.d.ts +464 -93
  341. package/build/src/protocol/read/status.js +372 -85
  342. package/build/src/protocol/reconcile.d.ts +2 -0
  343. package/build/src/protocol/reconcile.js +12 -11
  344. package/build/src/protocol/reintegrate.d.ts +0 -1
  345. package/build/src/protocol/reintegrate.js +4 -4
  346. package/build/src/protocol/result-leaves.d.ts +528 -0
  347. package/build/src/protocol/result-leaves.js +195 -0
  348. package/build/src/protocol/result-reasons.d.ts +129 -0
  349. package/build/src/protocol/result-reasons.js +87 -0
  350. package/build/src/protocol/review.d.ts +14 -11
  351. package/build/src/protocol/review.js +30 -14
  352. package/build/src/protocol/run.d.ts +4 -4
  353. package/build/src/protocol/run.js +4 -1
  354. package/build/src/protocol/verify.d.ts +359 -30
  355. package/build/src/protocol/verify.js +118 -28
  356. package/build/src/region.d.ts +26 -0
  357. package/build/src/region.js +28 -0
  358. package/build/src/runtime/proc/diagnostic.d.ts +11 -0
  359. package/build/src/runtime/proc/diagnostic.js +20 -0
  360. package/build/src/runtime/proc/windows-launch.exe +0 -0
  361. package/build/src/settings.d.ts +126 -32
  362. package/build/src/settings.js +107 -34
  363. package/build/src/settlement/settle.d.ts +29 -12
  364. package/build/src/settlement/settle.js +22 -15
  365. package/build/src/verification/declaration.d.ts +1 -3
  366. package/build/src/verification/declaration.js +2 -5
  367. package/build/src/verification/execution.d.ts +7 -19
  368. package/build/src/verification/execution.js +37 -16
  369. package/build/src/verification/observation.d.ts +13 -13
  370. package/build/src/verification/observation.js +9 -7
  371. package/build/src/world.d.ts +8 -0
  372. package/build/src/world.js +7 -0
  373. package/package.json +6 -5
  374. package/plugins/paseo/plugin/server/keiyaku.ts +13 -46
  375. package/plugins/paseo/plugin/server/message.ts +8 -30
  376. package/plugins/paseo/plugin/server/mirror.ts +16 -20
  377. package/plugins/paseo/plugin/server/provider.ts +1 -1
  378. package/plugins/paseo/plugin/server/sdk.ts +14 -6
  379. package/plugins/pi/README.md +5 -5
  380. package/plugins/pi/akuma-tools.ts +17 -23
  381. package/skills/keiyaku/SKILL.md +12 -12
  382. package/skills/keiyaku-akuma/SKILL.md +16 -16
  383. package/skills/keiyaku-akuma/references/automation.md +14 -14
  384. package/skills/keiyaku-babysit/SKILL.md +10 -10
  385. package/skills/keiyaku-bind/SKILL.md +15 -15
  386. package/skills/keiyaku-debt/SKILL.md +16 -16
  387. package/skills/keiyaku-workflow/SKILL.md +21 -21
  388. package/build/src/cli/actor.d.ts +0 -10
  389. package/build/src/cli/actor.js +0 -24
  390. package/build/src/cli/akuma-caller.d.ts +0 -3
  391. package/build/src/cli/akuma-caller.js +0 -31
  392. package/build/src/cli/delivery-identity.d.ts +0 -3
  393. package/build/src/cli/render/effects.d.ts +0 -26
  394. package/build/src/cli/render/effects.js +0 -41
  395. package/build/src/cli/selectors.d.ts +0 -10
  396. package/build/src/cli/selectors.js +0 -42
  397. package/build/src/markdown/diff.d.ts +0 -1
  398. package/build/src/markdown/diff.js +0 -4
@@ -1,35 +1,1869 @@
1
1
  /** @architectureCompositionRoot */
2
- import type { ContractId, Gate } from "../core/facts/types.js";
3
- import type { DeliveryPreviewReport } from "../protocol/delivery-preview.js";
2
+ import { z } from "zod";
3
+ import { compactReason, type CompactReason } from "../protocol/result-reasons.js";
4
+ import { type DeliveryPreviewReport } from "../protocol/delivery-preview.js";
4
5
  import type { ExecutionObserver } from "../protocol/execution-observation.js";
5
6
  import type { IntentOutcome, IntentRetry } from "../protocol/operations.js";
6
- import type { ContractWorkspaceLocation } from "../workspace-place.js";
7
- import type { Delivery, DeliveryValue } from "./delivery.js";
7
+ import { type Delivery } from "./delivery.js";
8
8
  import type { InvocationAccumulator } from "./invocation.js";
9
- import type { Keiyaku } from "./keiyaku.js";
10
- import type { ContractVerb, HandoffOutcome, OperationOutcome, OutcomeProjection, Review, Verify } from "./outcome.js";
11
- import type { OperationRefusals } from "./refusal.js";
12
- import type { AmendRegionObservation, RegionObservation } from "./region.js";
13
- export type BindValue = Readonly<{
14
- keiyaku: Keiyaku;
15
- workspace?: ContractWorkspaceLocation;
16
- warnings?: readonly string[];
17
- }> & RegionObservation;
18
- export type AmendValue = Readonly<{
19
- documentDiff: string;
20
- changes: Readonly<{
21
- gates?: readonly Gate[];
22
- after?: readonly ContractId[];
9
+ import type { Kei } from "./kei.js";
10
+ import { type OperationOutcome, type HandoffOutcome, type Review, type Verify, previewIssueSchema } from "./outcome.js";
11
+ import { type OperationRefusals } from "./refusal.js";
12
+ import type { ContractId } from "../core/facts/types.js";
13
+ declare const bindValueSchema: z.ZodReadonly<z.ZodObject<{
14
+ overlaps: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
15
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
16
+ patterns: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
17
+ mine: z.ZodString;
18
+ theirs: z.ZodString;
19
+ relation: z.ZodExactOptional<z.ZodEnum<{
20
+ "mine-within-theirs": "mine-within-theirs";
21
+ "theirs-within-mine": "theirs-within-mine";
22
+ intersect: "intersect";
23
+ }>>;
24
+ }, z.core.$strict>>>>;
25
+ }, z.core.$strict>>>>>;
26
+ overlapError: z.ZodExactOptional<z.ZodString>;
27
+ worktreePath: z.ZodExactOptional<z.ZodString>;
28
+ target: z.ZodExactOptional<z.ZodString>;
29
+ }, z.core.$strict>>;
30
+ declare const amendValueSchema: z.ZodReadonly<z.ZodObject<{
31
+ overlaps: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
32
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
33
+ patterns: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
34
+ mine: z.ZodString;
35
+ theirs: z.ZodString;
36
+ relation: z.ZodExactOptional<z.ZodEnum<{
37
+ "mine-within-theirs": "mine-within-theirs";
38
+ "theirs-within-mine": "theirs-within-mine";
39
+ intersect: "intersect";
40
+ }>>;
41
+ }, z.core.$strict>>>>;
42
+ }, z.core.$strict>>>>>;
43
+ overlapError: z.ZodExactOptional<z.ZodString>;
44
+ changedSections: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
45
+ gatesChanged: z.ZodExactOptional<z.ZodLiteral<true>>;
46
+ afterChanged: z.ZodExactOptional<z.ZodLiteral<true>>;
47
+ }, z.core.$strict>>;
48
+ export type BindValue = z.output<typeof bindValueSchema> & Readonly<{
49
+ kei: Kei;
50
+ }>;
51
+ export type AmendValue = z.output<typeof amendValueSchema>;
52
+ export declare const bindOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
53
+ kind: z.ZodLiteral<"accepted">;
54
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
55
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
56
+ kind: z.ZodLiteral<"worktree-retained">;
57
+ path: z.ZodString;
58
+ diagnostic: z.ZodExactOptional<z.ZodString>;
59
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
60
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
61
+ kind: z.ZodLiteral<"unsealed-bytes">;
62
+ path: z.ZodString;
63
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
64
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
65
+ kind: z.ZodLiteral<"target-checkout-retained">;
66
+ path: z.ZodString;
67
+ target: z.ZodString;
68
+ diagnostic: z.ZodString;
69
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
70
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
71
+ kind: z.ZodLiteral<"target-workspace-retained">;
72
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
73
+ reason: z.ZodEnum<{
74
+ missing: "missing";
75
+ replaced: "replaced";
76
+ unappointed: "unappointed";
77
+ association: "association";
78
+ attached: "attached";
79
+ uncommitted: "uncommitted";
80
+ operation: "operation";
81
+ }>;
82
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
83
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
84
+ kind: z.ZodLiteral<"worktree-hook-failed">;
85
+ phase: z.ZodEnum<{
86
+ destroy: "destroy";
87
+ create: "create";
88
+ }>;
89
+ path: z.ZodString;
90
+ name: z.ZodString;
91
+ diagnostic: z.ZodString;
92
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
93
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
94
+ kind: z.ZodLiteral<"reconcile-failed">;
95
+ diagnostic: z.ZodString;
96
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
97
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
98
+ kind: z.ZodLiteral<"contract-file-failed">;
99
+ path: z.ZodString;
100
+ diagnostic: z.ZodString;
101
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
102
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
103
+ kind: z.ZodLiteral<"decode-channel-retirement">;
104
+ diagnostic: z.ZodString;
105
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
106
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
107
+ kind: z.ZodLiteral<"private-state-seat-close">;
108
+ diagnostic: z.ZodString;
109
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
110
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
111
+ kind: z.ZodLiteral<"execution-stopped">;
112
+ reason: z.ZodEnum<{
113
+ failed: "failed";
114
+ cancelled: "cancelled";
115
+ }>;
116
+ diagnostic: z.ZodString;
117
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
118
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
119
+ kind: z.ZodLiteral<"settlement-failed">;
120
+ debtId: z.ZodExactOptional<z.ZodString>;
121
+ diagnostic: z.ZodString;
122
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
123
+ }, z.core.$strict>>]>>>>;
124
+ overlaps: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
125
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
126
+ patterns: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
127
+ mine: z.ZodString;
128
+ theirs: z.ZodString;
129
+ relation: z.ZodExactOptional<z.ZodEnum<{
130
+ "mine-within-theirs": "mine-within-theirs";
131
+ "theirs-within-mine": "theirs-within-mine";
132
+ intersect: "intersect";
133
+ }>>;
134
+ }, z.core.$strict>>>>;
135
+ }, z.core.$strict>>>>>;
136
+ overlapError: z.ZodExactOptional<z.ZodString>;
137
+ worktreePath: z.ZodExactOptional<z.ZodString>;
138
+ target: z.ZodExactOptional<z.ZodString>;
139
+ recoverySnapshots: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>>>;
140
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
141
+ kind: z.ZodLiteral<"refused">;
142
+ reason: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
143
+ kind: z.ZodEnum<{
144
+ "unborn-head": "unborn-head";
145
+ "target-missing": "target-missing";
146
+ "unknown-prerequisite": "unknown-prerequisite";
147
+ "contract-exists": "contract-exists";
148
+ "invalid-after": "invalid-after";
149
+ "fork-source-moved": "fork-source-moved";
150
+ "invalid-target": "invalid-target";
151
+ "fork-source-missing": "fork-source-missing";
152
+ "fork-source-unavailable": "fork-source-unavailable";
153
+ "target-contract-self": "target-contract-self";
154
+ }>;
155
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
156
+ kind: z.ZodEnum<{
157
+ "target-contract-missing": "target-contract-missing";
158
+ "target-contract-terminal": "target-contract-terminal";
159
+ }>;
160
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
161
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
162
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
163
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
164
+ reason: z.ZodEnum<{
165
+ missing: "missing";
166
+ replaced: "replaced";
167
+ unappointed: "unappointed";
168
+ association: "association";
169
+ attached: "attached";
170
+ uncommitted: "uncommitted";
171
+ operation: "operation";
172
+ }>;
173
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
174
+ kind: z.ZodLiteral<"verification-declaration-invalid">;
175
+ }, z.core.$strict>>]>;
176
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
177
+ kind: z.ZodLiteral<"retry">;
178
+ reason: z.ZodEnum<{
179
+ exhausted: "exhausted";
180
+ collision: "collision";
181
+ }>;
182
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
183
+ kind: z.ZodLiteral<"retry">;
184
+ reason: z.ZodLiteral<"publication-failed">;
185
+ diagnostic: z.ZodString;
186
+ }, z.core.$strict>>]>;
187
+ export declare const amendOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
188
+ kind: z.ZodLiteral<"accepted">;
189
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
190
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
191
+ kind: z.ZodLiteral<"worktree-retained">;
192
+ path: z.ZodString;
193
+ diagnostic: z.ZodExactOptional<z.ZodString>;
194
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
195
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
196
+ kind: z.ZodLiteral<"unsealed-bytes">;
197
+ path: z.ZodString;
198
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
199
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
200
+ kind: z.ZodLiteral<"target-checkout-retained">;
201
+ path: z.ZodString;
202
+ target: z.ZodString;
203
+ diagnostic: z.ZodString;
204
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
205
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
206
+ kind: z.ZodLiteral<"target-workspace-retained">;
207
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
208
+ reason: z.ZodEnum<{
209
+ missing: "missing";
210
+ replaced: "replaced";
211
+ unappointed: "unappointed";
212
+ association: "association";
213
+ attached: "attached";
214
+ uncommitted: "uncommitted";
215
+ operation: "operation";
216
+ }>;
217
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
218
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
219
+ kind: z.ZodLiteral<"worktree-hook-failed">;
220
+ phase: z.ZodEnum<{
221
+ destroy: "destroy";
222
+ create: "create";
223
+ }>;
224
+ path: z.ZodString;
225
+ name: z.ZodString;
226
+ diagnostic: z.ZodString;
227
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
228
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
229
+ kind: z.ZodLiteral<"reconcile-failed">;
230
+ diagnostic: z.ZodString;
231
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
232
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
233
+ kind: z.ZodLiteral<"contract-file-failed">;
234
+ path: z.ZodString;
235
+ diagnostic: z.ZodString;
236
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
237
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
238
+ kind: z.ZodLiteral<"decode-channel-retirement">;
239
+ diagnostic: z.ZodString;
240
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
241
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
242
+ kind: z.ZodLiteral<"private-state-seat-close">;
243
+ diagnostic: z.ZodString;
244
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
245
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
246
+ kind: z.ZodLiteral<"execution-stopped">;
247
+ reason: z.ZodEnum<{
248
+ failed: "failed";
249
+ cancelled: "cancelled";
250
+ }>;
251
+ diagnostic: z.ZodString;
252
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
253
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
254
+ kind: z.ZodLiteral<"settlement-failed">;
255
+ debtId: z.ZodExactOptional<z.ZodString>;
256
+ diagnostic: z.ZodString;
257
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
258
+ }, z.core.$strict>>]>>>>;
259
+ overlaps: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
260
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
261
+ patterns: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
262
+ mine: z.ZodString;
263
+ theirs: z.ZodString;
264
+ relation: z.ZodExactOptional<z.ZodEnum<{
265
+ "mine-within-theirs": "mine-within-theirs";
266
+ "theirs-within-mine": "theirs-within-mine";
267
+ intersect: "intersect";
268
+ }>>;
269
+ }, z.core.$strict>>>>;
270
+ }, z.core.$strict>>>>>;
271
+ overlapError: z.ZodExactOptional<z.ZodString>;
272
+ changedSections: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
273
+ gatesChanged: z.ZodExactOptional<z.ZodLiteral<true>>;
274
+ afterChanged: z.ZodExactOptional<z.ZodLiteral<true>>;
275
+ recoverySnapshots: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>>>;
276
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
277
+ kind: z.ZodLiteral<"refused">;
278
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
279
+ reason: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
280
+ kind: z.ZodEnum<{
281
+ terminal: "terminal";
282
+ "contract-missing": "contract-missing";
283
+ "terms-moved": "terms-moved";
284
+ "unknown-prerequisite": "unknown-prerequisite";
285
+ "cyclic-prerequisite": "cyclic-prerequisite";
286
+ }>;
287
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
288
+ kind: z.ZodLiteral<"verification-declaration-invalid">;
289
+ }, z.core.$strict>>]>;
290
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
291
+ kind: z.ZodLiteral<"retry">;
292
+ reason: z.ZodEnum<{
293
+ exhausted: "exhausted";
294
+ collision: "collision";
295
+ }>;
296
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
297
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
298
+ kind: z.ZodLiteral<"retry">;
299
+ reason: z.ZodLiteral<"publication-failed">;
300
+ diagnostic: z.ZodString;
301
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
302
+ }, z.core.$strict>>]>;
303
+ export declare const deliverOutcomeSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
304
+ kind: z.ZodLiteral<"accepted">;
305
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
306
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
307
+ kind: z.ZodLiteral<"worktree-retained">;
308
+ path: z.ZodString;
309
+ diagnostic: z.ZodExactOptional<z.ZodString>;
310
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
311
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
312
+ kind: z.ZodLiteral<"worktree-follow-retained">;
313
+ path: z.ZodString;
314
+ reason: z.ZodEnum<{
315
+ "head-moved": "head-moved";
316
+ "head-attached": "head-attached";
317
+ "operation-in-progress": "operation-in-progress";
318
+ }>;
319
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
320
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
321
+ kind: z.ZodLiteral<"unsealed-bytes">;
322
+ path: z.ZodString;
323
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
324
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
325
+ kind: z.ZodLiteral<"target-checkout-retained">;
326
+ path: z.ZodString;
327
+ target: z.ZodString;
328
+ diagnostic: z.ZodString;
329
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
330
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
331
+ kind: z.ZodLiteral<"target-workspace-retained">;
332
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
333
+ reason: z.ZodEnum<{
334
+ missing: "missing";
335
+ replaced: "replaced";
336
+ unappointed: "unappointed";
337
+ association: "association";
338
+ attached: "attached";
339
+ uncommitted: "uncommitted";
340
+ operation: "operation";
341
+ }>;
342
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
343
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
344
+ kind: z.ZodLiteral<"worktree-hook-failed">;
345
+ phase: z.ZodEnum<{
346
+ destroy: "destroy";
347
+ create: "create";
348
+ }>;
349
+ path: z.ZodString;
350
+ name: z.ZodString;
351
+ diagnostic: z.ZodString;
352
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
353
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
354
+ kind: z.ZodLiteral<"reconcile-failed">;
355
+ diagnostic: z.ZodString;
356
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
357
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
358
+ kind: z.ZodLiteral<"contract-file-failed">;
359
+ path: z.ZodString;
360
+ diagnostic: z.ZodString;
361
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
362
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
363
+ kind: z.ZodLiteral<"decode-channel-retirement">;
364
+ diagnostic: z.ZodString;
365
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
366
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
367
+ kind: z.ZodLiteral<"private-state-seat-close">;
368
+ diagnostic: z.ZodString;
369
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
370
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
371
+ kind: z.ZodLiteral<"execution-stopped">;
372
+ reason: z.ZodEnum<{
373
+ failed: "failed";
374
+ cancelled: "cancelled";
375
+ }>;
376
+ diagnostic: z.ZodString;
377
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
378
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
379
+ kind: z.ZodLiteral<"settlement-failed">;
380
+ debtId: z.ZodExactOptional<z.ZodString>;
381
+ diagnostic: z.ZodString;
382
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
383
+ }, z.core.$strict>>]>>>>;
384
+ recoverySnapshots: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
385
+ snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
386
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
387
+ }, z.core.$strict>>>>>;
388
+ candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
389
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
390
+ contentId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
391
+ admission: z.ZodExactOptional<z.ZodLiteral<"reused">>;
392
+ placement: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
393
+ kind: z.ZodLiteral<"placed">;
394
+ target: z.ZodExactOptional<z.ZodString>;
395
+ predecessor: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
396
+ }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
397
+ kind: z.ZodEnum<{
398
+ terminal: "terminal";
399
+ "contract-missing": "contract-missing";
400
+ }>;
401
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
402
+ kind: z.ZodEnum<{
403
+ "target-contract-missing": "target-contract-missing";
404
+ "target-contract-terminal": "target-contract-terminal";
405
+ }>;
406
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
407
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
408
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
409
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
410
+ reason: z.ZodEnum<{
411
+ missing: "missing";
412
+ replaced: "replaced";
413
+ unappointed: "unappointed";
414
+ association: "association";
415
+ attached: "attached";
416
+ uncommitted: "uncommitted";
417
+ operation: "operation";
418
+ }>;
419
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
420
+ kind: z.ZodEnum<{
421
+ "target-missing": "target-missing";
422
+ "delivery-missing": "delivery-missing";
423
+ }>;
424
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
425
+ kind: z.ZodLiteral<"prerequisites-unsatisfied">;
426
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
427
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
428
+ state: z.ZodEnum<{
429
+ active: "active";
430
+ abandoned: "abandoned";
431
+ missing: "missing";
432
+ }>;
433
+ }, z.core.$strict>>>>;
434
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
435
+ kind: z.ZodLiteral<"gates-unsatisfied">;
436
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
437
+ state: z.ZodLiteral<"missing">;
438
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
439
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
440
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
441
+ state: z.ZodLiteral<"unsatisfied">;
442
+ summary: z.ZodExactOptional<z.ZodString>;
443
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
444
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
445
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
446
+ state: z.ZodLiteral<"stale">;
447
+ previousContentId: z.ZodExactOptional<z.ZodString>;
448
+ currentContentId: z.ZodExactOptional<z.ZodString>;
449
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
450
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
451
+ }, z.core.$strict>>]>>>;
452
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
453
+ kind: z.ZodLiteral<"checkout-not-followable">;
454
+ target: z.ZodString;
455
+ path: z.ZodString;
456
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
457
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
458
+ kind: z.ZodEnum<{
459
+ "not-based-on-target": "not-based-on-target";
460
+ "unrelated-histories": "unrelated-histories";
461
+ }>;
462
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
463
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
464
+ kind: z.ZodLiteral<"integration-conflict">;
465
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
466
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
467
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
468
+ kind: z.ZodLiteral<"integration-unsupported">;
469
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
470
+ kind: z.ZodLiteral<"retry">;
471
+ reason: z.ZodEnum<{
472
+ exhausted: "exhausted";
473
+ collision: "collision";
474
+ }>;
475
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
476
+ kind: z.ZodLiteral<"retry">;
477
+ reason: z.ZodLiteral<"publication-failed">;
478
+ diagnostic: z.ZodString;
479
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
480
+ kind: z.ZodLiteral<"failed">;
481
+ diagnostic: z.ZodString;
482
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
483
+ kind: z.ZodLiteral<"target-content-identical">;
484
+ target: z.ZodString;
485
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
486
+ observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
487
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
488
+ kind: z.ZodLiteral<"target-moved">;
489
+ target: z.ZodString;
490
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
491
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
492
+ }, z.core.$strict>>]>]>>;
493
+ previousContentId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>>;
494
+ continuation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
495
+ claimed: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>>>;
496
+ stopped: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<(z.ZodReadonly<z.ZodObject<{
497
+ kind: z.ZodLiteral<"target-moved">;
498
+ target: z.ZodString;
499
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
500
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
501
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
502
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
503
+ kind: z.ZodEnum<{
504
+ "already-terminal": "already-terminal";
505
+ "physical-lag": "physical-lag";
506
+ }>;
507
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
508
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
509
+ kind: z.ZodLiteral<"target-content-identical">;
510
+ target: z.ZodString;
511
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
512
+ observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
513
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
514
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
515
+ kind: z.ZodLiteral<"failed">;
516
+ diagnostic: z.ZodString;
517
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
518
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
519
+ kind: z.ZodLiteral<"gates-unsatisfied">;
520
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
521
+ state: z.ZodLiteral<"missing">;
522
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
523
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
524
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
525
+ state: z.ZodLiteral<"unsatisfied">;
526
+ summary: z.ZodExactOptional<z.ZodString>;
527
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
528
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
529
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
530
+ state: z.ZodLiteral<"stale">;
531
+ previousContentId: z.ZodExactOptional<z.ZodString>;
532
+ currentContentId: z.ZodExactOptional<z.ZodString>;
533
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
534
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
535
+ }, z.core.$strict>>]>>>;
536
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
537
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
538
+ kind: z.ZodLiteral<"prerequisites-unsatisfied">;
539
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
540
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
541
+ state: z.ZodEnum<{
542
+ active: "active";
543
+ abandoned: "abandoned";
544
+ missing: "missing";
545
+ }>;
546
+ }, z.core.$strict>>>>;
547
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
548
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
549
+ kind: z.ZodEnum<{
550
+ "target-missing": "target-missing";
551
+ "delivery-missing": "delivery-missing";
552
+ }>;
553
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
554
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
555
+ kind: z.ZodLiteral<"checkout-not-followable">;
556
+ target: z.ZodString;
557
+ path: z.ZodString;
558
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
559
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
560
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
561
+ kind: z.ZodLiteral<"integration-unsupported">;
562
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
563
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
564
+ kind: z.ZodLiteral<"integration-conflict">;
565
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
566
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
567
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
568
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
569
+ kind: z.ZodEnum<{
570
+ "not-based-on-target": "not-based-on-target";
571
+ "unrelated-histories": "unrelated-histories";
572
+ }>;
573
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
574
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
575
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
576
+ kind: z.ZodLiteral<"retry">;
577
+ reason: z.ZodLiteral<"publication-failed">;
578
+ diagnostic: z.ZodString;
579
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
580
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
581
+ kind: z.ZodLiteral<"retry">;
582
+ reason: z.ZodEnum<{
583
+ exhausted: "exhausted";
584
+ collision: "collision";
585
+ }>;
586
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
587
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
588
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
589
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
590
+ reason: z.ZodEnum<{
591
+ missing: "missing";
592
+ replaced: "replaced";
593
+ unappointed: "unappointed";
594
+ association: "association";
595
+ attached: "attached";
596
+ uncommitted: "uncommitted";
597
+ operation: "operation";
598
+ }>;
599
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
600
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
601
+ kind: z.ZodEnum<{
602
+ "target-contract-missing": "target-contract-missing";
603
+ "target-contract-terminal": "target-contract-terminal";
604
+ }>;
605
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
606
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
607
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
608
+ kind: z.ZodEnum<{
609
+ terminal: "terminal";
610
+ "contract-missing": "contract-missing";
611
+ }>;
612
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
613
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
614
+ kind: z.ZodLiteral<"execution-stopped">;
615
+ reason: z.ZodEnum<{
616
+ failed: "failed";
617
+ cancelled: "cancelled";
618
+ }>;
619
+ diagnostic: z.ZodString;
620
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
621
+ }, z.core.$strict>>)[]>>>>;
622
+ }, z.core.$strict>>>;
623
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
624
+ kind: z.ZodLiteral<"refused">;
625
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
626
+ reason: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
627
+ kind: z.ZodEnum<{
628
+ terminal: "terminal";
629
+ "contract-missing": "contract-missing";
630
+ }>;
631
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
632
+ kind: z.ZodEnum<{
633
+ "target-contract-missing": "target-contract-missing";
634
+ "target-contract-terminal": "target-contract-terminal";
635
+ }>;
636
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
637
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
638
+ kind: z.ZodLiteral<"verification-declaration-invalid">;
639
+ }, z.core.$strict>>]>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
640
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
641
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
642
+ reason: z.ZodEnum<{
643
+ missing: "missing";
644
+ replaced: "replaced";
645
+ unappointed: "unappointed";
646
+ association: "association";
647
+ attached: "attached";
648
+ uncommitted: "uncommitted";
649
+ operation: "operation";
650
+ }>;
651
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
652
+ kind: z.ZodEnum<{
653
+ "worktree-missing": "worktree-missing";
654
+ "target-missing": "target-missing";
655
+ }>;
656
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
657
+ kind: z.ZodLiteral<"dirty-workspace">;
658
+ paths: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
659
+ submodules: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
660
+ }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
661
+ kind: z.ZodEnum<{
662
+ "not-based-on-target": "not-based-on-target";
663
+ "unrelated-histories": "unrelated-histories";
664
+ }>;
665
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
666
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
667
+ kind: z.ZodLiteral<"integration-conflict">;
668
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
669
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
670
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
671
+ kind: z.ZodLiteral<"integration-unsupported">;
672
+ }, z.core.$strict>>]>]>, z.ZodReadonly<z.ZodObject<{
673
+ kind: z.ZodLiteral<"merge-state-present">;
674
+ worktreePath: z.ZodString;
675
+ }, z.core.$strict>>]>;
676
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
677
+ kind: z.ZodLiteral<"retry">;
678
+ reason: z.ZodEnum<{
679
+ exhausted: "exhausted";
680
+ collision: "collision";
681
+ }>;
682
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
683
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
684
+ kind: z.ZodLiteral<"retry">;
685
+ reason: z.ZodLiteral<"publication-failed">;
686
+ diagnostic: z.ZodString;
687
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
688
+ }, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
689
+ kind: z.ZodLiteral<"handoff">;
690
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
691
+ worktreePath: z.ZodString;
692
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
693
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
694
+ handoffBase: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
695
+ }, z.core.$strict>>]>;
696
+ export declare const verifyOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
697
+ kind: z.ZodLiteral<"accepted">;
698
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
699
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
700
+ kind: z.ZodLiteral<"worktree-retained">;
701
+ path: z.ZodString;
702
+ diagnostic: z.ZodExactOptional<z.ZodString>;
703
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
704
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
705
+ kind: z.ZodLiteral<"worktree-follow-retained">;
706
+ path: z.ZodString;
707
+ reason: z.ZodEnum<{
708
+ "head-moved": "head-moved";
709
+ "head-attached": "head-attached";
710
+ "operation-in-progress": "operation-in-progress";
711
+ }>;
712
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
713
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
714
+ kind: z.ZodLiteral<"unsealed-bytes">;
715
+ path: z.ZodString;
716
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
717
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
718
+ kind: z.ZodLiteral<"target-checkout-retained">;
719
+ path: z.ZodString;
720
+ target: z.ZodString;
721
+ diagnostic: z.ZodString;
722
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
723
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
724
+ kind: z.ZodLiteral<"target-workspace-retained">;
725
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
726
+ reason: z.ZodEnum<{
727
+ missing: "missing";
728
+ replaced: "replaced";
729
+ unappointed: "unappointed";
730
+ association: "association";
731
+ attached: "attached";
732
+ uncommitted: "uncommitted";
733
+ operation: "operation";
734
+ }>;
735
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
736
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
737
+ kind: z.ZodLiteral<"worktree-hook-failed">;
738
+ phase: z.ZodEnum<{
739
+ destroy: "destroy";
740
+ create: "create";
741
+ }>;
742
+ path: z.ZodString;
743
+ name: z.ZodString;
744
+ diagnostic: z.ZodString;
745
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
746
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
747
+ kind: z.ZodLiteral<"reconcile-failed">;
748
+ diagnostic: z.ZodString;
749
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
750
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
751
+ kind: z.ZodLiteral<"contract-file-failed">;
752
+ path: z.ZodString;
753
+ diagnostic: z.ZodString;
754
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
755
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
756
+ kind: z.ZodLiteral<"decode-channel-retirement">;
757
+ diagnostic: z.ZodString;
758
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
759
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
760
+ name: z.ZodString;
761
+ diagnostic: z.ZodString;
762
+ snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
763
+ requirement: z.ZodExactOptional<z.ZodString>;
764
+ index: z.ZodExactOptional<z.ZodNumber>;
765
+ kind: z.ZodLiteral<"verification-cleanup">;
766
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
767
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
768
+ path: z.ZodExactOptional<z.ZodString>;
769
+ diagnostic: z.ZodString;
770
+ snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
771
+ requirement: z.ZodExactOptional<z.ZodString>;
772
+ index: z.ZodExactOptional<z.ZodNumber>;
773
+ kind: z.ZodLiteral<"worktree-leak">;
774
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
775
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
776
+ kind: z.ZodLiteral<"private-state-seat-close">;
777
+ diagnostic: z.ZodString;
778
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
779
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
780
+ kind: z.ZodLiteral<"execution-stopped">;
781
+ reason: z.ZodEnum<{
782
+ failed: "failed";
783
+ cancelled: "cancelled";
784
+ }>;
785
+ diagnostic: z.ZodString;
786
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
787
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
788
+ kind: z.ZodLiteral<"settlement-failed">;
789
+ debtId: z.ZodExactOptional<z.ZodString>;
790
+ diagnostic: z.ZodString;
791
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
792
+ }, z.core.$strict>>]>>>>;
793
+ recoverySnapshots: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
794
+ snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
795
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
796
+ }, z.core.$strict>>>>>;
797
+ continuation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
798
+ claimed: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>>>;
799
+ stopped: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<(z.ZodReadonly<z.ZodObject<{
800
+ kind: z.ZodLiteral<"target-moved">;
801
+ target: z.ZodString;
802
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
803
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
804
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
805
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
806
+ kind: z.ZodEnum<{
807
+ "already-terminal": "already-terminal";
808
+ "physical-lag": "physical-lag";
809
+ }>;
810
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
811
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
812
+ kind: z.ZodLiteral<"target-content-identical">;
813
+ target: z.ZodString;
814
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
815
+ observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
816
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
817
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
818
+ kind: z.ZodLiteral<"failed">;
819
+ diagnostic: z.ZodString;
820
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
821
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
822
+ kind: z.ZodLiteral<"gates-unsatisfied">;
823
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
824
+ state: z.ZodLiteral<"missing">;
825
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
826
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
827
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
828
+ state: z.ZodLiteral<"unsatisfied">;
829
+ summary: z.ZodExactOptional<z.ZodString>;
830
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
831
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
832
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
833
+ state: z.ZodLiteral<"stale">;
834
+ previousContentId: z.ZodExactOptional<z.ZodString>;
835
+ currentContentId: z.ZodExactOptional<z.ZodString>;
836
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
837
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
838
+ }, z.core.$strict>>]>>>;
839
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
840
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
841
+ kind: z.ZodLiteral<"prerequisites-unsatisfied">;
842
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
843
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
844
+ state: z.ZodEnum<{
845
+ active: "active";
846
+ abandoned: "abandoned";
847
+ missing: "missing";
848
+ }>;
849
+ }, z.core.$strict>>>>;
850
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
851
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
852
+ kind: z.ZodEnum<{
853
+ "target-missing": "target-missing";
854
+ "delivery-missing": "delivery-missing";
855
+ }>;
856
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
857
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
858
+ kind: z.ZodLiteral<"checkout-not-followable">;
859
+ target: z.ZodString;
860
+ path: z.ZodString;
861
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
862
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
863
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
864
+ kind: z.ZodLiteral<"integration-unsupported">;
865
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
866
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
867
+ kind: z.ZodLiteral<"integration-conflict">;
868
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
869
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
870
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
871
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
872
+ kind: z.ZodEnum<{
873
+ "not-based-on-target": "not-based-on-target";
874
+ "unrelated-histories": "unrelated-histories";
875
+ }>;
876
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
877
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
878
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
879
+ kind: z.ZodLiteral<"retry">;
880
+ reason: z.ZodLiteral<"publication-failed">;
881
+ diagnostic: z.ZodString;
882
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
883
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
884
+ kind: z.ZodLiteral<"retry">;
885
+ reason: z.ZodEnum<{
886
+ exhausted: "exhausted";
887
+ collision: "collision";
888
+ }>;
889
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
890
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
891
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
892
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
893
+ reason: z.ZodEnum<{
894
+ missing: "missing";
895
+ replaced: "replaced";
896
+ unappointed: "unappointed";
897
+ association: "association";
898
+ attached: "attached";
899
+ uncommitted: "uncommitted";
900
+ operation: "operation";
901
+ }>;
902
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
903
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
904
+ kind: z.ZodEnum<{
905
+ "target-contract-missing": "target-contract-missing";
906
+ "target-contract-terminal": "target-contract-terminal";
907
+ }>;
908
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
909
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
910
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
911
+ kind: z.ZodEnum<{
912
+ terminal: "terminal";
913
+ "contract-missing": "contract-missing";
914
+ }>;
915
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
916
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
917
+ kind: z.ZodLiteral<"execution-stopped">;
918
+ reason: z.ZodEnum<{
919
+ failed: "failed";
920
+ cancelled: "cancelled";
921
+ }>;
922
+ diagnostic: z.ZodString;
923
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
924
+ }, z.core.$strict>>)[]>>>>;
925
+ }, z.core.$strict>>>;
926
+ snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
927
+ checks: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
928
+ kind: z.ZodLiteral<"terminal">;
929
+ verdict: z.ZodLiteral<"satisfied">;
930
+ admission: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodLiteral<"reused">, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
931
+ kind: z.ZodLiteral<"refused">;
932
+ reason: z.ZodReadonly<z.ZodObject<{
933
+ kind: z.ZodEnum<{
934
+ terminal: "terminal";
935
+ "contract-missing": "contract-missing";
936
+ }>;
937
+ }, z.core.$strict>>;
938
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
939
+ kind: z.ZodLiteral<"retry">;
940
+ reason: z.ZodEnum<{
941
+ exhausted: "exhausted";
942
+ collision: "collision";
943
+ }>;
944
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
945
+ kind: z.ZodLiteral<"retry">;
946
+ reason: z.ZodLiteral<"publication-failed">;
947
+ diagnostic: z.ZodString;
948
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
949
+ kind: z.ZodLiteral<"cancelled">;
950
+ }, z.core.$strict>>]>]>>;
951
+ index: z.ZodNumber;
952
+ requirement: z.ZodString;
953
+ retainedPath: z.ZodExactOptional<z.ZodString>;
954
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
955
+ kind: z.ZodLiteral<"terminal">;
956
+ verdict: z.ZodLiteral<"unsatisfied">;
957
+ summary: z.ZodString;
958
+ admission: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodLiteral<"reused">, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
959
+ kind: z.ZodLiteral<"refused">;
960
+ reason: z.ZodReadonly<z.ZodObject<{
961
+ kind: z.ZodEnum<{
962
+ terminal: "terminal";
963
+ "contract-missing": "contract-missing";
964
+ }>;
965
+ }, z.core.$strict>>;
966
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
967
+ kind: z.ZodLiteral<"retry">;
968
+ reason: z.ZodEnum<{
969
+ exhausted: "exhausted";
970
+ collision: "collision";
971
+ }>;
972
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
973
+ kind: z.ZodLiteral<"retry">;
974
+ reason: z.ZodLiteral<"publication-failed">;
975
+ diagnostic: z.ZodString;
976
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
977
+ kind: z.ZodLiteral<"cancelled">;
978
+ }, z.core.$strict>>]>]>>;
979
+ index: z.ZodNumber;
980
+ requirement: z.ZodString;
981
+ retainedPath: z.ZodExactOptional<z.ZodString>;
982
+ }, z.core.$strict>>, ...(z.ZodReadonly<z.ZodObject<{
983
+ kind: z.ZodEnum<{
984
+ "spawn-error": "spawn-error";
985
+ "candidate-unavailable": "candidate-unavailable";
986
+ "environment-failure": "environment-failure";
987
+ }>;
988
+ diagnostic: z.ZodString;
989
+ index: z.ZodNumber;
990
+ requirement: z.ZodString;
991
+ retainedPath: z.ZodExactOptional<z.ZodString>;
992
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
993
+ kind: z.ZodLiteral<"environment-hook-failure">;
994
+ name: z.ZodString;
995
+ diagnostic: z.ZodString;
996
+ index: z.ZodNumber;
997
+ requirement: z.ZodString;
998
+ retainedPath: z.ZodExactOptional<z.ZodString>;
999
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1000
+ kind: z.ZodEnum<{
1001
+ cancelled: "cancelled";
1002
+ "unknown-exit": "unknown-exit";
1003
+ }>;
1004
+ diagnostic: z.ZodExactOptional<z.ZodString>;
1005
+ index: z.ZodNumber;
1006
+ requirement: z.ZodString;
1007
+ retainedPath: z.ZodExactOptional<z.ZodString>;
1008
+ }, z.core.$strict>>)[]]>>>;
1009
+ placement: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1010
+ kind: z.ZodLiteral<"placed">;
1011
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1012
+ target: z.ZodExactOptional<z.ZodString>;
1013
+ predecessor: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
1014
+ }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1015
+ kind: z.ZodEnum<{
1016
+ terminal: "terminal";
1017
+ "contract-missing": "contract-missing";
1018
+ }>;
1019
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1020
+ kind: z.ZodEnum<{
1021
+ "target-contract-missing": "target-contract-missing";
1022
+ "target-contract-terminal": "target-contract-terminal";
1023
+ }>;
1024
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1025
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1026
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
1027
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1028
+ reason: z.ZodEnum<{
1029
+ missing: "missing";
1030
+ replaced: "replaced";
1031
+ unappointed: "unappointed";
1032
+ association: "association";
1033
+ attached: "attached";
1034
+ uncommitted: "uncommitted";
1035
+ operation: "operation";
1036
+ }>;
1037
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1038
+ kind: z.ZodEnum<{
1039
+ "target-missing": "target-missing";
1040
+ "delivery-missing": "delivery-missing";
1041
+ }>;
1042
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1043
+ kind: z.ZodLiteral<"prerequisites-unsatisfied">;
1044
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1045
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1046
+ state: z.ZodEnum<{
1047
+ active: "active";
1048
+ abandoned: "abandoned";
1049
+ missing: "missing";
1050
+ }>;
1051
+ }, z.core.$strict>>>>;
1052
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1053
+ kind: z.ZodLiteral<"gates-unsatisfied">;
1054
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1055
+ state: z.ZodLiteral<"missing">;
1056
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1057
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1058
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1059
+ state: z.ZodLiteral<"unsatisfied">;
1060
+ summary: z.ZodExactOptional<z.ZodString>;
1061
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1062
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1063
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1064
+ state: z.ZodLiteral<"stale">;
1065
+ previousContentId: z.ZodExactOptional<z.ZodString>;
1066
+ currentContentId: z.ZodExactOptional<z.ZodString>;
1067
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1068
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1069
+ }, z.core.$strict>>]>>>;
1070
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1071
+ kind: z.ZodLiteral<"checkout-not-followable">;
1072
+ target: z.ZodString;
1073
+ path: z.ZodString;
1074
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1075
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1076
+ kind: z.ZodEnum<{
1077
+ "not-based-on-target": "not-based-on-target";
1078
+ "unrelated-histories": "unrelated-histories";
1079
+ }>;
1080
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1081
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1082
+ kind: z.ZodLiteral<"integration-conflict">;
1083
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1084
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1085
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1086
+ kind: z.ZodLiteral<"integration-unsupported">;
1087
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1088
+ kind: z.ZodLiteral<"retry">;
1089
+ reason: z.ZodEnum<{
1090
+ exhausted: "exhausted";
1091
+ collision: "collision";
1092
+ }>;
1093
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1094
+ kind: z.ZodLiteral<"retry">;
1095
+ reason: z.ZodLiteral<"publication-failed">;
1096
+ diagnostic: z.ZodString;
1097
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1098
+ kind: z.ZodLiteral<"failed">;
1099
+ diagnostic: z.ZodString;
1100
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1101
+ kind: z.ZodLiteral<"target-content-identical">;
1102
+ target: z.ZodString;
1103
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1104
+ observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1105
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1106
+ kind: z.ZodLiteral<"target-moved">;
1107
+ target: z.ZodString;
1108
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1109
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
1110
+ }, z.core.$strict>>]>]>>;
1111
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1112
+ kind: z.ZodLiteral<"refused">;
1113
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1114
+ reason: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1115
+ kind: z.ZodEnum<{
1116
+ terminal: "terminal";
1117
+ "contract-missing": "contract-missing";
1118
+ }>;
1119
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1120
+ kind: z.ZodEnum<{
1121
+ "target-contract-missing": "target-contract-missing";
1122
+ "target-contract-terminal": "target-contract-terminal";
1123
+ }>;
1124
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1125
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1126
+ kind: z.ZodLiteral<"verification-declaration-invalid">;
1127
+ }, z.core.$strict>>]>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1128
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
1129
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1130
+ reason: z.ZodEnum<{
1131
+ missing: "missing";
1132
+ replaced: "replaced";
1133
+ unappointed: "unappointed";
1134
+ association: "association";
1135
+ attached: "attached";
1136
+ uncommitted: "uncommitted";
1137
+ operation: "operation";
1138
+ }>;
1139
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1140
+ kind: z.ZodEnum<{
1141
+ "worktree-missing": "worktree-missing";
1142
+ "target-missing": "target-missing";
1143
+ }>;
1144
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1145
+ kind: z.ZodLiteral<"dirty-workspace">;
1146
+ paths: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1147
+ submodules: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1148
+ }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1149
+ kind: z.ZodEnum<{
1150
+ "not-based-on-target": "not-based-on-target";
1151
+ "unrelated-histories": "unrelated-histories";
1152
+ }>;
1153
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1154
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1155
+ kind: z.ZodLiteral<"integration-conflict">;
1156
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1157
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1158
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1159
+ kind: z.ZodLiteral<"integration-unsupported">;
1160
+ }, z.core.$strict>>]>]>, z.ZodReadonly<z.ZodObject<{
1161
+ kind: z.ZodLiteral<"verification-not-selected">;
1162
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1163
+ kind: z.ZodLiteral<"verification-index-out-of-range">;
1164
+ total: z.ZodNumber;
1165
+ }, z.core.$strict>>]>;
1166
+ }, z.core.$strict>>]>;
1167
+ export declare const reviewOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1168
+ kind: z.ZodLiteral<"accepted">;
1169
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1170
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1171
+ kind: z.ZodLiteral<"worktree-retained">;
1172
+ path: z.ZodString;
1173
+ diagnostic: z.ZodExactOptional<z.ZodString>;
1174
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1175
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1176
+ kind: z.ZodLiteral<"worktree-follow-retained">;
1177
+ path: z.ZodString;
1178
+ reason: z.ZodEnum<{
1179
+ "head-moved": "head-moved";
1180
+ "head-attached": "head-attached";
1181
+ "operation-in-progress": "operation-in-progress";
1182
+ }>;
1183
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1184
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1185
+ kind: z.ZodLiteral<"unsealed-bytes">;
1186
+ path: z.ZodString;
1187
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1188
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1189
+ kind: z.ZodLiteral<"target-checkout-retained">;
1190
+ path: z.ZodString;
1191
+ target: z.ZodString;
1192
+ diagnostic: z.ZodString;
1193
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1194
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1195
+ kind: z.ZodLiteral<"target-workspace-retained">;
1196
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1197
+ reason: z.ZodEnum<{
1198
+ missing: "missing";
1199
+ replaced: "replaced";
1200
+ unappointed: "unappointed";
1201
+ association: "association";
1202
+ attached: "attached";
1203
+ uncommitted: "uncommitted";
1204
+ operation: "operation";
1205
+ }>;
1206
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1207
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1208
+ kind: z.ZodLiteral<"worktree-hook-failed">;
1209
+ phase: z.ZodEnum<{
1210
+ destroy: "destroy";
1211
+ create: "create";
1212
+ }>;
1213
+ path: z.ZodString;
1214
+ name: z.ZodString;
1215
+ diagnostic: z.ZodString;
1216
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1217
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1218
+ kind: z.ZodLiteral<"reconcile-failed">;
1219
+ diagnostic: z.ZodString;
1220
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1221
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1222
+ kind: z.ZodLiteral<"contract-file-failed">;
1223
+ path: z.ZodString;
1224
+ diagnostic: z.ZodString;
1225
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1226
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1227
+ kind: z.ZodLiteral<"decode-channel-retirement">;
1228
+ diagnostic: z.ZodString;
1229
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1230
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1231
+ kind: z.ZodLiteral<"private-state-seat-close">;
1232
+ diagnostic: z.ZodString;
1233
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1234
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1235
+ kind: z.ZodLiteral<"execution-stopped">;
1236
+ reason: z.ZodEnum<{
1237
+ failed: "failed";
1238
+ cancelled: "cancelled";
1239
+ }>;
1240
+ diagnostic: z.ZodString;
1241
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1242
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1243
+ kind: z.ZodLiteral<"settlement-failed">;
1244
+ debtId: z.ZodExactOptional<z.ZodString>;
1245
+ diagnostic: z.ZodString;
1246
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1247
+ }, z.core.$strict>>]>>>>;
1248
+ recoverySnapshots: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1249
+ snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1250
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1251
+ }, z.core.$strict>>>>>;
1252
+ placement: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1253
+ kind: z.ZodLiteral<"placed">;
1254
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1255
+ target: z.ZodExactOptional<z.ZodString>;
1256
+ predecessor: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
1257
+ }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1258
+ kind: z.ZodEnum<{
1259
+ terminal: "terminal";
1260
+ "contract-missing": "contract-missing";
1261
+ }>;
1262
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1263
+ kind: z.ZodEnum<{
1264
+ "target-contract-missing": "target-contract-missing";
1265
+ "target-contract-terminal": "target-contract-terminal";
1266
+ }>;
1267
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1268
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1269
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
1270
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1271
+ reason: z.ZodEnum<{
1272
+ missing: "missing";
1273
+ replaced: "replaced";
1274
+ unappointed: "unappointed";
1275
+ association: "association";
1276
+ attached: "attached";
1277
+ uncommitted: "uncommitted";
1278
+ operation: "operation";
1279
+ }>;
1280
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1281
+ kind: z.ZodEnum<{
1282
+ "target-missing": "target-missing";
1283
+ "delivery-missing": "delivery-missing";
1284
+ }>;
1285
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1286
+ kind: z.ZodLiteral<"prerequisites-unsatisfied">;
1287
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1288
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1289
+ state: z.ZodEnum<{
1290
+ active: "active";
1291
+ abandoned: "abandoned";
1292
+ missing: "missing";
1293
+ }>;
1294
+ }, z.core.$strict>>>>;
1295
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1296
+ kind: z.ZodLiteral<"gates-unsatisfied">;
1297
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1298
+ state: z.ZodLiteral<"missing">;
1299
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1300
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1301
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1302
+ state: z.ZodLiteral<"unsatisfied">;
1303
+ summary: z.ZodExactOptional<z.ZodString>;
1304
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1305
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1306
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1307
+ state: z.ZodLiteral<"stale">;
1308
+ previousContentId: z.ZodExactOptional<z.ZodString>;
1309
+ currentContentId: z.ZodExactOptional<z.ZodString>;
1310
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1311
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1312
+ }, z.core.$strict>>]>>>;
1313
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1314
+ kind: z.ZodLiteral<"checkout-not-followable">;
1315
+ target: z.ZodString;
1316
+ path: z.ZodString;
1317
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1318
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1319
+ kind: z.ZodEnum<{
1320
+ "not-based-on-target": "not-based-on-target";
1321
+ "unrelated-histories": "unrelated-histories";
1322
+ }>;
1323
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1324
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1325
+ kind: z.ZodLiteral<"integration-conflict">;
1326
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1327
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1328
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1329
+ kind: z.ZodLiteral<"integration-unsupported">;
1330
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1331
+ kind: z.ZodLiteral<"retry">;
1332
+ reason: z.ZodEnum<{
1333
+ exhausted: "exhausted";
1334
+ collision: "collision";
1335
+ }>;
1336
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1337
+ kind: z.ZodLiteral<"retry">;
1338
+ reason: z.ZodLiteral<"publication-failed">;
1339
+ diagnostic: z.ZodString;
1340
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1341
+ kind: z.ZodLiteral<"failed">;
1342
+ diagnostic: z.ZodString;
1343
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1344
+ kind: z.ZodLiteral<"target-content-identical">;
1345
+ target: z.ZodString;
1346
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1347
+ observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1348
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1349
+ kind: z.ZodLiteral<"target-moved">;
1350
+ target: z.ZodString;
1351
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1352
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
1353
+ }, z.core.$strict>>]>]>>;
1354
+ worktreeChanges: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
1355
+ staged: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1356
+ unstaged: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1357
+ untracked: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1358
+ unmergedPaths: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1359
+ }, z.core.$strict>>>;
1360
+ continuation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
1361
+ claimed: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>>>;
1362
+ stopped: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<(z.ZodReadonly<z.ZodObject<{
1363
+ kind: z.ZodLiteral<"target-moved">;
1364
+ target: z.ZodString;
1365
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1366
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
1367
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1368
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1369
+ kind: z.ZodEnum<{
1370
+ "already-terminal": "already-terminal";
1371
+ "physical-lag": "physical-lag";
1372
+ }>;
1373
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1374
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1375
+ kind: z.ZodLiteral<"target-content-identical">;
1376
+ target: z.ZodString;
1377
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1378
+ observed: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1379
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1380
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1381
+ kind: z.ZodLiteral<"failed">;
1382
+ diagnostic: z.ZodString;
1383
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1384
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1385
+ kind: z.ZodLiteral<"gates-unsatisfied">;
1386
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1387
+ state: z.ZodLiteral<"missing">;
1388
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1389
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1390
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1391
+ state: z.ZodLiteral<"unsatisfied">;
1392
+ summary: z.ZodExactOptional<z.ZodString>;
1393
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1394
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1395
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1396
+ state: z.ZodLiteral<"stale">;
1397
+ previousContentId: z.ZodExactOptional<z.ZodString>;
1398
+ currentContentId: z.ZodExactOptional<z.ZodString>;
1399
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1400
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1401
+ }, z.core.$strict>>]>>>;
1402
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1403
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1404
+ kind: z.ZodLiteral<"prerequisites-unsatisfied">;
1405
+ unmet: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1406
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1407
+ state: z.ZodEnum<{
1408
+ active: "active";
1409
+ abandoned: "abandoned";
1410
+ missing: "missing";
1411
+ }>;
1412
+ }, z.core.$strict>>>>;
1413
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1414
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1415
+ kind: z.ZodEnum<{
1416
+ "target-missing": "target-missing";
1417
+ "delivery-missing": "delivery-missing";
1418
+ }>;
1419
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1420
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1421
+ kind: z.ZodLiteral<"checkout-not-followable">;
1422
+ target: z.ZodString;
1423
+ path: z.ZodString;
1424
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1425
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1426
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1427
+ kind: z.ZodLiteral<"integration-unsupported">;
1428
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1429
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1430
+ kind: z.ZodLiteral<"integration-conflict">;
1431
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1432
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1433
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1434
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1435
+ kind: z.ZodEnum<{
1436
+ "not-based-on-target": "not-based-on-target";
1437
+ "unrelated-histories": "unrelated-histories";
1438
+ }>;
1439
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1440
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1441
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1442
+ kind: z.ZodLiteral<"retry">;
1443
+ reason: z.ZodLiteral<"publication-failed">;
1444
+ diagnostic: z.ZodString;
1445
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1446
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1447
+ kind: z.ZodLiteral<"retry">;
1448
+ reason: z.ZodEnum<{
1449
+ exhausted: "exhausted";
1450
+ collision: "collision";
1451
+ }>;
1452
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1453
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1454
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
1455
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1456
+ reason: z.ZodEnum<{
1457
+ missing: "missing";
1458
+ replaced: "replaced";
1459
+ unappointed: "unappointed";
1460
+ association: "association";
1461
+ attached: "attached";
1462
+ uncommitted: "uncommitted";
1463
+ operation: "operation";
1464
+ }>;
1465
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1466
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1467
+ kind: z.ZodEnum<{
1468
+ "target-contract-missing": "target-contract-missing";
1469
+ "target-contract-terminal": "target-contract-terminal";
1470
+ }>;
1471
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1472
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1473
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1474
+ kind: z.ZodEnum<{
1475
+ terminal: "terminal";
1476
+ "contract-missing": "contract-missing";
1477
+ }>;
1478
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1479
+ }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
1480
+ kind: z.ZodLiteral<"execution-stopped">;
1481
+ reason: z.ZodEnum<{
1482
+ failed: "failed";
1483
+ cancelled: "cancelled";
1484
+ }>;
1485
+ diagnostic: z.ZodString;
1486
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1487
+ }, z.core.$strict>>)[]>>>>;
1488
+ }, z.core.$strict>>>;
1489
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1490
+ kind: z.ZodLiteral<"refused">;
1491
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1492
+ reason: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1493
+ kind: z.ZodEnum<{
1494
+ terminal: "terminal";
1495
+ "contract-missing": "contract-missing";
1496
+ }>;
1497
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1498
+ kind: z.ZodLiteral<"worktree-missing">;
1499
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1500
+ kind: z.ZodLiteral<"dirty-submodules">;
1501
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1502
+ }, z.core.$strict>>]>;
1503
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1504
+ kind: z.ZodLiteral<"retry">;
1505
+ reason: z.ZodEnum<{
1506
+ exhausted: "exhausted";
1507
+ collision: "collision";
1508
+ }>;
1509
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1510
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1511
+ kind: z.ZodLiteral<"retry">;
1512
+ reason: z.ZodLiteral<"publication-failed">;
1513
+ diagnostic: z.ZodString;
1514
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1515
+ }, z.core.$strict>>]>;
1516
+ export declare const arcOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1517
+ kind: z.ZodLiteral<"accepted">;
1518
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1519
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1520
+ kind: z.ZodLiteral<"worktree-retained">;
1521
+ path: z.ZodString;
1522
+ diagnostic: z.ZodExactOptional<z.ZodString>;
1523
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1524
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1525
+ kind: z.ZodLiteral<"unsealed-bytes">;
1526
+ path: z.ZodString;
1527
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1528
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1529
+ kind: z.ZodLiteral<"target-checkout-retained">;
1530
+ path: z.ZodString;
1531
+ target: z.ZodString;
1532
+ diagnostic: z.ZodString;
1533
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1534
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1535
+ kind: z.ZodLiteral<"target-workspace-retained">;
1536
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1537
+ reason: z.ZodEnum<{
1538
+ missing: "missing";
1539
+ replaced: "replaced";
1540
+ unappointed: "unappointed";
1541
+ association: "association";
1542
+ attached: "attached";
1543
+ uncommitted: "uncommitted";
1544
+ operation: "operation";
1545
+ }>;
1546
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1547
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1548
+ kind: z.ZodLiteral<"worktree-hook-failed">;
1549
+ phase: z.ZodEnum<{
1550
+ destroy: "destroy";
1551
+ create: "create";
1552
+ }>;
1553
+ path: z.ZodString;
1554
+ name: z.ZodString;
1555
+ diagnostic: z.ZodString;
1556
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1557
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1558
+ kind: z.ZodLiteral<"reconcile-failed">;
1559
+ diagnostic: z.ZodString;
1560
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1561
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1562
+ kind: z.ZodLiteral<"contract-file-failed">;
1563
+ path: z.ZodString;
1564
+ diagnostic: z.ZodString;
1565
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1566
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1567
+ kind: z.ZodLiteral<"decode-channel-retirement">;
1568
+ diagnostic: z.ZodString;
1569
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1570
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1571
+ kind: z.ZodLiteral<"private-state-seat-close">;
1572
+ diagnostic: z.ZodString;
1573
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1574
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1575
+ kind: z.ZodLiteral<"execution-stopped">;
1576
+ reason: z.ZodEnum<{
1577
+ failed: "failed";
1578
+ cancelled: "cancelled";
1579
+ }>;
1580
+ diagnostic: z.ZodString;
1581
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1582
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1583
+ kind: z.ZodLiteral<"settlement-failed">;
1584
+ debtId: z.ZodExactOptional<z.ZodString>;
1585
+ diagnostic: z.ZodString;
1586
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1587
+ }, z.core.$strict>>]>>>>;
1588
+ chapter: z.ZodNumber;
1589
+ recoverySnapshots: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>>>;
1590
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1591
+ kind: z.ZodLiteral<"refused">;
1592
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1593
+ reason: z.ZodReadonly<z.ZodObject<{
1594
+ kind: z.ZodEnum<{
1595
+ terminal: "terminal";
1596
+ "contract-missing": "contract-missing";
1597
+ }>;
1598
+ }, z.core.$strict>>;
1599
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1600
+ kind: z.ZodLiteral<"retry">;
1601
+ reason: z.ZodEnum<{
1602
+ exhausted: "exhausted";
1603
+ collision: "collision";
23
1604
  }>;
24
- }> & AmendRegionObservation;
1605
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1606
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1607
+ kind: z.ZodLiteral<"retry">;
1608
+ reason: z.ZodLiteral<"publication-failed">;
1609
+ diagnostic: z.ZodString;
1610
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1611
+ }, z.core.$strict>>]>;
1612
+ export declare const abandonOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1613
+ kind: z.ZodLiteral<"accepted">;
1614
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1615
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1616
+ kind: z.ZodLiteral<"worktree-retained">;
1617
+ path: z.ZodString;
1618
+ diagnostic: z.ZodExactOptional<z.ZodString>;
1619
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1620
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1621
+ kind: z.ZodLiteral<"unsealed-bytes">;
1622
+ path: z.ZodString;
1623
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1624
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1625
+ kind: z.ZodLiteral<"target-checkout-retained">;
1626
+ path: z.ZodString;
1627
+ target: z.ZodString;
1628
+ diagnostic: z.ZodString;
1629
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1630
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1631
+ kind: z.ZodLiteral<"target-workspace-retained">;
1632
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1633
+ reason: z.ZodEnum<{
1634
+ missing: "missing";
1635
+ replaced: "replaced";
1636
+ unappointed: "unappointed";
1637
+ association: "association";
1638
+ attached: "attached";
1639
+ uncommitted: "uncommitted";
1640
+ operation: "operation";
1641
+ }>;
1642
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1643
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1644
+ kind: z.ZodLiteral<"worktree-hook-failed">;
1645
+ phase: z.ZodEnum<{
1646
+ destroy: "destroy";
1647
+ create: "create";
1648
+ }>;
1649
+ path: z.ZodString;
1650
+ name: z.ZodString;
1651
+ diagnostic: z.ZodString;
1652
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1653
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1654
+ kind: z.ZodLiteral<"reconcile-failed">;
1655
+ diagnostic: z.ZodString;
1656
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1657
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1658
+ kind: z.ZodLiteral<"contract-file-failed">;
1659
+ path: z.ZodString;
1660
+ diagnostic: z.ZodString;
1661
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1662
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1663
+ kind: z.ZodLiteral<"decode-channel-retirement">;
1664
+ diagnostic: z.ZodString;
1665
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1666
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1667
+ kind: z.ZodLiteral<"private-state-seat-close">;
1668
+ diagnostic: z.ZodString;
1669
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1670
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1671
+ kind: z.ZodLiteral<"execution-stopped">;
1672
+ reason: z.ZodEnum<{
1673
+ failed: "failed";
1674
+ cancelled: "cancelled";
1675
+ }>;
1676
+ diagnostic: z.ZodString;
1677
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1678
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1679
+ kind: z.ZodLiteral<"settlement-failed">;
1680
+ debtId: z.ZodExactOptional<z.ZodString>;
1681
+ diagnostic: z.ZodString;
1682
+ contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
1683
+ }, z.core.$strict>>]>>>>;
1684
+ recoverySnapshots: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>>>;
1685
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1686
+ kind: z.ZodLiteral<"refused">;
1687
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1688
+ reason: z.ZodReadonly<z.ZodObject<{
1689
+ kind: z.ZodEnum<{
1690
+ terminal: "terminal";
1691
+ "contract-missing": "contract-missing";
1692
+ }>;
1693
+ }, z.core.$strict>>;
1694
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1695
+ kind: z.ZodLiteral<"retry">;
1696
+ reason: z.ZodEnum<{
1697
+ exhausted: "exhausted";
1698
+ collision: "collision";
1699
+ }>;
1700
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1701
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1702
+ kind: z.ZodLiteral<"retry">;
1703
+ reason: z.ZodLiteral<"publication-failed">;
1704
+ diagnostic: z.ZodString;
1705
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1706
+ }, z.core.$strict>>]>;
1707
+ export declare const deliveryPreviewOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1708
+ kind: z.ZodLiteral<"ready">;
1709
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1710
+ candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1711
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1712
+ contentId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
1713
+ scope: z.ZodReadonly<z.ZodObject<{
1714
+ filesChanged: z.ZodExactOptional<z.ZodNumber>;
1715
+ insertions: z.ZodExactOptional<z.ZodNumber>;
1716
+ deletions: z.ZodExactOptional<z.ZodNumber>;
1717
+ paths: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1718
+ }, z.core.$strict>>;
1719
+ diff: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1720
+ kind: z.ZodLiteral<"present">;
1721
+ text: z.ZodString;
1722
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1723
+ kind: z.ZodLiteral<"unavailable">;
1724
+ }, z.core.$strict>>]>>;
1725
+ unmetGates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1726
+ state: z.ZodLiteral<"missing">;
1727
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1728
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1729
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1730
+ state: z.ZodLiteral<"unsatisfied">;
1731
+ summary: z.ZodExactOptional<z.ZodString>;
1732
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1733
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1734
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1735
+ state: z.ZodLiteral<"stale">;
1736
+ previousContentId: z.ZodExactOptional<z.ZodString>;
1737
+ currentContentId: z.ZodExactOptional<z.ZodString>;
1738
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
1739
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1740
+ }, z.core.$strict>>]>>>>;
1741
+ unmetPrerequisites: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1742
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1743
+ state: z.ZodEnum<{
1744
+ active: "active";
1745
+ abandoned: "abandoned";
1746
+ missing: "missing";
1747
+ }>;
1748
+ }, z.core.$strict>>>>>;
1749
+ target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1750
+ kind: z.ZodLiteral<"placeable">;
1751
+ ref: z.ZodString;
1752
+ head: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1753
+ behind: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unknown">]>>;
1754
+ checkouts: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1755
+ path: z.ZodString;
1756
+ diagnostic: z.ZodString;
1757
+ }, z.core.$strict>>>>>;
1758
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1759
+ kind: z.ZodLiteral<"moved">;
1760
+ ref: z.ZodString;
1761
+ expected: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1762
+ observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
1763
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1764
+ kind: z.ZodLiteral<"refused">;
1765
+ reason: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1766
+ kind: z.ZodLiteral<"checkout-not-followable">;
1767
+ target: z.ZodString;
1768
+ path: z.ZodString;
1769
+ paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1770
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1771
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
1772
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1773
+ reason: z.ZodEnum<{
1774
+ missing: "missing";
1775
+ replaced: "replaced";
1776
+ unappointed: "unappointed";
1777
+ association: "association";
1778
+ attached: "attached";
1779
+ uncommitted: "uncommitted";
1780
+ operation: "operation";
1781
+ }>;
1782
+ }, z.core.$strict>>]>;
1783
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1784
+ kind: z.ZodLiteral<"failed">;
1785
+ diagnostic: z.ZodString;
1786
+ }, z.core.$strict>>]>>;
1787
+ previousContentId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>>;
1788
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1789
+ kind: z.ZodLiteral<"decode-channel-retirement">;
1790
+ diagnostic: z.ZodString;
1791
+ }, z.core.$strict>>>>>;
1792
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1793
+ kind: z.ZodLiteral<"blocked">;
1794
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1795
+ reason: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1796
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
1797
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1798
+ reason: z.ZodEnum<{
1799
+ missing: "missing";
1800
+ replaced: "replaced";
1801
+ unappointed: "unappointed";
1802
+ association: "association";
1803
+ attached: "attached";
1804
+ uncommitted: "uncommitted";
1805
+ operation: "operation";
1806
+ }>;
1807
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1808
+ kind: z.ZodEnum<{
1809
+ "worktree-missing": "worktree-missing";
1810
+ "target-missing": "target-missing";
1811
+ }>;
1812
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1813
+ kind: z.ZodLiteral<"dirty-workspace">;
1814
+ paths: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1815
+ submodules: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1816
+ }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1817
+ kind: z.ZodEnum<{
1818
+ "not-based-on-target": "not-based-on-target";
1819
+ "unrelated-histories": "unrelated-histories";
1820
+ }>;
1821
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1822
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1823
+ kind: z.ZodLiteral<"integration-conflict">;
1824
+ targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1825
+ conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1826
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1827
+ kind: z.ZodLiteral<"integration-unsupported">;
1828
+ }, z.core.$strict>>]>]>;
1829
+ issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1830
+ kind: z.ZodLiteral<"decode-channel-retirement">;
1831
+ diagnostic: z.ZodString;
1832
+ }, z.core.$strict>>>>>;
1833
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1834
+ kind: z.ZodLiteral<"refused">;
1835
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1836
+ reason: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
1837
+ kind: z.ZodEnum<{
1838
+ terminal: "terminal";
1839
+ "contract-missing": "contract-missing";
1840
+ }>;
1841
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1842
+ kind: z.ZodEnum<{
1843
+ "target-contract-missing": "target-contract-missing";
1844
+ "target-contract-terminal": "target-contract-terminal";
1845
+ }>;
1846
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1847
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1848
+ kind: z.ZodLiteral<"verification-declaration-invalid">;
1849
+ }, z.core.$strict>>]>;
1850
+ }, z.core.$strict>>]>;
25
1851
  export type BindOutcome = OperationOutcome<"bind", BindValue, OperationRefusals["bind"]>;
26
1852
  export type AmendOutcome = OperationOutcome<"amend", AmendValue, OperationRefusals["amend"]>;
27
- export type DeliverOutcome = OperationOutcome<"deliver", Delivery & DeliveryValue, OperationRefusals["deliver"]> | HandoffOutcome;
1853
+ export type DeliverOutcome = OperationOutcome<"deliver", Delivery, OperationRefusals["deliver"]> | HandoffOutcome;
28
1854
  export type VerifyOutcome = OperationOutcome<"verify", Verify, OperationRefusals["verify"]>;
29
1855
  export type ReviewOutcome = OperationOutcome<"review", Review, OperationRefusals["review"]>;
30
- export type DeliveryPreviewOutcome = OperationOutcome<"deliver-preview", DeliveryPreviewReport, OperationRefusals["deliver-preview"]>;
31
- export type ArcOutcome = OperationOutcome<"arc", void, OperationRefusals["arc"]>;
32
- export type AbandonOutcome = OperationOutcome<"abandon", void, OperationRefusals["abandon"]>;
1856
+ export type ArcOutcome = OperationOutcome<"arc", Readonly<{
1857
+ chapter: number;
1858
+ }>, OperationRefusals["arc"]>;
1859
+ export type AbandonOutcome = OperationOutcome<"abandon", Record<never, never>, OperationRefusals["abandon"]>;
1860
+ export type DeliveryPreviewOutcome = (DeliveryPreviewReport & Readonly<{
1861
+ issues?: readonly z.output<typeof previewIssueSchema>[];
1862
+ }>) | Readonly<{
1863
+ kind: "refused";
1864
+ contractId: ContractId;
1865
+ reason: OperationRefusals["deliver-preview"];
1866
+ }>;
33
1867
  export type MutationObservation = Readonly<{
34
1868
  observe?: ExecutionObserver;
35
1869
  }>;
@@ -42,7 +1876,6 @@ export type BindResult = BindOutcome;
42
1876
  type AcceptedIntent<Value> = Extract<IntentOutcome<Value>, {
43
1877
  kind: "accepted";
44
1878
  }>;
45
- /** The refused/retry arms are value-agnostic, so every operation can return them unchanged. */
46
1879
  type ExpectedProjection<Refusal> = Readonly<{
47
1880
  kind: "refused";
48
1881
  contract?: ContractId;
@@ -52,9 +1885,26 @@ type ExpectedProjection<Refusal> = Readonly<{
52
1885
  contract?: ContractId;
53
1886
  reason: IntentRetry;
54
1887
  }>;
55
- export declare function expected<Refusal>(contract: ContractId | undefined, admission: Exclude<IntentOutcome<unknown, Refusal>, {
1888
+ type RetryProjection = Readonly<{
1889
+ kind: "retry";
1890
+ contract?: ContractId;
1891
+ reason: IntentRetry;
1892
+ }>;
1893
+ export declare function expected(contract: ContractId | undefined, admission: Readonly<{
1894
+ kind: "retry";
1895
+ reason: IntentRetry;
1896
+ }>): RetryProjection;
1897
+ export declare function expected<Refusal extends Parameters<typeof compactReason>[0]>(contract: ContractId | undefined, admission: Readonly<{
1898
+ kind: "refused";
1899
+ refusal: Refusal;
1900
+ }> | Readonly<{
1901
+ kind: "retry";
1902
+ reason: IntentRetry;
1903
+ }>): ExpectedProjection<CompactReason<Refusal>>;
1904
+ export declare function acceptedOutcome<Value>(contract: ContractId, accumulator: InvocationAccumulator, value: Value): Readonly<{
56
1905
  kind: "accepted";
57
- }>): ExpectedProjection<Refusal>;
58
- export declare function acceptedOutcome<Operation extends ContractVerb, Value>(operation: Operation, contract: ContractId, accumulator: InvocationAccumulator, value: Value): OutcomeProjection<Operation, Value, never>;
1906
+ contract: ContractId;
1907
+ value: Value;
1908
+ }>;
59
1909
  export declare function retainAdmission<Value>(accumulator: InvocationAccumulator, contract: ContractId, leading: AcceptedIntent<Value>): void;
60
1910
  export {};