@fraction12/deepclean 0.1.0-alpha.0 → 0.1.0-alpha.2

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.
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const schemaVersion: "0.1.0";
3
- export declare const candidateStatuses: readonly ["open", "investigating", "handed-off", "ignored", "false-positive", "stale"];
3
+ export declare const candidateStatuses: readonly ["open", "investigating", "handed-off", "ignored", "false-positive", "stale", "fixed", "superseded"];
4
4
  export declare const candidateCategories: readonly ["architecture", "complexity", "duplication", "testability", "dead-weight", "ai-slop", "domain-drift", "diagnostic"];
5
5
  export declare const priorities: readonly ["P0", "P1", "P2", "P3"];
6
6
  export declare const confidenceLevels: readonly ["low", "medium", "high"];
@@ -8,6 +8,16 @@ export declare const effortLevels: readonly ["small", "medium", "large"];
8
8
  export declare const impactLevels: readonly ["local", "feature", "cross-cutting"];
9
9
  export declare const riskLevels: readonly ["safe", "moderate", "design-needed"];
10
10
  export declare const clusterActionability: readonly ["bounded", "too-broad"];
11
+ export declare const identityConfidenceLevels: readonly ["low", "medium", "high"];
12
+ export declare const lifecycleEventKinds: readonly ["created", "observed", "triaged", "suppressed", "revalidated", "changed", "fixed", "stale", "superseded", "fix-attempted", "verification-passed", "verification-failed"];
13
+ export declare const lifecycleStates: readonly ["open", "suppressed", "stale", "fixed", "superseded", "inconclusive"];
14
+ export declare const revalidationOutcomes: readonly ["unchanged", "changed", "fixed", "stale", "superseded", "inconclusive"];
15
+ export declare const baselineStatuses: readonly ["new", "existing", "worsened", "improved", "fixed", "unknown"];
16
+ export declare const evidenceFreshnessStates: readonly ["fresh", "baseline", "reused", "stale"];
17
+ export declare const fixAttemptStatuses: readonly ["planned", "previewed", "applied", "passed", "failed", "unverified"];
18
+ export declare const synthesisValidationStatuses: readonly ["accepted", "rejected"];
19
+ export declare const ciRunStatuses: readonly ["passed", "failed", "policy-failed", "error"];
20
+ export declare const featureKinds: readonly ["package-script", "route", "component", "module", "python-module", "test-suite", "config"];
11
21
  export declare const diagnosticSchema: z.ZodObject<{
12
22
  level: z.ZodEnum<{
13
23
  error: "error";
@@ -28,7 +38,19 @@ export declare const configSchema: z.ZodObject<{
28
38
  provider: z.ZodLiteral<"codex">;
29
39
  command: z.ZodString;
30
40
  model: z.ZodOptional<z.ZodString>;
41
+ effort: z.ZodOptional<z.ZodString>;
31
42
  timeoutMs: z.ZodNumber;
43
+ retries: z.ZodNumber;
44
+ rpm: z.ZodNumber;
45
+ concurrency: z.ZodNumber;
46
+ tokenBudget: z.ZodNumber;
47
+ excerptBudget: z.ZodNumber;
48
+ offline: z.ZodBoolean;
49
+ privacyMode: z.ZodEnum<{
50
+ metadata: "metadata";
51
+ "local-only": "local-only";
52
+ "source-ok": "source-ok";
53
+ }>;
32
54
  maxCandidates: z.ZodNumber;
33
55
  }, z.core.$strip>;
34
56
  candidateCaps: z.ZodObject<{
@@ -64,6 +86,10 @@ export declare const configSchema: z.ZodObject<{
64
86
  allowSourceInModel: z.ZodBoolean;
65
87
  allowWebResearch: z.ZodBoolean;
66
88
  }, z.core.$strip>;
89
+ fixExecution: z.ZodObject<{
90
+ enabled: z.ZodBoolean;
91
+ verificationCommands: z.ZodArray<z.ZodString>;
92
+ }, z.core.$strip>;
67
93
  }, z.core.$strip>;
68
94
  export type DeepcleanConfig = z.infer<typeof configSchema>;
69
95
  export declare const fileReferenceSchema: z.ZodObject<{
@@ -72,6 +98,23 @@ export declare const fileReferenceSchema: z.ZodObject<{
72
98
  endLine: z.ZodOptional<z.ZodNumber>;
73
99
  }, z.core.$strip>;
74
100
  export type FileReference = z.infer<typeof fileReferenceSchema>;
101
+ export declare const findingSignatureSchema: z.ZodObject<{
102
+ version: z.ZodLiteral<"1">;
103
+ value: z.ZodString;
104
+ components: z.ZodObject<{
105
+ category: z.ZodString;
106
+ normalizedTitle: z.ZodString;
107
+ evidenceKinds: z.ZodArray<z.ZodString>;
108
+ primaryAnchors: z.ZodArray<z.ZodObject<{
109
+ path: z.ZodString;
110
+ startLine: z.ZodOptional<z.ZodNumber>;
111
+ endLine: z.ZodOptional<z.ZodNumber>;
112
+ }, z.core.$strip>>;
113
+ graphNeighborhood: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
+ analyzerRuleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
115
+ }, z.core.$strip>;
116
+ }, z.core.$strip>;
117
+ export type FindingSignature = z.infer<typeof findingSignatureSchema>;
75
118
  export declare const evidenceRecordSchema: z.ZodObject<{
76
119
  schemaVersion: z.ZodLiteral<"0.1.0">;
77
120
  recordType: z.ZodLiteral<"evidence">;
@@ -95,11 +138,97 @@ export declare const evidenceRecordSchema: z.ZodObject<{
95
138
  createdAt: z.ZodString;
96
139
  }, z.core.$strip>;
97
140
  export type EvidenceRecord = z.infer<typeof evidenceRecordSchema>;
141
+ export declare const featureRecordSchema: z.ZodObject<{
142
+ schemaVersion: z.ZodLiteral<"0.1.0">;
143
+ recordType: z.ZodLiteral<"feature">;
144
+ featureId: z.ZodString;
145
+ runId: z.ZodString;
146
+ title: z.ZodString;
147
+ summary: z.ZodString;
148
+ kind: z.ZodEnum<{
149
+ config: "config";
150
+ "package-script": "package-script";
151
+ route: "route";
152
+ component: "component";
153
+ module: "module";
154
+ "python-module": "python-module";
155
+ "test-suite": "test-suite";
156
+ }>;
157
+ source: z.ZodString;
158
+ confidence: z.ZodEnum<{
159
+ medium: "medium";
160
+ low: "low";
161
+ high: "high";
162
+ }>;
163
+ entrypoints: z.ZodArray<z.ZodObject<{
164
+ path: z.ZodString;
165
+ startLine: z.ZodOptional<z.ZodNumber>;
166
+ endLine: z.ZodOptional<z.ZodNumber>;
167
+ }, z.core.$strip>>;
168
+ ownedFiles: z.ZodArray<z.ZodObject<{
169
+ path: z.ZodString;
170
+ startLine: z.ZodOptional<z.ZodNumber>;
171
+ endLine: z.ZodOptional<z.ZodNumber>;
172
+ }, z.core.$strip>>;
173
+ contextFiles: z.ZodArray<z.ZodObject<{
174
+ path: z.ZodString;
175
+ startLine: z.ZodOptional<z.ZodNumber>;
176
+ endLine: z.ZodOptional<z.ZodNumber>;
177
+ }, z.core.$strip>>;
178
+ testFiles: z.ZodArray<z.ZodObject<{
179
+ path: z.ZodString;
180
+ startLine: z.ZodOptional<z.ZodNumber>;
181
+ endLine: z.ZodOptional<z.ZodNumber>;
182
+ }, z.core.$strip>>;
183
+ verification: z.ZodArray<z.ZodString>;
184
+ tags: z.ZodArray<z.ZodString>;
185
+ createdAt: z.ZodString;
186
+ updatedAt: z.ZodString;
187
+ }, z.core.$strip>;
188
+ export type FeatureRecord = z.infer<typeof featureRecordSchema>;
98
189
  export declare const candidateRecordSchema: z.ZodObject<{
99
190
  schemaVersion: z.ZodLiteral<"0.1.0">;
100
191
  recordType: z.ZodLiteral<"candidate">;
101
192
  id: z.ZodString;
102
193
  runId: z.ZodString;
194
+ findingId: z.ZodOptional<z.ZodString>;
195
+ signature: z.ZodOptional<z.ZodObject<{
196
+ version: z.ZodLiteral<"1">;
197
+ value: z.ZodString;
198
+ components: z.ZodObject<{
199
+ category: z.ZodString;
200
+ normalizedTitle: z.ZodString;
201
+ evidenceKinds: z.ZodArray<z.ZodString>;
202
+ primaryAnchors: z.ZodArray<z.ZodObject<{
203
+ path: z.ZodString;
204
+ startLine: z.ZodOptional<z.ZodNumber>;
205
+ endLine: z.ZodOptional<z.ZodNumber>;
206
+ }, z.core.$strip>>;
207
+ graphNeighborhood: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
+ analyzerRuleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
209
+ }, z.core.$strip>;
210
+ }, z.core.$strip>>;
211
+ identityConfidence: z.ZodOptional<z.ZodEnum<{
212
+ medium: "medium";
213
+ low: "low";
214
+ high: "high";
215
+ }>>;
216
+ lifecycleState: z.ZodOptional<z.ZodEnum<{
217
+ fixed: "fixed";
218
+ open: "open";
219
+ stale: "stale";
220
+ superseded: "superseded";
221
+ suppressed: "suppressed";
222
+ inconclusive: "inconclusive";
223
+ }>>;
224
+ baselineStatus: z.ZodOptional<z.ZodEnum<{
225
+ fixed: "fixed";
226
+ unknown: "unknown";
227
+ new: "new";
228
+ existing: "existing";
229
+ worsened: "worsened";
230
+ improved: "improved";
231
+ }>>;
103
232
  title: z.ZodString;
104
233
  category: z.ZodEnum<{
105
234
  architecture: "architecture";
@@ -112,12 +241,14 @@ export declare const candidateRecordSchema: z.ZodObject<{
112
241
  diagnostic: "diagnostic";
113
242
  }>;
114
243
  status: z.ZodEnum<{
244
+ fixed: "fixed";
115
245
  open: "open";
116
246
  investigating: "investigating";
117
247
  "handed-off": "handed-off";
118
248
  ignored: "ignored";
119
249
  "false-positive": "false-positive";
120
250
  stale: "stale";
251
+ superseded: "superseded";
121
252
  }>;
122
253
  priority: z.ZodEnum<{
123
254
  P0: "P0";
@@ -155,6 +286,12 @@ export declare const candidateRecordSchema: z.ZodObject<{
155
286
  likelyRootCause: z.ZodString;
156
287
  suggestedDirection: z.ZodString;
157
288
  verification: z.ZodArray<z.ZodString>;
289
+ fixReadiness: z.ZodOptional<z.ZodObject<{
290
+ minimumFixScope: z.ZodString;
291
+ suggestedRegressionTest: z.ZodString;
292
+ whyCurrentTestsMissIt: z.ZodString;
293
+ confidenceDowngradeReasons: z.ZodArray<z.ZodString>;
294
+ }, z.core.$strip>>;
158
295
  provenance: z.ZodObject<{
159
296
  source: z.ZodEnum<{
160
297
  "local-evidence": "local-evidence";
@@ -163,12 +300,399 @@ export declare const candidateRecordSchema: z.ZodObject<{
163
300
  provider: z.ZodOptional<z.ZodString>;
164
301
  model: z.ZodOptional<z.ZodString>;
165
302
  promptVersion: z.ZodOptional<z.ZodString>;
303
+ synthesisAttemptId: z.ZodOptional<z.ZodString>;
304
+ validationId: z.ZodOptional<z.ZodString>;
166
305
  reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
306
+ runtime: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
167
307
  }, z.core.$strip>;
168
308
  createdAt: z.ZodString;
169
309
  updatedAt: z.ZodString;
170
310
  }, z.core.$strip>;
171
311
  export type CandidateRecord = z.infer<typeof candidateRecordSchema>;
312
+ export declare const synthesisAttemptRecordSchema: z.ZodObject<{
313
+ schemaVersion: z.ZodLiteral<"0.1.0">;
314
+ recordType: z.ZodLiteral<"synthesis_attempt">;
315
+ id: z.ZodString;
316
+ runId: z.ZodString;
317
+ provider: z.ZodString;
318
+ model: z.ZodOptional<z.ZodString>;
319
+ promptVersion: z.ZodString;
320
+ promptBytes: z.ZodNumber;
321
+ runtime: z.ZodRecord<z.ZodString, z.ZodUnknown>;
322
+ reviewerIds: z.ZodArray<z.ZodString>;
323
+ evidenceManifest: z.ZodObject<{
324
+ evidenceCount: z.ZodNumber;
325
+ includedEvidenceIds: z.ZodArray<z.ZodString>;
326
+ includedFileRefs: z.ZodArray<z.ZodObject<{
327
+ path: z.ZodString;
328
+ startLine: z.ZodOptional<z.ZodNumber>;
329
+ endLine: z.ZodOptional<z.ZodNumber>;
330
+ }, z.core.$strip>>;
331
+ omittedEvidenceIds: z.ZodArray<z.ZodString>;
332
+ includeSource: z.ZodBoolean;
333
+ tokenBudget: z.ZodNumber;
334
+ excerptBudget: z.ZodNumber;
335
+ }, z.core.$strip>;
336
+ rawCandidateCount: z.ZodNumber;
337
+ acceptedCandidateCount: z.ZodNumber;
338
+ rejectedCandidateCount: z.ZodNumber;
339
+ rejectedEvidenceIds: z.ZodArray<z.ZodString>;
340
+ notes: z.ZodArray<z.ZodString>;
341
+ validations: z.ZodArray<z.ZodObject<{
342
+ id: z.ZodString;
343
+ status: z.ZodEnum<{
344
+ rejected: "rejected";
345
+ accepted: "accepted";
346
+ }>;
347
+ draftTitle: z.ZodString;
348
+ candidateId: z.ZodOptional<z.ZodString>;
349
+ evidenceIds: z.ZodArray<z.ZodString>;
350
+ fileRefs: z.ZodArray<z.ZodObject<{
351
+ path: z.ZodString;
352
+ startLine: z.ZodOptional<z.ZodNumber>;
353
+ endLine: z.ZodOptional<z.ZodNumber>;
354
+ }, z.core.$strip>>;
355
+ diagnostics: z.ZodArray<z.ZodObject<{
356
+ level: z.ZodEnum<{
357
+ error: "error";
358
+ info: "info";
359
+ warning: "warning";
360
+ }>;
361
+ code: z.ZodString;
362
+ message: z.ZodString;
363
+ adapter: z.ZodOptional<z.ZodString>;
364
+ }, z.core.$strip>>;
365
+ fixReadiness: z.ZodOptional<z.ZodObject<{
366
+ minimumFixScope: z.ZodString;
367
+ suggestedRegressionTest: z.ZodString;
368
+ whyCurrentTestsMissIt: z.ZodString;
369
+ confidenceDowngradeReasons: z.ZodArray<z.ZodString>;
370
+ }, z.core.$strip>>;
371
+ }, z.core.$strip>>;
372
+ diagnostics: z.ZodArray<z.ZodObject<{
373
+ level: z.ZodEnum<{
374
+ error: "error";
375
+ info: "info";
376
+ warning: "warning";
377
+ }>;
378
+ code: z.ZodString;
379
+ message: z.ZodString;
380
+ adapter: z.ZodOptional<z.ZodString>;
381
+ }, z.core.$strip>>;
382
+ createdAt: z.ZodString;
383
+ }, z.core.$strip>;
384
+ export type SynthesisAttemptRecord = z.infer<typeof synthesisAttemptRecordSchema>;
385
+ export declare const findingRecordSchema: z.ZodObject<{
386
+ schemaVersion: z.ZodLiteral<"0.1.0">;
387
+ recordType: z.ZodLiteral<"finding">;
388
+ id: z.ZodString;
389
+ signature: z.ZodObject<{
390
+ version: z.ZodLiteral<"1">;
391
+ value: z.ZodString;
392
+ components: z.ZodObject<{
393
+ category: z.ZodString;
394
+ normalizedTitle: z.ZodString;
395
+ evidenceKinds: z.ZodArray<z.ZodString>;
396
+ primaryAnchors: z.ZodArray<z.ZodObject<{
397
+ path: z.ZodString;
398
+ startLine: z.ZodOptional<z.ZodNumber>;
399
+ endLine: z.ZodOptional<z.ZodNumber>;
400
+ }, z.core.$strip>>;
401
+ graphNeighborhood: z.ZodOptional<z.ZodArray<z.ZodString>>;
402
+ analyzerRuleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
403
+ }, z.core.$strip>;
404
+ }, z.core.$strip>;
405
+ identityConfidence: z.ZodEnum<{
406
+ medium: "medium";
407
+ low: "low";
408
+ high: "high";
409
+ }>;
410
+ title: z.ZodString;
411
+ category: z.ZodEnum<{
412
+ architecture: "architecture";
413
+ complexity: "complexity";
414
+ duplication: "duplication";
415
+ testability: "testability";
416
+ "dead-weight": "dead-weight";
417
+ "ai-slop": "ai-slop";
418
+ "domain-drift": "domain-drift";
419
+ diagnostic: "diagnostic";
420
+ }>;
421
+ status: z.ZodEnum<{
422
+ fixed: "fixed";
423
+ open: "open";
424
+ investigating: "investigating";
425
+ "handed-off": "handed-off";
426
+ ignored: "ignored";
427
+ "false-positive": "false-positive";
428
+ stale: "stale";
429
+ superseded: "superseded";
430
+ }>;
431
+ lifecycleState: z.ZodEnum<{
432
+ fixed: "fixed";
433
+ open: "open";
434
+ stale: "stale";
435
+ superseded: "superseded";
436
+ suppressed: "suppressed";
437
+ inconclusive: "inconclusive";
438
+ }>;
439
+ priority: z.ZodEnum<{
440
+ P0: "P0";
441
+ P1: "P1";
442
+ P2: "P2";
443
+ P3: "P3";
444
+ }>;
445
+ confidence: z.ZodEnum<{
446
+ medium: "medium";
447
+ low: "low";
448
+ high: "high";
449
+ }>;
450
+ impact: z.ZodEnum<{
451
+ local: "local";
452
+ feature: "feature";
453
+ "cross-cutting": "cross-cutting";
454
+ }>;
455
+ effort: z.ZodEnum<{
456
+ small: "small";
457
+ medium: "medium";
458
+ large: "large";
459
+ }>;
460
+ risk: z.ZodEnum<{
461
+ safe: "safe";
462
+ moderate: "moderate";
463
+ "design-needed": "design-needed";
464
+ }>;
465
+ files: z.ZodArray<z.ZodObject<{
466
+ path: z.ZodString;
467
+ startLine: z.ZodOptional<z.ZodNumber>;
468
+ endLine: z.ZodOptional<z.ZodNumber>;
469
+ }, z.core.$strip>>;
470
+ evidenceIds: z.ZodArray<z.ZodString>;
471
+ observationIds: z.ZodArray<z.ZodString>;
472
+ currentObservationId: z.ZodOptional<z.ZodString>;
473
+ createdAt: z.ZodString;
474
+ updatedAt: z.ZodString;
475
+ }, z.core.$strip>;
476
+ export type FindingRecord = z.infer<typeof findingRecordSchema>;
477
+ export declare const candidateObservationRecordSchema: z.ZodObject<{
478
+ schemaVersion: z.ZodLiteral<"0.1.0">;
479
+ recordType: z.ZodLiteral<"candidate_observation">;
480
+ id: z.ZodString;
481
+ findingId: z.ZodString;
482
+ candidateId: z.ZodString;
483
+ runId: z.ZodString;
484
+ signature: z.ZodObject<{
485
+ version: z.ZodLiteral<"1">;
486
+ value: z.ZodString;
487
+ components: z.ZodObject<{
488
+ category: z.ZodString;
489
+ normalizedTitle: z.ZodString;
490
+ evidenceKinds: z.ZodArray<z.ZodString>;
491
+ primaryAnchors: z.ZodArray<z.ZodObject<{
492
+ path: z.ZodString;
493
+ startLine: z.ZodOptional<z.ZodNumber>;
494
+ endLine: z.ZodOptional<z.ZodNumber>;
495
+ }, z.core.$strip>>;
496
+ graphNeighborhood: z.ZodOptional<z.ZodArray<z.ZodString>>;
497
+ analyzerRuleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
498
+ }, z.core.$strip>;
499
+ }, z.core.$strip>;
500
+ identityConfidence: z.ZodEnum<{
501
+ medium: "medium";
502
+ low: "low";
503
+ high: "high";
504
+ }>;
505
+ baselineStatus: z.ZodOptional<z.ZodEnum<{
506
+ fixed: "fixed";
507
+ unknown: "unknown";
508
+ new: "new";
509
+ existing: "existing";
510
+ worsened: "worsened";
511
+ improved: "improved";
512
+ }>>;
513
+ evidenceFreshness: z.ZodEnum<{
514
+ reused: "reused";
515
+ stale: "stale";
516
+ fresh: "fresh";
517
+ baseline: "baseline";
518
+ }>;
519
+ observedAt: z.ZodString;
520
+ }, z.core.$strip>;
521
+ export type CandidateObservationRecord = z.infer<typeof candidateObservationRecordSchema>;
522
+ export declare const lifecycleEventRecordSchema: z.ZodObject<{
523
+ schemaVersion: z.ZodLiteral<"0.1.0">;
524
+ recordType: z.ZodLiteral<"lifecycle_event">;
525
+ id: z.ZodString;
526
+ targetType: z.ZodEnum<{
527
+ theme: "theme";
528
+ finding: "finding";
529
+ report: "report";
530
+ plan: "plan";
531
+ handoff: "handoff";
532
+ revalidation: "revalidation";
533
+ fix_attempt: "fix_attempt";
534
+ }>;
535
+ targetId: z.ZodString;
536
+ findingId: z.ZodOptional<z.ZodString>;
537
+ runId: z.ZodOptional<z.ZodString>;
538
+ kind: z.ZodEnum<{
539
+ fixed: "fixed";
540
+ stale: "stale";
541
+ superseded: "superseded";
542
+ created: "created";
543
+ observed: "observed";
544
+ triaged: "triaged";
545
+ suppressed: "suppressed";
546
+ revalidated: "revalidated";
547
+ changed: "changed";
548
+ "fix-attempted": "fix-attempted";
549
+ "verification-passed": "verification-passed";
550
+ "verification-failed": "verification-failed";
551
+ }>;
552
+ fromState: z.ZodOptional<z.ZodString>;
553
+ toState: z.ZodOptional<z.ZodString>;
554
+ note: z.ZodOptional<z.ZodString>;
555
+ actor: z.ZodOptional<z.ZodString>;
556
+ command: z.ZodOptional<z.ZodString>;
557
+ createdAt: z.ZodString;
558
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
559
+ }, z.core.$strip>;
560
+ export type LifecycleEventRecord = z.infer<typeof lifecycleEventRecordSchema>;
561
+ export declare const revalidationRecordSchema: z.ZodObject<{
562
+ schemaVersion: z.ZodLiteral<"0.1.0">;
563
+ recordType: z.ZodLiteral<"revalidation">;
564
+ id: z.ZodString;
565
+ targetType: z.ZodEnum<{
566
+ theme: "theme";
567
+ finding: "finding";
568
+ all: "all";
569
+ }>;
570
+ targetId: z.ZodOptional<z.ZodString>;
571
+ runId: z.ZodString;
572
+ outcome: z.ZodEnum<{
573
+ fixed: "fixed";
574
+ stale: "stale";
575
+ superseded: "superseded";
576
+ changed: "changed";
577
+ inconclusive: "inconclusive";
578
+ unchanged: "unchanged";
579
+ }>;
580
+ evidenceIds: z.ZodArray<z.ZodString>;
581
+ previousObservationId: z.ZodOptional<z.ZodString>;
582
+ newObservationId: z.ZodOptional<z.ZodString>;
583
+ supersededByFindingId: z.ZodOptional<z.ZodString>;
584
+ diagnostics: z.ZodArray<z.ZodObject<{
585
+ level: z.ZodEnum<{
586
+ error: "error";
587
+ info: "info";
588
+ warning: "warning";
589
+ }>;
590
+ code: z.ZodString;
591
+ message: z.ZodString;
592
+ adapter: z.ZodOptional<z.ZodString>;
593
+ }, z.core.$strip>>;
594
+ createdAt: z.ZodString;
595
+ }, z.core.$strip>;
596
+ export type RevalidationRecord = z.infer<typeof revalidationRecordSchema>;
597
+ export declare const ciRunRecordSchema: z.ZodObject<{
598
+ schemaVersion: z.ZodLiteral<"0.1.0">;
599
+ recordType: z.ZodLiteral<"ci_run">;
600
+ id: z.ZodString;
601
+ runId: z.ZodOptional<z.ZodString>;
602
+ baselineRef: z.ZodOptional<z.ZodString>;
603
+ status: z.ZodEnum<{
604
+ error: "error";
605
+ passed: "passed";
606
+ failed: "failed";
607
+ "policy-failed": "policy-failed";
608
+ }>;
609
+ policy: z.ZodRecord<z.ZodString, z.ZodUnknown>;
610
+ blockingFindingIds: z.ZodArray<z.ZodString>;
611
+ artifactPaths: z.ZodObject<{
612
+ json: z.ZodOptional<z.ZodString>;
613
+ markdown: z.ZodOptional<z.ZodString>;
614
+ sarif: z.ZodOptional<z.ZodString>;
615
+ }, z.core.$strip>;
616
+ diagnostics: z.ZodArray<z.ZodObject<{
617
+ level: z.ZodEnum<{
618
+ error: "error";
619
+ info: "info";
620
+ warning: "warning";
621
+ }>;
622
+ code: z.ZodString;
623
+ message: z.ZodString;
624
+ adapter: z.ZodOptional<z.ZodString>;
625
+ }, z.core.$strip>>;
626
+ createdAt: z.ZodString;
627
+ }, z.core.$strip>;
628
+ export type CiRunRecord = z.infer<typeof ciRunRecordSchema>;
629
+ export declare const lockRecordSchema: z.ZodObject<{
630
+ schemaVersion: z.ZodLiteral<"0.1.0">;
631
+ recordType: z.ZodLiteral<"lock">;
632
+ id: z.ZodString;
633
+ owner: z.ZodString;
634
+ pid: z.ZodNumber;
635
+ command: z.ZodString;
636
+ statePath: z.ZodString;
637
+ createdAt: z.ZodString;
638
+ expiresAt: z.ZodOptional<z.ZodString>;
639
+ }, z.core.$strip>;
640
+ export type LockRecord = z.infer<typeof lockRecordSchema>;
641
+ export declare const retentionManifestRecordSchema: z.ZodObject<{
642
+ schemaVersion: z.ZodLiteral<"0.1.0">;
643
+ recordType: z.ZodLiteral<"retention_manifest">;
644
+ id: z.ZodString;
645
+ dryRun: z.ZodBoolean;
646
+ keepRuns: z.ZodOptional<z.ZodNumber>;
647
+ keepDays: z.ZodOptional<z.ZodNumber>;
648
+ deletePaths: z.ZodArray<z.ZodString>;
649
+ retainedPaths: z.ZodArray<z.ZodString>;
650
+ blockedPaths: z.ZodArray<z.ZodObject<{
651
+ path: z.ZodString;
652
+ reason: z.ZodString;
653
+ }, z.core.$strip>>;
654
+ privacyNotes: z.ZodArray<z.ZodString>;
655
+ createdAt: z.ZodString;
656
+ }, z.core.$strip>;
657
+ export type RetentionManifestRecord = z.infer<typeof retentionManifestRecordSchema>;
658
+ export declare const fixAttemptRecordSchema: z.ZodObject<{
659
+ schemaVersion: z.ZodLiteral<"0.1.0">;
660
+ recordType: z.ZodLiteral<"fix_attempt">;
661
+ id: z.ZodString;
662
+ findingId: z.ZodString;
663
+ planId: z.ZodOptional<z.ZodString>;
664
+ status: z.ZodEnum<{
665
+ planned: "planned";
666
+ previewed: "previewed";
667
+ applied: "applied";
668
+ passed: "passed";
669
+ failed: "failed";
670
+ unverified: "unverified";
671
+ }>;
672
+ dryRun: z.ZodBoolean;
673
+ changedFiles: z.ZodArray<z.ZodString>;
674
+ patchPreviewPath: z.ZodOptional<z.ZodString>;
675
+ verificationCommands: z.ZodArray<z.ZodString>;
676
+ verificationResults: z.ZodArray<z.ZodObject<{
677
+ command: z.ZodString;
678
+ exitCode: z.ZodOptional<z.ZodNumber>;
679
+ passed: z.ZodBoolean;
680
+ outputPath: z.ZodOptional<z.ZodString>;
681
+ }, z.core.$strip>>;
682
+ diagnostics: z.ZodArray<z.ZodObject<{
683
+ level: z.ZodEnum<{
684
+ error: "error";
685
+ info: "info";
686
+ warning: "warning";
687
+ }>;
688
+ code: z.ZodString;
689
+ message: z.ZodString;
690
+ adapter: z.ZodOptional<z.ZodString>;
691
+ }, z.core.$strip>>;
692
+ createdAt: z.ZodString;
693
+ updatedAt: z.ZodString;
694
+ }, z.core.$strip>;
695
+ export type FixAttemptRecord = z.infer<typeof fixAttemptRecordSchema>;
172
696
  export declare const clusterRecordSchema: z.ZodObject<{
173
697
  schemaVersion: z.ZodLiteral<"0.1.0">;
174
698
  recordType: z.ZodLiteral<"cluster">;
@@ -187,12 +711,14 @@ export declare const clusterRecordSchema: z.ZodObject<{
187
711
  diagnostic: "diagnostic";
188
712
  }>;
189
713
  status: z.ZodEnum<{
714
+ fixed: "fixed";
190
715
  open: "open";
191
716
  investigating: "investigating";
192
717
  "handed-off": "handed-off";
193
718
  ignored: "ignored";
194
719
  "false-positive": "false-positive";
195
720
  stale: "stale";
721
+ superseded: "superseded";
196
722
  }>;
197
723
  priority: z.ZodEnum<{
198
724
  P0: "P0";
@@ -247,6 +773,7 @@ export declare const runRecordSchema: z.ZodObject<{
247
773
  root: z.ZodString;
248
774
  startedAt: z.ZodString;
249
775
  completedAt: z.ZodString;
776
+ featureCount: z.ZodOptional<z.ZodNumber>;
250
777
  evidenceCount: z.ZodNumber;
251
778
  candidateCount: z.ZodNumber;
252
779
  clusterCount: z.ZodOptional<z.ZodNumber>;
@@ -254,7 +781,24 @@ export declare const runRecordSchema: z.ZodObject<{
254
781
  requested: z.ZodBoolean;
255
782
  provider: z.ZodOptional<z.ZodString>;
256
783
  candidateCount: z.ZodNumber;
784
+ attemptId: z.ZodOptional<z.ZodString>;
785
+ acceptedCandidateCount: z.ZodOptional<z.ZodNumber>;
786
+ rejectedCandidateCount: z.ZodOptional<z.ZodNumber>;
787
+ runtime: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
257
788
  }, z.core.$strip>;
789
+ scope: z.ZodOptional<z.ZodObject<{
790
+ incremental: z.ZodBoolean;
791
+ since: z.ZodOptional<z.ZodString>;
792
+ mergeBase: z.ZodOptional<z.ZodString>;
793
+ includeDirty: z.ZodBoolean;
794
+ paths: z.ZodArray<z.ZodString>;
795
+ changedPaths: z.ZodArray<z.ZodString>;
796
+ categories: z.ZodArray<z.ZodString>;
797
+ reviewers: z.ZodArray<z.ZodString>;
798
+ onlyExisting: z.ZodBoolean;
799
+ newOnly: z.ZodBoolean;
800
+ dirtyPaths: z.ZodArray<z.ZodString>;
801
+ }, z.core.$strip>>;
258
802
  diagnostics: z.ZodArray<z.ZodObject<{
259
803
  level: z.ZodEnum<{
260
804
  error: "error";
@@ -273,20 +817,24 @@ export declare const triageRecordSchema: z.ZodObject<{
273
817
  id: z.ZodString;
274
818
  candidateId: z.ZodString;
275
819
  fromStatus: z.ZodEnum<{
820
+ fixed: "fixed";
276
821
  open: "open";
277
822
  investigating: "investigating";
278
823
  "handed-off": "handed-off";
279
824
  ignored: "ignored";
280
825
  "false-positive": "false-positive";
281
826
  stale: "stale";
827
+ superseded: "superseded";
282
828
  }>;
283
829
  toStatus: z.ZodEnum<{
830
+ fixed: "fixed";
284
831
  open: "open";
285
832
  investigating: "investigating";
286
833
  "handed-off": "handed-off";
287
834
  ignored: "ignored";
288
835
  "false-positive": "false-positive";
289
836
  stale: "stale";
837
+ superseded: "superseded";
290
838
  }>;
291
839
  note: z.ZodString;
292
840
  createdAt: z.ZodString;
@@ -308,8 +856,8 @@ export declare const reportRecordSchema: z.ZodObject<{
308
856
  startHere: z.ZodOptional<z.ZodObject<{
309
857
  id: z.ZodString;
310
858
  type: z.ZodEnum<{
311
- candidate: "candidate";
312
859
  theme: "theme";
860
+ candidate: "candidate";
313
861
  }>;
314
862
  reason: z.ZodString;
315
863
  }, z.core.$strip>>;