@agent-finops/core 0.9.6 → 0.9.8

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/README.md CHANGED
@@ -41,9 +41,9 @@ keep provenance and confidence labels truthful: reserve `verified` for
41
41
  official provider-reported financial evidence, keep modeled/local value
42
42
  `estimated` or `missing`, and leave unvalidated adapters `untested`.
43
43
 
44
- This is the open foundation for aibill's financial-accountability mission. The
45
- published v0.9.1 package includes contracts for locally confirmed ownership,
46
- local self-attested approvals, and opt-in accepted GitHub outcomes. Those are
44
+ This is the open foundation for aibill's financial-accountability mission. This
45
+ package includes contracts for locally confirmed ownership, local
46
+ self-attested approvals, and opt-in accepted GitHub outcomes. Those are
47
47
  not company-wide identity, RBAC, approval routing, invoice reconciliation, or
48
48
  verified business ROI.
49
49
 
@@ -1,6 +1,7 @@
1
1
  import { createHash } from "node:crypto";
2
2
  import { localAgentFormatDescriptor } from "./localAgentFormats/registry.js";
3
3
  import { MAX_TOKEN_EXPERIMENT_SESSIONS_PER_PHASE_V0, MAX_WASTE_FINDING_EVIDENCE_REFS_V0, TOKEN_REDUCTION_EXPERIMENT_V0_KIND, TOKEN_REDUCTION_EXPERIMENT_V0_VERSION, WASTE_FINDING_V0_KIND, WASTE_FINDING_V0_VERSION, createActionVerificationReference, createTokenReductionExperimentV0, createWasteFindingV0 } from "./actionVerification.js";
4
+ import { safeUntrustedLabel, WITHHELD_FILE_LABEL } from "./untrustedLabel.js";
4
5
  const MINIMUM_SESSIONS = 3;
5
6
  const CONTEXT_RATIO_THRESHOLD = 1.5;
6
7
  const FRESH_MS = 72 * 60 * 60 * 1_000;
@@ -196,7 +197,9 @@ export function resolveWasteFindingTargetV0(input) {
196
197
  status: "resolved",
197
198
  kind: "repeated_read_file",
198
199
  ref: finding.target.ref,
199
- file: match.file,
200
+ // Already neutralized upstream; re-applied because a resolved target
201
+ // is written into the Apply artifact an agent reads.
202
+ file: safeUntrustedLabel(match.file, WITHHELD_FILE_LABEL),
200
203
  readCount: match.readCount,
201
204
  localOnly: true
202
205
  }
