ushman-ledger 0.3.0 → 1.1.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 (44) hide show
  1. package/CHANGELOG.md +4 -14
  2. package/README.md +8 -56
  3. package/dist/archive-journal.d.ts +29 -18
  4. package/dist/archive-journal.d.ts.map +1 -1
  5. package/dist/archive-journal.js +17 -17
  6. package/dist/builders.d.ts +52 -374
  7. package/dist/builders.d.ts.map +1 -1
  8. package/dist/builders.js +10 -60
  9. package/dist/cli.d.ts.map +1 -1
  10. package/dist/cli.js +8 -14
  11. package/dist/handle.d.ts +2 -2
  12. package/dist/handle.d.ts.map +1 -1
  13. package/dist/handle.js +1 -14
  14. package/dist/index.d.ts +3 -5
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +2 -4
  17. package/dist/lab-min.d.ts +7 -7
  18. package/dist/lab-min.d.ts.map +1 -1
  19. package/dist/lab-min.js +7 -9
  20. package/dist/list.d.ts +84 -325
  21. package/dist/list.d.ts.map +1 -1
  22. package/dist/read-index.d.ts +45 -57
  23. package/dist/read-index.d.ts.map +1 -1
  24. package/dist/read-index.js +16 -34
  25. package/dist/record.d.ts.map +1 -1
  26. package/dist/record.js +27 -114
  27. package/dist/recovery.d.ts +19 -8
  28. package/dist/recovery.d.ts.map +1 -1
  29. package/dist/recovery.js +13 -13
  30. package/dist/render/retro.d.ts.map +1 -1
  31. package/dist/render/retro.js +1 -4
  32. package/dist/schema/entry.d.ts +1365 -3291
  33. package/dist/schema/entry.d.ts.map +1 -1
  34. package/dist/schema/entry.js +184 -516
  35. package/dist/schema/manifest.d.ts +28 -41
  36. package/dist/schema/manifest.d.ts.map +1 -1
  37. package/dist/schema/manifest.js +20 -24
  38. package/dist/schema/note.d.ts +3 -9
  39. package/dist/schema/note.d.ts.map +1 -1
  40. package/dist/schema/note.js +2 -2
  41. package/dist/storage/filesystem.d.ts +0 -1
  42. package/dist/storage/filesystem.d.ts.map +1 -1
  43. package/dist/storage/filesystem.js +4 -4
  44. package/package.json +3 -4
@@ -1,3298 +1,1372 @@
1
- import { z } from 'zod';
1
+ import * as v from 'valibot';
2
2
  export declare const LedgerSchemaVersion: "ushman-ledger-entry/v1";
3
3
  export declare const LEDGER_PHASES: readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"];
4
- export declare const LEDGER_KINDS: readonly ["tool-invocation", "agent-patch", "operator-patch", "stage-transition", "operator-decision", "validator-result", "runtime-event", "note", "correction", "strip-decision-reverted", "descope-brief", "merge-return", "merge-return-rejected", "revert", "rollback", "rework.test_retired"];
5
- export declare const STAGE_TRANSITION_STAGES: readonly ["intake", "seed", "vendor-extract", "cleanup", "parity", "characterize"];
4
+ export declare const LEDGER_KINDS: readonly ["tool-invocation", "agent-patch", "operator-patch", "operator-decision", "validator-result", "runtime-event", "note", "correction", "strip-decision-reverted"];
6
5
  export declare const OPERATOR_DECISION_ACTIONS: readonly ["bypass-doctor", "skip-check", "override-strip-decision", "override-ship-state", "manual-parity-assertion", "ledger-hand-edit", "escalation"];
