@astrosheep/keiyaku 4.6.7 → 4.6.9

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 (336) hide show
  1. package/README.md +46 -16
  2. package/build/plugins/claude/.claude-plugin/plugin.json +1 -1
  3. package/build/plugins/claude/skills/keiyaku/SKILL.md +5 -6
  4. package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +1 -1
  5. package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +8 -8
  6. package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +1 -1
  7. package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +9 -9
  8. package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +91 -0
  9. package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +2 -2
  10. package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
  11. package/build/plugins/codex/skills/keiyaku/SKILL.md +5 -6
  12. package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +1 -1
  13. package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +8 -8
  14. package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +1 -1
  15. package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +9 -9
  16. package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +91 -0
  17. package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +2 -2
  18. package/build/plugins/opencode/index.js +1 -1
  19. package/build/plugins/opencode/skills/keiyaku/SKILL.md +5 -6
  20. package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +1 -1
  21. package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +8 -8
  22. package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +1 -1
  23. package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +9 -9
  24. package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +91 -0
  25. package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +2 -2
  26. package/build/plugins/pi/keiyaku.ts +0 -5
  27. package/build/skills/keiyaku/SKILL.md +5 -6
  28. package/build/skills/keiyaku-akuma/SKILL.md +1 -1
  29. package/build/skills/keiyaku-akuma/references/automation.md +8 -8
  30. package/build/skills/keiyaku-babysit/SKILL.md +1 -1
  31. package/build/skills/keiyaku-bind/SKILL.md +9 -9
  32. package/build/skills/keiyaku-debt/SKILL.md +91 -0
  33. package/build/skills/keiyaku-workflow/SKILL.md +2 -2
  34. package/build/src/akuma/akuma-call.d.ts +2 -0
  35. package/build/src/akuma/akuma-call.js +8 -2
  36. package/build/src/akuma/akuma-instance.d.ts +14 -1
  37. package/build/src/akuma/akuma-instance.js +37 -7
  38. package/build/src/akuma/akuma-observe.d.ts +33 -8
  39. package/build/src/akuma/akuma-observe.js +89 -63
  40. package/build/src/akuma/akuma-owner.d.ts +14 -2
  41. package/build/src/akuma/akuma-owner.js +49 -35
  42. package/build/src/akuma/akuma-selection-execution.js +9 -1
  43. package/build/src/akuma/akuma-stream.d.ts +22 -0
  44. package/build/src/akuma/akuma-stream.js +116 -0
  45. package/build/src/akuma/akuma-wait.d.ts +1 -40
  46. package/build/src/akuma/akuma-wait.js +23 -84
  47. package/build/src/akuma/akuma.d.ts +52 -16
  48. package/build/src/akuma/akuma.js +10 -10
  49. package/build/src/akuma/allowed.d.ts +7 -12
  50. package/build/src/akuma/allowed.js +13 -4
  51. package/build/src/akuma/archetype.d.ts +7 -15
  52. package/build/src/akuma/archetype.js +36 -35
  53. package/build/src/akuma/body-supervisor.d.ts +5 -5
  54. package/build/src/akuma/body-supervisor.js +22 -20
  55. package/build/src/akuma/body.d.ts +5 -3
  56. package/build/src/akuma/body.js +57 -8
  57. package/build/src/akuma/call-request.d.ts +30 -32
  58. package/build/src/akuma/call-request.js +10 -3
  59. package/build/src/akuma/caller.d.ts +39 -0
  60. package/build/src/akuma/caller.js +36 -0
  61. package/build/src/akuma/dispatch-association.d.ts +0 -1
  62. package/build/src/akuma/dispatch-association.js +0 -3
  63. package/build/src/akuma/heart/activity-schema.d.ts +12 -0
  64. package/build/src/akuma/heart/activity-schema.js +6 -0
  65. package/build/src/akuma/heart/facts.d.ts +16 -12
  66. package/build/src/akuma/heart/facts.js +8 -0
  67. package/build/src/akuma/heart/index.d.ts +61 -9
  68. package/build/src/akuma/heart/index.js +89 -24
  69. package/build/src/akuma/heart/rows.d.ts +3 -3
  70. package/build/src/akuma/heart/rows.js +5 -3
  71. package/build/src/akuma/heart/soul.d.ts +10 -1
  72. package/build/src/akuma/heart/soul.js +34 -24
  73. package/build/src/akuma/heart/storage.d.ts +20 -0
  74. package/build/src/akuma/heart/storage.js +62 -3
  75. package/build/src/akuma/heart/timeline.d.ts +7 -0
  76. package/build/src/akuma/heart/timeline.js +10 -0
  77. package/build/src/akuma/identity.d.ts +0 -1
  78. package/build/src/akuma/identity.js +2 -5
  79. package/build/src/akuma/index.d.ts +6 -2
  80. package/build/src/akuma/index.js +1 -0
  81. package/build/src/akuma/nuke.js +6 -28
  82. package/build/src/akuma/projection.d.ts +25 -11
  83. package/build/src/akuma/projection.js +24 -7
  84. package/build/src/akuma/provider-recipe.d.ts +18 -6
  85. package/build/src/akuma/provider-recipe.js +24 -1
  86. package/build/src/akuma/provider.d.ts +31 -10
  87. package/build/src/akuma/provider.js +105 -14
  88. package/build/src/akuma/providers/acp/events.js +29 -19
  89. package/build/src/akuma/providers/acp/index.js +2 -3
  90. package/build/src/akuma/providers/claude/events.js +110 -69
  91. package/build/src/akuma/providers/claude/index.d.ts +2 -2
  92. package/build/src/akuma/providers/claude/index.js +4 -8
  93. package/build/src/akuma/providers/codex-app-server/events.js +17 -2
  94. package/build/src/akuma/providers/codex-app-server/index.js +17 -11
  95. package/build/src/akuma/providers/decode.d.ts +33 -0
  96. package/build/src/akuma/providers/decode.js +65 -0
  97. package/build/src/akuma/providers/execution-environment.d.ts +2 -1
  98. package/build/src/akuma/providers/execution-environment.js +3 -0
  99. package/build/src/akuma/providers/grok-build/index.js +16 -48
  100. package/build/src/akuma/providers/index.js +2 -0
  101. package/build/src/akuma/providers/lifecycle.d.ts +9 -0
  102. package/build/src/akuma/providers/lifecycle.js +10 -0
  103. package/build/src/akuma/providers/opencode-sdk/event-stream.d.ts +3 -3
  104. package/build/src/akuma/providers/opencode-sdk/event-stream.js +2 -25
  105. package/build/src/akuma/providers/opencode-sdk/events.d.ts +7 -43
  106. package/build/src/akuma/providers/opencode-sdk/events.js +146 -296
  107. package/build/src/akuma/providers/opencode-sdk/index.js +270 -431
  108. package/build/src/akuma/providers/opencode-sdk/native-http.d.ts +9 -0
  109. package/build/src/akuma/providers/opencode-sdk/native-http.js +69 -0
  110. package/build/src/akuma/providers/opencode-sdk/session.d.ts +42 -36
  111. package/build/src/akuma/providers/opencode-sdk/session.js +75 -84
  112. package/build/src/akuma/providers/paseo/events.d.ts +33 -0
  113. package/build/src/akuma/providers/paseo/events.js +204 -0
  114. package/build/src/akuma/providers/paseo/index.d.ts +9 -0
  115. package/build/src/akuma/providers/paseo/index.js +357 -0
  116. package/build/src/akuma/providers/pi/events.d.ts +2 -0
  117. package/build/src/akuma/providers/pi/events.js +36 -38
  118. package/build/src/akuma/providers/pi/index.js +21 -35
  119. package/build/src/akuma/publication.d.ts +2 -0
  120. package/build/src/akuma/publication.js +5 -0
  121. package/build/src/akuma/request-lifecycle.d.ts +4 -2
  122. package/build/src/akuma/request-lifecycle.js +27 -12
  123. package/build/src/akuma/request-rendezvous.js +38 -55
  124. package/build/src/akuma/request-serve.d.ts +1 -1
  125. package/build/src/akuma/request-serve.js +77 -113
  126. package/build/src/akuma/requests.d.ts +3 -1
  127. package/build/src/akuma/requests.js +32 -0
  128. package/build/src/akuma/selection-observation.d.ts +129 -53
  129. package/build/src/akuma/selection-observation.js +3 -9
  130. package/build/src/akuma/turn-drive.d.ts +3 -0
  131. package/build/src/akuma/turn-drive.js +28 -10
  132. package/build/src/akuma-body.js +12 -22
  133. package/build/src/cli/akuma-caller.d.ts +3 -0
  134. package/build/src/cli/akuma-caller.js +31 -0
  135. package/build/src/cli/commands/akuma-grammar.js +10 -16
  136. package/build/src/cli/commands/akuma.js +25 -55
  137. package/build/src/cli/commands/contract-grammar.d.ts +9 -7
  138. package/build/src/cli/commands/contract-grammar.js +40 -47
  139. package/build/src/cli/commands/contract-help.d.ts +17 -7
  140. package/build/src/cli/commands/contract-help.js +50 -11
  141. package/build/src/cli/commands/contract.js +34 -63
  142. package/build/src/cli/commands/debt-grammar.d.ts +19 -0
  143. package/build/src/cli/commands/debt-grammar.js +323 -0
  144. package/build/src/cli/commands/debt-query.d.ts +5 -0
  145. package/build/src/cli/commands/{task-query.js → debt-query.js} +9 -9
  146. package/build/src/cli/commands/{task.d.ts → debt.d.ts} +2 -2
  147. package/build/src/cli/commands/{task.js → debt.js} +87 -164
  148. package/build/src/cli/coordinates.d.ts +1 -1
  149. package/build/src/cli/coordinates.js +1 -1
  150. package/build/src/cli/parse.d.ts +5 -5
  151. package/build/src/cli/parse.js +17 -16
  152. package/build/src/cli/render/akuma-activity.d.ts +11 -83
  153. package/build/src/cli/render/akuma-activity.js +20 -382
  154. package/build/src/cli/render/catalog.d.ts +4 -7
  155. package/build/src/cli/render/catalog.js +5 -5
  156. package/build/src/cli/render/contract-history.js +3 -6
  157. package/build/src/cli/render/contract.js +17 -52
  158. package/build/src/cli/render/debt.d.ts +28 -0
  159. package/build/src/cli/render/{task.js → debt.js} +55 -133
  160. package/build/src/cli/render/kanshi.js +28 -28
  161. package/build/src/cli/render/marks.d.ts +5 -5
  162. package/build/src/cli/render/marks.js +4 -10
  163. package/build/src/cli/render/nuke.js +1 -1
  164. package/build/src/cli/render/receipt.js +3 -10
  165. package/build/src/cli/runtime.d.ts +1 -1
  166. package/build/src/cli/runtime.js +14 -20
  167. package/build/src/cli/scan.d.ts +1 -1
  168. package/build/src/cli/selectors.d.ts +3 -6
  169. package/build/src/cli/selectors.js +22 -53
  170. package/build/src/cli/usage.d.ts +1 -1
  171. package/build/src/cli/usage.js +4 -4
  172. package/build/src/contract-worktree.js +3 -3
  173. package/build/src/debt/board.d.ts +160 -0
  174. package/build/src/{task → debt}/board.js +89 -89
  175. package/build/src/debt/catalog.d.ts +11 -0
  176. package/build/src/debt/catalog.js +59 -0
  177. package/build/src/{task → debt}/context.d.ts +1 -1
  178. package/build/src/{task → debt}/context.js +1 -1
  179. package/build/src/{task → debt}/created-observation.d.ts +6 -10
  180. package/build/src/{task → debt}/created-observation.js +7 -7
  181. package/build/src/debt/document.d.ts +37 -0
  182. package/build/src/{task → debt}/document.js +37 -37
  183. package/build/src/debt/identity.d.ts +21 -0
  184. package/build/src/{task → debt}/identity.js +35 -35
  185. package/build/src/debt/index.d.ts +111 -0
  186. package/build/src/debt/index.js +203 -0
  187. package/build/src/{task → debt}/input.d.ts +8 -8
  188. package/build/src/{task → debt}/input.js +21 -21
  189. package/build/src/debt/lifecycle-operations.d.ts +6 -0
  190. package/build/src/{task → debt}/lifecycle-operations.js +27 -31
  191. package/build/src/debt/mutation-result.d.ts +981 -0
  192. package/build/src/debt/mutation-result.js +109 -0
  193. package/build/src/debt/mutation.d.ts +424 -0
  194. package/build/src/debt/mutation.js +223 -0
  195. package/build/src/debt/operation-types.d.ts +71 -0
  196. package/build/src/debt/operations.d.ts +28 -0
  197. package/build/src/{task → debt}/operations.js +59 -60
  198. package/build/src/debt/query.d.ts +76 -0
  199. package/build/src/{task → debt}/query.js +55 -55
  200. package/build/src/{task → debt}/store.d.ts +13 -13
  201. package/build/src/{task → debt}/store.js +58 -49
  202. package/build/src/debt/view.d.ts +4 -0
  203. package/build/src/debt/view.js +7 -0
  204. package/build/src/dispatch/index.d.ts +3 -3
  205. package/build/src/dispatch/index.js +1 -2
  206. package/build/src/git/observe.d.ts +6 -2
  207. package/build/src/git/observe.js +6 -2
  208. package/build/src/identity/coordinates.d.ts +1 -1
  209. package/build/src/index.d.ts +17 -17
  210. package/build/src/index.js +11 -11
  211. package/build/src/kanshi/index.d.ts +2 -2
  212. package/build/src/kanshi/read.js +54 -39
  213. package/build/src/kanshi/report.d.ts +7 -7
  214. package/build/src/kanshi/select.js +4 -4
  215. package/build/src/library/address.js +2 -4
  216. package/build/src/library/akuma-creation.d.ts +5 -1
  217. package/build/src/library/akuma-creation.js +27 -47
  218. package/build/src/library/akumas.d.ts +7 -7
  219. package/build/src/library/akumas.js +13 -9
  220. package/build/src/library/bind.d.ts +17 -17
  221. package/build/src/library/bind.js +16 -12
  222. package/build/src/library/contract-address.d.ts +9 -0
  223. package/build/src/library/contract-address.js +71 -0
  224. package/build/src/library/contract-composition.d.ts +4 -7
  225. package/build/src/library/contract-composition.js +6 -18
  226. package/build/src/library/contract-creation.d.ts +3 -5
  227. package/build/src/library/contract-creation.js +24 -22
  228. package/build/src/library/contract-execution.js +21 -26
  229. package/build/src/library/contract-outcomes.d.ts +2 -14
  230. package/build/src/library/contract-outcomes.js +2 -13
  231. package/build/src/library/contract-types.d.ts +38 -4
  232. package/build/src/library/delivery.d.ts +0 -2
  233. package/build/src/library/delivery.js +2 -5
  234. package/build/src/library/input.d.ts +2 -2
  235. package/build/src/library/input.js +5 -5
  236. package/build/src/library/invocation.js +2 -2
  237. package/build/src/library/keiyaku.d.ts +0 -5
  238. package/build/src/library/keiyaku.js +6 -12
  239. package/build/src/library/nuke.js +3 -3
  240. package/build/src/library/outcome.d.ts +626 -625
  241. package/build/src/library/outcome.js +13 -3
  242. package/build/src/library/reconcile.js +8 -16
  243. package/build/src/library/refusal.d.ts +2 -2
  244. package/build/src/library/repo.d.ts +3 -2
  245. package/build/src/library/repo.js +10 -5
  246. package/build/src/library/selection.d.ts +5 -8
  247. package/build/src/library/selection.js +22 -73
  248. package/build/src/plugin/akuma-signals.d.ts +2 -0
  249. package/build/src/plugin/akuma-signals.js +4 -0
  250. package/build/src/plugin/public.d.ts +32 -2
  251. package/build/src/plugin/runtime.js +5 -3
  252. package/build/src/protocol/amend.js +3 -2
  253. package/build/src/protocol/attempt.js +3 -8
  254. package/build/src/protocol/bind.d.ts +2 -2
  255. package/build/src/protocol/bind.js +1 -1
  256. package/build/src/protocol/deliver.js +3 -3
  257. package/build/src/protocol/operations.d.ts +1 -3
  258. package/build/src/protocol/operations.js +0 -8
  259. package/build/src/protocol/outcome.d.ts +1 -2
  260. package/build/src/protocol/outcome.js +1 -13
  261. package/build/src/protocol/placement.js +3 -10
  262. package/build/src/protocol/read/status.js +31 -70
  263. package/build/src/protocol/reintegrate.js +3 -10
  264. package/build/src/protocol/review.js +3 -3
  265. package/build/src/protocol/run.d.ts +5 -1
  266. package/build/src/protocol/run.js +3 -3
  267. package/build/src/runtime/proc/windows-launch.exe +0 -0
  268. package/build/src/settlement/fence.d.ts +3 -3
  269. package/build/src/settlement/fence.js +4 -4
  270. package/build/src/settlement/holder.d.ts +16 -16
  271. package/build/src/settlement/holder.js +69 -63
  272. package/build/src/settlement/settle.d.ts +5 -5
  273. package/build/src/settlement/settle.js +53 -53
  274. package/package.json +19 -9
  275. package/plugins/paseo/plugin/index.server.ts +17 -0
  276. package/plugins/paseo/plugin/paseo-plugin.json +4 -0
  277. package/plugins/paseo/plugin/server/attach.ts +52 -0
  278. package/plugins/paseo/plugin/server/keiyaku.ts +44 -0
  279. package/plugins/paseo/plugin/server/message.ts +60 -0
  280. package/plugins/paseo/plugin/server/mirror.ts +193 -0
  281. package/plugins/paseo/plugin/server/model.ts +14 -0
  282. package/plugins/paseo/plugin/server/provider.ts +276 -0
  283. package/plugins/paseo/plugin/server/sdk-worker.ts +237 -0
  284. package/plugins/paseo/plugin/server/sdk.ts +289 -0
  285. package/plugins/paseo/plugin/server/stop.ts +26 -0
  286. package/plugins/paseo/plugin/server/transport.ts +35 -0
  287. package/plugins/paseo/plugin/shared/attach-rpc.ts +10 -0
  288. package/plugins/paseo/plugin/shared/refresh-rpc.ts +6 -0
  289. package/plugins/paseo/plugin/tsconfig.json +6 -0
  290. package/plugins/pi/keiyaku.ts +57 -0
  291. package/skills/keiyaku/SKILL.md +43 -0
  292. package/skills/keiyaku-akuma/SKILL.md +130 -0
  293. package/skills/keiyaku-akuma/references/automation.md +269 -0
  294. package/skills/keiyaku-babysit/SKILL.md +65 -0
  295. package/skills/keiyaku-bind/SKILL.md +216 -0
  296. package/skills/keiyaku-bind/agents/openai.yaml +4 -0
  297. package/skills/keiyaku-debt/SKILL.md +91 -0
  298. package/skills/keiyaku-workflow/SKILL.md +129 -0
  299. package/build/plugins/claude/skills/keiyaku-task/SKILL.md +0 -104
  300. package/build/plugins/codex/skills/keiyaku-task/SKILL.md +0 -104
  301. package/build/plugins/opencode/skills/keiyaku-task/SKILL.md +0 -104
  302. package/build/skills/keiyaku-task/SKILL.md +0 -104
  303. package/build/src/cli/commands/amend.d.ts +0 -12
  304. package/build/src/cli/commands/amend.js +0 -10
  305. package/build/src/cli/commands/bind.d.ts +0 -11
  306. package/build/src/cli/commands/bind.js +0 -23
  307. package/build/src/cli/commands/task-grammar.d.ts +0 -19
  308. package/build/src/cli/commands/task-grammar.js +0 -384
  309. package/build/src/cli/commands/task-query.d.ts +0 -5
  310. package/build/src/cli/render/task.d.ts +0 -41
  311. package/build/src/dispatch/association.d.ts +0 -1
  312. package/build/src/dispatch/association.js +0 -1
  313. package/build/src/task/board.d.ts +0 -168
  314. package/build/src/task/catalog.d.ts +0 -11
  315. package/build/src/task/catalog.js +0 -59
  316. package/build/src/task/compose-language.d.ts +0 -57
  317. package/build/src/task/compose-language.js +0 -364
  318. package/build/src/task/compose-parser.d.ts +0 -32
  319. package/build/src/task/compose-parser.js +0 -180
  320. package/build/src/task/compose.d.ts +0 -16
  321. package/build/src/task/compose.js +0 -189
  322. package/build/src/task/document.d.ts +0 -39
  323. package/build/src/task/identity.d.ts +0 -21
  324. package/build/src/task/index.d.ts +0 -138
  325. package/build/src/task/index.js +0 -269
  326. package/build/src/task/lifecycle-operations.d.ts +0 -6
  327. package/build/src/task/mutation-result.d.ts +0 -1726
  328. package/build/src/task/mutation-result.js +0 -198
  329. package/build/src/task/mutation.d.ts +0 -590
  330. package/build/src/task/mutation.js +0 -262
  331. package/build/src/task/operation-types.d.ts +0 -71
  332. package/build/src/task/operations.d.ts +0 -28
  333. package/build/src/task/query.d.ts +0 -76
  334. package/build/src/task/view.d.ts +0 -4
  335. package/build/src/task/view.js +0 -7
  336. /package/build/src/{task → debt}/operation-types.js +0 -0
