@astrosheep/keiyaku 4.6.6 → 4.6.8

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 (217) hide show
  1. package/README.md +11 -0
  2. package/build/{integrations/marketplace → plugins}/.agents/plugins/marketplace.json +1 -1
  3. package/build/plugins/.claude-plugin/marketplace.json +5 -0
  4. package/build/{integrations/marketplace/plugins/keiyaku → plugins/claude}/.claude-plugin/plugin.json +1 -1
  5. package/build/{integrations/marketplace/plugins/keiyaku → plugins/codex}/.codex-plugin/plugin.json +1 -1
  6. package/build/plugins/codex/skills/keiyaku/SKILL.md +44 -0
  7. package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +130 -0
  8. package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +269 -0
  9. package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +65 -0
  10. package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +216 -0
  11. package/build/plugins/codex/skills/keiyaku-bind/agents/openai.yaml +4 -0
  12. package/build/plugins/codex/skills/keiyaku-task/SKILL.md +104 -0
  13. package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +129 -0
  14. package/build/plugins/opencode/package.json +6 -0
  15. package/build/plugins/opencode/skills/keiyaku/SKILL.md +44 -0
  16. package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +130 -0
  17. package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +269 -0
  18. package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +65 -0
  19. package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +216 -0
  20. package/build/plugins/opencode/skills/keiyaku-bind/agents/openai.yaml +4 -0
  21. package/build/plugins/opencode/skills/keiyaku-task/SKILL.md +104 -0
  22. package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +129 -0
  23. package/build/{integrations → plugins}/pi/keiyaku.ts +0 -5
  24. package/build/skills/keiyaku/SKILL.md +44 -0
  25. package/build/skills/keiyaku-akuma/SKILL.md +130 -0
  26. package/build/skills/keiyaku-akuma/references/automation.md +269 -0
  27. package/build/skills/keiyaku-babysit/SKILL.md +65 -0
  28. package/build/skills/keiyaku-bind/SKILL.md +216 -0
  29. package/build/skills/keiyaku-bind/agents/openai.yaml +4 -0
  30. package/build/skills/keiyaku-task/SKILL.md +104 -0
  31. package/build/skills/keiyaku-workflow/SKILL.md +129 -0
  32. package/build/src/akuma/akuma-call.d.ts +2 -0
  33. package/build/src/akuma/akuma-call.js +8 -2
  34. package/build/src/akuma/akuma-instance.d.ts +12 -1
  35. package/build/src/akuma/akuma-instance.js +31 -9
  36. package/build/src/akuma/akuma-observe.d.ts +4 -0
  37. package/build/src/akuma/akuma-observe.js +14 -0
  38. package/build/src/akuma/akuma-owner.d.ts +6 -2
  39. package/build/src/akuma/akuma-owner.js +32 -10
  40. package/build/src/akuma/akuma-selection-execution.d.ts +3 -1
  41. package/build/src/akuma/akuma-selection-execution.js +2 -1
  42. package/build/src/akuma/akuma-wait.d.ts +2 -1
  43. package/build/src/akuma/akuma-wait.js +4 -1
  44. package/build/src/akuma/akuma.d.ts +35 -5
  45. package/build/src/akuma/akuma.js +8 -10
  46. package/build/src/akuma/archetype.d.ts +7 -15
  47. package/build/src/akuma/archetype.js +36 -35
  48. package/build/src/akuma/body.d.ts +6 -3
  49. package/build/src/akuma/body.js +41 -30
  50. package/build/src/akuma/call-request.d.ts +18 -10
  51. package/build/src/akuma/call-request.js +10 -3
  52. package/build/src/akuma/caller.d.ts +39 -0
  53. package/build/src/akuma/caller.js +36 -0
  54. package/build/src/akuma/dispatch-association.d.ts +0 -1
  55. package/build/src/akuma/dispatch-association.js +0 -3
  56. package/build/src/akuma/heart/facts.d.ts +16 -12
  57. package/build/src/akuma/heart/facts.js +8 -0
  58. package/build/src/akuma/heart/index.d.ts +2 -7
  59. package/build/src/akuma/heart/index.js +3 -17
  60. package/build/src/akuma/heart/rows.d.ts +3 -3
  61. package/build/src/akuma/heart/soul.d.ts +1 -1
  62. package/build/src/akuma/heart/soul.js +5 -24
  63. package/build/src/akuma/heart/storage.d.ts +5 -0
  64. package/build/src/akuma/heart/storage.js +7 -3
  65. package/build/src/akuma/identity.d.ts +0 -1
  66. package/build/src/akuma/identity.js +2 -5
  67. package/build/src/akuma/index.d.ts +5 -2
  68. package/build/src/akuma/index.js +1 -0
  69. package/build/src/akuma/nuke.js +6 -28
  70. package/build/src/akuma/projection.d.ts +0 -11
  71. package/build/src/akuma/provider-recipe.d.ts +7 -6
  72. package/build/src/akuma/provider-recipe.js +1 -1
  73. package/build/src/akuma/provider.d.ts +6 -10
  74. package/build/src/akuma/provider.js +6 -7
  75. package/build/src/akuma/providers/acp/events.js +5 -18
  76. package/build/src/akuma/providers/acp/index.js +2 -3
  77. package/build/src/akuma/providers/claude/events.js +35 -60
  78. package/build/src/akuma/providers/claude/index.d.ts +2 -2
  79. package/build/src/akuma/providers/claude/index.js +2 -3
  80. package/build/src/akuma/providers/codex-app-server/index.js +2 -2
  81. package/build/src/akuma/providers/decode.d.ts +25 -0
  82. package/build/src/akuma/providers/decode.js +44 -0
  83. package/build/src/akuma/providers/execution-environment.d.ts +2 -1
  84. package/build/src/akuma/providers/execution-environment.js +3 -0
  85. package/build/src/akuma/providers/grok-build/index.js +6 -22
  86. package/build/src/akuma/providers/index.js +2 -0
  87. package/build/src/akuma/providers/lifecycle.d.ts +9 -0
  88. package/build/src/akuma/providers/lifecycle.js +10 -0
  89. package/build/src/akuma/providers/opencode-sdk/events.js +1 -14
  90. package/build/src/akuma/providers/opencode-sdk/index.js +10 -17
  91. package/build/src/akuma/providers/opencode-sdk/session.js +1 -3
  92. package/build/src/akuma/providers/paseo/events.d.ts +25 -0
  93. package/build/src/akuma/providers/paseo/events.js +157 -0
  94. package/build/src/akuma/providers/paseo/index.d.ts +9 -0
  95. package/build/src/akuma/providers/paseo/index.js +353 -0
  96. package/build/src/akuma/providers/pi/events.js +5 -15
  97. package/build/src/akuma/publication.d.ts +2 -0
  98. package/build/src/akuma/publication.js +5 -0
  99. package/build/src/akuma/request-lifecycle.d.ts +3 -0
  100. package/build/src/akuma/request-lifecycle.js +25 -4
  101. package/build/src/akuma/requests.d.ts +3 -1
  102. package/build/src/akuma/requests.js +32 -0
  103. package/build/src/akuma/selection-observation.d.ts +72 -2
  104. package/build/src/akuma/selection-observation.js +0 -6
  105. package/build/src/akuma/selection-owner-port.d.ts +1 -1
  106. package/build/src/akuma/selection-owner-port.js +16 -5
  107. package/build/src/akuma/selection-request.d.ts +2 -0
  108. package/build/src/akuma/selection-request.js +2 -1
  109. package/build/src/akuma/turn-drive.js +2 -5
  110. package/build/src/akuma-body.js +4 -2
  111. package/build/src/cli/akuma-caller.d.ts +3 -0
  112. package/build/src/cli/akuma-caller.js +21 -0
  113. package/build/src/cli/commands/akuma-grammar.js +7 -12
  114. package/build/src/cli/commands/akuma.js +18 -16
  115. package/build/src/cli/commands/contract-grammar.d.ts +2 -1
  116. package/build/src/cli/commands/contract-grammar.js +13 -15
  117. package/build/src/cli/commands/contract-help.d.ts +2 -1
  118. package/build/src/cli/commands/contract-help.js +31 -1
  119. package/build/src/cli/commands/contract.js +24 -53
  120. package/build/src/cli/commands/install.js +3 -3
  121. package/build/src/cli/commands/task.js +18 -35
  122. package/build/src/cli/parse.d.ts +2 -2
  123. package/build/src/cli/render/catalog.d.ts +2 -5
  124. package/build/src/cli/render/contract-history.js +3 -6
  125. package/build/src/cli/render/contract.js +15 -50
  126. package/build/src/cli/render/receipt.js +3 -10
  127. package/build/src/cli/render/task.d.ts +4 -6
  128. package/build/src/cli/render/task.js +9 -26
  129. package/build/src/cli/runtime.d.ts +1 -1
  130. package/build/src/cli/runtime.js +11 -17
  131. package/build/src/cli/selectors.d.ts +3 -6
  132. package/build/src/cli/selectors.js +22 -53
  133. package/build/src/dispatch/index.d.ts +3 -3
  134. package/build/src/dispatch/index.js +1 -2
  135. package/build/src/git/observe.d.ts +6 -2
  136. package/build/src/git/observe.js +6 -2
  137. package/build/src/index.d.ts +6 -6
  138. package/build/src/index.js +2 -2
  139. package/build/src/kanshi/index.d.ts +1 -1
  140. package/build/src/kanshi/read.js +21 -6
  141. package/build/src/library/address.js +2 -4
  142. package/build/src/library/akuma-creation.d.ts +5 -1
  143. package/build/src/library/akuma-creation.js +33 -51
  144. package/build/src/library/akumas.d.ts +5 -4
  145. package/build/src/library/akumas.js +13 -9
  146. package/build/src/library/bind.d.ts +14 -14
  147. package/build/src/library/bind.js +11 -7
  148. package/build/src/library/contract-address.d.ts +9 -0
  149. package/build/src/library/contract-address.js +71 -0
  150. package/build/src/library/contract-composition.d.ts +4 -7
  151. package/build/src/library/contract-composition.js +6 -18
  152. package/build/src/library/contract-creation.d.ts +3 -5
  153. package/build/src/library/contract-creation.js +19 -17
  154. package/build/src/library/contract-execution.js +18 -23
  155. package/build/src/library/contract-outcomes.d.ts +2 -14
  156. package/build/src/library/contract-outcomes.js +2 -13
  157. package/build/src/library/contract-types.d.ts +36 -2
  158. package/build/src/library/delivery.d.ts +0 -2
  159. package/build/src/library/delivery.js +2 -5
  160. package/build/src/library/keiyaku.d.ts +0 -5
  161. package/build/src/library/keiyaku.js +6 -12
  162. package/build/src/library/outcome.d.ts +500 -499
  163. package/build/src/library/outcome.js +10 -0
  164. package/build/src/library/reconcile.js +8 -16
  165. package/build/src/library/refusal.d.ts +2 -2
  166. package/build/src/library/repo.d.ts +3 -2
  167. package/build/src/library/repo.js +10 -5
  168. package/build/src/library/selection.d.ts +4 -4
  169. package/build/src/library/selection.js +12 -9
  170. package/build/src/plugin/akuma-signals.d.ts +12 -11
  171. package/build/src/plugin/akuma-signals.js +40 -20
  172. package/build/src/plugin/public.d.ts +32 -2
  173. package/build/src/plugin/runtime.d.ts +1 -0
  174. package/build/src/plugin/runtime.js +35 -24
  175. package/build/src/protocol/amend.js +3 -2
  176. package/build/src/protocol/attempt.js +3 -8
  177. package/build/src/protocol/bind.d.ts +2 -2
  178. package/build/src/protocol/bind.js +1 -1
  179. package/build/src/protocol/deliver.js +3 -3
  180. package/build/src/protocol/operations.d.ts +1 -3
  181. package/build/src/protocol/operations.js +0 -8
  182. package/build/src/protocol/outcome.d.ts +1 -2
  183. package/build/src/protocol/outcome.js +1 -13
  184. package/build/src/protocol/placement.js +3 -10
  185. package/build/src/protocol/read/status.js +31 -70
  186. package/build/src/protocol/reintegrate.js +3 -10
  187. package/build/src/protocol/review.js +3 -3
  188. package/build/src/protocol/run.d.ts +5 -1
  189. package/build/src/protocol/run.js +3 -3
  190. package/build/src/runtime/proc/windows-launch.exe +0 -0
  191. package/package.json +12 -8
  192. package/plugins/pi/keiyaku.ts +57 -0
  193. package/skills/keiyaku/SKILL.md +44 -0
  194. package/skills/keiyaku-akuma/SKILL.md +130 -0
  195. package/skills/keiyaku-akuma/references/automation.md +269 -0
  196. package/skills/keiyaku-babysit/SKILL.md +65 -0
  197. package/skills/keiyaku-bind/SKILL.md +216 -0
  198. package/skills/keiyaku-bind/agents/openai.yaml +4 -0
  199. package/skills/keiyaku-task/SKILL.md +104 -0
  200. package/skills/keiyaku-workflow/SKILL.md +129 -0
  201. package/build/integrations/marketplace/.claude-plugin/marketplace.json +0 -5
  202. package/build/integrations/marketplace/plugins/keiyaku/package.json +0 -17
  203. package/build/src/cli/commands/amend.d.ts +0 -12
  204. package/build/src/cli/commands/amend.js +0 -10
  205. package/build/src/cli/commands/bind.d.ts +0 -11
  206. package/build/src/cli/commands/bind.js +0 -23
  207. package/build/src/dispatch/association.d.ts +0 -1
  208. package/build/src/dispatch/association.js +0 -1
  209. /package/build/{integrations/marketplace/plugins/keiyaku → plugins/claude}/skills/keiyaku/SKILL.md +0 -0
  210. /package/build/{integrations/marketplace/plugins/keiyaku → plugins/claude}/skills/keiyaku-akuma/SKILL.md +0 -0
  211. /package/build/{integrations/marketplace/plugins/keiyaku → plugins/claude}/skills/keiyaku-akuma/references/automation.md +0 -0
  212. /package/build/{integrations/marketplace/plugins/keiyaku → plugins/claude}/skills/keiyaku-babysit/SKILL.md +0 -0
  213. /package/build/{integrations/marketplace/plugins/keiyaku → plugins/claude}/skills/keiyaku-bind/SKILL.md +0 -0
  214. /package/build/{integrations/marketplace/plugins/keiyaku → plugins/claude}/skills/keiyaku-bind/agents/openai.yaml +0 -0
  215. /package/build/{integrations/marketplace/plugins/keiyaku → plugins/claude}/skills/keiyaku-task/SKILL.md +0 -0
  216. /package/build/{integrations/marketplace/plugins/keiyaku → plugins/claude}/skills/keiyaku-workflow/SKILL.md +0 -0
  217. /package/build/{integrations/marketplace/plugins/keiyaku/opencode.js → plugins/opencode/index.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
+ world: "world";
74
75
  task: "task";
75
76
  akuma: "akuma";
76
- world: "world";
77
77
  git: "git";
78
78
  }>;