7
- declare const LegacyOperatorDecisionTypeSchema: z.ZodEnum<{
8
- "strip-decision": "strip-decision";
9
- "strip-decision-revised": "strip-decision-revised";
10
- "vendor-boundary": "vendor-boundary";
11
- "intent-exclusion": "intent-exclusion";
12
- other: "other";
13
- }>;
14
- export declare const mapLegacyDecisionTypeToAction: (decisionType: z.infer<typeof LegacyOperatorDecisionTypeSchema>) => "override-strip-decision" | "escalation";
15
- export declare const LedgerPhaseSchema: z.ZodEnum<{
16
- seed: "seed";
17
- capture: "capture";
18
- intake: "intake";
19
- "vendor-extract": "vendor-extract";
20
- cleanup: "cleanup";
21
- parity: "parity";
22
- characterize: "characterize";
23
- equiv: "equiv";
24
- analyze: "analyze";
25
- recover: "recover";
26
- ship: "ship";
27
- migration: "migration";
28
- }>;
29
- export declare const StageTransitionStageSchema: z.ZodEnum<{
30
- seed: "seed";
31
- intake: "intake";
32
- "vendor-extract": "vendor-extract";
33
- cleanup: "cleanup";
34
- parity: "parity";
35
- characterize: "characterize";
36
- }>;
37
- export declare const OperatorDecisionActionSchema: z.ZodEnum<{
38
- "bypass-doctor": "bypass-doctor";
39
- "skip-check": "skip-check";
40
- "override-strip-decision": "override-strip-decision";
41
- "override-ship-state": "override-ship-state";
42
- "manual-parity-assertion": "manual-parity-assertion";
43
- "ledger-hand-edit": "ledger-hand-edit";
44
- escalation: "escalation";
45
- }>;
46
- export declare const EmitterSchema: z.ZodObject<{
47
- tool: z.ZodString;
48
- user: z.ZodOptional<z.ZodString>;
49
- version: z.ZodString;
50
- }, z.core.$strip>;
51
- export declare const LedgerLinksSchema: z.ZodObject<{
52
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
- briefId: z.ZodOptional<z.ZodString>;
55
- correctsLedgerId: z.ZodOptional<z.ZodString>;
56
- gitRef: z.ZodOptional<z.ZodString>;
57
- idempotencyKey: z.ZodOptional<z.ZodString>;
58
- stripDecisionId: z.ZodOptional<z.ZodString>;
59
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
60
- validatorVerdictId: z.ZodOptional<z.ZodString>;
61
- }, z.core.$catchall<z.ZodUnknown>>;
62
- export declare const PatchHunkSchema: z.ZodObject<{
63
- endLine: z.ZodNumber;
64
- path: z.ZodString;
65
- startLine: z.ZodNumber;
66
- }, z.core.$strip>;
67
- export declare const PatchPayloadSchema: z.ZodObject<{
68
- diff: z.ZodOptional<z.ZodString>;
69
- diffSha256: z.ZodString;
70
- fileSha256After: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
71
- fileSha256Before: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
72
- hunks: z.ZodDefault<z.ZodArray<z.ZodObject<{
73
- endLine: z.ZodNumber;
74
- path: z.ZodString;
75
- startLine: z.ZodNumber;
76
- }, z.core.$strip>>>;
77
- touchedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
78
- }, z.core.$strip>;
79
- export declare const PatchPayloadWriteSchema: z.ZodObject<{
80
- diff: z.ZodOptional<z.ZodString>;
81
- diffSha256: z.ZodString;
82
- fileSha256After: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
83
- fileSha256Before: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
84
- hunks: z.ZodDefault<z.ZodArray<z.ZodObject<{
85
- endLine: z.ZodNumber;
86
- path: z.ZodString;
87
- startLine: z.ZodNumber;
88
- }, z.core.$strip>>>;
89
- touchedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
90
- }, z.core.$strip>;
91
- export declare const OperatorDecisionPayloadSchema: z.ZodObject<{
92
- action: z.ZodEnum<{
93
- "bypass-doctor": "bypass-doctor";
94
- "skip-check": "skip-check";
95
- "override-strip-decision": "override-strip-decision";
96
- "override-ship-state": "override-ship-state";
97
- "manual-parity-assertion": "manual-parity-assertion";
98
- "ledger-hand-edit": "ledger-hand-edit";
99
- escalation: "escalation";
100
- }>;
101
- checkId: z.ZodOptional<z.ZodString>;
102
- rationale: z.ZodString;
103
- }, z.core.$strip>;
104
- export declare const ValidatorResultPayloadSchema: z.ZodObject<{
105
- id: z.ZodString;
106
- }, z.core.$strip>;
107
- export declare const CorrectionPayloadSchema: z.ZodObject<{
108
- correctsValidatorResultId: z.ZodOptional<z.ZodString>;
109
- }, z.core.$strip>;
110
- export declare const StageTransitionPayloadSchema: z.ZodObject<{
111
- doctorBaselineId: z.ZodOptional<z.ZodString>;
112
- endedAt: z.ZodString;
113
- exitCode: z.ZodNumber;
114
- stage: z.ZodEnum<{
115
- seed: "seed";
116
- intake: "intake";
117
- "vendor-extract": "vendor-extract";
118
- cleanup: "cleanup";
119
- parity: "parity";
120
- characterize: "characterize";
121
- }>;
122
- startedAt: z.ZodString;
123
- }, z.core.$strip>;
124
- export declare const StripDecisionRevertedPayloadSchema: z.ZodObject<{
125
- invalidatedStages: z.ZodOptional<z.ZodArray<z.ZodEnum<{
126
- seed: "seed";
127
- intake: "intake";
128
- "vendor-extract": "vendor-extract";
129
- cleanup: "cleanup";
130
- parity: "parity";
131
- characterize: "characterize";
132
- }>>>;
133
- rationale: z.ZodString;
134
- stripDecisionId: z.ZodString;
135
- }, z.core.$strip>;
136
- export declare const DescopeBriefPayloadSchema: z.ZodObject<{
137
- briefId: z.ZodString;
138
- reason: z.ZodOptional<z.ZodString>;
139
- round: z.ZodOptional<z.ZodNumber>;
140
- stripDecisionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
- }, z.core.$strip>;
142
- export declare const MergeReturnPayloadSchema: z.ZodObject<{
143
- briefId: z.ZodOptional<z.ZodString>;
144
- returnId: z.ZodString;
145
- source: z.ZodOptional<z.ZodString>;
146
- }, z.core.$strip>;
147
- export declare const MergeReturnRejectedPayloadSchema: z.ZodObject<{
148
- briefId: z.ZodOptional<z.ZodString>;
149
- returnId: z.ZodString;
150
- source: z.ZodOptional<z.ZodString>;
151
- reason: z.ZodString;
152
- }, z.core.$strip>;
153
- export declare const RevertPayloadSchema: z.ZodObject<{
154
- reason: z.ZodString;
155
- targetEntryId: z.ZodOptional<z.ZodString>;
156
- }, z.core.$strip>;
157
- export declare const RollbackPayloadSchema: z.ZodObject<{
158
- reason: z.ZodString;
159
- targetEntryId: z.ZodOptional<z.ZodString>;
160
- targetStage: z.ZodOptional<z.ZodEnum<{
161
- seed: "seed";
162
- intake: "intake";
163
- "vendor-extract": "vendor-extract";
164
- cleanup: "cleanup";
165
- parity: "parity";
166
- characterize: "characterize";
167
- }>>;
168
- }, z.core.$strip>;
169
- export declare const ReworkTestRetiredPayloadSchema: z.ZodObject<{
170
- briefId: z.ZodOptional<z.ZodString>;
171
- removedBy: z.ZodEnum<{
172
- operator: "operator";
173
- descope: "descope";
174
- decompose: "decompose";
175
- }>;
176
- removedTestPath: z.ZodString;
177
- removedTestSymbols: z.ZodArray<z.ZodString>;
178
- sourceSymbolDeletedFrom: z.ZodString;
179
- }, z.core.$strip>;
180
- export declare const ToolInvocationEntrySchema: z.ZodObject<{
181
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
182
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
183
- emitter: z.ZodObject<{
184
- tool: z.ZodString;
185
- user: z.ZodOptional<z.ZodString>;
186
- version: z.ZodString;
187
- }, z.core.$strip>;
188
- id: z.ZodString;
189
- links: z.ZodDefault<z.ZodObject<{
190
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
- briefId: z.ZodOptional<z.ZodString>;
193
- correctsLedgerId: z.ZodOptional<z.ZodString>;
194
- gitRef: z.ZodOptional<z.ZodString>;
195
- idempotencyKey: z.ZodOptional<z.ZodString>;
196
- stripDecisionId: z.ZodOptional<z.ZodString>;
197
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
198
- validatorVerdictId: z.ZodOptional<z.ZodString>;
199
- }, z.core.$catchall<z.ZodUnknown>>>;
200
- phase: z.ZodEnum<{
201
- seed: "seed";
202
- capture: "capture";
203
- intake: "intake";
204
- "vendor-extract": "vendor-extract";
205
- cleanup: "cleanup";
206
- parity: "parity";
207
- characterize: "characterize";
208
- equiv: "equiv";
209
- analyze: "analyze";
210
- recover: "recover";
211
- ship: "ship";
212
- migration: "migration";
213
- }>;
214
- prevEntryId: z.ZodNullable<z.ZodString>;
215
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
216
- summary: z.ZodString;
217
- ts: z.ZodString;
218
- args: z.ZodOptional<z.ZodArray<z.ZodString>>;
219
- cwd: z.ZodOptional<z.ZodString>;
220
- exitCode: z.ZodOptional<z.ZodNumber>;
221
- kind: z.ZodLiteral<"tool-invocation">;
222
- }, z.core.$strip>;
223
- export declare const AgentPatchDiffSchema: z.ZodObject<{
224
- addedLines: z.ZodNumber;
225
- blobSha256: z.ZodString;
226
- bytes: z.ZodNumber;
227
- removedLines: z.ZodNumber;
228
- }, z.core.$strip>;
229
- export declare const AgentPatchEntrySchema: z.ZodObject<{
230
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
231
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
232
- emitter: z.ZodObject<{
233
- tool: z.ZodString;
234
- user: z.ZodOptional<z.ZodString>;
235
- version: z.ZodString;
236
- }, z.core.$strip>;
237
- id: z.ZodString;
238
- links: z.ZodDefault<z.ZodObject<{
239
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
240
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
241
- briefId: z.ZodOptional<z.ZodString>;
242
- correctsLedgerId: z.ZodOptional<z.ZodString>;
243
- gitRef: z.ZodOptional<z.ZodString>;
244
- idempotencyKey: z.ZodOptional<z.ZodString>;
245
- stripDecisionId: z.ZodOptional<z.ZodString>;
246
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
247
- validatorVerdictId: z.ZodOptional<z.ZodString>;
248
- }, z.core.$catchall<z.ZodUnknown>>>;
249
- phase: z.ZodEnum<{
250
- seed: "seed";
251
- capture: "capture";
252
- intake: "intake";
253
- "vendor-extract": "vendor-extract";
254
- cleanup: "cleanup";
255
- parity: "parity";
256
- characterize: "characterize";
257
- equiv: "equiv";
258
- analyze: "analyze";
259
- recover: "recover";
260
- ship: "ship";
261
- migration: "migration";
262
- }>;
263
- prevEntryId: z.ZodNullable<z.ZodString>;
264
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
265
- summary: z.ZodString;
266
- ts: z.ZodString;
267
- diff: z.ZodObject<{
268
- addedLines: z.ZodNumber;
269
- blobSha256: z.ZodString;
270
- bytes: z.ZodNumber;
271
- removedLines: z.ZodNumber;
272
- }, z.core.$strip>;
273
- payload: z.ZodObject<{
274
- diff: z.ZodOptional<z.ZodString>;
275
- diffSha256: z.ZodString;
276
- fileSha256After: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
277
- fileSha256Before: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
278
- hunks: z.ZodDefault<z.ZodArray<z.ZodObject<{
279
- endLine: z.ZodNumber;
280
- path: z.ZodString;
281
- startLine: z.ZodNumber;
282
- }, z.core.$strip>>>;
283
- touchedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
284
- }, z.core.$strip>;
285
- rationale: z.ZodString;
286
- agent: z.ZodObject<{
287
- name: z.ZodString;
288
- sessionId: z.ZodOptional<z.ZodString>;
289
- }, z.core.$strip>;
290
- kind: z.ZodLiteral<"agent-patch">;
291
- }, z.core.$strip>;
292
- export declare const OperatorPatchEntrySchema: z.ZodObject<{
293
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
294
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
295
- emitter: z.ZodObject<{
296
- tool: z.ZodString;
297
- user: z.ZodOptional<z.ZodString>;
298
- version: z.ZodString;
299
- }, z.core.$strip>;
300
- id: z.ZodString;
301
- links: z.ZodDefault<z.ZodObject<{
302
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
303
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
304
- briefId: z.ZodOptional<z.ZodString>;
305
- correctsLedgerId: z.ZodOptional<z.ZodString>;
306
- gitRef: z.ZodOptional<z.ZodString>;
307
- idempotencyKey: z.ZodOptional<z.ZodString>;
308
- stripDecisionId: z.ZodOptional<z.ZodString>;
309
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
310
- validatorVerdictId: z.ZodOptional<z.ZodString>;
311
- }, z.core.$catchall<z.ZodUnknown>>>;
312
- phase: z.ZodEnum<{
313
- seed: "seed";
314
- capture: "capture";
315
- intake: "intake";
316
- "vendor-extract": "vendor-extract";
317
- cleanup: "cleanup";
318
- parity: "parity";
319
- characterize: "characterize";
320
- equiv: "equiv";
321
- analyze: "analyze";
322
- recover: "recover";
323
- ship: "ship";
324
- migration: "migration";
325
- }>;
326
- prevEntryId: z.ZodNullable<z.ZodString>;
327
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
328
- summary: z.ZodString;
329
- ts: z.ZodString;
330
- diff: z.ZodObject<{
331
- addedLines: z.ZodNumber;
332
- blobSha256: z.ZodString;
333
- bytes: z.ZodNumber;
334
- removedLines: z.ZodNumber;
335
- }, z.core.$strip>;
336
- payload: z.ZodObject<{
337
- diff: z.ZodOptional<z.ZodString>;
338
- diffSha256: z.ZodString;
339
- fileSha256After: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
340
- fileSha256Before: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
341
- hunks: z.ZodDefault<z.ZodArray<z.ZodObject<{
342
- endLine: z.ZodNumber;
343
- path: z.ZodString;
344
- startLine: z.ZodNumber;
345
- }, z.core.$strip>>>;
346
- touchedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
347
- }, z.core.$strip>;
348
- rationale: z.ZodString;
349
- kind: z.ZodLiteral<"operator-patch">;
350
- operator: z.ZodObject<{
351
- name: z.ZodString;
352
- }, z.core.$strip>;
353
- }, z.core.$strip>;
354
- export declare const StageTransitionEntrySchema: z.ZodObject<{
355
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
356
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
357
- emitter: z.ZodObject<{
358
- tool: z.ZodString;
359
- user: z.ZodOptional<z.ZodString>;
360
- version: z.ZodString;
361
- }, z.core.$strip>;
362
- id: z.ZodString;
363
- links: z.ZodDefault<z.ZodObject<{
364
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
365
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
366
- briefId: z.ZodOptional<z.ZodString>;
367
- correctsLedgerId: z.ZodOptional<z.ZodString>;
368
- gitRef: z.ZodOptional<z.ZodString>;
369
- idempotencyKey: z.ZodOptional<z.ZodString>;
370
- stripDecisionId: z.ZodOptional<z.ZodString>;
371
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
372
- validatorVerdictId: z.ZodOptional<z.ZodString>;
373
- }, z.core.$catchall<z.ZodUnknown>>>;
374
- phase: z.ZodEnum<{
375
- seed: "seed";
376
- capture: "capture";
377
- intake: "intake";
378
- "vendor-extract": "vendor-extract";
379
- cleanup: "cleanup";
380
- parity: "parity";
381
- characterize: "characterize";
382
- equiv: "equiv";
383
- analyze: "analyze";
384
- recover: "recover";
385
- ship: "ship";
386
- migration: "migration";
387
- }>;
388
- prevEntryId: z.ZodNullable<z.ZodString>;
389
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
390
- summary: z.ZodString;
391
- ts: z.ZodString;
392
- kind: z.ZodLiteral<"stage-transition">;
393
- payload: z.ZodObject<{
394
- doctorBaselineId: z.ZodOptional<z.ZodString>;
395
- endedAt: z.ZodString;
396
- exitCode: z.ZodNumber;
397
- stage: z.ZodEnum<{
398
- seed: "seed";
399
- intake: "intake";
400
- "vendor-extract": "vendor-extract";
401
- cleanup: "cleanup";
402
- parity: "parity";
403
- characterize: "characterize";
404
- }>;
405
- startedAt: z.ZodString;
406
- }, z.core.$strip>;
407
- }, z.core.$strip>;
408
- export declare const OperatorDecisionEntrySchema: z.ZodObject<{
409
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
410
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
411
- emitter: z.ZodObject<{
412
- tool: z.ZodString;
413
- user: z.ZodOptional<z.ZodString>;
414
- version: z.ZodString;
415
- }, z.core.$strip>;
416
- id: z.ZodString;
417
- links: z.ZodDefault<z.ZodObject<{
418
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
419
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
420
- briefId: z.ZodOptional<z.ZodString>;
421
- correctsLedgerId: z.ZodOptional<z.ZodString>;
422
- gitRef: z.ZodOptional<z.ZodString>;
423
- idempotencyKey: z.ZodOptional<z.ZodString>;
424
- stripDecisionId: z.ZodOptional<z.ZodString>;
425
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
426
- validatorVerdictId: z.ZodOptional<z.ZodString>;
427
- }, z.core.$catchall<z.ZodUnknown>>>;
428
- phase: z.ZodEnum<{
429
- seed: "seed";
430
- capture: "capture";
431
- intake: "intake";
432
- "vendor-extract": "vendor-extract";
433
- cleanup: "cleanup";
434
- parity: "parity";
435
- characterize: "characterize";
436
- equiv: "equiv";
437
- analyze: "analyze";
438
- recover: "recover";
439
- ship: "ship";
440
- migration: "migration";
441
- }>;
442
- prevEntryId: z.ZodNullable<z.ZodString>;
443
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
444
- summary: z.ZodString;
445
- ts: z.ZodString;
446
- body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
447
- decisionType: z.ZodOptional<z.ZodEnum<{
448
- "strip-decision": "strip-decision";
449
- "strip-decision-revised": "strip-decision-revised";
450
- "vendor-boundary": "vendor-boundary";
451
- "intent-exclusion": "intent-exclusion";
452
- other: "other";
453
- }>>;
454
- kind: z.ZodLiteral<"operator-decision">;
455
- payload: z.ZodObject<{
456
- action: z.ZodEnum<{
457
- "bypass-doctor": "bypass-doctor";
458
- "skip-check": "skip-check";
459
- "override-strip-decision": "override-strip-decision";
460
- "override-ship-state": "override-ship-state";
461
- "manual-parity-assertion": "manual-parity-assertion";
462
- "ledger-hand-edit": "ledger-hand-edit";
463
- escalation: "escalation";
464
- }>;
465
- checkId: z.ZodOptional<z.ZodString>;
466
- rationale: z.ZodString;
467
- }, z.core.$strip>;
468
- }, z.core.$strip>;
469
- export declare const ValidatorResultEntrySchema: z.ZodObject<{
470
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
471
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
472
- emitter: z.ZodObject<{
473
- tool: z.ZodString;
474
- user: z.ZodOptional<z.ZodString>;
475
- version: z.ZodString;
476
- }, z.core.$strip>;
477
- id: z.ZodString;
478
- links: z.ZodDefault<z.ZodObject<{
479
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
480
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
481
- briefId: z.ZodOptional<z.ZodString>;
482
- correctsLedgerId: z.ZodOptional<z.ZodString>;
483
- gitRef: z.ZodOptional<z.ZodString>;
484
- idempotencyKey: z.ZodOptional<z.ZodString>;
485
- stripDecisionId: z.ZodOptional<z.ZodString>;
486
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
487
- validatorVerdictId: z.ZodOptional<z.ZodString>;
488
- }, z.core.$catchall<z.ZodUnknown>>>;
489
- phase: z.ZodEnum<{
490
- seed: "seed";
491
- capture: "capture";
492
- intake: "intake";
493
- "vendor-extract": "vendor-extract";
494
- cleanup: "cleanup";
495
- parity: "parity";
496
- characterize: "characterize";
497
- equiv: "equiv";
498
- analyze: "analyze";
499
- recover: "recover";
500
- ship: "ship";
501
- migration: "migration";
502
- }>;
503
- prevEntryId: z.ZodNullable<z.ZodString>;
504
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
505
- summary: z.ZodString;
506
- ts: z.ZodString;
507
- kind: z.ZodLiteral<"validator-result">;
508
- metrics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
509
- payload: z.ZodObject<{
510
- id: z.ZodString;
511
- }, z.core.$strip>;
512
- resultPath: z.ZodOptional<z.ZodString>;
513
- validator: z.ZodEnum<{
514
- parity: "parity";
515
- characterize: "characterize";
516
- equiv: "equiv";
517
- verify: "verify";
518
- doctor: "doctor";
519
- }>;
520
- verdict: z.ZodEnum<{
521
- green: "green";
522
- yellow: "yellow";
523
- red: "red";
524
- }>;
525
- }, z.core.$strip>;
526
- export declare const RuntimeEventEntrySchema: z.ZodObject<{
527
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
528
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
529
- emitter: z.ZodObject<{
530
- tool: z.ZodString;
531
- user: z.ZodOptional<z.ZodString>;
532
- version: z.ZodString;
533
- }, z.core.$strip>;
534
- id: z.ZodString;
535
- links: z.ZodDefault<z.ZodObject<{
536
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
537
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
538
- briefId: z.ZodOptional<z.ZodString>;
539
- correctsLedgerId: z.ZodOptional<z.ZodString>;
540
- gitRef: z.ZodOptional<z.ZodString>;
541
- idempotencyKey: z.ZodOptional<z.ZodString>;
542
- stripDecisionId: z.ZodOptional<z.ZodString>;
543
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
544
- validatorVerdictId: z.ZodOptional<z.ZodString>;
545
- }, z.core.$catchall<z.ZodUnknown>>>;
546
- phase: z.ZodEnum<{
547
- seed: "seed";
548
- capture: "capture";
549
- intake: "intake";
550
- "vendor-extract": "vendor-extract";
551
- cleanup: "cleanup";
552
- parity: "parity";
553
- characterize: "characterize";
554
- equiv: "equiv";
555
- analyze: "analyze";
556
- recover: "recover";
557
- ship: "ship";
558
- migration: "migration";
559
- }>;
560
- prevEntryId: z.ZodNullable<z.ZodString>;
561
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
562
- summary: z.ZodString;
563
- ts: z.ZodString;
564
- kind: z.ZodLiteral<"runtime-event">;
565
- level: z.ZodEnum<{
566
- error: "error";
567
- info: "info";
568
- warn: "warn";
569
- }>;
570
- message: z.ZodString;
571
- source: z.ZodString;
572
- stripDecisionId: z.ZodOptional<z.ZodString>;
573
- }, z.core.$strip>;
574
- export declare const NoteEntrySchema: z.ZodObject<{
575
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
576
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
577
- emitter: z.ZodObject<{
578
- tool: z.ZodString;
579
- user: z.ZodOptional<z.ZodString>;
580
- version: z.ZodString;
581
- }, z.core.$strip>;
582
- id: z.ZodString;
583
- links: z.ZodDefault<z.ZodObject<{
584
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
585
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
586
- briefId: z.ZodOptional<z.ZodString>;
587
- correctsLedgerId: z.ZodOptional<z.ZodString>;
588
- gitRef: z.ZodOptional<z.ZodString>;
589
- idempotencyKey: z.ZodOptional<z.ZodString>;
590
- stripDecisionId: z.ZodOptional<z.ZodString>;
591
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
592
- validatorVerdictId: z.ZodOptional<z.ZodString>;
593
- }, z.core.$catchall<z.ZodUnknown>>>;
594
- phase: z.ZodEnum<{
595
- seed: "seed";
596
- capture: "capture";
597
- intake: "intake";
598
- "vendor-extract": "vendor-extract";
599
- cleanup: "cleanup";
600
- parity: "parity";
601
- characterize: "characterize";
602
- equiv: "equiv";
603
- analyze: "analyze";
604
- recover: "recover";
605
- ship: "ship";
606
- migration: "migration";
607
- }>;
608
- prevEntryId: z.ZodNullable<z.ZodString>;
609
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
610
- summary: z.ZodString;
611
- ts: z.ZodString;
612
- body: z.ZodString;
613
- kind: z.ZodLiteral<"note">;
614
- subkind: z.ZodEnum<{
615
- regression: "regression";
616
- automation: "automation";
617
- retro: "retro";
618
- operator: "operator";
619
- "tooling-gap": "tooling-gap";
620
- }>;
621
- }, z.core.$strip>;
622
- export declare const CorrectionEntrySchema: z.ZodObject<{
623
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
624
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
625
- emitter: z.ZodObject<{
626
- tool: z.ZodString;
627
- user: z.ZodOptional<z.ZodString>;
628
- version: z.ZodString;
629
- }, z.core.$strip>;
630
- id: z.ZodString;
631
- links: z.ZodDefault<z.ZodObject<{
632
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
633
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
634
- briefId: z.ZodOptional<z.ZodString>;
635
- correctsLedgerId: z.ZodOptional<z.ZodString>;
636
- gitRef: z.ZodOptional<z.ZodString>;
637
- idempotencyKey: z.ZodOptional<z.ZodString>;
638
- stripDecisionId: z.ZodOptional<z.ZodString>;
639
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
640
- validatorVerdictId: z.ZodOptional<z.ZodString>;
641
- }, z.core.$catchall<z.ZodUnknown>>>;
642
- phase: z.ZodEnum<{
643
- seed: "seed";
644
- capture: "capture";
645
- intake: "intake";
646
- "vendor-extract": "vendor-extract";
647
- cleanup: "cleanup";
648
- parity: "parity";
649
- characterize: "characterize";
650
- equiv: "equiv";
651
- analyze: "analyze";
652
- recover: "recover";
653
- ship: "ship";
654
- migration: "migration";
655
- }>;
656
- prevEntryId: z.ZodNullable<z.ZodString>;
657
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
658
- summary: z.ZodString;
659
- ts: z.ZodString;
660
- kind: z.ZodLiteral<"correction">;
661
- payload: z.ZodDefault<z.ZodObject<{
662
- correctsValidatorResultId: z.ZodOptional<z.ZodString>;
663
- }, z.core.$strip>>;
664
- rationale: z.ZodString;
665
- }, z.core.$strip>;
666
- export declare const StripDecisionRevertedEntrySchema: z.ZodObject<{
667
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
668
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
669
- emitter: z.ZodObject<{
670
- tool: z.ZodString;
671
- user: z.ZodOptional<z.ZodString>;
672
- version: z.ZodString;
673
- }, z.core.$strip>;
674
- id: z.ZodString;
675
- links: z.ZodDefault<z.ZodObject<{
676
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
677
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
678
- briefId: z.ZodOptional<z.ZodString>;
679
- correctsLedgerId: z.ZodOptional<z.ZodString>;
680
- gitRef: z.ZodOptional<z.ZodString>;
681
- idempotencyKey: z.ZodOptional<z.ZodString>;
682
- stripDecisionId: z.ZodOptional<z.ZodString>;
683
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
684
- validatorVerdictId: z.ZodOptional<z.ZodString>;
685
- }, z.core.$catchall<z.ZodUnknown>>>;
686
- phase: z.ZodEnum<{
687
- seed: "seed";
688
- capture: "capture";
689
- intake: "intake";
690
- "vendor-extract": "vendor-extract";
691
- cleanup: "cleanup";
692
- parity: "parity";
693
- characterize: "characterize";
694
- equiv: "equiv";
695
- analyze: "analyze";
696
- recover: "recover";
697
- ship: "ship";
698
- migration: "migration";
699
- }>;
700
- prevEntryId: z.ZodNullable<z.ZodString>;
701
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
702
- summary: z.ZodString;
703
- ts: z.ZodString;
704
- kind: z.ZodLiteral<"strip-decision-reverted">;
705
- payload: z.ZodObject<{
706
- invalidatedStages: z.ZodOptional<z.ZodArray<z.ZodEnum<{
707
- seed: "seed";
708
- intake: "intake";
709
- "vendor-extract": "vendor-extract";
710
- cleanup: "cleanup";
711
- parity: "parity";
712
- characterize: "characterize";
713
- }>>>;
714
- rationale: z.ZodString;
715
- stripDecisionId: z.ZodString;
716
- }, z.core.$strip>;
717
- }, z.core.$strip>;
718
- export declare const DescopeBriefEntrySchema: z.ZodObject<{
719
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
720
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
721
- emitter: z.ZodObject<{
722
- tool: z.ZodString;
723
- user: z.ZodOptional<z.ZodString>;
724
- version: z.ZodString;
725
- }, z.core.$strip>;
726
- id: z.ZodString;
727
- links: z.ZodDefault<z.ZodObject<{
728
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
729
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
730
- briefId: z.ZodOptional<z.ZodString>;
731
- correctsLedgerId: z.ZodOptional<z.ZodString>;
732
- gitRef: z.ZodOptional<z.ZodString>;
733
- idempotencyKey: z.ZodOptional<z.ZodString>;
734
- stripDecisionId: z.ZodOptional<z.ZodString>;
735
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
736
- validatorVerdictId: z.ZodOptional<z.ZodString>;
737
- }, z.core.$catchall<z.ZodUnknown>>>;
738
- phase: z.ZodEnum<{
739
- seed: "seed";
740
- capture: "capture";
741
- intake: "intake";
742
- "vendor-extract": "vendor-extract";
743
- cleanup: "cleanup";
744
- parity: "parity";
745
- characterize: "characterize";
746
- equiv: "equiv";
747
- analyze: "analyze";
748
- recover: "recover";
749
- ship: "ship";
750
- migration: "migration";
751
- }>;
752
- prevEntryId: z.ZodNullable<z.ZodString>;
753
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
754
- summary: z.ZodString;
755
- ts: z.ZodString;
756
- kind: z.ZodLiteral<"descope-brief">;
757
- payload: z.ZodObject<{
758
- briefId: z.ZodString;
759
- reason: z.ZodOptional<z.ZodString>;
760
- round: z.ZodOptional<z.ZodNumber>;
761
- stripDecisionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
762
- }, z.core.$strip>;
763
- }, z.core.$strip>;
764
- export declare const MergeReturnEntrySchema: z.ZodObject<{
765
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
766
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
767
- emitter: z.ZodObject<{
768
- tool: z.ZodString;
769
- user: z.ZodOptional<z.ZodString>;
770
- version: z.ZodString;
771
- }, z.core.$strip>;
772
- id: z.ZodString;
773
- links: z.ZodDefault<z.ZodObject<{
774
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
775
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
776
- briefId: z.ZodOptional<z.ZodString>;
777
- correctsLedgerId: z.ZodOptional<z.ZodString>;
778
- gitRef: z.ZodOptional<z.ZodString>;
779
- idempotencyKey: z.ZodOptional<z.ZodString>;
780
- stripDecisionId: z.ZodOptional<z.ZodString>;
781
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
782
- validatorVerdictId: z.ZodOptional<z.ZodString>;
783
- }, z.core.$catchall<z.ZodUnknown>>>;
784
- phase: z.ZodEnum<{
785
- seed: "seed";
786
- capture: "capture";
787
- intake: "intake";
788
- "vendor-extract": "vendor-extract";
789
- cleanup: "cleanup";
790
- parity: "parity";
791
- characterize: "characterize";
792
- equiv: "equiv";
793
- analyze: "analyze";
794
- recover: "recover";
795
- ship: "ship";
796
- migration: "migration";
797
- }>;
798
- prevEntryId: z.ZodNullable<z.ZodString>;
799
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
800
- summary: z.ZodString;
801
- ts: z.ZodString;
802
- kind: z.ZodLiteral<"merge-return">;
803
- payload: z.ZodObject<{
804
- briefId: z.ZodOptional<z.ZodString>;
805
- returnId: z.ZodString;
806
- source: z.ZodOptional<z.ZodString>;
807
- }, z.core.$strip>;
808
- }, z.core.$strip>;
809
- export declare const MergeReturnRejectedEntrySchema: z.ZodObject<{
810
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
811
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
812
- emitter: z.ZodObject<{
813
- tool: z.ZodString;
814
- user: z.ZodOptional<z.ZodString>;
815
- version: z.ZodString;
816
- }, z.core.$strip>;
817
- id: z.ZodString;
818
- links: z.ZodDefault<z.ZodObject<{
819
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
820
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
821
- briefId: z.ZodOptional<z.ZodString>;
822
- correctsLedgerId: z.ZodOptional<z.ZodString>;
823
- gitRef: z.ZodOptional<z.ZodString>;
824
- idempotencyKey: z.ZodOptional<z.ZodString>;
825
- stripDecisionId: z.ZodOptional<z.ZodString>;
826
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
827
- validatorVerdictId: z.ZodOptional<z.ZodString>;
828
- }, z.core.$catchall<z.ZodUnknown>>>;
829
- phase: z.ZodEnum<{
830
- seed: "seed";
831
- capture: "capture";
832
- intake: "intake";
833
- "vendor-extract": "vendor-extract";
834
- cleanup: "cleanup";
835
- parity: "parity";
836
- characterize: "characterize";
837
- equiv: "equiv";
838
- analyze: "analyze";
839
- recover: "recover";
840
- ship: "ship";
841
- migration: "migration";
842
- }>;
843
- prevEntryId: z.ZodNullable<z.ZodString>;
844
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
845
- summary: z.ZodString;
846
- ts: z.ZodString;
847
- kind: z.ZodLiteral<"merge-return-rejected">;
848
- payload: z.ZodObject<{
849
- briefId: z.ZodOptional<z.ZodString>;
850
- returnId: z.ZodString;
851
- source: z.ZodOptional<z.ZodString>;
852
- reason: z.ZodString;
853
- }, z.core.$strip>;
854
- }, z.core.$strip>;
855
- export declare const RevertEntrySchema: z.ZodObject<{
856
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
857
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
858
- emitter: z.ZodObject<{
859
- tool: z.ZodString;
860
- user: z.ZodOptional<z.ZodString>;
861
- version: z.ZodString;
862
- }, z.core.$strip>;
863
- id: z.ZodString;
864
- links: z.ZodDefault<z.ZodObject<{
865
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
866
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
867
- briefId: z.ZodOptional<z.ZodString>;
868
- correctsLedgerId: z.ZodOptional<z.ZodString>;
869
- gitRef: z.ZodOptional<z.ZodString>;
870
- idempotencyKey: z.ZodOptional<z.ZodString>;
871
- stripDecisionId: z.ZodOptional<z.ZodString>;
872
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
873
- validatorVerdictId: z.ZodOptional<z.ZodString>;
874
- }, z.core.$catchall<z.ZodUnknown>>>;
875
- phase: z.ZodEnum<{
876
- seed: "seed";
877
- capture: "capture";
878
- intake: "intake";
879
- "vendor-extract": "vendor-extract";
880
- cleanup: "cleanup";
881
- parity: "parity";
882
- characterize: "characterize";
883
- equiv: "equiv";
884
- analyze: "analyze";
885
- recover: "recover";
886
- ship: "ship";
887
- migration: "migration";
888
- }>;
889
- prevEntryId: z.ZodNullable<z.ZodString>;
890
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
891
- summary: z.ZodString;
892
- ts: z.ZodString;
893
- kind: z.ZodLiteral<"revert">;
894
- payload: z.ZodObject<{
895
- reason: z.ZodString;
896
- targetEntryId: z.ZodOptional<z.ZodString>;
897
- }, z.core.$strip>;
898
- }, z.core.$strip>;
899
- export declare const RollbackEntrySchema: z.ZodObject<{
900
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
901
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
902
- emitter: z.ZodObject<{
903
- tool: z.ZodString;
904
- user: z.ZodOptional<z.ZodString>;
905
- version: z.ZodString;
906
- }, z.core.$strip>;
907
- id: z.ZodString;
908
- links: z.ZodDefault<z.ZodObject<{
909
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
910
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
911
- briefId: z.ZodOptional<z.ZodString>;
912
- correctsLedgerId: z.ZodOptional<z.ZodString>;
913
- gitRef: z.ZodOptional<z.ZodString>;
914
- idempotencyKey: z.ZodOptional<z.ZodString>;
915
- stripDecisionId: z.ZodOptional<z.ZodString>;
916
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
917
- validatorVerdictId: z.ZodOptional<z.ZodString>;
918
- }, z.core.$catchall<z.ZodUnknown>>>;
919
- phase: z.ZodEnum<{
920
- seed: "seed";
921
- capture: "capture";
922
- intake: "intake";
923
- "vendor-extract": "vendor-extract";
924
- cleanup: "cleanup";
925
- parity: "parity";
926
- characterize: "characterize";
927
- equiv: "equiv";
928
- analyze: "analyze";
929
- recover: "recover";
930
- ship: "ship";
931
- migration: "migration";
932
- }>;
933
- prevEntryId: z.ZodNullable<z.ZodString>;
934
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
935
- summary: z.ZodString;
936
- ts: z.ZodString;
937
- kind: z.ZodLiteral<"rollback">;
938
- payload: z.ZodObject<{
939
- reason: z.ZodString;
940
- targetEntryId: z.ZodOptional<z.ZodString>;
941
- targetStage: z.ZodOptional<z.ZodEnum<{
942
- seed: "seed";
943
- intake: "intake";
944
- "vendor-extract": "vendor-extract";
945
- cleanup: "cleanup";
946
- parity: "parity";
947
- characterize: "characterize";
948
- }>>;
949
- }, z.core.$strip>;
950
- }, z.core.$strip>;
951
- export declare const ReworkTestRetiredEntrySchema: z.ZodObject<{
952
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
953
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
954
- emitter: z.ZodObject<{
955
- tool: z.ZodString;
956
- user: z.ZodOptional<z.ZodString>;
957
- version: z.ZodString;
958
- }, z.core.$strip>;
959
- id: z.ZodString;
960
- links: z.ZodDefault<z.ZodObject<{
961
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
962
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
963
- briefId: z.ZodOptional<z.ZodString>;
964
- correctsLedgerId: z.ZodOptional<z.ZodString>;
965
- gitRef: z.ZodOptional<z.ZodString>;
966
- idempotencyKey: z.ZodOptional<z.ZodString>;
967
- stripDecisionId: z.ZodOptional<z.ZodString>;
968
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
969
- validatorVerdictId: z.ZodOptional<z.ZodString>;
970
- }, z.core.$catchall<z.ZodUnknown>>>;
971
- phase: z.ZodEnum<{
972
- seed: "seed";
973
- capture: "capture";
974
- intake: "intake";
975
- "vendor-extract": "vendor-extract";
976
- cleanup: "cleanup";
977
- parity: "parity";
978
- characterize: "characterize";
979
- equiv: "equiv";
980
- analyze: "analyze";
981
- recover: "recover";
982
- ship: "ship";
983
- migration: "migration";
984
- }>;
985
- prevEntryId: z.ZodNullable<z.ZodString>;
986
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
987
- summary: z.ZodString;
988
- ts: z.ZodString;
989
- kind: z.ZodLiteral<"rework.test_retired">;
990
- payload: z.ZodObject<{
991
- briefId: z.ZodOptional<z.ZodString>;
992
- removedBy: z.ZodEnum<{
993
- operator: "operator";
994
- descope: "descope";
995
- decompose: "decompose";
996
- }>;
997
- removedTestPath: z.ZodString;
998
- removedTestSymbols: z.ZodArray<z.ZodString>;
999
- sourceSymbolDeletedFrom: z.ZodString;
1000
- }, z.core.$strip>;
1001
- }, z.core.$strip>;
1002
- export declare const LedgerEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1003
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1004
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1005
- emitter: z.ZodObject<{
1006
- tool: z.ZodString;
1007
- user: z.ZodOptional<z.ZodString>;
1008
- version: z.ZodString;
1009
- }, z.core.$strip>;
1010
- id: z.ZodString;
1011
- links: z.ZodDefault<z.ZodObject<{
1012
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1013
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1014
- briefId: z.ZodOptional<z.ZodString>;
1015
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1016
- gitRef: z.ZodOptional<z.ZodString>;
1017
- idempotencyKey: z.ZodOptional<z.ZodString>;
1018
- stripDecisionId: z.ZodOptional<z.ZodString>;
1019
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1020
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1021
- }, z.core.$catchall<z.ZodUnknown>>>;
1022
- phase: z.ZodEnum<{
1023
- seed: "seed";
1024
- capture: "capture";
1025
- intake: "intake";
1026
- "vendor-extract": "vendor-extract";
1027
- cleanup: "cleanup";
1028
- parity: "parity";
1029
- characterize: "characterize";
1030
- equiv: "equiv";
1031
- analyze: "analyze";
1032
- recover: "recover";
1033
- ship: "ship";
1034
- migration: "migration";
1035
- }>;
1036
- prevEntryId: z.ZodNullable<z.ZodString>;
1037
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1038
- summary: z.ZodString;
1039
- ts: z.ZodString;
1040
- args: z.ZodOptional<z.ZodArray<z.ZodString>>;
1041
- cwd: z.ZodOptional<z.ZodString>;
1042
- exitCode: z.ZodOptional<z.ZodNumber>;
1043
- kind: z.ZodLiteral<"tool-invocation">;
1044
- }, z.core.$strip>, z.ZodObject<{
1045
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1046
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1047
- emitter: z.ZodObject<{
1048
- tool: z.ZodString;
1049
- user: z.ZodOptional<z.ZodString>;
1050
- version: z.ZodString;
1051
- }, z.core.$strip>;
1052
- id: z.ZodString;
1053
- links: z.ZodDefault<z.ZodObject<{
1054
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1055
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1056
- briefId: z.ZodOptional<z.ZodString>;
1057
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1058
- gitRef: z.ZodOptional<z.ZodString>;
1059
- idempotencyKey: z.ZodOptional<z.ZodString>;
1060
- stripDecisionId: z.ZodOptional<z.ZodString>;
1061
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1062
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1063
- }, z.core.$catchall<z.ZodUnknown>>>;
1064
- phase: z.ZodEnum<{
1065
- seed: "seed";
1066
- capture: "capture";
1067
- intake: "intake";
1068
- "vendor-extract": "vendor-extract";
1069
- cleanup: "cleanup";
1070
- parity: "parity";
1071
- characterize: "characterize";
1072
- equiv: "equiv";
1073
- analyze: "analyze";
1074
- recover: "recover";
1075
- ship: "ship";
1076
- migration: "migration";
1077
- }>;
1078
- prevEntryId: z.ZodNullable<z.ZodString>;
1079
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1080
- summary: z.ZodString;
1081
- ts: z.ZodString;
1082
- diff: z.ZodObject<{
1083
- addedLines: z.ZodNumber;
1084
- blobSha256: z.ZodString;
1085
- bytes: z.ZodNumber;
1086
- removedLines: z.ZodNumber;
1087
- }, z.core.$strip>;
1088
- payload: z.ZodObject<{
1089
- diff: z.ZodOptional<z.ZodString>;
1090
- diffSha256: z.ZodString;
1091
- fileSha256After: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1092
- fileSha256Before: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1093
- hunks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1094
- endLine: z.ZodNumber;
1095
- path: z.ZodString;
1096
- startLine: z.ZodNumber;
1097
- }, z.core.$strip>>>;
1098
- touchedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
1099
- }, z.core.$strip>;
1100
- rationale: z.ZodString;
1101
- agent: z.ZodObject<{
1102
- name: z.ZodString;
1103
- sessionId: z.ZodOptional<z.ZodString>;
1104
- }, z.core.$strip>;
1105
- kind: z.ZodLiteral<"agent-patch">;
1106
- }, z.core.$strip>, z.ZodObject<{
1107
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1108
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1109
- emitter: z.ZodObject<{
1110
- tool: z.ZodString;
1111
- user: z.ZodOptional<z.ZodString>;
1112
- version: z.ZodString;
1113
- }, z.core.$strip>;
1114
- id: z.ZodString;
1115
- links: z.ZodDefault<z.ZodObject<{
1116
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1117
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1118
- briefId: z.ZodOptional<z.ZodString>;
1119
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1120
- gitRef: z.ZodOptional<z.ZodString>;
1121
- idempotencyKey: z.ZodOptional<z.ZodString>;
1122
- stripDecisionId: z.ZodOptional<z.ZodString>;
1123
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1124
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1125
- }, z.core.$catchall<z.ZodUnknown>>>;
1126
- phase: z.ZodEnum<{
1127
- seed: "seed";
1128
- capture: "capture";
1129
- intake: "intake";
1130
- "vendor-extract": "vendor-extract";
1131
- cleanup: "cleanup";
1132
- parity: "parity";
1133
- characterize: "characterize";
1134
- equiv: "equiv";
1135
- analyze: "analyze";
1136
- recover: "recover";
1137
- ship: "ship";
1138
- migration: "migration";
1139
- }>;
1140
- prevEntryId: z.ZodNullable<z.ZodString>;
1141
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1142
- summary: z.ZodString;
1143
- ts: z.ZodString;
1144
- diff: z.ZodObject<{
1145
- addedLines: z.ZodNumber;
1146
- blobSha256: z.ZodString;
1147
- bytes: z.ZodNumber;
1148
- removedLines: z.ZodNumber;
1149
- }, z.core.$strip>;
1150
- payload: z.ZodObject<{
1151
- diff: z.ZodOptional<z.ZodString>;
1152
- diffSha256: z.ZodString;
1153
- fileSha256After: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1154
- fileSha256Before: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1155
- hunks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1156
- endLine: z.ZodNumber;
1157
- path: z.ZodString;
1158
- startLine: z.ZodNumber;
1159
- }, z.core.$strip>>>;
1160
- touchedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
1161
- }, z.core.$strip>;
1162
- rationale: z.ZodString;
1163
- kind: z.ZodLiteral<"operator-patch">;
1164
- operator: z.ZodObject<{
1165
- name: z.ZodString;
1166
- }, z.core.$strip>;
1167
- }, z.core.$strip>, z.ZodObject<{
1168
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1169
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1170
- emitter: z.ZodObject<{
1171
- tool: z.ZodString;
1172
- user: z.ZodOptional<z.ZodString>;
1173
- version: z.ZodString;
1174
- }, z.core.$strip>;
1175
- id: z.ZodString;
1176
- links: z.ZodDefault<z.ZodObject<{
1177
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1178
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1179
- briefId: z.ZodOptional<z.ZodString>;
1180
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1181
- gitRef: z.ZodOptional<z.ZodString>;
1182
- idempotencyKey: z.ZodOptional<z.ZodString>;
1183
- stripDecisionId: z.ZodOptional<z.ZodString>;
1184
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1185
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1186
- }, z.core.$catchall<z.ZodUnknown>>>;
1187
- phase: z.ZodEnum<{
1188
- seed: "seed";
1189
- capture: "capture";
1190
- intake: "intake";
1191
- "vendor-extract": "vendor-extract";
1192
- cleanup: "cleanup";
1193
- parity: "parity";
1194
- characterize: "characterize";
1195
- equiv: "equiv";
1196
- analyze: "analyze";
1197
- recover: "recover";
1198
- ship: "ship";
1199
- migration: "migration";
1200
- }>;
1201
- prevEntryId: z.ZodNullable<z.ZodString>;
1202
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1203
- summary: z.ZodString;
1204
- ts: z.ZodString;
1205
- kind: z.ZodLiteral<"stage-transition">;
1206
- payload: z.ZodObject<{
1207
- doctorBaselineId: z.ZodOptional<z.ZodString>;
1208
- endedAt: z.ZodString;
1209
- exitCode: z.ZodNumber;
1210
- stage: z.ZodEnum<{
1211
- seed: "seed";
1212
- intake: "intake";
1213
- "vendor-extract": "vendor-extract";
1214
- cleanup: "cleanup";
1215
- parity: "parity";
1216
- characterize: "characterize";
1217
- }>;
1218
- startedAt: z.ZodString;
1219
- }, z.core.$strip>;
1220
- }, z.core.$strip>, z.ZodObject<{
1221
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1222
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1223
- emitter: z.ZodObject<{
1224
- tool: z.ZodString;
1225
- user: z.ZodOptional<z.ZodString>;
1226
- version: z.ZodString;
1227
- }, z.core.$strip>;
1228
- id: z.ZodString;
1229
- links: z.ZodDefault<z.ZodObject<{
1230
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1231
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1232
- briefId: z.ZodOptional<z.ZodString>;
1233
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1234
- gitRef: z.ZodOptional<z.ZodString>;
1235
- idempotencyKey: z.ZodOptional<z.ZodString>;
1236
- stripDecisionId: z.ZodOptional<z.ZodString>;
1237
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1238
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1239
- }, z.core.$catchall<z.ZodUnknown>>>;
1240
- phase: z.ZodEnum<{
1241
- seed: "seed";
1242
- capture: "capture";
1243
- intake: "intake";
1244
- "vendor-extract": "vendor-extract";
1245
- cleanup: "cleanup";
1246
- parity: "parity";
1247
- characterize: "characterize";
1248
- equiv: "equiv";
1249
- analyze: "analyze";
1250
- recover: "recover";
1251
- ship: "ship";
1252
- migration: "migration";
1253
- }>;
1254
- prevEntryId: z.ZodNullable<z.ZodString>;
1255
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1256
- summary: z.ZodString;
1257
- ts: z.ZodString;
1258
- body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1259
- decisionType: z.ZodOptional<z.ZodEnum<{
1260
- "strip-decision": "strip-decision";
1261
- "strip-decision-revised": "strip-decision-revised";
1262
- "vendor-boundary": "vendor-boundary";
1263
- "intent-exclusion": "intent-exclusion";
1264
- other: "other";
1265
- }>>;
1266
- kind: z.ZodLiteral<"operator-decision">;
1267
- payload: z.ZodObject<{
1268
- action: z.ZodEnum<{
1269
- "bypass-doctor": "bypass-doctor";
1270
- "skip-check": "skip-check";
1271
- "override-strip-decision": "override-strip-decision";
1272
- "override-ship-state": "override-ship-state";
1273
- "manual-parity-assertion": "manual-parity-assertion";
1274
- "ledger-hand-edit": "ledger-hand-edit";
1275
- escalation: "escalation";
1276
- }>;
1277
- checkId: z.ZodOptional<z.ZodString>;
1278
- rationale: z.ZodString;
1279
- }, z.core.$strip>;
1280
- }, z.core.$strip>, z.ZodObject<{
1281
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1282
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1283
- emitter: z.ZodObject<{
1284
- tool: z.ZodString;
1285
- user: z.ZodOptional<z.ZodString>;
1286
- version: z.ZodString;
1287
- }, z.core.$strip>;
1288
- id: z.ZodString;
1289
- links: z.ZodDefault<z.ZodObject<{
1290
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1291
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1292
- briefId: z.ZodOptional<z.ZodString>;
1293
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1294
- gitRef: z.ZodOptional<z.ZodString>;
1295
- idempotencyKey: z.ZodOptional<z.ZodString>;
1296
- stripDecisionId: z.ZodOptional<z.ZodString>;
1297
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1298
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1299
- }, z.core.$catchall<z.ZodUnknown>>>;
1300
- phase: z.ZodEnum<{
1301
- seed: "seed";
1302
- capture: "capture";
1303
- intake: "intake";
1304
- "vendor-extract": "vendor-extract";
1305
- cleanup: "cleanup";
1306
- parity: "parity";
1307
- characterize: "characterize";
1308
- equiv: "equiv";
1309
- analyze: "analyze";
1310
- recover: "recover";
1311
- ship: "ship";
1312
- migration: "migration";
1313
- }>;
1314
- prevEntryId: z.ZodNullable<z.ZodString>;
1315
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1316
- summary: z.ZodString;
1317
- ts: z.ZodString;
1318
- kind: z.ZodLiteral<"validator-result">;
1319
- metrics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1320
- payload: z.ZodObject<{
1321
- id: z.ZodString;
1322
- }, z.core.$strip>;
1323
- resultPath: z.ZodOptional<z.ZodString>;
1324
- validator: z.ZodEnum<{
1325
- parity: "parity";
1326
- characterize: "characterize";
1327
- equiv: "equiv";
1328
- verify: "verify";
1329
- doctor: "doctor";
1330
- }>;
1331
- verdict: z.ZodEnum<{
1332
- green: "green";
1333
- yellow: "yellow";
1334
- red: "red";
1335
- }>;
1336
- }, z.core.$strip>, z.ZodObject<{
1337
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1338
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1339
- emitter: z.ZodObject<{
1340
- tool: z.ZodString;
1341
- user: z.ZodOptional<z.ZodString>;
1342
- version: z.ZodString;
1343
- }, z.core.$strip>;
1344
- id: z.ZodString;
1345
- links: z.ZodDefault<z.ZodObject<{
1346
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1347
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1348
- briefId: z.ZodOptional<z.ZodString>;
1349
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1350
- gitRef: z.ZodOptional<z.ZodString>;
1351
- idempotencyKey: z.ZodOptional<z.ZodString>;
1352
- stripDecisionId: z.ZodOptional<z.ZodString>;
1353
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1354
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1355
- }, z.core.$catchall<z.ZodUnknown>>>;
1356
- phase: z.ZodEnum<{
1357
- seed: "seed";
1358
- capture: "capture";
1359
- intake: "intake";
1360
- "vendor-extract": "vendor-extract";
1361
- cleanup: "cleanup";
1362
- parity: "parity";
1363
- characterize: "characterize";
1364
- equiv: "equiv";
1365
- analyze: "analyze";
1366
- recover: "recover";
1367
- ship: "ship";
1368
- migration: "migration";
1369
- }>;
1370
- prevEntryId: z.ZodNullable<z.ZodString>;
1371
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1372
- summary: z.ZodString;
1373
- ts: z.ZodString;
1374
- kind: z.ZodLiteral<"runtime-event">;
1375
- level: z.ZodEnum<{
1376
- error: "error";
1377
- info: "info";
1378
- warn: "warn";
1379
- }>;
1380
- message: z.ZodString;
1381
- source: z.ZodString;
1382
- stripDecisionId: z.ZodOptional<z.ZodString>;
1383
- }, z.core.$strip>, z.ZodObject<{
1384
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1385
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1386
- emitter: z.ZodObject<{
1387
- tool: z.ZodString;
1388
- user: z.ZodOptional<z.ZodString>;
1389
- version: z.ZodString;
1390
- }, z.core.$strip>;
1391
- id: z.ZodString;
1392
- links: z.ZodDefault<z.ZodObject<{
1393
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1394
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1395
- briefId: z.ZodOptional<z.ZodString>;
1396
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1397
- gitRef: z.ZodOptional<z.ZodString>;
1398
- idempotencyKey: z.ZodOptional<z.ZodString>;
1399
- stripDecisionId: z.ZodOptional<z.ZodString>;
1400
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1401
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1402
- }, z.core.$catchall<z.ZodUnknown>>>;
1403
- phase: z.ZodEnum<{
1404
- seed: "seed";
1405
- capture: "capture";
1406
- intake: "intake";
1407
- "vendor-extract": "vendor-extract";
1408
- cleanup: "cleanup";
1409
- parity: "parity";
1410
- characterize: "characterize";
1411
- equiv: "equiv";
1412
- analyze: "analyze";
1413
- recover: "recover";
1414
- ship: "ship";
1415
- migration: "migration";
1416
- }>;
1417
- prevEntryId: z.ZodNullable<z.ZodString>;
1418
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1419
- summary: z.ZodString;
1420
- ts: z.ZodString;
1421
- body: z.ZodString;
1422
- kind: z.ZodLiteral<"note">;
1423
- subkind: z.ZodEnum<{
1424
- regression: "regression";
1425
- automation: "automation";
1426
- retro: "retro";
1427
- operator: "operator";
1428
- "tooling-gap": "tooling-gap";
1429
- }>;
1430
- }, z.core.$strip>, z.ZodObject<{
1431
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1432
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1433
- emitter: z.ZodObject<{
1434
- tool: z.ZodString;
1435
- user: z.ZodOptional<z.ZodString>;
1436
- version: z.ZodString;
1437
- }, z.core.$strip>;
1438
- id: z.ZodString;
1439
- links: z.ZodDefault<z.ZodObject<{
1440
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1441
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1442
- briefId: z.ZodOptional<z.ZodString>;
1443
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1444
- gitRef: z.ZodOptional<z.ZodString>;
1445
- idempotencyKey: z.ZodOptional<z.ZodString>;
1446
- stripDecisionId: z.ZodOptional<z.ZodString>;
1447
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1448
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1449
- }, z.core.$catchall<z.ZodUnknown>>>;
1450
- phase: z.ZodEnum<{
1451
- seed: "seed";
1452
- capture: "capture";
1453
- intake: "intake";
1454
- "vendor-extract": "vendor-extract";
1455
- cleanup: "cleanup";
1456
- parity: "parity";
1457
- characterize: "characterize";
1458
- equiv: "equiv";
1459
- analyze: "analyze";
1460
- recover: "recover";
1461
- ship: "ship";
1462
- migration: "migration";
1463
- }>;
1464
- prevEntryId: z.ZodNullable<z.ZodString>;
1465
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1466
- summary: z.ZodString;
1467
- ts: z.ZodString;
1468
- kind: z.ZodLiteral<"correction">;
1469
- payload: z.ZodDefault<z.ZodObject<{
1470
- correctsValidatorResultId: z.ZodOptional<z.ZodString>;
1471
- }, z.core.$strip>>;
1472
- rationale: z.ZodString;
1473
- }, z.core.$strip>, z.ZodObject<{
1474
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1475
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1476
- emitter: z.ZodObject<{
1477
- tool: z.ZodString;
1478
- user: z.ZodOptional<z.ZodString>;
1479
- version: z.ZodString;
1480
- }, z.core.$strip>;
1481
- id: z.ZodString;
1482
- links: z.ZodDefault<z.ZodObject<{
1483
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1484
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1485
- briefId: z.ZodOptional<z.ZodString>;
1486
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1487
- gitRef: z.ZodOptional<z.ZodString>;
1488
- idempotencyKey: z.ZodOptional<z.ZodString>;
1489
- stripDecisionId: z.ZodOptional<z.ZodString>;
1490
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1491
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1492
- }, z.core.$catchall<z.ZodUnknown>>>;
1493
- phase: z.ZodEnum<{
1494
- seed: "seed";
1495
- capture: "capture";
1496
- intake: "intake";
1497
- "vendor-extract": "vendor-extract";
1498
- cleanup: "cleanup";
1499
- parity: "parity";
1500
- characterize: "characterize";
1501
- equiv: "equiv";
1502
- analyze: "analyze";
1503
- recover: "recover";
1504
- ship: "ship";
1505
- migration: "migration";
1506
- }>;
1507
- prevEntryId: z.ZodNullable<z.ZodString>;
1508
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1509
- summary: z.ZodString;
1510
- ts: z.ZodString;
1511
- kind: z.ZodLiteral<"strip-decision-reverted">;
1512
- payload: z.ZodObject<{
1513
- invalidatedStages: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1514
- seed: "seed";
1515
- intake: "intake";
1516
- "vendor-extract": "vendor-extract";
1517
- cleanup: "cleanup";
1518
- parity: "parity";
1519
- characterize: "characterize";
1520
- }>>>;
1521
- rationale: z.ZodString;
1522
- stripDecisionId: z.ZodString;
1523
- }, z.core.$strip>;
1524
- }, z.core.$strip>, z.ZodObject<{
1525
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1526
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1527
- emitter: z.ZodObject<{
1528
- tool: z.ZodString;
1529
- user: z.ZodOptional<z.ZodString>;
1530
- version: z.ZodString;
1531
- }, z.core.$strip>;
1532
- id: z.ZodString;
1533
- links: z.ZodDefault<z.ZodObject<{
1534
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1535
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1536
- briefId: z.ZodOptional<z.ZodString>;
1537
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1538
- gitRef: z.ZodOptional<z.ZodString>;
1539
- idempotencyKey: z.ZodOptional<z.ZodString>;
1540
- stripDecisionId: z.ZodOptional<z.ZodString>;
1541
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1542
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1543
- }, z.core.$catchall<z.ZodUnknown>>>;
1544
- phase: z.ZodEnum<{
1545
- seed: "seed";
1546
- capture: "capture";
1547
- intake: "intake";
1548
- "vendor-extract": "vendor-extract";
1549
- cleanup: "cleanup";
1550
- parity: "parity";
1551
- characterize: "characterize";
1552
- equiv: "equiv";
1553
- analyze: "analyze";
1554
- recover: "recover";
1555
- ship: "ship";
1556
- migration: "migration";
1557
- }>;
1558
- prevEntryId: z.ZodNullable<z.ZodString>;
1559
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1560
- summary: z.ZodString;
1561
- ts: z.ZodString;
1562
- kind: z.ZodLiteral<"descope-brief">;
1563
- payload: z.ZodObject<{
1564
- briefId: z.ZodString;
1565
- reason: z.ZodOptional<z.ZodString>;
1566
- round: z.ZodOptional<z.ZodNumber>;
1567
- stripDecisionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1568
- }, z.core.$strip>;
1569
- }, z.core.$strip>, z.ZodObject<{
1570
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1571
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1572
- emitter: z.ZodObject<{
1573
- tool: z.ZodString;
1574
- user: z.ZodOptional<z.ZodString>;
1575
- version: z.ZodString;
1576
- }, z.core.$strip>;
1577
- id: z.ZodString;
1578
- links: z.ZodDefault<z.ZodObject<{
1579
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1580
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1581
- briefId: z.ZodOptional<z.ZodString>;
1582
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1583
- gitRef: z.ZodOptional<z.ZodString>;
1584
- idempotencyKey: z.ZodOptional<z.ZodString>;
1585
- stripDecisionId: z.ZodOptional<z.ZodString>;
1586
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1587
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1588
- }, z.core.$catchall<z.ZodUnknown>>>;
1589
- phase: z.ZodEnum<{
1590
- seed: "seed";
1591
- capture: "capture";
1592
- intake: "intake";
1593
- "vendor-extract": "vendor-extract";
1594
- cleanup: "cleanup";
1595
- parity: "parity";
1596
- characterize: "characterize";
1597
- equiv: "equiv";
1598
- analyze: "analyze";
1599
- recover: "recover";
1600
- ship: "ship";
1601
- migration: "migration";
1602
- }>;
1603
- prevEntryId: z.ZodNullable<z.ZodString>;
1604
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1605
- summary: z.ZodString;
1606
- ts: z.ZodString;
1607
- kind: z.ZodLiteral<"merge-return">;
1608
- payload: z.ZodObject<{
1609
- briefId: z.ZodOptional<z.ZodString>;
1610
- returnId: z.ZodString;
1611
- source: z.ZodOptional<z.ZodString>;
1612
- }, z.core.$strip>;
1613
- }, z.core.$strip>, z.ZodObject<{
1614
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1615
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1616
- emitter: z.ZodObject<{
1617
- tool: z.ZodString;
1618
- user: z.ZodOptional<z.ZodString>;
1619
- version: z.ZodString;
1620
- }, z.core.$strip>;
1621
- id: z.ZodString;
1622
- links: z.ZodDefault<z.ZodObject<{
1623
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1624
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1625
- briefId: z.ZodOptional<z.ZodString>;
1626
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1627
- gitRef: z.ZodOptional<z.ZodString>;
1628
- idempotencyKey: z.ZodOptional<z.ZodString>;
1629
- stripDecisionId: z.ZodOptional<z.ZodString>;
1630
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1631
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1632
- }, z.core.$catchall<z.ZodUnknown>>>;
1633
- phase: z.ZodEnum<{
1634
- seed: "seed";
1635
- capture: "capture";
1636
- intake: "intake";
1637
- "vendor-extract": "vendor-extract";
1638
- cleanup: "cleanup";
1639
- parity: "parity";
1640
- characterize: "characterize";
1641
- equiv: "equiv";
1642
- analyze: "analyze";
1643
- recover: "recover";
1644
- ship: "ship";
1645
- migration: "migration";
1646
- }>;
1647
- prevEntryId: z.ZodNullable<z.ZodString>;
1648
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1649
- summary: z.ZodString;
1650
- ts: z.ZodString;
1651
- kind: z.ZodLiteral<"merge-return-rejected">;
1652
- payload: z.ZodObject<{
1653
- briefId: z.ZodOptional<z.ZodString>;
1654
- returnId: z.ZodString;
1655
- source: z.ZodOptional<z.ZodString>;
1656
- reason: z.ZodString;
1657
- }, z.core.$strip>;
1658
- }, z.core.$strip>, z.ZodObject<{
1659
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1660
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1661
- emitter: z.ZodObject<{
1662
- tool: z.ZodString;
1663
- user: z.ZodOptional<z.ZodString>;
1664
- version: z.ZodString;
1665
- }, z.core.$strip>;
1666
- id: z.ZodString;
1667
- links: z.ZodDefault<z.ZodObject<{
1668
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1669
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1670
- briefId: z.ZodOptional<z.ZodString>;
1671
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1672
- gitRef: z.ZodOptional<z.ZodString>;
1673
- idempotencyKey: z.ZodOptional<z.ZodString>;
1674
- stripDecisionId: z.ZodOptional<z.ZodString>;
1675
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1676
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1677
- }, z.core.$catchall<z.ZodUnknown>>>;
1678
- phase: z.ZodEnum<{
1679
- seed: "seed";
1680
- capture: "capture";
1681
- intake: "intake";
1682
- "vendor-extract": "vendor-extract";
1683
- cleanup: "cleanup";
1684
- parity: "parity";
1685
- characterize: "characterize";
1686
- equiv: "equiv";
1687
- analyze: "analyze";
1688
- recover: "recover";
1689
- ship: "ship";
1690
- migration: "migration";
1691
- }>;
1692
- prevEntryId: z.ZodNullable<z.ZodString>;
1693
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1694
- summary: z.ZodString;
1695
- ts: z.ZodString;
1696
- kind: z.ZodLiteral<"revert">;
1697
- payload: z.ZodObject<{
1698
- reason: z.ZodString;
1699
- targetEntryId: z.ZodOptional<z.ZodString>;
1700
- }, z.core.$strip>;
1701
- }, z.core.$strip>, z.ZodObject<{
1702
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1703
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1704
- emitter: z.ZodObject<{
1705
- tool: z.ZodString;
1706
- user: z.ZodOptional<z.ZodString>;
1707
- version: z.ZodString;
1708
- }, z.core.$strip>;
1709
- id: z.ZodString;
1710
- links: z.ZodDefault<z.ZodObject<{
1711
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1712
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1713
- briefId: z.ZodOptional<z.ZodString>;
1714
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1715
- gitRef: z.ZodOptional<z.ZodString>;
1716
- idempotencyKey: z.ZodOptional<z.ZodString>;
1717
- stripDecisionId: z.ZodOptional<z.ZodString>;
1718
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1719
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1720
- }, z.core.$catchall<z.ZodUnknown>>>;
1721
- phase: z.ZodEnum<{
1722
- seed: "seed";
1723
- capture: "capture";
1724
- intake: "intake";
1725
- "vendor-extract": "vendor-extract";
1726
- cleanup: "cleanup";
1727
- parity: "parity";
1728
- characterize: "characterize";
1729
- equiv: "equiv";
1730
- analyze: "analyze";
1731
- recover: "recover";
1732
- ship: "ship";
1733
- migration: "migration";
1734
- }>;
1735
- prevEntryId: z.ZodNullable<z.ZodString>;
1736
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1737
- summary: z.ZodString;
1738
- ts: z.ZodString;
1739
- kind: z.ZodLiteral<"rollback">;
1740
- payload: z.ZodObject<{
1741
- reason: z.ZodString;
1742
- targetEntryId: z.ZodOptional<z.ZodString>;
1743
- targetStage: z.ZodOptional<z.ZodEnum<{
1744
- seed: "seed";
1745
- intake: "intake";
1746
- "vendor-extract": "vendor-extract";
1747
- cleanup: "cleanup";
1748
- parity: "parity";
1749
- characterize: "characterize";
1750
- }>>;
1751
- }, z.core.$strip>;
1752
- }, z.core.$strip>, z.ZodObject<{
1753
- _legacy: z.ZodOptional<z.ZodLiteral<true>>;
1754
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1755
- emitter: z.ZodObject<{
1756
- tool: z.ZodString;
1757
- user: z.ZodOptional<z.ZodString>;
1758
- version: z.ZodString;
1759
- }, z.core.$strip>;
1760
- id: z.ZodString;
1761
- links: z.ZodDefault<z.ZodObject<{
1762
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1763
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1764
- briefId: z.ZodOptional<z.ZodString>;
1765
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1766
- gitRef: z.ZodOptional<z.ZodString>;
1767
- idempotencyKey: z.ZodOptional<z.ZodString>;
1768
- stripDecisionId: z.ZodOptional<z.ZodString>;
1769
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1770
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1771
- }, z.core.$catchall<z.ZodUnknown>>>;
1772
- phase: z.ZodEnum<{
1773
- seed: "seed";
1774
- capture: "capture";
1775
- intake: "intake";
1776
- "vendor-extract": "vendor-extract";
1777
- cleanup: "cleanup";
1778
- parity: "parity";
1779
- characterize: "characterize";
1780
- equiv: "equiv";
1781
- analyze: "analyze";
1782
- recover: "recover";
1783
- ship: "ship";
1784
- migration: "migration";
1785
- }>;
1786
- prevEntryId: z.ZodNullable<z.ZodString>;
1787
- schemaVersion: z.ZodLiteral<"ushman-ledger-entry/v1">;
1788
- summary: z.ZodString;
1789
- ts: z.ZodString;
1790
- kind: z.ZodLiteral<"rework.test_retired">;
1791
- payload: z.ZodObject<{
1792
- briefId: z.ZodOptional<z.ZodString>;
1793
- removedBy: z.ZodEnum<{
1794
- operator: "operator";
1795
- descope: "descope";
1796
- decompose: "decompose";
1797
- }>;
1798
- removedTestPath: z.ZodString;
1799
- removedTestSymbols: z.ZodArray<z.ZodString>;
1800
- sourceSymbolDeletedFrom: z.ZodString;
1801
- }, z.core.$strip>;
1802
- }, z.core.$strip>], "kind">;
1803
- export declare const ToolInvocationRecordSchema: z.ZodObject<{
1804
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1805
- emitter: z.ZodObject<{
1806
- tool: z.ZodString;
1807
- user: z.ZodOptional<z.ZodString>;
1808
- version: z.ZodString;
1809
- }, z.core.$strip>;
1810
- idempotencyKey: z.ZodOptional<z.ZodString>;
1811
- links: z.ZodOptional<z.ZodObject<{
1812
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1813
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1814
- briefId: z.ZodOptional<z.ZodString>;
1815
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1816
- gitRef: z.ZodOptional<z.ZodString>;
1817
- idempotencyKey: z.ZodOptional<z.ZodString>;
1818
- stripDecisionId: z.ZodOptional<z.ZodString>;
1819
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1820
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1821
- }, z.core.$catchall<z.ZodUnknown>>>;
1822
- phase: z.ZodEnum<{
1823
- seed: "seed";
1824
- capture: "capture";
1825
- intake: "intake";
1826
- "vendor-extract": "vendor-extract";
1827
- cleanup: "cleanup";
1828
- parity: "parity";
1829
- characterize: "characterize";
1830
- equiv: "equiv";
1831
- analyze: "analyze";
1832
- recover: "recover";
1833
- ship: "ship";
1834
- migration: "migration";
1835
- }>;
1836
- summary: z.ZodString;
1837
- args: z.ZodOptional<z.ZodArray<z.ZodString>>;
1838
- cwd: z.ZodOptional<z.ZodString>;
1839
- exitCode: z.ZodOptional<z.ZodNumber>;
1840
- kind: z.ZodLiteral<"tool-invocation">;
1841
- }, z.core.$strip>;
1842
- export declare const AgentPatchRecordSchema: z.ZodObject<{
1843
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1844
- emitter: z.ZodObject<{
1845
- tool: z.ZodString;
1846
- user: z.ZodOptional<z.ZodString>;
1847
- version: z.ZodString;
1848
- }, z.core.$strip>;
1849
- idempotencyKey: z.ZodOptional<z.ZodString>;
1850
- links: z.ZodOptional<z.ZodObject<{
1851
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1852
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1853
- briefId: z.ZodOptional<z.ZodString>;
1854
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1855
- gitRef: z.ZodOptional<z.ZodString>;
1856
- idempotencyKey: z.ZodOptional<z.ZodString>;
1857
- stripDecisionId: z.ZodOptional<z.ZodString>;
1858
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1859
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1860
- }, z.core.$catchall<z.ZodUnknown>>>;
1861
- phase: z.ZodEnum<{
1862
- seed: "seed";
1863
- capture: "capture";
1864
- intake: "intake";
1865
- "vendor-extract": "vendor-extract";
1866
- cleanup: "cleanup";
1867
- parity: "parity";
1868
- characterize: "characterize";
1869
- equiv: "equiv";
1870
- analyze: "analyze";
1871
- recover: "recover";
1872
- ship: "ship";
1873
- migration: "migration";
1874
- }>;
1875
- summary: z.ZodString;
1876
- diff: z.ZodOptional<z.ZodObject<{
1877
- addedLines: z.ZodNumber;
1878
- blobSha256: z.ZodString;
1879
- bytes: z.ZodNumber;
1880
- removedLines: z.ZodNumber;
1881
- }, z.core.$strip>>;
1882
- diffPath: z.ZodOptional<z.ZodString>;
1883
- payload: z.ZodOptional<z.ZodObject<{
1884
- diff: z.ZodOptional<z.ZodString>;
1885
- diffSha256: z.ZodOptional<z.ZodString>;
1886
- fileSha256After: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1887
- fileSha256Before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1888
- hunks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1889
- endLine: z.ZodNumber;
1890
- path: z.ZodString;
1891
- startLine: z.ZodNumber;
1892
- }, z.core.$strip>>>;
1893
- touchedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
1894
- }, z.core.$strip>>;
1895
- rationale: z.ZodString;
1896
- agent: z.ZodObject<{
1897
- name: z.ZodString;
1898
- sessionId: z.ZodOptional<z.ZodString>;
1899
- }, z.core.$strip>;
1900
- kind: z.ZodLiteral<"agent-patch">;
1901
- }, z.core.$strip>;
1902
- export declare const OperatorPatchRecordSchema: z.ZodObject<{
1903
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1904
- emitter: z.ZodObject<{
1905
- tool: z.ZodString;
1906
- user: z.ZodOptional<z.ZodString>;
1907
- version: z.ZodString;
1908
- }, z.core.$strip>;
1909
- idempotencyKey: z.ZodOptional<z.ZodString>;
1910
- links: z.ZodOptional<z.ZodObject<{
1911
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1912
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1913
- briefId: z.ZodOptional<z.ZodString>;
1914
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1915
- gitRef: z.ZodOptional<z.ZodString>;
1916
- idempotencyKey: z.ZodOptional<z.ZodString>;
1917
- stripDecisionId: z.ZodOptional<z.ZodString>;
1918
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1919
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1920
- }, z.core.$catchall<z.ZodUnknown>>>;
1921
- phase: z.ZodEnum<{
1922
- seed: "seed";
1923
- capture: "capture";
1924
- intake: "intake";
1925
- "vendor-extract": "vendor-extract";
1926
- cleanup: "cleanup";
1927
- parity: "parity";
1928
- characterize: "characterize";
1929
- equiv: "equiv";
1930
- analyze: "analyze";
1931
- recover: "recover";
1932
- ship: "ship";
1933
- migration: "migration";
1934
- }>;
1935
- summary: z.ZodString;
1936
- diff: z.ZodOptional<z.ZodObject<{
1937
- addedLines: z.ZodNumber;
1938
- blobSha256: z.ZodString;
1939
- bytes: z.ZodNumber;
1940
- removedLines: z.ZodNumber;
1941
- }, z.core.$strip>>;
1942
- diffPath: z.ZodOptional<z.ZodString>;
1943
- payload: z.ZodOptional<z.ZodObject<{
1944
- diff: z.ZodOptional<z.ZodString>;
1945
- diffSha256: z.ZodOptional<z.ZodString>;
1946
- fileSha256After: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1947
- fileSha256Before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1948
- hunks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1949
- endLine: z.ZodNumber;
1950
- path: z.ZodString;
1951
- startLine: z.ZodNumber;
1952
- }, z.core.$strip>>>;
1953
- touchedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
1954
- }, z.core.$strip>>;
1955
- rationale: z.ZodString;
1956
- kind: z.ZodLiteral<"operator-patch">;
1957
- operator: z.ZodObject<{
1958
- name: z.ZodString;
1959
- }, z.core.$strip>;
1960
- }, z.core.$strip>;
1961
- export declare const StageTransitionRecordSchema: z.ZodObject<{
1962
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1963
- emitter: z.ZodObject<{
1964
- tool: z.ZodString;
1965
- user: z.ZodOptional<z.ZodString>;
1966
- version: z.ZodString;
1967
- }, z.core.$strip>;
1968
- idempotencyKey: z.ZodOptional<z.ZodString>;
1969
- links: z.ZodOptional<z.ZodObject<{
1970
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1971
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1972
- briefId: z.ZodOptional<z.ZodString>;
1973
- correctsLedgerId: z.ZodOptional<z.ZodString>;
1974
- gitRef: z.ZodOptional<z.ZodString>;
1975
- idempotencyKey: z.ZodOptional<z.ZodString>;
1976
- stripDecisionId: z.ZodOptional<z.ZodString>;
1977
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
1978
- validatorVerdictId: z.ZodOptional<z.ZodString>;
1979
- }, z.core.$catchall<z.ZodUnknown>>>;
1980
- phase: z.ZodEnum<{
1981
- seed: "seed";
1982
- capture: "capture";
1983
- intake: "intake";
1984
- "vendor-extract": "vendor-extract";
1985
- cleanup: "cleanup";
1986
- parity: "parity";
1987
- characterize: "characterize";
1988
- equiv: "equiv";
1989
- analyze: "analyze";
1990
- recover: "recover";
1991
- ship: "ship";
1992
- migration: "migration";
1993
- }>;
1994
- summary: z.ZodString;
1995
- kind: z.ZodLiteral<"stage-transition">;
1996
- payload: z.ZodObject<{
1997
- doctorBaselineId: z.ZodOptional<z.ZodString>;
1998
- endedAt: z.ZodString;
1999
- exitCode: z.ZodNumber;
2000
- stage: z.ZodEnum<{
2001
- seed: "seed";
2002
- intake: "intake";
2003
- "vendor-extract": "vendor-extract";
2004
- cleanup: "cleanup";
2005
- parity: "parity";
2006
- characterize: "characterize";
2007
- }>;
2008
- startedAt: z.ZodString;
2009
- }, z.core.$strip>;
2010
- }, z.core.$strip>;
2011
- export declare const OperatorDecisionRecordSchema: z.ZodObject<{
2012
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2013
- emitter: z.ZodObject<{
2014
- tool: z.ZodString;
2015
- user: z.ZodOptional<z.ZodString>;
2016
- version: z.ZodString;
2017
- }, z.core.$strip>;
2018
- idempotencyKey: z.ZodOptional<z.ZodString>;
2019
- links: z.ZodOptional<z.ZodObject<{
2020
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2021
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2022
- briefId: z.ZodOptional<z.ZodString>;
2023
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2024
- gitRef: z.ZodOptional<z.ZodString>;
2025
- idempotencyKey: z.ZodOptional<z.ZodString>;
2026
- stripDecisionId: z.ZodOptional<z.ZodString>;
2027
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2028
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2029
- }, z.core.$catchall<z.ZodUnknown>>>;
2030
- phase: z.ZodEnum<{
2031
- seed: "seed";
2032
- capture: "capture";
2033
- intake: "intake";
2034
- "vendor-extract": "vendor-extract";
2035
- cleanup: "cleanup";
2036
- parity: "parity";
2037
- characterize: "characterize";
2038
- equiv: "equiv";
2039
- analyze: "analyze";
2040
- recover: "recover";
2041
- ship: "ship";
2042
- migration: "migration";
2043
- }>;
2044
- summary: z.ZodString;
2045
- kind: z.ZodLiteral<"operator-decision">;
2046
- payload: z.ZodObject<{
2047
- action: z.ZodEnum<{
2048
- "bypass-doctor": "bypass-doctor";
2049
- "skip-check": "skip-check";
2050
- "override-strip-decision": "override-strip-decision";
2051
- "override-ship-state": "override-ship-state";
2052
- "manual-parity-assertion": "manual-parity-assertion";
2053
- "ledger-hand-edit": "ledger-hand-edit";
2054
- escalation: "escalation";
2055
- }>;
2056
- checkId: z.ZodOptional<z.ZodString>;
2057
- rationale: z.ZodString;
2058
- }, z.core.$strip>;
2059
- }, z.core.$strip>;
2060
- export declare const ValidatorResultRecordSchema: z.ZodObject<{
2061
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2062
- emitter: z.ZodObject<{
2063
- tool: z.ZodString;
2064
- user: z.ZodOptional<z.ZodString>;
2065
- version: z.ZodString;
2066
- }, z.core.$strip>;
2067
- idempotencyKey: z.ZodOptional<z.ZodString>;
2068
- links: z.ZodOptional<z.ZodObject<{
2069
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2070
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2071
- briefId: z.ZodOptional<z.ZodString>;
2072
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2073
- gitRef: z.ZodOptional<z.ZodString>;
2074
- idempotencyKey: z.ZodOptional<z.ZodString>;
2075
- stripDecisionId: z.ZodOptional<z.ZodString>;
2076
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2077
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2078
- }, z.core.$catchall<z.ZodUnknown>>>;
2079
- phase: z.ZodEnum<{
2080
- seed: "seed";
2081
- capture: "capture";
2082
- intake: "intake";
2083
- "vendor-extract": "vendor-extract";
2084
- cleanup: "cleanup";
2085
- parity: "parity";
2086
- characterize: "characterize";
2087
- equiv: "equiv";
2088
- analyze: "analyze";
2089
- recover: "recover";
2090
- ship: "ship";
2091
- migration: "migration";
2092
- }>;
2093
- summary: z.ZodString;
2094
- kind: z.ZodLiteral<"validator-result">;
2095
- metrics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2096
- payload: z.ZodOptional<z.ZodObject<{
2097
- id: z.ZodOptional<z.ZodString>;
2098
- }, z.core.$strip>>;
2099
- resultPath: z.ZodOptional<z.ZodString>;
2100
- validator: z.ZodEnum<{
2101
- parity: "parity";
2102
- characterize: "characterize";
2103
- equiv: "equiv";
2104
- verify: "verify";
2105
- doctor: "doctor";
2106
- }>;
2107
- verdict: z.ZodEnum<{
2108
- green: "green";
2109
- yellow: "yellow";
2110
- red: "red";
2111
- }>;
2112
- }, z.core.$strip>;
2113
- export declare const RuntimeEventRecordSchema: z.ZodObject<{
2114
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2115
- emitter: z.ZodObject<{
2116
- tool: z.ZodString;
2117
- user: z.ZodOptional<z.ZodString>;
2118
- version: z.ZodString;
2119
- }, z.core.$strip>;
2120
- idempotencyKey: z.ZodOptional<z.ZodString>;
2121
- links: z.ZodOptional<z.ZodObject<{
2122
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2123
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2124
- briefId: z.ZodOptional<z.ZodString>;
2125
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2126
- gitRef: z.ZodOptional<z.ZodString>;
2127
- idempotencyKey: z.ZodOptional<z.ZodString>;
2128
- stripDecisionId: z.ZodOptional<z.ZodString>;
2129
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2130
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2131
- }, z.core.$catchall<z.ZodUnknown>>>;
2132
- phase: z.ZodEnum<{
2133
- seed: "seed";
2134
- capture: "capture";
2135
- intake: "intake";
2136
- "vendor-extract": "vendor-extract";
2137
- cleanup: "cleanup";
2138
- parity: "parity";
2139
- characterize: "characterize";
2140
- equiv: "equiv";
2141
- analyze: "analyze";
2142
- recover: "recover";
2143
- ship: "ship";
2144
- migration: "migration";
2145
- }>;
2146
- summary: z.ZodString;
2147
- kind: z.ZodLiteral<"runtime-event">;
2148
- level: z.ZodEnum<{
2149
- error: "error";
2150
- info: "info";
2151
- warn: "warn";
2152
- }>;
2153
- message: z.ZodString;
2154
- source: z.ZodString;
2155
- stripDecisionId: z.ZodOptional<z.ZodString>;
2156
- }, z.core.$strip>;
2157
- export declare const NoteRecordSchema: z.ZodObject<{
2158
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2159
- emitter: z.ZodObject<{
2160
- tool: z.ZodString;
2161
- user: z.ZodOptional<z.ZodString>;
2162
- version: z.ZodString;
2163
- }, z.core.$strip>;
2164
- idempotencyKey: z.ZodOptional<z.ZodString>;
2165
- links: z.ZodOptional<z.ZodObject<{
2166
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2167
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2168
- briefId: z.ZodOptional<z.ZodString>;
2169
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2170
- gitRef: z.ZodOptional<z.ZodString>;
2171
- idempotencyKey: z.ZodOptional<z.ZodString>;
2172
- stripDecisionId: z.ZodOptional<z.ZodString>;
2173
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2174
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2175
- }, z.core.$catchall<z.ZodUnknown>>>;
2176
- phase: z.ZodEnum<{
2177
- seed: "seed";
2178
- capture: "capture";
2179
- intake: "intake";
2180
- "vendor-extract": "vendor-extract";
2181
- cleanup: "cleanup";
2182
- parity: "parity";
2183
- characterize: "characterize";
2184
- equiv: "equiv";
2185
- analyze: "analyze";
2186
- recover: "recover";
2187
- ship: "ship";
2188
- migration: "migration";
2189
- }>;
2190
- summary: z.ZodString;
2191
- body: z.ZodString;
2192
- kind: z.ZodLiteral<"note">;
2193
- subkind: z.ZodEnum<{
2194
- regression: "regression";
2195
- automation: "automation";
2196
- retro: "retro";
2197
- operator: "operator";
2198
- "tooling-gap": "tooling-gap";
2199
- }>;
2200
- }, z.core.$strip>;
2201
- export declare const CorrectionRecordSchema: z.ZodObject<{
2202
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2203
- emitter: z.ZodObject<{
2204
- tool: z.ZodString;
2205
- user: z.ZodOptional<z.ZodString>;
2206
- version: z.ZodString;
2207
- }, z.core.$strip>;
2208
- idempotencyKey: z.ZodOptional<z.ZodString>;
2209
- links: z.ZodOptional<z.ZodObject<{
2210
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2211
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2212
- briefId: z.ZodOptional<z.ZodString>;
2213
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2214
- gitRef: z.ZodOptional<z.ZodString>;
2215
- idempotencyKey: z.ZodOptional<z.ZodString>;
2216
- stripDecisionId: z.ZodOptional<z.ZodString>;
2217
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2218
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2219
- }, z.core.$catchall<z.ZodUnknown>>>;
2220
- phase: z.ZodEnum<{
2221
- seed: "seed";
2222
- capture: "capture";
2223
- intake: "intake";
2224
- "vendor-extract": "vendor-extract";
2225
- cleanup: "cleanup";
2226
- parity: "parity";
2227
- characterize: "characterize";
2228
- equiv: "equiv";
2229
- analyze: "analyze";
2230
- recover: "recover";
2231
- ship: "ship";
2232
- migration: "migration";
2233
- }>;
2234
- summary: z.ZodString;
2235
- kind: z.ZodLiteral<"correction">;
2236
- payload: z.ZodOptional<z.ZodObject<{
2237
- correctsValidatorResultId: z.ZodOptional<z.ZodString>;
2238
- }, z.core.$strip>>;
2239
- rationale: z.ZodString;
2240
- }, z.core.$strip>;
2241
- export declare const StripDecisionRevertedRecordSchema: z.ZodObject<{
2242
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2243
- emitter: z.ZodObject<{
2244
- tool: z.ZodString;
2245
- user: z.ZodOptional<z.ZodString>;
2246
- version: z.ZodString;
2247
- }, z.core.$strip>;
2248
- idempotencyKey: z.ZodOptional<z.ZodString>;
2249
- links: z.ZodOptional<z.ZodObject<{
2250
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2251
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2252
- briefId: z.ZodOptional<z.ZodString>;
2253
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2254
- gitRef: z.ZodOptional<z.ZodString>;
2255
- idempotencyKey: z.ZodOptional<z.ZodString>;
2256
- stripDecisionId: z.ZodOptional<z.ZodString>;
2257
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2258
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2259
- }, z.core.$catchall<z.ZodUnknown>>>;
2260
- phase: z.ZodEnum<{
2261
- seed: "seed";
2262
- capture: "capture";
2263
- intake: "intake";
2264
- "vendor-extract": "vendor-extract";
2265
- cleanup: "cleanup";
2266
- parity: "parity";
2267
- characterize: "characterize";
2268
- equiv: "equiv";
2269
- analyze: "analyze";
2270
- recover: "recover";
2271
- ship: "ship";
2272
- migration: "migration";
2273
- }>;
2274
- summary: z.ZodString;
2275
- kind: z.ZodLiteral<"strip-decision-reverted">;
2276
- payload: z.ZodObject<{
2277
- invalidatedStages: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2278
- seed: "seed";
2279
- intake: "intake";
2280
- "vendor-extract": "vendor-extract";
2281
- cleanup: "cleanup";
2282
- parity: "parity";
2283
- characterize: "characterize";
2284
- }>>>;
2285
- rationale: z.ZodString;
2286
- stripDecisionId: z.ZodString;
2287
- }, z.core.$strip>;
2288
- }, z.core.$strip>;
2289
- export declare const DescopeBriefRecordSchema: z.ZodObject<{
2290
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2291
- emitter: z.ZodObject<{
2292
- tool: z.ZodString;
2293
- user: z.ZodOptional<z.ZodString>;
2294
- version: z.ZodString;
2295
- }, z.core.$strip>;
2296
- idempotencyKey: z.ZodOptional<z.ZodString>;
2297
- links: z.ZodOptional<z.ZodObject<{
2298
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2299
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2300
- briefId: z.ZodOptional<z.ZodString>;
2301
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2302
- gitRef: z.ZodOptional<z.ZodString>;
2303
- idempotencyKey: z.ZodOptional<z.ZodString>;
2304
- stripDecisionId: z.ZodOptional<z.ZodString>;
2305
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2306
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2307
- }, z.core.$catchall<z.ZodUnknown>>>;
2308
- phase: z.ZodEnum<{
2309
- seed: "seed";
2310
- capture: "capture";
2311
- intake: "intake";
2312
- "vendor-extract": "vendor-extract";
2313
- cleanup: "cleanup";
2314
- parity: "parity";
2315
- characterize: "characterize";
2316
- equiv: "equiv";
2317
- analyze: "analyze";
2318
- recover: "recover";
2319
- ship: "ship";
2320
- migration: "migration";
2321
- }>;
2322
- summary: z.ZodString;
2323
- kind: z.ZodLiteral<"descope-brief">;
2324
- payload: z.ZodObject<{
2325
- briefId: z.ZodString;
2326
- reason: z.ZodOptional<z.ZodString>;
2327
- round: z.ZodOptional<z.ZodNumber>;
2328
- stripDecisionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2329
- }, z.core.$strip>;
2330
- }, z.core.$strip>;
2331
- export declare const MergeReturnRecordSchema: z.ZodObject<{
2332
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2333
- emitter: z.ZodObject<{
2334
- tool: z.ZodString;
2335
- user: z.ZodOptional<z.ZodString>;
2336
- version: z.ZodString;
2337
- }, z.core.$strip>;
2338
- idempotencyKey: z.ZodOptional<z.ZodString>;
2339
- links: z.ZodOptional<z.ZodObject<{
2340
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2341
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2342
- briefId: z.ZodOptional<z.ZodString>;
2343
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2344
- gitRef: z.ZodOptional<z.ZodString>;
2345
- idempotencyKey: z.ZodOptional<z.ZodString>;
2346
- stripDecisionId: z.ZodOptional<z.ZodString>;
2347
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2348
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2349
- }, z.core.$catchall<z.ZodUnknown>>>;
2350
- phase: z.ZodEnum<{
2351
- seed: "seed";
2352
- capture: "capture";
2353
- intake: "intake";
2354
- "vendor-extract": "vendor-extract";
2355
- cleanup: "cleanup";
2356
- parity: "parity";
2357
- characterize: "characterize";
2358
- equiv: "equiv";
2359
- analyze: "analyze";
2360
- recover: "recover";
2361
- ship: "ship";
2362
- migration: "migration";
2363
- }>;
2364
- summary: z.ZodString;
2365
- kind: z.ZodLiteral<"merge-return">;
2366
- payload: z.ZodObject<{
2367
- briefId: z.ZodOptional<z.ZodString>;
2368
- returnId: z.ZodString;
2369
- source: z.ZodOptional<z.ZodString>;
2370
- }, z.core.$strip>;
2371
- }, z.core.$strip>;
2372
- export declare const MergeReturnRejectedRecordSchema: z.ZodObject<{
2373
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2374
- emitter: z.ZodObject<{
2375
- tool: z.ZodString;
2376
- user: z.ZodOptional<z.ZodString>;
2377
- version: z.ZodString;
2378
- }, z.core.$strip>;
2379
- idempotencyKey: z.ZodOptional<z.ZodString>;
2380
- links: z.ZodOptional<z.ZodObject<{
2381
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2382
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2383
- briefId: z.ZodOptional<z.ZodString>;
2384
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2385
- gitRef: z.ZodOptional<z.ZodString>;
2386
- idempotencyKey: z.ZodOptional<z.ZodString>;
2387
- stripDecisionId: z.ZodOptional<z.ZodString>;
2388
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2389
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2390
- }, z.core.$catchall<z.ZodUnknown>>>;
2391
- phase: z.ZodEnum<{
2392
- seed: "seed";
2393
- capture: "capture";
2394
- intake: "intake";
2395
- "vendor-extract": "vendor-extract";
2396
- cleanup: "cleanup";
2397
- parity: "parity";
2398
- characterize: "characterize";
2399
- equiv: "equiv";
2400
- analyze: "analyze";
2401
- recover: "recover";
2402
- ship: "ship";
2403
- migration: "migration";
2404
- }>;
2405
- summary: z.ZodString;
2406
- kind: z.ZodLiteral<"merge-return-rejected">;
2407
- payload: z.ZodObject<{
2408
- briefId: z.ZodOptional<z.ZodString>;
2409
- returnId: z.ZodString;
2410
- source: z.ZodOptional<z.ZodString>;
2411
- reason: z.ZodString;
2412
- }, z.core.$strip>;
2413
- }, z.core.$strip>;
2414
- export declare const RevertRecordSchema: z.ZodObject<{
2415
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2416
- emitter: z.ZodObject<{
2417
- tool: z.ZodString;
2418
- user: z.ZodOptional<z.ZodString>;
2419
- version: z.ZodString;
2420
- }, z.core.$strip>;
2421
- idempotencyKey: z.ZodOptional<z.ZodString>;
2422
- links: z.ZodOptional<z.ZodObject<{
2423
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2424
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2425
- briefId: z.ZodOptional<z.ZodString>;
2426
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2427
- gitRef: z.ZodOptional<z.ZodString>;
2428
- idempotencyKey: z.ZodOptional<z.ZodString>;
2429
- stripDecisionId: z.ZodOptional<z.ZodString>;
2430
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2431
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2432
- }, z.core.$catchall<z.ZodUnknown>>>;
2433
- phase: z.ZodEnum<{
2434
- seed: "seed";
2435
- capture: "capture";
2436
- intake: "intake";
2437
- "vendor-extract": "vendor-extract";
2438
- cleanup: "cleanup";
2439
- parity: "parity";
2440
- characterize: "characterize";
2441
- equiv: "equiv";
2442
- analyze: "analyze";
2443
- recover: "recover";
2444
- ship: "ship";
2445
- migration: "migration";
2446
- }>;
2447
- summary: z.ZodString;
2448
- kind: z.ZodLiteral<"revert">;
2449
- payload: z.ZodObject<{
2450
- reason: z.ZodString;
2451
- targetEntryId: z.ZodOptional<z.ZodString>;
2452
- }, z.core.$strip>;
2453
- }, z.core.$strip>;
2454
- export declare const RollbackRecordSchema: z.ZodObject<{
2455
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2456
- emitter: z.ZodObject<{
2457
- tool: z.ZodString;
2458
- user: z.ZodOptional<z.ZodString>;
2459
- version: z.ZodString;
2460
- }, z.core.$strip>;
2461
- idempotencyKey: z.ZodOptional<z.ZodString>;
2462
- links: z.ZodOptional<z.ZodObject<{
2463
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2464
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2465
- briefId: z.ZodOptional<z.ZodString>;
2466
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2467
- gitRef: z.ZodOptional<z.ZodString>;
2468
- idempotencyKey: z.ZodOptional<z.ZodString>;
2469
- stripDecisionId: z.ZodOptional<z.ZodString>;
2470
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2471
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2472
- }, z.core.$catchall<z.ZodUnknown>>>;
2473
- phase: z.ZodEnum<{
2474
- seed: "seed";
2475
- capture: "capture";
2476
- intake: "intake";
2477
- "vendor-extract": "vendor-extract";
2478
- cleanup: "cleanup";
2479
- parity: "parity";
2480
- characterize: "characterize";
2481
- equiv: "equiv";
2482
- analyze: "analyze";
2483
- recover: "recover";
2484
- ship: "ship";
2485
- migration: "migration";
2486
- }>;
2487
- summary: z.ZodString;
2488
- kind: z.ZodLiteral<"rollback">;
2489
- payload: z.ZodObject<{
2490
- reason: z.ZodString;
2491
- targetEntryId: z.ZodOptional<z.ZodString>;
2492
- targetStage: z.ZodOptional<z.ZodEnum<{
2493
- seed: "seed";
2494
- intake: "intake";
2495
- "vendor-extract": "vendor-extract";
2496
- cleanup: "cleanup";
2497
- parity: "parity";
2498
- characterize: "characterize";
2499
- }>>;
2500
- }, z.core.$strip>;
2501
- }, z.core.$strip>;
2502
- export declare const ReworkTestRetiredRecordSchema: z.ZodObject<{
2503
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2504
- emitter: z.ZodObject<{
2505
- tool: z.ZodString;
2506
- user: z.ZodOptional<z.ZodString>;
2507
- version: z.ZodString;
2508
- }, z.core.$strip>;
2509
- idempotencyKey: z.ZodOptional<z.ZodString>;
2510
- links: z.ZodOptional<z.ZodObject<{
2511
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2512
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2513
- briefId: z.ZodOptional<z.ZodString>;
2514
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2515
- gitRef: z.ZodOptional<z.ZodString>;
2516
- idempotencyKey: z.ZodOptional<z.ZodString>;
2517
- stripDecisionId: z.ZodOptional<z.ZodString>;
2518
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2519
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2520
- }, z.core.$catchall<z.ZodUnknown>>>;
2521
- phase: z.ZodEnum<{
2522
- seed: "seed";
2523
- capture: "capture";
2524
- intake: "intake";
2525
- "vendor-extract": "vendor-extract";
2526
- cleanup: "cleanup";
2527
- parity: "parity";
2528
- characterize: "characterize";
2529
- equiv: "equiv";
2530
- analyze: "analyze";
2531
- recover: "recover";
2532
- ship: "ship";
2533
- migration: "migration";
2534
- }>;
2535
- summary: z.ZodString;
2536
- kind: z.ZodLiteral<"rework.test_retired">;
2537
- payload: z.ZodObject<{
2538
- briefId: z.ZodOptional<z.ZodString>;
2539
- removedBy: z.ZodEnum<{
2540
- operator: "operator";
2541
- descope: "descope";
2542
- decompose: "decompose";
2543
- }>;
2544
- removedTestPath: z.ZodString;
2545
- removedTestSymbols: z.ZodArray<z.ZodString>;
2546
- sourceSymbolDeletedFrom: z.ZodString;
2547
- }, z.core.$strip>;
2548
- }, z.core.$strip>;
2549
- export declare const LedgerRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2550
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2551
- emitter: z.ZodObject<{
2552
- tool: z.ZodString;
2553
- user: z.ZodOptional<z.ZodString>;
2554
- version: z.ZodString;
2555
- }, z.core.$strip>;
2556
- idempotencyKey: z.ZodOptional<z.ZodString>;
2557
- links: z.ZodOptional<z.ZodObject<{
2558
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2559
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2560
- briefId: z.ZodOptional<z.ZodString>;
2561
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2562
- gitRef: z.ZodOptional<z.ZodString>;
2563
- idempotencyKey: z.ZodOptional<z.ZodString>;
2564
- stripDecisionId: z.ZodOptional<z.ZodString>;
2565
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2566
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2567
- }, z.core.$catchall<z.ZodUnknown>>>;
2568
- phase: z.ZodEnum<{
2569
- seed: "seed";
2570
- capture: "capture";
2571
- intake: "intake";
2572
- "vendor-extract": "vendor-extract";
2573
- cleanup: "cleanup";
2574
- parity: "parity";
2575
- characterize: "characterize";
2576
- equiv: "equiv";
2577
- analyze: "analyze";
2578
- recover: "recover";
2579
- ship: "ship";
2580
- migration: "migration";
2581
- }>;
2582
- summary: z.ZodString;
2583
- args: z.ZodOptional<z.ZodArray<z.ZodString>>;
2584
- cwd: z.ZodOptional<z.ZodString>;
2585
- exitCode: z.ZodOptional<z.ZodNumber>;
2586
- kind: z.ZodLiteral<"tool-invocation">;
2587
- }, z.core.$strip>, z.ZodObject<{
2588
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2589
- emitter: z.ZodObject<{
2590
- tool: z.ZodString;
2591
- user: z.ZodOptional<z.ZodString>;
2592
- version: z.ZodString;
2593
- }, z.core.$strip>;
2594
- idempotencyKey: z.ZodOptional<z.ZodString>;
2595
- links: z.ZodOptional<z.ZodObject<{
2596
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2597
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2598
- briefId: z.ZodOptional<z.ZodString>;
2599
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2600
- gitRef: z.ZodOptional<z.ZodString>;
2601
- idempotencyKey: z.ZodOptional<z.ZodString>;
2602
- stripDecisionId: z.ZodOptional<z.ZodString>;
2603
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2604
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2605
- }, z.core.$catchall<z.ZodUnknown>>>;
2606
- phase: z.ZodEnum<{
2607
- seed: "seed";
2608
- capture: "capture";
2609
- intake: "intake";
2610
- "vendor-extract": "vendor-extract";
2611
- cleanup: "cleanup";
2612
- parity: "parity";
2613
- characterize: "characterize";
2614
- equiv: "equiv";
2615
- analyze: "analyze";
2616
- recover: "recover";
2617
- ship: "ship";
2618
- migration: "migration";
2619
- }>;
2620
- summary: z.ZodString;
2621
- diff: z.ZodOptional<z.ZodObject<{
2622
- addedLines: z.ZodNumber;
2623
- blobSha256: z.ZodString;
2624
- bytes: z.ZodNumber;
2625
- removedLines: z.ZodNumber;
2626
- }, z.core.$strip>>;
2627
- diffPath: z.ZodOptional<z.ZodString>;
2628
- payload: z.ZodOptional<z.ZodObject<{
2629
- diff: z.ZodOptional<z.ZodString>;
2630
- diffSha256: z.ZodOptional<z.ZodString>;
2631
- fileSha256After: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2632
- fileSha256Before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2633
- hunks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2634
- endLine: z.ZodNumber;
2635
- path: z.ZodString;
2636
- startLine: z.ZodNumber;
2637
- }, z.core.$strip>>>;
2638
- touchedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
2639
- }, z.core.$strip>>;
2640
- rationale: z.ZodString;
2641
- agent: z.ZodObject<{
2642
- name: z.ZodString;
2643
- sessionId: z.ZodOptional<z.ZodString>;
2644
- }, z.core.$strip>;
2645
- kind: z.ZodLiteral<"agent-patch">;
2646
- }, z.core.$strip>, z.ZodObject<{
2647
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2648
- emitter: z.ZodObject<{
2649
- tool: z.ZodString;
2650
- user: z.ZodOptional<z.ZodString>;
2651
- version: z.ZodString;
2652
- }, z.core.$strip>;
2653
- idempotencyKey: z.ZodOptional<z.ZodString>;
2654
- links: z.ZodOptional<z.ZodObject<{
2655
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2656
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2657
- briefId: z.ZodOptional<z.ZodString>;
2658
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2659
- gitRef: z.ZodOptional<z.ZodString>;
2660
- idempotencyKey: z.ZodOptional<z.ZodString>;
2661
- stripDecisionId: z.ZodOptional<z.ZodString>;
2662
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2663
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2664
- }, z.core.$catchall<z.ZodUnknown>>>;
2665
- phase: z.ZodEnum<{
2666
- seed: "seed";
2667
- capture: "capture";
2668
- intake: "intake";
2669
- "vendor-extract": "vendor-extract";
2670
- cleanup: "cleanup";
2671
- parity: "parity";
2672
- characterize: "characterize";
2673
- equiv: "equiv";
2674
- analyze: "analyze";
2675
- recover: "recover";
2676
- ship: "ship";
2677
- migration: "migration";
2678
- }>;
2679
- summary: z.ZodString;
2680
- diff: z.ZodOptional<z.ZodObject<{
2681
- addedLines: z.ZodNumber;
2682
- blobSha256: z.ZodString;
2683
- bytes: z.ZodNumber;
2684
- removedLines: z.ZodNumber;
2685
- }, z.core.$strip>>;
2686
- diffPath: z.ZodOptional<z.ZodString>;
2687
- payload: z.ZodOptional<z.ZodObject<{
2688
- diff: z.ZodOptional<z.ZodString>;
2689
- diffSha256: z.ZodOptional<z.ZodString>;
2690
- fileSha256After: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2691
- fileSha256Before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2692
- hunks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2693
- endLine: z.ZodNumber;
2694
- path: z.ZodString;
2695
- startLine: z.ZodNumber;
2696
- }, z.core.$strip>>>;
2697
- touchedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
2698
- }, z.core.$strip>>;
2699
- rationale: z.ZodString;
2700
- kind: z.ZodLiteral<"operator-patch">;
2701
- operator: z.ZodObject<{
2702
- name: z.ZodString;
2703
- }, z.core.$strip>;
2704
- }, z.core.$strip>, z.ZodObject<{
2705
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2706
- emitter: z.ZodObject<{
2707
- tool: z.ZodString;
2708
- user: z.ZodOptional<z.ZodString>;
2709
- version: z.ZodString;
2710
- }, z.core.$strip>;
2711
- idempotencyKey: z.ZodOptional<z.ZodString>;
2712
- links: z.ZodOptional<z.ZodObject<{
2713
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2714
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2715
- briefId: z.ZodOptional<z.ZodString>;
2716
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2717
- gitRef: z.ZodOptional<z.ZodString>;
2718
- idempotencyKey: z.ZodOptional<z.ZodString>;
2719
- stripDecisionId: z.ZodOptional<z.ZodString>;
2720
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2721
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2722
- }, z.core.$catchall<z.ZodUnknown>>>;
2723
- phase: z.ZodEnum<{
2724
- seed: "seed";
2725
- capture: "capture";
2726
- intake: "intake";
2727
- "vendor-extract": "vendor-extract";
2728
- cleanup: "cleanup";
2729
- parity: "parity";
2730
- characterize: "characterize";
2731
- equiv: "equiv";
2732
- analyze: "analyze";
2733
- recover: "recover";
2734
- ship: "ship";
2735
- migration: "migration";
2736
- }>;
2737
- summary: z.ZodString;
2738
- kind: z.ZodLiteral<"stage-transition">;
2739
- payload: z.ZodObject<{
2740
- doctorBaselineId: z.ZodOptional<z.ZodString>;
2741
- endedAt: z.ZodString;
2742
- exitCode: z.ZodNumber;
2743
- stage: z.ZodEnum<{
2744
- seed: "seed";
2745
- intake: "intake";
2746
- "vendor-extract": "vendor-extract";
2747
- cleanup: "cleanup";
2748
- parity: "parity";
2749
- characterize: "characterize";
2750
- }>;
2751
- startedAt: z.ZodString;
2752
- }, z.core.$strip>;
2753
- }, z.core.$strip>, z.ZodObject<{
2754
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2755
- emitter: z.ZodObject<{
2756
- tool: z.ZodString;
2757
- user: z.ZodOptional<z.ZodString>;
2758
- version: z.ZodString;
2759
- }, z.core.$strip>;
2760
- idempotencyKey: z.ZodOptional<z.ZodString>;
2761
- links: z.ZodOptional<z.ZodObject<{
2762
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2763
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2764
- briefId: z.ZodOptional<z.ZodString>;
2765
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2766
- gitRef: z.ZodOptional<z.ZodString>;
2767
- idempotencyKey: z.ZodOptional<z.ZodString>;
2768
- stripDecisionId: z.ZodOptional<z.ZodString>;
2769
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2770
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2771
- }, z.core.$catchall<z.ZodUnknown>>>;
2772
- phase: z.ZodEnum<{
2773
- seed: "seed";
2774
- capture: "capture";
2775
- intake: "intake";
2776
- "vendor-extract": "vendor-extract";
2777
- cleanup: "cleanup";
2778
- parity: "parity";
2779
- characterize: "characterize";
2780
- equiv: "equiv";
2781
- analyze: "analyze";
2782
- recover: "recover";
2783
- ship: "ship";
2784
- migration: "migration";
2785
- }>;
2786
- summary: z.ZodString;
2787
- kind: z.ZodLiteral<"operator-decision">;
2788
- payload: z.ZodObject<{
2789
- action: z.ZodEnum<{
2790
- "bypass-doctor": "bypass-doctor";
2791
- "skip-check": "skip-check";
2792
- "override-strip-decision": "override-strip-decision";
2793
- "override-ship-state": "override-ship-state";
2794
- "manual-parity-assertion": "manual-parity-assertion";
2795
- "ledger-hand-edit": "ledger-hand-edit";
2796
- escalation: "escalation";
2797
- }>;
2798
- checkId: z.ZodOptional<z.ZodString>;
2799
- rationale: z.ZodString;
2800
- }, z.core.$strip>;
2801
- }, z.core.$strip>, z.ZodObject<{
2802
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2803
- emitter: z.ZodObject<{
2804
- tool: z.ZodString;
2805
- user: z.ZodOptional<z.ZodString>;
2806
- version: z.ZodString;
2807
- }, z.core.$strip>;
2808
- idempotencyKey: z.ZodOptional<z.ZodString>;
2809
- links: z.ZodOptional<z.ZodObject<{
2810
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2811
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2812
- briefId: z.ZodOptional<z.ZodString>;
2813
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2814
- gitRef: z.ZodOptional<z.ZodString>;
2815
- idempotencyKey: z.ZodOptional<z.ZodString>;
2816
- stripDecisionId: z.ZodOptional<z.ZodString>;
2817
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2818
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2819
- }, z.core.$catchall<z.ZodUnknown>>>;
2820
- phase: z.ZodEnum<{
2821
- seed: "seed";
2822
- capture: "capture";
2823
- intake: "intake";
2824
- "vendor-extract": "vendor-extract";
2825
- cleanup: "cleanup";
2826
- parity: "parity";
2827
- characterize: "characterize";
2828
- equiv: "equiv";
2829
- analyze: "analyze";
2830
- recover: "recover";
2831
- ship: "ship";
2832
- migration: "migration";
2833
- }>;
2834
- summary: z.ZodString;
2835
- kind: z.ZodLiteral<"validator-result">;
2836
- metrics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2837
- payload: z.ZodOptional<z.ZodObject<{
2838
- id: z.ZodOptional<z.ZodString>;
2839
- }, z.core.$strip>>;
2840
- resultPath: z.ZodOptional<z.ZodString>;
2841
- validator: z.ZodEnum<{
2842
- parity: "parity";
2843
- characterize: "characterize";
2844
- equiv: "equiv";
2845
- verify: "verify";
2846
- doctor: "doctor";
2847
- }>;
2848
- verdict: z.ZodEnum<{
2849
- green: "green";
2850
- yellow: "yellow";
2851
- red: "red";
2852
- }>;
2853
- }, z.core.$strip>, z.ZodObject<{
2854
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2855
- emitter: z.ZodObject<{
2856
- tool: z.ZodString;
2857
- user: z.ZodOptional<z.ZodString>;
2858
- version: z.ZodString;
2859
- }, z.core.$strip>;
2860
- idempotencyKey: z.ZodOptional<z.ZodString>;
2861
- links: z.ZodOptional<z.ZodObject<{
2862
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2863
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2864
- briefId: z.ZodOptional<z.ZodString>;
2865
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2866
- gitRef: z.ZodOptional<z.ZodString>;
2867
- idempotencyKey: z.ZodOptional<z.ZodString>;
2868
- stripDecisionId: z.ZodOptional<z.ZodString>;
2869
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2870
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2871
- }, z.core.$catchall<z.ZodUnknown>>>;
2872
- phase: z.ZodEnum<{
2873
- seed: "seed";
2874
- capture: "capture";
2875
- intake: "intake";
2876
- "vendor-extract": "vendor-extract";
2877
- cleanup: "cleanup";
2878
- parity: "parity";
2879
- characterize: "characterize";
2880
- equiv: "equiv";
2881
- analyze: "analyze";
2882
- recover: "recover";
2883
- ship: "ship";
2884
- migration: "migration";
2885
- }>;
2886
- summary: z.ZodString;
2887
- kind: z.ZodLiteral<"runtime-event">;
2888
- level: z.ZodEnum<{
2889
- error: "error";
2890
- info: "info";
2891
- warn: "warn";
2892
- }>;
2893
- message: z.ZodString;
2894
- source: z.ZodString;
2895
- stripDecisionId: z.ZodOptional<z.ZodString>;
2896
- }, z.core.$strip>, z.ZodObject<{
2897
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2898
- emitter: z.ZodObject<{
2899
- tool: z.ZodString;
2900
- user: z.ZodOptional<z.ZodString>;
2901
- version: z.ZodString;
2902
- }, z.core.$strip>;
2903
- idempotencyKey: z.ZodOptional<z.ZodString>;
2904
- links: z.ZodOptional<z.ZodObject<{
2905
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2906
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2907
- briefId: z.ZodOptional<z.ZodString>;
2908
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2909
- gitRef: z.ZodOptional<z.ZodString>;
2910
- idempotencyKey: z.ZodOptional<z.ZodString>;
2911
- stripDecisionId: z.ZodOptional<z.ZodString>;
2912
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2913
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2914
- }, z.core.$catchall<z.ZodUnknown>>>;
2915
- phase: z.ZodEnum<{
2916
- seed: "seed";
2917
- capture: "capture";
2918
- intake: "intake";
2919
- "vendor-extract": "vendor-extract";
2920
- cleanup: "cleanup";
2921
- parity: "parity";
2922
- characterize: "characterize";
2923
- equiv: "equiv";
2924
- analyze: "analyze";
2925
- recover: "recover";
2926
- ship: "ship";
2927
- migration: "migration";
2928
- }>;
2929
- summary: z.ZodString;
2930
- body: z.ZodString;
2931
- kind: z.ZodLiteral<"note">;
2932
- subkind: z.ZodEnum<{
2933
- regression: "regression";
2934
- automation: "automation";
2935
- retro: "retro";
2936
- operator: "operator";
2937
- "tooling-gap": "tooling-gap";
2938
- }>;
2939
- }, z.core.$strip>, z.ZodObject<{
2940
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2941
- emitter: z.ZodObject<{
2942
- tool: z.ZodString;
2943
- user: z.ZodOptional<z.ZodString>;
2944
- version: z.ZodString;
2945
- }, z.core.$strip>;
2946
- idempotencyKey: z.ZodOptional<z.ZodString>;
2947
- links: z.ZodOptional<z.ZodObject<{
2948
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2949
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2950
- briefId: z.ZodOptional<z.ZodString>;
2951
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2952
- gitRef: z.ZodOptional<z.ZodString>;
2953
- idempotencyKey: z.ZodOptional<z.ZodString>;
2954
- stripDecisionId: z.ZodOptional<z.ZodString>;
2955
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2956
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2957
- }, z.core.$catchall<z.ZodUnknown>>>;
2958
- phase: z.ZodEnum<{
2959
- seed: "seed";
2960
- capture: "capture";
2961
- intake: "intake";
2962
- "vendor-extract": "vendor-extract";
2963
- cleanup: "cleanup";
2964
- parity: "parity";
2965
- characterize: "characterize";
2966
- equiv: "equiv";
2967
- analyze: "analyze";
2968
- recover: "recover";
2969
- ship: "ship";
2970
- migration: "migration";
2971
- }>;
2972
- summary: z.ZodString;
2973
- kind: z.ZodLiteral<"correction">;
2974
- payload: z.ZodOptional<z.ZodObject<{
2975
- correctsValidatorResultId: z.ZodOptional<z.ZodString>;
2976
- }, z.core.$strip>>;
2977
- rationale: z.ZodString;
2978
- }, z.core.$strip>, z.ZodObject<{
2979
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2980
- emitter: z.ZodObject<{
2981
- tool: z.ZodString;
2982
- user: z.ZodOptional<z.ZodString>;
2983
- version: z.ZodString;
2984
- }, z.core.$strip>;
2985
- idempotencyKey: z.ZodOptional<z.ZodString>;
2986
- links: z.ZodOptional<z.ZodObject<{
2987
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2988
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2989
- briefId: z.ZodOptional<z.ZodString>;
2990
- correctsLedgerId: z.ZodOptional<z.ZodString>;
2991
- gitRef: z.ZodOptional<z.ZodString>;
2992
- idempotencyKey: z.ZodOptional<z.ZodString>;
2993
- stripDecisionId: z.ZodOptional<z.ZodString>;
2994
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
2995
- validatorVerdictId: z.ZodOptional<z.ZodString>;
2996
- }, z.core.$catchall<z.ZodUnknown>>>;
2997
- phase: z.ZodEnum<{
2998
- seed: "seed";
2999
- capture: "capture";
3000
- intake: "intake";
3001
- "vendor-extract": "vendor-extract";
3002
- cleanup: "cleanup";
3003
- parity: "parity";
3004
- characterize: "characterize";
3005
- equiv: "equiv";
3006
- analyze: "analyze";
3007
- recover: "recover";
3008
- ship: "ship";
3009
- migration: "migration";
3010
- }>;
3011
- summary: z.ZodString;
3012
- kind: z.ZodLiteral<"strip-decision-reverted">;
3013
- payload: z.ZodObject<{
3014
- invalidatedStages: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3015
- seed: "seed";
3016
- intake: "intake";
3017
- "vendor-extract": "vendor-extract";
3018
- cleanup: "cleanup";
3019
- parity: "parity";
3020
- characterize: "characterize";
3021
- }>>>;
3022
- rationale: z.ZodString;
3023
- stripDecisionId: z.ZodString;
3024
- }, z.core.$strip>;
3025
- }, z.core.$strip>, z.ZodObject<{
3026
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3027
- emitter: z.ZodObject<{
3028
- tool: z.ZodString;
3029
- user: z.ZodOptional<z.ZodString>;
3030
- version: z.ZodString;
3031
- }, z.core.$strip>;
3032
- idempotencyKey: z.ZodOptional<z.ZodString>;
3033
- links: z.ZodOptional<z.ZodObject<{
3034
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
3035
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3036
- briefId: z.ZodOptional<z.ZodString>;
3037
- correctsLedgerId: z.ZodOptional<z.ZodString>;
3038
- gitRef: z.ZodOptional<z.ZodString>;
3039
- idempotencyKey: z.ZodOptional<z.ZodString>;
3040
- stripDecisionId: z.ZodOptional<z.ZodString>;
3041
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
3042
- validatorVerdictId: z.ZodOptional<z.ZodString>;
3043
- }, z.core.$catchall<z.ZodUnknown>>>;
3044
- phase: z.ZodEnum<{
3045
- seed: "seed";
3046
- capture: "capture";
3047
- intake: "intake";
3048
- "vendor-extract": "vendor-extract";
3049
- cleanup: "cleanup";
3050
- parity: "parity";
3051
- characterize: "characterize";
3052
- equiv: "equiv";
3053
- analyze: "analyze";
3054
- recover: "recover";
3055
- ship: "ship";
3056
- migration: "migration";
3057
- }>;
3058
- summary: z.ZodString;
3059
- kind: z.ZodLiteral<"descope-brief">;
3060
- payload: z.ZodObject<{
3061
- briefId: z.ZodString;
3062
- reason: z.ZodOptional<z.ZodString>;
3063
- round: z.ZodOptional<z.ZodNumber>;
3064
- stripDecisionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3065
- }, z.core.$strip>;
3066
- }, z.core.$strip>, z.ZodObject<{
3067
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3068
- emitter: z.ZodObject<{
3069
- tool: z.ZodString;
3070
- user: z.ZodOptional<z.ZodString>;
3071
- version: z.ZodString;
3072
- }, z.core.$strip>;
3073
- idempotencyKey: z.ZodOptional<z.ZodString>;
3074
- links: z.ZodOptional<z.ZodObject<{
3075
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
3076
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3077
- briefId: z.ZodOptional<z.ZodString>;
3078
- correctsLedgerId: z.ZodOptional<z.ZodString>;
3079
- gitRef: z.ZodOptional<z.ZodString>;
3080
- idempotencyKey: z.ZodOptional<z.ZodString>;
3081
- stripDecisionId: z.ZodOptional<z.ZodString>;
3082
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
3083
- validatorVerdictId: z.ZodOptional<z.ZodString>;
3084
- }, z.core.$catchall<z.ZodUnknown>>>;
3085
- phase: z.ZodEnum<{
3086
- seed: "seed";
3087
- capture: "capture";
3088
- intake: "intake";
3089
- "vendor-extract": "vendor-extract";
3090
- cleanup: "cleanup";
3091
- parity: "parity";
3092
- characterize: "characterize";
3093
- equiv: "equiv";
3094
- analyze: "analyze";
3095
- recover: "recover";
3096
- ship: "ship";
3097
- migration: "migration";
3098
- }>;
3099
- summary: z.ZodString;
3100
- kind: z.ZodLiteral<"merge-return">;
3101
- payload: z.ZodObject<{
3102
- briefId: z.ZodOptional<z.ZodString>;
3103
- returnId: z.ZodString;
3104
- source: z.ZodOptional<z.ZodString>;
3105
- }, z.core.$strip>;
3106
- }, z.core.$strip>, z.ZodObject<{
3107
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3108
- emitter: z.ZodObject<{
3109
- tool: z.ZodString;
3110
- user: z.ZodOptional<z.ZodString>;
3111
- version: z.ZodString;
3112
- }, z.core.$strip>;
3113
- idempotencyKey: z.ZodOptional<z.ZodString>;
3114
- links: z.ZodOptional<z.ZodObject<{
3115
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
3116
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3117
- briefId: z.ZodOptional<z.ZodString>;
3118
- correctsLedgerId: z.ZodOptional<z.ZodString>;
3119
- gitRef: z.ZodOptional<z.ZodString>;
3120
- idempotencyKey: z.ZodOptional<z.ZodString>;
3121
- stripDecisionId: z.ZodOptional<z.ZodString>;
3122
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
3123
- validatorVerdictId: z.ZodOptional<z.ZodString>;
3124
- }, z.core.$catchall<z.ZodUnknown>>>;
3125
- phase: z.ZodEnum<{
3126
- seed: "seed";
3127
- capture: "capture";
3128
- intake: "intake";
3129
- "vendor-extract": "vendor-extract";
3130
- cleanup: "cleanup";
3131
- parity: "parity";
3132
- characterize: "characterize";
3133
- equiv: "equiv";
3134
- analyze: "analyze";
3135
- recover: "recover";
3136
- ship: "ship";
3137
- migration: "migration";
3138
- }>;
3139
- summary: z.ZodString;
3140
- kind: z.ZodLiteral<"merge-return-rejected">;
3141
- payload: z.ZodObject<{
3142
- briefId: z.ZodOptional<z.ZodString>;
3143
- returnId: z.ZodString;
3144
- source: z.ZodOptional<z.ZodString>;
3145
- reason: z.ZodString;
3146
- }, z.core.$strip>;
3147
- }, z.core.$strip>, z.ZodObject<{
3148
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3149
- emitter: z.ZodObject<{
3150
- tool: z.ZodString;
3151
- user: z.ZodOptional<z.ZodString>;
3152
- version: z.ZodString;
3153
- }, z.core.$strip>;
3154
- idempotencyKey: z.ZodOptional<z.ZodString>;
3155
- links: z.ZodOptional<z.ZodObject<{
3156
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
3157
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3158
- briefId: z.ZodOptional<z.ZodString>;
3159
- correctsLedgerId: z.ZodOptional<z.ZodString>;
3160
- gitRef: z.ZodOptional<z.ZodString>;
3161
- idempotencyKey: z.ZodOptional<z.ZodString>;
3162
- stripDecisionId: z.ZodOptional<z.ZodString>;
3163
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
3164
- validatorVerdictId: z.ZodOptional<z.ZodString>;
3165
- }, z.core.$catchall<z.ZodUnknown>>>;
3166
- phase: z.ZodEnum<{
3167
- seed: "seed";
3168
- capture: "capture";
3169
- intake: "intake";
3170
- "vendor-extract": "vendor-extract";
3171
- cleanup: "cleanup";
3172
- parity: "parity";
3173
- characterize: "characterize";
3174
- equiv: "equiv";
3175
- analyze: "analyze";
3176
- recover: "recover";
3177
- ship: "ship";
3178
- migration: "migration";
3179
- }>;
3180
- summary: z.ZodString;
3181
- kind: z.ZodLiteral<"revert">;
3182
- payload: z.ZodObject<{
3183
- reason: z.ZodString;
3184
- targetEntryId: z.ZodOptional<z.ZodString>;
3185
- }, z.core.$strip>;
3186
- }, z.core.$strip>, z.ZodObject<{
3187
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3188
- emitter: z.ZodObject<{
3189
- tool: z.ZodString;
3190
- user: z.ZodOptional<z.ZodString>;
3191
- version: z.ZodString;
3192
- }, z.core.$strip>;
3193
- idempotencyKey: z.ZodOptional<z.ZodString>;
3194
- links: z.ZodOptional<z.ZodObject<{
3195
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
3196
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3197
- briefId: z.ZodOptional<z.ZodString>;
3198
- correctsLedgerId: z.ZodOptional<z.ZodString>;
3199
- gitRef: z.ZodOptional<z.ZodString>;
3200
- idempotencyKey: z.ZodOptional<z.ZodString>;
3201
- stripDecisionId: z.ZodOptional<z.ZodString>;
3202
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
3203
- validatorVerdictId: z.ZodOptional<z.ZodString>;
3204
- }, z.core.$catchall<z.ZodUnknown>>>;
3205
- phase: z.ZodEnum<{
3206
- seed: "seed";
3207
- capture: "capture";
3208
- intake: "intake";
3209
- "vendor-extract": "vendor-extract";
3210
- cleanup: "cleanup";
3211
- parity: "parity";
3212
- characterize: "characterize";
3213
- equiv: "equiv";
3214
- analyze: "analyze";
3215
- recover: "recover";
3216
- ship: "ship";
3217
- migration: "migration";
3218
- }>;
3219
- summary: z.ZodString;
3220
- kind: z.ZodLiteral<"rollback">;
3221
- payload: z.ZodObject<{
3222
- reason: z.ZodString;
3223
- targetEntryId: z.ZodOptional<z.ZodString>;
3224
- targetStage: z.ZodOptional<z.ZodEnum<{
3225
- seed: "seed";
3226
- intake: "intake";
3227
- "vendor-extract": "vendor-extract";
3228
- cleanup: "cleanup";
3229
- parity: "parity";
3230
- characterize: "characterize";
3231
- }>>;
3232
- }, z.core.$strip>;
3233
- }, z.core.$strip>, z.ZodObject<{
3234
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3235
- emitter: z.ZodObject<{
3236
- tool: z.ZodString;
3237
- user: z.ZodOptional<z.ZodString>;
3238
- version: z.ZodString;
3239
- }, z.core.$strip>;
3240
- idempotencyKey: z.ZodOptional<z.ZodString>;
3241
- links: z.ZodOptional<z.ZodObject<{
3242
- affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
3243
- blobs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3244
- briefId: z.ZodOptional<z.ZodString>;
3245
- correctsLedgerId: z.ZodOptional<z.ZodString>;
3246
- gitRef: z.ZodOptional<z.ZodString>;
3247
- idempotencyKey: z.ZodOptional<z.ZodString>;
3248
- stripDecisionId: z.ZodOptional<z.ZodString>;
3249
- supersedesLedgerId: z.ZodOptional<z.ZodString>;
3250
- validatorVerdictId: z.ZodOptional<z.ZodString>;
3251
- }, z.core.$catchall<z.ZodUnknown>>>;
3252
- phase: z.ZodEnum<{
3253
- seed: "seed";
3254
- capture: "capture";
3255
- intake: "intake";
3256
- "vendor-extract": "vendor-extract";
3257
- cleanup: "cleanup";
3258
- parity: "parity";
3259
- characterize: "characterize";
3260
- equiv: "equiv";
3261
- analyze: "analyze";
3262
- recover: "recover";
3263
- ship: "ship";
3264
- migration: "migration";
3265
- }>;
3266
- summary: z.ZodString;
3267
- kind: z.ZodLiteral<"rework.test_retired">;
3268
- payload: z.ZodObject<{
3269
- briefId: z.ZodOptional<z.ZodString>;
3270
- removedBy: z.ZodEnum<{
3271
- operator: "operator";
3272
- descope: "descope";
3273
- decompose: "decompose";
3274
- }>;
3275
- removedTestPath: z.ZodString;
3276
- removedTestSymbols: z.ZodArray<z.ZodString>;
3277
- sourceSymbolDeletedFrom: z.ZodString;
3278
- }, z.core.$strip>;
3279
- }, z.core.$strip>], "kind">;
6
+ export declare const LedgerPhaseSchema: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
7
+ export declare const OperatorDecisionActionSchema: v.PicklistSchema<readonly ["bypass-doctor", "skip-check", "override-strip-decision", "override-ship-state", "manual-parity-assertion", "ledger-hand-edit", "escalation"], undefined>;
8
+ export declare const EmitterSchema: v.ObjectSchema<{
9
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
10
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
11
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
12
+ }, undefined>;
13
+ export declare const LedgerLinksSchema: v.ObjectWithRestSchema<{
14
+ 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>;
15
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
16
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
17
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
18
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
19
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
20
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
21
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
22
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
23
+ }, v.UnknownSchema, undefined>;
24
+ export declare const AgentPatchDiffSchema: v.ObjectSchema<{
25
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
26
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
27
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
28
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
29
+ }, undefined>;
30
+ export declare const OperatorDecisionPayloadSchema: v.ObjectSchema<{
31
+ readonly action: v.PicklistSchema<readonly ["bypass-doctor", "skip-check", "override-strip-decision", "override-ship-state", "manual-parity-assertion", "ledger-hand-edit", "escalation"], undefined>;
32
+ readonly checkId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
33
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "payload.rationale must not be empty">]>;
34
+ }, undefined>;
35
+ export declare const StripDecisionRevertedPayloadSchema: v.ObjectSchema<{
36
+ readonly invalidatedStages: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["intake", "seed", "vendor-extract", "cleanup", "parity", "characterize"], undefined>, undefined>, undefined>;
37
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
38
+ readonly stripDecisionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
39
+ }, undefined>;
40
+ export declare const ToolInvocationEntrySchema: v.ObjectSchema<{
41
+ readonly args: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
42
+ readonly cwd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
43
+ readonly exitCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
44
+ readonly kind: v.LiteralSchema<"tool-invocation", undefined>;
45
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
46
+ readonly emitter: v.ObjectSchema<{
47
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
48
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
49
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
50
+ }, undefined>;
51
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
52
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
53
+ 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>;
54
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
55
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
56
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
57
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
58
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
59
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
60
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
61
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
62
+ }, v.UnknownSchema, undefined>, {}>;
63
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
64
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
65
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
66
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
67
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
68
+ }, undefined>;
69
+ export declare const AgentPatchEntrySchema: v.ObjectSchema<{
70
+ readonly agent: v.ObjectSchema<{
71
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
72
+ readonly sessionId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
73
+ }, undefined>;
74
+ readonly kind: v.LiteralSchema<"agent-patch", undefined>;
75
+ readonly diff: v.ObjectSchema<{
76
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
77
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
78
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
79
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
80
+ }, undefined>;
81
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
82
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
83
+ readonly emitter: v.ObjectSchema<{
84
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
85
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
86
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
87
+ }, undefined>;
88
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
89
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
90
+ 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>;
91
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
92
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
93
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
94
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
95
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
96
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
97
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
98
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
99
+ }, v.UnknownSchema, undefined>, {}>;
100
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
101
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
102
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
103
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
104
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
105
+ }, undefined>;
106
+ export declare const OperatorPatchEntrySchema: v.ObjectSchema<{
107
+ readonly kind: v.LiteralSchema<"operator-patch", undefined>;
108
+ readonly operator: v.ObjectSchema<{
109
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
110
+ }, undefined>;
111
+ readonly diff: v.ObjectSchema<{
112
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
113
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
114
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
115
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
116
+ }, undefined>;
117
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
118
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
119
+ readonly emitter: v.ObjectSchema<{
120
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
121
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
122
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
123
+ }, undefined>;
124
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
125
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
126
+ 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>;
127
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
128
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
129
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
130
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
131
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
132
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
133
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
134
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
135
+ }, v.UnknownSchema, undefined>, {}>;
136
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
137
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
138
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
139
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
140
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
141
+ }, undefined>;
142
+ export declare const OperatorDecisionEntrySchema: v.ObjectSchema<{
143
+ readonly kind: v.LiteralSchema<"operator-decision", undefined>;
144
+ readonly payload: v.ObjectSchema<{
145
+ readonly action: v.PicklistSchema<readonly ["bypass-doctor", "skip-check", "override-strip-decision", "override-ship-state", "manual-parity-assertion", "ledger-hand-edit", "escalation"], undefined>;
146
+ readonly checkId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
147
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "payload.rationale must not be empty">]>;
148
+ }, undefined>;
149
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
150
+ readonly emitter: v.ObjectSchema<{
151
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
152
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
153
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
154
+ }, undefined>;
155
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
156
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
157
+ 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>;
158
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
159
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
160
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
161
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
162
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
163
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
164
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
165
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
166
+ }, v.UnknownSchema, undefined>, {}>;
167
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
168
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
169
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
170
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
171
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
172
+ }, undefined>;
173
+ export declare const ValidatorResultEntrySchema: v.ObjectSchema<{
174
+ readonly kind: v.LiteralSchema<"validator-result", undefined>;
175
+ readonly metrics: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
176
+ readonly resultPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
177
+ readonly validator: v.PicklistSchema<["parity", "equiv", "characterize", "verify", "doctor"], undefined>;
178
+ readonly verdict: v.PicklistSchema<["green", "yellow", "red"], undefined>;
179
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
180
+ readonly emitter: v.ObjectSchema<{
181
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
182
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
183
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
184
+ }, undefined>;
185
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
186
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
187
+ 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>;
188
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
189
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
190
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
191
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
192
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
193
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
194
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
195
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
196
+ }, v.UnknownSchema, undefined>, {}>;
197
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
198
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
199
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
200
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
201
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
202
+ }, undefined>;
203
+ export declare const RuntimeEventEntrySchema: v.ObjectSchema<{
204
+ readonly kind: v.LiteralSchema<"runtime-event", undefined>;
205
+ readonly level: v.PicklistSchema<["info", "warn", "error"], undefined>;
206
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
207
+ readonly source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
208
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
209
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
210
+ readonly emitter: v.ObjectSchema<{
211
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
212
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
213
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
214
+ }, undefined>;
215
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
216
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
217
+ 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>;
218
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
219
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
220
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
221
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
222
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
223
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
224
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
225
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
226
+ }, v.UnknownSchema, undefined>, {}>;
227
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
228
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
229
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
230
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
231
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
232
+ }, undefined>;
233
+ export declare const NoteEntrySchema: v.ObjectSchema<{
234
+ readonly body: v.StringSchema<undefined>;
235
+ readonly kind: v.LiteralSchema<"note", undefined>;
236
+ readonly subkind: v.PicklistSchema<["regression", "automation", "retro", "operator", "tooling-gap"], 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.MinLengthAction<string, 1, undefined>]>;
240
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
241
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
242
+ }, undefined>;
243
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, 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>, {}>;
255
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
256
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
257
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
258
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
259
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
260
+ }, undefined>;
261
+ export declare const CorrectionEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
262
+ readonly kind: v.LiteralSchema<"correction", undefined>;
263
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
264
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
265
+ readonly emitter: v.ObjectSchema<{
266
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
267
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
268
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
269
+ }, undefined>;
270
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
271
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
272
+ 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>;
273
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
274
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
275
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
276
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
277
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
278
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
279
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
280
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
281
+ }, v.UnknownSchema, undefined>, {}>;
282
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
283
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
284
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
285
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
286
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
287
+ }, undefined>, v.CheckAction<{
288
+ kind: "correction";
289
+ rationale: string;
290
+ details?: {
291
+ [x: string]: unknown;
292
+ } | undefined;
293
+ emitter: {
294
+ tool: string;
295
+ user?: string | undefined;
296
+ version: string;
297
+ };
298
+ id: string;
299
+ links: {
300
+ affectedFiles?: string[] | undefined;
301
+ blobs?: string[] | undefined;
302
+ briefId?: string | undefined;
303
+ correctsLedgerId?: string | undefined;
304
+ gitRef?: string | undefined;
305
+ idempotencyKey?: string | undefined;
306
+ stripDecisionId?: string | undefined;
307
+ supersedesLedgerId?: string | undefined;
308
+ validatorVerdictId?: string | undefined;
309
+ } & {
310
+ [key: string]: unknown;
311
+ };
312
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
313
+ prevEntryId: string | null;
314
+ schemaVersion: "ushman-ledger-entry/v1";
315
+ summary: string;
316
+ ts: string;
317
+ }, "correction entries require links.correctsLedgerId">]>;
318
+ export declare const StripDecisionRevertedEntrySchema: v.ObjectSchema<{
319
+ readonly kind: v.LiteralSchema<"strip-decision-reverted", undefined>;
320
+ readonly payload: v.ObjectSchema<{
321
+ readonly invalidatedStages: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["intake", "seed", "vendor-extract", "cleanup", "parity", "characterize"], undefined>, undefined>, undefined>;
322
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
323
+ readonly stripDecisionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
324
+ }, undefined>;
325
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
326
+ readonly emitter: v.ObjectSchema<{
327
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
328
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
329
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
330
+ }, undefined>;
331
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
332
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
333
+ 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>;
334
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
335
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
336
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
337
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
338
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
339
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
340
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
341
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
342
+ }, v.UnknownSchema, undefined>, {}>;
343
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
344
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
345
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
346
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
347
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
348
+ }, undefined>;
349
+ export declare const LedgerEntrySchema: v.VariantSchema<"kind", [v.ObjectSchema<{
350
+ readonly args: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
351
+ readonly cwd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
352
+ readonly exitCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
353
+ readonly kind: v.LiteralSchema<"tool-invocation", undefined>;
354
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
355
+ readonly emitter: v.ObjectSchema<{
356
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
357
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
358
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
359
+ }, undefined>;
360
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
361
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
362
+ 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>;
363
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
364
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
365
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
366
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
367
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
368
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
369
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
370
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
371
+ }, v.UnknownSchema, undefined>, {}>;
372
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
373
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
374
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
375
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
376
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
377
+ }, undefined>, v.ObjectSchema<{
378
+ readonly agent: v.ObjectSchema<{
379
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
380
+ readonly sessionId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
381
+ }, undefined>;
382
+ readonly kind: v.LiteralSchema<"agent-patch", undefined>;
383
+ readonly diff: v.ObjectSchema<{
384
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
385
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
386
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
387
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
388
+ }, undefined>;
389
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
390
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
391
+ readonly emitter: v.ObjectSchema<{
392
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
393
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
394
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
395
+ }, undefined>;
396
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
397
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
398
+ 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>;
399
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
400
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
401
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
402
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
403
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
404
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
405
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
406
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
407
+ }, v.UnknownSchema, undefined>, {}>;
408
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
409
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
410
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
411
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
412
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
413
+ }, undefined>, v.ObjectSchema<{
414
+ readonly kind: v.LiteralSchema<"operator-patch", undefined>;
415
+ readonly operator: v.ObjectSchema<{
416
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
417
+ }, undefined>;
418
+ readonly diff: v.ObjectSchema<{
419
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
420
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
421
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
422
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
423
+ }, undefined>;
424
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
425
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
426
+ readonly emitter: v.ObjectSchema<{
427
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
428
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
429
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
430
+ }, undefined>;
431
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
432
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
433
+ 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>;
434
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
435
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
436
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
437
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
438
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
439
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
440
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
441
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
442
+ }, v.UnknownSchema, undefined>, {}>;
443
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
444
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
445
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
446
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
447
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
448
+ }, undefined>, v.ObjectSchema<{
449
+ readonly kind: v.LiteralSchema<"operator-decision", undefined>;
450
+ readonly payload: v.ObjectSchema<{
451
+ readonly action: v.PicklistSchema<readonly ["bypass-doctor", "skip-check", "override-strip-decision", "override-ship-state", "manual-parity-assertion", "ledger-hand-edit", "escalation"], undefined>;
452
+ readonly checkId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
453
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "payload.rationale must not be empty">]>;
454
+ }, undefined>;
455
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
456
+ readonly emitter: v.ObjectSchema<{
457
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
458
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
459
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
460
+ }, undefined>;
461
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
462
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
463
+ 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>;
464
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
465
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
466
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
467
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
468
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
469
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
470
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
471
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
472
+ }, v.UnknownSchema, undefined>, {}>;
473
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
474
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
475
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
476
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
477
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
478
+ }, undefined>, v.ObjectSchema<{
479
+ readonly kind: v.LiteralSchema<"validator-result", undefined>;
480
+ readonly metrics: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
481
+ readonly resultPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
482
+ readonly validator: v.PicklistSchema<["parity", "equiv", "characterize", "verify", "doctor"], undefined>;
483
+ readonly verdict: v.PicklistSchema<["green", "yellow", "red"], undefined>;
484
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
485
+ readonly emitter: v.ObjectSchema<{
486
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
487
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
488
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
489
+ }, undefined>;
490
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
491
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
492
+ 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>;
493
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
494
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
495
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
496
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
497
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
498
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
499
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
500
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
501
+ }, v.UnknownSchema, undefined>, {}>;
502
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
503
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
504
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
505
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
506
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
507
+ }, undefined>, v.ObjectSchema<{
508
+ readonly kind: v.LiteralSchema<"runtime-event", undefined>;
509
+ readonly level: v.PicklistSchema<["info", "warn", "error"], undefined>;
510
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
511
+ readonly source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
512
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
513
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
514
+ readonly emitter: v.ObjectSchema<{
515
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
516
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
517
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
518
+ }, undefined>;
519
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
520
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
521
+ 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>;
522
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
523
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
524
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
525
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
526
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
527
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
528
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
529
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
530
+ }, v.UnknownSchema, undefined>, {}>;
531
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
532
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
533
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
534
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
535
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
536
+ }, undefined>, v.ObjectSchema<{
537
+ readonly body: v.StringSchema<undefined>;
538
+ readonly kind: v.LiteralSchema<"note", undefined>;
539
+ readonly subkind: v.PicklistSchema<["regression", "automation", "retro", "operator", "tooling-gap"], undefined>;
540
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
541
+ readonly emitter: v.ObjectSchema<{
542
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
543
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
544
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
545
+ }, undefined>;
546
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
547
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
548
+ 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>;
549
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
550
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
551
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
552
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
553
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
554
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
555
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
556
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
557
+ }, v.UnknownSchema, undefined>, {}>;
558
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
559
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
560
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
561
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
562
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
563
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
564
+ readonly kind: v.LiteralSchema<"correction", undefined>;
565
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
566
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
567
+ readonly emitter: v.ObjectSchema<{
568
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
569
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
570
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
571
+ }, undefined>;
572
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
573
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
574
+ 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>;
575
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
576
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
577
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
578
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
579
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
580
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
581
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
582
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
583
+ }, v.UnknownSchema, undefined>, {}>;
584
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
585
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
586
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
587
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
588
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
589
+ }, undefined>, v.CheckAction<{
590
+ kind: "correction";
591
+ rationale: string;
592
+ details?: {
593
+ [x: string]: unknown;
594
+ } | undefined;
595
+ emitter: {
596
+ tool: string;
597
+ user?: string | undefined;
598
+ version: string;
599
+ };
600
+ id: string;
601
+ links: {
602
+ affectedFiles?: string[] | undefined;
603
+ blobs?: string[] | undefined;
604
+ briefId?: string | undefined;
605
+ correctsLedgerId?: string | undefined;
606
+ gitRef?: string | undefined;
607
+ idempotencyKey?: string | undefined;
608
+ stripDecisionId?: string | undefined;
609
+ supersedesLedgerId?: string | undefined;
610
+ validatorVerdictId?: string | undefined;
611
+ } & {
612
+ [key: string]: unknown;
613
+ };
614
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
615
+ prevEntryId: string | null;
616
+ schemaVersion: "ushman-ledger-entry/v1";
617
+ summary: string;
618
+ ts: string;
619
+ }, "correction entries require links.correctsLedgerId">]>, v.ObjectSchema<{
620
+ readonly kind: v.LiteralSchema<"strip-decision-reverted", undefined>;
621
+ readonly payload: v.ObjectSchema<{
622
+ readonly invalidatedStages: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["intake", "seed", "vendor-extract", "cleanup", "parity", "characterize"], undefined>, undefined>, undefined>;
623
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
624
+ readonly stripDecisionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
625
+ }, undefined>;
626
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
627
+ readonly emitter: v.ObjectSchema<{
628
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
629
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
630
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
631
+ }, undefined>;
632
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
633
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
634
+ 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>;
635
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
636
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
637
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
638
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
639
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
640
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
641
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
642
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
643
+ }, v.UnknownSchema, undefined>, {}>;
644
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
645
+ readonly prevEntryId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
646
+ readonly schemaVersion: v.LiteralSchema<"ushman-ledger-entry/v1", undefined>;
647
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
648
+ readonly ts: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
649
+ }, undefined>], undefined>;
650
+ export declare const ToolInvocationRecordSchema: v.ObjectSchema<{
651
+ readonly args: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
652
+ readonly cwd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
653
+ readonly exitCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
654
+ readonly kind: v.LiteralSchema<"tool-invocation", undefined>;
655
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
656
+ readonly emitter: v.ObjectSchema<{
657
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
658
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
659
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
660
+ }, undefined>;
661
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
662
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
663
+ 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>;
664
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
665
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
666
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
667
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
668
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
669
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
670
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
671
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
672
+ }, v.UnknownSchema, undefined>, undefined>;
673
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
674
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
675
+ }, undefined>;
676
+ export declare const AgentPatchRecordSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
677
+ readonly agent: v.ObjectSchema<{
678
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
679
+ readonly sessionId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
680
+ }, undefined>;
681
+ readonly kind: v.LiteralSchema<"agent-patch", undefined>;
682
+ readonly diff: v.OptionalSchema<v.ObjectSchema<{
683
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
684
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
685
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
686
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
687
+ }, undefined>, undefined>;
688
+ readonly diffPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
689
+ readonly diffText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
690
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, 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.MinLengthAction<string, 1, undefined>]>;
694
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
695
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
696
+ }, undefined>;
697
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, 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.MinLengthAction<string, 1, undefined>]>;
711
+ }, undefined>, v.CheckAction<{
712
+ agent: {
713
+ name: string;
714
+ sessionId?: string | undefined;
715
+ };
716
+ kind: "agent-patch";
717
+ diff?: {
718
+ addedLines: number;
719
+ blobSha256: string;
720
+ bytes: number;
721
+ removedLines: number;
722
+ } | undefined;
723
+ diffPath?: string | undefined;
724
+ diffText?: string | undefined;
725
+ rationale: string;
726
+ details?: {
727
+ [x: string]: unknown;
728
+ } | undefined;
729
+ emitter: {
730
+ tool: string;
731
+ user?: string | undefined;
732
+ version: string;
733
+ };
734
+ idempotencyKey?: string | undefined;
735
+ links?: ({
736
+ affectedFiles?: string[] | undefined;
737
+ blobs?: string[] | undefined;
738
+ briefId?: string | undefined;
739
+ correctsLedgerId?: string | undefined;
740
+ gitRef?: string | undefined;
741
+ idempotencyKey?: string | undefined;
742
+ stripDecisionId?: string | undefined;
743
+ supersedesLedgerId?: string | undefined;
744
+ validatorVerdictId?: string | undefined;
745
+ } & {
746
+ [key: string]: unknown;
747
+ }) | undefined;
748
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
749
+ summary: string;
750
+ }, "patch records require exactly one source: diff, diffPath, or diffText (diffPath and diffText cannot be combined).">]>;
751
+ export declare const OperatorPatchRecordSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
752
+ readonly kind: v.LiteralSchema<"operator-patch", undefined>;
753
+ readonly operator: v.ObjectSchema<{
754
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
755
+ }, undefined>;
756
+ readonly diff: v.OptionalSchema<v.ObjectSchema<{
757
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
758
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
759
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
760
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
761
+ }, undefined>, undefined>;
762
+ readonly diffPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
763
+ readonly diffText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
764
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
765
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
766
+ readonly emitter: v.ObjectSchema<{
767
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
768
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
769
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
770
+ }, undefined>;
771
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
772
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
773
+ 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>;
774
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
775
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
776
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
777
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
778
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
779
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
780
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
781
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
782
+ }, v.UnknownSchema, undefined>, undefined>;
783
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
784
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
785
+ }, undefined>, v.CheckAction<{
786
+ kind: "operator-patch";
787
+ operator: {
788
+ name: string;
789
+ };
790
+ diff?: {
791
+ addedLines: number;
792
+ blobSha256: string;
793
+ bytes: number;
794
+ removedLines: number;
795
+ } | undefined;
796
+ diffPath?: string | undefined;
797
+ diffText?: string | undefined;
798
+ rationale: string;
799
+ details?: {
800
+ [x: string]: unknown;
801
+ } | undefined;
802
+ emitter: {
803
+ tool: string;
804
+ user?: string | undefined;
805
+ version: string;
806
+ };
807
+ idempotencyKey?: string | undefined;
808
+ links?: ({
809
+ affectedFiles?: string[] | undefined;
810
+ blobs?: string[] | undefined;
811
+ briefId?: string | undefined;
812
+ correctsLedgerId?: string | undefined;
813
+ gitRef?: string | undefined;
814
+ idempotencyKey?: string | undefined;
815
+ stripDecisionId?: string | undefined;
816
+ supersedesLedgerId?: string | undefined;
817
+ validatorVerdictId?: string | undefined;
818
+ } & {
819
+ [key: string]: unknown;
820
+ }) | undefined;
821
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
822
+ summary: string;
823
+ }, "patch records require exactly one source: diff, diffPath, or diffText (diffPath and diffText cannot be combined).">]>;
824
+ export declare const OperatorDecisionRecordSchema: v.ObjectSchema<{
825
+ readonly kind: v.LiteralSchema<"operator-decision", undefined>;
826
+ readonly payload: v.ObjectSchema<{
827
+ readonly action: v.PicklistSchema<readonly ["bypass-doctor", "skip-check", "override-strip-decision", "override-ship-state", "manual-parity-assertion", "ledger-hand-edit", "escalation"], undefined>;
828
+ readonly checkId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
829
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "payload.rationale must not be empty">]>;
830
+ }, undefined>;
831
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
832
+ readonly emitter: v.ObjectSchema<{
833
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
834
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
835
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
836
+ }, undefined>;
837
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
838
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
839
+ 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>;
840
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
841
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
842
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
843
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
844
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
845
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
846
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
847
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
848
+ }, v.UnknownSchema, undefined>, undefined>;
849
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
850
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
851
+ }, undefined>;
852
+ export declare const ValidatorResultRecordSchema: v.ObjectSchema<{
853
+ readonly kind: v.LiteralSchema<"validator-result", undefined>;
854
+ readonly metrics: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
855
+ readonly resultPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
856
+ readonly validator: v.PicklistSchema<["parity", "equiv", "characterize", "verify", "doctor"], undefined>;
857
+ readonly verdict: v.PicklistSchema<["green", "yellow", "red"], undefined>;
858
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
859
+ readonly emitter: v.ObjectSchema<{
860
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
861
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
862
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
863
+ }, undefined>;
864
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
865
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
866
+ 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>;
867
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
868
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
869
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
870
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
871
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
872
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
873
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
874
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
875
+ }, v.UnknownSchema, undefined>, undefined>;
876
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
877
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
878
+ }, undefined>;
879
+ export declare const RuntimeEventRecordSchema: v.ObjectSchema<{
880
+ readonly kind: v.LiteralSchema<"runtime-event", undefined>;
881
+ readonly level: v.PicklistSchema<["info", "warn", "error"], undefined>;
882
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
883
+ readonly source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
884
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
885
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
886
+ readonly emitter: v.ObjectSchema<{
887
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
888
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
889
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
890
+ }, undefined>;
891
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
892
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
893
+ 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>;
894
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
895
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
896
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
897
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
898
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
899
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
900
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
901
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
902
+ }, v.UnknownSchema, undefined>, undefined>;
903
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
904
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
905
+ }, undefined>;
906
+ export declare const NoteRecordSchema: v.ObjectSchema<{
907
+ readonly body: v.StringSchema<undefined>;
908
+ readonly kind: v.LiteralSchema<"note", undefined>;
909
+ readonly subkind: v.PicklistSchema<["regression", "automation", "retro", "operator", "tooling-gap"], undefined>;
910
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
911
+ readonly emitter: v.ObjectSchema<{
912
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
913
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
914
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
915
+ }, undefined>;
916
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
917
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
918
+ 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>;
919
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
920
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
921
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
922
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
923
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
924
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
925
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
926
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
927
+ }, v.UnknownSchema, undefined>, undefined>;
928
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
929
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
930
+ }, undefined>;
931
+ export declare const CorrectionRecordSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
932
+ readonly kind: v.LiteralSchema<"correction", undefined>;
933
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
934
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
935
+ readonly emitter: v.ObjectSchema<{
936
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
937
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
938
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
939
+ }, undefined>;
940
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
941
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
942
+ 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>;
943
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
944
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
945
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
946
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
947
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
948
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
949
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
950
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
951
+ }, v.UnknownSchema, undefined>, undefined>;
952
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
953
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
954
+ }, undefined>, v.CheckAction<{
955
+ kind: "correction";
956
+ rationale: string;
957
+ details?: {
958
+ [x: string]: unknown;
959
+ } | undefined;
960
+ emitter: {
961
+ tool: string;
962
+ user?: string | undefined;
963
+ version: string;
964
+ };
965
+ idempotencyKey?: string | undefined;
966
+ links?: ({
967
+ affectedFiles?: string[] | undefined;
968
+ blobs?: string[] | undefined;
969
+ briefId?: string | undefined;
970
+ correctsLedgerId?: string | undefined;
971
+ gitRef?: string | undefined;
972
+ idempotencyKey?: string | undefined;
973
+ stripDecisionId?: string | undefined;
974
+ supersedesLedgerId?: string | undefined;
975
+ validatorVerdictId?: string | undefined;
976
+ } & {
977
+ [key: string]: unknown;
978
+ }) | undefined;
979
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
980
+ summary: string;
981
+ }, "correction records require links.correctsLedgerId">]>;
982
+ export declare const StripDecisionRevertedRecordSchema: v.ObjectSchema<{
983
+ readonly kind: v.LiteralSchema<"strip-decision-reverted", undefined>;
984
+ readonly payload: v.ObjectSchema<{
985
+ readonly invalidatedStages: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["intake", "seed", "vendor-extract", "cleanup", "parity", "characterize"], undefined>, undefined>, undefined>;
986
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
987
+ readonly stripDecisionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
988
+ }, undefined>;
989
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
990
+ readonly emitter: v.ObjectSchema<{
991
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
992
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
993
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
994
+ }, undefined>;
995
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
996
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
997
+ 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>;
998
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
999
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1000
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1001
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1002
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1003
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1004
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1005
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1006
+ }, v.UnknownSchema, undefined>, undefined>;
1007
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
1008
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1009
+ }, undefined>;
1010
+ export declare const LedgerRecordSchema: v.VariantSchema<"kind", [v.ObjectSchema<{
1011
+ readonly args: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1012
+ readonly cwd: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1013
+ readonly exitCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
1014
+ readonly kind: v.LiteralSchema<"tool-invocation", undefined>;
1015
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1016
+ readonly emitter: v.ObjectSchema<{
1017
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1018
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1019
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1020
+ }, undefined>;
1021
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1022
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
1023
+ 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>;
1024
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1025
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1026
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1027
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1028
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1029
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1030
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1031
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1032
+ }, v.UnknownSchema, undefined>, undefined>;
1033
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
1034
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1035
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1036
+ readonly agent: v.ObjectSchema<{
1037
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1038
+ readonly sessionId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1039
+ }, undefined>;
1040
+ readonly kind: v.LiteralSchema<"agent-patch", undefined>;
1041
+ readonly diff: v.OptionalSchema<v.ObjectSchema<{
1042
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1043
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
1044
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1045
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1046
+ }, undefined>, undefined>;
1047
+ readonly diffPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1048
+ readonly diffText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1049
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1050
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1051
+ readonly emitter: v.ObjectSchema<{
1052
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1053
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1054
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1055
+ }, undefined>;
1056
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1057
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
1058
+ 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>;
1059
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1060
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1061
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1062
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1063
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1064
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1065
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1066
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1067
+ }, v.UnknownSchema, undefined>, undefined>;
1068
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
1069
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1070
+ }, undefined>, v.CheckAction<{
1071
+ agent: {
1072
+ name: string;
1073
+ sessionId?: string | undefined;
1074
+ };
1075
+ kind: "agent-patch";
1076
+ diff?: {
1077
+ addedLines: number;
1078
+ blobSha256: string;
1079
+ bytes: number;
1080
+ removedLines: number;
1081
+ } | undefined;
1082
+ diffPath?: string | undefined;
1083
+ diffText?: string | undefined;
1084
+ rationale: string;
1085
+ details?: {
1086
+ [x: string]: unknown;
1087
+ } | undefined;
1088
+ emitter: {
1089
+ tool: string;
1090
+ user?: string | undefined;
1091
+ version: string;
1092
+ };
1093
+ idempotencyKey?: string | undefined;
1094
+ links?: ({
1095
+ affectedFiles?: string[] | undefined;
1096
+ blobs?: string[] | undefined;
1097
+ briefId?: string | undefined;
1098
+ correctsLedgerId?: string | undefined;
1099
+ gitRef?: string | undefined;
1100
+ idempotencyKey?: string | undefined;
1101
+ stripDecisionId?: string | undefined;
1102
+ supersedesLedgerId?: string | undefined;
1103
+ validatorVerdictId?: string | undefined;
1104
+ } & {
1105
+ [key: string]: unknown;
1106
+ }) | undefined;
1107
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
1108
+ summary: string;
1109
+ }, "patch records require exactly one source: diff, diffPath, or diffText (diffPath and diffText cannot be combined).">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1110
+ readonly kind: v.LiteralSchema<"operator-patch", undefined>;
1111
+ readonly operator: v.ObjectSchema<{
1112
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1113
+ }, undefined>;
1114
+ readonly diff: v.OptionalSchema<v.ObjectSchema<{
1115
+ readonly addedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1116
+ readonly blobSha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Expected a lowercase SHA-256 hex digest.">]>;
1117
+ readonly bytes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1118
+ readonly removedLines: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
1119
+ }, undefined>, undefined>;
1120
+ readonly diffPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1121
+ readonly diffText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1122
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1123
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1124
+ readonly emitter: v.ObjectSchema<{
1125
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1126
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1127
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1128
+ }, undefined>;
1129
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1130
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
1131
+ 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>;
1132
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1133
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1134
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1135
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1136
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1137
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1138
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1139
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1140
+ }, v.UnknownSchema, undefined>, undefined>;
1141
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
1142
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1143
+ }, undefined>, v.CheckAction<{
1144
+ kind: "operator-patch";
1145
+ operator: {
1146
+ name: string;
1147
+ };
1148
+ diff?: {
1149
+ addedLines: number;
1150
+ blobSha256: string;
1151
+ bytes: number;
1152
+ removedLines: number;
1153
+ } | undefined;
1154
+ diffPath?: string | undefined;
1155
+ diffText?: string | undefined;
1156
+ rationale: string;
1157
+ details?: {
1158
+ [x: string]: unknown;
1159
+ } | undefined;
1160
+ emitter: {
1161
+ tool: string;
1162
+ user?: string | undefined;
1163
+ version: string;
1164
+ };
1165
+ idempotencyKey?: string | undefined;
1166
+ links?: ({
1167
+ affectedFiles?: string[] | undefined;
1168
+ blobs?: string[] | undefined;
1169
+ briefId?: string | undefined;
1170
+ correctsLedgerId?: string | undefined;
1171
+ gitRef?: string | undefined;
1172
+ idempotencyKey?: string | undefined;
1173
+ stripDecisionId?: string | undefined;
1174
+ supersedesLedgerId?: string | undefined;
1175
+ validatorVerdictId?: string | undefined;
1176
+ } & {
1177
+ [key: string]: unknown;
1178
+ }) | undefined;
1179
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
1180
+ summary: string;
1181
+ }, "patch records require exactly one source: diff, diffPath, or diffText (diffPath and diffText cannot be combined).">]>, v.ObjectSchema<{
1182
+ readonly kind: v.LiteralSchema<"operator-decision", undefined>;
1183
+ readonly payload: v.ObjectSchema<{
1184
+ readonly action: v.PicklistSchema<readonly ["bypass-doctor", "skip-check", "override-strip-decision", "override-ship-state", "manual-parity-assertion", "ledger-hand-edit", "escalation"], undefined>;
1185
+ readonly checkId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1186
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "payload.rationale must not be empty">]>;
1187
+ }, undefined>;
1188
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1189
+ readonly emitter: v.ObjectSchema<{
1190
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1191
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1192
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1193
+ }, undefined>;
1194
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1195
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
1196
+ 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>;
1197
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1198
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1199
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1200
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1201
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1202
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1203
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1204
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1205
+ }, v.UnknownSchema, undefined>, undefined>;
1206
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
1207
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1208
+ }, undefined>, v.ObjectSchema<{
1209
+ readonly kind: v.LiteralSchema<"validator-result", undefined>;
1210
+ readonly metrics: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1211
+ readonly resultPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1212
+ readonly validator: v.PicklistSchema<["parity", "equiv", "characterize", "verify", "doctor"], undefined>;
1213
+ readonly verdict: v.PicklistSchema<["green", "yellow", "red"], undefined>;
1214
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1215
+ readonly emitter: v.ObjectSchema<{
1216
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1217
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1218
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1219
+ }, undefined>;
1220
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1221
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
1222
+ 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>;
1223
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1224
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1225
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1226
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1227
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1228
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1229
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1230
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1231
+ }, v.UnknownSchema, undefined>, undefined>;
1232
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
1233
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1234
+ }, undefined>, v.ObjectSchema<{
1235
+ readonly kind: v.LiteralSchema<"runtime-event", undefined>;
1236
+ readonly level: v.PicklistSchema<["info", "warn", "error"], undefined>;
1237
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1238
+ readonly source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1239
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1240
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1241
+ readonly emitter: v.ObjectSchema<{
1242
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1243
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1244
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1245
+ }, undefined>;
1246
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1247
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
1248
+ 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>;
1249
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1250
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1251
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1252
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1253
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1254
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1255
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1256
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1257
+ }, v.UnknownSchema, undefined>, undefined>;
1258
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
1259
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1260
+ }, undefined>, v.ObjectSchema<{
1261
+ readonly body: v.StringSchema<undefined>;
1262
+ readonly kind: v.LiteralSchema<"note", undefined>;
1263
+ readonly subkind: v.PicklistSchema<["regression", "automation", "retro", "operator", "tooling-gap"], undefined>;
1264
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1265
+ readonly emitter: v.ObjectSchema<{
1266
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1267
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1268
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1269
+ }, undefined>;
1270
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1271
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
1272
+ 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>;
1273
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1274
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1275
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1276
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1277
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1278
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1279
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1280
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1281
+ }, v.UnknownSchema, undefined>, undefined>;
1282
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
1283
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1284
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1285
+ readonly kind: v.LiteralSchema<"correction", undefined>;
1286
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1287
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1288
+ readonly emitter: v.ObjectSchema<{
1289
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1290
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1291
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1292
+ }, undefined>;
1293
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1294
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
1295
+ 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>;
1296
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1297
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1298
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1299
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1300
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1301
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1302
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1303
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1304
+ }, v.UnknownSchema, undefined>, undefined>;
1305
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
1306
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1307
+ }, undefined>, v.CheckAction<{
1308
+ kind: "correction";
1309
+ rationale: string;
1310
+ details?: {
1311
+ [x: string]: unknown;
1312
+ } | undefined;
1313
+ emitter: {
1314
+ tool: string;
1315
+ user?: string | undefined;
1316
+ version: string;
1317
+ };
1318
+ idempotencyKey?: string | undefined;
1319
+ links?: ({
1320
+ affectedFiles?: string[] | undefined;
1321
+ blobs?: string[] | undefined;
1322
+ briefId?: string | undefined;
1323
+ correctsLedgerId?: string | undefined;
1324
+ gitRef?: string | undefined;
1325
+ idempotencyKey?: string | undefined;
1326
+ stripDecisionId?: string | undefined;
1327
+ supersedesLedgerId?: string | undefined;
1328
+ validatorVerdictId?: string | undefined;
1329
+ } & {
1330
+ [key: string]: unknown;
1331
+ }) | undefined;
1332
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
1333
+ summary: string;
1334
+ }, "correction records require links.correctsLedgerId">]>, v.ObjectSchema<{
1335
+ readonly kind: v.LiteralSchema<"strip-decision-reverted", undefined>;
1336
+ readonly payload: v.ObjectSchema<{
1337
+ readonly invalidatedStages: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["intake", "seed", "vendor-extract", "cleanup", "parity", "characterize"], undefined>, undefined>, undefined>;
1338
+ readonly rationale: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
1339
+ readonly stripDecisionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1340
+ }, undefined>;
1341
+ readonly details: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1342
+ readonly emitter: v.ObjectSchema<{
1343
+ readonly tool: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1344
+ readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1345
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1346
+ }, undefined>;
1347
+ readonly idempotencyKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
1348
+ readonly links: v.OptionalSchema<v.ObjectWithRestSchema<{
1349
+ 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>;
1350
+ readonly blobs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1351
+ readonly briefId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1352
+ readonly correctsLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1353
+ readonly gitRef: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1354
+ readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1355
+ readonly stripDecisionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1356
+ readonly supersedesLedgerId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1357
+ readonly validatorVerdictId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1358
+ }, v.UnknownSchema, undefined>, undefined>;
1359
+ readonly phase: v.PicklistSchema<readonly ["capture", "intake", "seed", "vendor-extract", "cleanup", "parity", "characterize", "equiv", "analyze", "recover", "ship", "migration"], undefined>;
1360
+ readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
1361
+ }, undefined>], undefined>;
3280
1362
  export declare const parseLedgerEntry: (input: unknown) => LedgerEntry;
