ushman-ledger 0.3.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/AGENTS.md +11 -7
  2. package/CHANGELOG.md +8 -12
  3. package/README.md +28 -57
  4. package/dist/archive-journal.d.ts +29 -18
  5. package/dist/archive-journal.d.ts.map +1 -1
  6. package/dist/archive-journal.js +17 -17
  7. package/dist/blobs.js +3 -3
  8. package/dist/builders.d.ts +79 -358
  9. package/dist/builders.d.ts.map +1 -1
  10. package/dist/builders.js +15 -60
  11. package/dist/cli.d.ts.map +1 -1
  12. package/dist/cli.js +227 -52
  13. package/dist/doctor.d.ts.map +1 -1
  14. package/dist/doctor.js +104 -4
  15. package/dist/handle.d.ts +4 -2
  16. package/dist/handle.d.ts.map +1 -1
  17. package/dist/handle.js +20 -15
  18. package/dist/helpers.d.ts +7 -0
  19. package/dist/helpers.d.ts.map +1 -0
  20. package/dist/helpers.js +38 -0
  21. package/dist/index.d.ts +4 -5
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +3 -4
  24. package/dist/lab-min.d.ts +7 -7
  25. package/dist/lab-min.d.ts.map +1 -1
  26. package/dist/lab-min.js +7 -9
  27. package/dist/list.d.ts +104 -303
  28. package/dist/list.d.ts.map +1 -1
  29. package/dist/note.d.ts +20 -0
  30. package/dist/note.d.ts.map +1 -1
  31. package/dist/note.js +5 -0
  32. package/dist/patch-resolver.d.ts +27 -0
  33. package/dist/patch-resolver.d.ts.map +1 -0
  34. package/dist/patch-resolver.js +184 -0
  35. package/dist/read-index.d.ts +45 -57
  36. package/dist/read-index.d.ts.map +1 -1
  37. package/dist/read-index.js +16 -34
  38. package/dist/record.d.ts.map +1 -1
  39. package/dist/record.js +19 -130
  40. package/dist/recovery.d.ts +19 -8
  41. package/dist/recovery.d.ts.map +1 -1
  42. package/dist/recovery.js +13 -13
  43. package/dist/render/migration-log.d.ts +3 -0
  44. package/dist/render/migration-log.d.ts.map +1 -0
  45. package/dist/render/migration-log.js +72 -0
  46. package/dist/render/retro.d.ts.map +1 -1
  47. package/dist/render/retro.js +41 -25
  48. package/dist/render/workspace-narrative.d.ts +6 -0
  49. package/dist/render/workspace-narrative.d.ts.map +1 -0
  50. package/dist/render/workspace-narrative.js +69 -0
  51. package/dist/schema/entry-core.d.ts +110 -0
  52. package/dist/schema/entry-core.d.ts.map +1 -0
  53. package/dist/schema/entry-core.js +143 -0
  54. package/dist/schema/entry-migrations.d.ts +3 -0
  55. package/dist/schema/entry-migrations.d.ts.map +1 -0
  56. package/dist/schema/entry-migrations.js +48 -0
  57. package/dist/schema/entry-read.d.ts +694 -0
  58. package/dist/schema/entry-read.d.ts.map +1 -0
  59. package/dist/schema/entry-read.js +92 -0
  60. package/dist/schema/entry-write.d.ts +865 -0
  61. package/dist/schema/entry-write.d.ts.map +1 -0
  62. package/dist/schema/entry-write.js +105 -0
  63. package/dist/schema/entry.d.ts +6 -3295
  64. package/dist/schema/entry.d.ts.map +1 -1
  65. package/dist/schema/entry.js +10 -619
  66. package/dist/schema/manifest.d.ts +28 -41
  67. package/dist/schema/manifest.d.ts.map +1 -1
  68. package/dist/schema/manifest.js +20 -24
  69. package/dist/schema/note.d.ts +3 -9
  70. package/dist/schema/note.d.ts.map +1 -1
  71. package/dist/schema/note.js +13 -2
  72. package/dist/storage/filesystem.d.ts +2 -1
  73. package/dist/storage/filesystem.d.ts.map +1 -1
  74. package/dist/storage/filesystem.js +6 -4
  75. package/dist/storage/lock-reclaimer.d.ts +2 -0
  76. package/dist/storage/lock-reclaimer.d.ts.map +1 -0
  77. package/dist/storage/lock-reclaimer.js +45 -0
  78. package/dist/version.d.ts +1 -1
  79. package/dist/version.js +1 -1
  80. package/package.json +3 -4
