ushman-ledger 0.3.0 → 1.2.0

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 (80) hide show
  1. package/AGENTS.md +11 -7
  2. package/CHANGELOG.md +8 -12
  3. package/README.md +28 -57
  4. package/dist/archive-journal.d.ts +29 -18
  5. package/dist/archive-journal.d.ts.map +1 -1
  6. package/dist/archive-journal.js +17 -17
  7. package/dist/blobs.js +3 -3
  8. package/dist/builders.d.ts +79 -358
  9. package/dist/builders.d.ts.map +1 -1
  10. package/dist/builders.js +15 -60
  11. package/dist/cli.d.ts.map +1 -1
  12. package/dist/cli.js +227 -52
  13. package/dist/doctor.d.ts.map +1 -1
  14. package/dist/doctor.js +104 -4
  15. package/dist/handle.d.ts +4 -2
  16. package/dist/handle.d.ts.map +1 -1
  17. package/dist/handle.js +20 -15
  18. package/dist/helpers.d.ts +7 -0
  19. package/dist/helpers.d.ts.map +1 -0
  20. package/dist/helpers.js +38 -0
  21. package/dist/index.d.ts +4 -5
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +3 -4
  24. package/dist/lab-min.d.ts +7 -7
  25. package/dist/lab-min.d.ts.map +1 -1
  26. package/dist/lab-min.js +7 -9
  27. package/dist/list.d.ts +104 -303
  28. package/dist/list.d.ts.map +1 -1
  29. package/dist/note.d.ts +20 -0
  30. package/dist/note.d.ts.map +1 -1
  31. package/dist/note.js +5 -0
  32. package/dist/patch-resolver.d.ts +27 -0
  33. package/dist/patch-resolver.d.ts.map +1 -0
  34. package/dist/patch-resolver.js +184 -0
  35. package/dist/read-index.d.ts +45 -57
  36. package/dist/read-index.d.ts.map +1 -1
  37. package/dist/read-index.js +16 -34
  38. package/dist/record.d.ts.map +1 -1
  39. package/dist/record.js +19 -130
  40. package/dist/recovery.d.ts +19 -8
  41. package/dist/recovery.d.ts.map +1 -1
  42. package/dist/recovery.js +13 -13
  43. package/dist/render/migration-log.d.ts +3 -0
  44. package/dist/render/migration-log.d.ts.map +1 -0
  45. package/dist/render/migration-log.js +72 -0
  46. package/dist/render/retro.d.ts.map +1 -1
  47. package/dist/render/retro.js +41 -25
  48. package/dist/render/workspace-narrative.d.ts +6 -0
  49. package/dist/render/workspace-narrative.d.ts.map +1 -0
  50. package/dist/render/workspace-narrative.js +69 -0
  51. package/dist/schema/entry-core.d.ts +110 -0
  52. package/dist/schema/entry-core.d.ts.map +1 -0
  53. package/dist/schema/entry-core.js +143 -0
  54. package/dist/schema/entry-migrations.d.ts +3 -0
  55. package/dist/schema/entry-migrations.d.ts.map +1 -0
  56. package/dist/schema/entry-migrations.js +48 -0
  57. package/dist/schema/entry-read.d.ts +694 -0
  58. package/dist/schema/entry-read.d.ts.map +1 -0
  59. package/dist/schema/entry-read.js +92 -0
  60. package/dist/schema/entry-write.d.ts +865 -0
  61. package/dist/schema/entry-write.d.ts.map +1 -0
  62. package/dist/schema/entry-write.js +105 -0
  63. package/dist/schema/entry.d.ts +6 -3295
  64. package/dist/schema/entry.d.ts.map +1 -1
  65. package/dist/schema/entry.js +10 -619
  66. package/dist/schema/manifest.d.ts +28 -41
  67. package/dist/schema/manifest.d.ts.map +1 -1
  68. package/dist/schema/manifest.js +20 -24
  69. package/dist/schema/note.d.ts +3 -9
  70. package/dist/schema/note.d.ts.map +1 -1
  71. package/dist/schema/note.js +13 -2
  72. package/dist/storage/filesystem.d.ts +2 -1
  73. package/dist/storage/filesystem.d.ts.map +1 -1
  74. package/dist/storage/filesystem.js +6 -4
  75. package/dist/storage/lock-reclaimer.d.ts +2 -0
  76. package/dist/storage/lock-reclaimer.d.ts.map +1 -0
  77. package/dist/storage/lock-reclaimer.js +45 -0
  78. package/dist/version.d.ts +1 -1
  79. package/dist/version.js +1 -1
  80. package/package.json +3 -4