3281
1363
  export declare const parseLedgerRecord: (input: unknown) => LedgerRecord;
3282
- export type AgentPatchDiff = z.infer<typeof AgentPatchDiffSchema>;
3283
- export type CorrectionPayload = z.infer<typeof CorrectionPayloadSchema>;
3284
- export type DescopeBriefPayload = z.infer<typeof DescopeBriefPayloadSchema>;
3285
- export type LedgerEntry = z.infer<typeof LedgerEntrySchema>;
1364
+ export type AgentPatchDiff = v.InferOutput<typeof AgentPatchDiffSchema>;
1365
+ export type LedgerEntry = v.InferOutput<typeof LedgerEntrySchema>;
3286
1366
  export type LedgerKind = LedgerEntry['kind'];
3287
- export type LedgerPhase = z.infer<typeof LedgerPhaseSchema>;
3288
- export type LedgerRecord = z.infer<typeof LedgerRecordSchema>;
3289
- export type MergeReturnPayload = z.infer<typeof MergeReturnPayloadSchema>;
3290
- export type OperatorDecisionAction = z.infer<typeof OperatorDecisionActionSchema>;
3291
- export type PatchHunk = z.infer<typeof PatchHunkSchema>;
3292
- export type PatchPayload = z.infer<typeof PatchPayloadSchema>;
3293
- export type ReworkTestRetiredPayload = z.infer<typeof ReworkTestRetiredPayloadSchema>;
3294
- export type RollbackPayload = z.infer<typeof RollbackPayloadSchema>;
3295
- export type StageTransitionPayload = z.infer<typeof StageTransitionPayloadSchema>;
3296
- export type StripDecisionRevertedPayload = z.infer<typeof StripDecisionRevertedPayloadSchema>;
3297
- export {};
1367
+ export type LedgerPhase = v.InferOutput<typeof LedgerPhaseSchema>;
1368
+ export type LedgerRecord = v.InferOutput<typeof LedgerRecordSchema>;
1369
+ export type OperatorDecisionAction = v.InferOutput<typeof OperatorDecisionActionSchema>;
1370
+ export type OperatorDecisionPayload = v.InferOutput<typeof OperatorDecisionPayloadSchema>;
1371
+ export type StripDecisionRevertedPayload = v.InferOutput<typeof StripDecisionRevertedPayloadSchema>;
3298
1372
  //# sourceMappingURL=entry.d.ts.map