79
79
  export type ResetOwner = z.infer<typeof resetOwnerSchema>;
@@ -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
+ world: "world";
326
327
  task: "task";
327
328
  akuma: "akuma";
328
- world: "world";
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
+ world: "world";
336
337
  task: "task";
337
338
  akuma: "akuma";
338
- world: "world";
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<{
@@ -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<{
3650
+ world: "world";
3649
3651
  task: "task";
3650
3652
  akuma: "akuma";
3651
- world: "world";
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<{
3660
+ world: "world";
3659
3661
  task: "task";
3660
3662
  akuma: "akuma";
3661
- world: "world";
3662
3663
  git: "git";
3663
3664
  }>;
3664
3665
  diagnostic: z.ZodString;
@@ -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<{
3695
+ world: "world";
3694
3696
  task: "task";
3695
3697
  akuma: "akuma";
3696
- world: "world";
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<{
3705
+ world: "world";
3704
3706
  task: "task";
3705
3707
  akuma: "akuma";
3706
- world: "world";
3707
3708
  git: "git";
3708
3709
  }>;
3709
3710
  diagnostic: z.ZodString;
@@ -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;
@@ -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;
@@ -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";
@@ -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<{
8356
+ world: "world";
8355
8357
  task: "task";
8356
8358
  akuma: "akuma";
8357
- world: "world";
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<{
8366
+ world: "world";
8365
8367
  task: "task";
8366
8368
  akuma: "akuma";
8367
- world: "world";
8368
8369
  git: "git";
8369
8370
  }>;
8370
8371
  diagnostic: z.ZodString;
@@ -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>;
@@ -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;
@@ -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;
@@ -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";
@@ -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<{
13027
+ world: "world";
13026
13028
  task: "task";
13027
13029
  akuma: "akuma";
13028
- world: "world";
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<{
13037
+ world: "world";
13036
13038
  task: "task";
13037
13039
  akuma: "akuma";
13038
- world: "world";
13039
13040
  git: "git";
13040
13041
  }>;
13041
13042
  diagnostic: z.ZodString;