@@ -0,0 +1,865 @@
1
+ import * as v from 'valibot';
2
+ export declare const ToolInvocationRecordSchema: v.ObjectSchema<{
3
+ readonly args: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
4
+ readonly cwd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5
+ readonly exitCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
6
+ readonly kind: v.LiteralSchema<"tool-invocation", undefined>;
7
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
8
+ readonly emitter: v.ObjectSchema<{
9
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
10
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
11
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
12
+ }, undefined>;
13
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
14
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
15
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
16
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
17
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
18
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
19
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
20
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
21
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
22
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
23
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
24
+ }, v.UnknownSchema, undefined>, undefined>;
25
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
26
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
27
+ }, undefined>;
28
+ export declare const AgentPatchRecordSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
29
+ readonly agent: v.ObjectSchema<{
30
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
31
+ readonly sessionId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
32
+ }, undefined>;
33
+ readonly kind: v.LiteralSchema<"agent-patch", undefined>;
34
+ readonly diff: v.OptionalSchema<v.ObjectSchema<{
35
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
36
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
37
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
38
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
39
+ }, undefined>, undefined>;
40
+ readonly diffPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
41
+ readonly diffText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
42
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
43
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
44
+ readonly emitter: v.ObjectSchema<{
45
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
46
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
47
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
48
+ }, undefined>;
49
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
50
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
51
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
52
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
53
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
54
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
55
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
56
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
57
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
58
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
59
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
60
+ }, v.UnknownSchema, undefined>, undefined>;
61
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
62
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
63
+ }, undefined>, v.CheckAction<{
64
+ agent: {
65
+ name: string;
66
+ sessionId?: string | undefined;
67
+ };
68
+ kind: "agent-patch";
69
+ diff?: {
70
+ addedLines: number;
71
+ blobSha256: string;
72
+ bytes: number;
73
+ removedLines: number;
74
+ } | undefined;
75
+ diffPath?: string | undefined;
76
+ diffText?: string | undefined;
77
+ rationale: string;
78
+ details?: {
79
+ [x: string]: unknown;
80
+ } | undefined;
81
+ emitter: {
82
+ tool: string;
83
+ user?: string | undefined;
84
+ version: string;
85
+ };
86
+ idempotencyKey?: string | undefined;
87
+ links?: ({
88
+ affectedFiles?: string[] | undefined;
89
+ blobs?: string[] | undefined;
90
+ briefId?: string | undefined;
91
+ correctsLedgerId?: string | undefined;
92
+ gitRef?: string | undefined;
93
+ idempotencyKey?: string | undefined;
94
+ stripDecisionId?: string | undefined;
95
+ supersedesLedgerId?: string | undefined;
96
+ validatorVerdictId?: string | undefined;
97
+ } & {
98
+ [key: string]: unknown;
99
+ }) | undefined;
100
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
101
+ summary: string;
102
+ }, "patch records require at least one source (diff, diffPath, or diffText), and diffPath and diffText cannot be combined.">]>;
103
+ export declare const OperatorPatchRecordSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
104
+ readonly kind: v.LiteralSchema<"operator-patch", undefined>;
105
+ readonly operator: v.ObjectSchema<{
106
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
107
+ }, undefined>;
108
+ readonly diff: v.OptionalSchema<v.ObjectSchema<{
109
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
110
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
111
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
112
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
113
+ }, undefined>, undefined>;
114
+ readonly diffPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
115
+ readonly diffText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
116
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
117
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
118
+ readonly emitter: v.ObjectSchema<{
119
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
120
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
121
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
122
+ }, undefined>;
123
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
124
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
125
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
126
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
127
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
128
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
129
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
130
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
131
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
132
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
133
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
134
+ }, v.UnknownSchema, undefined>, undefined>;
135
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
136
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
137
+ }, undefined>, v.CheckAction<{
138
+ kind: "operator-patch";
139
+ operator: {
140
+ name: string;
141
+ };
142
+ diff?: {
143
+ addedLines: number;
144
+ blobSha256: string;
145
+ bytes: number;
146
+ removedLines: number;
147
+ } | undefined;
148
+ diffPath?: string | undefined;
149
+ diffText?: string | undefined;
150
+ rationale: string;
151
+ details?: {
152
+ [x: string]: unknown;
153
+ } | undefined;
154
+ emitter: {
155
+ tool: string;
156
+ user?: string | undefined;
157
+ version: string;
158
+ };
159
+ idempotencyKey?: string | undefined;
160
+ links?: ({
161
+ affectedFiles?: string[] | undefined;
162
+ blobs?: string[] | undefined;
163
+ briefId?: string | undefined;
164
+ correctsLedgerId?: string | undefined;
165
+ gitRef?: string | undefined;
166
+ idempotencyKey?: string | undefined;
167
+ stripDecisionId?: string | undefined;
168
+ supersedesLedgerId?: string | undefined;
169
+ validatorVerdictId?: string | undefined;
170
+ } & {
171
+ [key: string]: unknown;
172
+ }) | undefined;
173
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
174
+ summary: string;
175
+ }, "patch records require at least one source (diff, diffPath, or diffText), and diffPath and diffText cannot be combined.">]>;
176
+ export declare const OperatorDecisionRecordSchema: v.ObjectSchema<{
177
+ readonly kind: v.LiteralSchema<"operator-decision", undefined>;
178
+ readonly payload: v.ObjectSchema<{
179
+ readonly action: v.PicklistSchema<readonly ["bypass-doctor", "skip-check", "override-strip-decision", "override-ship-state", "manual-parity-assertion", "ledger-hand-edit", "escalation"], undefined>;
180
+ readonly checkId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
181
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
182
+ }, undefined>;
183
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
184
+ readonly emitter: v.ObjectSchema<{
185
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
186
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
187
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
188
+ }, undefined>;
189
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
190
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
191
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
192
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
193
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
194
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
195
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
196
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
197
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
198
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
199
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
200
+ }, v.UnknownSchema, undefined>, undefined>;
201
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
202
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
203
+ }, undefined>;
204
+ export declare const ValidatorResultRecordSchema: v.ObjectSchema<{
205
+ readonly kind: v.LiteralSchema<"validator-result", undefined>;
206
+ readonly metrics: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
207
+ readonly resultPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
208
+ readonly validator: v.PicklistSchema<["parity", "equiv", "characterize", "verify", "doctor"], undefined>;
209
+ readonly verdict: v.PicklistSchema<["green", "yellow", "red"], undefined>;
210
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
211
+ readonly emitter: v.ObjectSchema<{
212
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
213
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
214
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
215
+ }, undefined>;
216
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
217
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
218
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
219
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
220
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
221
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
222
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
223
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
224
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
225
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
226
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
227
+ }, v.UnknownSchema, undefined>, undefined>;
228
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
229
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
230
+ }, undefined>;
231
+ export declare const RuntimeEventRecordSchema: v.ObjectSchema<{
232
+ readonly kind: v.LiteralSchema<"runtime-event", undefined>;
233
+ readonly level: v.PicklistSchema<["info", "warn", "error"], undefined>;
234
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
235
+ readonly source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
236
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
237
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
238
+ readonly emitter: v.ObjectSchema<{
239
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
240
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
241
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
242
+ }, undefined>;
243
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
244
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
245
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
246
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
247
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
248
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
249
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
250
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
251
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
252
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
253
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
254
+ }, v.UnknownSchema, undefined>, undefined>;
255
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
256
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
257
+ }, undefined>;
258
+ export declare const NoteRecordSchema: v.ObjectSchema<{
259
+ readonly body: v.StringSchema<undefined>;
260
+ readonly kind: v.LiteralSchema<"note", undefined>;
261
+ readonly subkind: v.PicklistSchema<["regression", "automation", "retro", "operator", "tooling-gap", "cleanup-wave", "verified-flow", "open-issue", "decomposition-wave", "semantic-cleanup-summary"], undefined>;
262
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
263
+ readonly emitter: v.ObjectSchema<{
264
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
265
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
266
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
267
+ }, undefined>;
268
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
269
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
270
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
271
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
272
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
273
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
274
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
275
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
276
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
277
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
278
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
279
+ }, v.UnknownSchema, undefined>, undefined>;
280
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
281
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
282
+ }, undefined>;
283
+ export declare const CorrectionRecordSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
284
+ readonly kind: v.LiteralSchema<"correction", undefined>;
285
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
286
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
287
+ readonly emitter: v.ObjectSchema<{
288
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
289
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
290
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
291
+ }, undefined>;
292
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
293
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
294
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
295
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
296
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
297
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
298
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
299
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
300
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
301
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
302
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
303
+ }, v.UnknownSchema, undefined>, undefined>;
304
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
305
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
306
+ }, undefined>, v.CheckAction<{
307
+ kind: "correction";
308
+ rationale: string;
309
+ details?: {
310
+ [x: string]: unknown;
311
+ } | undefined;
312
+ emitter: {
313
+ tool: string;
314
+ user?: string | undefined;
315
+ version: string;
316
+ };
317
+ idempotencyKey?: string | undefined;
318
+ links?: ({
319
+ affectedFiles?: string[] | undefined;
320
+ blobs?: string[] | undefined;
321
+ briefId?: string | undefined;
322
+ correctsLedgerId?: string | undefined;
323
+ gitRef?: string | undefined;
324
+ idempotencyKey?: string | undefined;
325
+ stripDecisionId?: string | undefined;
326
+ supersedesLedgerId?: string | undefined;
327
+ validatorVerdictId?: string | undefined;
328
+ } & {
329
+ [key: string]: unknown;
330
+ }) | undefined;
331
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
332
+ summary: string;
333
+ }, "correction records require links.correctsLedgerId">]>;
334
+ export declare const StripDecisionRevertedRecordSchema: v.ObjectSchema<{
335
+ readonly kind: v.LiteralSchema<"strip-decision-reverted", undefined>;
336
+ readonly payload: v.ObjectSchema<{
337
+ readonly invalidatedStages: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["intake", "seed", "vendor-extract", "cleanup", "parity", "characterize"], undefined>, undefined>, undefined>;
338
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
339
+ readonly stripDecisionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
340
+ }, undefined>;
341
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
342
+ readonly emitter: v.ObjectSchema<{
343
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
344
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
345
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
346
+ }, undefined>;
347
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
348
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
349
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
350
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
351
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
352
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
353
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
354
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
355
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
356
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
357
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
358
+ }, v.UnknownSchema, undefined>, undefined>;
359
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
360
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
361
+ }, undefined>;
362
+ export declare const ChangeLogRecordSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
363
+ readonly commandsRun: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
364
+ readonly filesChanged: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
365
+ readonly added: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
366
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>;
367
+ readonly removed: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
368
+ }, undefined>, undefined>, readonly []>;
369
+ readonly hypothesis: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
370
+ readonly kind: v.LiteralSchema<"change-log", undefined>;
371
+ readonly parityStatus: v.OptionalSchema<v.PicklistSchema<readonly ["green", "yellow", "red", "not-run"], undefined>, undefined>;
372
+ readonly rollbackPlan: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
373
+ readonly rollsBack: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
374
+ readonly smokeNotes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
375
+ readonly smokeResult: v.OptionalSchema<v.PicklistSchema<readonly ["pass", "fail", "partial", "not-run"], undefined>, undefined>;
376
+ readonly subkind: v.PicklistSchema<readonly ["pre-change-checkpoint", "semantic-cleanup", "vendor-extract", "decomposition", "rollback", "hotfix", "smoke"], undefined>;
377
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
378
+ readonly emitter: v.ObjectSchema<{
379
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
380
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
381
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
382
+ }, undefined>;
383
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
384
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
385
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
386
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
387
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
388
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
389
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
390
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
391
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
392
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
393
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
394
+ }, v.UnknownSchema, undefined>, undefined>;
395
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
396
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
397
+ }, undefined>, v.CheckAction<{
398
+ commandsRun?: string[] | undefined;
399
+ filesChanged: {
400
+ added?: number | undefined;
401
+ path: string;
402
+ removed?: number | undefined;
403
+ }[];
404
+ hypothesis?: string | undefined;
405
+ kind: "change-log";
406
+ parityStatus?: "not-run" | "green" | "yellow" | "red" | undefined;
407
+ rollbackPlan?: string | undefined;
408
+ rollsBack?: string | undefined;
409
+ smokeNotes?: string | undefined;
410
+ smokeResult?: "pass" | "fail" | "partial" | "not-run" | undefined;
411
+ subkind: "vendor-extract" | "pre-change-checkpoint" | "semantic-cleanup" | "decomposition" | "rollback" | "hotfix" | "smoke";
412
+ details?: {
413
+ [x: string]: unknown;
414
+ } | undefined;
415
+ emitter: {
416
+ tool: string;
417
+ user?: string | undefined;
418
+ version: string;
419
+ };
420
+ idempotencyKey?: string | undefined;
421
+ links?: ({
422
+ affectedFiles?: string[] | undefined;
423
+ blobs?: string[] | undefined;
424
+ briefId?: string | undefined;
425
+ correctsLedgerId?: string | undefined;
426
+ gitRef?: string | undefined;
427
+ idempotencyKey?: string | undefined;
428
+ stripDecisionId?: string | undefined;
429
+ supersedesLedgerId?: string | undefined;
430
+ validatorVerdictId?: string | undefined;
431
+ } & {
432
+ [key: string]: unknown;
433
+ }) | undefined;
434
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
435
+ summary: string;
436
+ }, "change-log rollback records require rollsBack">]>;
437
+ export declare const LedgerRecordSchema: v.VariantSchema<"kind", [v.ObjectSchema<{
438
+ readonly args: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
439
+ readonly cwd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
440
+ readonly exitCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
441
+ readonly kind: v.LiteralSchema<"tool-invocation", undefined>;
442
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
443
+ readonly emitter: v.ObjectSchema<{
444
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
445
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
446
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
447
+ }, undefined>;
448
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
449
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
450
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
451
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
452
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
453
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
454
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
455
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
456
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
457
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
458
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
459
+ }, v.UnknownSchema, undefined>, undefined>;
460
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
461
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
462
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
463
+ readonly agent: v.ObjectSchema<{
464
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
465
+ readonly sessionId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
466
+ }, undefined>;
467
+ readonly kind: v.LiteralSchema<"agent-patch", undefined>;
468
+ readonly diff: v.OptionalSchema<v.ObjectSchema<{
469
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
470
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
471
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
472
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
473
+ }, undefined>, undefined>;
474
+ readonly diffPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
475
+ readonly diffText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
476
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
477
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
478
+ readonly emitter: v.ObjectSchema<{
479
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
480
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
481
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
482
+ }, undefined>;
483
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
484
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
485
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
486
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
487
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
488
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
489
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
490
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
491
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
492
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
493
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
494
+ }, v.UnknownSchema, undefined>, undefined>;
495
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
496
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
497
+ }, undefined>, v.CheckAction<{
498
+ agent: {
499
+ name: string;
500
+ sessionId?: string | undefined;
501
+ };
502
+ kind: "agent-patch";
503
+ diff?: {
504
+ addedLines: number;
505
+ blobSha256: string;
506
+ bytes: number;
507
+ removedLines: number;
508
+ } | undefined;
509
+ diffPath?: string | undefined;
510
+ diffText?: string | undefined;
511
+ rationale: string;
512
+ details?: {
513
+ [x: string]: unknown;
514
+ } | undefined;
515
+ emitter: {
516
+ tool: string;
517
+ user?: string | undefined;
518
+ version: string;
519
+ };
520
+ idempotencyKey?: string | undefined;
521
+ links?: ({
522
+ affectedFiles?: string[] | undefined;
523
+ blobs?: string[] | undefined;
524
+ briefId?: string | undefined;
525
+ correctsLedgerId?: string | undefined;
526
+ gitRef?: string | undefined;
527
+ idempotencyKey?: string | undefined;
528
+ stripDecisionId?: string | undefined;
529
+ supersedesLedgerId?: string | undefined;
530
+ validatorVerdictId?: string | undefined;
531
+ } & {
532
+ [key: string]: unknown;
533
+ }) | undefined;
534
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
535
+ summary: string;
536
+ }, "patch records require at least one source (diff, diffPath, or diffText), and diffPath and diffText cannot be combined.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
537
+ readonly kind: v.LiteralSchema<"operator-patch", undefined>;
538
+ readonly operator: v.ObjectSchema<{
539
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
540
+ }, undefined>;
541
+ readonly diff: v.OptionalSchema<v.ObjectSchema<{
542
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
543
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
544
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
545
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
546
+ }, undefined>, undefined>;
547
+ readonly diffPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
548
+ readonly diffText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
549
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
550
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
551
+ readonly emitter: v.ObjectSchema<{
552
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
553
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
554
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
555
+ }, undefined>;
556
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
557
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
558
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
559
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
560
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
561
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
562
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
563
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
564
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
565
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
566
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
567
+ }, v.UnknownSchema, undefined>, undefined>;
568
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
569
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
570
+ }, undefined>, v.CheckAction<{
571
+ kind: "operator-patch";
572
+ operator: {
573
+ name: string;
574
+ };
575
+ diff?: {
576
+ addedLines: number;
577
+ blobSha256: string;
578
+ bytes: number;
579
+ removedLines: number;
580
+ } | undefined;
581
+ diffPath?: string | undefined;
582
+ diffText?: string | undefined;
583
+ rationale: string;
584
+ details?: {
585
+ [x: string]: unknown;
586
+ } | undefined;
587
+ emitter: {
588
+ tool: string;
589
+ user?: string | undefined;
590
+ version: string;
591
+ };
592
+ idempotencyKey?: string | undefined;
593
+ links?: ({
594
+ affectedFiles?: string[] | undefined;
595
+ blobs?: string[] | undefined;
596
+ briefId?: string | undefined;
597
+ correctsLedgerId?: string | undefined;
598
+ gitRef?: string | undefined;
599
+ idempotencyKey?: string | undefined;
600
+ stripDecisionId?: string | undefined;
601
+ supersedesLedgerId?: string | undefined;
602
+ validatorVerdictId?: string | undefined;
603
+ } & {
604
+ [key: string]: unknown;
605
+ }) | undefined;
606
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
607
+ summary: string;
608
+ }, "patch records require at least one source (diff, diffPath, or diffText), and diffPath and diffText cannot be combined.">]>, v.ObjectSchema<{
609
+ readonly kind: v.LiteralSchema<"operator-decision", undefined>;
610
+ readonly payload: v.ObjectSchema<{
611
+ readonly action: v.PicklistSchema<readonly ["bypass-doctor", "skip-check", "override-strip-decision", "override-ship-state", "manual-parity-assertion", "ledger-hand-edit", "escalation"], undefined>;
612
+ readonly checkId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
613
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
614
+ }, undefined>;
615
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
616
+ readonly emitter: v.ObjectSchema<{
617
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
618
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
619
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
620
+ }, undefined>;
621
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
622
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
623
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
624
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
625
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
626
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
627
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
628
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
629
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
630
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
631
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
632
+ }, v.UnknownSchema, undefined>, undefined>;
633
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
634
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
635
+ }, undefined>, v.ObjectSchema<{
636
+ readonly kind: v.LiteralSchema<"validator-result", undefined>;
637
+ readonly metrics: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
638
+ readonly resultPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
639
+ readonly validator: v.PicklistSchema<["parity", "equiv", "characterize", "verify", "doctor"], undefined>;
640
+ readonly verdict: v.PicklistSchema<["green", "yellow", "red"], undefined>;
641
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
642
+ readonly emitter: v.ObjectSchema<{
643
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
644
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
645
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
646
+ }, undefined>;
647
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
648
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
649
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
650
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
651
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
652
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
653
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
654
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
655
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
656
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
657
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
658
+ }, v.UnknownSchema, undefined>, undefined>;
659
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
660
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
661
+ }, undefined>, v.ObjectSchema<{
662
+ readonly kind: v.LiteralSchema<"runtime-event", undefined>;
663
+ readonly level: v.PicklistSchema<["info", "warn", "error"], undefined>;
664
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
665
+ readonly source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
666
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
667
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
668
+ readonly emitter: v.ObjectSchema<{
669
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
670
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
671
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
672
+ }, undefined>;
673
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
674
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
675
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
676
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
677
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
678
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
679
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
680
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
681
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
682
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
683
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
684
+ }, v.UnknownSchema, undefined>, undefined>;
685
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
686
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
687
+ }, undefined>, v.ObjectSchema<{
688
+ readonly body: v.StringSchema<undefined>;
689
+ readonly kind: v.LiteralSchema<"note", undefined>;
690
+ readonly subkind: v.PicklistSchema<["regression", "automation", "retro", "operator", "tooling-gap", "cleanup-wave", "verified-flow", "open-issue", "decomposition-wave", "semantic-cleanup-summary"], undefined>;
691
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
692
+ readonly emitter: v.ObjectSchema<{
693
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
694
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
695
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
696
+ }, undefined>;
697
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
698
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
699
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
700
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
701
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
702
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
703
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
704
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
705
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
706
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
707
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
708
+ }, v.UnknownSchema, undefined>, undefined>;
709
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
710
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
711
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
712
+ readonly kind: v.LiteralSchema<"correction", undefined>;
713
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
714
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
715
+ readonly emitter: v.ObjectSchema<{
716
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
717
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
718
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
719
+ }, undefined>;
720
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
721
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
722
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
723
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
724
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
725
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
726
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
727
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
728
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
729
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
730
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
731
+ }, v.UnknownSchema, undefined>, undefined>;
732
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
733
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
734
+ }, undefined>, v.CheckAction<{
735
+ kind: "correction";
736
+ rationale: string;
737
+ details?: {
738
+ [x: string]: unknown;
739
+ } | undefined;
740
+ emitter: {
741
+ tool: string;
742
+ user?: string | undefined;
743
+ version: string;
744
+ };
745
+ idempotencyKey?: string | undefined;
746
+ links?: ({
747
+ affectedFiles?: string[] | undefined;
748
+ blobs?: string[] | undefined;
749
+ briefId?: string | undefined;
750
+ correctsLedgerId?: string | undefined;
751
+ gitRef?: string | undefined;
752
+ idempotencyKey?: string | undefined;
753
+ stripDecisionId?: string | undefined;
754
+ supersedesLedgerId?: string | undefined;
755
+ validatorVerdictId?: string | undefined;
756
+ } & {
757
+ [key: string]: unknown;
758
+ }) | undefined;
759
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
760
+ summary: string;
761
+ }, "correction records require links.correctsLedgerId">]>, v.ObjectSchema<{
762
+ readonly kind: v.LiteralSchema<"strip-decision-reverted", undefined>;
763
+ readonly payload: v.ObjectSchema<{
764
+ readonly invalidatedStages: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["intake", "seed", "vendor-extract", "cleanup", "parity", "characterize"], undefined>, undefined>, undefined>;
765
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
766
+ readonly stripDecisionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
767
+ }, undefined>;
768
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
769
+ readonly emitter: v.ObjectSchema<{
770
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
771
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
772
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
773
+ }, undefined>;
774
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
775
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
776
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
777
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
778
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
779
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
780
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
781
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
782
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
783
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
784
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
785
+ }, v.UnknownSchema, undefined>, undefined>;
786
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
787
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
788
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
789
+ readonly commandsRun: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
790
+ readonly filesChanged: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
791
+ readonly added: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
792
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>;
793
+ readonly removed: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
794
+ }, undefined>, undefined>, readonly []>;
795
+ readonly hypothesis: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
796
+ readonly kind: v.LiteralSchema<"change-log", undefined>;
797
+ readonly parityStatus: v.OptionalSchema<v.PicklistSchema<readonly ["green", "yellow", "red", "not-run"], undefined>, undefined>;
798
+ readonly rollbackPlan: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
799
+ readonly rollsBack: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
800
+ readonly smokeNotes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
801
+ readonly smokeResult: v.OptionalSchema<v.PicklistSchema<readonly ["pass", "fail", "partial", "not-run"], undefined>, undefined>;
802
+ readonly subkind: v.PicklistSchema<readonly ["pre-change-checkpoint", "semantic-cleanup", "vendor-extract", "decomposition", "rollback", "hotfix", "smoke"], undefined>;
803
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
804
+ readonly emitter: v.ObjectSchema<{
805
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
806
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
807
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
808
+ }, undefined>;
809
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
810
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
811
+ readonly affectedFiles: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.CheckAction<string, "Expected a normalized workspace-relative path.">]>, undefined>, undefined>;
812
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
813
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
814
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
815
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
816
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
817
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
818
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
819
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
820
+ }, v.UnknownSchema, undefined>, undefined>;
821
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
822
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
823
+ }, undefined>, v.CheckAction<{
824
+ commandsRun?: string[] | undefined;
825
+ filesChanged: {
826
+ added?: number | undefined;
827
+ path: string;
828
+ removed?: number | undefined;
829
+ }[];
830
+ hypothesis?: string | undefined;
831
+ kind: "change-log";
832
+ parityStatus?: "not-run" | "green" | "yellow" | "red" | undefined;
833
+ rollbackPlan?: string | undefined;
834
+ rollsBack?: string | undefined;
835
+ smokeNotes?: string | undefined;
836
+ smokeResult?: "pass" | "fail" | "partial" | "not-run" | undefined;
837
+ subkind: "vendor-extract" | "pre-change-checkpoint" | "semantic-cleanup" | "decomposition" | "rollback" | "hotfix" | "smoke";
838
+ details?: {
839
+ [x: string]: unknown;
840
+ } | undefined;
841
+ emitter: {
842
+ tool: string;
843
+ user?: string | undefined;
844
+ version: string;
845
+ };
846
+ idempotencyKey?: string | undefined;
847
+ links?: ({
848
+ affectedFiles?: string[] | undefined;
849
+ blobs?: string[] | undefined;
850
+ briefId?: string | undefined;
851
+ correctsLedgerId?: string | undefined;
852
+ gitRef?: string | undefined;
853
+ idempotencyKey?: string | undefined;
854
+ stripDecisionId?: string | undefined;
855
+ supersedesLedgerId?: string | undefined;
856
+ validatorVerdictId?: string | undefined;
857
+ } & {
858
+ [key: string]: unknown;
859
+ }) | undefined;
860
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
861
+ summary: string;
862
+ }, "change-log rollback records require rollsBack">]>], undefined>;
863
+ export type ChangeLogRecord = v.InferOutput<typeof ChangeLogRecordSchema>;
864
+ export type LedgerRecord = v.InferOutput<typeof LedgerRecordSchema>;
865
+ //# sourceMappingURL=entry-write.d.ts.map