@astrosheep/keiyaku 4.6.27 → 4.6.28

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 (285) hide show
  1. package/README.md +76 -35
  2. package/build/plugins/claude/.claude-plugin/plugin.json +1 -1
  3. package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +39 -4
  4. package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +4 -7
  5. package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +1 -1
  6. package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +39 -15
  7. package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +42 -22
  8. package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
  9. package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +39 -4
  10. package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +4 -7
  11. package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +1 -1
  12. package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +39 -15
  13. package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +42 -22
  14. package/build/plugins/opencode/package.json +1 -1
  15. package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +39 -4
  16. package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +4 -7
  17. package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +1 -1
  18. package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +39 -15
  19. package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +42 -22
  20. package/build/plugins/pi/README.md +7 -12
  21. package/build/plugins/pi/akuma-tools.ts +3 -18
  22. package/build/skills/keiyaku-akuma/SKILL.md +39 -4
  23. package/build/skills/keiyaku-akuma/references/automation.md +4 -7
  24. package/build/skills/keiyaku-babysit/SKILL.md +1 -1
  25. package/build/skills/keiyaku-bind/SKILL.md +39 -15
  26. package/build/skills/keiyaku-workflow/SKILL.md +42 -22
  27. package/build/src/akuma/akuma-call.d.ts +15 -18
  28. package/build/src/akuma/akuma-call.js +55 -112
  29. package/build/src/akuma/akuma-errors.d.ts +0 -5
  30. package/build/src/akuma/akuma-errors.js +0 -9
  31. package/build/src/akuma/akuma-instance.d.ts +0 -2
  32. package/build/src/akuma/akuma-instance.js +18 -14
  33. package/build/src/akuma/akuma-observe.js +0 -1
  34. package/build/src/akuma/akuma-owner.js +0 -1
  35. package/build/src/akuma/akuma.d.ts +10 -26
  36. package/build/src/akuma/akuma.js +0 -2
  37. package/build/src/akuma/archetype.d.ts +0 -2
  38. package/build/src/akuma/archetype.js +3 -9
  39. package/build/src/akuma/body-launch.d.ts +12 -4
  40. package/build/src/akuma/body.d.ts +2 -5
  41. package/build/src/akuma/body.js +5 -49
  42. package/build/src/akuma/call-initial-tell.d.ts +39 -147
  43. package/build/src/akuma/call-initial-tell.js +0 -48
  44. package/build/src/akuma/caller.d.ts +0 -4
  45. package/build/src/akuma/custody.js +1 -57
  46. package/build/src/akuma/heart/facts.d.ts +0 -39
  47. package/build/src/akuma/heart/facts.js +0 -1
  48. package/build/src/akuma/heart/index.d.ts +1 -2
  49. package/build/src/akuma/heart/index.js +0 -1
  50. package/build/src/akuma/heart/schema.js +0 -26
  51. package/build/src/akuma/heart/soul.d.ts +2 -2
  52. package/build/src/akuma/heart/soul.js +2 -4
  53. package/build/src/akuma/identity.d.ts +0 -1
  54. package/build/src/akuma/identity.js +0 -2
  55. package/build/src/akuma/in-process-body.d.ts +1 -1
  56. package/build/src/akuma/index.d.ts +0 -2
  57. package/build/src/akuma/index.js +0 -1
  58. package/build/src/akuma/projection.d.ts +23 -23
  59. package/build/src/akuma/provider.d.ts +0 -5
  60. package/build/src/akuma/provider.js +0 -1
  61. package/build/src/akuma/providers/acp/core.js +1 -1
  62. package/build/src/akuma/providers/claude/index.js +1 -2
  63. package/build/src/akuma/providers/codex-app-server/index.js +1 -1
  64. package/build/src/akuma/providers/execution-environment.d.ts +1 -3
  65. package/build/src/akuma/providers/execution-environment.js +1 -7
  66. package/build/src/akuma/providers/opencode-sdk/index.js +0 -1
  67. package/build/src/akuma/providers/opencode-sdk/session.d.ts +0 -1
  68. package/build/src/akuma/providers/opencode-sdk/session.js +4 -4
  69. package/build/src/akuma/providers/paseo/index.js +2 -9
  70. package/build/src/akuma/providers/pi/index.js +8 -14
  71. package/build/src/akuma/publication.d.ts +24 -59
  72. package/build/src/akuma/publication.js +29 -64
  73. package/build/src/akuma/selection-observation.d.ts +47 -2036
  74. package/build/src/akuma/selection-observation.js +1 -59
  75. package/build/src/akuma/turn-drive.d.ts +0 -8
  76. package/build/src/akuma/turn-drive.js +19 -103
  77. package/build/src/akuma-body.js +3 -6
  78. package/build/src/body-host.d.ts +8 -2
  79. package/build/src/body-host.js +30 -4
  80. package/build/src/cli/commands/akuma-grammar.d.ts +0 -2
  81. package/build/src/cli/commands/akuma-grammar.js +10 -33
  82. package/build/src/cli/commands/akuma.js +31 -49
  83. package/build/src/cli/commands/contract-grammar.d.ts +7 -1
  84. package/build/src/cli/commands/contract-grammar.js +15 -0
  85. package/build/src/cli/commands/contract-help.d.ts +13 -1
  86. package/build/src/cli/commands/contract-help.js +47 -16
  87. package/build/src/cli/commands/contract.js +27 -26
  88. package/build/src/cli/commands/debt.js +3 -3
  89. package/build/src/cli/commands/whoami.d.ts +0 -2
  90. package/build/src/cli/commands/whoami.js +0 -5
  91. package/build/src/cli/coordinates.js +15 -0
  92. package/build/src/cli/delivery-identity.d.ts +3 -0
  93. package/build/src/cli/delivery-identity.js +23 -0
  94. package/build/src/cli/parse.js +1 -0
  95. package/build/src/cli/render/akuma-activity.d.ts +0 -1
  96. package/build/src/cli/render/akuma-activity.js +1 -4
  97. package/build/src/cli/render/catalog.js +7 -1
  98. package/build/src/cli/render/contract-history.js +16 -38
  99. package/build/src/cli/render/contract-observation.d.ts +23 -10
  100. package/build/src/cli/render/contract-observation.js +9 -6
  101. package/build/src/cli/render/contract-wait.d.ts +2 -0
  102. package/build/src/cli/render/contract-wait.js +18 -0
  103. package/build/src/cli/render/contract.d.ts +2 -2
  104. package/build/src/cli/render/contract.js +57 -39
  105. package/build/src/cli/render/delivery-preview.js +13 -26
  106. package/build/src/cli/render/execution-progress.js +9 -9
  107. package/build/src/cli/render/kanshi.js +4 -11
  108. package/build/src/cli/render/receipt.d.ts +18 -0
  109. package/build/src/cli/render/receipt.js +34 -10
  110. package/build/src/cli/render/reconcile.js +3 -0
  111. package/build/src/cli/render/refusal.js +28 -6
  112. package/build/src/cli/render/whoami.js +1 -4
  113. package/build/src/cli/runtime.d.ts +0 -2
  114. package/build/src/cli/runtime.js +3 -7
  115. package/build/src/cli/selectors.d.ts +1 -2
  116. package/build/src/cli/selectors.js +2 -5
  117. package/build/src/contract-guidance.js +4 -2
  118. package/build/src/contract-worktree.d.ts +3 -3
  119. package/build/src/core/facts/codec.js +38 -5
  120. package/build/src/core/facts/fold.js +1 -0
  121. package/build/src/core/facts/gate.d.ts +10 -4
  122. package/build/src/core/facts/gate.js +56 -39
  123. package/build/src/core/facts/observation.d.ts +7 -1
  124. package/build/src/core/facts/observation.js +15 -0
  125. package/build/src/core/facts/offer.d.ts +2 -2
  126. package/build/src/core/facts/types.d.ts +17 -1
  127. package/build/src/core/facts/types.js +6 -0
  128. package/build/src/core/verbs/amend.js +8 -0
  129. package/build/src/core/verbs/bind.d.ts +3 -1
  130. package/build/src/core/verbs/bind.js +9 -1
  131. package/build/src/core/verbs/deliver.d.ts +2 -1
  132. package/build/src/core/verbs/deliver.js +4 -1
  133. package/build/src/core/verbs/placement.d.ts +2 -1
  134. package/build/src/core/verbs/placement.js +7 -4
  135. package/build/src/core/verbs/reintegrate.d.ts +2 -1
  136. package/build/src/core/verbs/reintegrate.js +4 -1
  137. package/build/src/debt/board.d.ts +10 -10
  138. package/build/src/debt/created-observation.d.ts +3 -3
  139. package/build/src/debt/document.d.ts +1 -1
  140. package/build/src/debt/index.d.ts +2 -24
  141. package/build/src/debt/index.js +11 -71
  142. package/build/src/debt/operation-types.d.ts +44 -3
  143. package/build/src/git/admission.js +18 -6
  144. package/build/src/git/integration.d.ts +4 -4
  145. package/build/src/git/integration.js +7 -1
  146. package/build/src/git/observe.d.ts +6 -4
  147. package/build/src/git/observe.js +18 -17
  148. package/build/src/git/reconcile.d.ts +20 -8
  149. package/build/src/git/reconcile.js +94 -45
  150. package/build/src/git/repository.d.ts +3 -1
  151. package/build/src/git/repository.js +26 -4
  152. package/build/src/git/scratch.d.ts +1 -1
  153. package/build/src/git/scratch.js +19 -18
  154. package/build/src/git/target-placement.d.ts +33 -7
  155. package/build/src/git/target-placement.js +67 -18
  156. package/build/src/git/target.d.ts +32 -0
  157. package/build/src/git/target.js +84 -0
  158. package/build/src/git/terminal-reconcile.d.ts +1 -1
  159. package/build/src/git/terminal-reconcile.js +34 -6
  160. package/build/src/index.d.ts +9 -7
  161. package/build/src/index.js +1 -1
  162. package/build/src/library/address.d.ts +1 -20
  163. package/build/src/library/address.js +3 -24
  164. package/build/src/library/akuma-creation.d.ts +2 -5
  165. package/build/src/library/akuma-creation.js +60 -44
  166. package/build/src/library/akumas.d.ts +3 -9
  167. package/build/src/library/akumas.js +12 -25
  168. package/build/src/library/bind.d.ts +21 -9
  169. package/build/src/library/bind.js +5 -1
  170. package/build/src/library/continuation.d.ts +130 -155
  171. package/build/src/library/continuation.js +1 -4
  172. package/build/src/library/contract-composition.d.ts +4 -9
  173. package/build/src/library/contract-composition.js +8 -12
  174. package/build/src/library/contract-creation.d.ts +1 -3
  175. package/build/src/library/contract-creation.js +2 -3
  176. package/build/src/library/contract-execution.d.ts +3 -5
  177. package/build/src/library/contract-execution.js +55 -96
  178. package/build/src/library/contract-outcomes.d.ts +2 -1
  179. package/build/src/library/contract-types.d.ts +5 -0
  180. package/build/src/library/contract-wait.d.ts +35 -0
  181. package/build/src/library/contract-wait.js +141 -0
  182. package/build/src/library/delivery.d.ts +13 -525
  183. package/build/src/library/delivery.js +1 -12
  184. package/build/src/library/input.js +2 -1
  185. package/build/src/library/invocation.d.ts +5 -1
  186. package/build/src/library/invocation.js +9 -2
  187. package/build/src/library/keiyaku.d.ts +7 -6
  188. package/build/src/library/keiyaku.js +12 -7
  189. package/build/src/library/outcome.d.ts +461 -12586
  190. package/build/src/library/outcome.js +15 -234
  191. package/build/src/library/reconcile.d.ts +12 -0
  192. package/build/src/library/reconcile.js +1 -0
  193. package/build/src/library/refusal.d.ts +251 -34
  194. package/build/src/library/refusal.js +10 -5
  195. package/build/src/library/selection.d.ts +9 -35
  196. package/build/src/library/selection.js +59 -129
  197. package/build/src/plugin/akuma-signals.d.ts +2 -2
  198. package/build/src/plugin/akuma-signals.js +2 -2
  199. package/build/src/plugin/public.d.ts +0 -7
  200. package/build/src/plugin/runtime.d.ts +2 -2
  201. package/build/src/plugin/runtime.js +4 -3
  202. package/build/src/protocol/attempt.js +7 -3
  203. package/build/src/protocol/bind.d.ts +18 -4
  204. package/build/src/protocol/bind.js +102 -35
  205. package/build/src/protocol/completion.d.ts +18 -331
  206. package/build/src/protocol/completion.js +17 -130
  207. package/build/src/protocol/deliver.d.ts +3 -3
  208. package/build/src/protocol/deliver.js +64 -74
  209. package/build/src/protocol/delivery-preview.d.ts +85 -28
  210. package/build/src/protocol/delivery-preview.js +34 -22
  211. package/build/src/protocol/execution-observation.d.ts +12 -9
  212. package/build/src/protocol/execution-observation.js +0 -1
  213. package/build/src/protocol/intent.d.ts +20 -50
  214. package/build/src/protocol/intent.js +37 -44
  215. package/build/src/protocol/operations.d.ts +299 -19
  216. package/build/src/protocol/operations.js +68 -27
  217. package/build/src/protocol/outcome.d.ts +1 -1
  218. package/build/src/protocol/placement.d.ts +2 -2
  219. package/build/src/protocol/placement.js +4 -3
  220. package/build/src/protocol/progress.d.ts +35 -2
  221. package/build/src/protocol/progress.js +12 -1
  222. package/build/src/protocol/read/observation.js +15 -4
  223. package/build/src/protocol/read/status.d.ts +9 -14
  224. package/build/src/protocol/read/status.js +15 -22
  225. package/build/src/protocol/reintegrate.d.ts +4 -3
  226. package/build/src/protocol/reintegrate.js +21 -5
  227. package/build/src/protocol/review.d.ts +9 -15
  228. package/build/src/protocol/review.js +2 -6
  229. package/build/src/protocol/run.d.ts +1 -1
  230. package/build/src/protocol/verify.d.ts +51 -0
  231. package/build/src/protocol/verify.js +128 -0
  232. package/build/src/verification/declaration.d.ts +5 -1
  233. package/build/src/verification/declaration.js +19 -2
  234. package/build/src/verification/execution.d.ts +5 -2
  235. package/build/src/verification/execution.js +48 -53
  236. package/build/src/verification/observation.d.ts +10 -6
  237. package/build/src/verification/observation.js +5 -2
  238. package/package.json +3 -3
  239. package/plugins/paseo/plugin/index.server.ts +3 -0
  240. package/plugins/paseo/plugin/server/attach.ts +42 -0
  241. package/plugins/paseo/plugin/server/mirror-identity.ts +51 -0
  242. package/plugins/paseo/plugin/server/model.ts +26 -0
  243. package/plugins/paseo/plugin/server/provider.ts +4 -6
  244. package/plugins/paseo/plugin/server/reopen.ts +4 -39
  245. package/plugins/pi/README.md +7 -12
  246. package/plugins/pi/akuma-tools.ts +3 -18
  247. package/skills/keiyaku-akuma/SKILL.md +39 -4
  248. package/skills/keiyaku-akuma/references/automation.md +4 -7
  249. package/skills/keiyaku-babysit/SKILL.md +1 -1
  250. package/skills/keiyaku-bind/SKILL.md +39 -15
  251. package/skills/keiyaku-workflow/SKILL.md +42 -22
  252. package/build/src/akuma/allowed.d.ts +0 -23
  253. package/build/src/akuma/allowed.js +0 -63
  254. package/build/src/akuma/call-request.d.ts +0 -308
  255. package/build/src/akuma/call-request.js +0 -175
  256. package/build/src/akuma/heart/request-authority.d.ts +0 -16
  257. package/build/src/akuma/heart/request-authority.js +0 -140
  258. package/build/src/akuma/heart/request-rows.d.ts +0 -18
  259. package/build/src/akuma/heart/request-rows.js +0 -107
  260. package/build/src/akuma/request-lifecycle.d.ts +0 -42
  261. package/build/src/akuma/request-lifecycle.js +0 -197
  262. package/build/src/akuma/request-observation.d.ts +0 -45
  263. package/build/src/akuma/request-observation.js +0 -162
  264. package/build/src/akuma/request-rendezvous.d.ts +0 -32
  265. package/build/src/akuma/request-rendezvous.js +0 -189
  266. package/build/src/akuma/request-serve.d.ts +0 -16
  267. package/build/src/akuma/request-serve.js +0 -188
  268. package/build/src/akuma/request-wire.d.ts +0 -143
  269. package/build/src/akuma/request-wire.js +0 -146
  270. package/build/src/akuma/requests.d.ts +0 -20
  271. package/build/src/akuma/requests.js +0 -72
  272. package/build/src/akuma/selection-owner-port.d.ts +0 -14
  273. package/build/src/akuma/selection-owner-port.js +0 -54
  274. package/build/src/akuma/selection-request.d.ts +0 -305
  275. package/build/src/akuma/selection-request.js +0 -307
  276. package/build/src/body-requests.d.ts +0 -13
  277. package/build/src/body-requests.js +0 -131
  278. package/build/src/cli/square-identity.d.ts +0 -10
  279. package/build/src/cli/square-identity.js +0 -130
  280. package/build/src/debt/mutation-result.d.ts +0 -981
  281. package/build/src/debt/mutation-result.js +0 -109
  282. package/build/src/debt/mutation.d.ts +0 -424
  283. package/build/src/debt/mutation.js +0 -223
  284. package/build/src/library/contract-operations.d.ts +0 -382
  285. package/build/src/library/contract-operations.js +0 -300