@@ -71,9 +71,9 @@ declare const reconciliationEffectSchema: z.ZodUnion<readonly [z.ZodUnion<readon
71
71
  export type ReconciliationEffect = z.infer<typeof reconciliationEffectSchema>;
72
72
  export type ReconciliationLag = z.infer<typeof reconciliationLagSchema>;
73
73
  declare const resetOwnerSchema: z.ZodEnum<{
74
- task: "task";
75
- akuma: "akuma";
76
74
  world: "world";
75
+ debt: "debt";
76
+ akuma: "akuma";
77
77
  git: "git";
78
78
  }>;
79
79
  export type ResetOwner = z.infer<typeof resetOwnerSchema>;
@@ -227,8 +227,8 @@ declare const invocationEffectSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [
227
227
  kind: z.ZodLiteral<"settlement-action">;
228
228
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
229
229
  action: z.ZodObject<{
230
- kind: z.ZodLiteral<"task">;
231
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
230
+ kind: z.ZodLiteral<"debt">;
231
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
232
232
  action: z.ZodLiteral<"done">;
233
233
  }, z.core.$strict>;
234
234
  }, z.core.$strict>, z.ZodObject<{
@@ -237,11 +237,11 @@ declare const invocationEffectSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [
237
237
  lag: z.ZodObject<{
238
238
  kind: z.ZodLiteral<"settlement-failed">;
239
239
  surface: z.ZodEnum<{
240
- task: "task";
241
- "task-holder": "task-holder";
240
+ debt: "debt";
241
+ "debt-holder": "debt-holder";
242
242
  }>;
243
243
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
244
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
244
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
245
245
  path: z.ZodOptional<z.ZodString>;
246
246
  diagnostic: z.ZodString;
247
247
  }, z.core.$strict>;
@@ -323,9 +323,9 @@ declare const invocationEffectSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [
323
323
  }, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
324
324
  world: z.ZodString;
325
325
  owner: z.ZodEnum<{
326
- task: "task";
327
- akuma: "akuma";
328
326
  world: "world";
327
+ debt: "debt";
328
+ akuma: "akuma";
329
329
  git: "git";
330
330
  }>;
331
331
  diagnostic: z.ZodString;
@@ -333,9 +333,9 @@ declare const invocationEffectSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [
333
333
  }, z.core.$strict>, z.ZodObject<{
334
334
  world: z.ZodString;
335
335
  owner: z.ZodEnum<{
336
- task: "task";
337
- akuma: "akuma";
338
336
  world: "world";
337
+ debt: "debt";
338
+ akuma: "akuma";
339
339
  git: "git";
340
340
  }>;
341
341
  diagnostic: z.ZodString;
@@ -441,6 +441,7 @@ export declare class KeiyakuError extends Error {
441
441
  /** One explicit caller-validation phase; its failures are invalid input with a native TypeError cause. */
442
442
  export declare function validated<Value>(phase: () => Value): Value;
443
443
  export declare function errorCategory(error: unknown): KeiyakuErrorCategory;
444
+ export declare function readContractValue<Value>(operation: () => Promise<Value>): Promise<Value>;
444
445
  /** Attach this invocation's partial envelope without changing the error's own identity or category. */
445
446
  export declare function withOutcomeReceipt(error: unknown, outcome: PartialOutcomeEnvelope): KeiyakuError;
446
447
  export declare const reviewSchema: z.ZodObject<{
@@ -1205,8 +1206,8 @@ declare function acceptedOutcomeSchema<Operation extends ContractVerb, Value>(op
1205
1206
  kind: z.ZodLiteral<"settlement-action">;
1206
1207
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1207
1208
  action: z.ZodObject<{
1208
- kind: z.ZodLiteral<"task">;
1209
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1209
+ kind: z.ZodLiteral<"debt">;
1210
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
1210
1211
  action: z.ZodLiteral<"done">;
1211
1212
  }, z.core.$strict>;
1212
1213
  }, z.core.$strict>, z.ZodObject<{
@@ -1215,11 +1216,11 @@ declare function acceptedOutcomeSchema<Operation extends ContractVerb, Value>(op
1215
1216
  lag: z.ZodObject<{
1216
1217
  kind: z.ZodLiteral<"settlement-failed">;
1217
1218
  surface: z.ZodEnum<{
1218
- task: "task";
1219
- "task-holder": "task-holder";
1219
+ debt: "debt";
1220
+ "debt-holder": "debt-holder";
1220
1221
  }>;
1221
1222
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1222
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1223
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
1223
1224
  path: z.ZodOptional<z.ZodString>;
1224
1225
  diagnostic: z.ZodString;
1225
1226
  }, z.core.$strict>;
@@ -1574,8 +1575,8 @@ declare function refusedOutcomeSchema<Operation extends ContractVerb, Refusal>(o
1574
1575
  kind: z.ZodLiteral<"settlement-action">;
1575
1576
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1576
1577
  action: z.ZodObject<{
1577
- kind: z.ZodLiteral<"task">;
1578
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1578
+ kind: z.ZodLiteral<"debt">;
1579
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
1579
1580
  action: z.ZodLiteral<"done">;
1580
1581
  }, z.core.$strict>;
1581
1582
  }, z.core.$strict>, z.ZodObject<{
@@ -1584,11 +1585,11 @@ declare function refusedOutcomeSchema<Operation extends ContractVerb, Refusal>(o
1584
1585
  lag: z.ZodObject<{
1585
1586
  kind: z.ZodLiteral<"settlement-failed">;
1586
1587
  surface: z.ZodEnum<{
1587
- task: "task";
1588
- "task-holder": "task-holder";
1588
+ debt: "debt";
1589
+ "debt-holder": "debt-holder";
1589
1590
  }>;
1590
1591
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
1591
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1592
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
1592
1593
  path: z.ZodOptional<z.ZodString>;
1593
1594
  diagnostic: z.ZodString;
1594
1595
  }, z.core.$strict>;
@@ -1945,8 +1946,8 @@ declare function refusedOutcomeSchema<Operation extends ContractVerb, Refusal>(o
1945
1946
  kind: "settlement-action";
1946
1947
  contract: ContractId;
1947
1948
  action: {
1948
- kind: "task";
1949
- taskId: `task/${string}`;
1949
+ kind: "debt";
1950
+ debtId: `debt/${string}`;
1950
1951
  action: "done";
1951
1952
  };
1952
1953
  } | {
@@ -1954,10 +1955,10 @@ declare function refusedOutcomeSchema<Operation extends ContractVerb, Refusal>(o
1954
1955
  contract: ContractId;
1955
1956
  lag: {
1956
1957
  kind: "settlement-failed";
1957
- surface: "task" | "task-holder";
1958
+ surface: "debt" | "debt-holder";
1958
1959
  contractId: ContractId;
1959
1960
  diagnostic: string;
1960
- taskId?: `task/${string}` | undefined;
1961
+ debtId?: `debt/${string}` | undefined;
1961
1962
  path?: string | undefined;
1962
1963
  };
1963
1964
  } | {
@@ -2246,8 +2247,8 @@ declare function refusedOutcomeSchema<Operation extends ContractVerb, Refusal>(o
2246
2247
  kind: "settlement-action";
2247
2248
  contract: ContractId;
2248
2249
  action: {
2249
- kind: "task";
2250
- taskId: `task/${string}`;
2250
+ kind: "debt";
2251
+ debtId: `debt/${string}`;
2251
2252
  action: "done";
2252
2253
  };
2253
2254
  } | {
@@ -2255,10 +2256,10 @@ declare function refusedOutcomeSchema<Operation extends ContractVerb, Refusal>(o
2255
2256
  contract: ContractId;
2256
2257
  lag: {
2257
2258
  kind: "settlement-failed";
2258
- surface: "task" | "task-holder";
2259
+ surface: "debt" | "debt-holder";
2259
2260
  contractId: ContractId;
2260
2261
  diagnostic: string;
2261
- taskId?: `task/${string}` | undefined;
2262
+ debtId?: `debt/${string}` | undefined;
2262
2263
  path?: string | undefined;
2263
2264
  };
2264
2265
  } | {
@@ -2541,8 +2542,8 @@ declare function retryOutcomeSchema<Operation extends ContractVerb>(operation: O
2541
2542
  kind: z.ZodLiteral<"settlement-action">;
2542
2543
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
2543
2544
  action: z.ZodObject<{
2544
- kind: z.ZodLiteral<"task">;
2545
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
2545
+ kind: z.ZodLiteral<"debt">;
2546
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
2546
2547
  action: z.ZodLiteral<"done">;
2547
2548
  }, z.core.$strict>;
2548
2549
  }, z.core.$strict>, z.ZodObject<{
@@ -2551,11 +2552,11 @@ declare function retryOutcomeSchema<Operation extends ContractVerb>(operation: O
2551
2552
  lag: z.ZodObject<{
2552
2553
  kind: z.ZodLiteral<"settlement-failed">;
2553
2554
  surface: z.ZodEnum<{
2554
- task: "task";
2555
- "task-holder": "task-holder";
2555
+ debt: "debt";
2556
+ "debt-holder": "debt-holder";
2556
2557
  }>;
2557
2558
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
2558
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
2559
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
2559
2560
  path: z.ZodOptional<z.ZodString>;
2560
2561
  diagnostic: z.ZodString;
2561
2562
  }, z.core.$strict>;
@@ -2912,8 +2913,8 @@ declare function retryOutcomeSchema<Operation extends ContractVerb>(operation: O
2912
2913
  kind: "settlement-action";
2913
2914
  contract: ContractId;
2914
2915
  action: {
2915
- kind: "task";
2916
- taskId: `task/${string}`;
2916
+ kind: "debt";
2917
+ debtId: `debt/${string}`;
2917
2918
  action: "done";
2918
2919
  };
2919
2920
  } | {
@@ -2921,10 +2922,10 @@ declare function retryOutcomeSchema<Operation extends ContractVerb>(operation: O
2921
2922
  contract: ContractId;
2922
2923
  lag: {
2923
2924
  kind: "settlement-failed";
2924
- surface: "task" | "task-holder";
2925
+ surface: "debt" | "debt-holder";
2925
2926
  contractId: ContractId;
2926
2927
  diagnostic: string;
2927
- taskId?: `task/${string}` | undefined;
2928
+ debtId?: `debt/${string}` | undefined;
2928
2929
  path?: string | undefined;
2929
2930
  };
2930
2931
  } | {
@@ -3213,8 +3214,8 @@ declare function retryOutcomeSchema<Operation extends ContractVerb>(operation: O
3213
3214
  kind: "settlement-action";
3214
3215
  contract: ContractId;
3215
3216
  action: {
3216
- kind: "task";
3217
- taskId: `task/${string}`;
3217
+ kind: "debt";
3218
+ debtId: `debt/${string}`;
3218
3219
  action: "done";
3219
3220
  };
3220
3221
  } | {
@@ -3222,10 +3223,10 @@ declare function retryOutcomeSchema<Operation extends ContractVerb>(operation: O
3222
3223
  contract: ContractId;
3223
3224
  lag: {
3224
3225
  kind: "settlement-failed";
3225
- surface: "task" | "task-holder";
3226
+ surface: "debt" | "debt-holder";
3226
3227
  contractId: ContractId;
3227
3228
  diagnostic: string;
3228
- taskId?: `task/${string}` | undefined;
3229
+ debtId?: `debt/${string}` | undefined;
3229
3230
  path?: string | undefined;
3230
3231
  };
3231
3232
  } | {
@@ -3507,8 +3508,8 @@ declare const handoffOutcomeSchema: z.ZodObject<{
3507
3508
  kind: z.ZodLiteral<"settlement-action">;
3508
3509
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
3509
3510
  action: z.ZodObject<{
3510
- kind: z.ZodLiteral<"task">;
3511
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
3511
+ kind: z.ZodLiteral<"debt">;
3512
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
3512
3513
  action: z.ZodLiteral<"done">;
3513
3514
  }, z.core.$strict>;
3514
3515
  }, z.core.$strict>, z.ZodObject<{
@@ -3517,11 +3518,11 @@ declare const handoffOutcomeSchema: z.ZodObject<{
3517
3518
  lag: z.ZodObject<{
3518
3519
  kind: z.ZodLiteral<"settlement-failed">;
3519
3520
  surface: z.ZodEnum<{
3520
- task: "task";
3521
- "task-holder": "task-holder";
3521
+ debt: "debt";
3522
+ "debt-holder": "debt-holder";
3522
3523
  }>;
3523
3524
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
3524
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
3525
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
3525
3526
  path: z.ZodOptional<z.ZodString>;
3526
3527
  diagnostic: z.ZodString;
3527
3528
  }, z.core.$strict>;
@@ -3638,7 +3639,7 @@ export declare function outcomeSchema<Operation extends ContractVerb, Value>(ope
3638
3639
  declare const resetCountsSchema: z.ZodObject<{
3639
3640
  refs: z.ZodNumber;
3640
3641
  worktrees: z.ZodNumber;
3641
- tasks: z.ZodNumber;
3642
+ debts: z.ZodNumber;
3642
3643
  }, z.core.$strict>;
3643
3644
  declare const resetOutcomeSchema: z.ZodUnion<readonly [z.ZodObject<{
3644
3645
  operation: z.ZodLiteral<"nuke">;
@@ -3646,9 +3647,9 @@ declare const resetOutcomeSchema: z.ZodUnion<readonly [z.ZodObject<{
3646
3647
  effects: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3647
3648
  world: z.ZodString;
3648
3649
  owner: z.ZodEnum<{
3649
- task: "task";
3650
- akuma: "akuma";
3651
3650
  world: "world";
3651
+ debt: "debt";
3652
+ akuma: "akuma";
3652
3653
  git: "git";
3653
3654
  }>;
3654
3655
  diagnostic: z.ZodString;
@@ -3656,9 +3657,9 @@ declare const resetOutcomeSchema: z.ZodUnion<readonly [z.ZodObject<{
3656
3657
  }, z.core.$strict>, z.ZodObject<{
3657
3658
  world: z.ZodString;
3658
3659
  owner: z.ZodEnum<{
3659
- task: "task";
3660
- akuma: "akuma";
3661
3660
  world: "world";
3661
+ debt: "debt";
3662
+ akuma: "akuma";
3662
3663
  git: "git";
3663
3664
  }>;
3664
3665
  diagnostic: z.ZodString;
@@ -3682,7 +3683,7 @@ declare const resetOutcomeSchema: z.ZodUnion<readonly [z.ZodObject<{
3682
3683
  removed: z.ZodObject<{
3683
3684
  refs: z.ZodNumber;
3684
3685
  worktrees: z.ZodNumber;
3685
- tasks: z.ZodNumber;
3686
+ debts: z.ZodNumber;
3686
3687
  }, z.core.$strict>;
3687
3688
  }, z.core.$strict>;
3688
3689
  }, z.core.$strict>, z.ZodObject<{
@@ -3691,9 +3692,9 @@ declare const resetOutcomeSchema: z.ZodUnion<readonly [z.ZodObject<{
3691
3692
  effects: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3692
3693
  world: z.ZodString;
3693
3694
  owner: z.ZodEnum<{
3694
- task: "task";
3695
- akuma: "akuma";
3696
3695
  world: "world";
3696
+ debt: "debt";
3697
+ akuma: "akuma";
3697
3698
  git: "git";
3698
3699
  }>;
3699
3700
  diagnostic: z.ZodString;
@@ -3701,9 +3702,9 @@ declare const resetOutcomeSchema: z.ZodUnion<readonly [z.ZodObject<{
3701
3702
  }, z.core.$strict>, z.ZodObject<{
3702
3703
  world: z.ZodString;
3703
3704
  owner: z.ZodEnum<{
3704
- task: "task";
3705
- akuma: "akuma";
3706
3705
  world: "world";
3706
+ debt: "debt";
3707
+ akuma: "akuma";
3707
3708
  git: "git";
3708
3709
  }>;
3709
3710
  diagnostic: z.ZodString;
@@ -3988,8 +3989,8 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
3988
3989
  kind: z.ZodLiteral<"settlement-action">;
3989
3990
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
3990
3991
  action: z.ZodObject<{
3991
- kind: z.ZodLiteral<"task">;
3992
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
3992
+ kind: z.ZodLiteral<"debt">;
3993
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
3993
3994
  action: z.ZodLiteral<"done">;
3994
3995
  }, z.core.$strict>;
3995
3996
  }, z.core.$strict>, z.ZodObject<{
@@ -3998,11 +3999,11 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
3998
3999
  lag: z.ZodObject<{
3999
4000
  kind: z.ZodLiteral<"settlement-failed">;
4000
4001
  surface: z.ZodEnum<{
4001
- task: "task";
4002
- "task-holder": "task-holder";
4002
+ debt: "debt";
4003
+ "debt-holder": "debt-holder";
4003
4004
  }>;
4004
4005
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
4005
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
4006
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
4006
4007
  path: z.ZodOptional<z.ZodString>;
4007
4008
  diagnostic: z.ZodString;
4008
4009
  }, z.core.$strict>;
@@ -4390,8 +4391,8 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
4390
4391
  kind: z.ZodLiteral<"settlement-action">;
4391
4392
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
4392
4393
  action: z.ZodObject<{
4393
- kind: z.ZodLiteral<"task">;
4394
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
4394
+ kind: z.ZodLiteral<"debt">;
4395
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
4395
4396
  action: z.ZodLiteral<"done">;
4396
4397
  }, z.core.$strict>;
4397
4398
  }, z.core.$strict>, z.ZodObject<{
@@ -4400,11 +4401,11 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
4400
4401
  lag: z.ZodObject<{
4401
4402
  kind: z.ZodLiteral<"settlement-failed">;
4402
4403
  surface: z.ZodEnum<{
4403
- task: "task";
4404
- "task-holder": "task-holder";
4404
+ debt: "debt";
4405
+ "debt-holder": "debt-holder";
4405
4406
  }>;
4406
4407
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
4407
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
4408
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
4408
4409
  path: z.ZodOptional<z.ZodString>;
4409
4410
  diagnostic: z.ZodString;
4410
4411
  }, z.core.$strict>;
@@ -4786,8 +4787,8 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
4786
4787
  kind: z.ZodLiteral<"settlement-action">;
4787
4788
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
4788
4789
  action: z.ZodObject<{
4789
- kind: z.ZodLiteral<"task">;
4790
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
4790
+ kind: z.ZodLiteral<"debt">;
4791
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
4791
4792
  action: z.ZodLiteral<"done">;
4792
4793
  }, z.core.$strict>;
4793
4794
  }, z.core.$strict>, z.ZodObject<{
@@ -4796,11 +4797,11 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
4796
4797
  lag: z.ZodObject<{
4797
4798
  kind: z.ZodLiteral<"settlement-failed">;
4798
4799
  surface: z.ZodEnum<{
4799
- task: "task";
4800
- "task-holder": "task-holder";
4800
+ debt: "debt";
4801
+ "debt-holder": "debt-holder";
4801
4802
  }>;
4802
4803
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
4803
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
4804
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
4804
4805
  path: z.ZodOptional<z.ZodString>;
4805
4806
  diagnostic: z.ZodString;
4806
4807
  }, z.core.$strict>;
@@ -4921,21 +4922,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
4921
4922
  } | {
4922
4923
  kind: "stopped";
4923
4924
  stop: {
4924
- refusal: {
4925
- kind: "terminal" | "contract-missing";
4926
- contractId: ContractId;
4927
- } | {
4928
- kind: "verification-declaration-invalid";
4929
- contractId?: ContractId | undefined;
4930
- };
4931
- } | {
4932
- retry: {
4933
- kind: "publication-failed";
4934
- diagnostic: string;
4935
- } | {
4936
- kind: "exhausted" | "collision";
4937
- };
4938
- } | {
4939
4925
  failure: "cancelled" | "unknown-exit";
4940
4926
  stdout?: string | undefined;
4941
4927
  stderr?: string | undefined;
@@ -4978,17 +4964,25 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
4978
4964
  stdout?: string | undefined;
4979
4965
  stderr?: string | undefined;
4980
4966
  truncated?: true | undefined;
4967
+ } | {
4968
+ refusal: {
4969
+ kind: "terminal" | "contract-missing";
4970
+ contractId: ContractId;
4971
+ } | {
4972
+ kind: "verification-declaration-invalid";
4973
+ contractId?: ContractId | undefined;
4974
+ };
4975
+ } | {
4976
+ retry: {
4977
+ kind: "publication-failed";
4978
+ diagnostic: string;
4979
+ } | {
4980
+ kind: "exhausted" | "collision";
4981
+ };
4981
4982
  };
4982
4983
  } | undefined;
4983
4984
  placement?: {
4984
- refusal: {
4985
- kind: "checkout-not-followable";
4986
- contractId: ContractId;
4987
- target: string;
4988
- path: string;
4989
- reason: "untracked";
4990
- paths: readonly string[];
4991
- } | ({
4985
+ refusal: ({
4992
4986
  kind: "integration-failed";
4993
4987
  contractId: ContractId;
4994
4988
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -5000,8 +4994,12 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5000
4994
  contractId: ContractId;
5001
4995
  requiredGit: "2.38";
5002
4996
  } | {
5003
- kind: "target-missing";
4997
+ kind: "checkout-not-followable";
5004
4998
  contractId: ContractId;
4999
+ target: string;
5000
+ path: string;
5001
+ reason: "untracked";
5002
+ paths: readonly string[];
5005
5003
  } | {
5006
5004
  kind: "terminal" | "contract-missing" | "delivery-missing";
5007
5005
  contractId: ContractId;
@@ -5036,6 +5034,9 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5036
5034
  contractId: ContractId;
5037
5035
  state: "abandoned" | "missing" | "active";
5038
5036
  }[];
5037
+ } | {
5038
+ kind: "target-missing";
5039
+ contractId: ContractId;
5039
5040
  };
5040
5041
  } | {
5041
5042
  retry: {
@@ -5079,21 +5080,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5079
5080
  stopped: readonly {
5080
5081
  contractId: ContractId;
5081
5082
  stop: {
5082
- refusal: {
5083
- kind: "terminal" | "contract-missing";
5084
- contractId: ContractId;
5085
- } | {
5086
- kind: "verification-declaration-invalid";
5087
- contractId?: ContractId | undefined;
5088
- };
5089
- } | {
5090
- retry: {
5091
- kind: "publication-failed";
5092
- diagnostic: string;
5093
- } | {
5094
- kind: "exhausted" | "collision";
5095
- };
5096
- } | {
5097
5083
  failure: "cancelled" | "unknown-exit";
5098
5084
  stdout?: string | undefined;
5099
5085
  stderr?: string | undefined;
@@ -5137,14 +5123,7 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5137
5123
  stderr?: string | undefined;
5138
5124
  truncated?: true | undefined;
5139
5125
  } | {
5140
- refusal: {
5141
- kind: "checkout-not-followable";
5142
- contractId: ContractId;
5143
- target: string;
5144
- path: string;
5145
- reason: "untracked";
5146
- paths: readonly string[];
5147
- } | ({
5126
+ refusal: ({
5148
5127
  kind: "integration-failed";
5149
5128
  contractId: ContractId;
5150
5129
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -5156,8 +5135,12 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5156
5135
  contractId: ContractId;
5157
5136
  requiredGit: "2.38";
5158
5137
  } | {
5159
- kind: "target-missing";
5138
+ kind: "checkout-not-followable";
5160
5139
  contractId: ContractId;
5140
+ target: string;
5141
+ path: string;
5142
+ reason: "untracked";
5143
+ paths: readonly string[];
5161
5144
  } | {
5162
5145
  kind: "terminal" | "contract-missing" | "delivery-missing";
5163
5146
  contractId: ContractId;
@@ -5192,6 +5175,9 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5192
5175
  contractId: ContractId;
5193
5176
  state: "abandoned" | "missing" | "active";
5194
5177
  }[];
5178
+ } | {
5179
+ kind: "target-missing";
5180
+ contractId: ContractId;
5195
5181
  };
5196
5182
  } | {
5197
5183
  retry: {
@@ -5218,6 +5204,21 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5218
5204
  expected: import("../core/facts/types.js").SnapshotId;
5219
5205
  observed: import("../core/facts/types.js").SnapshotId | null;
5220
5206
  observedTreeEqualsCandidate: boolean;
5207
+ } | {
5208
+ refusal: {
5209
+ kind: "terminal" | "contract-missing";
5210
+ contractId: ContractId;
5211
+ } | {
5212
+ kind: "verification-declaration-invalid";
5213
+ contractId?: ContractId | undefined;
5214
+ };
5215
+ } | {
5216
+ retry: {
5217
+ kind: "publication-failed";
5218
+ diagnostic: string;
5219
+ } | {
5220
+ kind: "exhausted" | "collision";
5221
+ };
5221
5222
  } | {
5222
5223
  kind: "execution-stopped";
5223
5224
  contractId: ContractId;
@@ -5320,21 +5321,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5320
5321
  } | {
5321
5322
  kind: "stopped";
5322
5323
  stop: {
5323
- refusal: {
5324
- kind: "terminal" | "contract-missing";
5325
- contractId: ContractId;
5326
- } | {
5327
- kind: "verification-declaration-invalid";
5328
- contractId?: ContractId | undefined;
5329
- };
5330
- } | {
5331
- retry: {
5332
- kind: "publication-failed";
5333
- diagnostic: string;
5334
- } | {
5335
- kind: "exhausted" | "collision";
5336
- };
5337
- } | {
5338
5324
  failure: "cancelled" | "unknown-exit";
5339
5325
  stdout?: string | undefined;
5340
5326
  stderr?: string | undefined;
@@ -5377,17 +5363,25 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5377
5363
  stdout?: string | undefined;
5378
5364
  stderr?: string | undefined;
5379
5365
  truncated?: true | undefined;
5366
+ } | {
5367
+ refusal: {
5368
+ kind: "terminal" | "contract-missing";
5369
+ contractId: ContractId;
5370
+ } | {
5371
+ kind: "verification-declaration-invalid";
5372
+ contractId?: ContractId | undefined;
5373
+ };
5374
+ } | {
5375
+ retry: {
5376
+ kind: "publication-failed";
5377
+ diagnostic: string;
5378
+ } | {
5379
+ kind: "exhausted" | "collision";
5380
+ };
5380
5381
  };
5381
5382
  } | undefined;
5382
5383
  placement?: {
5383
- refusal: {
5384
- kind: "checkout-not-followable";
5385
- contractId: ContractId;
5386
- target: string;
5387
- path: string;
5388
- reason: "untracked";
5389
- paths: readonly string[];
5390
- } | ({
5384
+ refusal: ({
5391
5385
  kind: "integration-failed";
5392
5386
  contractId: ContractId;
5393
5387
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -5399,8 +5393,12 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5399
5393
  contractId: ContractId;
5400
5394
  requiredGit: "2.38";
5401
5395
  } | {
5402
- kind: "target-missing";
5396
+ kind: "checkout-not-followable";
5403
5397
  contractId: ContractId;
5398
+ target: string;
5399
+ path: string;
5400
+ reason: "untracked";
5401
+ paths: readonly string[];
5404
5402
  } | {
5405
5403
  kind: "terminal" | "contract-missing" | "delivery-missing";
5406
5404
  contractId: ContractId;
@@ -5435,6 +5433,9 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5435
5433
  contractId: ContractId;
5436
5434
  state: "abandoned" | "missing" | "active";
5437
5435
  }[];
5436
+ } | {
5437
+ kind: "target-missing";
5438
+ contractId: ContractId;
5438
5439
  };
5439
5440
  } | {
5440
5441
  retry: {
@@ -5478,21 +5479,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5478
5479
  stopped: readonly {
5479
5480
  contractId: ContractId;
5480
5481
  stop: {
5481
- refusal: {
5482
- kind: "terminal" | "contract-missing";
5483
- contractId: ContractId;
5484
- } | {
5485
- kind: "verification-declaration-invalid";
5486
- contractId?: ContractId | undefined;
5487
- };
5488
- } | {
5489
- retry: {
5490
- kind: "publication-failed";
5491
- diagnostic: string;
5492
- } | {
5493
- kind: "exhausted" | "collision";
5494
- };
5495
- } | {
5496
5482
  failure: "cancelled" | "unknown-exit";
5497
5483
  stdout?: string | undefined;
5498
5484
  stderr?: string | undefined;
@@ -5536,14 +5522,7 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5536
5522
  stderr?: string | undefined;
5537
5523
  truncated?: true | undefined;
5538
5524
  } | {
5539
- refusal: {
5540
- kind: "checkout-not-followable";
5541
- contractId: ContractId;
5542
- target: string;
5543
- path: string;
5544
- reason: "untracked";
5545
- paths: readonly string[];
5546
- } | ({
5525
+ refusal: ({
5547
5526
  kind: "integration-failed";
5548
5527
  contractId: ContractId;
5549
5528
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -5555,8 +5534,12 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5555
5534
  contractId: ContractId;
5556
5535
  requiredGit: "2.38";
5557
5536
  } | {
5558
- kind: "target-missing";
5537
+ kind: "checkout-not-followable";
5559
5538
  contractId: ContractId;
5539
+ target: string;
5540
+ path: string;
5541
+ reason: "untracked";
5542
+ paths: readonly string[];
5560
5543
  } | {
5561
5544
  kind: "terminal" | "contract-missing" | "delivery-missing";
5562
5545
  contractId: ContractId;
@@ -5591,6 +5574,9 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5591
5574
  contractId: ContractId;
5592
5575
  state: "abandoned" | "missing" | "active";
5593
5576
  }[];
5577
+ } | {
5578
+ kind: "target-missing";
5579
+ contractId: ContractId;
5594
5580
  };
5595
5581
  } | {
5596
5582
  retry: {
@@ -5617,6 +5603,21 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5617
5603
  expected: import("../core/facts/types.js").SnapshotId;
5618
5604
  observed: import("../core/facts/types.js").SnapshotId | null;
5619
5605
  observedTreeEqualsCandidate: boolean;
5606
+ } | {
5607
+ refusal: {
5608
+ kind: "terminal" | "contract-missing";
5609
+ contractId: ContractId;
5610
+ } | {
5611
+ kind: "verification-declaration-invalid";
5612
+ contractId?: ContractId | undefined;
5613
+ };
5614
+ } | {
5615
+ retry: {
5616
+ kind: "publication-failed";
5617
+ diagnostic: string;
5618
+ } | {
5619
+ kind: "exhausted" | "collision";
5620
+ };
5620
5621
  } | {
5621
5622
  kind: "execution-stopped";
5622
5623
  contractId: ContractId;
@@ -5950,8 +5951,8 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5950
5951
  kind: z.ZodLiteral<"settlement-action">;
5951
5952
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
5952
5953
  action: z.ZodObject<{
5953
- kind: z.ZodLiteral<"task">;
5954
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
5954
+ kind: z.ZodLiteral<"debt">;
5955
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
5955
5956
  action: z.ZodLiteral<"done">;
5956
5957
  }, z.core.$strict>;
5957
5958
  }, z.core.$strict>, z.ZodObject<{
@@ -5960,11 +5961,11 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
5960
5961
  lag: z.ZodObject<{
5961
5962
  kind: z.ZodLiteral<"settlement-failed">;
5962
5963
  surface: z.ZodEnum<{
5963
- task: "task";
5964
- "task-holder": "task-holder";
5964
+ debt: "debt";
5965
+ "debt-holder": "debt-holder";
5965
5966
  }>;
5966
5967
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
5967
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
5968
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
5968
5969
  path: z.ZodOptional<z.ZodString>;
5969
5970
  diagnostic: z.ZodString;
5970
5971
  }, z.core.$strict>;
@@ -6085,21 +6086,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6085
6086
  } | {
6086
6087
  kind: "stopped";
6087
6088
  stop: {
6088
- refusal: {
6089
- kind: "terminal" | "contract-missing";
6090
- contractId: ContractId;
6091
- } | {
6092
- kind: "verification-declaration-invalid";
6093
- contractId?: ContractId | undefined;
6094
- };
6095
- } | {
6096
- retry: {
6097
- kind: "publication-failed";
6098
- diagnostic: string;
6099
- } | {
6100
- kind: "exhausted" | "collision";
6101
- };
6102
- } | {
6103
6089
  failure: "cancelled" | "unknown-exit";
6104
6090
  stdout?: string | undefined;
6105
6091
  stderr?: string | undefined;
@@ -6142,17 +6128,25 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6142
6128
  stdout?: string | undefined;
6143
6129
  stderr?: string | undefined;
6144
6130
  truncated?: true | undefined;
6131
+ } | {
6132
+ refusal: {
6133
+ kind: "terminal" | "contract-missing";
6134
+ contractId: ContractId;
6135
+ } | {
6136
+ kind: "verification-declaration-invalid";
6137
+ contractId?: ContractId | undefined;
6138
+ };
6139
+ } | {
6140
+ retry: {
6141
+ kind: "publication-failed";
6142
+ diagnostic: string;
6143
+ } | {
6144
+ kind: "exhausted" | "collision";
6145
+ };
6145
6146
  };
6146
6147
  } | undefined;
6147
6148
  placement?: {
6148
- refusal: {
6149
- kind: "checkout-not-followable";
6150
- contractId: ContractId;
6151
- target: string;
6152
- path: string;
6153
- reason: "untracked";
6154
- paths: readonly string[];
6155
- } | ({
6149
+ refusal: ({
6156
6150
  kind: "integration-failed";
6157
6151
  contractId: ContractId;
6158
6152
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -6164,8 +6158,12 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6164
6158
  contractId: ContractId;
6165
6159
  requiredGit: "2.38";
6166
6160
  } | {
6167
- kind: "target-missing";
6161
+ kind: "checkout-not-followable";
6168
6162
  contractId: ContractId;
6163
+ target: string;
6164
+ path: string;
6165
+ reason: "untracked";
6166
+ paths: readonly string[];
6169
6167
  } | {
6170
6168
  kind: "terminal" | "contract-missing" | "delivery-missing";
6171
6169
  contractId: ContractId;
@@ -6200,6 +6198,9 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6200
6198
  contractId: ContractId;
6201
6199
  state: "abandoned" | "missing" | "active";
6202
6200
  }[];
6201
+ } | {
6202
+ kind: "target-missing";
6203
+ contractId: ContractId;
6203
6204
  };
6204
6205
  } | {
6205
6206
  retry: {
@@ -6232,21 +6233,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6232
6233
  stopped: readonly {
6233
6234
  contractId: ContractId;
6234
6235
  stop: {
6235
- refusal: {
6236
- kind: "terminal" | "contract-missing";
6237
- contractId: ContractId;
6238
- } | {
6239
- kind: "verification-declaration-invalid";
6240
- contractId?: ContractId | undefined;
6241
- };
6242
- } | {
6243
- retry: {
6244
- kind: "publication-failed";
6245
- diagnostic: string;
6246
- } | {
6247
- kind: "exhausted" | "collision";
6248
- };
6249
- } | {
6250
6236
  failure: "cancelled" | "unknown-exit";
6251
6237
  stdout?: string | undefined;
6252
6238
  stderr?: string | undefined;
@@ -6290,14 +6276,7 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6290
6276
  stderr?: string | undefined;
6291
6277
  truncated?: true | undefined;
6292
6278
  } | {
6293
- refusal: {
6294
- kind: "checkout-not-followable";
6295
- contractId: ContractId;
6296
- target: string;
6297
- path: string;
6298
- reason: "untracked";
6299
- paths: readonly string[];
6300
- } | ({
6279
+ refusal: ({
6301
6280
  kind: "integration-failed";
6302
6281
  contractId: ContractId;
6303
6282
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -6309,8 +6288,12 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6309
6288
  contractId: ContractId;
6310
6289
  requiredGit: "2.38";
6311
6290
  } | {
6312
- kind: "target-missing";
6291
+ kind: "checkout-not-followable";
6313
6292
  contractId: ContractId;
6293
+ target: string;
6294
+ path: string;
6295
+ reason: "untracked";
6296
+ paths: readonly string[];
6314
6297
  } | {
6315
6298
  kind: "terminal" | "contract-missing" | "delivery-missing";
6316
6299
  contractId: ContractId;
@@ -6345,6 +6328,9 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6345
6328
  contractId: ContractId;
6346
6329
  state: "abandoned" | "missing" | "active";
6347
6330
  }[];
6331
+ } | {
6332
+ kind: "target-missing";
6333
+ contractId: ContractId;
6348
6334
  };
6349
6335
  } | {
6350
6336
  retry: {
@@ -6371,6 +6357,21 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6371
6357
  expected: import("../core/facts/types.js").SnapshotId;
6372
6358
  observed: import("../core/facts/types.js").SnapshotId | null;
6373
6359
  observedTreeEqualsCandidate: boolean;
6360
+ } | {
6361
+ refusal: {
6362
+ kind: "terminal" | "contract-missing";
6363
+ contractId: ContractId;
6364
+ } | {
6365
+ kind: "verification-declaration-invalid";
6366
+ contractId?: ContractId | undefined;
6367
+ };
6368
+ } | {
6369
+ retry: {
6370
+ kind: "publication-failed";
6371
+ diagnostic: string;
6372
+ } | {
6373
+ kind: "exhausted" | "collision";
6374
+ };
6374
6375
  } | {
6375
6376
  kind: "execution-stopped";
6376
6377
  contractId: ContractId;
@@ -6473,21 +6474,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6473
6474
  } | {
6474
6475
  kind: "stopped";
6475
6476
  stop: {
6476
- refusal: {
6477
- kind: "terminal" | "contract-missing";
6478
- contractId: ContractId;
6479
- } | {
6480
- kind: "verification-declaration-invalid";
6481
- contractId?: ContractId | undefined;
6482
- };
6483
- } | {
6484
- retry: {
6485
- kind: "publication-failed";
6486
- diagnostic: string;
6487
- } | {
6488
- kind: "exhausted" | "collision";
6489
- };
6490
- } | {
6491
6477
  failure: "cancelled" | "unknown-exit";
6492
6478
  stdout?: string | undefined;
6493
6479
  stderr?: string | undefined;
@@ -6530,17 +6516,25 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6530
6516
  stdout?: string | undefined;
6531
6517
  stderr?: string | undefined;
6532
6518
  truncated?: true | undefined;
6519
+ } | {
6520
+ refusal: {
6521
+ kind: "terminal" | "contract-missing";
6522
+ contractId: ContractId;
6523
+ } | {
6524
+ kind: "verification-declaration-invalid";
6525
+ contractId?: ContractId | undefined;
6526
+ };
6527
+ } | {
6528
+ retry: {
6529
+ kind: "publication-failed";
6530
+ diagnostic: string;
6531
+ } | {
6532
+ kind: "exhausted" | "collision";
6533
+ };
6533
6534
  };
6534
6535
  } | undefined;
6535
6536
  placement?: {
6536
- refusal: {
6537
- kind: "checkout-not-followable";
6538
- contractId: ContractId;
6539
- target: string;
6540
- path: string;
6541
- reason: "untracked";
6542
- paths: readonly string[];
6543
- } | ({
6537
+ refusal: ({
6544
6538
  kind: "integration-failed";
6545
6539
  contractId: ContractId;
6546
6540
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -6552,8 +6546,12 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6552
6546
  contractId: ContractId;
6553
6547
  requiredGit: "2.38";
6554
6548
  } | {
6555
- kind: "target-missing";
6549
+ kind: "checkout-not-followable";
6556
6550
  contractId: ContractId;
6551
+ target: string;
6552
+ path: string;
6553
+ reason: "untracked";
6554
+ paths: readonly string[];
6557
6555
  } | {
6558
6556
  kind: "terminal" | "contract-missing" | "delivery-missing";
6559
6557
  contractId: ContractId;
@@ -6588,6 +6586,9 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6588
6586
  contractId: ContractId;
6589
6587
  state: "abandoned" | "missing" | "active";
6590
6588
  }[];
6589
+ } | {
6590
+ kind: "target-missing";
6591
+ contractId: ContractId;
6591
6592
  };
6592
6593
  } | {
6593
6594
  retry: {
@@ -6620,21 +6621,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6620
6621
  stopped: readonly {
6621
6622
  contractId: ContractId;
6622
6623
  stop: {
6623
- refusal: {
6624
- kind: "terminal" | "contract-missing";
6625
- contractId: ContractId;
6626
- } | {
6627
- kind: "verification-declaration-invalid";
6628
- contractId?: ContractId | undefined;
6629
- };
6630
- } | {
6631
- retry: {
6632
- kind: "publication-failed";
6633
- diagnostic: string;
6634
- } | {
6635
- kind: "exhausted" | "collision";
6636
- };
6637
- } | {
6638
6624
  failure: "cancelled" | "unknown-exit";
6639
6625
  stdout?: string | undefined;
6640
6626
  stderr?: string | undefined;
@@ -6678,14 +6664,7 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6678
6664
  stderr?: string | undefined;
6679
6665
  truncated?: true | undefined;
6680
6666
  } | {
6681
- refusal: {
6682
- kind: "checkout-not-followable";
6683
- contractId: ContractId;
6684
- target: string;
6685
- path: string;
6686
- reason: "untracked";
6687
- paths: readonly string[];
6688
- } | ({
6667
+ refusal: ({
6689
6668
  kind: "integration-failed";
6690
6669
  contractId: ContractId;
6691
6670
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -6697,8 +6676,12 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6697
6676
  contractId: ContractId;
6698
6677
  requiredGit: "2.38";
6699
6678
  } | {
6700
- kind: "target-missing";
6679
+ kind: "checkout-not-followable";
6701
6680
  contractId: ContractId;
6681
+ target: string;
6682
+ path: string;
6683
+ reason: "untracked";
6684
+ paths: readonly string[];
6702
6685
  } | {
6703
6686
  kind: "terminal" | "contract-missing" | "delivery-missing";
6704
6687
  contractId: ContractId;
@@ -6733,6 +6716,9 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6733
6716
  contractId: ContractId;
6734
6717
  state: "abandoned" | "missing" | "active";
6735
6718
  }[];
6719
+ } | {
6720
+ kind: "target-missing";
6721
+ contractId: ContractId;
6736
6722
  };
6737
6723
  } | {
6738
6724
  retry: {
@@ -6759,6 +6745,21 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
6759
6745
  expected: import("../core/facts/types.js").SnapshotId;
6760
6746
  observed: import("../core/facts/types.js").SnapshotId | null;
6761
6747
  observedTreeEqualsCandidate: boolean;
6748
+ } | {
6749
+ refusal: {
6750
+ kind: "terminal" | "contract-missing";
6751
+ contractId: ContractId;
6752
+ } | {
6753
+ kind: "verification-declaration-invalid";
6754
+ contractId?: ContractId | undefined;
6755
+ };
6756
+ } | {
6757
+ retry: {
6758
+ kind: "publication-failed";
6759
+ diagnostic: string;
6760
+ } | {
6761
+ kind: "exhausted" | "collision";
6762
+ };
6762
6763
  } | {
6763
6764
  kind: "execution-stopped";
6764
6765
  contractId: ContractId;
@@ -7092,8 +7093,8 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7092
7093
  kind: z.ZodLiteral<"settlement-action">;
7093
7094
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
7094
7095
  action: z.ZodObject<{
7095
- kind: z.ZodLiteral<"task">;
7096
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
7096
+ kind: z.ZodLiteral<"debt">;
7097
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
7097
7098
  action: z.ZodLiteral<"done">;
7098
7099
  }, z.core.$strict>;
7099
7100
  }, z.core.$strict>, z.ZodObject<{
@@ -7102,11 +7103,11 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7102
7103
  lag: z.ZodObject<{
7103
7104
  kind: z.ZodLiteral<"settlement-failed">;
7104
7105
  surface: z.ZodEnum<{
7105
- task: "task";
7106
- "task-holder": "task-holder";
7106
+ debt: "debt";
7107
+ "debt-holder": "debt-holder";
7107
7108
  }>;
7108
7109
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
7109
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
7110
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
7110
7111
  path: z.ZodOptional<z.ZodString>;
7111
7112
  diagnostic: z.ZodString;
7112
7113
  }, z.core.$strict>;
@@ -7205,13 +7206,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7205
7206
  candidate?: {
7206
7207
  kind: "blocked";
7207
7208
  refusal: {
7208
- kind: "checkout-not-followable";
7209
- contractId: ContractId;
7210
- target: string;
7211
- path: string;
7212
- reason: "untracked";
7213
- paths: readonly string[];
7214
- } | {
7215
7209
  kind: "worktree-missing";
7216
7210
  contractId: ContractId;
7217
7211
  } | {
@@ -7241,6 +7235,16 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7241
7235
  kind: "integration-unsupported";
7242
7236
  contractId: ContractId;
7243
7237
  requiredGit: "2.38";
7238
+ } | {
7239
+ kind: "checkout-not-followable";
7240
+ contractId: ContractId;
7241
+ target: string;
7242
+ path: string;
7243
+ reason: "untracked";
7244
+ paths: readonly string[];
7245
+ } | {
7246
+ kind: "target-missing";
7247
+ contractId: ContractId;
7244
7248
  } | {
7245
7249
  kind: "merge-state-present";
7246
7250
  contractId: ContractId;
@@ -7248,9 +7252,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7248
7252
  kind: "worktree";
7249
7253
  path: string;
7250
7254
  };
7251
- } | {
7252
- kind: "target-missing";
7253
- contractId: ContractId;
7254
7255
  };
7255
7256
  } | {
7256
7257
  kind: "ready";
@@ -7286,21 +7287,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7286
7287
  } | {
7287
7288
  kind: "stopped";
7288
7289
  stop: {
7289
- refusal: {
7290
- kind: "terminal" | "contract-missing";
7291
- contractId: ContractId;
7292
- } | {
7293
- kind: "verification-declaration-invalid";
7294
- contractId?: ContractId | undefined;
7295
- };
7296
- } | {
7297
- retry: {
7298
- kind: "publication-failed";
7299
- diagnostic: string;
7300
- } | {
7301
- kind: "exhausted" | "collision";
7302
- };
7303
- } | {
7304
7290
  failure: "cancelled" | "unknown-exit";
7305
7291
  stdout?: string | undefined;
7306
7292
  stderr?: string | undefined;
@@ -7343,6 +7329,21 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7343
7329
  stdout?: string | undefined;
7344
7330
  stderr?: string | undefined;
7345
7331
  truncated?: true | undefined;
7332
+ } | {
7333
+ refusal: {
7334
+ kind: "terminal" | "contract-missing";
7335
+ contractId: ContractId;
7336
+ } | {
7337
+ kind: "verification-declaration-invalid";
7338
+ contractId?: ContractId | undefined;
7339
+ };
7340
+ } | {
7341
+ retry: {
7342
+ kind: "publication-failed";
7343
+ diagnostic: string;
7344
+ } | {
7345
+ kind: "exhausted" | "collision";
7346
+ };
7346
7347
  };
7347
7348
  } | {
7348
7349
  kind: "satisfied" | "unsatisfied";
@@ -7411,13 +7412,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7411
7412
  candidate?: {
7412
7413
  kind: "blocked";
7413
7414
  refusal: {
7414
- kind: "checkout-not-followable";
7415
- contractId: ContractId;
7416
- target: string;
7417
- path: string;
7418
- reason: "untracked";
7419
- paths: readonly string[];
7420
- } | {
7421
7415
  kind: "worktree-missing";
7422
7416
  contractId: ContractId;
7423
7417
  } | {
@@ -7447,6 +7441,16 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7447
7441
  kind: "integration-unsupported";
7448
7442
  contractId: ContractId;
7449
7443
  requiredGit: "2.38";
7444
+ } | {
7445
+ kind: "checkout-not-followable";
7446
+ contractId: ContractId;
7447
+ target: string;
7448
+ path: string;
7449
+ reason: "untracked";
7450
+ paths: readonly string[];
7451
+ } | {
7452
+ kind: "target-missing";
7453
+ contractId: ContractId;
7450
7454
  } | {
7451
7455
  kind: "merge-state-present";
7452
7456
  contractId: ContractId;
@@ -7454,9 +7458,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7454
7458
  kind: "worktree";
7455
7459
  path: string;
7456
7460
  };
7457
- } | {
7458
- kind: "target-missing";
7459
- contractId: ContractId;
7460
7461
  };
7461
7462
  } | {
7462
7463
  kind: "ready";
@@ -7492,21 +7493,6 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7492
7493
  } | {
7493
7494
  kind: "stopped";
7494
7495
  stop: {
7495
- refusal: {
7496
- kind: "terminal" | "contract-missing";
7497
- contractId: ContractId;
7498
- } | {
7499
- kind: "verification-declaration-invalid";
7500
- contractId?: ContractId | undefined;
7501
- };
7502
- } | {
7503
- retry: {
7504
- kind: "publication-failed";
7505
- diagnostic: string;
7506
- } | {
7507
- kind: "exhausted" | "collision";
7508
- };
7509
- } | {
7510
7496
  failure: "cancelled" | "unknown-exit";
7511
7497
  stdout?: string | undefined;
7512
7498
  stderr?: string | undefined;
@@ -7549,6 +7535,21 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7549
7535
  stdout?: string | undefined;
7550
7536
  stderr?: string | undefined;
7551
7537
  truncated?: true | undefined;
7538
+ } | {
7539
+ refusal: {
7540
+ kind: "terminal" | "contract-missing";
7541
+ contractId: ContractId;
7542
+ } | {
7543
+ kind: "verification-declaration-invalid";
7544
+ contractId?: ContractId | undefined;
7545
+ };
7546
+ } | {
7547
+ retry: {
7548
+ kind: "publication-failed";
7549
+ diagnostic: string;
7550
+ } | {
7551
+ kind: "exhausted" | "collision";
7552
+ };
7552
7553
  };
7553
7554
  } | {
7554
7555
  kind: "satisfied" | "unsatisfied";
@@ -7870,8 +7871,8 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7870
7871
  kind: z.ZodLiteral<"settlement-action">;
7871
7872
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
7872
7873
  action: z.ZodObject<{
7873
- kind: z.ZodLiteral<"task">;
7874
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
7874
+ kind: z.ZodLiteral<"debt">;
7875
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
7875
7876
  action: z.ZodLiteral<"done">;
7876
7877
  }, z.core.$strict>;
7877
7878
  }, z.core.$strict>, z.ZodObject<{
@@ -7880,11 +7881,11 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
7880
7881
  lag: z.ZodObject<{
7881
7882
  kind: z.ZodLiteral<"settlement-failed">;
7882
7883
  surface: z.ZodEnum<{
7883
- task: "task";
7884
- "task-holder": "task-holder";
7884
+ debt: "debt";
7885
+ "debt-holder": "debt-holder";
7885
7886
  }>;
7886
7887
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
7887
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
7888
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
7888
7889
  path: z.ZodOptional<z.ZodString>;
7889
7890
  diagnostic: z.ZodString;
7890
7891
  }, z.core.$strict>;
@@ -8236,8 +8237,8 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
8236
8237
  kind: z.ZodLiteral<"settlement-action">;
8237
8238
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
8238
8239
  action: z.ZodObject<{
8239
- kind: z.ZodLiteral<"task">;
8240
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
8240
+ kind: z.ZodLiteral<"debt">;
8241
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
8241
8242
  action: z.ZodLiteral<"done">;
8242
8243
  }, z.core.$strict>;
8243
8244
  }, z.core.$strict>, z.ZodObject<{
@@ -8246,11 +8247,11 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
8246
8247
  lag: z.ZodObject<{
8247
8248
  kind: z.ZodLiteral<"settlement-failed">;
8248
8249
  surface: z.ZodEnum<{
8249
- task: "task";
8250
- "task-holder": "task-holder";
8250
+ debt: "debt";
8251
+ "debt-holder": "debt-holder";
8251
8252
  }>;
8252
8253
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
8253
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
8254
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
8254
8255
  path: z.ZodOptional<z.ZodString>;
8255
8256
  diagnostic: z.ZodString;
8256
8257
  }, z.core.$strict>;
@@ -8352,9 +8353,9 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
8352
8353
  effects: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
8353
8354
  world: z.ZodString;
8354
8355
  owner: z.ZodEnum<{
8355
- task: "task";
8356
- akuma: "akuma";
8357
8356
  world: "world";
8357
+ debt: "debt";
8358
+ akuma: "akuma";
8358
8359
  git: "git";
8359
8360
  }>;
8360
8361
  diagnostic: z.ZodString;
@@ -8362,9 +8363,9 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
8362
8363
  }, z.core.$strict>, z.ZodObject<{
8363
8364
  world: z.ZodString;
8364
8365
  owner: z.ZodEnum<{
8365
- task: "task";
8366
- akuma: "akuma";
8367
8366
  world: "world";
8367
+ debt: "debt";
8368
+ akuma: "akuma";
8368
8369
  git: "git";
8369
8370
  }>;
8370
8371
  diagnostic: z.ZodString;
@@ -8387,7 +8388,7 @@ declare const partialOutcomeEnvelopeSchema: z.ZodUnion<readonly [z.ZodUnion<read
8387
8388
  removed: z.ZodObject<{
8388
8389
  refs: z.ZodNumber;
8389
8390
  worktrees: z.ZodNumber;
8390
- tasks: z.ZodNumber;
8391
+ debts: z.ZodNumber;
8391
8392
  }, z.core.$strict>;
8392
8393
  }, z.core.$strict>>;
8393
8394
  }, z.core.$strict>]>;
@@ -8395,10 +8396,10 @@ declare const failureWireSchema: z.ZodObject<{
8395
8396
  kind: z.ZodLiteral<"failed">;
8396
8397
  category: z.ZodEnum<{
8397
8398
  aborted: "aborted";
8399
+ internal: "internal";
8398
8400
  "invalid-input": "invalid-input";
8399
8401
  "authority-corruption": "authority-corruption";
8400
8402
  "unknown-outcome": "unknown-outcome";
8401
- internal: "internal";
8402
8403
  }>;
8403
8404
  diagnostic: z.ZodString;
8404
8405
  causeClass: z.ZodOptional<z.ZodString>;
@@ -8659,8 +8660,8 @@ declare const failureWireSchema: z.ZodObject<{
8659
8660
  kind: z.ZodLiteral<"settlement-action">;
8660
8661
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
8661
8662
  action: z.ZodObject<{
8662
- kind: z.ZodLiteral<"task">;
8663
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
8663
+ kind: z.ZodLiteral<"debt">;
8664
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
8664
8665
  action: z.ZodLiteral<"done">;
8665
8666
  }, z.core.$strict>;
8666
8667
  }, z.core.$strict>, z.ZodObject<{
@@ -8669,11 +8670,11 @@ declare const failureWireSchema: z.ZodObject<{
8669
8670
  lag: z.ZodObject<{
8670
8671
  kind: z.ZodLiteral<"settlement-failed">;
8671
8672
  surface: z.ZodEnum<{
8672
- task: "task";
8673
- "task-holder": "task-holder";
8673
+ debt: "debt";
8674
+ "debt-holder": "debt-holder";
8674
8675
  }>;
8675
8676
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
8676
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
8677
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
8677
8678
  path: z.ZodOptional<z.ZodString>;
8678
8679
  diagnostic: z.ZodString;
8679
8680
  }, z.core.$strict>;
@@ -9061,8 +9062,8 @@ declare const failureWireSchema: z.ZodObject<{
9061
9062
  kind: z.ZodLiteral<"settlement-action">;
9062
9063
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
9063
9064
  action: z.ZodObject<{
9064
- kind: z.ZodLiteral<"task">;
9065
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
9065
+ kind: z.ZodLiteral<"debt">;
9066
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
9066
9067
  action: z.ZodLiteral<"done">;
9067
9068
  }, z.core.$strict>;
9068
9069
  }, z.core.$strict>, z.ZodObject<{
@@ -9071,11 +9072,11 @@ declare const failureWireSchema: z.ZodObject<{
9071
9072
  lag: z.ZodObject<{
9072
9073
  kind: z.ZodLiteral<"settlement-failed">;
9073
9074
  surface: z.ZodEnum<{
9074
- task: "task";
9075
- "task-holder": "task-holder";
9075
+ debt: "debt";
9076
+ "debt-holder": "debt-holder";
9076
9077
  }>;
9077
9078
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
9078
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
9079
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
9079
9080
  path: z.ZodOptional<z.ZodString>;
9080
9081
  diagnostic: z.ZodString;
9081
9082
  }, z.core.$strict>;
@@ -9457,8 +9458,8 @@ declare const failureWireSchema: z.ZodObject<{
9457
9458
  kind: z.ZodLiteral<"settlement-action">;
9458
9459
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
9459
9460
  action: z.ZodObject<{
9460
- kind: z.ZodLiteral<"task">;
9461
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
9461
+ kind: z.ZodLiteral<"debt">;
9462
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
9462
9463
  action: z.ZodLiteral<"done">;
9463
9464
  }, z.core.$strict>;
9464
9465
  }, z.core.$strict>, z.ZodObject<{
@@ -9467,11 +9468,11 @@ declare const failureWireSchema: z.ZodObject<{
9467
9468
  lag: z.ZodObject<{
9468
9469
  kind: z.ZodLiteral<"settlement-failed">;
9469
9470
  surface: z.ZodEnum<{
9470
- task: "task";
9471
- "task-holder": "task-holder";
9471
+ debt: "debt";
9472
+ "debt-holder": "debt-holder";
9472
9473
  }>;
9473
9474
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
9474
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
9475
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
9475
9476
  path: z.ZodOptional<z.ZodString>;
9476
9477
  diagnostic: z.ZodString;
9477
9478
  }, z.core.$strict>;
@@ -9592,21 +9593,6 @@ declare const failureWireSchema: z.ZodObject<{
9592
9593
  } | {
9593
9594
  kind: "stopped";
9594
9595
  stop: {
9595
- refusal: {
9596
- kind: "terminal" | "contract-missing";
9597
- contractId: ContractId;
9598
- } | {
9599
- kind: "verification-declaration-invalid";
9600
- contractId?: ContractId | undefined;
9601
- };
9602
- } | {
9603
- retry: {
9604
- kind: "publication-failed";
9605
- diagnostic: string;
9606
- } | {
9607
- kind: "exhausted" | "collision";
9608
- };
9609
- } | {
9610
9596
  failure: "cancelled" | "unknown-exit";
9611
9597
  stdout?: string | undefined;
9612
9598
  stderr?: string | undefined;
@@ -9649,17 +9635,25 @@ declare const failureWireSchema: z.ZodObject<{
9649
9635
  stdout?: string | undefined;
9650
9636
  stderr?: string | undefined;
9651
9637
  truncated?: true | undefined;
9652
- };
9653
- } | undefined;
9654
- placement?: {
9655
- refusal: {
9656
- kind: "checkout-not-followable";
9657
- contractId: ContractId;
9658
- target: string;
9659
- path: string;
9660
- reason: "untracked";
9661
- paths: readonly string[];
9662
- } | ({
9638
+ } | {
9639
+ refusal: {
9640
+ kind: "terminal" | "contract-missing";
9641
+ contractId: ContractId;
9642
+ } | {
9643
+ kind: "verification-declaration-invalid";
9644
+ contractId?: ContractId | undefined;
9645
+ };
9646
+ } | {
9647
+ retry: {
9648
+ kind: "publication-failed";
9649
+ diagnostic: string;
9650
+ } | {
9651
+ kind: "exhausted" | "collision";
9652
+ };
9653
+ };
9654
+ } | undefined;
9655
+ placement?: {
9656
+ refusal: ({
9663
9657
  kind: "integration-failed";
9664
9658
  contractId: ContractId;
9665
9659
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -9671,8 +9665,12 @@ declare const failureWireSchema: z.ZodObject<{
9671
9665
  contractId: ContractId;
9672
9666
  requiredGit: "2.38";
9673
9667
  } | {
9674
- kind: "target-missing";
9668
+ kind: "checkout-not-followable";
9675
9669
  contractId: ContractId;
9670
+ target: string;
9671
+ path: string;
9672
+ reason: "untracked";
9673
+ paths: readonly string[];
9676
9674
  } | {
9677
9675
  kind: "terminal" | "contract-missing" | "delivery-missing";
9678
9676
  contractId: ContractId;
@@ -9707,6 +9705,9 @@ declare const failureWireSchema: z.ZodObject<{
9707
9705
  contractId: ContractId;
9708
9706
  state: "abandoned" | "missing" | "active";
9709
9707
  }[];
9708
+ } | {
9709
+ kind: "target-missing";
9710
+ contractId: ContractId;
9710
9711
  };
9711
9712
  } | {
9712
9713
  retry: {
@@ -9750,21 +9751,6 @@ declare const failureWireSchema: z.ZodObject<{
9750
9751
  stopped: readonly {
9751
9752
  contractId: ContractId;
9752
9753
  stop: {
9753
- refusal: {
9754
- kind: "terminal" | "contract-missing";
9755
- contractId: ContractId;
9756
- } | {
9757
- kind: "verification-declaration-invalid";
9758
- contractId?: ContractId | undefined;
9759
- };
9760
- } | {
9761
- retry: {
9762
- kind: "publication-failed";
9763
- diagnostic: string;
9764
- } | {
9765
- kind: "exhausted" | "collision";
9766
- };
9767
- } | {
9768
9754
  failure: "cancelled" | "unknown-exit";
9769
9755
  stdout?: string | undefined;
9770
9756
  stderr?: string | undefined;
@@ -9808,14 +9794,7 @@ declare const failureWireSchema: z.ZodObject<{
9808
9794
  stderr?: string | undefined;
9809
9795
  truncated?: true | undefined;
9810
9796
  } | {
9811
- refusal: {
9812
- kind: "checkout-not-followable";
9813
- contractId: ContractId;
9814
- target: string;
9815
- path: string;
9816
- reason: "untracked";
9817
- paths: readonly string[];
9818
- } | ({
9797
+ refusal: ({
9819
9798
  kind: "integration-failed";
9820
9799
  contractId: ContractId;
9821
9800
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -9827,8 +9806,12 @@ declare const failureWireSchema: z.ZodObject<{
9827
9806
  contractId: ContractId;
9828
9807
  requiredGit: "2.38";
9829
9808
  } | {
9830
- kind: "target-missing";
9809
+ kind: "checkout-not-followable";
9831
9810
  contractId: ContractId;
9811
+ target: string;
9812
+ path: string;
9813
+ reason: "untracked";
9814
+ paths: readonly string[];
9832
9815
  } | {
9833
9816
  kind: "terminal" | "contract-missing" | "delivery-missing";
9834
9817
  contractId: ContractId;
@@ -9863,6 +9846,9 @@ declare const failureWireSchema: z.ZodObject<{
9863
9846
  contractId: ContractId;
9864
9847
  state: "abandoned" | "missing" | "active";
9865
9848
  }[];
9849
+ } | {
9850
+ kind: "target-missing";
9851
+ contractId: ContractId;
9866
9852
  };
9867
9853
  } | {
9868
9854
  retry: {
@@ -9889,6 +9875,21 @@ declare const failureWireSchema: z.ZodObject<{
9889
9875
  expected: import("../core/facts/types.js").SnapshotId;
9890
9876
  observed: import("../core/facts/types.js").SnapshotId | null;
9891
9877
  observedTreeEqualsCandidate: boolean;
9878
+ } | {
9879
+ refusal: {
9880
+ kind: "terminal" | "contract-missing";
9881
+ contractId: ContractId;
9882
+ } | {
9883
+ kind: "verification-declaration-invalid";
9884
+ contractId?: ContractId | undefined;
9885
+ };
9886
+ } | {
9887
+ retry: {
9888
+ kind: "publication-failed";
9889
+ diagnostic: string;
9890
+ } | {
9891
+ kind: "exhausted" | "collision";
9892
+ };
9892
9893
  } | {
9893
9894
  kind: "execution-stopped";
9894
9895
  contractId: ContractId;
@@ -9991,21 +9992,6 @@ declare const failureWireSchema: z.ZodObject<{
9991
9992
  } | {
9992
9993
  kind: "stopped";
9993
9994
  stop: {
9994
- refusal: {
9995
- kind: "terminal" | "contract-missing";
9996
- contractId: ContractId;
9997
- } | {
9998
- kind: "verification-declaration-invalid";
9999
- contractId?: ContractId | undefined;
10000
- };
10001
- } | {
10002
- retry: {
10003
- kind: "publication-failed";
10004
- diagnostic: string;
10005
- } | {
10006
- kind: "exhausted" | "collision";
10007
- };
10008
- } | {
10009
9995
  failure: "cancelled" | "unknown-exit";
10010
9996
  stdout?: string | undefined;
10011
9997
  stderr?: string | undefined;
@@ -10048,17 +10034,25 @@ declare const failureWireSchema: z.ZodObject<{
10048
10034
  stdout?: string | undefined;
10049
10035
  stderr?: string | undefined;
10050
10036
  truncated?: true | undefined;
10037
+ } | {
10038
+ refusal: {
10039
+ kind: "terminal" | "contract-missing";
10040
+ contractId: ContractId;
10041
+ } | {
10042
+ kind: "verification-declaration-invalid";
10043
+ contractId?: ContractId | undefined;
10044
+ };
10045
+ } | {
10046
+ retry: {
10047
+ kind: "publication-failed";
10048
+ diagnostic: string;
10049
+ } | {
10050
+ kind: "exhausted" | "collision";
10051
+ };
10051
10052
  };
10052
10053
  } | undefined;
10053
10054
  placement?: {
10054
- refusal: {
10055
- kind: "checkout-not-followable";
10056
- contractId: ContractId;
10057
- target: string;
10058
- path: string;
10059
- reason: "untracked";
10060
- paths: readonly string[];
10061
- } | ({
10055
+ refusal: ({
10062
10056
  kind: "integration-failed";
10063
10057
  contractId: ContractId;
10064
10058
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -10070,8 +10064,12 @@ declare const failureWireSchema: z.ZodObject<{
10070
10064
  contractId: ContractId;
10071
10065
  requiredGit: "2.38";
10072
10066
  } | {
10073
- kind: "target-missing";
10067
+ kind: "checkout-not-followable";
10074
10068
  contractId: ContractId;
10069
+ target: string;
10070
+ path: string;
10071
+ reason: "untracked";
10072
+ paths: readonly string[];
10075
10073
  } | {
10076
10074
  kind: "terminal" | "contract-missing" | "delivery-missing";
10077
10075
  contractId: ContractId;
@@ -10106,6 +10104,9 @@ declare const failureWireSchema: z.ZodObject<{
10106
10104
  contractId: ContractId;
10107
10105
  state: "abandoned" | "missing" | "active";
10108
10106
  }[];
10107
+ } | {
10108
+ kind: "target-missing";
10109
+ contractId: ContractId;
10109
10110
  };
10110
10111
  } | {
10111
10112
  retry: {
@@ -10149,21 +10150,6 @@ declare const failureWireSchema: z.ZodObject<{
10149
10150
  stopped: readonly {
10150
10151
  contractId: ContractId;
10151
10152
  stop: {
10152
- refusal: {
10153
- kind: "terminal" | "contract-missing";
10154
- contractId: ContractId;
10155
- } | {
10156
- kind: "verification-declaration-invalid";
10157
- contractId?: ContractId | undefined;
10158
- };
10159
- } | {
10160
- retry: {
10161
- kind: "publication-failed";
10162
- diagnostic: string;
10163
- } | {
10164
- kind: "exhausted" | "collision";
10165
- };
10166
- } | {
10167
10153
  failure: "cancelled" | "unknown-exit";
10168
10154
  stdout?: string | undefined;
10169
10155
  stderr?: string | undefined;
@@ -10207,14 +10193,7 @@ declare const failureWireSchema: z.ZodObject<{
10207
10193
  stderr?: string | undefined;
10208
10194
  truncated?: true | undefined;
10209
10195
  } | {
10210
- refusal: {
10211
- kind: "checkout-not-followable";
10212
- contractId: ContractId;
10213
- target: string;
10214
- path: string;
10215
- reason: "untracked";
10216
- paths: readonly string[];
10217
- } | ({
10196
+ refusal: ({
10218
10197
  kind: "integration-failed";
10219
10198
  contractId: ContractId;
10220
10199
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -10226,8 +10205,12 @@ declare const failureWireSchema: z.ZodObject<{
10226
10205
  contractId: ContractId;
10227
10206
  requiredGit: "2.38";
10228
10207
  } | {
10229
- kind: "target-missing";
10208
+ kind: "checkout-not-followable";
10230
10209
  contractId: ContractId;
10210
+ target: string;
10211
+ path: string;
10212
+ reason: "untracked";
10213
+ paths: readonly string[];
10231
10214
  } | {
10232
10215
  kind: "terminal" | "contract-missing" | "delivery-missing";
10233
10216
  contractId: ContractId;
@@ -10262,6 +10245,9 @@ declare const failureWireSchema: z.ZodObject<{
10262
10245
  contractId: ContractId;
10263
10246
  state: "abandoned" | "missing" | "active";
10264
10247
  }[];
10248
+ } | {
10249
+ kind: "target-missing";
10250
+ contractId: ContractId;
10265
10251
  };
10266
10252
  } | {
10267
10253
  retry: {
@@ -10288,6 +10274,21 @@ declare const failureWireSchema: z.ZodObject<{
10288
10274
  expected: import("../core/facts/types.js").SnapshotId;
10289
10275
  observed: import("../core/facts/types.js").SnapshotId | null;
10290
10276
  observedTreeEqualsCandidate: boolean;
10277
+ } | {
10278
+ refusal: {
10279
+ kind: "terminal" | "contract-missing";
10280
+ contractId: ContractId;
10281
+ } | {
10282
+ kind: "verification-declaration-invalid";
10283
+ contractId?: ContractId | undefined;
10284
+ };
10285
+ } | {
10286
+ retry: {
10287
+ kind: "publication-failed";
10288
+ diagnostic: string;
10289
+ } | {
10290
+ kind: "exhausted" | "collision";
10291
+ };
10291
10292
  } | {
10292
10293
  kind: "execution-stopped";
10293
10294
  contractId: ContractId;
@@ -10621,8 +10622,8 @@ declare const failureWireSchema: z.ZodObject<{
10621
10622
  kind: z.ZodLiteral<"settlement-action">;
10622
10623
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
10623
10624
  action: z.ZodObject<{
10624
- kind: z.ZodLiteral<"task">;
10625
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
10625
+ kind: z.ZodLiteral<"debt">;
10626
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
10626
10627
  action: z.ZodLiteral<"done">;
10627
10628
  }, z.core.$strict>;
10628
10629
  }, z.core.$strict>, z.ZodObject<{
@@ -10631,11 +10632,11 @@ declare const failureWireSchema: z.ZodObject<{
10631
10632
  lag: z.ZodObject<{
10632
10633
  kind: z.ZodLiteral<"settlement-failed">;
10633
10634
  surface: z.ZodEnum<{
10634
- task: "task";
10635
- "task-holder": "task-holder";
10635
+ debt: "debt";
10636
+ "debt-holder": "debt-holder";
10636
10637
  }>;
10637
10638
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
10638
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
10639
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
10639
10640
  path: z.ZodOptional<z.ZodString>;
10640
10641
  diagnostic: z.ZodString;
10641
10642
  }, z.core.$strict>;
@@ -10756,21 +10757,6 @@ declare const failureWireSchema: z.ZodObject<{
10756
10757
  } | {
10757
10758
  kind: "stopped";
10758
10759
  stop: {
10759
- refusal: {
10760
- kind: "terminal" | "contract-missing";
10761
- contractId: ContractId;
10762
- } | {
10763
- kind: "verification-declaration-invalid";
10764
- contractId?: ContractId | undefined;
10765
- };
10766
- } | {
10767
- retry: {
10768
- kind: "publication-failed";
10769
- diagnostic: string;
10770
- } | {
10771
- kind: "exhausted" | "collision";
10772
- };
10773
- } | {
10774
10760
  failure: "cancelled" | "unknown-exit";
10775
10761
  stdout?: string | undefined;
10776
10762
  stderr?: string | undefined;
@@ -10813,17 +10799,25 @@ declare const failureWireSchema: z.ZodObject<{
10813
10799
  stdout?: string | undefined;
10814
10800
  stderr?: string | undefined;
10815
10801
  truncated?: true | undefined;
10802
+ } | {
10803
+ refusal: {
10804
+ kind: "terminal" | "contract-missing";
10805
+ contractId: ContractId;
10806
+ } | {
10807
+ kind: "verification-declaration-invalid";
10808
+ contractId?: ContractId | undefined;
10809
+ };
10810
+ } | {
10811
+ retry: {
10812
+ kind: "publication-failed";
10813
+ diagnostic: string;
10814
+ } | {
10815
+ kind: "exhausted" | "collision";
10816
+ };
10816
10817
  };
10817
10818
  } | undefined;
10818
10819
  placement?: {
10819
- refusal: {
10820
- kind: "checkout-not-followable";
10821
- contractId: ContractId;
10822
- target: string;
10823
- path: string;
10824
- reason: "untracked";
10825
- paths: readonly string[];
10826
- } | ({
10820
+ refusal: ({
10827
10821
  kind: "integration-failed";
10828
10822
  contractId: ContractId;
10829
10823
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -10835,8 +10829,12 @@ declare const failureWireSchema: z.ZodObject<{
10835
10829
  contractId: ContractId;
10836
10830
  requiredGit: "2.38";
10837
10831
  } | {
10838
- kind: "target-missing";
10832
+ kind: "checkout-not-followable";
10839
10833
  contractId: ContractId;
10834
+ target: string;
10835
+ path: string;
10836
+ reason: "untracked";
10837
+ paths: readonly string[];
10840
10838
  } | {
10841
10839
  kind: "terminal" | "contract-missing" | "delivery-missing";
10842
10840
  contractId: ContractId;
@@ -10871,6 +10869,9 @@ declare const failureWireSchema: z.ZodObject<{
10871
10869
  contractId: ContractId;
10872
10870
  state: "abandoned" | "missing" | "active";
10873
10871
  }[];
10872
+ } | {
10873
+ kind: "target-missing";
10874
+ contractId: ContractId;
10874
10875
  };
10875
10876
  } | {
10876
10877
  retry: {
@@ -10903,21 +10904,6 @@ declare const failureWireSchema: z.ZodObject<{
10903
10904
  stopped: readonly {
10904
10905
  contractId: ContractId;
10905
10906
  stop: {
10906
- refusal: {
10907
- kind: "terminal" | "contract-missing";
10908
- contractId: ContractId;
10909
- } | {
10910
- kind: "verification-declaration-invalid";
10911
- contractId?: ContractId | undefined;
10912
- };
10913
- } | {
10914
- retry: {
10915
- kind: "publication-failed";
10916
- diagnostic: string;
10917
- } | {
10918
- kind: "exhausted" | "collision";
10919
- };
10920
- } | {
10921
10907
  failure: "cancelled" | "unknown-exit";
10922
10908
  stdout?: string | undefined;
10923
10909
  stderr?: string | undefined;
@@ -10961,14 +10947,7 @@ declare const failureWireSchema: z.ZodObject<{
10961
10947
  stderr?: string | undefined;
10962
10948
  truncated?: true | undefined;
10963
10949
  } | {
10964
- refusal: {
10965
- kind: "checkout-not-followable";
10966
- contractId: ContractId;
10967
- target: string;
10968
- path: string;
10969
- reason: "untracked";
10970
- paths: readonly string[];
10971
- } | ({
10950
+ refusal: ({
10972
10951
  kind: "integration-failed";
10973
10952
  contractId: ContractId;
10974
10953
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -10980,8 +10959,12 @@ declare const failureWireSchema: z.ZodObject<{
10980
10959
  contractId: ContractId;
10981
10960
  requiredGit: "2.38";
10982
10961
  } | {
10983
- kind: "target-missing";
10962
+ kind: "checkout-not-followable";
10984
10963
  contractId: ContractId;
10964
+ target: string;
10965
+ path: string;
10966
+ reason: "untracked";
10967
+ paths: readonly string[];
10985
10968
  } | {
10986
10969
  kind: "terminal" | "contract-missing" | "delivery-missing";
10987
10970
  contractId: ContractId;
@@ -11016,6 +10999,9 @@ declare const failureWireSchema: z.ZodObject<{
11016
10999
  contractId: ContractId;
11017
11000
  state: "abandoned" | "missing" | "active";
11018
11001
  }[];
11002
+ } | {
11003
+ kind: "target-missing";
11004
+ contractId: ContractId;
11019
11005
  };
11020
11006
  } | {
11021
11007
  retry: {
@@ -11042,6 +11028,21 @@ declare const failureWireSchema: z.ZodObject<{
11042
11028
  expected: import("../core/facts/types.js").SnapshotId;
11043
11029
  observed: import("../core/facts/types.js").SnapshotId | null;
11044
11030
  observedTreeEqualsCandidate: boolean;
11031
+ } | {
11032
+ refusal: {
11033
+ kind: "terminal" | "contract-missing";
11034
+ contractId: ContractId;
11035
+ } | {
11036
+ kind: "verification-declaration-invalid";
11037
+ contractId?: ContractId | undefined;
11038
+ };
11039
+ } | {
11040
+ retry: {
11041
+ kind: "publication-failed";
11042
+ diagnostic: string;
11043
+ } | {
11044
+ kind: "exhausted" | "collision";
11045
+ };
11045
11046
  } | {
11046
11047
  kind: "execution-stopped";
11047
11048
  contractId: ContractId;
@@ -11144,21 +11145,6 @@ declare const failureWireSchema: z.ZodObject<{
11144
11145
  } | {
11145
11146
  kind: "stopped";
11146
11147
  stop: {
11147
- refusal: {
11148
- kind: "terminal" | "contract-missing";
11149
- contractId: ContractId;
11150
- } | {
11151
- kind: "verification-declaration-invalid";
11152
- contractId?: ContractId | undefined;
11153
- };
11154
- } | {
11155
- retry: {
11156
- kind: "publication-failed";
11157
- diagnostic: string;
11158
- } | {
11159
- kind: "exhausted" | "collision";
11160
- };
11161
- } | {
11162
11148
  failure: "cancelled" | "unknown-exit";
11163
11149
  stdout?: string | undefined;
11164
11150
  stderr?: string | undefined;
@@ -11201,17 +11187,25 @@ declare const failureWireSchema: z.ZodObject<{
11201
11187
  stdout?: string | undefined;
11202
11188
  stderr?: string | undefined;
11203
11189
  truncated?: true | undefined;
11190
+ } | {
11191
+ refusal: {
11192
+ kind: "terminal" | "contract-missing";
11193
+ contractId: ContractId;
11194
+ } | {
11195
+ kind: "verification-declaration-invalid";
11196
+ contractId?: ContractId | undefined;
11197
+ };
11198
+ } | {
11199
+ retry: {
11200
+ kind: "publication-failed";
11201
+ diagnostic: string;
11202
+ } | {
11203
+ kind: "exhausted" | "collision";
11204
+ };
11204
11205
  };
11205
11206
  } | undefined;
11206
11207
  placement?: {
11207
- refusal: {
11208
- kind: "checkout-not-followable";
11209
- contractId: ContractId;
11210
- target: string;
11211
- path: string;
11212
- reason: "untracked";
11213
- paths: readonly string[];
11214
- } | ({
11208
+ refusal: ({
11215
11209
  kind: "integration-failed";
11216
11210
  contractId: ContractId;
11217
11211
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -11223,8 +11217,12 @@ declare const failureWireSchema: z.ZodObject<{
11223
11217
  contractId: ContractId;
11224
11218
  requiredGit: "2.38";
11225
11219
  } | {
11226
- kind: "target-missing";
11220
+ kind: "checkout-not-followable";
11227
11221
  contractId: ContractId;
11222
+ target: string;
11223
+ path: string;
11224
+ reason: "untracked";
11225
+ paths: readonly string[];
11228
11226
  } | {
11229
11227
  kind: "terminal" | "contract-missing" | "delivery-missing";
11230
11228
  contractId: ContractId;
@@ -11259,6 +11257,9 @@ declare const failureWireSchema: z.ZodObject<{
11259
11257
  contractId: ContractId;
11260
11258
  state: "abandoned" | "missing" | "active";
11261
11259
  }[];
11260
+ } | {
11261
+ kind: "target-missing";
11262
+ contractId: ContractId;
11262
11263
  };
11263
11264
  } | {
11264
11265
  retry: {
@@ -11291,21 +11292,6 @@ declare const failureWireSchema: z.ZodObject<{
11291
11292
  stopped: readonly {
11292
11293
  contractId: ContractId;
11293
11294
  stop: {
11294
- refusal: {
11295
- kind: "terminal" | "contract-missing";
11296
- contractId: ContractId;
11297
- } | {
11298
- kind: "verification-declaration-invalid";
11299
- contractId?: ContractId | undefined;
11300
- };
11301
- } | {
11302
- retry: {
11303
- kind: "publication-failed";
11304
- diagnostic: string;
11305
- } | {
11306
- kind: "exhausted" | "collision";
11307
- };
11308
- } | {
11309
11295
  failure: "cancelled" | "unknown-exit";
11310
11296
  stdout?: string | undefined;
11311
11297
  stderr?: string | undefined;
@@ -11349,14 +11335,7 @@ declare const failureWireSchema: z.ZodObject<{
11349
11335
  stderr?: string | undefined;
11350
11336
  truncated?: true | undefined;
11351
11337
  } | {
11352
- refusal: {
11353
- kind: "checkout-not-followable";
11354
- contractId: ContractId;
11355
- target: string;
11356
- path: string;
11357
- reason: "untracked";
11358
- paths: readonly string[];
11359
- } | ({
11338
+ refusal: ({
11360
11339
  kind: "integration-failed";
11361
11340
  contractId: ContractId;
11362
11341
  reason: "not-based-on-target" | "unrelated-histories" | "conflict";
@@ -11368,8 +11347,12 @@ declare const failureWireSchema: z.ZodObject<{
11368
11347
  contractId: ContractId;
11369
11348
  requiredGit: "2.38";
11370
11349
  } | {
11371
- kind: "target-missing";
11350
+ kind: "checkout-not-followable";
11372
11351
  contractId: ContractId;
11352
+ target: string;
11353
+ path: string;
11354
+ reason: "untracked";
11355
+ paths: readonly string[];
11373
11356
  } | {
11374
11357
  kind: "terminal" | "contract-missing" | "delivery-missing";
11375
11358
  contractId: ContractId;
@@ -11404,6 +11387,9 @@ declare const failureWireSchema: z.ZodObject<{
11404
11387
  contractId: ContractId;
11405
11388
  state: "abandoned" | "missing" | "active";
11406
11389
  }[];
11390
+ } | {
11391
+ kind: "target-missing";
11392
+ contractId: ContractId;
11407
11393
  };
11408
11394
  } | {
11409
11395
  retry: {
@@ -11430,6 +11416,21 @@ declare const failureWireSchema: z.ZodObject<{
11430
11416
  expected: import("../core/facts/types.js").SnapshotId;
11431
11417
  observed: import("../core/facts/types.js").SnapshotId | null;
11432
11418
  observedTreeEqualsCandidate: boolean;
11419
+ } | {
11420
+ refusal: {
11421
+ kind: "terminal" | "contract-missing";
11422
+ contractId: ContractId;
11423
+ } | {
11424
+ kind: "verification-declaration-invalid";
11425
+ contractId?: ContractId | undefined;
11426
+ };
11427
+ } | {
11428
+ retry: {
11429
+ kind: "publication-failed";
11430
+ diagnostic: string;
11431
+ } | {
11432
+ kind: "exhausted" | "collision";
11433
+ };
11433
11434
  } | {
11434
11435
  kind: "execution-stopped";
11435
11436
  contractId: ContractId;
@@ -11763,8 +11764,8 @@ declare const failureWireSchema: z.ZodObject<{
11763
11764
  kind: z.ZodLiteral<"settlement-action">;
11764
11765
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
11765
11766
  action: z.ZodObject<{
11766
- kind: z.ZodLiteral<"task">;
11767
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
11767
+ kind: z.ZodLiteral<"debt">;
11768
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
11768
11769
  action: z.ZodLiteral<"done">;
11769
11770
  }, z.core.$strict>;
11770
11771
  }, z.core.$strict>, z.ZodObject<{
@@ -11773,11 +11774,11 @@ declare const failureWireSchema: z.ZodObject<{
11773
11774
  lag: z.ZodObject<{
11774
11775
  kind: z.ZodLiteral<"settlement-failed">;
11775
11776
  surface: z.ZodEnum<{
11776
- task: "task";
11777
- "task-holder": "task-holder";
11777
+ debt: "debt";
11778
+ "debt-holder": "debt-holder";
11778
11779
  }>;
11779
11780
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
11780
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
11781
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
11781
11782
  path: z.ZodOptional<z.ZodString>;
11782
11783
  diagnostic: z.ZodString;
11783
11784
  }, z.core.$strict>;
@@ -11876,13 +11877,6 @@ declare const failureWireSchema: z.ZodObject<{
11876
11877
  candidate?: {
11877
11878
  kind: "blocked";
11878
11879
  refusal: {
11879
- kind: "checkout-not-followable";
11880
- contractId: ContractId;
11881
- target: string;
11882
- path: string;
11883
- reason: "untracked";
11884
- paths: readonly string[];
11885
- } | {
11886
11880
  kind: "worktree-missing";
11887
11881
  contractId: ContractId;
11888
11882
  } | {
@@ -11912,6 +11906,16 @@ declare const failureWireSchema: z.ZodObject<{
11912
11906
  kind: "integration-unsupported";
11913
11907
  contractId: ContractId;
11914
11908
  requiredGit: "2.38";
11909
+ } | {
11910
+ kind: "checkout-not-followable";
11911
+ contractId: ContractId;
11912
+ target: string;
11913
+ path: string;
11914
+ reason: "untracked";
11915
+ paths: readonly string[];
11916
+ } | {
11917
+ kind: "target-missing";
11918
+ contractId: ContractId;
11915
11919
  } | {
11916
11920
  kind: "merge-state-present";
11917
11921
  contractId: ContractId;
@@ -11919,9 +11923,6 @@ declare const failureWireSchema: z.ZodObject<{
11919
11923
  kind: "worktree";
11920
11924
  path: string;
11921
11925
  };
11922
- } | {
11923
- kind: "target-missing";
11924
- contractId: ContractId;
11925
11926
  };
11926
11927
  } | {
11927
11928
  kind: "ready";
@@ -11957,21 +11958,6 @@ declare const failureWireSchema: z.ZodObject<{
11957
11958
  } | {
11958
11959
  kind: "stopped";
11959
11960
  stop: {
11960
- refusal: {
11961
- kind: "terminal" | "contract-missing";
11962
- contractId: ContractId;
11963
- } | {
11964
- kind: "verification-declaration-invalid";
11965
- contractId?: ContractId | undefined;
11966
- };
11967
- } | {
11968
- retry: {
11969
- kind: "publication-failed";
11970
- diagnostic: string;
11971
- } | {
11972
- kind: "exhausted" | "collision";
11973
- };
11974
- } | {
11975
11961
  failure: "cancelled" | "unknown-exit";
11976
11962
  stdout?: string | undefined;
11977
11963
  stderr?: string | undefined;
@@ -12014,6 +12000,21 @@ declare const failureWireSchema: z.ZodObject<{
12014
12000
  stdout?: string | undefined;
12015
12001
  stderr?: string | undefined;
12016
12002
  truncated?: true | undefined;
12003
+ } | {
12004
+ refusal: {
12005
+ kind: "terminal" | "contract-missing";
12006
+ contractId: ContractId;
12007
+ } | {
12008
+ kind: "verification-declaration-invalid";
12009
+ contractId?: ContractId | undefined;
12010
+ };
12011
+ } | {
12012
+ retry: {
12013
+ kind: "publication-failed";
12014
+ diagnostic: string;
12015
+ } | {
12016
+ kind: "exhausted" | "collision";
12017
+ };
12017
12018
  };
12018
12019
  } | {
12019
12020
  kind: "satisfied" | "unsatisfied";
@@ -12082,13 +12083,6 @@ declare const failureWireSchema: z.ZodObject<{
12082
12083
  candidate?: {
12083
12084
  kind: "blocked";
12084
12085
  refusal: {
12085
- kind: "checkout-not-followable";
12086
- contractId: ContractId;
12087
- target: string;
12088
- path: string;
12089
- reason: "untracked";
12090
- paths: readonly string[];
12091
- } | {
12092
12086
  kind: "worktree-missing";
12093
12087
  contractId: ContractId;
12094
12088
  } | {
@@ -12118,6 +12112,16 @@ declare const failureWireSchema: z.ZodObject<{
12118
12112
  kind: "integration-unsupported";
12119
12113
  contractId: ContractId;
12120
12114
  requiredGit: "2.38";
12115
+ } | {
12116
+ kind: "checkout-not-followable";
12117
+ contractId: ContractId;
12118
+ target: string;
12119
+ path: string;
12120
+ reason: "untracked";
12121
+ paths: readonly string[];
12122
+ } | {
12123
+ kind: "target-missing";
12124
+ contractId: ContractId;
12121
12125
  } | {
12122
12126
  kind: "merge-state-present";
12123
12127
  contractId: ContractId;
@@ -12125,9 +12129,6 @@ declare const failureWireSchema: z.ZodObject<{
12125
12129
  kind: "worktree";
12126
12130
  path: string;
12127
12131
  };
12128
- } | {
12129
- kind: "target-missing";
12130
- contractId: ContractId;
12131
12132
  };
12132
12133
  } | {
12133
12134
  kind: "ready";
@@ -12163,21 +12164,6 @@ declare const failureWireSchema: z.ZodObject<{
12163
12164
  } | {
12164
12165
  kind: "stopped";
12165
12166
  stop: {
12166
- refusal: {
12167
- kind: "terminal" | "contract-missing";
12168
- contractId: ContractId;
12169
- } | {
12170
- kind: "verification-declaration-invalid";
12171
- contractId?: ContractId | undefined;
12172
- };
12173
- } | {
12174
- retry: {
12175
- kind: "publication-failed";
12176
- diagnostic: string;
12177
- } | {
12178
- kind: "exhausted" | "collision";
12179
- };
12180
- } | {
12181
12167
  failure: "cancelled" | "unknown-exit";
12182
12168
  stdout?: string | undefined;
12183
12169
  stderr?: string | undefined;
@@ -12220,6 +12206,21 @@ declare const failureWireSchema: z.ZodObject<{
12220
12206
  stdout?: string | undefined;
12221
12207
  stderr?: string | undefined;
12222
12208
  truncated?: true | undefined;
12209
+ } | {
12210
+ refusal: {
12211
+ kind: "terminal" | "contract-missing";
12212
+ contractId: ContractId;
12213
+ } | {
12214
+ kind: "verification-declaration-invalid";
12215
+ contractId?: ContractId | undefined;
12216
+ };
12217
+ } | {
12218
+ retry: {
12219
+ kind: "publication-failed";
12220
+ diagnostic: string;
12221
+ } | {
12222
+ kind: "exhausted" | "collision";
12223
+ };
12223
12224
  };
12224
12225
  } | {
12225
12226
  kind: "satisfied" | "unsatisfied";
@@ -12541,8 +12542,8 @@ declare const failureWireSchema: z.ZodObject<{
12541
12542
  kind: z.ZodLiteral<"settlement-action">;
12542
12543
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
12543
12544
  action: z.ZodObject<{
12544
- kind: z.ZodLiteral<"task">;
12545
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
12545
+ kind: z.ZodLiteral<"debt">;
12546
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
12546
12547
  action: z.ZodLiteral<"done">;
12547
12548
  }, z.core.$strict>;
12548
12549
  }, z.core.$strict>, z.ZodObject<{
@@ -12551,11 +12552,11 @@ declare const failureWireSchema: z.ZodObject<{
12551
12552
  lag: z.ZodObject<{
12552
12553
  kind: z.ZodLiteral<"settlement-failed">;
12553
12554
  surface: z.ZodEnum<{
12554
- task: "task";
12555
- "task-holder": "task-holder";
12555
+ debt: "debt";
12556
+ "debt-holder": "debt-holder";
12556
12557
  }>;
12557
12558
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
12558
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
12559
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
12559
12560
  path: z.ZodOptional<z.ZodString>;
12560
12561
  diagnostic: z.ZodString;
12561
12562
  }, z.core.$strict>;
@@ -12907,8 +12908,8 @@ declare const failureWireSchema: z.ZodObject<{
12907
12908
  kind: z.ZodLiteral<"settlement-action">;
12908
12909
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
12909
12910
  action: z.ZodObject<{
12910
- kind: z.ZodLiteral<"task">;
12911
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
12911
+ kind: z.ZodLiteral<"debt">;
12912
+ debtId: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
12912
12913
  action: z.ZodLiteral<"done">;
12913
12914
  }, z.core.$strict>;
12914
12915
  }, z.core.$strict>, z.ZodObject<{
@@ -12917,11 +12918,11 @@ declare const failureWireSchema: z.ZodObject<{
12917
12918
  lag: z.ZodObject<{
12918
12919
  kind: z.ZodLiteral<"settlement-failed">;
12919
12920
  surface: z.ZodEnum<{
12920
- task: "task";
12921
- "task-holder": "task-holder";
12921
+ debt: "debt";
12922
+ "debt-holder": "debt-holder";
12922
12923
  }>;
12923
12924
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
12924
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
12925
+ debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
12925
12926
  path: z.ZodOptional<z.ZodString>;
12926
12927
  diagnostic: z.ZodString;
12927
12928
  }, z.core.$strict>;
@@ -13023,9 +13024,9 @@ declare const failureWireSchema: z.ZodObject<{
13023
13024
  effects: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
13024
13025
  world: z.ZodString;
13025
13026
  owner: z.ZodEnum<{
13026
- task: "task";
13027
- akuma: "akuma";
13028
13027
  world: "world";
13028
+ debt: "debt";
13029
+ akuma: "akuma";
13029
13030
  git: "git";
13030
13031
  }>;
13031
13032
  diagnostic: z.ZodString;
@@ -13033,9 +13034,9 @@ declare const failureWireSchema: z.ZodObject<{
13033
13034
  }, z.core.$strict>, z.ZodObject<{
13034
13035
  world: z.ZodString;
13035
13036
  owner: z.ZodEnum<{
13036
- task: "task";
13037
- akuma: "akuma";
13038
13037
  world: "world";
13038
+ debt: "debt";
13039
+ akuma: "akuma";
13039
13040
  git: "git";
13040
13041
  }>;
13041
13042
  diagnostic: z.ZodString;
@@ -13058,7 +13059,7 @@ declare const failureWireSchema: z.ZodObject<{
13058
13059
  removed: z.ZodObject<{
13059
13060
  refs: z.ZodNumber;
13060
13061
  worktrees: z.ZodNumber;
13061
- tasks: z.ZodNumber;
13062
+ debts: z.ZodNumber;
13062
13063
  }, z.core.$strict>;
13063
13064
  }, z.core.$strict>>;
13064
13065
  }, z.core.$strict>]>>;