@astrosheep/keiyaku 4.5.11 → 4.5.13

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 (272) hide show
  1. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-workflow/SKILL.md +135 -377
  2. package/build/integrations/pi/keiyaku.ts +11 -116
  3. package/build/src/akuma/akuma-errors.d.ts +1 -0
  4. package/build/src/akuma/akuma-errors.js +1 -0
  5. package/build/src/akuma/akuma-handle.d.ts +1 -0
  6. package/build/src/akuma/akuma-handle.js +6 -7
  7. package/build/src/akuma/akuma-product.d.ts +6 -8
  8. package/build/src/akuma/akuma-product.js +141 -57
  9. package/build/src/akuma/akuma.d.ts +5 -7
  10. package/build/src/akuma/akuma.js +1 -22
  11. package/build/src/akuma/archetype.d.ts +6 -5
  12. package/build/src/akuma/archetype.js +137 -38
  13. package/build/src/akuma/body.d.ts +5 -5
  14. package/build/src/akuma/body.js +223 -63
  15. package/build/src/akuma/call-input.d.ts +4 -0
  16. package/build/src/akuma/call-input.js +21 -0
  17. package/build/src/akuma/call-request.d.ts +5 -8
  18. package/build/src/akuma/call-request.js +28 -73
  19. package/build/src/akuma/fleet-execution.d.ts +26 -0
  20. package/build/src/akuma/fleet-execution.js +109 -0
  21. package/build/src/{library/fleet-result.d.ts → akuma/fleet-observation.d.ts} +13 -57
  22. package/build/src/{library/fleet-result.js → akuma/fleet-observation.js} +4 -25
  23. package/build/src/akuma/fleet-request.d.ts +122 -0
  24. package/build/src/akuma/fleet-request.js +168 -0
  25. package/build/src/akuma/heart/facts.d.ts +23 -0
  26. package/build/src/akuma/heart/facts.js +7 -0
  27. package/build/src/akuma/heart/index.d.ts +43 -4
  28. package/build/src/akuma/heart/index.js +107 -7
  29. package/build/src/akuma/heart/request-authority.d.ts +2 -0
  30. package/build/src/akuma/heart/request-authority.js +28 -3
  31. package/build/src/akuma/heart/request-rows.d.ts +2 -0
  32. package/build/src/akuma/heart/request-rows.js +24 -5
  33. package/build/src/akuma/heart/rows.d.ts +4 -1
  34. package/build/src/akuma/heart/rows.js +46 -19
  35. package/build/src/akuma/heart/schema.d.ts +1 -1
  36. package/build/src/akuma/heart/schema.js +28 -6
  37. package/build/src/akuma/heart/storage.d.ts +1 -1
  38. package/build/src/akuma/heart/tells.d.ts +29 -0
  39. package/build/src/akuma/heart/tells.js +136 -5
  40. package/build/src/akuma/heart/timeline.js +9 -3
  41. package/build/src/akuma/projection-read.js +36 -3
  42. package/build/src/akuma/projection.js +3 -4
  43. package/build/src/akuma/provider.d.ts +4 -0
  44. package/build/src/akuma/provider.js +56 -3
  45. package/build/src/akuma/providers/claude/index.js +3 -0
  46. package/build/src/akuma/providers/codex-app-server/index.js +14 -12
  47. package/build/src/akuma/providers/pi/index.js +7 -1
  48. package/build/src/akuma/publication.js +65 -49
  49. package/build/src/akuma/request-lifecycle.d.ts +5 -4
  50. package/build/src/akuma/request-lifecycle.js +29 -16
  51. package/build/src/akuma/request-rendezvous.d.ts +15 -12
  52. package/build/src/akuma/request-rendezvous.js +80 -51
  53. package/build/src/akuma/request-serve.d.ts +1 -2
  54. package/build/src/akuma/request-serve.js +94 -39
  55. package/build/src/akuma/request-wire.d.ts +57 -26
  56. package/build/src/akuma/request-wire.js +64 -25
  57. package/build/src/akuma/turn-drive.d.ts +5 -4
  58. package/build/src/akuma/turn-drive.js +27 -11
  59. package/build/src/akuma-body.d.ts +4 -6
  60. package/build/src/akuma-body.js +19 -17
  61. package/build/src/bounded-list.d.ts +8 -0
  62. package/build/src/bounded-list.js +14 -0
  63. package/build/src/cli/accepted.d.ts +1 -1
  64. package/build/src/cli/accepted.js +1 -0
  65. package/build/src/cli/commands/akuma-invoke.js +1 -25
  66. package/build/src/cli/commands/contract-help.d.ts +5 -2
  67. package/build/src/cli/commands/contract-help.js +62 -12
  68. package/build/src/cli/commands/contract-invoke.d.ts +5 -0
  69. package/build/src/cli/commands/contract-invoke.js +26 -1
  70. package/build/src/cli/commands/contract.js +50 -18
  71. package/build/src/cli/commands/task-invoke.js +10 -2
  72. package/build/src/cli/commands/task-query.js +3 -4
  73. package/build/src/cli/coordinates.d.ts +13 -0
  74. package/build/src/cli/coordinates.js +38 -24
  75. package/build/src/cli/draft.d.ts +1 -1
  76. package/build/src/cli/invoke.js +14 -1
  77. package/build/src/cli/render/akuma-activity.d.ts +0 -1
  78. package/build/src/cli/render/akuma-activity.js +5 -38
  79. package/build/src/cli/render/akuma.js +4 -1
  80. package/build/src/cli/render/audit.js +4 -1
  81. package/build/src/cli/render/catalog.js +13 -39
  82. package/build/src/cli/render/contract.js +4 -14
  83. package/build/src/cli/render/kanshi-akuma.js +3 -8
  84. package/build/src/cli/render/kanshi.js +8 -34
  85. package/build/src/cli/render/nuke.js +7 -3
  86. package/build/src/cli/render/receipt.d.ts +1 -0
  87. package/build/src/cli/render/receipt.js +8 -0
  88. package/build/src/cli/render/refusal.js +4 -3
  89. package/build/src/cli/render/task.js +4 -37
  90. package/build/src/cli/render/terminal.d.ts +2 -6
  91. package/build/src/cli/render/terminal.js +4 -9
  92. package/build/src/cli/result.d.ts +2 -1
  93. package/build/src/contract-guidance.js +13 -3
  94. package/build/src/contract-worktree.d.ts +1 -0
  95. package/build/src/contract-worktree.js +26 -2
  96. package/build/src/core/facts/codec.d.ts +2 -1
  97. package/build/src/core/facts/codec.js +3 -0
  98. package/build/src/core/facts/gate.d.ts +2 -1
  99. package/build/src/core/facts/gate.js +63 -0
  100. package/build/src/core/verbs/abandon.d.ts +2 -1
  101. package/build/src/core/verbs/abandon.js +16 -0
  102. package/build/src/core/verbs/amend.d.ts +2 -1
  103. package/build/src/core/verbs/amend.js +20 -0
  104. package/build/src/core/verbs/arc.d.ts +2 -1
  105. package/build/src/core/verbs/arc.js +16 -0
  106. package/build/src/core/verbs/attestation.d.ts +2 -1
  107. package/build/src/core/verbs/attestation.js +16 -0
  108. package/build/src/core/verbs/bind.d.ts +2 -1
  109. package/build/src/core/verbs/bind.js +16 -0
  110. package/build/src/core/verbs/deliver.d.ts +2 -1
  111. package/build/src/core/verbs/deliver.js +16 -0
  112. package/build/src/core/verbs/placement.d.ts +2 -1
  113. package/build/src/core/verbs/placement.js +58 -1
  114. package/build/src/dispatch/association.d.ts +13 -0
  115. package/build/src/dispatch/association.js +20 -0
  116. package/build/src/dispatch/index.d.ts +6 -0
  117. package/build/src/dispatch/index.js +27 -3
  118. package/build/src/git/hooks.d.ts +9 -1
  119. package/build/src/git/hooks.js +79 -1
  120. package/build/src/git/nuke.d.ts +2 -1
  121. package/build/src/git/nuke.js +6 -11
  122. package/build/src/git/private-state-seat.d.ts +26 -1
  123. package/build/src/git/private-state-seat.js +78 -13
  124. package/build/src/git/process.d.ts +2 -0
  125. package/build/src/git/reconcile.d.ts +1 -2
  126. package/build/src/git/reconcile.js +0 -6
  127. package/build/src/git/repository.d.ts +0 -2
  128. package/build/src/git/repository.js +27 -25
  129. package/build/src/git/result-codec.d.ts +29 -0
  130. package/build/src/git/result-codec.js +306 -0
  131. package/build/src/git/target-placement.js +2 -8
  132. package/build/src/git/workspace.d.ts +2 -0
  133. package/build/src/git/workspace.js +4 -0
  134. package/build/src/index.d.ts +1 -0
  135. package/build/src/kanshi/fleet.js +1 -1
  136. package/build/src/kanshi/read.js +55 -28
  137. package/build/src/kanshi/report.d.ts +4 -3
  138. package/build/src/kanshi/select.js +14 -1
  139. package/build/src/library/address.d.ts +1 -0
  140. package/build/src/library/address.js +4 -7
  141. package/build/src/library/akuma-creation.d.ts +5 -3
  142. package/build/src/library/akuma-creation.js +90 -33
  143. package/build/src/library/audit.js +2 -1
  144. package/build/src/library/catalog.d.ts +10 -2
  145. package/build/src/library/catalog.js +65 -25
  146. package/build/src/library/composition.d.ts +1 -0
  147. package/build/src/library/composition.js +1 -0
  148. package/build/src/library/configuration.d.ts +4 -21
  149. package/build/src/library/configuration.js +2 -158
  150. package/build/src/library/continuation.d.ts +20 -1
  151. package/build/src/library/continuation.js +36 -0
  152. package/build/src/library/contract-bind.d.ts +1 -0
  153. package/build/src/library/contract-bind.js +16 -5
  154. package/build/src/library/contract-forwarding.d.ts +2 -2
  155. package/build/src/library/contract-forwarding.js +18 -4
  156. package/build/src/library/contract-handle.js +4 -3
  157. package/build/src/library/contract-operations.d.ts +5 -9
  158. package/build/src/library/contract-operations.js +34 -47
  159. package/build/src/library/contract.d.ts +11 -2
  160. package/build/src/library/contract.js +21 -1
  161. package/build/src/library/delivery.d.ts +4 -1
  162. package/build/src/library/delivery.js +47 -0
  163. package/build/src/library/fleet.d.ts +4 -136
  164. package/build/src/library/fleet.js +31 -315
  165. package/build/src/library/keiyaku.d.ts +7 -3
  166. package/build/src/library/keiyaku.js +1 -0
  167. package/build/src/library/mutation.d.ts +431 -3
  168. package/build/src/library/mutation.js +192 -19
  169. package/build/src/library/nuke.d.ts +7 -1
  170. package/build/src/library/nuke.js +18 -4
  171. package/build/src/library/reconcile.d.ts +14 -0
  172. package/build/src/library/reconcile.js +22 -8
  173. package/build/src/library/refusal.d.ts +9 -1
  174. package/build/src/library/refusal.js +76 -0
  175. package/build/src/library/region.d.ts +0 -8
  176. package/build/src/library/region.js +1 -29
  177. package/build/src/library/result-codec.d.ts +2 -0
  178. package/build/src/library/result-codec.js +12 -0
  179. package/build/src/markdown/lex.js +9 -2
  180. package/build/src/markdown/types.d.ts +2 -1
  181. package/build/src/markdown/types.js +3 -1
  182. package/build/src/plugin/akuma-signals.d.ts +12 -0
  183. package/build/src/plugin/akuma-signals.js +14 -0
  184. package/build/src/plugin/public.d.ts +51 -0
  185. package/build/src/plugin/public.js +1 -0
  186. package/build/src/plugin/runtime.d.ts +14 -0
  187. package/build/src/plugin/runtime.js +357 -0
  188. package/build/src/protocol/amend.js +3 -3
  189. package/build/src/protocol/attempt.d.ts +2 -1
  190. package/build/src/protocol/attempt.js +1 -1
  191. package/build/src/protocol/audit.d.ts +1 -1
  192. package/build/src/protocol/audit.js +1 -1
  193. package/build/src/protocol/bind.d.ts +3 -1
  194. package/build/src/protocol/bind.js +26 -0
  195. package/build/src/protocol/completion.js +0 -1
  196. package/build/src/protocol/deliver.d.ts +1 -1
  197. package/build/src/protocol/deliver.js +136 -57
  198. package/build/src/protocol/intent.d.ts +0 -1
  199. package/build/src/protocol/intent.js +0 -1
  200. package/build/src/protocol/operations.d.ts +9 -2
  201. package/build/src/protocol/operations.js +16 -1
  202. package/build/src/protocol/outcome.d.ts +3 -0
  203. package/build/src/protocol/outcome.js +17 -1
  204. package/build/src/protocol/placement.js +10 -3
  205. package/build/src/protocol/read/status.d.ts +8 -0
  206. package/build/src/protocol/read/status.js +49 -0
  207. package/build/src/protocol/reintegrate.js +10 -3
  208. package/build/src/protocol/result-codec.d.ts +22 -0
  209. package/build/src/protocol/result-codec.js +442 -0
  210. package/build/src/protocol/review.d.ts +1 -1
  211. package/build/src/protocol/review.js +81 -46
  212. package/build/src/protocol/run.d.ts +22 -2
  213. package/build/src/protocol/run.js +119 -29
  214. package/build/src/runtime/proc/lifecycle.js +1 -1
  215. package/build/src/runtime/proc/line-rpc.d.ts +7 -1
  216. package/build/src/runtime/proc/line-rpc.js +49 -9
  217. package/build/src/runtime/proc/run.d.ts +0 -1
  218. package/build/src/runtime/proc/run.js +1 -11
  219. package/build/src/runtime/proc/termination.d.ts +1 -0
  220. package/build/src/runtime/proc/termination.js +63 -18
  221. package/build/src/runtime/proc/windows-launch.exe +0 -0
  222. package/build/src/settings.d.ts +10 -0
  223. package/build/src/settings.js +88 -2
  224. package/build/src/settlement/result-codec.d.ts +2 -0
  225. package/build/src/settlement/result-codec.js +56 -0
  226. package/build/src/settlement/settle.d.ts +5 -12
  227. package/build/src/settlement/settle.js +60 -55
  228. package/build/src/task/board.d.ts +3 -0
  229. package/build/src/task/board.js +22 -4
  230. package/build/src/task/catalog.d.ts +13 -2
  231. package/build/src/task/catalog.js +59 -5
  232. package/build/src/task/compose.d.ts +4 -2
  233. package/build/src/task/compose.js +56 -30
  234. package/build/src/task/created-observation.d.ts +39 -0
  235. package/build/src/task/created-observation.js +26 -0
  236. package/build/src/task/identity.d.ts +6 -0
  237. package/build/src/task/identity.js +48 -7
  238. package/build/src/task/index.d.ts +4 -3
  239. package/build/src/task/index.js +19 -16
  240. package/build/src/task/input.d.ts +3 -1
  241. package/build/src/task/input.js +7 -4
  242. package/build/src/task/lifecycle-operations.d.ts +6 -0
  243. package/build/src/task/lifecycle-operations.js +116 -0
  244. package/build/src/task/mutation-result.d.ts +762 -20
  245. package/build/src/task/mutation-result.js +34 -9
  246. package/build/src/task/mutation.d.ts +4 -9
  247. package/build/src/task/mutation.js +17 -52
  248. package/build/src/task/operation-types.d.ts +114 -0
  249. package/build/src/task/operation-types.js +1 -0
  250. package/build/src/task/operations.d.ts +6 -113
  251. package/build/src/task/operations.js +75 -117
  252. package/build/src/task/query.d.ts +8 -11
  253. package/build/src/task/query.js +7 -14
  254. package/build/src/task/store.d.ts +11 -1
  255. package/build/src/task/store.js +169 -55
  256. package/build/src/task/view.d.ts +4 -0
  257. package/build/src/task/view.js +7 -0
  258. package/build/src/verification/declaration.d.ts +1 -0
  259. package/build/src/verification/declaration.js +18 -1
  260. package/build/src/verification/execution.d.ts +0 -1
  261. package/build/src/verification/execution.js +5 -5
  262. package/build/src/world.d.ts +0 -2
  263. package/build/src/world.js +3 -7
  264. package/package.json +17 -5
  265. package/build/src/cli/square-edge.d.ts +0 -7
  266. package/build/src/cli/square-edge.js +0 -159
  267. package/build/src/git/ref-migration.d.ts +0 -22
  268. package/build/src/git/ref-migration.js +0 -55
  269. package/build/src/library/contract-forwarding-reconciliation-result.d.ts +0 -102
  270. package/build/src/library/contract-forwarding-reconciliation-result.js +0 -92
  271. package/build/src/library/contract-forwarding-result.d.ts +0 -4270
  272. package/build/src/library/contract-forwarding-result.js +0 -521