@@ -13,8 +13,8 @@ export declare const wasteFindingCaveatValues: readonly ["signal_not_cause", "no
13
13
  export type WasteFindingCaveat = typeof wasteFindingCaveatValues[number];
14
14
  export declare const actionVerificationEvidenceValues: readonly ["verified", "observed", "calculated", "user_declared", "modeled", "missing"];
15
15
  export declare const actionVerificationEvidenceSchema: z.ZodEnum<{
16
- missing: "missing";
17
16
  verified: "verified";
17
+ missing: "missing";
18
18
  observed: "observed";
19
19
  calculated: "calculated";
20
20
  user_declared: "user_declared";
@@ -55,12 +55,12 @@ declare const wasteFindingBodySchema: z.ZodObject<{
55
55
  candidateAction: z.ZodObject<{
56
56
  kind: z.ZodEnum<{
57
57
  start_fresh: "start_fresh";
58
- trim_context: "trim_context";
59
58
  inspect_scope: "inspect_scope";
60
59
  lazy_load: "lazy_load";
61
60
  disable: "disable";
62
61
  remove: "remove";
63
62
  reduce_repeated_reads: "reduce_repeated_reads";
63
+ trim_context: "trim_context";
64
64
  }>;
65
65
  provider: z.ZodString;
66
66
  surface: z.ZodEnum<{
@@ -95,9 +95,9 @@ declare const wasteFindingBodySchema: z.ZodObject<{
95
95
  failed: "failed";
96
96
  }>;
97
97
  freshness: z.ZodEnum<{
98
- not_checked: "not_checked";
99
- stale: "stale";
100
98
  fresh: "fresh";
99
+ stale: "stale";
100
+ not_checked: "not_checked";
101
101
  }>;
102
102
  }, z.core.$strict>;
103
103
  metric: z.ZodObject<{
@@ -109,9 +109,9 @@ declare const wasteFindingBodySchema: z.ZodObject<{
109
109
  configured_items: "configured_items";
110
110
  }>;
111
111
  unit: z.ZodEnum<{
112
+ items: "items";
112
113
  tokens: "tokens";
113
114
  events: "events";
114
- items: "items";
115
115
  ratio: "ratio";
116
116
  }>;
117
117
  value: z.ZodNullable<z.ZodNumber>;
@@ -156,12 +156,12 @@ declare const wasteFindingObjectSchema: z.ZodObject<{
156
156
  candidateAction: z.ZodObject<{
157
157
  kind: z.ZodEnum<{
158
158
  start_fresh: "start_fresh";
159
- trim_context: "trim_context";
160
159
  inspect_scope: "inspect_scope";
161
160
  lazy_load: "lazy_load";
162
161
  disable: "disable";
163
162
  remove: "remove";
164
163
  reduce_repeated_reads: "reduce_repeated_reads";
164
+ trim_context: "trim_context";
165
165
  }>;
166
166
  provider: z.ZodString;
167
167
  surface: z.ZodEnum<{
@@ -196,9 +196,9 @@ declare const wasteFindingObjectSchema: z.ZodObject<{
196
196
  failed: "failed";
197
197
  }>;
198
198
  freshness: z.ZodEnum<{
199
- not_checked: "not_checked";
200
- stale: "stale";
201
199
  fresh: "fresh";
200
+ stale: "stale";
201
+ not_checked: "not_checked";
202
202
  }>;
203
203
  }, z.core.$strict>;
204
204
  metric: z.ZodObject<{
@@ -210,9 +210,9 @@ declare const wasteFindingObjectSchema: z.ZodObject<{
210
210
  configured_items: "configured_items";
211
211
  }>;
212
212
  unit: z.ZodEnum<{
213
+ items: "items";
213
214
  tokens: "tokens";
214
215
  events: "events";
215
- items: "items";
216
216
  ratio: "ratio";
217
217
  }>;
218
218
  value: z.ZodNullable<z.ZodNumber>;
@@ -240,8 +240,8 @@ declare const tokenSessionSchema: z.ZodObject<{
240
240
  model: z.ZodString;
241
241
  projectRef: z.ZodOptional<z.ZodString>;
242
242
  sessionType: z.ZodEnum<{
243
- unknown: "unknown";
244
243
  subagent: "subagent";
244
+ unknown: "unknown";
245
245
  parent: "parent";
246
246
  }>;
247
247
  workTypeRef: z.ZodOptional<z.ZodString>;
@@ -277,9 +277,9 @@ declare const tokenSessionSchema: z.ZodObject<{
277
277
  not_separately_reported: "not_separately_reported";
278
278
  }>;
279
279
  cacheWriteTokens: z.ZodEnum<{
280
- partial: "partial";
281
280
  observed: "observed";
282
281
  not_separately_reported: "not_separately_reported";
282
+ partial: "partial";
283
283
  }>;
284
284
  toolTokens: z.ZodEnum<{
285
285
  observed: "observed";
@@ -299,8 +299,8 @@ declare const tokenSessionSchema: z.ZodObject<{
299
299
  calculated_partial: "calculated_partial";
300
300
  }>;
301
301
  reportedTotalTokens: z.ZodEnum<{
302
- not_reported: "not_reported";
303
302
  provider_reported: "provider_reported";
303
+ not_reported: "not_reported";
304
304
  }>;
305
305
  }, z.core.$strict>;
306
306
  }, z.core.$strict>;
@@ -311,8 +311,8 @@ declare const tokenSessionSchema: z.ZodObject<{
311
311
  passed: "passed";
312
312
  }>;
313
313
  evidence: z.ZodEnum<{
314
- missing: "missing";
315
314
  verified: "verified";
315
+ missing: "missing";
316
316
  observed: "observed";
317
317
  user_declared: "user_declared";
318
318
  }>;
@@ -353,12 +353,12 @@ declare const experimentBodySchema: z.ZodObject<{
353
353
  candidateAction: z.ZodObject<{
354
354
  kind: z.ZodEnum<{
355
355
  start_fresh: "start_fresh";
356
- trim_context: "trim_context";
357
356
  inspect_scope: "inspect_scope";
358
357
  lazy_load: "lazy_load";
359
358
  disable: "disable";
360
359
  remove: "remove";
361
360
  reduce_repeated_reads: "reduce_repeated_reads";
361
+ trim_context: "trim_context";
362
362
  }>;
363
363
  provider: z.ZodString;
364
364
  surface: z.ZodEnum<{
@@ -393,9 +393,9 @@ declare const experimentBodySchema: z.ZodObject<{
393
393
  failed: "failed";
394
394
  }>;
395
395
  freshness: z.ZodEnum<{
396
- not_checked: "not_checked";
397
- stale: "stale";
398
396
  fresh: "fresh";
397
+ stale: "stale";
398
+ not_checked: "not_checked";
399
399
  }>;
400
400
  }, z.core.$strict>;
401
401
  metric: z.ZodObject<{
@@ -407,9 +407,9 @@ declare const experimentBodySchema: z.ZodObject<{
407
407
  configured_items: "configured_items";
408
408
  }>;
409
409
  unit: z.ZodEnum<{
410
+ items: "items";
410
411
  tokens: "tokens";
411
412
  events: "events";
412
- items: "items";
413
413
  ratio: "ratio";
414
414
  }>;
415
415
  value: z.ZodNullable<z.ZodNumber>;
@@ -471,8 +471,8 @@ declare const experimentBodySchema: z.ZodObject<{
471
471
  model: z.ZodString;
472
472
  projectRef: z.ZodOptional<z.ZodString>;
473
473
  sessionType: z.ZodEnum<{
474
- unknown: "unknown";
475
474
  subagent: "subagent";
475
+ unknown: "unknown";
476
476
  parent: "parent";
477
477
  }>;
478
478
  workTypeRef: z.ZodOptional<z.ZodString>;
@@ -508,9 +508,9 @@ declare const experimentBodySchema: z.ZodObject<{
508
508
  not_separately_reported: "not_separately_reported";
509
509
  }>;
510
510
  cacheWriteTokens: z.ZodEnum<{
511
- partial: "partial";
512
511
  observed: "observed";
513
512
  not_separately_reported: "not_separately_reported";
513
+ partial: "partial";
514
514
  }>;
515
515
  toolTokens: z.ZodEnum<{
516
516
  observed: "observed";
@@ -530,8 +530,8 @@ declare const experimentBodySchema: z.ZodObject<{
530
530
  calculated_partial: "calculated_partial";
531
531
  }>;
532
532
  reportedTotalTokens: z.ZodEnum<{
533
- not_reported: "not_reported";
534
533
  provider_reported: "provider_reported";
534
+ not_reported: "not_reported";
535
535
  }>;
536
536
  }, z.core.$strict>;
537
537
  }, z.core.$strict>;
@@ -542,8 +542,8 @@ declare const experimentBodySchema: z.ZodObject<{
542
542
  passed: "passed";
543
543
  }>;
544
544
  evidence: z.ZodEnum<{
545
- missing: "missing";
546
545
  verified: "verified";
546
+ missing: "missing";
547
547
  observed: "observed";
548
548
  user_declared: "user_declared";
549
549
  }>;
@@ -557,8 +557,8 @@ declare const experimentBodySchema: z.ZodObject<{
557
557
  explicit: "explicit";
558
558
  }>;
559
559
  evidence: z.ZodEnum<{
560
- missing: "missing";
561
560
  verified: "verified";
561
+ missing: "missing";
562
562
  user_declared: "user_declared";
563
563
  }>;
564
564
  approvedAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
@@ -574,8 +574,8 @@ declare const experimentBodySchema: z.ZodObject<{
574
574
  passed: "passed";
575
575
  }>;
576
576
  evidence: z.ZodEnum<{
577
- missing: "missing";
578
577
  verified: "verified";
578
+ missing: "missing";
579
579
  observed: "observed";
580
580
  user_declared: "user_declared";
581
581
  }>;
@@ -592,8 +592,8 @@ declare const experimentBodySchema: z.ZodObject<{
592
592
  model: z.ZodString;
593
593
  projectRef: z.ZodOptional<z.ZodString>;
594
594
  sessionType: z.ZodEnum<{
595
- unknown: "unknown";
596
595
  subagent: "subagent";
596
+ unknown: "unknown";
597
597
  parent: "parent";
598
598
  }>;
599
599
  workTypeRef: z.ZodOptional<z.ZodString>;
@@ -629,9 +629,9 @@ declare const experimentBodySchema: z.ZodObject<{
629
629
  not_separately_reported: "not_separately_reported";
630
630
  }>;
631
631
  cacheWriteTokens: z.ZodEnum<{
632
- partial: "partial";
633
632
  observed: "observed";
634
633
  not_separately_reported: "not_separately_reported";
634
+ partial: "partial";
635
635
  }>;
636
636
  toolTokens: z.ZodEnum<{
637
637
  observed: "observed";
@@ -651,8 +651,8 @@ declare const experimentBodySchema: z.ZodObject<{
651
651
  calculated_partial: "calculated_partial";
652
652
  }>;
653
653
  reportedTotalTokens: z.ZodEnum<{
654
- not_reported: "not_reported";
655
654
  provider_reported: "provider_reported";
655
+ not_reported: "not_reported";
656
656
  }>;
657
657
  }, z.core.$strict>;
658
658
  }, z.core.$strict>;
@@ -663,8 +663,8 @@ declare const experimentBodySchema: z.ZodObject<{
663
663
  passed: "passed";
664
664
  }>;
665
665
  evidence: z.ZodEnum<{
666
- missing: "missing";
667
666
  verified: "verified";
667
+ missing: "missing";
668
668
  observed: "observed";
669
669
  user_declared: "user_declared";
670
670
  }>;
@@ -673,10 +673,10 @@ declare const experimentBodySchema: z.ZodObject<{
673
673
  }, z.core.$strict>>;
674
674
  invalidation: z.ZodOptional<z.ZodObject<{
675
675
  reason: z.ZodEnum<{
676
+ manual: "manual";
676
677
  scope_changed: "scope_changed";
677
678
  source_semantics_changed: "source_semantics_changed";
678
679
  concurrent_change: "concurrent_change";
679
- manual: "manual";
680
680
  }>;
681
681
  invalidatedAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
682
682
  }, z.core.$strict>>;
@@ -684,11 +684,11 @@ declare const experimentBodySchema: z.ZodObject<{
684
684
  export type TokenReductionExperimentV0DraftInput = z.input<typeof experimentBodySchema>;
685
685
  declare const evaluationSchema: z.ZodObject<{
686
686
  status: z.ZodEnum<{
687
- regressed: "regressed";
688
687
  collecting: "collecting";
689
688
  not_evaluated: "not_evaluated";
690
689
  measured_token_reduction: "measured_token_reduction";
691
690
  no_measured_change: "no_measured_change";
691
+ regressed: "regressed";
692
692
  inconclusive: "inconclusive";
693
693
  }>;
694
694
  metricEvidence: z.ZodEnum<{
@@ -696,19 +696,19 @@ declare const evaluationSchema: z.ZodObject<{
696
696
  calculated: "calculated";
697
697
  }>;
698
698
  matchingEvidence: z.ZodEnum<{
699
- missing: "missing";
700
699
  verified: "verified";
700
+ missing: "missing";
701
701
  observed: "observed";
702
702
  user_declared: "user_declared";
703
703
  }>;
704
704
  qualityStatus: z.ZodEnum<{
705
- insufficient: "insufficient";
706
- held: "held";
707
705
  regressed: "regressed";
706
+ held: "held";
707
+ insufficient: "insufficient";
708
708
  }>;
709
709
  qualityEvidence: z.ZodEnum<{
710
- missing: "missing";
711
710
  verified: "verified";
711
+ missing: "missing";
712
712
  observed: "observed";
713
713
  user_declared: "user_declared";
714
714
  }>;
@@ -795,12 +795,12 @@ declare const experimentObjectSchema: z.ZodObject<{
795
795
  candidateAction: z.ZodObject<{
796
796
  kind: z.ZodEnum<{
797
797
  start_fresh: "start_fresh";
798
- trim_context: "trim_context";
799
798
  inspect_scope: "inspect_scope";
800
799
  lazy_load: "lazy_load";
801
800
  disable: "disable";
802
801
  remove: "remove";
803
802
  reduce_repeated_reads: "reduce_repeated_reads";
803
+ trim_context: "trim_context";
804
804
  }>;
805
805
  provider: z.ZodString;
806
806
  surface: z.ZodEnum<{
@@ -835,9 +835,9 @@ declare const experimentObjectSchema: z.ZodObject<{
835
835
  failed: "failed";
836
836
  }>;
837
837
  freshness: z.ZodEnum<{
838
- not_checked: "not_checked";
839
- stale: "stale";
840
838
  fresh: "fresh";
839
+ stale: "stale";
840
+ not_checked: "not_checked";
841
841
  }>;
842
842
  }, z.core.$strict>;
843
843
  metric: z.ZodObject<{
@@ -849,9 +849,9 @@ declare const experimentObjectSchema: z.ZodObject<{
849
849
  configured_items: "configured_items";
850
850
  }>;
851
851
  unit: z.ZodEnum<{
852
+ items: "items";
852
853
  tokens: "tokens";
853
854
  events: "events";
854
- items: "items";
855
855
  ratio: "ratio";
856
856
  }>;
857
857
  value: z.ZodNullable<z.ZodNumber>;
@@ -913,8 +913,8 @@ declare const experimentObjectSchema: z.ZodObject<{
913
913
  model: z.ZodString;
914
914
  projectRef: z.ZodOptional<z.ZodString>;
915
915
  sessionType: z.ZodEnum<{
916
- unknown: "unknown";
917
916
  subagent: "subagent";
917
+ unknown: "unknown";
918
918
  parent: "parent";
919
919
  }>;
920
920
  workTypeRef: z.ZodOptional<z.ZodString>;
@@ -950,9 +950,9 @@ declare const experimentObjectSchema: z.ZodObject<{
950
950
  not_separately_reported: "not_separately_reported";
951
951
  }>;
952
952
  cacheWriteTokens: z.ZodEnum<{
953
- partial: "partial";
954
953
  observed: "observed";
955
954
  not_separately_reported: "not_separately_reported";
955
+ partial: "partial";
956
956
  }>;
957
957
  toolTokens: z.ZodEnum<{
958
958
  observed: "observed";
@@ -972,8 +972,8 @@ declare const experimentObjectSchema: z.ZodObject<{
972
972
  calculated_partial: "calculated_partial";
973
973
  }>;
974
974
  reportedTotalTokens: z.ZodEnum<{
975
- not_reported: "not_reported";
976
975
  provider_reported: "provider_reported";
976
+ not_reported: "not_reported";
977
977
  }>;
978
978
  }, z.core.$strict>;
979
979
  }, z.core.$strict>;
@@ -984,8 +984,8 @@ declare const experimentObjectSchema: z.ZodObject<{
984
984
  passed: "passed";
985
985
  }>;
986
986
  evidence: z.ZodEnum<{
987
- missing: "missing";
988
987
  verified: "verified";
988
+ missing: "missing";
989
989
  observed: "observed";
990
990
  user_declared: "user_declared";
991
991
  }>;
@@ -999,8 +999,8 @@ declare const experimentObjectSchema: z.ZodObject<{
999
999
  explicit: "explicit";
1000
1000
  }>;
1001
1001
  evidence: z.ZodEnum<{
1002
- missing: "missing";
1003
1002
  verified: "verified";
1003
+ missing: "missing";
1004
1004
  user_declared: "user_declared";
1005
1005
  }>;
1006
1006
  approvedAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
@@ -1016,8 +1016,8 @@ declare const experimentObjectSchema: z.ZodObject<{
1016
1016
  passed: "passed";
1017
1017
  }>;
1018
1018
  evidence: z.ZodEnum<{
1019
- missing: "missing";
1020
1019
  verified: "verified";
1020
+ missing: "missing";
1021
1021
  observed: "observed";
1022
1022
  user_declared: "user_declared";
1023
1023
  }>;
@@ -1034,8 +1034,8 @@ declare const experimentObjectSchema: z.ZodObject<{
1034
1034
  model: z.ZodString;
1035
1035
  projectRef: z.ZodOptional<z.ZodString>;
1036
1036
  sessionType: z.ZodEnum<{
1037
- unknown: "unknown";
1038
1037
  subagent: "subagent";
1038
+ unknown: "unknown";
1039
1039
  parent: "parent";
1040
1040
  }>;
1041
1041
  workTypeRef: z.ZodOptional<z.ZodString>;
@@ -1071,9 +1071,9 @@ declare const experimentObjectSchema: z.ZodObject<{
1071
1071
  not_separately_reported: "not_separately_reported";
1072
1072
  }>;
1073
1073
  cacheWriteTokens: z.ZodEnum<{
1074
- partial: "partial";
1075
1074
  observed: "observed";
1076
1075
  not_separately_reported: "not_separately_reported";
1076
+ partial: "partial";
1077
1077
  }>;
1078
1078
  toolTokens: z.ZodEnum<{
1079
1079
  observed: "observed";
@@ -1093,8 +1093,8 @@ declare const experimentObjectSchema: z.ZodObject<{
1093
1093
  calculated_partial: "calculated_partial";
1094
1094
  }>;
1095
1095
  reportedTotalTokens: z.ZodEnum<{
1096
- not_reported: "not_reported";
1097
1096
  provider_reported: "provider_reported";
1097
+ not_reported: "not_reported";
1098
1098
  }>;
1099
1099
  }, z.core.$strict>;
1100
1100
  }, z.core.$strict>;
@@ -1105,8 +1105,8 @@ declare const experimentObjectSchema: z.ZodObject<{
1105
1105
  passed: "passed";
1106
1106
  }>;
1107
1107
  evidence: z.ZodEnum<{
1108
- missing: "missing";
1109
1108
  verified: "verified";
1109
+ missing: "missing";
1110
1110
  observed: "observed";
1111
1111
  user_declared: "user_declared";
1112
1112
  }>;
@@ -1115,10 +1115,10 @@ declare const experimentObjectSchema: z.ZodObject<{
1115
1115
  }, z.core.$strict>>;
1116
1116
  invalidation: z.ZodOptional<z.ZodObject<{
1117
1117
  reason: z.ZodEnum<{
1118
+ manual: "manual";
1118
1119
  scope_changed: "scope_changed";
1119
1120
  source_semantics_changed: "source_semantics_changed";
1120
1121
  concurrent_change: "concurrent_change";
1121
- manual: "manual";
1122
1122
  }>;
1123
1123
  invalidatedAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1124
1124
  }, z.core.$strict>>;
@@ -1126,20 +1126,20 @@ declare const experimentObjectSchema: z.ZodObject<{
1126
1126
  revisionId: z.ZodString;
1127
1127
  lifecycle: z.ZodEnum<{
1128
1128
  complete: "complete";
1129
- rolled_back: "rolled_back";
1130
1129
  draft: "draft";
1131
1130
  baseline_ready: "baseline_ready";
1132
1131
  applied: "applied";
1133
1132
  collecting: "collecting";
1133
+ rolled_back: "rolled_back";
1134
1134
  invalidated: "invalidated";
1135
1135
  }>;
1136
1136
  evaluation: z.ZodObject<{
1137
1137
  status: z.ZodEnum<{
1138
- regressed: "regressed";
1139
1138
  collecting: "collecting";
1140
1139
  not_evaluated: "not_evaluated";
1141
1140
  measured_token_reduction: "measured_token_reduction";
1142
1141
  no_measured_change: "no_measured_change";
1142
+ regressed: "regressed";
1143
1143
  inconclusive: "inconclusive";
1144
1144
  }>;
1145
1145
  metricEvidence: z.ZodEnum<{
@@ -1147,19 +1147,19 @@ declare const experimentObjectSchema: z.ZodObject<{
1147
1147
  calculated: "calculated";
1148
1148
  }>;
1149
1149
  matchingEvidence: z.ZodEnum<{
1150
- missing: "missing";
1151
1150
  verified: "verified";
1151
+ missing: "missing";
1152
1152
  observed: "observed";
1153
1153
  user_declared: "user_declared";
1154
1154
  }>;
1155
1155
  qualityStatus: z.ZodEnum<{
1156
- insufficient: "insufficient";
1157
- held: "held";
1158
1156
  regressed: "regressed";
1157
+ held: "held";
1158
+ insufficient: "insufficient";
1159
1159
  }>;
1160
1160
  qualityEvidence: z.ZodEnum<{
1161
- missing: "missing";
1162
1161
  verified: "verified";
1162
+ missing: "missing";
1163
1163
  observed: "observed";
1164
1164
  user_declared: "user_declared";
1165
1165
  }>;