@@ -1,533 +1,21 @@
1
- import { z } from "zod";
2
- import type { SnapshotId } from "../core/facts/types.js";
1
+ import type { z } from "zod";
2
+ import type { DeliverData, SnapshotId } from "../core/facts/types.js";
3
+ import type { CompletionEvidence } from "../protocol/completion.js";
4
+ import type { deliverLeadingSchema } from "../protocol/deliver.js";
5
+ import type { candidateContentChangeSchema } from "../protocol/operations.js";
3
6
  import { type RepositoryScope } from "../protocol/operations.js";
4
- export declare const deliveryValueSchema: z.ZodObject<{
5
- completion: z.ZodOptional<z.ZodObject<{
6
- integration: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
7
- predecessor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
8
- target: z.ZodOptional<z.ZodString>;
9
- scope: z.ZodOptional<z.ZodObject<{
10
- deletions: z.ZodNumber;
11
- filesChanged: z.ZodNumber;
12
- insertions: z.ZodNumber;
13
- }, z.core.$strict>>;
14
- }, z.core.$strict>>;
15
- verification: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
16
- snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
17
- verdict: z.ZodEnum<{
18
- satisfied: "satisfied";
19
- unsatisfied: "unsatisfied";
20
- }>;
21
- summary: z.ZodOptional<z.ZodString>;
22
- kind: z.ZodLiteral<"ran">;
23
- entry: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>>;
24
- }, z.core.$strict>, z.ZodObject<{
25
- snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
26
- verdict: z.ZodEnum<{
27
- satisfied: "satisfied";
28
- unsatisfied: "unsatisfied";
29
- }>;
30
- entry: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
31
- summary: z.ZodOptional<z.ZodString>;
32
- kind: z.ZodLiteral<"reused">;
33
- }, z.core.$strict>, z.ZodObject<{
34
- kind: z.ZodLiteral<"stopped">;
35
- stop: z.ZodUnion<readonly [z.ZodObject<{
36
- refusal: z.ZodUnion<readonly [z.ZodObject<{
37
- kind: z.ZodEnum<{
38
- terminal: "terminal";
39
- "contract-missing": "contract-missing";
40
- }>;
41
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
42
- }, z.core.$strict>, z.ZodObject<{
43
- kind: z.ZodLiteral<"verification-declaration-invalid">;
44
- contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>>;
45
- }, z.core.$strict>]>;
46
- }, z.core.$strict>, z.ZodObject<{
47
- retry: z.ZodUnion<readonly [z.ZodObject<{
48
- kind: z.ZodEnum<{
49
- exhausted: "exhausted";
50
- collision: "collision";
51
- }>;
52
- }, z.core.$strict>, z.ZodObject<{
53
- kind: z.ZodLiteral<"publication-failed">;
54
- diagnostic: z.ZodString;
55
- }, z.core.$strict>]>;
56
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
57
- stdout: z.ZodOptional<z.ZodString>;
58
- stderr: z.ZodOptional<z.ZodString>;
59
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
60
- failure: z.ZodEnum<{
61
- cancelled: "cancelled";
62
- "unknown-exit": "unknown-exit";
63
- }>;
64
- }, z.core.$strict>, z.ZodObject<{
65
- stdout: z.ZodOptional<z.ZodString>;
66
- stderr: z.ZodOptional<z.ZodString>;
67
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
68
- failure: z.ZodEnum<{
69
- "spawn-error": "spawn-error";
70
- "candidate-unavailable": "candidate-unavailable";
71
- }>;
72
- diagnostic: z.ZodString;
73
- }, z.core.$strict>, z.ZodObject<{
74
- stdout: z.ZodOptional<z.ZodString>;
75
- stderr: z.ZodOptional<z.ZodString>;
76
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
77
- failure: z.ZodLiteral<"environment-failure">;
78
- diagnostic: z.ZodString;
79
- }, z.core.$strict>, z.ZodObject<{
80
- stdout: z.ZodOptional<z.ZodString>;
81
- stderr: z.ZodOptional<z.ZodString>;
82
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
83
- failure: z.ZodLiteral<"environment-failure">;
84
- name: z.ZodString;
85
- detail: z.ZodUnion<readonly [z.ZodObject<{
86
- kind: z.ZodLiteral<"exit">;
87
- code: z.ZodNumber;
88
- stdout: z.ZodString;
89
- stderr: z.ZodString;
90
- truncated: z.ZodBoolean;
91
- }, z.core.$strict>, z.ZodObject<{
92
- stdout: z.ZodOptional<z.ZodString>;
93
- stderr: z.ZodOptional<z.ZodString>;
94
- truncated: z.ZodOptional<z.ZodBoolean>;
95
- kind: z.ZodLiteral<"timeout">;
96
- }, z.core.$strict>, z.ZodObject<{
97
- stdout: z.ZodOptional<z.ZodString>;
98
- stderr: z.ZodOptional<z.ZodString>;
99
- truncated: z.ZodOptional<z.ZodBoolean>;
100
- kind: z.ZodLiteral<"unknown-exit">;
101
- }, z.core.$strict>, z.ZodObject<{
102
- kind: z.ZodLiteral<"spawn-error">;
103
- diagnostic: z.ZodString;
104
- }, z.core.$strict>]>;
105
- }, z.core.$strict>]>]>;
106
- }, z.core.$strict>], "kind">>;
107
- placement: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
108
- refusal: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
109
- kind: z.ZodEnum<{
110
- terminal: "terminal";
111
- "contract-missing": "contract-missing";
112
- "delivery-missing": "delivery-missing";
113
- }>;
114
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
115
- }, z.core.$strict>, z.ZodObject<{
116
- kind: z.ZodLiteral<"gates-unsatisfied">;
117
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
118
- unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
119
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
120
- current: z.ZodUnion<readonly [z.ZodObject<{
121
- kind: z.ZodLiteral<"missing">;
122
- }, z.core.$strict>, z.ZodObject<{
123
- kind: z.ZodLiteral<"attested">;
124
- verdict: z.ZodEnum<{
125
- satisfied: "satisfied";
126
- unsatisfied: "unsatisfied";
127
- }>;
128
- at: z.ZodString;
129
- summary: z.ZodOptional<z.ZodString>;
130
- }, z.core.$strict>, z.ZodObject<{
131
- kind: z.ZodLiteral<"stale">;
132
- priorVerdict: z.ZodEnum<{
133
- satisfied: "satisfied";
134
- unsatisfied: "unsatisfied";
135
- }>;
136
- reason: z.ZodOptional<z.ZodObject<{
137
- kind: z.ZodLiteral<"candidate-content-changed">;
138
- target: z.ZodOptional<z.ZodString>;
139
- previousChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
140
- currentChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
141
- }, z.core.$strict>>;
142
- }, z.core.$strict>]>;
143
- }, z.core.$strict>>>;
144
- target: z.ZodOptional<z.ZodString>;
145
- }, z.core.$strict>, z.ZodObject<{
146
- kind: z.ZodLiteral<"prerequisites-unsatisfied">;
147
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
148
- unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
149
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
150
- state: z.ZodEnum<{
151
- abandoned: "abandoned";
152
- missing: "missing";
153
- active: "active";
154
- }>;
155
- }, z.core.$strict>>>;
156
- }, z.core.$strict>]>, z.ZodObject<{
157
- kind: z.ZodLiteral<"checkout-not-followable">;
158
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
159
- target: z.ZodString;
160
- path: z.ZodString;
161
- reason: z.ZodLiteral<"untracked">;
162
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
163
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
164
- kind: z.ZodLiteral<"integration-failed">;
165
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
166
- reason: z.ZodEnum<{
167
- "not-based-on-target": "not-based-on-target";
168
- "unrelated-histories": "unrelated-histories";
169
- conflict: "conflict";
170
- }>;
171
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
172
- conflictPaths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
173
- }, z.core.$strict>, z.ZodTransform<{
174
- kind: "integration-failed";
175
- contractId: import("../core/facts/types.js").ContractId;
176
- reason: "not-based-on-target" | "unrelated-histories" | "conflict";
177
- targetHead: SnapshotId;
178
- } & {
179
- conflictPaths?: readonly string[];
180
- }, {
181
- kind: "integration-failed";
182
- contractId: import("../core/facts/types.js").ContractId;
183
- reason: "not-based-on-target" | "unrelated-histories" | "conflict";
184
- targetHead: SnapshotId;
185
- conflictPaths?: readonly string[] | undefined;
186
- }>>, z.ZodObject<{
187
- kind: z.ZodLiteral<"integration-unsupported">;
188
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
189
- requiredGit: z.ZodLiteral<"2.38">;
190
- }, z.core.$strict>]>, z.ZodObject<{
191
- kind: z.ZodLiteral<"target-missing">;
192
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
193
- }, z.core.$strict>]>;
194
- }, z.core.$strict>, z.ZodObject<{
195
- retry: z.ZodUnion<readonly [z.ZodObject<{
196
- kind: z.ZodEnum<{
197
- exhausted: "exhausted";
198
- collision: "collision";
199
- }>;
200
- }, z.core.$strict>, z.ZodObject<{
201
- kind: z.ZodLiteral<"publication-failed">;
202
- diagnostic: z.ZodString;
203
- }, z.core.$strict>]>;
204
- }, z.core.$strict>, z.ZodObject<{
205
- failure: z.ZodLiteral<"target-placement-failed">;
206
- diagnostic: z.ZodString;
207
- }, z.core.$strict>, z.ZodObject<{
208
- failure: z.ZodLiteral<"target-moved">;
209
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
210
- target: z.ZodString;
211
- integratedAt: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
212
- observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
213
- attempts: z.ZodNumber;
214
- observedTreeEqualsCandidate: z.ZodBoolean;
215
- }, z.core.$strict>, z.ZodObject<{
216
- failure: z.ZodLiteral<"target-moved">;
217
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
218
- target: z.ZodString;
219
- expected: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
220
- observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
221
- observedTreeEqualsCandidate: z.ZodBoolean;
222
- }, z.core.$strict>]>>;
223
- leading: z.ZodObject<{
224
- kind: z.ZodEnum<{
225
- "admitted-now": "admitted-now";
226
- "already-admitted": "already-admitted";
227
- }>;
228
- fact: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
229
- reusedIntegration: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
230
- }, z.core.$strict>;
231
- contentChange: z.ZodOptional<z.ZodObject<{
232
- kind: z.ZodLiteral<"candidate-content-changed">;
233
- target: z.ZodOptional<z.ZodString>;
234
- previousChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
235
- currentChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
236
- }, z.core.$strict>>;
237
- continuation: z.ZodOptional<z.ZodObject<{
238
- claimed: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>>>;
239
- stopped: z.ZodReadonly<z.ZodArray<z.ZodObject<{
240
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
241
- stop: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
242
- refusal: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
243
- kind: z.ZodEnum<{
244
- terminal: "terminal";
245
- "contract-missing": "contract-missing";
246
- "delivery-missing": "delivery-missing";
247
- }>;
248
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
249
- }, z.core.$strict>, z.ZodObject<{
250
- kind: z.ZodLiteral<"gates-unsatisfied">;
251
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
252
- unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
253
- gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
254
- current: z.ZodUnion<readonly [z.ZodObject<{
255
- kind: z.ZodLiteral<"missing">;
256
- }, z.core.$strict>, z.ZodObject<{
257
- kind: z.ZodLiteral<"attested">;
258
- verdict: z.ZodEnum<{
259
- satisfied: "satisfied";
260
- unsatisfied: "unsatisfied";
261
- }>;
262
- at: z.ZodString;
263
- summary: z.ZodOptional<z.ZodString>;
264
- }, z.core.$strict>, z.ZodObject<{
265
- kind: z.ZodLiteral<"stale">;
266
- priorVerdict: z.ZodEnum<{
267
- satisfied: "satisfied";
268
- unsatisfied: "unsatisfied";
269
- }>;
270
- reason: z.ZodOptional<z.ZodObject<{
271
- kind: z.ZodLiteral<"candidate-content-changed">;
272
- target: z.ZodOptional<z.ZodString>;
273
- previousChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
274
- currentChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
275
- }, z.core.$strict>>;
276
- }, z.core.$strict>]>;
277
- }, z.core.$strict>>>;
278
- target: z.ZodOptional<z.ZodString>;
279
- }, z.core.$strict>, z.ZodObject<{
280
- kind: z.ZodLiteral<"prerequisites-unsatisfied">;
281
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
282
- unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
283
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
284
- state: z.ZodEnum<{
285
- abandoned: "abandoned";
286
- missing: "missing";
287
- active: "active";
288
- }>;
289
- }, z.core.$strict>>>;
290
- }, z.core.$strict>]>, z.ZodObject<{
291
- kind: z.ZodLiteral<"checkout-not-followable">;
292
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
293
- target: z.ZodString;
294
- path: z.ZodString;
295
- reason: z.ZodLiteral<"untracked">;
296
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
297
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
298
- kind: z.ZodLiteral<"integration-failed">;
299
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
300
- reason: z.ZodEnum<{
301
- "not-based-on-target": "not-based-on-target";
302
- "unrelated-histories": "unrelated-histories";
303
- conflict: "conflict";
304
- }>;
305
- targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
306
- conflictPaths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
307
- }, z.core.$strict>, z.ZodTransform<{
308
- kind: "integration-failed";
309
- contractId: import("../core/facts/types.js").ContractId;
310
- reason: "not-based-on-target" | "unrelated-histories" | "conflict";
311
- targetHead: SnapshotId;
312
- } & {
313
- conflictPaths?: readonly string[];
314
- }, {
315
- kind: "integration-failed";
316
- contractId: import("../core/facts/types.js").ContractId;
317
- reason: "not-based-on-target" | "unrelated-histories" | "conflict";
318
- targetHead: SnapshotId;
319
- conflictPaths?: readonly string[] | undefined;
320
- }>>, z.ZodObject<{
321
- kind: z.ZodLiteral<"integration-unsupported">;
322
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
323
- requiredGit: z.ZodLiteral<"2.38">;
324
- }, z.core.$strict>]>, z.ZodObject<{
325
- kind: z.ZodLiteral<"target-missing">;
326
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
327
- }, z.core.$strict>]>;
328
- }, z.core.$strict>, z.ZodObject<{
329
- retry: z.ZodUnion<readonly [z.ZodObject<{
330
- kind: z.ZodEnum<{
331
- exhausted: "exhausted";
332
- collision: "collision";
333
- }>;
334
- }, z.core.$strict>, z.ZodObject<{
335
- kind: z.ZodLiteral<"publication-failed">;
336
- diagnostic: z.ZodString;
337
- }, z.core.$strict>]>;
338
- }, z.core.$strict>, z.ZodObject<{
339
- failure: z.ZodLiteral<"target-placement-failed">;
340
- diagnostic: z.ZodString;
341
- }, z.core.$strict>, z.ZodObject<{
342
- failure: z.ZodLiteral<"target-moved">;
343
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
344
- target: z.ZodString;
345
- integratedAt: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
346
- observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
347
- attempts: z.ZodNumber;
348
- observedTreeEqualsCandidate: z.ZodBoolean;
349
- }, z.core.$strict>, z.ZodObject<{
350
- failure: z.ZodLiteral<"target-moved">;
351
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
352
- target: z.ZodString;
353
- expected: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
354
- observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
355
- observedTreeEqualsCandidate: z.ZodBoolean;
356
- }, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
357
- refusal: z.ZodUnion<readonly [z.ZodObject<{
358
- kind: z.ZodEnum<{
359
- terminal: "terminal";
360
- "contract-missing": "contract-missing";
361
- }>;
362
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
363
- }, z.core.$strict>, z.ZodObject<{
364
- kind: z.ZodLiteral<"verification-declaration-invalid">;
365
- contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>>;
366
- }, z.core.$strict>]>;
367
- }, z.core.$strict>, z.ZodObject<{
368
- retry: z.ZodUnion<readonly [z.ZodObject<{
369
- kind: z.ZodEnum<{
370
- exhausted: "exhausted";
371
- collision: "collision";
372
- }>;
373
- }, z.core.$strict>, z.ZodObject<{
374
- kind: z.ZodLiteral<"publication-failed">;
375
- diagnostic: z.ZodString;
376
- }, z.core.$strict>]>;
377
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
378
- stdout: z.ZodOptional<z.ZodString>;
379
- stderr: z.ZodOptional<z.ZodString>;
380
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
381
- failure: z.ZodEnum<{
382
- cancelled: "cancelled";
383
- "unknown-exit": "unknown-exit";
384
- }>;
385
- }, z.core.$strict>, z.ZodObject<{
386
- stdout: z.ZodOptional<z.ZodString>;
387
- stderr: z.ZodOptional<z.ZodString>;
388
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
389
- failure: z.ZodEnum<{
390
- "spawn-error": "spawn-error";
391
- "candidate-unavailable": "candidate-unavailable";
392
- }>;
393
- diagnostic: z.ZodString;
394
- }, z.core.$strict>, z.ZodObject<{
395
- stdout: z.ZodOptional<z.ZodString>;
396
- stderr: z.ZodOptional<z.ZodString>;
397
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
398
- failure: z.ZodLiteral<"environment-failure">;
399
- diagnostic: z.ZodString;
400
- }, z.core.$strict>, z.ZodObject<{
401
- stdout: z.ZodOptional<z.ZodString>;
402
- stderr: z.ZodOptional<z.ZodString>;
403
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
404
- failure: z.ZodLiteral<"environment-failure">;
405
- name: z.ZodString;
406
- detail: z.ZodUnion<readonly [z.ZodObject<{
407
- kind: z.ZodLiteral<"exit">;
408
- code: z.ZodNumber;
409
- stdout: z.ZodString;
410
- stderr: z.ZodString;
411
- truncated: z.ZodBoolean;
412
- }, z.core.$strict>, z.ZodObject<{
413
- stdout: z.ZodOptional<z.ZodString>;
414
- stderr: z.ZodOptional<z.ZodString>;
415
- truncated: z.ZodOptional<z.ZodBoolean>;
416
- kind: z.ZodLiteral<"timeout">;
417
- }, z.core.$strict>, z.ZodObject<{
418
- stdout: z.ZodOptional<z.ZodString>;
419
- stderr: z.ZodOptional<z.ZodString>;
420
- truncated: z.ZodOptional<z.ZodBoolean>;
421
- kind: z.ZodLiteral<"unknown-exit">;
422
- }, z.core.$strict>, z.ZodObject<{
423
- kind: z.ZodLiteral<"spawn-error">;
424
- diagnostic: z.ZodString;
425
- }, z.core.$strict>]>;
426
- }, z.core.$strict>]>]>, z.ZodObject<{
427
- kind: z.ZodLiteral<"execution-stopped">;
428
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
429
- stage: z.ZodEnum<{
430
- admission: "admission";
431
- placement: "placement";
432
- verification: "verification";
433
- continuation: "continuation";
434
- reconciliation: "reconciliation";
435
- reintegration: "reintegration";
436
- }>;
437
- reason: z.ZodEnum<{
438
- failed: "failed";
439
- cancelled: "cancelled";
440
- }>;
441
- diagnostic: z.ZodString;
442
- }, z.core.$strict>, z.ZodObject<{
443
- kind: z.ZodLiteral<"already-terminal">;
444
- }, z.core.$strict>, z.ZodObject<{
445
- kind: z.ZodLiteral<"physical-lag">;
446
- lags: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
447
- kind: z.ZodLiteral<"worktree-retained">;
448
- path: z.ZodString;
449
- diagnostic: z.ZodOptional<z.ZodString>;
450
- }, z.core.$strict>, z.ZodObject<{
451
- kind: z.ZodLiteral<"worktree-follow-retained">;
452
- path: z.ZodString;
453
- tender: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
454
- head: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
455
- reason: z.ZodEnum<{
456
- "head-moved": "head-moved";
457
- "head-attached": "head-attached";
458
- "operation-in-progress": "operation-in-progress";
459
- "unsupported-parent-shape": "unsupported-parent-shape";
460
- }>;
461
- paths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
462
- }, z.core.$strict>, z.ZodObject<{
463
- kind: z.ZodLiteral<"unsealed-bytes">;
464
- path: z.ZodString;
465
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
466
- head: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
467
- }, z.core.$strict>, z.ZodObject<{
468
- kind: z.ZodLiteral<"target-checkout-retained">;
469
- path: z.ZodString;
470
- target: z.ZodString;
471
- diagnostic: z.ZodString;
472
- }, z.core.$strict>, z.ZodObject<{
473
- kind: z.ZodLiteral<"worktree-hook-failed">;
474
- phase: z.ZodEnum<{
475
- destroy: "destroy";
476
- create: "create";
477
- }>;
478
- path: z.ZodString;
479
- command: z.ZodNumber;
480
- name: z.ZodString;
481
- failure: z.ZodUnion<readonly [z.ZodObject<{
482
- kind: z.ZodLiteral<"exit">;
483
- code: z.ZodNumber;
484
- stdout: z.ZodString;
485
- stderr: z.ZodString;
486
- truncated: z.ZodBoolean;
487
- }, z.core.$strict>, z.ZodObject<{
488
- stdout: z.ZodOptional<z.ZodString>;
489
- stderr: z.ZodOptional<z.ZodString>;
490
- truncated: z.ZodOptional<z.ZodBoolean>;
491
- kind: z.ZodLiteral<"timeout">;
492
- }, z.core.$strict>, z.ZodObject<{
493
- stdout: z.ZodOptional<z.ZodString>;
494
- stderr: z.ZodOptional<z.ZodString>;
495
- truncated: z.ZodOptional<z.ZodBoolean>;
496
- kind: z.ZodLiteral<"unknown-exit">;
497
- }, z.core.$strict>, z.ZodObject<{
498
- kind: z.ZodLiteral<"spawn-error">;
499
- diagnostic: z.ZodString;
500
- }, z.core.$strict>]>;
501
- }, z.core.$strict>, z.ZodObject<{
502
- kind: z.ZodLiteral<"reconcile-failed">;
503
- stage: z.ZodEnum<{
504
- observation: "observation";
505
- effect: "effect";
506
- }>;
507
- diagnostic: z.ZodString;
508
- }, z.core.$strict>]>>>;
509
- }, z.core.$strict>]>;
510
- }, z.core.$strict>>>;
511
- }, z.core.$strict>>;
512
- note: z.ZodOptional<z.ZodString>;
513
- tenderSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
514
- integration: z.ZodObject<{
515
- predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
516
- snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
517
- changeId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
518
- }, z.core.$strict>;
519
- method: z.ZodLiteral<"squash">;
520
- policy: z.ZodObject<{
521
- requireBranchesToBeUpToDate: z.ZodBoolean;
522
- }, z.core.$strict>;
523
- }, z.core.$strict>;
524
- export type DeliveryValue = z.infer<typeof deliveryValueSchema>;
7
+ import type { ContinuationReport } from "./continuation.js";
8
+ export type DeliveryValue = DeliverData & CompletionEvidence & Readonly<{
9
+ leading: z.infer<typeof deliverLeadingSchema>;
10
+ contentChange?: z.infer<typeof candidateContentChangeSchema> | undefined;
11
+ continuation?: ContinuationReport | undefined;
12
+ }>;
525
13
  declare class DeliveryHandle {
526
14
  private readonly readDiff;
527
15
  readonly leading?: DeliveryValue["leading"];
528
16
  readonly contentChange?: DeliveryValue["contentChange"];
529
17
  readonly completion?: DeliveryValue["completion"];
530
- readonly verification?: DeliveryValue["verification"];
18
+ readonly gates?: DeliveryValue["gates"];
531
19
  readonly placement?: DeliveryValue["placement"];
532
20
  readonly continuation?: DeliveryValue["continuation"];
533
21
  readonly tenderSnapshot: SnapshotId;
@@ -535,7 +23,7 @@ declare class DeliveryHandle {
535
23
  readonly integration: DeliveryValue["integration"];
536
24
  readonly method: DeliveryValue["method"];
537
25
  readonly policy: DeliveryValue["policy"];
538
- constructor(identity: Pick<DeliveryValue, "tenderSnapshot" | "integration" | "method" | "policy">, readDiff: () => Promise<string | null>, outcomes?: Partial<Pick<DeliveryValue, "leading" | "contentChange" | "completion" | "verification" | "placement" | "continuation">>);
26
+ constructor(identity: Pick<DeliveryValue, "tenderSnapshot" | "integration" | "method" | "policy">, readDiff: () => Promise<string | null>, outcomes?: Partial<Pick<DeliveryValue, "leading" | "contentChange" | "completion" | "gates" | "placement" | "continuation">>);
539
27
  diff(): Promise<string | null>;
540
28
  }
541
29
  export type Delivery = DeliveryHandle;
@@ -1,15 +1,4 @@
1
- import { completionEvidenceSchema } from "../protocol/completion.js";
2
- import { deliverLeadingSchema } from "../protocol/deliver.js";
3
- import { candidateContentChangeSchema, deliverDataSchema, deliveryDiffOperation, } from "../protocol/operations.js";
4
- import { continuationReportSchema } from "./continuation.js";
5
- export const deliveryValueSchema = completionEvidenceSchema
6
- .extend({
7
- ...deliverDataSchema.shape,
8
- leading: deliverLeadingSchema,
9
- contentChange: candidateContentChangeSchema.optional(),
10
- continuation: continuationReportSchema.optional(),
11
- })
12
- .strict();
1
+ import { deliveryDiffOperation } from "../protocol/operations.js";
13
2
  class DeliveryHandle {
14
3
  readDiff;
15
4
  constructor(identity, readDiff, outcomes = {}) {
@@ -4,7 +4,7 @@ import { validated } from "./outcome.js";
4
4
  import { verificationDefinition } from "../body/decode.js";
5
5
  import { actorId } from "../core/facts/types.js";
6
6
  import { parseDebtId } from "../debt/identity.js";
7
- import { prepareVerificationDeclaration } from "../verification/declaration.js";
7
+ import { gateRequirements, prepareVerificationDeclaration } from "../verification/declaration.js";
8
8
  export function actorOption(actor) {
9
9
  if (actor === undefined)
10
10
  return {};
@@ -88,6 +88,7 @@ export function contractTerms(document, gates, after) {
88
88
  document: document.document,
89
89
  segments: document.segments,
90
90
  gates,
91
+ requirements: gateRequirements(gates, verificationDefinition(document)),
91
92
  after,
92
93
  };
93
94
  }
@@ -55,7 +55,11 @@ export declare class InvocationAccumulator implements ProtocolProgress {
55
55
  head(contract: ContractId): ContractHead | undefined;
56
56
  checkpoint(contract: ContractId): ContractCheckpoint | undefined;
57
57
  recordResidue(contract: ContractId, residue: ProgressResidue): void;
58
- recordVerification(contract: ContractId, snapshot: Parameters<ProtocolProgress["recordVerification"]>[1], result: VerificationResidue): void;
58
+ recordVerification(contract: ContractId, snapshot: Parameters<ProtocolProgress["recordVerification"]>[1], result: VerificationResidue, coordinate?: Readonly<{
59
+ requirement: string;
60
+ index: number;
61
+ }>): void;
62
+ recordVerificationCheck(contract: ContractId, check: import("../protocol/verify.js").VerificationCheck): void;
59
63
  /** Replace the current candidate's conclusions; accumulated resources are never erased. */
60
64
  recordCandidate(contract: ContractId, evidence: CompletionEvidence): void;
61
65
  /** The candidate's completion base, known before an optional observation can fail. */
@@ -3,7 +3,7 @@ import { encodeEntry } from "../core/facts/codec.js";
3
3
  import { AuthorityCorruptionError } from "../core/facts/errors.js";
4
4
  import { observeExecution, } from "../protocol/execution-observation.js";
5
5
  import { reconcileLagScope } from "./reconcile.js";
6
- const CANDIDATE_CONCLUSION_KEYS = ["completion", "verification", "placement"];
6
+ const CANDIDATE_CONCLUSION_KEYS = ["completion", "gates", "placement"];
7
7
  function entryKey(fact) {
8
8
  return `${fact.contract}\u0000${fact.entry}`;
9
9
  }
@@ -91,7 +91,7 @@ export class InvocationAccumulator {
91
91
  for (const failure of residue.seatClose ?? [])
92
92
  this.recordSeatClose(contract, failure);
93
93
  }
94
- recordVerification(contract, snapshot, result) {
94
+ recordVerification(contract, snapshot, result, coordinate) {
95
95
  if (result.cleanup !== undefined)
96
96
  this.records.push({
97
97
  kind: "cleanup",
@@ -100,6 +100,7 @@ export class InvocationAccumulator {
100
100
  kind: "verification-cleanup",
101
101
  contractId: contract,
102
102
  ...(snapshot === undefined ? {} : { snapshot }),
103
+ ...coordinate,
103
104
  failure: result.cleanup,
104
105
  },
105
106
  });
@@ -111,10 +112,16 @@ export class InvocationAccumulator {
111
112
  kind: "worktree-leak",
112
113
  contractId: contract,
113
114
  ...(snapshot === undefined ? {} : { snapshot }),
115
+ ...coordinate,
114
116
  leak: result.leak,
115
117
  },
116
118
  });
117
119
  }
120
+ recordVerificationCheck(contract, check) {
121
+ const previous = this.candidateConclusions.get(contract);
122
+ const checks = (previous?.checks ?? []);
123
+ this.extendConclusions(contract, { snapshot: check.snapshot, checks: [...checks, check] });
124
+ }
118
125
  /** Replace the current candidate's conclusions; accumulated resources are never erased. */
119
126
  recordCandidate(contract, evidence) {
120
127
  const next = { ...(this.candidateConclusions.get(contract) ?? {}) };