package/dist/list.d.ts CHANGED
@@ -14,45 +14,18 @@ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, wo
14
14
  readonly workspaceRoot: string;
15
15
  }) => Promise<({
16
16
  entry: {
17
- emitter: {
18
- tool: string;
19
- version: string;
20
- user?: string | undefined;
21
- };
22
- id: string;
23
- links: {
24
- [x: string]: unknown;
25
- affectedFiles?: string[] | undefined;
26
- blobs?: string[] | undefined;
27
- briefId?: string | undefined;
28
- correctsLedgerId?: string | undefined;
29
- gitRef?: string | undefined;
30
- idempotencyKey?: string | undefined;
31
- stripDecisionId?: string | undefined;
32
- supersedesLedgerId?: string | undefined;
33
- validatorVerdictId?: string | undefined;
34
- };
35
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
36
- prevEntryId: string | null;
37
- schemaVersion: "ushman-ledger-entry/v1";
38
- summary: string;
39
- ts: string;
40
17
  kind: "correction";
41
- payload: {
42
- correctsValidatorResultId?: string | undefined;
43
- };
44
18
  rationale: string;
45
- _legacy?: true | undefined;
46
- details?: Record<string, unknown> | undefined;
47
- } | {
19
+ details?: {
20
+ [x: string]: unknown;
21
+ } | undefined;
48
22
  emitter: {
49
23
  tool: string;
50
- version: string;
51
24
  user?: string | undefined;
25
+ version: string;
52
26
  };
53
27
  id: string;
54
28
  links: {
55
- [x: string]: unknown;
56
29
  affectedFiles?: string[] | undefined;
57
30
  blobs?: string[] | undefined;
58
31
  briefId?: string | undefined;
@@ -62,27 +35,29 @@ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, wo
62
35
  stripDecisionId?: string | undefined;
63
36
  supersedesLedgerId?: string | undefined;
64
37
  validatorVerdictId?: string | undefined;
38
+ } & {
39
+ [key: string]: unknown;
65
40
  };
66
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
41
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
67
42
  prevEntryId: string | null;
68
43
  schemaVersion: "ushman-ledger-entry/v1";
69
44
  summary: string;
70
45
  ts: string;
71
- kind: "tool-invocation";
72
- _legacy?: true | undefined;
73
- details?: Record<string, unknown> | undefined;
46
+ } | {
74
47
  args?: string[] | undefined;
75
48
  cwd?: string | undefined;
76
49
  exitCode?: number | undefined;
77
- } | {
50
+ kind: "tool-invocation";
51
+ details?: {
52
+ [x: string]: unknown;
53
+ } | undefined;
78
54
  emitter: {
79
55
  tool: string;
80
- version: string;
81
56
  user?: string | undefined;
57
+ version: string;
82
58
  };
83
59
  id: string;
84
60
  links: {
85
- [x: string]: unknown;
86
61
  affectedFiles?: string[] | undefined;
87
62
  blobs?: string[] | undefined;
88
63
  briefId?: string | undefined;
@@ -92,47 +67,37 @@ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, wo
92
67
  stripDecisionId?: string | undefined;
93
68
  supersedesLedgerId?: string | undefined;
94
69
  validatorVerdictId?: string | undefined;
70
+ } & {
71
+ [key: string]: unknown;
95
72
  };
96
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
73
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
97
74
  prevEntryId: string | null;
98
75
  schemaVersion: "ushman-ledger-entry/v1";
99
76
  summary: string;
100
77
  ts: string;
78
+ } | {
79
+ agent: {
80
+ name: string;
81
+ sessionId?: string | undefined;
82
+ };
83
+ kind: "agent-patch";
101
84
  diff: {
102
85
  addedLines: number;
103
86
  blobSha256: string;
104
87
  bytes: number;
105
88
  removedLines: number;
106
89
  };
107
- payload: {
108
- diffSha256: string;
109
- fileSha256After: Record<string, string>;
110
- fileSha256Before: Record<string, string>;
111
- hunks: {
112
- endLine: number;
113
- path: string;
114
- startLine: number;
115
- }[];
116
- touchedPaths: string[];
117
- diff?: string | undefined;
118
- };
119
90
  rationale: string;
120
- agent: {
121
- name: string;
122
- sessionId?: string | undefined;
123
- };
124
- kind: "agent-patch";
125
- _legacy?: true | undefined;
126
- details?: Record<string, unknown> | undefined;
127
- } | {
91
+ details?: {
92
+ [x: string]: unknown;
93
+ } | undefined;
128
94
  emitter: {
129
95
  tool: string;
130
- version: string;
131
96
  user?: string | undefined;
97
+ version: string;
132
98
  };
133
99
  id: string;
134
100
  links: {
135
- [x: string]: unknown;
136
101
  affectedFiles?: string[] | undefined;
137
102
  blobs?: string[] | undefined;
138
103
  briefId?: string | undefined;
@@ -142,80 +107,36 @@ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, wo
142
107
  stripDecisionId?: string | undefined;
143
108
  supersedesLedgerId?: string | undefined;
144
109
  validatorVerdictId?: string | undefined;
110
+ } & {
111
+ [key: string]: unknown;
145
112
  };
146
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
113
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
147
114
  prevEntryId: string | null;
148
115
  schemaVersion: "ushman-ledger-entry/v1";
149
116
  summary: string;
150
117
  ts: string;
118
+ } | {
119
+ kind: "operator-patch";
120
+ operator: {
121
+ name: string;
122
+ };
151
123
  diff: {
152
124
  addedLines: number;
153
125
  blobSha256: string;
154
126
  bytes: number;
155
127
  removedLines: number;
156
128
  };
157
- payload: {
158
- diffSha256: string;
159
- fileSha256After: Record<string, string>;
160
- fileSha256Before: Record<string, string>;
161
- hunks: {
162
- endLine: number;
163
- path: string;
164
- startLine: number;
165
- }[];
166
- touchedPaths: string[];
167
- diff?: string | undefined;
168
- };
169
129
  rationale: string;
170
- kind: "operator-patch";
171
- operator: {
172
- name: string;
173
- };
174
- _legacy?: true | undefined;
175
- details?: Record<string, unknown> | undefined;
176
- } | {
177
- emitter: {
178
- tool: string;
179
- version: string;
180
- user?: string | undefined;
181
- };
182
- id: string;
183
- links: {
130
+ details?: {
184
131
  [x: string]: unknown;
185
- affectedFiles?: string[] | undefined;
186
- blobs?: string[] | undefined;
187
- briefId?: string | undefined;
188
- correctsLedgerId?: string | undefined;
189
- gitRef?: string | undefined;
190
- idempotencyKey?: string | undefined;
191
- stripDecisionId?: string | undefined;
192
- supersedesLedgerId?: string | undefined;
193
- validatorVerdictId?: string | undefined;
194
- };
195
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
196
- prevEntryId: string | null;
197
- schemaVersion: "ushman-ledger-entry/v1";
198
- summary: string;
199
- ts: string;
200
- kind: "stage-transition";
201
- payload: {
202
- endedAt: string;
203
- exitCode: number;
204
- stage: "seed" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize";
205
- startedAt: string;
206
- doctorBaselineId?: string | undefined;
207
- };
208
- _legacy?: true | undefined;
209
- details?: Record<string, unknown> | undefined;
210
- } | {
132
+ } | undefined;
211
133
  emitter: {
212
134
  tool: string;
213
- version: string;
214
135
  user?: string | undefined;
136
+ version: string;
215
137
  };
216
138
  id: string;
217
139
  links: {
218
- [x: string]: unknown;
219
140
  affectedFiles?: string[] | undefined;
220
141
  blobs?: string[] | undefined;
221
142
  briefId?: string | undefined;
@@ -225,31 +146,31 @@ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, wo
225
146
  stripDecisionId?: string | undefined;
226
147
  supersedesLedgerId?: string | undefined;
227
148
  validatorVerdictId?: string | undefined;
149
+ } & {
150
+ [key: string]: unknown;
228
151
  };
229
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
152
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
230
153
  prevEntryId: string | null;
231
154
  schemaVersion: "ushman-ledger-entry/v1";
232
155
  summary: string;
233
156
  ts: string;
157
+ } | {
234
158
  kind: "operator-decision";
235
159
  payload: {
236
160
  action: "bypass-doctor" | "skip-check" | "override-strip-decision" | "override-ship-state" | "manual-parity-assertion" | "ledger-hand-edit" | "escalation";
237
- rationale: string;
238
161
  checkId?: string | undefined;
162
+ rationale: string;
239
163
  };
240
- _legacy?: true | undefined;
241
- details?: Record<string, unknown> | undefined;
242
- body?: Record<string, unknown> | undefined;
243
- decisionType?: "strip-decision" | "strip-decision-revised" | "vendor-boundary" | "intent-exclusion" | "other" | undefined;
244
- } | {
164
+ details?: {
165
+ [x: string]: unknown;
166
+ } | undefined;
245
167
  emitter: {
246
168
  tool: string;
247
- version: string;
248
169
  user?: string | undefined;
170
+ version: string;
249
171
  };
250
172
  id: string;
251
173
  links: {
252
- [x: string]: unknown;
253
174
  affectedFiles?: string[] | undefined;
254
175
  blobs?: string[] | undefined;
255
176
  briefId?: string | undefined;
@@ -259,31 +180,32 @@ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, wo
259
180
  stripDecisionId?: string | undefined;
260
181
  supersedesLedgerId?: string | undefined;
261
182
  validatorVerdictId?: string | undefined;
183
+ } & {
184
+ [key: string]: unknown;
262
185
  };
263
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
186
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
264
187
  prevEntryId: string | null;
265
188
  schemaVersion: "ushman-ledger-entry/v1";
266
189
  summary: string;
267
190
  ts: string;
191
+ } | {
268
192
  kind: "validator-result";
269
- payload: {
270
- id: string;
271
- };
193
+ metrics?: {
194
+ [x: string]: unknown;
195
+ } | undefined;
196
+ resultPath?: string | undefined;
272
197
  validator: "parity" | "characterize" | "equiv" | "verify" | "doctor";
273
198
  verdict: "green" | "yellow" | "red";
274
- _legacy?: true | undefined;
275
- details?: Record<string, unknown> | undefined;
276
- metrics?: Record<string, unknown> | undefined;
277
- resultPath?: string | undefined;
278
- } | {
199
+ details?: {
200
+ [x: string]: unknown;
201
+ } | undefined;
279
202
  emitter: {
280
203
  tool: string;
281
- version: string;
282
204
  user?: string | undefined;
205
+ version: string;
283
206
  };
284
207
  id: string;
285
208
  links: {
286
- [x: string]: unknown;
287
209
  affectedFiles?: string[] | undefined;
288
210
  blobs?: string[] | undefined;
289
211
  briefId?: string | undefined;
@@ -293,28 +215,30 @@ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, wo
293
215
  stripDecisionId?: string | undefined;
294
216
  supersedesLedgerId?: string | undefined;
295
217
  validatorVerdictId?: string | undefined;
218
+ } & {
219
+ [key: string]: unknown;
296
220
  };
297
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
221
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
298
222
  prevEntryId: string | null;
299
223
  schemaVersion: "ushman-ledger-entry/v1";
300
224
  summary: string;
301
225
  ts: string;
226
+ } | {
302
227
  kind: "runtime-event";
303
228
  level: "error" | "info" | "warn";
304
229
  message: string;
305
230
  source: string;
306
- _legacy?: true | undefined;
307
- details?: Record<string, unknown> | undefined;
308
231
  stripDecisionId?: string | undefined;
309
- } | {
232
+ details?: {
233
+ [x: string]: unknown;
234
+ } | undefined;
310
235
  emitter: {
311
236
  tool: string;
312
- version: string;
313
237
  user?: string | undefined;
238
+ version: string;
314
239
  };
315
240
  id: string;
316
241
  links: {
317
- [x: string]: unknown;
318
242
  affectedFiles?: string[] | undefined;
319
243
  blobs?: string[] | undefined;
320
244
  briefId?: string | undefined;
@@ -324,26 +248,28 @@ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, wo
324
248
  stripDecisionId?: string | undefined;
325
249
  supersedesLedgerId?: string | undefined;
326
250
  validatorVerdictId?: string | undefined;
251
+ } & {
252
+ [key: string]: unknown;
327
253
  };
328
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
254
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
329
255
  prevEntryId: string | null;
330
256
  schemaVersion: "ushman-ledger-entry/v1";
331
257
  summary: string;
332
258
  ts: string;
259
+ } | {
333
260
  body: string;
334
261
  kind: "note";
335
- subkind: "regression" | "automation" | "retro" | "operator" | "tooling-gap";
336
- _legacy?: true | undefined;
337
- details?: Record<string, unknown> | undefined;
338
- } | {
262
+ subkind: "regression" | "automation" | "retro" | "operator" | "tooling-gap" | "cleanup-wave" | "verified-flow" | "open-issue" | "decomposition-wave" | "semantic-cleanup-summary";
263
+ details?: {
264
+ [x: string]: unknown;
265
+ } | undefined;
339
266
  emitter: {
340
267
  tool: string;
341
- version: string;
342
268
  user?: string | undefined;
269
+ version: string;
343
270
  };
344
271
  id: string;
345
272
  links: {
346
- [x: string]: unknown;
347
273
  affectedFiles?: string[] | undefined;
348
274
  blobs?: string[] | undefined;
349
275
  briefId?: string | undefined;
@@ -353,94 +279,31 @@ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, wo
353
279
  stripDecisionId?: string | undefined;
354
280
  supersedesLedgerId?: string | undefined;
355
281
  validatorVerdictId?: string | undefined;
282
+ } & {
283
+ [key: string]: unknown;
356
284
  };
357
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
285
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
358
286
  prevEntryId: string | null;
359
287
  schemaVersion: "ushman-ledger-entry/v1";
360
288
  summary: string;
361
289
  ts: string;
290
+ } | {
362
291
  kind: "strip-decision-reverted";
363
292
  payload: {
293
+ invalidatedStages?: ("intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize")[] | undefined;
364
294
  rationale: string;
365
295
  stripDecisionId: string;
366
- invalidatedStages?: ("seed" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize")[] | undefined;
367
- };
368
- _legacy?: true | undefined;
369
- details?: Record<string, unknown> | undefined;
370
- } | {
371
- emitter: {
372
- tool: string;
373
- version: string;
374
- user?: string | undefined;
375
296
  };
376
- id: string;
377
- links: {
297
+ details?: {
378
298
  [x: string]: unknown;
379
- affectedFiles?: string[] | undefined;
380
- blobs?: string[] | undefined;
381
- briefId?: string | undefined;
382
- correctsLedgerId?: string | undefined;
383
- gitRef?: string | undefined;
384
- idempotencyKey?: string | undefined;
385
- stripDecisionId?: string | undefined;
386
- supersedesLedgerId?: string | undefined;
387
- validatorVerdictId?: string | undefined;
388
- };
389
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
390
- prevEntryId: string | null;
391
- schemaVersion: "ushman-ledger-entry/v1";
392
- summary: string;
393
- ts: string;
394
- kind: "descope-brief";
395
- payload: {
396
- briefId: string;
397
- reason?: string | undefined;
398
- round?: number | undefined;
399
- stripDecisionIds?: string[] | undefined;
400
- };
401
- _legacy?: true | undefined;
402
- details?: Record<string, unknown> | undefined;
403
- } | {
299
+ } | undefined;
404
300
  emitter: {
405
301
  tool: string;
406
- version: string;
407
302
  user?: string | undefined;
408
- };
409
- id: string;
410
- links: {
411
- [x: string]: unknown;
412
- affectedFiles?: string[] | undefined;
413
- blobs?: string[] | undefined;
414
- briefId?: string | undefined;
415
- correctsLedgerId?: string | undefined;
416
- gitRef?: string | undefined;
417
- idempotencyKey?: string | undefined;
418
- stripDecisionId?: string | undefined;
419
- supersedesLedgerId?: string | undefined;
420
- validatorVerdictId?: string | undefined;
421
- };
422
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
423
- prevEntryId: string | null;
424
- schemaVersion: "ushman-ledger-entry/v1";
425
- summary: string;
426
- ts: string;
427
- kind: "merge-return";
428
- payload: {
429
- returnId: string;
430
- briefId?: string | undefined;
431
- source?: string | undefined;
432
- };
433
- _legacy?: true | undefined;
434
- details?: Record<string, unknown> | undefined;
435
- } | {
436
- emitter: {
437
- tool: string;
438
303
  version: string;
439
- user?: string | undefined;
440
304
  };
441
305
  id: string;
442
306
  links: {
443
- [x: string]: unknown;
444
307
  affectedFiles?: string[] | undefined;
445
308
  blobs?: string[] | undefined;
446
309
  briefId?: string | undefined;
@@ -450,93 +313,39 @@ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, wo
450
313
  stripDecisionId?: string | undefined;
451
314
  supersedesLedgerId?: string | undefined;
452
315
  validatorVerdictId?: string | undefined;
316
+ } & {
317
+ [key: string]: unknown;
453
318
  };
454
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
319
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
455
320
  prevEntryId: string | null;
456
321
  schemaVersion: "ushman-ledger-entry/v1";
457
322
  summary: string;
458
323
  ts: string;
459
- kind: "merge-return-rejected";
460
- payload: {
461
- returnId: string;
462
- reason: string;
463
- briefId?: string | undefined;
464
- source?: string | undefined;
465
- };
466
- _legacy?: true | undefined;
467
- details?: Record<string, unknown> | undefined;
468
324
  } | {
469
- emitter: {
470
- tool: string;
471
- version: string;
472
- user?: string | undefined;
473
- };
474
- id: string;
475
- links: {
325
+ commandsRun?: string[] | undefined;
326
+ filesChanged: {
327
+ added?: number | undefined;
328
+ path: string;
329
+ removed?: number | undefined;
330
+ }[];
331
+ hypothesis?: string | undefined;
332
+ kind: "change-log";
333
+ parityStatus?: "not-run" | "green" | "yellow" | "red" | undefined;
334
+ rollbackPlan?: string | undefined;
335
+ rollsBack?: string | undefined;
336
+ smokeNotes?: string | undefined;
337
+ smokeResult?: "pass" | "fail" | "partial" | "not-run" | undefined;
338
+ subkind: "vendor-extract" | "pre-change-checkpoint" | "semantic-cleanup" | "decomposition" | "rollback" | "hotfix" | "smoke";
339
+ details?: {
476
340
  [x: string]: unknown;
477
- affectedFiles?: string[] | undefined;
478
- blobs?: string[] | undefined;
479
- briefId?: string | undefined;
480
- correctsLedgerId?: string | undefined;
481
- gitRef?: string | undefined;
482
- idempotencyKey?: string | undefined;
483
- stripDecisionId?: string | undefined;
484
- supersedesLedgerId?: string | undefined;
485
- validatorVerdictId?: string | undefined;
486
- };
487
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
488
- prevEntryId: string | null;
489
- schemaVersion: "ushman-ledger-entry/v1";
490
- summary: string;
491
- ts: string;
492
- kind: "revert";
493
- payload: {
494
- reason: string;
495
- targetEntryId?: string | undefined;
496
- };
497
- _legacy?: true | undefined;
498
- details?: Record<string, unknown> | undefined;
499
- } | {
341
+ } | undefined;
500
342
  emitter: {
501
343
  tool: string;
502
- version: string;
503
344
  user?: string | undefined;
504
- };
505
- id: string;
506
- links: {
507
- [x: string]: unknown;
508
- affectedFiles?: string[] | undefined;
509
- blobs?: string[] | undefined;
510
- briefId?: string | undefined;
511
- correctsLedgerId?: string | undefined;
512
- gitRef?: string | undefined;
513
- idempotencyKey?: string | undefined;
514
- stripDecisionId?: string | undefined;
515
- supersedesLedgerId?: string | undefined;
516
- validatorVerdictId?: string | undefined;
517
- };
518
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
519
- prevEntryId: string | null;
520
- schemaVersion: "ushman-ledger-entry/v1";
521
- summary: string;
522
- ts: string;
523
- kind: "rollback";
524
- payload: {
525
- reason: string;
526
- targetEntryId?: string | undefined;
527
- targetStage?: "seed" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | undefined;
528
- };
529
- _legacy?: true | undefined;
530
- details?: Record<string, unknown> | undefined;
531
- } | {
532
- emitter: {
533
- tool: string;
534
345
  version: string;
535
- user?: string | undefined;
536
346
  };
537
347
  id: string;
538
348
  links: {
539
- [x: string]: unknown;
540
349
  affectedFiles?: string[] | undefined;
541
350
  blobs?: string[] | undefined;
542
351
  briefId?: string | undefined;
@@ -546,22 +355,14 @@ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, wo
546
355
  stripDecisionId?: string | undefined;
547
356
  supersedesLedgerId?: string | undefined;
548
357
  validatorVerdictId?: string | undefined;
358
+ } & {
359
+ [key: string]: unknown;
549
360
  };
550
- phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
361
+ phase: "capture" | "intake" | "seed" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
551
362
  prevEntryId: string | null;
552
363
  schemaVersion: "ushman-ledger-entry/v1";
553
364
  summary: string;
554
365
  ts: string;
555
- kind: "rework.test_retired";
556
- payload: {
557
- removedBy: "operator" | "descope" | "decompose";
558
- removedTestPath: string;
559
- removedTestSymbols: string[];
560
- sourceSymbolDeletedFrom: string;
561
- briefId?: string | undefined;
562
- };
563
- _legacy?: true | undefined;
564
- details?: Record<string, unknown> | undefined;
565
366
  };
566
367
  entryId: string;
567
368
  location: {
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../src/list.ts"],"names":[],"mappings":"AACA,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAG7B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAoB,MAAM,mBAAmB,CAAC;AAC1G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3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AAC;CAClC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQI,CAAC;AA6CN,eAAO,MAAM,0BAA0B,GACnC,eAAe,MAAM,EACrB,UAAU,cAAc,EACxB,WAAW,eAAe,EAC1B,SAAQ,YAAiB,KAC1B,aAAa,CAAC,WAAW,CAwB3B,CAAC;AAEF,eAAO,MAAM,WAAW,GACpB,eAAe,MAAM,EACrB,SAAQ,YAAiB,KAC1B,aAAa,CAAC,WAAW,CAG3B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAU,eAAe,MAAM,EAAE,SAAQ,YAAiB,KAAG,OAAO,CAAC,WAAW,EAAE,CAM5G,CAAC"}
package/dist/note.d.ts CHANGED
@@ -10,4 +10,24 @@ export declare const appendNote: (workspaceRoot: string, subkind: NoteSubkind, n
10
10
  entry: Awaited<ReturnType<typeof appendRecord>>["entry"];
11
11
  id: string;
12
12
  }>;
13
+ export declare const appendCleanupWaveNote: (workspaceRoot: string, noteBody: NoteBody) => Promise<{
14
+ entry: Awaited<ReturnType<typeof appendRecord>>["entry"];
15
+ id: string;
16
+ }>;
17
+ export declare const appendVerifiedFlowNote: (workspaceRoot: string, noteBody: NoteBody) => Promise<{
18
+ entry: Awaited<ReturnType<typeof appendRecord>>["entry"];
19
+ id: string;
20
+ }>;
21
+ export declare const appendOpenIssueNote: (workspaceRoot: string, noteBody: NoteBody) => Promise<{
22
+ entry: Awaited<ReturnType<typeof appendRecord>>["entry"];
23
+ id: string;
24
+ }>;
25
+ export declare const appendDecompositionWaveNote: (workspaceRoot: string, noteBody: NoteBody) => Promise<{
26
+ entry: Awaited<ReturnType<typeof appendRecord>>["entry"];
27
+ id: string;
28
+ }>;
29
+ export declare const appendSemanticCleanupSummaryNote: (workspaceRoot: string, noteBody: NoteBody) => Promise<{
30
+ entry: Awaited<ReturnType<typeof appendRecord>>["entry"];
31
+ id: string;
32
+ }>;
13
33
  //# sourceMappingURL=note.d.ts.map