@@ -1,4270 +0,0 @@
1
- import type { AuditReport } from "../protocol/audit.js";
2
- import type { ReviewValue } from "../protocol/review.js";
3
- import type { ContinuationReport } from "./continuation.js";
4
- import { z } from "zod";
5
- export type Review = ReviewValue & Readonly<{
6
- continuation?: ContinuationReport;
7
- }>;
8
- type WithoutUndefined<Value> = {
9
- [Key in keyof Value as undefined extends Value[Key] ? never : Key]: Value[Key];
10
- } & {
11
- [Key in keyof Value as undefined extends Value[Key] ? Key : never]?: Exclude<Value[Key], undefined>;
12
- };
13
- export declare const auditReportSchema: z.ZodType<AuditReport>;
14
- export declare const deliveryResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
15
- facts: z.ZodArray<z.ZodPipe<z.ZodUnknown, z.ZodTransform<Readonly<{
16
- v: 1;
17
- kind: "bound";
18
- contract: import("../core/facts/types.js").ContractId;
19
- entry: import("../core/facts/types.js").EntryUlid;
20
- at: string;
21
- actor?: import("../core/facts/types.js").ActorId;
22
- data: Readonly<Record<string, never>>;
23
- }> | Readonly<{
24
- v: 1;
25
- kind: "bind";
26
- contract: import("../core/facts/types.js").ContractId;
27
- entry: import("../core/facts/types.js").EntryUlid;
28
- at: string;
29
- actor?: import("../core/facts/types.js").ActorId;
30
- data: Readonly<{
31
- coordinates: import("../core/facts/types.js").ContractCoordinates;
32
- terms: import("../core/facts/types.js").ContractTerms;
33
- }>;
34
- }> | Readonly<{
35
- v: 1;
36
- kind: "amend";
37
- contract: import("../core/facts/types.js").ContractId;
38
- entry: import("../core/facts/types.js").EntryUlid;
39
- at: string;
40
- actor?: import("../core/facts/types.js").ActorId;
41
- data: Readonly<{
42
- document: Readonly<{
43
- bytes: string;
44
- key: import("../core/facts/types.js").DocumentKey;
45
- }>;
46
- segments: readonly import("../core/facts/types.js").DocumentSegmentKey[];
47
- gates: readonly import("../core/facts/types.js").Gate[];
48
- after: readonly import("../core/facts/types.js").ContractId[];
49
- }>;
50
- }> | Readonly<{
51
- v: 1;
52
- kind: "deliver";
53
- contract: import("../core/facts/types.js").ContractId;
54
- entry: import("../core/facts/types.js").EntryUlid;
55
- at: string;
56
- actor?: import("../core/facts/types.js").ActorId;
57
- data: Readonly<{
58
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
59
- integration: Readonly<{
60
- predecessor: import("../core/facts/types.js").SnapshotId;
61
- snapshot: import("../core/facts/types.js").SnapshotId;
62
- changeId: import("../core/facts/types.js").ChangeId;
63
- }>;
64
- method: "squash";
65
- policy: Readonly<{
66
- requireBranchesToBeUpToDate: boolean;
67
- }>;
68
- }>;
69
- }> | Readonly<{
70
- v: 1;
71
- kind: "reintegrated";
72
- contract: import("../core/facts/types.js").ContractId;
73
- entry: import("../core/facts/types.js").EntryUlid;
74
- at: string;
75
- actor?: import("../core/facts/types.js").ActorId;
76
- data: Readonly<{
77
- predecessor: import("../core/facts/types.js").SnapshotId;
78
- snapshot: import("../core/facts/types.js").SnapshotId;
79
- }>;
80
- }> | Readonly<{
81
- v: 1;
82
- kind: "attestation";
83
- contract: import("../core/facts/types.js").ContractId;
84
- entry: import("../core/facts/types.js").EntryUlid;
85
- at: string;
86
- actor?: import("../core/facts/types.js").ActorId;
87
- data: Readonly<{
88
- gate: import("../core/facts/types.js").Gate;
89
- subject: import("../core/facts/types.js").DependencyKeySet;
90
- verdict: "satisfied" | "unsatisfied";
91
- summary?: string;
92
- }>;
93
- }> | Readonly<{
94
- v: 1;
95
- kind: "claimed";
96
- contract: import("../core/facts/types.js").ContractId;
97
- entry: import("../core/facts/types.js").EntryUlid;
98
- at: string;
99
- actor?: import("../core/facts/types.js").ActorId;
100
- data: Readonly<{
101
- delivery: import("../core/facts/types.js").EntryUlid;
102
- }>;
103
- }> | Readonly<{
104
- v: 1;
105
- kind: "arc";
106
- contract: import("../core/facts/types.js").ContractId;
107
- entry: import("../core/facts/types.js").EntryUlid;
108
- at: string;
109
- actor?: import("../core/facts/types.js").ActorId;
110
- data: Readonly<{
111
- seq: number;
112
- title: string;
113
- objective: string;
114
- brief: string;
115
- }>;
116
- }> | Readonly<{
117
- v: 1;
118
- kind: "abandoned";
119
- contract: import("../core/facts/types.js").ContractId;
120
- entry: import("../core/facts/types.js").EntryUlid;
121
- at: string;
122
- actor?: import("../core/facts/types.js").ActorId;
123
- data: Readonly<{
124
- note?: string;
125
- }>;
126
- }>, unknown>>>;
127
- head: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractHead, string>>;
128
- value: z.ZodType<WithoutUndefined<{
129
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
130
- integration: {
131
- predecessor: import("../core/facts/types.js").SnapshotId;
132
- snapshot: import("../core/facts/types.js").SnapshotId;
133
- changeId: import("../core/facts/types.js").ChangeId;
134
- };
135
- method: "squash";
136
- policy: {
137
- requireBranchesToBeUpToDate: boolean;
138
- };
139
- completion?: WithoutUndefined<{
140
- integration: import("../core/facts/types.js").SnapshotId;
141
- verification?: {
142
- mode: "reused" | "ran";
143
- verdict: "satisfied" | "unsatisfied";
144
- } | undefined;
145
- }> | undefined;
146
- verification?: {
147
- refusal: WithoutUndefined<{
148
- kind: "verification-declaration-invalid";
149
- contractId?: import("../core/facts/types.js").ContractId | undefined;
150
- }> | {
151
- kind: "terminal" | "contract-missing";
152
- contractId: import("../core/facts/types.js").ContractId;
153
- };
154
- } | {
155
- retry: {
156
- kind: "exhausted";
157
- } | {
158
- kind: "collision";
159
- } | {
160
- kind: "publication-failed";
161
- diagnostic: string;
162
- };
163
- } | {
164
- failure: "cancelled" | "unknown-exit";
165
- } | {
166
- failure: "spawn-error" | "candidate-unavailable";
167
- diagnostic: string;
168
- } | {
169
- failure: "environment-failure";
170
- diagnostic: string;
171
- } | {
172
- failure: "environment-failure";
173
- command: number;
174
- detail: {
175
- kind: "exit";
176
- code: number;
177
- stdout: string;
178
- stderr: string;
179
- truncated: boolean;
180
- } | {
181
- kind: "timeout";
182
- } | {
183
- kind: "spawn-error";
184
- diagnostic: string;
185
- } | {
186
- kind: "unknown-exit";
187
- };
188
- } | undefined;
189
- verificationReuse?: WithoutUndefined<{
190
- entry: import("../core/facts/types.js").EntryUlid;
191
- verdict: "satisfied" | "unsatisfied";
192
- summary?: string | undefined;
193
- }> | undefined;
194
- verificationSummary?: string | undefined;
195
- placement?: {
196
- refusal: WithoutUndefined<{
197
- kind: "integration-failed";
198
- contractId: import("../core/facts/types.js").ContractId;
199
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
200
- targetHead: import("../core/facts/types.js").SnapshotId;
201
- conflictPaths?: string[] | undefined;
202
- }> | {
203
- kind: "checkout-not-followable";
204
- contractId: import("../core/facts/types.js").ContractId;
205
- target: string;
206
- path: string;
207
- reason: "conflict" | "staged" | "untracked";
208
- paths: string[];
209
- } | {
210
- kind: "gates-unsatisfied";
211
- contractId: import("../core/facts/types.js").ContractId;
212
- unmet: {
213
- gate: import("../core/facts/types.js").Gate;
214
- current: WithoutUndefined<{
215
- kind: "attested";
216
- verdict: "satisfied" | "unsatisfied";
217
- at: string;
218
- summary?: string | undefined;
219
- }> | {
220
- kind: "stale";
221
- priorVerdict: "satisfied" | "unsatisfied";
222
- } | {
223
- kind: "missing";
224
- };
225
- }[];
226
- } | {
227
- kind: "prerequisites-unsatisfied";
228
- contractId: import("../core/facts/types.js").ContractId;
229
- unmet: {
230
- contractId: import("../core/facts/types.js").ContractId;
231
- state: "missing" | "active" | "abandoned";
232
- }[];
233
- } | {
234
- kind: "terminal" | "contract-missing" | "delivery-missing";
235
- contractId: import("../core/facts/types.js").ContractId;
236
- } | {
237
- kind: "integration-unsupported";
238
- contractId: import("../core/facts/types.js").ContractId;
239
- requiredGit: "2.38";
240
- } | {
241
- kind: "target-missing";
242
- contractId: import("../core/facts/types.js").ContractId;
243
- };
244
- } | {
245
- retry: {
246
- kind: "exhausted";
247
- } | {
248
- kind: "collision";
249
- } | {
250
- kind: "publication-failed";
251
- diagnostic: string;
252
- };
253
- } | {
254
- failure: "target-moved";
255
- contractId: import("../core/facts/types.js").ContractId;
256
- target: string;
257
- expected: import("../core/facts/types.js").SnapshotId;
258
- observed: import("../core/facts/types.js").SnapshotId | null;
259
- observedTreeEqualsCandidate: boolean;
260
- } | {
261
- failure: "target-moved";
262
- contractId: import("../core/facts/types.js").ContractId;
263
- target: string;
264
- integratedAt: import("../core/facts/types.js").SnapshotId;
265
- observed: import("../core/facts/types.js").SnapshotId | null;
266
- attempts: number;
267
- observedTreeEqualsCandidate: boolean;
268
- } | {
269
- failure: "target-placement-failed";
270
- diagnostic: string;
271
- } | undefined;
272
- cleanup?: {
273
- phase: "destroy";
274
- command: number;
275
- detail: {
276
- kind: "exit";
277
- code: number;
278
- stdout: string;
279
- stderr: string;
280
- truncated: boolean;
281
- } | {
282
- kind: "timeout";
283
- } | {
284
- kind: "spawn-error";
285
- diagnostic: string;
286
- } | {
287
- kind: "unknown-exit";
288
- };
289
- } | undefined;
290
- leak?: {
291
- path: string;
292
- diagnostic: string;
293
- } | undefined;
294
- continuation?: {
295
- claimed: import("../core/facts/types.js").ContractId[];
296
- stopped: {
297
- contractId: import("../core/facts/types.js").ContractId;
298
- stop: {
299
- refusal: WithoutUndefined<{
300
- kind: "integration-failed";
301
- contractId: import("../core/facts/types.js").ContractId;
302
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
303
- targetHead: import("../core/facts/types.js").SnapshotId;
304
- conflictPaths?: string[] | undefined;
305
- }> | {
306
- kind: "checkout-not-followable";
307
- contractId: import("../core/facts/types.js").ContractId;
308
- target: string;
309
- path: string;
310
- reason: "conflict" | "staged" | "untracked";
311
- paths: string[];
312
- } | {
313
- kind: "gates-unsatisfied";
314
- contractId: import("../core/facts/types.js").ContractId;
315
- unmet: {
316
- gate: import("../core/facts/types.js").Gate;
317
- current: WithoutUndefined<{
318
- kind: "attested";
319
- verdict: "satisfied" | "unsatisfied";
320
- at: string;
321
- summary?: string | undefined;
322
- }> | {
323
- kind: "stale";
324
- priorVerdict: "satisfied" | "unsatisfied";
325
- } | {
326
- kind: "missing";
327
- };
328
- }[];
329
- } | {
330
- kind: "prerequisites-unsatisfied";
331
- contractId: import("../core/facts/types.js").ContractId;
332
- unmet: {
333
- contractId: import("../core/facts/types.js").ContractId;
334
- state: "missing" | "active" | "abandoned";
335
- }[];
336
- } | {
337
- kind: "terminal" | "contract-missing" | "delivery-missing";
338
- contractId: import("../core/facts/types.js").ContractId;
339
- } | {
340
- kind: "integration-unsupported";
341
- contractId: import("../core/facts/types.js").ContractId;
342
- requiredGit: "2.38";
343
- } | {
344
- kind: "target-missing";
345
- contractId: import("../core/facts/types.js").ContractId;
346
- };
347
- } | {
348
- retry: {
349
- kind: "exhausted";
350
- } | {
351
- kind: "collision";
352
- } | {
353
- kind: "publication-failed";
354
- diagnostic: string;
355
- };
356
- } | {
357
- failure: "target-moved";
358
- contractId: import("../core/facts/types.js").ContractId;
359
- target: string;
360
- expected: import("../core/facts/types.js").SnapshotId;
361
- observed: import("../core/facts/types.js").SnapshotId | null;
362
- observedTreeEqualsCandidate: boolean;
363
- } | {
364
- failure: "target-moved";
365
- contractId: import("../core/facts/types.js").ContractId;
366
- target: string;
367
- integratedAt: import("../core/facts/types.js").SnapshotId;
368
- observed: import("../core/facts/types.js").SnapshotId | null;
369
- attempts: number;
370
- observedTreeEqualsCandidate: boolean;
371
- } | {
372
- failure: "target-placement-failed";
373
- diagnostic: string;
374
- } | {
375
- kind: "already-terminal";
376
- };
377
- }[];
378
- } | undefined;
379
- }>, unknown, z.core.$ZodTypeInternals<WithoutUndefined<{
380
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
381
- integration: {
382
- predecessor: import("../core/facts/types.js").SnapshotId;
383
- snapshot: import("../core/facts/types.js").SnapshotId;
384
- changeId: import("../core/facts/types.js").ChangeId;
385
- };
386
- method: "squash";
387
- policy: {
388
- requireBranchesToBeUpToDate: boolean;
389
- };
390
- completion?: WithoutUndefined<{
391
- integration: import("../core/facts/types.js").SnapshotId;
392
- verification?: {
393
- mode: "reused" | "ran";
394
- verdict: "satisfied" | "unsatisfied";
395
- } | undefined;
396
- }> | undefined;
397
- verification?: {
398
- refusal: WithoutUndefined<{
399
- kind: "verification-declaration-invalid";
400
- contractId?: import("../core/facts/types.js").ContractId | undefined;
401
- }> | {
402
- kind: "terminal" | "contract-missing";
403
- contractId: import("../core/facts/types.js").ContractId;
404
- };
405
- } | {
406
- retry: {
407
- kind: "exhausted";
408
- } | {
409
- kind: "collision";
410
- } | {
411
- kind: "publication-failed";
412
- diagnostic: string;
413
- };
414
- } | {
415
- failure: "cancelled" | "unknown-exit";
416
- } | {
417
- failure: "spawn-error" | "candidate-unavailable";
418
- diagnostic: string;
419
- } | {
420
- failure: "environment-failure";
421
- diagnostic: string;
422
- } | {
423
- failure: "environment-failure";
424
- command: number;
425
- detail: {
426
- kind: "exit";
427
- code: number;
428
- stdout: string;
429
- stderr: string;
430
- truncated: boolean;
431
- } | {
432
- kind: "timeout";
433
- } | {
434
- kind: "spawn-error";
435
- diagnostic: string;
436
- } | {
437
- kind: "unknown-exit";
438
- };
439
- } | undefined;
440
- verificationReuse?: WithoutUndefined<{
441
- entry: import("../core/facts/types.js").EntryUlid;
442
- verdict: "satisfied" | "unsatisfied";
443
- summary?: string | undefined;
444
- }> | undefined;
445
- verificationSummary?: string | undefined;
446
- placement?: {
447
- refusal: WithoutUndefined<{
448
- kind: "integration-failed";
449
- contractId: import("../core/facts/types.js").ContractId;
450
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
451
- targetHead: import("../core/facts/types.js").SnapshotId;
452
- conflictPaths?: string[] | undefined;
453
- }> | {
454
- kind: "checkout-not-followable";
455
- contractId: import("../core/facts/types.js").ContractId;
456
- target: string;
457
- path: string;
458
- reason: "conflict" | "staged" | "untracked";
459
- paths: string[];
460
- } | {
461
- kind: "gates-unsatisfied";
462
- contractId: import("../core/facts/types.js").ContractId;
463
- unmet: {
464
- gate: import("../core/facts/types.js").Gate;
465
- current: WithoutUndefined<{
466
- kind: "attested";
467
- verdict: "satisfied" | "unsatisfied";
468
- at: string;
469
- summary?: string | undefined;
470
- }> | {
471
- kind: "stale";
472
- priorVerdict: "satisfied" | "unsatisfied";
473
- } | {
474
- kind: "missing";
475
- };
476
- }[];
477
- } | {
478
- kind: "prerequisites-unsatisfied";
479
- contractId: import("../core/facts/types.js").ContractId;
480
- unmet: {
481
- contractId: import("../core/facts/types.js").ContractId;
482
- state: "missing" | "active" | "abandoned";
483
- }[];
484
- } | {
485
- kind: "terminal" | "contract-missing" | "delivery-missing";
486
- contractId: import("../core/facts/types.js").ContractId;
487
- } | {
488
- kind: "integration-unsupported";
489
- contractId: import("../core/facts/types.js").ContractId;
490
- requiredGit: "2.38";
491
- } | {
492
- kind: "target-missing";
493
- contractId: import("../core/facts/types.js").ContractId;
494
- };
495
- } | {
496
- retry: {
497
- kind: "exhausted";
498
- } | {
499
- kind: "collision";
500
- } | {
501
- kind: "publication-failed";
502
- diagnostic: string;
503
- };
504
- } | {
505
- failure: "target-moved";
506
- contractId: import("../core/facts/types.js").ContractId;
507
- target: string;
508
- expected: import("../core/facts/types.js").SnapshotId;
509
- observed: import("../core/facts/types.js").SnapshotId | null;
510
- observedTreeEqualsCandidate: boolean;
511
- } | {
512
- failure: "target-moved";
513
- contractId: import("../core/facts/types.js").ContractId;
514
- target: string;
515
- integratedAt: import("../core/facts/types.js").SnapshotId;
516
- observed: import("../core/facts/types.js").SnapshotId | null;
517
- attempts: number;
518
- observedTreeEqualsCandidate: boolean;
519
- } | {
520
- failure: "target-placement-failed";
521
- diagnostic: string;
522
- } | undefined;
523
- cleanup?: {
524
- phase: "destroy";
525
- command: number;
526
- detail: {
527
- kind: "exit";
528
- code: number;
529
- stdout: string;
530
- stderr: string;
531
- truncated: boolean;
532
- } | {
533
- kind: "timeout";
534
- } | {
535
- kind: "spawn-error";
536
- diagnostic: string;
537
- } | {
538
- kind: "unknown-exit";
539
- };
540
- } | undefined;
541
- leak?: {
542
- path: string;
543
- diagnostic: string;
544
- } | undefined;
545
- continuation?: {
546
- claimed: import("../core/facts/types.js").ContractId[];
547
- stopped: {
548
- contractId: import("../core/facts/types.js").ContractId;
549
- stop: {
550
- refusal: WithoutUndefined<{
551
- kind: "integration-failed";
552
- contractId: import("../core/facts/types.js").ContractId;
553
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
554
- targetHead: import("../core/facts/types.js").SnapshotId;
555
- conflictPaths?: string[] | undefined;
556
- }> | {
557
- kind: "checkout-not-followable";
558
- contractId: import("../core/facts/types.js").ContractId;
559
- target: string;
560
- path: string;
561
- reason: "conflict" | "staged" | "untracked";
562
- paths: string[];
563
- } | {
564
- kind: "gates-unsatisfied";
565
- contractId: import("../core/facts/types.js").ContractId;
566
- unmet: {
567
- gate: import("../core/facts/types.js").Gate;
568
- current: WithoutUndefined<{
569
- kind: "attested";
570
- verdict: "satisfied" | "unsatisfied";
571
- at: string;
572
- summary?: string | undefined;
573
- }> | {
574
- kind: "stale";
575
- priorVerdict: "satisfied" | "unsatisfied";
576
- } | {
577
- kind: "missing";
578
- };
579
- }[];
580
- } | {
581
- kind: "prerequisites-unsatisfied";
582
- contractId: import("../core/facts/types.js").ContractId;
583
- unmet: {
584
- contractId: import("../core/facts/types.js").ContractId;
585
- state: "missing" | "active" | "abandoned";
586
- }[];
587
- } | {
588
- kind: "terminal" | "contract-missing" | "delivery-missing";
589
- contractId: import("../core/facts/types.js").ContractId;
590
- } | {
591
- kind: "integration-unsupported";
592
- contractId: import("../core/facts/types.js").ContractId;
593
- requiredGit: "2.38";
594
- } | {
595
- kind: "target-missing";
596
- contractId: import("../core/facts/types.js").ContractId;
597
- };
598
- } | {
599
- retry: {
600
- kind: "exhausted";
601
- } | {
602
- kind: "collision";
603
- } | {
604
- kind: "publication-failed";
605
- diagnostic: string;
606
- };
607
- } | {
608
- failure: "target-moved";
609
- contractId: import("../core/facts/types.js").ContractId;
610
- target: string;
611
- expected: import("../core/facts/types.js").SnapshotId;
612
- observed: import("../core/facts/types.js").SnapshotId | null;
613
- observedTreeEqualsCandidate: boolean;
614
- } | {
615
- failure: "target-moved";
616
- contractId: import("../core/facts/types.js").ContractId;
617
- target: string;
618
- integratedAt: import("../core/facts/types.js").SnapshotId;
619
- observed: import("../core/facts/types.js").SnapshotId | null;
620
- attempts: number;
621
- observedTreeEqualsCandidate: boolean;
622
- } | {
623
- failure: "target-placement-failed";
624
- diagnostic: string;
625
- } | {
626
- kind: "already-terminal";
627
- };
628
- }[];
629
- } | undefined;
630
- }>, unknown>>;
631
- lags: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
632
- kind: z.ZodLiteral<"worktree-retained">;
633
- path: z.ZodString;
634
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
635
- kind: z.ZodLiteral<"worktree-follow-retained">;
636
- path: z.ZodString;
637
- tender: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
638
- head: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
639
- reason: z.ZodEnum<{
640
- "head-moved": "head-moved";
641
- "head-attached": "head-attached";
642
- "operation-in-progress": "operation-in-progress";
643
- "unsupported-parent-shape": "unsupported-parent-shape";
644
- }>;
645
- paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
646
- }, z.core.$strict>, z.ZodTransform<{
647
- kind: "worktree-follow-retained";
648
- path: string;
649
- tender: import("../core/facts/types.js").SnapshotId;
650
- head: import("../core/facts/types.js").SnapshotId;
651
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
652
- } | {
653
- paths: string[];
654
- kind: "worktree-follow-retained";
655
- path: string;
656
- tender: import("../core/facts/types.js").SnapshotId;
657
- head: import("../core/facts/types.js").SnapshotId;
658
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
659
- }, {
660
- kind: "worktree-follow-retained";
661
- path: string;
662
- tender: import("../core/facts/types.js").SnapshotId;
663
- head: import("../core/facts/types.js").SnapshotId;
664
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
665
- paths?: string[] | undefined;
666
- }>>, z.ZodPipe<z.ZodObject<{
667
- kind: z.ZodLiteral<"unsealed-bytes">;
668
- path: z.ZodString;
669
- paths: z.ZodArray<z.ZodString>;
670
- head: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
671
- }, z.core.$strict>, z.ZodTransform<{
672
- kind: "unsealed-bytes";
673
- path: string;
674
- paths: string[];
675
- } | {
676
- head: import("../core/facts/types.js").SnapshotId;
677
- kind: "unsealed-bytes";
678
- path: string;
679
- paths: string[];
680
- }, {
681
- kind: "unsealed-bytes";
682
- path: string;
683
- paths: string[];
684
- head?: import("../core/facts/types.js").SnapshotId | undefined;
685
- }>>, z.ZodObject<{
686
- kind: z.ZodLiteral<"target-checkout-retained">;
687
- path: z.ZodString;
688
- target: z.ZodString;
689
- diagnostic: z.ZodString;
690
- }, z.core.$strict>, z.ZodObject<{
691
- kind: z.ZodLiteral<"reconcile-failed">;
692
- stage: z.ZodEnum<{
693
- observation: "observation";
694
- effect: "effect";
695
- }>;
696
- diagnostic: z.ZodString;
697
- }, z.core.$strict>, z.ZodObject<{
698
- kind: z.ZodLiteral<"ref-migration-conflict">;
699
- legacyRef: z.ZodString;
700
- legacyOid: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
701
- currentRef: z.ZodString;
702
- currentOid: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
703
- }, z.core.$strict>, z.ZodObject<{
704
- kind: z.ZodLiteral<"worktree-hook-failed">;
705
- phase: z.ZodEnum<{
706
- destroy: "destroy";
707
- create: "create";
708
- }>;
709
- path: z.ZodString;
710
- command: z.ZodNumber;
711
- name: z.ZodString;
712
- failure: z.ZodUnion<readonly [z.ZodObject<{
713
- kind: z.ZodLiteral<"exit">;
714
- code: z.ZodNumber;
715
- stdout: z.ZodString;
716
- stderr: z.ZodString;
717
- truncated: z.ZodBoolean;
718
- }, z.core.$strict>, z.ZodObject<{
719
- kind: z.ZodLiteral<"timeout">;
720
- }, z.core.$strict>, z.ZodObject<{
721
- kind: z.ZodLiteral<"spawn-error">;
722
- diagnostic: z.ZodString;
723
- }, z.core.$strict>, z.ZodObject<{
724
- kind: z.ZodLiteral<"unknown-exit">;
725
- }, z.core.$strict>]>;
726
- }, z.core.$strict>, z.ZodObject<{
727
- kind: z.ZodLiteral<"contract-file-failed">;
728
- worktree: z.ZodString;
729
- path: z.ZodString;
730
- diagnostic: z.ZodString;
731
- }, z.core.$strict>]>>;
732
- settlementLags: z.ZodArray<z.ZodPipe<z.ZodObject<{
733
- kind: z.ZodLiteral<"settlement-failed">;
734
- surface: z.ZodEnum<{
735
- task: "task";
736
- "namespace-context": "namespace-context";
737
- "task-holder": "task-holder";
738
- }>;
739
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
740
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
741
- path: z.ZodOptional<z.ZodString>;
742
- diagnostic: z.ZodString;
743
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
744
- kind: "settlement-failed";
745
- surface: "task" | "namespace-context" | "task-holder";
746
- contractId: import("../core/facts/types.js").ContractId;
747
- diagnostic: string;
748
- taskId?: `task/${string}` | undefined;
749
- path?: string | undefined;
750
- }>, {
751
- kind: "settlement-failed";
752
- surface: "task" | "namespace-context" | "task-holder";
753
- contractId: import("../core/facts/types.js").ContractId;
754
- diagnostic: string;
755
- taskId?: `task/${string}` | undefined;
756
- path?: string | undefined;
757
- }>>>;
758
- recoverySnapshot: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
759
- cleanup: z.ZodOptional<z.ZodObject<{
760
- phase: z.ZodLiteral<"destroy">;
761
- command: z.ZodNumber;
762
- detail: z.ZodUnion<readonly [z.ZodObject<{
763
- kind: z.ZodLiteral<"exit">;
764
- code: z.ZodNumber;
765
- stdout: z.ZodString;
766
- stderr: z.ZodString;
767
- truncated: z.ZodBoolean;
768
- }, z.core.$strict>, z.ZodObject<{
769
- kind: z.ZodLiteral<"timeout">;
770
- }, z.core.$strict>, z.ZodObject<{
771
- kind: z.ZodLiteral<"spawn-error">;
772
- diagnostic: z.ZodString;
773
- }, z.core.$strict>, z.ZodObject<{
774
- kind: z.ZodLiteral<"unknown-exit">;
775
- }, z.core.$strict>]>;
776
- }, z.core.$strict>>;
777
- leak: z.ZodOptional<z.ZodObject<{
778
- path: z.ZodString;
779
- diagnostic: z.ZodString;
780
- }, z.core.$strict>>;
781
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
782
- facts: (Readonly<{
783
- v: 1;
784
- kind: "bound";
785
- contract: import("../core/facts/types.js").ContractId;
786
- entry: import("../core/facts/types.js").EntryUlid;
787
- at: string;
788
- actor?: import("../core/facts/types.js").ActorId;
789
- data: Readonly<Record<string, never>>;
790
- }> | Readonly<{
791
- v: 1;
792
- kind: "bind";
793
- contract: import("../core/facts/types.js").ContractId;
794
- entry: import("../core/facts/types.js").EntryUlid;
795
- at: string;
796
- actor?: import("../core/facts/types.js").ActorId;
797
- data: Readonly<{
798
- coordinates: import("../core/facts/types.js").ContractCoordinates;
799
- terms: import("../core/facts/types.js").ContractTerms;
800
- }>;
801
- }> | Readonly<{
802
- v: 1;
803
- kind: "amend";
804
- contract: import("../core/facts/types.js").ContractId;
805
- entry: import("../core/facts/types.js").EntryUlid;
806
- at: string;
807
- actor?: import("../core/facts/types.js").ActorId;
808
- data: Readonly<{
809
- document: Readonly<{
810
- bytes: string;
811
- key: import("../core/facts/types.js").DocumentKey;
812
- }>;
813
- segments: readonly import("../core/facts/types.js").DocumentSegmentKey[];
814
- gates: readonly import("../core/facts/types.js").Gate[];
815
- after: readonly import("../core/facts/types.js").ContractId[];
816
- }>;
817
- }> | Readonly<{
818
- v: 1;
819
- kind: "deliver";
820
- contract: import("../core/facts/types.js").ContractId;
821
- entry: import("../core/facts/types.js").EntryUlid;
822
- at: string;
823
- actor?: import("../core/facts/types.js").ActorId;
824
- data: Readonly<{
825
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
826
- integration: Readonly<{
827
- predecessor: import("../core/facts/types.js").SnapshotId;
828
- snapshot: import("../core/facts/types.js").SnapshotId;
829
- changeId: import("../core/facts/types.js").ChangeId;
830
- }>;
831
- method: "squash";
832
- policy: Readonly<{
833
- requireBranchesToBeUpToDate: boolean;
834
- }>;
835
- }>;
836
- }> | Readonly<{
837
- v: 1;
838
- kind: "reintegrated";
839
- contract: import("../core/facts/types.js").ContractId;
840
- entry: import("../core/facts/types.js").EntryUlid;
841
- at: string;
842
- actor?: import("../core/facts/types.js").ActorId;
843
- data: Readonly<{
844
- predecessor: import("../core/facts/types.js").SnapshotId;
845
- snapshot: import("../core/facts/types.js").SnapshotId;
846
- }>;
847
- }> | Readonly<{
848
- v: 1;
849
- kind: "attestation";
850
- contract: import("../core/facts/types.js").ContractId;
851
- entry: import("../core/facts/types.js").EntryUlid;
852
- at: string;
853
- actor?: import("../core/facts/types.js").ActorId;
854
- data: Readonly<{
855
- gate: import("../core/facts/types.js").Gate;
856
- subject: import("../core/facts/types.js").DependencyKeySet;
857
- verdict: "satisfied" | "unsatisfied";
858
- summary?: string;
859
- }>;
860
- }> | Readonly<{
861
- v: 1;
862
- kind: "claimed";
863
- contract: import("../core/facts/types.js").ContractId;
864
- entry: import("../core/facts/types.js").EntryUlid;
865
- at: string;
866
- actor?: import("../core/facts/types.js").ActorId;
867
- data: Readonly<{
868
- delivery: import("../core/facts/types.js").EntryUlid;
869
- }>;
870
- }> | Readonly<{
871
- v: 1;
872
- kind: "arc";
873
- contract: import("../core/facts/types.js").ContractId;
874
- entry: import("../core/facts/types.js").EntryUlid;
875
- at: string;
876
- actor?: import("../core/facts/types.js").ActorId;
877
- data: Readonly<{
878
- seq: number;
879
- title: string;
880
- objective: string;
881
- brief: string;
882
- }>;
883
- }> | Readonly<{
884
- v: 1;
885
- kind: "abandoned";
886
- contract: import("../core/facts/types.js").ContractId;
887
- entry: import("../core/facts/types.js").EntryUlid;
888
- at: string;
889
- actor?: import("../core/facts/types.js").ActorId;
890
- data: Readonly<{
891
- note?: string;
892
- }>;
893
- }>)[];
894
- head: import("../core/facts/types.js").ContractHead;
895
- value: WithoutUndefined<{
896
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
897
- integration: {
898
- predecessor: import("../core/facts/types.js").SnapshotId;
899
- snapshot: import("../core/facts/types.js").SnapshotId;
900
- changeId: import("../core/facts/types.js").ChangeId;
901
- };
902
- method: "squash";
903
- policy: {
904
- requireBranchesToBeUpToDate: boolean;
905
- };
906
- completion?: WithoutUndefined<{
907
- integration: import("../core/facts/types.js").SnapshotId;
908
- verification?: {
909
- mode: "reused" | "ran";
910
- verdict: "satisfied" | "unsatisfied";
911
- } | undefined;
912
- }> | undefined;
913
- verification?: {
914
- refusal: WithoutUndefined<{
915
- kind: "verification-declaration-invalid";
916
- contractId?: import("../core/facts/types.js").ContractId | undefined;
917
- }> | {
918
- kind: "terminal" | "contract-missing";
919
- contractId: import("../core/facts/types.js").ContractId;
920
- };
921
- } | {
922
- retry: {
923
- kind: "exhausted";
924
- } | {
925
- kind: "collision";
926
- } | {
927
- kind: "publication-failed";
928
- diagnostic: string;
929
- };
930
- } | {
931
- failure: "cancelled" | "unknown-exit";
932
- } | {
933
- failure: "spawn-error" | "candidate-unavailable";
934
- diagnostic: string;
935
- } | {
936
- failure: "environment-failure";
937
- diagnostic: string;
938
- } | {
939
- failure: "environment-failure";
940
- command: number;
941
- detail: {
942
- kind: "exit";
943
- code: number;
944
- stdout: string;
945
- stderr: string;
946
- truncated: boolean;
947
- } | {
948
- kind: "timeout";
949
- } | {
950
- kind: "spawn-error";
951
- diagnostic: string;
952
- } | {
953
- kind: "unknown-exit";
954
- };
955
- } | undefined;
956
- verificationReuse?: WithoutUndefined<{
957
- entry: import("../core/facts/types.js").EntryUlid;
958
- verdict: "satisfied" | "unsatisfied";
959
- summary?: string | undefined;
960
- }> | undefined;
961
- verificationSummary?: string | undefined;
962
- placement?: {
963
- refusal: WithoutUndefined<{
964
- kind: "integration-failed";
965
- contractId: import("../core/facts/types.js").ContractId;
966
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
967
- targetHead: import("../core/facts/types.js").SnapshotId;
968
- conflictPaths?: string[] | undefined;
969
- }> | {
970
- kind: "checkout-not-followable";
971
- contractId: import("../core/facts/types.js").ContractId;
972
- target: string;
973
- path: string;
974
- reason: "conflict" | "staged" | "untracked";
975
- paths: string[];
976
- } | {
977
- kind: "gates-unsatisfied";
978
- contractId: import("../core/facts/types.js").ContractId;
979
- unmet: {
980
- gate: import("../core/facts/types.js").Gate;
981
- current: WithoutUndefined<{
982
- kind: "attested";
983
- verdict: "satisfied" | "unsatisfied";
984
- at: string;
985
- summary?: string | undefined;
986
- }> | {
987
- kind: "stale";
988
- priorVerdict: "satisfied" | "unsatisfied";
989
- } | {
990
- kind: "missing";
991
- };
992
- }[];
993
- } | {
994
- kind: "prerequisites-unsatisfied";
995
- contractId: import("../core/facts/types.js").ContractId;
996
- unmet: {
997
- contractId: import("../core/facts/types.js").ContractId;
998
- state: "missing" | "active" | "abandoned";
999
- }[];
1000
- } | {
1001
- kind: "terminal" | "contract-missing" | "delivery-missing";
1002
- contractId: import("../core/facts/types.js").ContractId;
1003
- } | {
1004
- kind: "integration-unsupported";
1005
- contractId: import("../core/facts/types.js").ContractId;
1006
- requiredGit: "2.38";
1007
- } | {
1008
- kind: "target-missing";
1009
- contractId: import("../core/facts/types.js").ContractId;
1010
- };
1011
- } | {
1012
- retry: {
1013
- kind: "exhausted";
1014
- } | {
1015
- kind: "collision";
1016
- } | {
1017
- kind: "publication-failed";
1018
- diagnostic: string;
1019
- };
1020
- } | {
1021
- failure: "target-moved";
1022
- contractId: import("../core/facts/types.js").ContractId;
1023
- target: string;
1024
- expected: import("../core/facts/types.js").SnapshotId;
1025
- observed: import("../core/facts/types.js").SnapshotId | null;
1026
- observedTreeEqualsCandidate: boolean;
1027
- } | {
1028
- failure: "target-moved";
1029
- contractId: import("../core/facts/types.js").ContractId;
1030
- target: string;
1031
- integratedAt: import("../core/facts/types.js").SnapshotId;
1032
- observed: import("../core/facts/types.js").SnapshotId | null;
1033
- attempts: number;
1034
- observedTreeEqualsCandidate: boolean;
1035
- } | {
1036
- failure: "target-placement-failed";
1037
- diagnostic: string;
1038
- } | undefined;
1039
- cleanup?: {
1040
- phase: "destroy";
1041
- command: number;
1042
- detail: {
1043
- kind: "exit";
1044
- code: number;
1045
- stdout: string;
1046
- stderr: string;
1047
- truncated: boolean;
1048
- } | {
1049
- kind: "timeout";
1050
- } | {
1051
- kind: "spawn-error";
1052
- diagnostic: string;
1053
- } | {
1054
- kind: "unknown-exit";
1055
- };
1056
- } | undefined;
1057
- leak?: {
1058
- path: string;
1059
- diagnostic: string;
1060
- } | undefined;
1061
- continuation?: {
1062
- claimed: import("../core/facts/types.js").ContractId[];
1063
- stopped: {
1064
- contractId: import("../core/facts/types.js").ContractId;
1065
- stop: {
1066
- refusal: WithoutUndefined<{
1067
- kind: "integration-failed";
1068
- contractId: import("../core/facts/types.js").ContractId;
1069
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
1070
- targetHead: import("../core/facts/types.js").SnapshotId;
1071
- conflictPaths?: string[] | undefined;
1072
- }> | {
1073
- kind: "checkout-not-followable";
1074
- contractId: import("../core/facts/types.js").ContractId;
1075
- target: string;
1076
- path: string;
1077
- reason: "conflict" | "staged" | "untracked";
1078
- paths: string[];
1079
- } | {
1080
- kind: "gates-unsatisfied";
1081
- contractId: import("../core/facts/types.js").ContractId;
1082
- unmet: {
1083
- gate: import("../core/facts/types.js").Gate;
1084
- current: WithoutUndefined<{
1085
- kind: "attested";
1086
- verdict: "satisfied" | "unsatisfied";
1087
- at: string;
1088
- summary?: string | undefined;
1089
- }> | {
1090
- kind: "stale";
1091
- priorVerdict: "satisfied" | "unsatisfied";
1092
- } | {
1093
- kind: "missing";
1094
- };
1095
- }[];
1096
- } | {
1097
- kind: "prerequisites-unsatisfied";
1098
- contractId: import("../core/facts/types.js").ContractId;
1099
- unmet: {
1100
- contractId: import("../core/facts/types.js").ContractId;
1101
- state: "missing" | "active" | "abandoned";
1102
- }[];
1103
- } | {
1104
- kind: "terminal" | "contract-missing" | "delivery-missing";
1105
- contractId: import("../core/facts/types.js").ContractId;
1106
- } | {
1107
- kind: "integration-unsupported";
1108
- contractId: import("../core/facts/types.js").ContractId;
1109
- requiredGit: "2.38";
1110
- } | {
1111
- kind: "target-missing";
1112
- contractId: import("../core/facts/types.js").ContractId;
1113
- };
1114
- } | {
1115
- retry: {
1116
- kind: "exhausted";
1117
- } | {
1118
- kind: "collision";
1119
- } | {
1120
- kind: "publication-failed";
1121
- diagnostic: string;
1122
- };
1123
- } | {
1124
- failure: "target-moved";
1125
- contractId: import("../core/facts/types.js").ContractId;
1126
- target: string;
1127
- expected: import("../core/facts/types.js").SnapshotId;
1128
- observed: import("../core/facts/types.js").SnapshotId | null;
1129
- observedTreeEqualsCandidate: boolean;
1130
- } | {
1131
- failure: "target-moved";
1132
- contractId: import("../core/facts/types.js").ContractId;
1133
- target: string;
1134
- integratedAt: import("../core/facts/types.js").SnapshotId;
1135
- observed: import("../core/facts/types.js").SnapshotId | null;
1136
- attempts: number;
1137
- observedTreeEqualsCandidate: boolean;
1138
- } | {
1139
- failure: "target-placement-failed";
1140
- diagnostic: string;
1141
- } | {
1142
- kind: "already-terminal";
1143
- };
1144
- }[];
1145
- } | undefined;
1146
- }>;
1147
- lags: ({
1148
- kind: "worktree-follow-retained";
1149
- path: string;
1150
- tender: import("../core/facts/types.js").SnapshotId;
1151
- head: import("../core/facts/types.js").SnapshotId;
1152
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
1153
- } | {
1154
- paths: string[];
1155
- kind: "worktree-follow-retained";
1156
- path: string;
1157
- tender: import("../core/facts/types.js").SnapshotId;
1158
- head: import("../core/facts/types.js").SnapshotId;
1159
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
1160
- } | {
1161
- kind: "unsealed-bytes";
1162
- path: string;
1163
- paths: string[];
1164
- } | {
1165
- head: import("../core/facts/types.js").SnapshotId;
1166
- kind: "unsealed-bytes";
1167
- path: string;
1168
- paths: string[];
1169
- } | {
1170
- kind: "worktree-retained";
1171
- path: string;
1172
- } | {
1173
- kind: "target-checkout-retained";
1174
- path: string;
1175
- target: string;
1176
- diagnostic: string;
1177
- } | {
1178
- kind: "reconcile-failed";
1179
- stage: "observation" | "effect";
1180
- diagnostic: string;
1181
- } | {
1182
- kind: "ref-migration-conflict";
1183
- legacyRef: string;
1184
- legacyOid: import("../core/facts/types.js").SnapshotId;
1185
- currentRef: string;
1186
- currentOid: import("../core/facts/types.js").SnapshotId;
1187
- } | {
1188
- kind: "worktree-hook-failed";
1189
- phase: "destroy" | "create";
1190
- path: string;
1191
- command: number;
1192
- name: string;
1193
- failure: {
1194
- kind: "exit";
1195
- code: number;
1196
- stdout: string;
1197
- stderr: string;
1198
- truncated: boolean;
1199
- } | {
1200
- kind: "timeout";
1201
- } | {
1202
- kind: "spawn-error";
1203
- diagnostic: string;
1204
- } | {
1205
- kind: "unknown-exit";
1206
- };
1207
- } | {
1208
- kind: "contract-file-failed";
1209
- worktree: string;
1210
- path: string;
1211
- diagnostic: string;
1212
- })[];
1213
- settlementLags: WithoutUndefined<{
1214
- kind: "settlement-failed";
1215
- surface: "task" | "namespace-context" | "task-holder";
1216
- contractId: import("../core/facts/types.js").ContractId;
1217
- diagnostic: string;
1218
- taskId?: `task/${string}` | undefined;
1219
- path?: string | undefined;
1220
- }>[];
1221
- recoverySnapshot?: import("../core/facts/types.js").SnapshotId | undefined;
1222
- cleanup?: {
1223
- phase: "destroy";
1224
- command: number;
1225
- detail: {
1226
- kind: "exit";
1227
- code: number;
1228
- stdout: string;
1229
- stderr: string;
1230
- truncated: boolean;
1231
- } | {
1232
- kind: "timeout";
1233
- } | {
1234
- kind: "spawn-error";
1235
- diagnostic: string;
1236
- } | {
1237
- kind: "unknown-exit";
1238
- };
1239
- } | undefined;
1240
- leak?: {
1241
- path: string;
1242
- diagnostic: string;
1243
- } | undefined;
1244
- }>, {
1245
- facts: (Readonly<{
1246
- v: 1;
1247
- kind: "bound";
1248
- contract: import("../core/facts/types.js").ContractId;
1249
- entry: import("../core/facts/types.js").EntryUlid;
1250
- at: string;
1251
- actor?: import("../core/facts/types.js").ActorId;
1252
- data: Readonly<Record<string, never>>;
1253
- }> | Readonly<{
1254
- v: 1;
1255
- kind: "bind";
1256
- contract: import("../core/facts/types.js").ContractId;
1257
- entry: import("../core/facts/types.js").EntryUlid;
1258
- at: string;
1259
- actor?: import("../core/facts/types.js").ActorId;
1260
- data: Readonly<{
1261
- coordinates: import("../core/facts/types.js").ContractCoordinates;
1262
- terms: import("../core/facts/types.js").ContractTerms;
1263
- }>;
1264
- }> | Readonly<{
1265
- v: 1;
1266
- kind: "amend";
1267
- contract: import("../core/facts/types.js").ContractId;
1268
- entry: import("../core/facts/types.js").EntryUlid;
1269
- at: string;
1270
- actor?: import("../core/facts/types.js").ActorId;
1271
- data: Readonly<{
1272
- document: Readonly<{
1273
- bytes: string;
1274
- key: import("../core/facts/types.js").DocumentKey;
1275
- }>;
1276
- segments: readonly import("../core/facts/types.js").DocumentSegmentKey[];
1277
- gates: readonly import("../core/facts/types.js").Gate[];
1278
- after: readonly import("../core/facts/types.js").ContractId[];
1279
- }>;
1280
- }> | Readonly<{
1281
- v: 1;
1282
- kind: "deliver";
1283
- contract: import("../core/facts/types.js").ContractId;
1284
- entry: import("../core/facts/types.js").EntryUlid;
1285
- at: string;
1286
- actor?: import("../core/facts/types.js").ActorId;
1287
- data: Readonly<{
1288
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
1289
- integration: Readonly<{
1290
- predecessor: import("../core/facts/types.js").SnapshotId;
1291
- snapshot: import("../core/facts/types.js").SnapshotId;
1292
- changeId: import("../core/facts/types.js").ChangeId;
1293
- }>;
1294
- method: "squash";
1295
- policy: Readonly<{
1296
- requireBranchesToBeUpToDate: boolean;
1297
- }>;
1298
- }>;
1299
- }> | Readonly<{
1300
- v: 1;
1301
- kind: "reintegrated";
1302
- contract: import("../core/facts/types.js").ContractId;
1303
- entry: import("../core/facts/types.js").EntryUlid;
1304
- at: string;
1305
- actor?: import("../core/facts/types.js").ActorId;
1306
- data: Readonly<{
1307
- predecessor: import("../core/facts/types.js").SnapshotId;
1308
- snapshot: import("../core/facts/types.js").SnapshotId;
1309
- }>;
1310
- }> | Readonly<{
1311
- v: 1;
1312
- kind: "attestation";
1313
- contract: import("../core/facts/types.js").ContractId;
1314
- entry: import("../core/facts/types.js").EntryUlid;
1315
- at: string;
1316
- actor?: import("../core/facts/types.js").ActorId;
1317
- data: Readonly<{
1318
- gate: import("../core/facts/types.js").Gate;
1319
- subject: import("../core/facts/types.js").DependencyKeySet;
1320
- verdict: "satisfied" | "unsatisfied";
1321
- summary?: string;
1322
- }>;
1323
- }> | Readonly<{
1324
- v: 1;
1325
- kind: "claimed";
1326
- contract: import("../core/facts/types.js").ContractId;
1327
- entry: import("../core/facts/types.js").EntryUlid;
1328
- at: string;
1329
- actor?: import("../core/facts/types.js").ActorId;
1330
- data: Readonly<{
1331
- delivery: import("../core/facts/types.js").EntryUlid;
1332
- }>;
1333
- }> | Readonly<{
1334
- v: 1;
1335
- kind: "arc";
1336
- contract: import("../core/facts/types.js").ContractId;
1337
- entry: import("../core/facts/types.js").EntryUlid;
1338
- at: string;
1339
- actor?: import("../core/facts/types.js").ActorId;
1340
- data: Readonly<{
1341
- seq: number;
1342
- title: string;
1343
- objective: string;
1344
- brief: string;
1345
- }>;
1346
- }> | Readonly<{
1347
- v: 1;
1348
- kind: "abandoned";
1349
- contract: import("../core/facts/types.js").ContractId;
1350
- entry: import("../core/facts/types.js").EntryUlid;
1351
- at: string;
1352
- actor?: import("../core/facts/types.js").ActorId;
1353
- data: Readonly<{
1354
- note?: string;
1355
- }>;
1356
- }>)[];
1357
- head: import("../core/facts/types.js").ContractHead;
1358
- value: WithoutUndefined<{
1359
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
1360
- integration: {
1361
- predecessor: import("../core/facts/types.js").SnapshotId;
1362
- snapshot: import("../core/facts/types.js").SnapshotId;
1363
- changeId: import("../core/facts/types.js").ChangeId;
1364
- };
1365
- method: "squash";
1366
- policy: {
1367
- requireBranchesToBeUpToDate: boolean;
1368
- };
1369
- completion?: WithoutUndefined<{
1370
- integration: import("../core/facts/types.js").SnapshotId;
1371
- verification?: {
1372
- mode: "reused" | "ran";
1373
- verdict: "satisfied" | "unsatisfied";
1374
- } | undefined;
1375
- }> | undefined;
1376
- verification?: {
1377
- refusal: WithoutUndefined<{
1378
- kind: "verification-declaration-invalid";
1379
- contractId?: import("../core/facts/types.js").ContractId | undefined;
1380
- }> | {
1381
- kind: "terminal" | "contract-missing";
1382
- contractId: import("../core/facts/types.js").ContractId;
1383
- };
1384
- } | {
1385
- retry: {
1386
- kind: "exhausted";
1387
- } | {
1388
- kind: "collision";
1389
- } | {
1390
- kind: "publication-failed";
1391
- diagnostic: string;
1392
- };
1393
- } | {
1394
- failure: "cancelled" | "unknown-exit";
1395
- } | {
1396
- failure: "spawn-error" | "candidate-unavailable";
1397
- diagnostic: string;
1398
- } | {
1399
- failure: "environment-failure";
1400
- diagnostic: string;
1401
- } | {
1402
- failure: "environment-failure";
1403
- command: number;
1404
- detail: {
1405
- kind: "exit";
1406
- code: number;
1407
- stdout: string;
1408
- stderr: string;
1409
- truncated: boolean;
1410
- } | {
1411
- kind: "timeout";
1412
- } | {
1413
- kind: "spawn-error";
1414
- diagnostic: string;
1415
- } | {
1416
- kind: "unknown-exit";
1417
- };
1418
- } | undefined;
1419
- verificationReuse?: WithoutUndefined<{
1420
- entry: import("../core/facts/types.js").EntryUlid;
1421
- verdict: "satisfied" | "unsatisfied";
1422
- summary?: string | undefined;
1423
- }> | undefined;
1424
- verificationSummary?: string | undefined;
1425
- placement?: {
1426
- refusal: WithoutUndefined<{
1427
- kind: "integration-failed";
1428
- contractId: import("../core/facts/types.js").ContractId;
1429
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
1430
- targetHead: import("../core/facts/types.js").SnapshotId;
1431
- conflictPaths?: string[] | undefined;
1432
- }> | {
1433
- kind: "checkout-not-followable";
1434
- contractId: import("../core/facts/types.js").ContractId;
1435
- target: string;
1436
- path: string;
1437
- reason: "conflict" | "staged" | "untracked";
1438
- paths: string[];
1439
- } | {
1440
- kind: "gates-unsatisfied";
1441
- contractId: import("../core/facts/types.js").ContractId;
1442
- unmet: {
1443
- gate: import("../core/facts/types.js").Gate;
1444
- current: WithoutUndefined<{
1445
- kind: "attested";
1446
- verdict: "satisfied" | "unsatisfied";
1447
- at: string;
1448
- summary?: string | undefined;
1449
- }> | {
1450
- kind: "stale";
1451
- priorVerdict: "satisfied" | "unsatisfied";
1452
- } | {
1453
- kind: "missing";
1454
- };
1455
- }[];
1456
- } | {
1457
- kind: "prerequisites-unsatisfied";
1458
- contractId: import("../core/facts/types.js").ContractId;
1459
- unmet: {
1460
- contractId: import("../core/facts/types.js").ContractId;
1461
- state: "missing" | "active" | "abandoned";
1462
- }[];
1463
- } | {
1464
- kind: "terminal" | "contract-missing" | "delivery-missing";
1465
- contractId: import("../core/facts/types.js").ContractId;
1466
- } | {
1467
- kind: "integration-unsupported";
1468
- contractId: import("../core/facts/types.js").ContractId;
1469
- requiredGit: "2.38";
1470
- } | {
1471
- kind: "target-missing";
1472
- contractId: import("../core/facts/types.js").ContractId;
1473
- };
1474
- } | {
1475
- retry: {
1476
- kind: "exhausted";
1477
- } | {
1478
- kind: "collision";
1479
- } | {
1480
- kind: "publication-failed";
1481
- diagnostic: string;
1482
- };
1483
- } | {
1484
- failure: "target-moved";
1485
- contractId: import("../core/facts/types.js").ContractId;
1486
- target: string;
1487
- expected: import("../core/facts/types.js").SnapshotId;
1488
- observed: import("../core/facts/types.js").SnapshotId | null;
1489
- observedTreeEqualsCandidate: boolean;
1490
- } | {
1491
- failure: "target-moved";
1492
- contractId: import("../core/facts/types.js").ContractId;
1493
- target: string;
1494
- integratedAt: import("../core/facts/types.js").SnapshotId;
1495
- observed: import("../core/facts/types.js").SnapshotId | null;
1496
- attempts: number;
1497
- observedTreeEqualsCandidate: boolean;
1498
- } | {
1499
- failure: "target-placement-failed";
1500
- diagnostic: string;
1501
- } | undefined;
1502
- cleanup?: {
1503
- phase: "destroy";
1504
- command: number;
1505
- detail: {
1506
- kind: "exit";
1507
- code: number;
1508
- stdout: string;
1509
- stderr: string;
1510
- truncated: boolean;
1511
- } | {
1512
- kind: "timeout";
1513
- } | {
1514
- kind: "spawn-error";
1515
- diagnostic: string;
1516
- } | {
1517
- kind: "unknown-exit";
1518
- };
1519
- } | undefined;
1520
- leak?: {
1521
- path: string;
1522
- diagnostic: string;
1523
- } | undefined;
1524
- continuation?: {
1525
- claimed: import("../core/facts/types.js").ContractId[];
1526
- stopped: {
1527
- contractId: import("../core/facts/types.js").ContractId;
1528
- stop: {
1529
- refusal: WithoutUndefined<{
1530
- kind: "integration-failed";
1531
- contractId: import("../core/facts/types.js").ContractId;
1532
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
1533
- targetHead: import("../core/facts/types.js").SnapshotId;
1534
- conflictPaths?: string[] | undefined;
1535
- }> | {
1536
- kind: "checkout-not-followable";
1537
- contractId: import("../core/facts/types.js").ContractId;
1538
- target: string;
1539
- path: string;
1540
- reason: "conflict" | "staged" | "untracked";
1541
- paths: string[];
1542
- } | {
1543
- kind: "gates-unsatisfied";
1544
- contractId: import("../core/facts/types.js").ContractId;
1545
- unmet: {
1546
- gate: import("../core/facts/types.js").Gate;
1547
- current: WithoutUndefined<{
1548
- kind: "attested";
1549
- verdict: "satisfied" | "unsatisfied";
1550
- at: string;
1551
- summary?: string | undefined;
1552
- }> | {
1553
- kind: "stale";
1554
- priorVerdict: "satisfied" | "unsatisfied";
1555
- } | {
1556
- kind: "missing";
1557
- };
1558
- }[];
1559
- } | {
1560
- kind: "prerequisites-unsatisfied";
1561
- contractId: import("../core/facts/types.js").ContractId;
1562
- unmet: {
1563
- contractId: import("../core/facts/types.js").ContractId;
1564
- state: "missing" | "active" | "abandoned";
1565
- }[];
1566
- } | {
1567
- kind: "terminal" | "contract-missing" | "delivery-missing";
1568
- contractId: import("../core/facts/types.js").ContractId;
1569
- } | {
1570
- kind: "integration-unsupported";
1571
- contractId: import("../core/facts/types.js").ContractId;
1572
- requiredGit: "2.38";
1573
- } | {
1574
- kind: "target-missing";
1575
- contractId: import("../core/facts/types.js").ContractId;
1576
- };
1577
- } | {
1578
- retry: {
1579
- kind: "exhausted";
1580
- } | {
1581
- kind: "collision";
1582
- } | {
1583
- kind: "publication-failed";
1584
- diagnostic: string;
1585
- };
1586
- } | {
1587
- failure: "target-moved";
1588
- contractId: import("../core/facts/types.js").ContractId;
1589
- target: string;
1590
- expected: import("../core/facts/types.js").SnapshotId;
1591
- observed: import("../core/facts/types.js").SnapshotId | null;
1592
- observedTreeEqualsCandidate: boolean;
1593
- } | {
1594
- failure: "target-moved";
1595
- contractId: import("../core/facts/types.js").ContractId;
1596
- target: string;
1597
- integratedAt: import("../core/facts/types.js").SnapshotId;
1598
- observed: import("../core/facts/types.js").SnapshotId | null;
1599
- attempts: number;
1600
- observedTreeEqualsCandidate: boolean;
1601
- } | {
1602
- failure: "target-placement-failed";
1603
- diagnostic: string;
1604
- } | {
1605
- kind: "already-terminal";
1606
- };
1607
- }[];
1608
- } | undefined;
1609
- }>;
1610
- lags: ({
1611
- kind: "worktree-follow-retained";
1612
- path: string;
1613
- tender: import("../core/facts/types.js").SnapshotId;
1614
- head: import("../core/facts/types.js").SnapshotId;
1615
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
1616
- } | {
1617
- paths: string[];
1618
- kind: "worktree-follow-retained";
1619
- path: string;
1620
- tender: import("../core/facts/types.js").SnapshotId;
1621
- head: import("../core/facts/types.js").SnapshotId;
1622
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
1623
- } | {
1624
- kind: "unsealed-bytes";
1625
- path: string;
1626
- paths: string[];
1627
- } | {
1628
- head: import("../core/facts/types.js").SnapshotId;
1629
- kind: "unsealed-bytes";
1630
- path: string;
1631
- paths: string[];
1632
- } | {
1633
- kind: "worktree-retained";
1634
- path: string;
1635
- } | {
1636
- kind: "target-checkout-retained";
1637
- path: string;
1638
- target: string;
1639
- diagnostic: string;
1640
- } | {
1641
- kind: "reconcile-failed";
1642
- stage: "observation" | "effect";
1643
- diagnostic: string;
1644
- } | {
1645
- kind: "ref-migration-conflict";
1646
- legacyRef: string;
1647
- legacyOid: import("../core/facts/types.js").SnapshotId;
1648
- currentRef: string;
1649
- currentOid: import("../core/facts/types.js").SnapshotId;
1650
- } | {
1651
- kind: "worktree-hook-failed";
1652
- phase: "destroy" | "create";
1653
- path: string;
1654
- command: number;
1655
- name: string;
1656
- failure: {
1657
- kind: "exit";
1658
- code: number;
1659
- stdout: string;
1660
- stderr: string;
1661
- truncated: boolean;
1662
- } | {
1663
- kind: "timeout";
1664
- } | {
1665
- kind: "spawn-error";
1666
- diagnostic: string;
1667
- } | {
1668
- kind: "unknown-exit";
1669
- };
1670
- } | {
1671
- kind: "contract-file-failed";
1672
- worktree: string;
1673
- path: string;
1674
- diagnostic: string;
1675
- })[];
1676
- settlementLags: WithoutUndefined<{
1677
- kind: "settlement-failed";
1678
- surface: "task" | "namespace-context" | "task-holder";
1679
- contractId: import("../core/facts/types.js").ContractId;
1680
- diagnostic: string;
1681
- taskId?: `task/${string}` | undefined;
1682
- path?: string | undefined;
1683
- }>[];
1684
- recoverySnapshot?: import("../core/facts/types.js").SnapshotId | undefined;
1685
- cleanup?: {
1686
- phase: "destroy";
1687
- command: number;
1688
- detail: {
1689
- kind: "exit";
1690
- code: number;
1691
- stdout: string;
1692
- stderr: string;
1693
- truncated: boolean;
1694
- } | {
1695
- kind: "timeout";
1696
- } | {
1697
- kind: "spawn-error";
1698
- diagnostic: string;
1699
- } | {
1700
- kind: "unknown-exit";
1701
- };
1702
- } | undefined;
1703
- leak?: {
1704
- path: string;
1705
- diagnostic: string;
1706
- } | undefined;
1707
- }>>, z.ZodObject<{
1708
- kind: z.ZodLiteral<"integration-conflict-materialized">;
1709
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
1710
- conflictPaths: z.ZodArray<z.ZodString>;
1711
- workspace: z.ZodObject<{
1712
- kind: z.ZodLiteral<"worktree">;
1713
- path: z.ZodString;
1714
- }, z.core.$strict>;
1715
- }, z.core.$strict>]>;
1716
- export declare const reviewResultSchema: z.ZodPipe<z.ZodObject<{
1717
- facts: z.ZodArray<z.ZodPipe<z.ZodUnknown, z.ZodTransform<Readonly<{
1718
- v: 1;
1719
- kind: "bound";
1720
- contract: import("../core/facts/types.js").ContractId;
1721
- entry: import("../core/facts/types.js").EntryUlid;
1722
- at: string;
1723
- actor?: import("../core/facts/types.js").ActorId;
1724
- data: Readonly<Record<string, never>>;
1725
- }> | Readonly<{
1726
- v: 1;
1727
- kind: "bind";
1728
- contract: import("../core/facts/types.js").ContractId;
1729
- entry: import("../core/facts/types.js").EntryUlid;
1730
- at: string;
1731
- actor?: import("../core/facts/types.js").ActorId;
1732
- data: Readonly<{
1733
- coordinates: import("../core/facts/types.js").ContractCoordinates;
1734
- terms: import("../core/facts/types.js").ContractTerms;
1735
- }>;
1736
- }> | Readonly<{
1737
- v: 1;
1738
- kind: "amend";
1739
- contract: import("../core/facts/types.js").ContractId;
1740
- entry: import("../core/facts/types.js").EntryUlid;
1741
- at: string;
1742
- actor?: import("../core/facts/types.js").ActorId;
1743
- data: Readonly<{
1744
- document: Readonly<{
1745
- bytes: string;
1746
- key: import("../core/facts/types.js").DocumentKey;
1747
- }>;
1748
- segments: readonly import("../core/facts/types.js").DocumentSegmentKey[];
1749
- gates: readonly import("../core/facts/types.js").Gate[];
1750
- after: readonly import("../core/facts/types.js").ContractId[];
1751
- }>;
1752
- }> | Readonly<{
1753
- v: 1;
1754
- kind: "deliver";
1755
- contract: import("../core/facts/types.js").ContractId;
1756
- entry: import("../core/facts/types.js").EntryUlid;
1757
- at: string;
1758
- actor?: import("../core/facts/types.js").ActorId;
1759
- data: Readonly<{
1760
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
1761
- integration: Readonly<{
1762
- predecessor: import("../core/facts/types.js").SnapshotId;
1763
- snapshot: import("../core/facts/types.js").SnapshotId;
1764
- changeId: import("../core/facts/types.js").ChangeId;
1765
- }>;
1766
- method: "squash";
1767
- policy: Readonly<{
1768
- requireBranchesToBeUpToDate: boolean;
1769
- }>;
1770
- }>;
1771
- }> | Readonly<{
1772
- v: 1;
1773
- kind: "reintegrated";
1774
- contract: import("../core/facts/types.js").ContractId;
1775
- entry: import("../core/facts/types.js").EntryUlid;
1776
- at: string;
1777
- actor?: import("../core/facts/types.js").ActorId;
1778
- data: Readonly<{
1779
- predecessor: import("../core/facts/types.js").SnapshotId;
1780
- snapshot: import("../core/facts/types.js").SnapshotId;
1781
- }>;
1782
- }> | Readonly<{
1783
- v: 1;
1784
- kind: "attestation";
1785
- contract: import("../core/facts/types.js").ContractId;
1786
- entry: import("../core/facts/types.js").EntryUlid;
1787
- at: string;
1788
- actor?: import("../core/facts/types.js").ActorId;
1789
- data: Readonly<{
1790
- gate: import("../core/facts/types.js").Gate;
1791
- subject: import("../core/facts/types.js").DependencyKeySet;
1792
- verdict: "satisfied" | "unsatisfied";
1793
- summary?: string;
1794
- }>;
1795
- }> | Readonly<{
1796
- v: 1;
1797
- kind: "claimed";
1798
- contract: import("../core/facts/types.js").ContractId;
1799
- entry: import("../core/facts/types.js").EntryUlid;
1800
- at: string;
1801
- actor?: import("../core/facts/types.js").ActorId;
1802
- data: Readonly<{
1803
- delivery: import("../core/facts/types.js").EntryUlid;
1804
- }>;
1805
- }> | Readonly<{
1806
- v: 1;
1807
- kind: "arc";
1808
- contract: import("../core/facts/types.js").ContractId;
1809
- entry: import("../core/facts/types.js").EntryUlid;
1810
- at: string;
1811
- actor?: import("../core/facts/types.js").ActorId;
1812
- data: Readonly<{
1813
- seq: number;
1814
- title: string;
1815
- objective: string;
1816
- brief: string;
1817
- }>;
1818
- }> | Readonly<{
1819
- v: 1;
1820
- kind: "abandoned";
1821
- contract: import("../core/facts/types.js").ContractId;
1822
- entry: import("../core/facts/types.js").EntryUlid;
1823
- at: string;
1824
- actor?: import("../core/facts/types.js").ActorId;
1825
- data: Readonly<{
1826
- note?: string;
1827
- }>;
1828
- }>, unknown>>>;
1829
- head: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractHead, string>>;
1830
- value: z.ZodType<WithoutUndefined<{
1831
- completion?: WithoutUndefined<{
1832
- integration: import("../core/facts/types.js").SnapshotId;
1833
- verification?: {
1834
- mode: "reused" | "ran";
1835
- verdict: "satisfied" | "unsatisfied";
1836
- } | undefined;
1837
- }> | undefined;
1838
- verification?: {
1839
- refusal: WithoutUndefined<{
1840
- kind: "verification-declaration-invalid";
1841
- contractId?: import("../core/facts/types.js").ContractId | undefined;
1842
- }> | {
1843
- kind: "terminal" | "contract-missing";
1844
- contractId: import("../core/facts/types.js").ContractId;
1845
- };
1846
- } | {
1847
- retry: {
1848
- kind: "exhausted";
1849
- } | {
1850
- kind: "collision";
1851
- } | {
1852
- kind: "publication-failed";
1853
- diagnostic: string;
1854
- };
1855
- } | {
1856
- failure: "cancelled" | "unknown-exit";
1857
- } | {
1858
- failure: "spawn-error" | "candidate-unavailable";
1859
- diagnostic: string;
1860
- } | {
1861
- failure: "environment-failure";
1862
- diagnostic: string;
1863
- } | {
1864
- failure: "environment-failure";
1865
- command: number;
1866
- detail: {
1867
- kind: "exit";
1868
- code: number;
1869
- stdout: string;
1870
- stderr: string;
1871
- truncated: boolean;
1872
- } | {
1873
- kind: "timeout";
1874
- } | {
1875
- kind: "spawn-error";
1876
- diagnostic: string;
1877
- } | {
1878
- kind: "unknown-exit";
1879
- };
1880
- } | undefined;
1881
- verificationReuse?: WithoutUndefined<{
1882
- entry: import("../core/facts/types.js").EntryUlid;
1883
- verdict: "satisfied" | "unsatisfied";
1884
- summary?: string | undefined;
1885
- }> | undefined;
1886
- verificationSummary?: string | undefined;
1887
- placement?: {
1888
- refusal: WithoutUndefined<{
1889
- kind: "integration-failed";
1890
- contractId: import("../core/facts/types.js").ContractId;
1891
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
1892
- targetHead: import("../core/facts/types.js").SnapshotId;
1893
- conflictPaths?: string[] | undefined;
1894
- }> | {
1895
- kind: "checkout-not-followable";
1896
- contractId: import("../core/facts/types.js").ContractId;
1897
- target: string;
1898
- path: string;
1899
- reason: "conflict" | "staged" | "untracked";
1900
- paths: string[];
1901
- } | {
1902
- kind: "gates-unsatisfied";
1903
- contractId: import("../core/facts/types.js").ContractId;
1904
- unmet: {
1905
- gate: import("../core/facts/types.js").Gate;
1906
- current: WithoutUndefined<{
1907
- kind: "attested";
1908
- verdict: "satisfied" | "unsatisfied";
1909
- at: string;
1910
- summary?: string | undefined;
1911
- }> | {
1912
- kind: "stale";
1913
- priorVerdict: "satisfied" | "unsatisfied";
1914
- } | {
1915
- kind: "missing";
1916
- };
1917
- }[];
1918
- } | {
1919
- kind: "prerequisites-unsatisfied";
1920
- contractId: import("../core/facts/types.js").ContractId;
1921
- unmet: {
1922
- contractId: import("../core/facts/types.js").ContractId;
1923
- state: "missing" | "active" | "abandoned";
1924
- }[];
1925
- } | {
1926
- kind: "terminal" | "contract-missing" | "delivery-missing";
1927
- contractId: import("../core/facts/types.js").ContractId;
1928
- } | {
1929
- kind: "integration-unsupported";
1930
- contractId: import("../core/facts/types.js").ContractId;
1931
- requiredGit: "2.38";
1932
- } | {
1933
- kind: "target-missing";
1934
- contractId: import("../core/facts/types.js").ContractId;
1935
- };
1936
- } | {
1937
- retry: {
1938
- kind: "exhausted";
1939
- } | {
1940
- kind: "collision";
1941
- } | {
1942
- kind: "publication-failed";
1943
- diagnostic: string;
1944
- };
1945
- } | {
1946
- failure: "target-moved";
1947
- contractId: import("../core/facts/types.js").ContractId;
1948
- target: string;
1949
- expected: import("../core/facts/types.js").SnapshotId;
1950
- observed: import("../core/facts/types.js").SnapshotId | null;
1951
- observedTreeEqualsCandidate: boolean;
1952
- } | {
1953
- failure: "target-moved";
1954
- contractId: import("../core/facts/types.js").ContractId;
1955
- target: string;
1956
- integratedAt: import("../core/facts/types.js").SnapshotId;
1957
- observed: import("../core/facts/types.js").SnapshotId | null;
1958
- attempts: number;
1959
- observedTreeEqualsCandidate: boolean;
1960
- } | {
1961
- failure: "target-placement-failed";
1962
- diagnostic: string;
1963
- } | undefined;
1964
- cleanup?: {
1965
- phase: "destroy";
1966
- command: number;
1967
- detail: {
1968
- kind: "exit";
1969
- code: number;
1970
- stdout: string;
1971
- stderr: string;
1972
- truncated: boolean;
1973
- } | {
1974
- kind: "timeout";
1975
- } | {
1976
- kind: "spawn-error";
1977
- diagnostic: string;
1978
- } | {
1979
- kind: "unknown-exit";
1980
- };
1981
- } | undefined;
1982
- leak?: {
1983
- path: string;
1984
- diagnostic: string;
1985
- } | undefined;
1986
- continuation?: {
1987
- claimed: import("../core/facts/types.js").ContractId[];
1988
- stopped: {
1989
- contractId: import("../core/facts/types.js").ContractId;
1990
- stop: {
1991
- refusal: WithoutUndefined<{
1992
- kind: "integration-failed";
1993
- contractId: import("../core/facts/types.js").ContractId;
1994
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
1995
- targetHead: import("../core/facts/types.js").SnapshotId;
1996
- conflictPaths?: string[] | undefined;
1997
- }> | {
1998
- kind: "checkout-not-followable";
1999
- contractId: import("../core/facts/types.js").ContractId;
2000
- target: string;
2001
- path: string;
2002
- reason: "conflict" | "staged" | "untracked";
2003
- paths: string[];
2004
- } | {
2005
- kind: "gates-unsatisfied";
2006
- contractId: import("../core/facts/types.js").ContractId;
2007
- unmet: {
2008
- gate: import("../core/facts/types.js").Gate;
2009
- current: WithoutUndefined<{
2010
- kind: "attested";
2011
- verdict: "satisfied" | "unsatisfied";
2012
- at: string;
2013
- summary?: string | undefined;
2014
- }> | {
2015
- kind: "stale";
2016
- priorVerdict: "satisfied" | "unsatisfied";
2017
- } | {
2018
- kind: "missing";
2019
- };
2020
- }[];
2021
- } | {
2022
- kind: "prerequisites-unsatisfied";
2023
- contractId: import("../core/facts/types.js").ContractId;
2024
- unmet: {
2025
- contractId: import("../core/facts/types.js").ContractId;
2026
- state: "missing" | "active" | "abandoned";
2027
- }[];
2028
- } | {
2029
- kind: "terminal" | "contract-missing" | "delivery-missing";
2030
- contractId: import("../core/facts/types.js").ContractId;
2031
- } | {
2032
- kind: "integration-unsupported";
2033
- contractId: import("../core/facts/types.js").ContractId;
2034
- requiredGit: "2.38";
2035
- } | {
2036
- kind: "target-missing";
2037
- contractId: import("../core/facts/types.js").ContractId;
2038
- };
2039
- } | {
2040
- retry: {
2041
- kind: "exhausted";
2042
- } | {
2043
- kind: "collision";
2044
- } | {
2045
- kind: "publication-failed";
2046
- diagnostic: string;
2047
- };
2048
- } | {
2049
- failure: "target-moved";
2050
- contractId: import("../core/facts/types.js").ContractId;
2051
- target: string;
2052
- expected: import("../core/facts/types.js").SnapshotId;
2053
- observed: import("../core/facts/types.js").SnapshotId | null;
2054
- observedTreeEqualsCandidate: boolean;
2055
- } | {
2056
- failure: "target-moved";
2057
- contractId: import("../core/facts/types.js").ContractId;
2058
- target: string;
2059
- integratedAt: import("../core/facts/types.js").SnapshotId;
2060
- observed: import("../core/facts/types.js").SnapshotId | null;
2061
- attempts: number;
2062
- observedTreeEqualsCandidate: boolean;
2063
- } | {
2064
- failure: "target-placement-failed";
2065
- diagnostic: string;
2066
- } | {
2067
- kind: "already-terminal";
2068
- };
2069
- }[];
2070
- } | undefined;
2071
- workspace?: {
2072
- staged: string[];
2073
- unstaged: string[];
2074
- untracked: string[];
2075
- shortStat: {
2076
- filesChanged: number;
2077
- insertions: number;
2078
- deletions: number;
2079
- };
2080
- } | undefined;
2081
- }>, unknown, z.core.$ZodTypeInternals<WithoutUndefined<{
2082
- completion?: WithoutUndefined<{
2083
- integration: import("../core/facts/types.js").SnapshotId;
2084
- verification?: {
2085
- mode: "reused" | "ran";
2086
- verdict: "satisfied" | "unsatisfied";
2087
- } | undefined;
2088
- }> | undefined;
2089
- verification?: {
2090
- refusal: WithoutUndefined<{
2091
- kind: "verification-declaration-invalid";
2092
- contractId?: import("../core/facts/types.js").ContractId | undefined;
2093
- }> | {
2094
- kind: "terminal" | "contract-missing";
2095
- contractId: import("../core/facts/types.js").ContractId;
2096
- };
2097
- } | {
2098
- retry: {
2099
- kind: "exhausted";
2100
- } | {
2101
- kind: "collision";
2102
- } | {
2103
- kind: "publication-failed";
2104
- diagnostic: string;
2105
- };
2106
- } | {
2107
- failure: "cancelled" | "unknown-exit";
2108
- } | {
2109
- failure: "spawn-error" | "candidate-unavailable";
2110
- diagnostic: string;
2111
- } | {
2112
- failure: "environment-failure";
2113
- diagnostic: string;
2114
- } | {
2115
- failure: "environment-failure";
2116
- command: number;
2117
- detail: {
2118
- kind: "exit";
2119
- code: number;
2120
- stdout: string;
2121
- stderr: string;
2122
- truncated: boolean;
2123
- } | {
2124
- kind: "timeout";
2125
- } | {
2126
- kind: "spawn-error";
2127
- diagnostic: string;
2128
- } | {
2129
- kind: "unknown-exit";
2130
- };
2131
- } | undefined;
2132
- verificationReuse?: WithoutUndefined<{
2133
- entry: import("../core/facts/types.js").EntryUlid;
2134
- verdict: "satisfied" | "unsatisfied";
2135
- summary?: string | undefined;
2136
- }> | undefined;
2137
- verificationSummary?: string | undefined;
2138
- placement?: {
2139
- refusal: WithoutUndefined<{
2140
- kind: "integration-failed";
2141
- contractId: import("../core/facts/types.js").ContractId;
2142
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
2143
- targetHead: import("../core/facts/types.js").SnapshotId;
2144
- conflictPaths?: string[] | undefined;
2145
- }> | {
2146
- kind: "checkout-not-followable";
2147
- contractId: import("../core/facts/types.js").ContractId;
2148
- target: string;
2149
- path: string;
2150
- reason: "conflict" | "staged" | "untracked";
2151
- paths: string[];
2152
- } | {
2153
- kind: "gates-unsatisfied";
2154
- contractId: import("../core/facts/types.js").ContractId;
2155
- unmet: {
2156
- gate: import("../core/facts/types.js").Gate;
2157
- current: WithoutUndefined<{
2158
- kind: "attested";
2159
- verdict: "satisfied" | "unsatisfied";
2160
- at: string;
2161
- summary?: string | undefined;
2162
- }> | {
2163
- kind: "stale";
2164
- priorVerdict: "satisfied" | "unsatisfied";
2165
- } | {
2166
- kind: "missing";
2167
- };
2168
- }[];
2169
- } | {
2170
- kind: "prerequisites-unsatisfied";
2171
- contractId: import("../core/facts/types.js").ContractId;
2172
- unmet: {
2173
- contractId: import("../core/facts/types.js").ContractId;
2174
- state: "missing" | "active" | "abandoned";
2175
- }[];
2176
- } | {
2177
- kind: "terminal" | "contract-missing" | "delivery-missing";
2178
- contractId: import("../core/facts/types.js").ContractId;
2179
- } | {
2180
- kind: "integration-unsupported";
2181
- contractId: import("../core/facts/types.js").ContractId;
2182
- requiredGit: "2.38";
2183
- } | {
2184
- kind: "target-missing";
2185
- contractId: import("../core/facts/types.js").ContractId;
2186
- };
2187
- } | {
2188
- retry: {
2189
- kind: "exhausted";
2190
- } | {
2191
- kind: "collision";
2192
- } | {
2193
- kind: "publication-failed";
2194
- diagnostic: string;
2195
- };
2196
- } | {
2197
- failure: "target-moved";
2198
- contractId: import("../core/facts/types.js").ContractId;
2199
- target: string;
2200
- expected: import("../core/facts/types.js").SnapshotId;
2201
- observed: import("../core/facts/types.js").SnapshotId | null;
2202
- observedTreeEqualsCandidate: boolean;
2203
- } | {
2204
- failure: "target-moved";
2205
- contractId: import("../core/facts/types.js").ContractId;
2206
- target: string;
2207
- integratedAt: import("../core/facts/types.js").SnapshotId;
2208
- observed: import("../core/facts/types.js").SnapshotId | null;
2209
- attempts: number;
2210
- observedTreeEqualsCandidate: boolean;
2211
- } | {
2212
- failure: "target-placement-failed";
2213
- diagnostic: string;
2214
- } | undefined;
2215
- cleanup?: {
2216
- phase: "destroy";
2217
- command: number;
2218
- detail: {
2219
- kind: "exit";
2220
- code: number;
2221
- stdout: string;
2222
- stderr: string;
2223
- truncated: boolean;
2224
- } | {
2225
- kind: "timeout";
2226
- } | {
2227
- kind: "spawn-error";
2228
- diagnostic: string;
2229
- } | {
2230
- kind: "unknown-exit";
2231
- };
2232
- } | undefined;
2233
- leak?: {
2234
- path: string;
2235
- diagnostic: string;
2236
- } | undefined;
2237
- continuation?: {
2238
- claimed: import("../core/facts/types.js").ContractId[];
2239
- stopped: {
2240
- contractId: import("../core/facts/types.js").ContractId;
2241
- stop: {
2242
- refusal: WithoutUndefined<{
2243
- kind: "integration-failed";
2244
- contractId: import("../core/facts/types.js").ContractId;
2245
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
2246
- targetHead: import("../core/facts/types.js").SnapshotId;
2247
- conflictPaths?: string[] | undefined;
2248
- }> | {
2249
- kind: "checkout-not-followable";
2250
- contractId: import("../core/facts/types.js").ContractId;
2251
- target: string;
2252
- path: string;
2253
- reason: "conflict" | "staged" | "untracked";
2254
- paths: string[];
2255
- } | {
2256
- kind: "gates-unsatisfied";
2257
- contractId: import("../core/facts/types.js").ContractId;
2258
- unmet: {
2259
- gate: import("../core/facts/types.js").Gate;
2260
- current: WithoutUndefined<{
2261
- kind: "attested";
2262
- verdict: "satisfied" | "unsatisfied";
2263
- at: string;
2264
- summary?: string | undefined;
2265
- }> | {
2266
- kind: "stale";
2267
- priorVerdict: "satisfied" | "unsatisfied";
2268
- } | {
2269
- kind: "missing";
2270
- };
2271
- }[];
2272
- } | {
2273
- kind: "prerequisites-unsatisfied";
2274
- contractId: import("../core/facts/types.js").ContractId;
2275
- unmet: {
2276
- contractId: import("../core/facts/types.js").ContractId;
2277
- state: "missing" | "active" | "abandoned";
2278
- }[];
2279
- } | {
2280
- kind: "terminal" | "contract-missing" | "delivery-missing";
2281
- contractId: import("../core/facts/types.js").ContractId;
2282
- } | {
2283
- kind: "integration-unsupported";
2284
- contractId: import("../core/facts/types.js").ContractId;
2285
- requiredGit: "2.38";
2286
- } | {
2287
- kind: "target-missing";
2288
- contractId: import("../core/facts/types.js").ContractId;
2289
- };
2290
- } | {
2291
- retry: {
2292
- kind: "exhausted";
2293
- } | {
2294
- kind: "collision";
2295
- } | {
2296
- kind: "publication-failed";
2297
- diagnostic: string;
2298
- };
2299
- } | {
2300
- failure: "target-moved";
2301
- contractId: import("../core/facts/types.js").ContractId;
2302
- target: string;
2303
- expected: import("../core/facts/types.js").SnapshotId;
2304
- observed: import("../core/facts/types.js").SnapshotId | null;
2305
- observedTreeEqualsCandidate: boolean;
2306
- } | {
2307
- failure: "target-moved";
2308
- contractId: import("../core/facts/types.js").ContractId;
2309
- target: string;
2310
- integratedAt: import("../core/facts/types.js").SnapshotId;
2311
- observed: import("../core/facts/types.js").SnapshotId | null;
2312
- attempts: number;
2313
- observedTreeEqualsCandidate: boolean;
2314
- } | {
2315
- failure: "target-placement-failed";
2316
- diagnostic: string;
2317
- } | {
2318
- kind: "already-terminal";
2319
- };
2320
- }[];
2321
- } | undefined;
2322
- workspace?: {
2323
- staged: string[];
2324
- unstaged: string[];
2325
- untracked: string[];
2326
- shortStat: {
2327
- filesChanged: number;
2328
- insertions: number;
2329
- deletions: number;
2330
- };
2331
- } | undefined;
2332
- }>, unknown>>;
2333
- lags: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2334
- kind: z.ZodLiteral<"worktree-retained">;
2335
- path: z.ZodString;
2336
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
2337
- kind: z.ZodLiteral<"worktree-follow-retained">;
2338
- path: z.ZodString;
2339
- tender: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
2340
- head: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
2341
- reason: z.ZodEnum<{
2342
- "head-moved": "head-moved";
2343
- "head-attached": "head-attached";
2344
- "operation-in-progress": "operation-in-progress";
2345
- "unsupported-parent-shape": "unsupported-parent-shape";
2346
- }>;
2347
- paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
2348
- }, z.core.$strict>, z.ZodTransform<{
2349
- kind: "worktree-follow-retained";
2350
- path: string;
2351
- tender: import("../core/facts/types.js").SnapshotId;
2352
- head: import("../core/facts/types.js").SnapshotId;
2353
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
2354
- } | {
2355
- paths: string[];
2356
- kind: "worktree-follow-retained";
2357
- path: string;
2358
- tender: import("../core/facts/types.js").SnapshotId;
2359
- head: import("../core/facts/types.js").SnapshotId;
2360
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
2361
- }, {
2362
- kind: "worktree-follow-retained";
2363
- path: string;
2364
- tender: import("../core/facts/types.js").SnapshotId;
2365
- head: import("../core/facts/types.js").SnapshotId;
2366
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
2367
- paths?: string[] | undefined;
2368
- }>>, z.ZodPipe<z.ZodObject<{
2369
- kind: z.ZodLiteral<"unsealed-bytes">;
2370
- path: z.ZodString;
2371
- paths: z.ZodArray<z.ZodString>;
2372
- head: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
2373
- }, z.core.$strict>, z.ZodTransform<{
2374
- kind: "unsealed-bytes";
2375
- path: string;
2376
- paths: string[];
2377
- } | {
2378
- head: import("../core/facts/types.js").SnapshotId;
2379
- kind: "unsealed-bytes";
2380
- path: string;
2381
- paths: string[];
2382
- }, {
2383
- kind: "unsealed-bytes";
2384
- path: string;
2385
- paths: string[];
2386
- head?: import("../core/facts/types.js").SnapshotId | undefined;
2387
- }>>, z.ZodObject<{
2388
- kind: z.ZodLiteral<"target-checkout-retained">;
2389
- path: z.ZodString;
2390
- target: z.ZodString;
2391
- diagnostic: z.ZodString;
2392
- }, z.core.$strict>, z.ZodObject<{
2393
- kind: z.ZodLiteral<"reconcile-failed">;
2394
- stage: z.ZodEnum<{
2395
- observation: "observation";
2396
- effect: "effect";
2397
- }>;
2398
- diagnostic: z.ZodString;
2399
- }, z.core.$strict>, z.ZodObject<{
2400
- kind: z.ZodLiteral<"ref-migration-conflict">;
2401
- legacyRef: z.ZodString;
2402
- legacyOid: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
2403
- currentRef: z.ZodString;
2404
- currentOid: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
2405
- }, z.core.$strict>, z.ZodObject<{
2406
- kind: z.ZodLiteral<"worktree-hook-failed">;
2407
- phase: z.ZodEnum<{
2408
- destroy: "destroy";
2409
- create: "create";
2410
- }>;
2411
- path: z.ZodString;
2412
- command: z.ZodNumber;
2413
- name: z.ZodString;
2414
- failure: z.ZodUnion<readonly [z.ZodObject<{
2415
- kind: z.ZodLiteral<"exit">;
2416
- code: z.ZodNumber;
2417
- stdout: z.ZodString;
2418
- stderr: z.ZodString;
2419
- truncated: z.ZodBoolean;
2420
- }, z.core.$strict>, z.ZodObject<{
2421
- kind: z.ZodLiteral<"timeout">;
2422
- }, z.core.$strict>, z.ZodObject<{
2423
- kind: z.ZodLiteral<"spawn-error">;
2424
- diagnostic: z.ZodString;
2425
- }, z.core.$strict>, z.ZodObject<{
2426
- kind: z.ZodLiteral<"unknown-exit">;
2427
- }, z.core.$strict>]>;
2428
- }, z.core.$strict>, z.ZodObject<{
2429
- kind: z.ZodLiteral<"contract-file-failed">;
2430
- worktree: z.ZodString;
2431
- path: z.ZodString;
2432
- diagnostic: z.ZodString;
2433
- }, z.core.$strict>]>>;
2434
- settlementLags: z.ZodArray<z.ZodPipe<z.ZodObject<{
2435
- kind: z.ZodLiteral<"settlement-failed">;
2436
- surface: z.ZodEnum<{
2437
- task: "task";
2438
- "namespace-context": "namespace-context";
2439
- "task-holder": "task-holder";
2440
- }>;
2441
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
2442
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
2443
- path: z.ZodOptional<z.ZodString>;
2444
- diagnostic: z.ZodString;
2445
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
2446
- kind: "settlement-failed";
2447
- surface: "task" | "namespace-context" | "task-holder";
2448
- contractId: import("../core/facts/types.js").ContractId;
2449
- diagnostic: string;
2450
- taskId?: `task/${string}` | undefined;
2451
- path?: string | undefined;
2452
- }>, {
2453
- kind: "settlement-failed";
2454
- surface: "task" | "namespace-context" | "task-holder";
2455
- contractId: import("../core/facts/types.js").ContractId;
2456
- diagnostic: string;
2457
- taskId?: `task/${string}` | undefined;
2458
- path?: string | undefined;
2459
- }>>>;
2460
- recoverySnapshot: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
2461
- cleanup: z.ZodOptional<z.ZodObject<{
2462
- phase: z.ZodLiteral<"destroy">;
2463
- command: z.ZodNumber;
2464
- detail: z.ZodUnion<readonly [z.ZodObject<{
2465
- kind: z.ZodLiteral<"exit">;
2466
- code: z.ZodNumber;
2467
- stdout: z.ZodString;
2468
- stderr: z.ZodString;
2469
- truncated: z.ZodBoolean;
2470
- }, z.core.$strict>, z.ZodObject<{
2471
- kind: z.ZodLiteral<"timeout">;
2472
- }, z.core.$strict>, z.ZodObject<{
2473
- kind: z.ZodLiteral<"spawn-error">;
2474
- diagnostic: z.ZodString;
2475
- }, z.core.$strict>, z.ZodObject<{
2476
- kind: z.ZodLiteral<"unknown-exit">;
2477
- }, z.core.$strict>]>;
2478
- }, z.core.$strict>>;
2479
- leak: z.ZodOptional<z.ZodObject<{
2480
- path: z.ZodString;
2481
- diagnostic: z.ZodString;
2482
- }, z.core.$strict>>;
2483
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
2484
- facts: (Readonly<{
2485
- v: 1;
2486
- kind: "bound";
2487
- contract: import("../core/facts/types.js").ContractId;
2488
- entry: import("../core/facts/types.js").EntryUlid;
2489
- at: string;
2490
- actor?: import("../core/facts/types.js").ActorId;
2491
- data: Readonly<Record<string, never>>;
2492
- }> | Readonly<{
2493
- v: 1;
2494
- kind: "bind";
2495
- contract: import("../core/facts/types.js").ContractId;
2496
- entry: import("../core/facts/types.js").EntryUlid;
2497
- at: string;
2498
- actor?: import("../core/facts/types.js").ActorId;
2499
- data: Readonly<{
2500
- coordinates: import("../core/facts/types.js").ContractCoordinates;
2501
- terms: import("../core/facts/types.js").ContractTerms;
2502
- }>;
2503
- }> | Readonly<{
2504
- v: 1;
2505
- kind: "amend";
2506
- contract: import("../core/facts/types.js").ContractId;
2507
- entry: import("../core/facts/types.js").EntryUlid;
2508
- at: string;
2509
- actor?: import("../core/facts/types.js").ActorId;
2510
- data: Readonly<{
2511
- document: Readonly<{
2512
- bytes: string;
2513
- key: import("../core/facts/types.js").DocumentKey;
2514
- }>;
2515
- segments: readonly import("../core/facts/types.js").DocumentSegmentKey[];
2516
- gates: readonly import("../core/facts/types.js").Gate[];
2517
- after: readonly import("../core/facts/types.js").ContractId[];
2518
- }>;
2519
- }> | Readonly<{
2520
- v: 1;
2521
- kind: "deliver";
2522
- contract: import("../core/facts/types.js").ContractId;
2523
- entry: import("../core/facts/types.js").EntryUlid;
2524
- at: string;
2525
- actor?: import("../core/facts/types.js").ActorId;
2526
- data: Readonly<{
2527
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
2528
- integration: Readonly<{
2529
- predecessor: import("../core/facts/types.js").SnapshotId;
2530
- snapshot: import("../core/facts/types.js").SnapshotId;
2531
- changeId: import("../core/facts/types.js").ChangeId;
2532
- }>;
2533
- method: "squash";
2534
- policy: Readonly<{
2535
- requireBranchesToBeUpToDate: boolean;
2536
- }>;
2537
- }>;
2538
- }> | Readonly<{
2539
- v: 1;
2540
- kind: "reintegrated";
2541
- contract: import("../core/facts/types.js").ContractId;
2542
- entry: import("../core/facts/types.js").EntryUlid;
2543
- at: string;
2544
- actor?: import("../core/facts/types.js").ActorId;
2545
- data: Readonly<{
2546
- predecessor: import("../core/facts/types.js").SnapshotId;
2547
- snapshot: import("../core/facts/types.js").SnapshotId;
2548
- }>;
2549
- }> | Readonly<{
2550
- v: 1;
2551
- kind: "attestation";
2552
- contract: import("../core/facts/types.js").ContractId;
2553
- entry: import("../core/facts/types.js").EntryUlid;
2554
- at: string;
2555
- actor?: import("../core/facts/types.js").ActorId;
2556
- data: Readonly<{
2557
- gate: import("../core/facts/types.js").Gate;
2558
- subject: import("../core/facts/types.js").DependencyKeySet;
2559
- verdict: "satisfied" | "unsatisfied";
2560
- summary?: string;
2561
- }>;
2562
- }> | Readonly<{
2563
- v: 1;
2564
- kind: "claimed";
2565
- contract: import("../core/facts/types.js").ContractId;
2566
- entry: import("../core/facts/types.js").EntryUlid;
2567
- at: string;
2568
- actor?: import("../core/facts/types.js").ActorId;
2569
- data: Readonly<{
2570
- delivery: import("../core/facts/types.js").EntryUlid;
2571
- }>;
2572
- }> | Readonly<{
2573
- v: 1;
2574
- kind: "arc";
2575
- contract: import("../core/facts/types.js").ContractId;
2576
- entry: import("../core/facts/types.js").EntryUlid;
2577
- at: string;
2578
- actor?: import("../core/facts/types.js").ActorId;
2579
- data: Readonly<{
2580
- seq: number;
2581
- title: string;
2582
- objective: string;
2583
- brief: string;
2584
- }>;
2585
- }> | Readonly<{
2586
- v: 1;
2587
- kind: "abandoned";
2588
- contract: import("../core/facts/types.js").ContractId;
2589
- entry: import("../core/facts/types.js").EntryUlid;
2590
- at: string;
2591
- actor?: import("../core/facts/types.js").ActorId;
2592
- data: Readonly<{
2593
- note?: string;
2594
- }>;
2595
- }>)[];
2596
- head: import("../core/facts/types.js").ContractHead;
2597
- value: WithoutUndefined<{
2598
- completion?: WithoutUndefined<{
2599
- integration: import("../core/facts/types.js").SnapshotId;
2600
- verification?: {
2601
- mode: "reused" | "ran";
2602
- verdict: "satisfied" | "unsatisfied";
2603
- } | undefined;
2604
- }> | undefined;
2605
- verification?: {
2606
- refusal: WithoutUndefined<{
2607
- kind: "verification-declaration-invalid";
2608
- contractId?: import("../core/facts/types.js").ContractId | undefined;
2609
- }> | {
2610
- kind: "terminal" | "contract-missing";
2611
- contractId: import("../core/facts/types.js").ContractId;
2612
- };
2613
- } | {
2614
- retry: {
2615
- kind: "exhausted";
2616
- } | {
2617
- kind: "collision";
2618
- } | {
2619
- kind: "publication-failed";
2620
- diagnostic: string;
2621
- };
2622
- } | {
2623
- failure: "cancelled" | "unknown-exit";
2624
- } | {
2625
- failure: "spawn-error" | "candidate-unavailable";
2626
- diagnostic: string;
2627
- } | {
2628
- failure: "environment-failure";
2629
- diagnostic: string;
2630
- } | {
2631
- failure: "environment-failure";
2632
- command: number;
2633
- detail: {
2634
- kind: "exit";
2635
- code: number;
2636
- stdout: string;
2637
- stderr: string;
2638
- truncated: boolean;
2639
- } | {
2640
- kind: "timeout";
2641
- } | {
2642
- kind: "spawn-error";
2643
- diagnostic: string;
2644
- } | {
2645
- kind: "unknown-exit";
2646
- };
2647
- } | undefined;
2648
- verificationReuse?: WithoutUndefined<{
2649
- entry: import("../core/facts/types.js").EntryUlid;
2650
- verdict: "satisfied" | "unsatisfied";
2651
- summary?: string | undefined;
2652
- }> | undefined;
2653
- verificationSummary?: string | undefined;
2654
- placement?: {
2655
- refusal: WithoutUndefined<{
2656
- kind: "integration-failed";
2657
- contractId: import("../core/facts/types.js").ContractId;
2658
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
2659
- targetHead: import("../core/facts/types.js").SnapshotId;
2660
- conflictPaths?: string[] | undefined;
2661
- }> | {
2662
- kind: "checkout-not-followable";
2663
- contractId: import("../core/facts/types.js").ContractId;
2664
- target: string;
2665
- path: string;
2666
- reason: "conflict" | "staged" | "untracked";
2667
- paths: string[];
2668
- } | {
2669
- kind: "gates-unsatisfied";
2670
- contractId: import("../core/facts/types.js").ContractId;
2671
- unmet: {
2672
- gate: import("../core/facts/types.js").Gate;
2673
- current: WithoutUndefined<{
2674
- kind: "attested";
2675
- verdict: "satisfied" | "unsatisfied";
2676
- at: string;
2677
- summary?: string | undefined;
2678
- }> | {
2679
- kind: "stale";
2680
- priorVerdict: "satisfied" | "unsatisfied";
2681
- } | {
2682
- kind: "missing";
2683
- };
2684
- }[];
2685
- } | {
2686
- kind: "prerequisites-unsatisfied";
2687
- contractId: import("../core/facts/types.js").ContractId;
2688
- unmet: {
2689
- contractId: import("../core/facts/types.js").ContractId;
2690
- state: "missing" | "active" | "abandoned";
2691
- }[];
2692
- } | {
2693
- kind: "terminal" | "contract-missing" | "delivery-missing";
2694
- contractId: import("../core/facts/types.js").ContractId;
2695
- } | {
2696
- kind: "integration-unsupported";
2697
- contractId: import("../core/facts/types.js").ContractId;
2698
- requiredGit: "2.38";
2699
- } | {
2700
- kind: "target-missing";
2701
- contractId: import("../core/facts/types.js").ContractId;
2702
- };
2703
- } | {
2704
- retry: {
2705
- kind: "exhausted";
2706
- } | {
2707
- kind: "collision";
2708
- } | {
2709
- kind: "publication-failed";
2710
- diagnostic: string;
2711
- };
2712
- } | {
2713
- failure: "target-moved";
2714
- contractId: import("../core/facts/types.js").ContractId;
2715
- target: string;
2716
- expected: import("../core/facts/types.js").SnapshotId;
2717
- observed: import("../core/facts/types.js").SnapshotId | null;
2718
- observedTreeEqualsCandidate: boolean;
2719
- } | {
2720
- failure: "target-moved";
2721
- contractId: import("../core/facts/types.js").ContractId;
2722
- target: string;
2723
- integratedAt: import("../core/facts/types.js").SnapshotId;
2724
- observed: import("../core/facts/types.js").SnapshotId | null;
2725
- attempts: number;
2726
- observedTreeEqualsCandidate: boolean;
2727
- } | {
2728
- failure: "target-placement-failed";
2729
- diagnostic: string;
2730
- } | undefined;
2731
- cleanup?: {
2732
- phase: "destroy";
2733
- command: number;
2734
- detail: {
2735
- kind: "exit";
2736
- code: number;
2737
- stdout: string;
2738
- stderr: string;
2739
- truncated: boolean;
2740
- } | {
2741
- kind: "timeout";
2742
- } | {
2743
- kind: "spawn-error";
2744
- diagnostic: string;
2745
- } | {
2746
- kind: "unknown-exit";
2747
- };
2748
- } | undefined;
2749
- leak?: {
2750
- path: string;
2751
- diagnostic: string;
2752
- } | undefined;
2753
- continuation?: {
2754
- claimed: import("../core/facts/types.js").ContractId[];
2755
- stopped: {
2756
- contractId: import("../core/facts/types.js").ContractId;
2757
- stop: {
2758
- refusal: WithoutUndefined<{
2759
- kind: "integration-failed";
2760
- contractId: import("../core/facts/types.js").ContractId;
2761
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
2762
- targetHead: import("../core/facts/types.js").SnapshotId;
2763
- conflictPaths?: string[] | undefined;
2764
- }> | {
2765
- kind: "checkout-not-followable";
2766
- contractId: import("../core/facts/types.js").ContractId;
2767
- target: string;
2768
- path: string;
2769
- reason: "conflict" | "staged" | "untracked";
2770
- paths: string[];
2771
- } | {
2772
- kind: "gates-unsatisfied";
2773
- contractId: import("../core/facts/types.js").ContractId;
2774
- unmet: {
2775
- gate: import("../core/facts/types.js").Gate;
2776
- current: WithoutUndefined<{
2777
- kind: "attested";
2778
- verdict: "satisfied" | "unsatisfied";
2779
- at: string;
2780
- summary?: string | undefined;
2781
- }> | {
2782
- kind: "stale";
2783
- priorVerdict: "satisfied" | "unsatisfied";
2784
- } | {
2785
- kind: "missing";
2786
- };
2787
- }[];
2788
- } | {
2789
- kind: "prerequisites-unsatisfied";
2790
- contractId: import("../core/facts/types.js").ContractId;
2791
- unmet: {
2792
- contractId: import("../core/facts/types.js").ContractId;
2793
- state: "missing" | "active" | "abandoned";
2794
- }[];
2795
- } | {
2796
- kind: "terminal" | "contract-missing" | "delivery-missing";
2797
- contractId: import("../core/facts/types.js").ContractId;
2798
- } | {
2799
- kind: "integration-unsupported";
2800
- contractId: import("../core/facts/types.js").ContractId;
2801
- requiredGit: "2.38";
2802
- } | {
2803
- kind: "target-missing";
2804
- contractId: import("../core/facts/types.js").ContractId;
2805
- };
2806
- } | {
2807
- retry: {
2808
- kind: "exhausted";
2809
- } | {
2810
- kind: "collision";
2811
- } | {
2812
- kind: "publication-failed";
2813
- diagnostic: string;
2814
- };
2815
- } | {
2816
- failure: "target-moved";
2817
- contractId: import("../core/facts/types.js").ContractId;
2818
- target: string;
2819
- expected: import("../core/facts/types.js").SnapshotId;
2820
- observed: import("../core/facts/types.js").SnapshotId | null;
2821
- observedTreeEqualsCandidate: boolean;
2822
- } | {
2823
- failure: "target-moved";
2824
- contractId: import("../core/facts/types.js").ContractId;
2825
- target: string;
2826
- integratedAt: import("../core/facts/types.js").SnapshotId;
2827
- observed: import("../core/facts/types.js").SnapshotId | null;
2828
- attempts: number;
2829
- observedTreeEqualsCandidate: boolean;
2830
- } | {
2831
- failure: "target-placement-failed";
2832
- diagnostic: string;
2833
- } | {
2834
- kind: "already-terminal";
2835
- };
2836
- }[];
2837
- } | undefined;
2838
- workspace?: {
2839
- staged: string[];
2840
- unstaged: string[];
2841
- untracked: string[];
2842
- shortStat: {
2843
- filesChanged: number;
2844
- insertions: number;
2845
- deletions: number;
2846
- };
2847
- } | undefined;
2848
- }>;
2849
- lags: ({
2850
- kind: "worktree-follow-retained";
2851
- path: string;
2852
- tender: import("../core/facts/types.js").SnapshotId;
2853
- head: import("../core/facts/types.js").SnapshotId;
2854
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
2855
- } | {
2856
- paths: string[];
2857
- kind: "worktree-follow-retained";
2858
- path: string;
2859
- tender: import("../core/facts/types.js").SnapshotId;
2860
- head: import("../core/facts/types.js").SnapshotId;
2861
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
2862
- } | {
2863
- kind: "unsealed-bytes";
2864
- path: string;
2865
- paths: string[];
2866
- } | {
2867
- head: import("../core/facts/types.js").SnapshotId;
2868
- kind: "unsealed-bytes";
2869
- path: string;
2870
- paths: string[];
2871
- } | {
2872
- kind: "worktree-retained";
2873
- path: string;
2874
- } | {
2875
- kind: "target-checkout-retained";
2876
- path: string;
2877
- target: string;
2878
- diagnostic: string;
2879
- } | {
2880
- kind: "reconcile-failed";
2881
- stage: "observation" | "effect";
2882
- diagnostic: string;
2883
- } | {
2884
- kind: "ref-migration-conflict";
2885
- legacyRef: string;
2886
- legacyOid: import("../core/facts/types.js").SnapshotId;
2887
- currentRef: string;
2888
- currentOid: import("../core/facts/types.js").SnapshotId;
2889
- } | {
2890
- kind: "worktree-hook-failed";
2891
- phase: "destroy" | "create";
2892
- path: string;
2893
- command: number;
2894
- name: string;
2895
- failure: {
2896
- kind: "exit";
2897
- code: number;
2898
- stdout: string;
2899
- stderr: string;
2900
- truncated: boolean;
2901
- } | {
2902
- kind: "timeout";
2903
- } | {
2904
- kind: "spawn-error";
2905
- diagnostic: string;
2906
- } | {
2907
- kind: "unknown-exit";
2908
- };
2909
- } | {
2910
- kind: "contract-file-failed";
2911
- worktree: string;
2912
- path: string;
2913
- diagnostic: string;
2914
- })[];
2915
- settlementLags: WithoutUndefined<{
2916
- kind: "settlement-failed";
2917
- surface: "task" | "namespace-context" | "task-holder";
2918
- contractId: import("../core/facts/types.js").ContractId;
2919
- diagnostic: string;
2920
- taskId?: `task/${string}` | undefined;
2921
- path?: string | undefined;
2922
- }>[];
2923
- recoverySnapshot?: import("../core/facts/types.js").SnapshotId | undefined;
2924
- cleanup?: {
2925
- phase: "destroy";
2926
- command: number;
2927
- detail: {
2928
- kind: "exit";
2929
- code: number;
2930
- stdout: string;
2931
- stderr: string;
2932
- truncated: boolean;
2933
- } | {
2934
- kind: "timeout";
2935
- } | {
2936
- kind: "spawn-error";
2937
- diagnostic: string;
2938
- } | {
2939
- kind: "unknown-exit";
2940
- };
2941
- } | undefined;
2942
- leak?: {
2943
- path: string;
2944
- diagnostic: string;
2945
- } | undefined;
2946
- }>, {
2947
- facts: (Readonly<{
2948
- v: 1;
2949
- kind: "bound";
2950
- contract: import("../core/facts/types.js").ContractId;
2951
- entry: import("../core/facts/types.js").EntryUlid;
2952
- at: string;
2953
- actor?: import("../core/facts/types.js").ActorId;
2954
- data: Readonly<Record<string, never>>;
2955
- }> | Readonly<{
2956
- v: 1;
2957
- kind: "bind";
2958
- contract: import("../core/facts/types.js").ContractId;
2959
- entry: import("../core/facts/types.js").EntryUlid;
2960
- at: string;
2961
- actor?: import("../core/facts/types.js").ActorId;
2962
- data: Readonly<{
2963
- coordinates: import("../core/facts/types.js").ContractCoordinates;
2964
- terms: import("../core/facts/types.js").ContractTerms;
2965
- }>;
2966
- }> | Readonly<{
2967
- v: 1;
2968
- kind: "amend";
2969
- contract: import("../core/facts/types.js").ContractId;
2970
- entry: import("../core/facts/types.js").EntryUlid;
2971
- at: string;
2972
- actor?: import("../core/facts/types.js").ActorId;
2973
- data: Readonly<{
2974
- document: Readonly<{
2975
- bytes: string;
2976
- key: import("../core/facts/types.js").DocumentKey;
2977
- }>;
2978
- segments: readonly import("../core/facts/types.js").DocumentSegmentKey[];
2979
- gates: readonly import("../core/facts/types.js").Gate[];
2980
- after: readonly import("../core/facts/types.js").ContractId[];
2981
- }>;
2982
- }> | Readonly<{
2983
- v: 1;
2984
- kind: "deliver";
2985
- contract: import("../core/facts/types.js").ContractId;
2986
- entry: import("../core/facts/types.js").EntryUlid;
2987
- at: string;
2988
- actor?: import("../core/facts/types.js").ActorId;
2989
- data: Readonly<{
2990
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
2991
- integration: Readonly<{
2992
- predecessor: import("../core/facts/types.js").SnapshotId;
2993
- snapshot: import("../core/facts/types.js").SnapshotId;
2994
- changeId: import("../core/facts/types.js").ChangeId;
2995
- }>;
2996
- method: "squash";
2997
- policy: Readonly<{
2998
- requireBranchesToBeUpToDate: boolean;
2999
- }>;
3000
- }>;
3001
- }> | Readonly<{
3002
- v: 1;
3003
- kind: "reintegrated";
3004
- contract: import("../core/facts/types.js").ContractId;
3005
- entry: import("../core/facts/types.js").EntryUlid;
3006
- at: string;
3007
- actor?: import("../core/facts/types.js").ActorId;
3008
- data: Readonly<{
3009
- predecessor: import("../core/facts/types.js").SnapshotId;
3010
- snapshot: import("../core/facts/types.js").SnapshotId;
3011
- }>;
3012
- }> | Readonly<{
3013
- v: 1;
3014
- kind: "attestation";
3015
- contract: import("../core/facts/types.js").ContractId;
3016
- entry: import("../core/facts/types.js").EntryUlid;
3017
- at: string;
3018
- actor?: import("../core/facts/types.js").ActorId;
3019
- data: Readonly<{
3020
- gate: import("../core/facts/types.js").Gate;
3021
- subject: import("../core/facts/types.js").DependencyKeySet;
3022
- verdict: "satisfied" | "unsatisfied";
3023
- summary?: string;
3024
- }>;
3025
- }> | Readonly<{
3026
- v: 1;
3027
- kind: "claimed";
3028
- contract: import("../core/facts/types.js").ContractId;
3029
- entry: import("../core/facts/types.js").EntryUlid;
3030
- at: string;
3031
- actor?: import("../core/facts/types.js").ActorId;
3032
- data: Readonly<{
3033
- delivery: import("../core/facts/types.js").EntryUlid;
3034
- }>;
3035
- }> | Readonly<{
3036
- v: 1;
3037
- kind: "arc";
3038
- contract: import("../core/facts/types.js").ContractId;
3039
- entry: import("../core/facts/types.js").EntryUlid;
3040
- at: string;
3041
- actor?: import("../core/facts/types.js").ActorId;
3042
- data: Readonly<{
3043
- seq: number;
3044
- title: string;
3045
- objective: string;
3046
- brief: string;
3047
- }>;
3048
- }> | Readonly<{
3049
- v: 1;
3050
- kind: "abandoned";
3051
- contract: import("../core/facts/types.js").ContractId;
3052
- entry: import("../core/facts/types.js").EntryUlid;
3053
- at: string;
3054
- actor?: import("../core/facts/types.js").ActorId;
3055
- data: Readonly<{
3056
- note?: string;
3057
- }>;
3058
- }>)[];
3059
- head: import("../core/facts/types.js").ContractHead;
3060
- value: WithoutUndefined<{
3061
- completion?: WithoutUndefined<{
3062
- integration: import("../core/facts/types.js").SnapshotId;
3063
- verification?: {
3064
- mode: "reused" | "ran";
3065
- verdict: "satisfied" | "unsatisfied";
3066
- } | undefined;
3067
- }> | undefined;
3068
- verification?: {
3069
- refusal: WithoutUndefined<{
3070
- kind: "verification-declaration-invalid";
3071
- contractId?: import("../core/facts/types.js").ContractId | undefined;
3072
- }> | {
3073
- kind: "terminal" | "contract-missing";
3074
- contractId: import("../core/facts/types.js").ContractId;
3075
- };
3076
- } | {
3077
- retry: {
3078
- kind: "exhausted";
3079
- } | {
3080
- kind: "collision";
3081
- } | {
3082
- kind: "publication-failed";
3083
- diagnostic: string;
3084
- };
3085
- } | {
3086
- failure: "cancelled" | "unknown-exit";
3087
- } | {
3088
- failure: "spawn-error" | "candidate-unavailable";
3089
- diagnostic: string;
3090
- } | {
3091
- failure: "environment-failure";
3092
- diagnostic: string;
3093
- } | {
3094
- failure: "environment-failure";
3095
- command: number;
3096
- detail: {
3097
- kind: "exit";
3098
- code: number;
3099
- stdout: string;
3100
- stderr: string;
3101
- truncated: boolean;
3102
- } | {
3103
- kind: "timeout";
3104
- } | {
3105
- kind: "spawn-error";
3106
- diagnostic: string;
3107
- } | {
3108
- kind: "unknown-exit";
3109
- };
3110
- } | undefined;
3111
- verificationReuse?: WithoutUndefined<{
3112
- entry: import("../core/facts/types.js").EntryUlid;
3113
- verdict: "satisfied" | "unsatisfied";
3114
- summary?: string | undefined;
3115
- }> | undefined;
3116
- verificationSummary?: string | undefined;
3117
- placement?: {
3118
- refusal: WithoutUndefined<{
3119
- kind: "integration-failed";
3120
- contractId: import("../core/facts/types.js").ContractId;
3121
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
3122
- targetHead: import("../core/facts/types.js").SnapshotId;
3123
- conflictPaths?: string[] | undefined;
3124
- }> | {
3125
- kind: "checkout-not-followable";
3126
- contractId: import("../core/facts/types.js").ContractId;
3127
- target: string;
3128
- path: string;
3129
- reason: "conflict" | "staged" | "untracked";
3130
- paths: string[];
3131
- } | {
3132
- kind: "gates-unsatisfied";
3133
- contractId: import("../core/facts/types.js").ContractId;
3134
- unmet: {
3135
- gate: import("../core/facts/types.js").Gate;
3136
- current: WithoutUndefined<{
3137
- kind: "attested";
3138
- verdict: "satisfied" | "unsatisfied";
3139
- at: string;
3140
- summary?: string | undefined;
3141
- }> | {
3142
- kind: "stale";
3143
- priorVerdict: "satisfied" | "unsatisfied";
3144
- } | {
3145
- kind: "missing";
3146
- };
3147
- }[];
3148
- } | {
3149
- kind: "prerequisites-unsatisfied";
3150
- contractId: import("../core/facts/types.js").ContractId;
3151
- unmet: {
3152
- contractId: import("../core/facts/types.js").ContractId;
3153
- state: "missing" | "active" | "abandoned";
3154
- }[];
3155
- } | {
3156
- kind: "terminal" | "contract-missing" | "delivery-missing";
3157
- contractId: import("../core/facts/types.js").ContractId;
3158
- } | {
3159
- kind: "integration-unsupported";
3160
- contractId: import("../core/facts/types.js").ContractId;
3161
- requiredGit: "2.38";
3162
- } | {
3163
- kind: "target-missing";
3164
- contractId: import("../core/facts/types.js").ContractId;
3165
- };
3166
- } | {
3167
- retry: {
3168
- kind: "exhausted";
3169
- } | {
3170
- kind: "collision";
3171
- } | {
3172
- kind: "publication-failed";
3173
- diagnostic: string;
3174
- };
3175
- } | {
3176
- failure: "target-moved";
3177
- contractId: import("../core/facts/types.js").ContractId;
3178
- target: string;
3179
- expected: import("../core/facts/types.js").SnapshotId;
3180
- observed: import("../core/facts/types.js").SnapshotId | null;
3181
- observedTreeEqualsCandidate: boolean;
3182
- } | {
3183
- failure: "target-moved";
3184
- contractId: import("../core/facts/types.js").ContractId;
3185
- target: string;
3186
- integratedAt: import("../core/facts/types.js").SnapshotId;
3187
- observed: import("../core/facts/types.js").SnapshotId | null;
3188
- attempts: number;
3189
- observedTreeEqualsCandidate: boolean;
3190
- } | {
3191
- failure: "target-placement-failed";
3192
- diagnostic: string;
3193
- } | undefined;
3194
- cleanup?: {
3195
- phase: "destroy";
3196
- command: number;
3197
- detail: {
3198
- kind: "exit";
3199
- code: number;
3200
- stdout: string;
3201
- stderr: string;
3202
- truncated: boolean;
3203
- } | {
3204
- kind: "timeout";
3205
- } | {
3206
- kind: "spawn-error";
3207
- diagnostic: string;
3208
- } | {
3209
- kind: "unknown-exit";
3210
- };
3211
- } | undefined;
3212
- leak?: {
3213
- path: string;
3214
- diagnostic: string;
3215
- } | undefined;
3216
- continuation?: {
3217
- claimed: import("../core/facts/types.js").ContractId[];
3218
- stopped: {
3219
- contractId: import("../core/facts/types.js").ContractId;
3220
- stop: {
3221
- refusal: WithoutUndefined<{
3222
- kind: "integration-failed";
3223
- contractId: import("../core/facts/types.js").ContractId;
3224
- reason: "conflict" | "not-based-on-target" | "unrelated-histories";
3225
- targetHead: import("../core/facts/types.js").SnapshotId;
3226
- conflictPaths?: string[] | undefined;
3227
- }> | {
3228
- kind: "checkout-not-followable";
3229
- contractId: import("../core/facts/types.js").ContractId;
3230
- target: string;
3231
- path: string;
3232
- reason: "conflict" | "staged" | "untracked";
3233
- paths: string[];
3234
- } | {
3235
- kind: "gates-unsatisfied";
3236
- contractId: import("../core/facts/types.js").ContractId;
3237
- unmet: {
3238
- gate: import("../core/facts/types.js").Gate;
3239
- current: WithoutUndefined<{
3240
- kind: "attested";
3241
- verdict: "satisfied" | "unsatisfied";
3242
- at: string;
3243
- summary?: string | undefined;
3244
- }> | {
3245
- kind: "stale";
3246
- priorVerdict: "satisfied" | "unsatisfied";
3247
- } | {
3248
- kind: "missing";
3249
- };
3250
- }[];
3251
- } | {
3252
- kind: "prerequisites-unsatisfied";
3253
- contractId: import("../core/facts/types.js").ContractId;
3254
- unmet: {
3255
- contractId: import("../core/facts/types.js").ContractId;
3256
- state: "missing" | "active" | "abandoned";
3257
- }[];
3258
- } | {
3259
- kind: "terminal" | "contract-missing" | "delivery-missing";
3260
- contractId: import("../core/facts/types.js").ContractId;
3261
- } | {
3262
- kind: "integration-unsupported";
3263
- contractId: import("../core/facts/types.js").ContractId;
3264
- requiredGit: "2.38";
3265
- } | {
3266
- kind: "target-missing";
3267
- contractId: import("../core/facts/types.js").ContractId;
3268
- };
3269
- } | {
3270
- retry: {
3271
- kind: "exhausted";
3272
- } | {
3273
- kind: "collision";
3274
- } | {
3275
- kind: "publication-failed";
3276
- diagnostic: string;
3277
- };
3278
- } | {
3279
- failure: "target-moved";
3280
- contractId: import("../core/facts/types.js").ContractId;
3281
- target: string;
3282
- expected: import("../core/facts/types.js").SnapshotId;
3283
- observed: import("../core/facts/types.js").SnapshotId | null;
3284
- observedTreeEqualsCandidate: boolean;
3285
- } | {
3286
- failure: "target-moved";
3287
- contractId: import("../core/facts/types.js").ContractId;
3288
- target: string;
3289
- integratedAt: import("../core/facts/types.js").SnapshotId;
3290
- observed: import("../core/facts/types.js").SnapshotId | null;
3291
- attempts: number;
3292
- observedTreeEqualsCandidate: boolean;
3293
- } | {
3294
- failure: "target-placement-failed";
3295
- diagnostic: string;
3296
- } | {
3297
- kind: "already-terminal";
3298
- };
3299
- }[];
3300
- } | undefined;
3301
- workspace?: {
3302
- staged: string[];
3303
- unstaged: string[];
3304
- untracked: string[];
3305
- shortStat: {
3306
- filesChanged: number;
3307
- insertions: number;
3308
- deletions: number;
3309
- };
3310
- } | undefined;
3311
- }>;
3312
- lags: ({
3313
- kind: "worktree-follow-retained";
3314
- path: string;
3315
- tender: import("../core/facts/types.js").SnapshotId;
3316
- head: import("../core/facts/types.js").SnapshotId;
3317
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
3318
- } | {
3319
- paths: string[];
3320
- kind: "worktree-follow-retained";
3321
- path: string;
3322
- tender: import("../core/facts/types.js").SnapshotId;
3323
- head: import("../core/facts/types.js").SnapshotId;
3324
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
3325
- } | {
3326
- kind: "unsealed-bytes";
3327
- path: string;
3328
- paths: string[];
3329
- } | {
3330
- head: import("../core/facts/types.js").SnapshotId;
3331
- kind: "unsealed-bytes";
3332
- path: string;
3333
- paths: string[];
3334
- } | {
3335
- kind: "worktree-retained";
3336
- path: string;
3337
- } | {
3338
- kind: "target-checkout-retained";
3339
- path: string;
3340
- target: string;
3341
- diagnostic: string;
3342
- } | {
3343
- kind: "reconcile-failed";
3344
- stage: "observation" | "effect";
3345
- diagnostic: string;
3346
- } | {
3347
- kind: "ref-migration-conflict";
3348
- legacyRef: string;
3349
- legacyOid: import("../core/facts/types.js").SnapshotId;
3350
- currentRef: string;
3351
- currentOid: import("../core/facts/types.js").SnapshotId;
3352
- } | {
3353
- kind: "worktree-hook-failed";
3354
- phase: "destroy" | "create";
3355
- path: string;
3356
- command: number;
3357
- name: string;
3358
- failure: {
3359
- kind: "exit";
3360
- code: number;
3361
- stdout: string;
3362
- stderr: string;
3363
- truncated: boolean;
3364
- } | {
3365
- kind: "timeout";
3366
- } | {
3367
- kind: "spawn-error";
3368
- diagnostic: string;
3369
- } | {
3370
- kind: "unknown-exit";
3371
- };
3372
- } | {
3373
- kind: "contract-file-failed";
3374
- worktree: string;
3375
- path: string;
3376
- diagnostic: string;
3377
- })[];
3378
- settlementLags: WithoutUndefined<{
3379
- kind: "settlement-failed";
3380
- surface: "task" | "namespace-context" | "task-holder";
3381
- contractId: import("../core/facts/types.js").ContractId;
3382
- diagnostic: string;
3383
- taskId?: `task/${string}` | undefined;
3384
- path?: string | undefined;
3385
- }>[];
3386
- recoverySnapshot?: import("../core/facts/types.js").SnapshotId | undefined;
3387
- cleanup?: {
3388
- phase: "destroy";
3389
- command: number;
3390
- detail: {
3391
- kind: "exit";
3392
- code: number;
3393
- stdout: string;
3394
- stderr: string;
3395
- truncated: boolean;
3396
- } | {
3397
- kind: "timeout";
3398
- } | {
3399
- kind: "spawn-error";
3400
- diagnostic: string;
3401
- } | {
3402
- kind: "unknown-exit";
3403
- };
3404
- } | undefined;
3405
- leak?: {
3406
- path: string;
3407
- diagnostic: string;
3408
- } | undefined;
3409
- }>>;
3410
- export declare const auditResultSchema: z.ZodPipe<z.ZodObject<{
3411
- facts: z.ZodArray<z.ZodPipe<z.ZodUnknown, z.ZodTransform<Readonly<{
3412
- v: 1;
3413
- kind: "bound";
3414
- contract: import("../core/facts/types.js").ContractId;
3415
- entry: import("../core/facts/types.js").EntryUlid;
3416
- at: string;
3417
- actor?: import("../core/facts/types.js").ActorId;
3418
- data: Readonly<Record<string, never>>;
3419
- }> | Readonly<{
3420
- v: 1;
3421
- kind: "bind";
3422
- contract: import("../core/facts/types.js").ContractId;
3423
- entry: import("../core/facts/types.js").EntryUlid;
3424
- at: string;
3425
- actor?: import("../core/facts/types.js").ActorId;
3426
- data: Readonly<{
3427
- coordinates: import("../core/facts/types.js").ContractCoordinates;
3428
- terms: import("../core/facts/types.js").ContractTerms;
3429
- }>;
3430
- }> | Readonly<{
3431
- v: 1;
3432
- kind: "amend";
3433
- contract: import("../core/facts/types.js").ContractId;
3434
- entry: import("../core/facts/types.js").EntryUlid;
3435
- at: string;
3436
- actor?: import("../core/facts/types.js").ActorId;
3437
- data: Readonly<{
3438
- document: Readonly<{
3439
- bytes: string;
3440
- key: import("../core/facts/types.js").DocumentKey;
3441
- }>;
3442
- segments: readonly import("../core/facts/types.js").DocumentSegmentKey[];
3443
- gates: readonly import("../core/facts/types.js").Gate[];
3444
- after: readonly import("../core/facts/types.js").ContractId[];
3445
- }>;
3446
- }> | Readonly<{
3447
- v: 1;
3448
- kind: "deliver";
3449
- contract: import("../core/facts/types.js").ContractId;
3450
- entry: import("../core/facts/types.js").EntryUlid;
3451
- at: string;
3452
- actor?: import("../core/facts/types.js").ActorId;
3453
- data: Readonly<{
3454
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
3455
- integration: Readonly<{
3456
- predecessor: import("../core/facts/types.js").SnapshotId;
3457
- snapshot: import("../core/facts/types.js").SnapshotId;
3458
- changeId: import("../core/facts/types.js").ChangeId;
3459
- }>;
3460
- method: "squash";
3461
- policy: Readonly<{
3462
- requireBranchesToBeUpToDate: boolean;
3463
- }>;
3464
- }>;
3465
- }> | Readonly<{
3466
- v: 1;
3467
- kind: "reintegrated";
3468
- contract: import("../core/facts/types.js").ContractId;
3469
- entry: import("../core/facts/types.js").EntryUlid;
3470
- at: string;
3471
- actor?: import("../core/facts/types.js").ActorId;
3472
- data: Readonly<{
3473
- predecessor: import("../core/facts/types.js").SnapshotId;
3474
- snapshot: import("../core/facts/types.js").SnapshotId;
3475
- }>;
3476
- }> | Readonly<{
3477
- v: 1;
3478
- kind: "attestation";
3479
- contract: import("../core/facts/types.js").ContractId;
3480
- entry: import("../core/facts/types.js").EntryUlid;
3481
- at: string;
3482
- actor?: import("../core/facts/types.js").ActorId;
3483
- data: Readonly<{
3484
- gate: import("../core/facts/types.js").Gate;
3485
- subject: import("../core/facts/types.js").DependencyKeySet;
3486
- verdict: "satisfied" | "unsatisfied";
3487
- summary?: string;
3488
- }>;
3489
- }> | Readonly<{
3490
- v: 1;
3491
- kind: "claimed";
3492
- contract: import("../core/facts/types.js").ContractId;
3493
- entry: import("../core/facts/types.js").EntryUlid;
3494
- at: string;
3495
- actor?: import("../core/facts/types.js").ActorId;
3496
- data: Readonly<{
3497
- delivery: import("../core/facts/types.js").EntryUlid;
3498
- }>;
3499
- }> | Readonly<{
3500
- v: 1;
3501
- kind: "arc";
3502
- contract: import("../core/facts/types.js").ContractId;
3503
- entry: import("../core/facts/types.js").EntryUlid;
3504
- at: string;
3505
- actor?: import("../core/facts/types.js").ActorId;
3506
- data: Readonly<{
3507
- seq: number;
3508
- title: string;
3509
- objective: string;
3510
- brief: string;
3511
- }>;
3512
- }> | Readonly<{
3513
- v: 1;
3514
- kind: "abandoned";
3515
- contract: import("../core/facts/types.js").ContractId;
3516
- entry: import("../core/facts/types.js").EntryUlid;
3517
- at: string;
3518
- actor?: import("../core/facts/types.js").ActorId;
3519
- data: Readonly<{
3520
- note?: string;
3521
- }>;
3522
- }>, unknown>>>;
3523
- head: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractHead, string>>;
3524
- value: z.ZodType<Readonly<{
3525
- candidate: Readonly<{
3526
- kind: "blocked";
3527
- refusal: import("./contract.js").DeliveryPreparationRefusal;
3528
- }> | Readonly<{
3529
- kind: "ready";
3530
- workspace: Readonly<{
3531
- kind: "worktree";
3532
- path: string;
3533
- }>;
3534
- identity: import("../core/facts/types.js").DeliverData;
3535
- scope: Readonly<{
3536
- filesChanged: number;
3537
- insertions: number;
3538
- deletions: number;
3539
- paths?: readonly string[];
3540
- }>;
3541
- diff?: string;
3542
- }>;
3543
- verification: Readonly<{
3544
- kind: "not-run";
3545
- }> | Readonly<{
3546
- kind: "satisfied";
3547
- passed: number;
3548
- total: number;
3549
- summary?: string;
3550
- }> | Readonly<{
3551
- kind: "unsatisfied";
3552
- passed: number;
3553
- total: number;
3554
- summary?: string;
3555
- }> | Readonly<{
3556
- kind: "stopped";
3557
- stop: import("./contract.js").VerificationStop;
3558
- }>;
3559
- target: Readonly<{
3560
- kind: "not-observed";
3561
- }> | import("../git/target-placement.js").AuditTargetAnswer;
3562
- delivery?: Readonly<{
3563
- changeId: import("../core/facts/types.js").ChangeId;
3564
- relation: "identical" | "differs";
3565
- }>;
3566
- }>, unknown, z.core.$ZodTypeInternals<Readonly<{
3567
- candidate: Readonly<{
3568
- kind: "blocked";
3569
- refusal: import("./contract.js").DeliveryPreparationRefusal;
3570
- }> | Readonly<{
3571
- kind: "ready";
3572
- workspace: Readonly<{
3573
- kind: "worktree";
3574
- path: string;
3575
- }>;
3576
- identity: import("../core/facts/types.js").DeliverData;
3577
- scope: Readonly<{
3578
- filesChanged: number;
3579
- insertions: number;
3580
- deletions: number;
3581
- paths?: readonly string[];
3582
- }>;
3583
- diff?: string;
3584
- }>;
3585
- verification: Readonly<{
3586
- kind: "not-run";
3587
- }> | Readonly<{
3588
- kind: "satisfied";
3589
- passed: number;
3590
- total: number;
3591
- summary?: string;
3592
- }> | Readonly<{
3593
- kind: "unsatisfied";
3594
- passed: number;
3595
- total: number;
3596
- summary?: string;
3597
- }> | Readonly<{
3598
- kind: "stopped";
3599
- stop: import("./contract.js").VerificationStop;
3600
- }>;
3601
- target: Readonly<{
3602
- kind: "not-observed";
3603
- }> | import("../git/target-placement.js").AuditTargetAnswer;
3604
- delivery?: Readonly<{
3605
- changeId: import("../core/facts/types.js").ChangeId;
3606
- relation: "identical" | "differs";
3607
- }>;
3608
- }>, unknown>>;
3609
- lags: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3610
- kind: z.ZodLiteral<"worktree-retained">;
3611
- path: z.ZodString;
3612
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
3613
- kind: z.ZodLiteral<"worktree-follow-retained">;
3614
- path: z.ZodString;
3615
- tender: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
3616
- head: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
3617
- reason: z.ZodEnum<{
3618
- "head-moved": "head-moved";
3619
- "head-attached": "head-attached";
3620
- "operation-in-progress": "operation-in-progress";
3621
- "unsupported-parent-shape": "unsupported-parent-shape";
3622
- }>;
3623
- paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
3624
- }, z.core.$strict>, z.ZodTransform<{
3625
- kind: "worktree-follow-retained";
3626
- path: string;
3627
- tender: import("../core/facts/types.js").SnapshotId;
3628
- head: import("../core/facts/types.js").SnapshotId;
3629
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
3630
- } | {
3631
- paths: string[];
3632
- kind: "worktree-follow-retained";
3633
- path: string;
3634
- tender: import("../core/facts/types.js").SnapshotId;
3635
- head: import("../core/facts/types.js").SnapshotId;
3636
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
3637
- }, {
3638
- kind: "worktree-follow-retained";
3639
- path: string;
3640
- tender: import("../core/facts/types.js").SnapshotId;
3641
- head: import("../core/facts/types.js").SnapshotId;
3642
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
3643
- paths?: string[] | undefined;
3644
- }>>, z.ZodPipe<z.ZodObject<{
3645
- kind: z.ZodLiteral<"unsealed-bytes">;
3646
- path: z.ZodString;
3647
- paths: z.ZodArray<z.ZodString>;
3648
- head: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
3649
- }, z.core.$strict>, z.ZodTransform<{
3650
- kind: "unsealed-bytes";
3651
- path: string;
3652
- paths: string[];
3653
- } | {
3654
- head: import("../core/facts/types.js").SnapshotId;
3655
- kind: "unsealed-bytes";
3656
- path: string;
3657
- paths: string[];
3658
- }, {
3659
- kind: "unsealed-bytes";
3660
- path: string;
3661
- paths: string[];
3662
- head?: import("../core/facts/types.js").SnapshotId | undefined;
3663
- }>>, z.ZodObject<{
3664
- kind: z.ZodLiteral<"target-checkout-retained">;
3665
- path: z.ZodString;
3666
- target: z.ZodString;
3667
- diagnostic: z.ZodString;
3668
- }, z.core.$strict>, z.ZodObject<{
3669
- kind: z.ZodLiteral<"reconcile-failed">;
3670
- stage: z.ZodEnum<{
3671
- observation: "observation";
3672
- effect: "effect";
3673
- }>;
3674
- diagnostic: z.ZodString;
3675
- }, z.core.$strict>, z.ZodObject<{
3676
- kind: z.ZodLiteral<"ref-migration-conflict">;
3677
- legacyRef: z.ZodString;
3678
- legacyOid: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
3679
- currentRef: z.ZodString;
3680
- currentOid: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
3681
- }, z.core.$strict>, z.ZodObject<{
3682
- kind: z.ZodLiteral<"worktree-hook-failed">;
3683
- phase: z.ZodEnum<{
3684
- destroy: "destroy";
3685
- create: "create";
3686
- }>;
3687
- path: z.ZodString;
3688
- command: z.ZodNumber;
3689
- name: z.ZodString;
3690
- failure: z.ZodUnion<readonly [z.ZodObject<{
3691
- kind: z.ZodLiteral<"exit">;
3692
- code: z.ZodNumber;
3693
- stdout: z.ZodString;
3694
- stderr: z.ZodString;
3695
- truncated: z.ZodBoolean;
3696
- }, z.core.$strict>, z.ZodObject<{
3697
- kind: z.ZodLiteral<"timeout">;
3698
- }, z.core.$strict>, z.ZodObject<{
3699
- kind: z.ZodLiteral<"spawn-error">;
3700
- diagnostic: z.ZodString;
3701
- }, z.core.$strict>, z.ZodObject<{
3702
- kind: z.ZodLiteral<"unknown-exit">;
3703
- }, z.core.$strict>]>;
3704
- }, z.core.$strict>, z.ZodObject<{
3705
- kind: z.ZodLiteral<"contract-file-failed">;
3706
- worktree: z.ZodString;
3707
- path: z.ZodString;
3708
- diagnostic: z.ZodString;
3709
- }, z.core.$strict>]>>;
3710
- settlementLags: z.ZodArray<z.ZodPipe<z.ZodObject<{
3711
- kind: z.ZodLiteral<"settlement-failed">;
3712
- surface: z.ZodEnum<{
3713
- task: "task";
3714
- "namespace-context": "namespace-context";
3715
- "task-holder": "task-holder";
3716
- }>;
3717
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
3718
- taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
3719
- path: z.ZodOptional<z.ZodString>;
3720
- diagnostic: z.ZodString;
3721
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
3722
- kind: "settlement-failed";
3723
- surface: "task" | "namespace-context" | "task-holder";
3724
- contractId: import("../core/facts/types.js").ContractId;
3725
- diagnostic: string;
3726
- taskId?: `task/${string}` | undefined;
3727
- path?: string | undefined;
3728
- }>, {
3729
- kind: "settlement-failed";
3730
- surface: "task" | "namespace-context" | "task-holder";
3731
- contractId: import("../core/facts/types.js").ContractId;
3732
- diagnostic: string;
3733
- taskId?: `task/${string}` | undefined;
3734
- path?: string | undefined;
3735
- }>>>;
3736
- recoverySnapshot: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
3737
- cleanup: z.ZodOptional<z.ZodObject<{
3738
- phase: z.ZodLiteral<"destroy">;
3739
- command: z.ZodNumber;
3740
- detail: z.ZodUnion<readonly [z.ZodObject<{
3741
- kind: z.ZodLiteral<"exit">;
3742
- code: z.ZodNumber;
3743
- stdout: z.ZodString;
3744
- stderr: z.ZodString;
3745
- truncated: z.ZodBoolean;
3746
- }, z.core.$strict>, z.ZodObject<{
3747
- kind: z.ZodLiteral<"timeout">;
3748
- }, z.core.$strict>, z.ZodObject<{
3749
- kind: z.ZodLiteral<"spawn-error">;
3750
- diagnostic: z.ZodString;
3751
- }, z.core.$strict>, z.ZodObject<{
3752
- kind: z.ZodLiteral<"unknown-exit">;
3753
- }, z.core.$strict>]>;
3754
- }, z.core.$strict>>;
3755
- leak: z.ZodOptional<z.ZodObject<{
3756
- path: z.ZodString;
3757
- diagnostic: z.ZodString;
3758
- }, z.core.$strict>>;
3759
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
3760
- facts: (Readonly<{
3761
- v: 1;
3762
- kind: "bound";
3763
- contract: import("../core/facts/types.js").ContractId;
3764
- entry: import("../core/facts/types.js").EntryUlid;
3765
- at: string;
3766
- actor?: import("../core/facts/types.js").ActorId;
3767
- data: Readonly<Record<string, never>>;
3768
- }> | Readonly<{
3769
- v: 1;
3770
- kind: "bind";
3771
- contract: import("../core/facts/types.js").ContractId;
3772
- entry: import("../core/facts/types.js").EntryUlid;
3773
- at: string;
3774
- actor?: import("../core/facts/types.js").ActorId;
3775
- data: Readonly<{
3776
- coordinates: import("../core/facts/types.js").ContractCoordinates;
3777
- terms: import("../core/facts/types.js").ContractTerms;
3778
- }>;
3779
- }> | Readonly<{
3780
- v: 1;
3781
- kind: "amend";
3782
- contract: import("../core/facts/types.js").ContractId;
3783
- entry: import("../core/facts/types.js").EntryUlid;
3784
- at: string;
3785
- actor?: import("../core/facts/types.js").ActorId;
3786
- data: Readonly<{
3787
- document: Readonly<{
3788
- bytes: string;
3789
- key: import("../core/facts/types.js").DocumentKey;
3790
- }>;
3791
- segments: readonly import("../core/facts/types.js").DocumentSegmentKey[];
3792
- gates: readonly import("../core/facts/types.js").Gate[];
3793
- after: readonly import("../core/facts/types.js").ContractId[];
3794
- }>;
3795
- }> | Readonly<{
3796
- v: 1;
3797
- kind: "deliver";
3798
- contract: import("../core/facts/types.js").ContractId;
3799
- entry: import("../core/facts/types.js").EntryUlid;
3800
- at: string;
3801
- actor?: import("../core/facts/types.js").ActorId;
3802
- data: Readonly<{
3803
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
3804
- integration: Readonly<{
3805
- predecessor: import("../core/facts/types.js").SnapshotId;
3806
- snapshot: import("../core/facts/types.js").SnapshotId;
3807
- changeId: import("../core/facts/types.js").ChangeId;
3808
- }>;
3809
- method: "squash";
3810
- policy: Readonly<{
3811
- requireBranchesToBeUpToDate: boolean;
3812
- }>;
3813
- }>;
3814
- }> | Readonly<{
3815
- v: 1;
3816
- kind: "reintegrated";
3817
- contract: import("../core/facts/types.js").ContractId;
3818
- entry: import("../core/facts/types.js").EntryUlid;
3819
- at: string;
3820
- actor?: import("../core/facts/types.js").ActorId;
3821
- data: Readonly<{
3822
- predecessor: import("../core/facts/types.js").SnapshotId;
3823
- snapshot: import("../core/facts/types.js").SnapshotId;
3824
- }>;
3825
- }> | Readonly<{
3826
- v: 1;
3827
- kind: "attestation";
3828
- contract: import("../core/facts/types.js").ContractId;
3829
- entry: import("../core/facts/types.js").EntryUlid;
3830
- at: string;
3831
- actor?: import("../core/facts/types.js").ActorId;
3832
- data: Readonly<{
3833
- gate: import("../core/facts/types.js").Gate;
3834
- subject: import("../core/facts/types.js").DependencyKeySet;
3835
- verdict: "satisfied" | "unsatisfied";
3836
- summary?: string;
3837
- }>;
3838
- }> | Readonly<{
3839
- v: 1;
3840
- kind: "claimed";
3841
- contract: import("../core/facts/types.js").ContractId;
3842
- entry: import("../core/facts/types.js").EntryUlid;
3843
- at: string;
3844
- actor?: import("../core/facts/types.js").ActorId;
3845
- data: Readonly<{
3846
- delivery: import("../core/facts/types.js").EntryUlid;
3847
- }>;
3848
- }> | Readonly<{
3849
- v: 1;
3850
- kind: "arc";
3851
- contract: import("../core/facts/types.js").ContractId;
3852
- entry: import("../core/facts/types.js").EntryUlid;
3853
- at: string;
3854
- actor?: import("../core/facts/types.js").ActorId;
3855
- data: Readonly<{
3856
- seq: number;
3857
- title: string;
3858
- objective: string;
3859
- brief: string;
3860
- }>;
3861
- }> | Readonly<{
3862
- v: 1;
3863
- kind: "abandoned";
3864
- contract: import("../core/facts/types.js").ContractId;
3865
- entry: import("../core/facts/types.js").EntryUlid;
3866
- at: string;
3867
- actor?: import("../core/facts/types.js").ActorId;
3868
- data: Readonly<{
3869
- note?: string;
3870
- }>;
3871
- }>)[];
3872
- head: import("../core/facts/types.js").ContractHead;
3873
- value: Readonly<{
3874
- candidate: Readonly<{
3875
- kind: "blocked";
3876
- refusal: import("./contract.js").DeliveryPreparationRefusal;
3877
- }> | Readonly<{
3878
- kind: "ready";
3879
- workspace: Readonly<{
3880
- kind: "worktree";
3881
- path: string;
3882
- }>;
3883
- identity: import("../core/facts/types.js").DeliverData;
3884
- scope: Readonly<{
3885
- filesChanged: number;
3886
- insertions: number;
3887
- deletions: number;
3888
- paths?: readonly string[];
3889
- }>;
3890
- diff?: string;
3891
- }>;
3892
- verification: Readonly<{
3893
- kind: "not-run";
3894
- }> | Readonly<{
3895
- kind: "satisfied";
3896
- passed: number;
3897
- total: number;
3898
- summary?: string;
3899
- }> | Readonly<{
3900
- kind: "unsatisfied";
3901
- passed: number;
3902
- total: number;
3903
- summary?: string;
3904
- }> | Readonly<{
3905
- kind: "stopped";
3906
- stop: import("./contract.js").VerificationStop;
3907
- }>;
3908
- target: Readonly<{
3909
- kind: "not-observed";
3910
- }> | import("../git/target-placement.js").AuditTargetAnswer;
3911
- delivery?: Readonly<{
3912
- changeId: import("../core/facts/types.js").ChangeId;
3913
- relation: "identical" | "differs";
3914
- }>;
3915
- }>;
3916
- lags: ({
3917
- kind: "worktree-follow-retained";
3918
- path: string;
3919
- tender: import("../core/facts/types.js").SnapshotId;
3920
- head: import("../core/facts/types.js").SnapshotId;
3921
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
3922
- } | {
3923
- paths: string[];
3924
- kind: "worktree-follow-retained";
3925
- path: string;
3926
- tender: import("../core/facts/types.js").SnapshotId;
3927
- head: import("../core/facts/types.js").SnapshotId;
3928
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
3929
- } | {
3930
- kind: "unsealed-bytes";
3931
- path: string;
3932
- paths: string[];
3933
- } | {
3934
- head: import("../core/facts/types.js").SnapshotId;
3935
- kind: "unsealed-bytes";
3936
- path: string;
3937
- paths: string[];
3938
- } | {
3939
- kind: "worktree-retained";
3940
- path: string;
3941
- } | {
3942
- kind: "target-checkout-retained";
3943
- path: string;
3944
- target: string;
3945
- diagnostic: string;
3946
- } | {
3947
- kind: "reconcile-failed";
3948
- stage: "observation" | "effect";
3949
- diagnostic: string;
3950
- } | {
3951
- kind: "ref-migration-conflict";
3952
- legacyRef: string;
3953
- legacyOid: import("../core/facts/types.js").SnapshotId;
3954
- currentRef: string;
3955
- currentOid: import("../core/facts/types.js").SnapshotId;
3956
- } | {
3957
- kind: "worktree-hook-failed";
3958
- phase: "destroy" | "create";
3959
- path: string;
3960
- command: number;
3961
- name: string;
3962
- failure: {
3963
- kind: "exit";
3964
- code: number;
3965
- stdout: string;
3966
- stderr: string;
3967
- truncated: boolean;
3968
- } | {
3969
- kind: "timeout";
3970
- } | {
3971
- kind: "spawn-error";
3972
- diagnostic: string;
3973
- } | {
3974
- kind: "unknown-exit";
3975
- };
3976
- } | {
3977
- kind: "contract-file-failed";
3978
- worktree: string;
3979
- path: string;
3980
- diagnostic: string;
3981
- })[];
3982
- settlementLags: WithoutUndefined<{
3983
- kind: "settlement-failed";
3984
- surface: "task" | "namespace-context" | "task-holder";
3985
- contractId: import("../core/facts/types.js").ContractId;
3986
- diagnostic: string;
3987
- taskId?: `task/${string}` | undefined;
3988
- path?: string | undefined;
3989
- }>[];
3990
- recoverySnapshot?: import("../core/facts/types.js").SnapshotId | undefined;
3991
- cleanup?: {
3992
- phase: "destroy";
3993
- command: number;
3994
- detail: {
3995
- kind: "exit";
3996
- code: number;
3997
- stdout: string;
3998
- stderr: string;
3999
- truncated: boolean;
4000
- } | {
4001
- kind: "timeout";
4002
- } | {
4003
- kind: "spawn-error";
4004
- diagnostic: string;
4005
- } | {
4006
- kind: "unknown-exit";
4007
- };
4008
- } | undefined;
4009
- leak?: {
4010
- path: string;
4011
- diagnostic: string;
4012
- } | undefined;
4013
- }>, {
4014
- facts: (Readonly<{
4015
- v: 1;
4016
- kind: "bound";
4017
- contract: import("../core/facts/types.js").ContractId;
4018
- entry: import("../core/facts/types.js").EntryUlid;
4019
- at: string;
4020
- actor?: import("../core/facts/types.js").ActorId;
4021
- data: Readonly<Record<string, never>>;
4022
- }> | Readonly<{
4023
- v: 1;
4024
- kind: "bind";
4025
- contract: import("../core/facts/types.js").ContractId;
4026
- entry: import("../core/facts/types.js").EntryUlid;
4027
- at: string;
4028
- actor?: import("../core/facts/types.js").ActorId;
4029
- data: Readonly<{
4030
- coordinates: import("../core/facts/types.js").ContractCoordinates;
4031
- terms: import("../core/facts/types.js").ContractTerms;
4032
- }>;
4033
- }> | Readonly<{
4034
- v: 1;
4035
- kind: "amend";
4036
- contract: import("../core/facts/types.js").ContractId;
4037
- entry: import("../core/facts/types.js").EntryUlid;
4038
- at: string;
4039
- actor?: import("../core/facts/types.js").ActorId;
4040
- data: Readonly<{
4041
- document: Readonly<{
4042
- bytes: string;
4043
- key: import("../core/facts/types.js").DocumentKey;
4044
- }>;
4045
- segments: readonly import("../core/facts/types.js").DocumentSegmentKey[];
4046
- gates: readonly import("../core/facts/types.js").Gate[];
4047
- after: readonly import("../core/facts/types.js").ContractId[];
4048
- }>;
4049
- }> | Readonly<{
4050
- v: 1;
4051
- kind: "deliver";
4052
- contract: import("../core/facts/types.js").ContractId;
4053
- entry: import("../core/facts/types.js").EntryUlid;
4054
- at: string;
4055
- actor?: import("../core/facts/types.js").ActorId;
4056
- data: Readonly<{
4057
- tenderSnapshot: import("../core/facts/types.js").SnapshotId;
4058
- integration: Readonly<{
4059
- predecessor: import("../core/facts/types.js").SnapshotId;
4060
- snapshot: import("../core/facts/types.js").SnapshotId;
4061
- changeId: import("../core/facts/types.js").ChangeId;
4062
- }>;
4063
- method: "squash";
4064
- policy: Readonly<{
4065
- requireBranchesToBeUpToDate: boolean;
4066
- }>;
4067
- }>;
4068
- }> | Readonly<{
4069
- v: 1;
4070
- kind: "reintegrated";
4071
- contract: import("../core/facts/types.js").ContractId;
4072
- entry: import("../core/facts/types.js").EntryUlid;
4073
- at: string;
4074
- actor?: import("../core/facts/types.js").ActorId;
4075
- data: Readonly<{
4076
- predecessor: import("../core/facts/types.js").SnapshotId;
4077
- snapshot: import("../core/facts/types.js").SnapshotId;
4078
- }>;
4079
- }> | Readonly<{
4080
- v: 1;
4081
- kind: "attestation";
4082
- contract: import("../core/facts/types.js").ContractId;
4083
- entry: import("../core/facts/types.js").EntryUlid;
4084
- at: string;
4085
- actor?: import("../core/facts/types.js").ActorId;
4086
- data: Readonly<{
4087
- gate: import("../core/facts/types.js").Gate;
4088
- subject: import("../core/facts/types.js").DependencyKeySet;
4089
- verdict: "satisfied" | "unsatisfied";
4090
- summary?: string;
4091
- }>;
4092
- }> | Readonly<{
4093
- v: 1;
4094
- kind: "claimed";
4095
- contract: import("../core/facts/types.js").ContractId;
4096
- entry: import("../core/facts/types.js").EntryUlid;
4097
- at: string;
4098
- actor?: import("../core/facts/types.js").ActorId;
4099
- data: Readonly<{
4100
- delivery: import("../core/facts/types.js").EntryUlid;
4101
- }>;
4102
- }> | Readonly<{
4103
- v: 1;
4104
- kind: "arc";
4105
- contract: import("../core/facts/types.js").ContractId;
4106
- entry: import("../core/facts/types.js").EntryUlid;
4107
- at: string;
4108
- actor?: import("../core/facts/types.js").ActorId;
4109
- data: Readonly<{
4110
- seq: number;
4111
- title: string;
4112
- objective: string;
4113
- brief: string;
4114
- }>;
4115
- }> | Readonly<{
4116
- v: 1;
4117
- kind: "abandoned";
4118
- contract: import("../core/facts/types.js").ContractId;
4119
- entry: import("../core/facts/types.js").EntryUlid;
4120
- at: string;
4121
- actor?: import("../core/facts/types.js").ActorId;
4122
- data: Readonly<{
4123
- note?: string;
4124
- }>;
4125
- }>)[];
4126
- head: import("../core/facts/types.js").ContractHead;
4127
- value: Readonly<{
4128
- candidate: Readonly<{
4129
- kind: "blocked";
4130
- refusal: import("./contract.js").DeliveryPreparationRefusal;
4131
- }> | Readonly<{
4132
- kind: "ready";
4133
- workspace: Readonly<{
4134
- kind: "worktree";
4135
- path: string;
4136
- }>;
4137
- identity: import("../core/facts/types.js").DeliverData;
4138
- scope: Readonly<{
4139
- filesChanged: number;
4140
- insertions: number;
4141
- deletions: number;
4142
- paths?: readonly string[];
4143
- }>;
4144
- diff?: string;
4145
- }>;
4146
- verification: Readonly<{
4147
- kind: "not-run";
4148
- }> | Readonly<{
4149
- kind: "satisfied";
4150
- passed: number;
4151
- total: number;
4152
- summary?: string;
4153
- }> | Readonly<{
4154
- kind: "unsatisfied";
4155
- passed: number;
4156
- total: number;
4157
- summary?: string;
4158
- }> | Readonly<{
4159
- kind: "stopped";
4160
- stop: import("./contract.js").VerificationStop;
4161
- }>;
4162
- target: Readonly<{
4163
- kind: "not-observed";
4164
- }> | import("../git/target-placement.js").AuditTargetAnswer;
4165
- delivery?: Readonly<{
4166
- changeId: import("../core/facts/types.js").ChangeId;
4167
- relation: "identical" | "differs";
4168
- }>;
4169
- }>;
4170
- lags: ({
4171
- kind: "worktree-follow-retained";
4172
- path: string;
4173
- tender: import("../core/facts/types.js").SnapshotId;
4174
- head: import("../core/facts/types.js").SnapshotId;
4175
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
4176
- } | {
4177
- paths: string[];
4178
- kind: "worktree-follow-retained";
4179
- path: string;
4180
- tender: import("../core/facts/types.js").SnapshotId;
4181
- head: import("../core/facts/types.js").SnapshotId;
4182
- reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
4183
- } | {
4184
- kind: "unsealed-bytes";
4185
- path: string;
4186
- paths: string[];
4187
- } | {
4188
- head: import("../core/facts/types.js").SnapshotId;
4189
- kind: "unsealed-bytes";
4190
- path: string;
4191
- paths: string[];
4192
- } | {
4193
- kind: "worktree-retained";
4194
- path: string;
4195
- } | {
4196
- kind: "target-checkout-retained";
4197
- path: string;
4198
- target: string;
4199
- diagnostic: string;
4200
- } | {
4201
- kind: "reconcile-failed";
4202
- stage: "observation" | "effect";
4203
- diagnostic: string;
4204
- } | {
4205
- kind: "ref-migration-conflict";
4206
- legacyRef: string;
4207
- legacyOid: import("../core/facts/types.js").SnapshotId;
4208
- currentRef: string;
4209
- currentOid: import("../core/facts/types.js").SnapshotId;
4210
- } | {
4211
- kind: "worktree-hook-failed";
4212
- phase: "destroy" | "create";
4213
- path: string;
4214
- command: number;
4215
- name: string;
4216
- failure: {
4217
- kind: "exit";
4218
- code: number;
4219
- stdout: string;
4220
- stderr: string;
4221
- truncated: boolean;
4222
- } | {
4223
- kind: "timeout";
4224
- } | {
4225
- kind: "spawn-error";
4226
- diagnostic: string;
4227
- } | {
4228
- kind: "unknown-exit";
4229
- };
4230
- } | {
4231
- kind: "contract-file-failed";
4232
- worktree: string;
4233
- path: string;
4234
- diagnostic: string;
4235
- })[];
4236
- settlementLags: WithoutUndefined<{
4237
- kind: "settlement-failed";
4238
- surface: "task" | "namespace-context" | "task-holder";
4239
- contractId: import("../core/facts/types.js").ContractId;
4240
- diagnostic: string;
4241
- taskId?: `task/${string}` | undefined;
4242
- path?: string | undefined;
4243
- }>[];
4244
- recoverySnapshot?: import("../core/facts/types.js").SnapshotId | undefined;
4245
- cleanup?: {
4246
- phase: "destroy";
4247
- command: number;
4248
- detail: {
4249
- kind: "exit";
4250
- code: number;
4251
- stdout: string;
4252
- stderr: string;
4253
- truncated: boolean;
4254
- } | {
4255
- kind: "timeout";
4256
- } | {
4257
- kind: "spawn-error";
4258
- diagnostic: string;
4259
- } | {
4260
- kind: "unknown-exit";
4261
- };
4262
- } | undefined;
4263
- leak?: {
4264
- path: string;
4265
- diagnostic: string;
4266
- } | undefined;
4267
- }>>;
4268
- export declare function encodeContractLiveFailure(error: unknown): unknown | null;
4269
- export declare function decodeContractLiveFailure(value: unknown): Error | null;
4270
- export {};