@astrosheep/keiyaku 4.6.30 → 4.6.32

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