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