@mcptoolshop/research-os 0.3.0 → 0.3.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/CHANGELOG.md +214 -0
- package/README.es.md +99 -71
- package/README.fr.md +86 -58
- package/README.hi.md +83 -59
- package/README.it.md +97 -73
- package/README.ja.md +86 -58
- package/README.md +8 -4
- package/README.pt-BR.md +83 -59
- package/README.zh.md +102 -74
- package/dist/cli.js +281 -62
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +174 -84
- package/dist/index.js +185 -48
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -136,18 +136,62 @@ declare const GateConfigSchema: z.ZodObject<{
|
|
|
136
136
|
extension_requires_evidence?: boolean | undefined;
|
|
137
137
|
} | undefined;
|
|
138
138
|
}>;
|
|
139
|
+
declare const SectionScopedWaiverSchema: z.ZodObject<{
|
|
140
|
+
section_id: z.ZodString;
|
|
141
|
+
scope: z.ZodEnum<["min_independent_publishers", "primary_sources_required"]>;
|
|
142
|
+
reason: z.ZodString;
|
|
143
|
+
compensating_controls: z.ZodArray<z.ZodString, "many">;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
section_id: string;
|
|
146
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
147
|
+
reason: string;
|
|
148
|
+
compensating_controls: string[];
|
|
149
|
+
}, {
|
|
150
|
+
section_id: string;
|
|
151
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
152
|
+
reason: string;
|
|
153
|
+
compensating_controls: string[];
|
|
154
|
+
}>;
|
|
139
155
|
declare const PrimarySourceWaiverSchema: z.ZodObject<{
|
|
140
156
|
status: z.ZodDefault<z.ZodEnum<["none", "requested", "granted"]>>;
|
|
141
157
|
reason: z.ZodOptional<z.ZodString>;
|
|
142
158
|
compensating_controls: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
159
|
+
section_waivers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
160
|
+
section_id: z.ZodString;
|
|
161
|
+
scope: z.ZodEnum<["min_independent_publishers", "primary_sources_required"]>;
|
|
162
|
+
reason: z.ZodString;
|
|
163
|
+
compensating_controls: z.ZodArray<z.ZodString, "many">;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
section_id: string;
|
|
166
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
167
|
+
reason: string;
|
|
168
|
+
compensating_controls: string[];
|
|
169
|
+
}, {
|
|
170
|
+
section_id: string;
|
|
171
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
172
|
+
reason: string;
|
|
173
|
+
compensating_controls: string[];
|
|
174
|
+
}>, "many">>;
|
|
143
175
|
}, "strip", z.ZodTypeAny, {
|
|
144
176
|
status: "none" | "requested" | "granted";
|
|
145
177
|
compensating_controls: string[];
|
|
178
|
+
section_waivers: {
|
|
179
|
+
section_id: string;
|
|
180
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
181
|
+
reason: string;
|
|
182
|
+
compensating_controls: string[];
|
|
183
|
+
}[];
|
|
146
184
|
reason?: string | undefined;
|
|
147
185
|
}, {
|
|
148
186
|
status?: "none" | "requested" | "granted" | undefined;
|
|
149
187
|
reason?: string | undefined;
|
|
150
188
|
compensating_controls?: string[] | undefined;
|
|
189
|
+
section_waivers?: {
|
|
190
|
+
section_id: string;
|
|
191
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
192
|
+
reason: string;
|
|
193
|
+
compensating_controls: string[];
|
|
194
|
+
}[] | undefined;
|
|
151
195
|
}>;
|
|
152
196
|
declare const ResearchYamlSchema: z.ZodObject<{
|
|
153
197
|
research_os_version: z.ZodString;
|
|
@@ -172,14 +216,42 @@ declare const ResearchYamlSchema: z.ZodObject<{
|
|
|
172
216
|
status: z.ZodDefault<z.ZodEnum<["none", "requested", "granted"]>>;
|
|
173
217
|
reason: z.ZodOptional<z.ZodString>;
|
|
174
218
|
compensating_controls: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
219
|
+
section_waivers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
220
|
+
section_id: z.ZodString;
|
|
221
|
+
scope: z.ZodEnum<["min_independent_publishers", "primary_sources_required"]>;
|
|
222
|
+
reason: z.ZodString;
|
|
223
|
+
compensating_controls: z.ZodArray<z.ZodString, "many">;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
section_id: string;
|
|
226
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
227
|
+
reason: string;
|
|
228
|
+
compensating_controls: string[];
|
|
229
|
+
}, {
|
|
230
|
+
section_id: string;
|
|
231
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
232
|
+
reason: string;
|
|
233
|
+
compensating_controls: string[];
|
|
234
|
+
}>, "many">>;
|
|
175
235
|
}, "strip", z.ZodTypeAny, {
|
|
176
236
|
status: "none" | "requested" | "granted";
|
|
177
237
|
compensating_controls: string[];
|
|
238
|
+
section_waivers: {
|
|
239
|
+
section_id: string;
|
|
240
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
241
|
+
reason: string;
|
|
242
|
+
compensating_controls: string[];
|
|
243
|
+
}[];
|
|
178
244
|
reason?: string | undefined;
|
|
179
245
|
}, {
|
|
180
246
|
status?: "none" | "requested" | "granted" | undefined;
|
|
181
247
|
reason?: string | undefined;
|
|
182
248
|
compensating_controls?: string[] | undefined;
|
|
249
|
+
section_waivers?: {
|
|
250
|
+
section_id: string;
|
|
251
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
252
|
+
reason: string;
|
|
253
|
+
compensating_controls: string[];
|
|
254
|
+
}[] | undefined;
|
|
183
255
|
}>>;
|
|
184
256
|
sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
185
257
|
id: z.ZodString;
|
|
@@ -354,6 +426,12 @@ declare const ResearchYamlSchema: z.ZodObject<{
|
|
|
354
426
|
primary_source_waiver: {
|
|
355
427
|
status: "none" | "requested" | "granted";
|
|
356
428
|
compensating_controls: string[];
|
|
429
|
+
section_waivers: {
|
|
430
|
+
section_id: string;
|
|
431
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
432
|
+
reason: string;
|
|
433
|
+
compensating_controls: string[];
|
|
434
|
+
}[];
|
|
357
435
|
reason?: string | undefined;
|
|
358
436
|
};
|
|
359
437
|
sections: {
|
|
@@ -416,6 +494,12 @@ declare const ResearchYamlSchema: z.ZodObject<{
|
|
|
416
494
|
status?: "none" | "requested" | "granted" | undefined;
|
|
417
495
|
reason?: string | undefined;
|
|
418
496
|
compensating_controls?: string[] | undefined;
|
|
497
|
+
section_waivers?: {
|
|
498
|
+
section_id: string;
|
|
499
|
+
scope: "primary_sources_required" | "min_independent_publishers";
|
|
500
|
+
reason: string;
|
|
501
|
+
compensating_controls: string[];
|
|
502
|
+
}[] | undefined;
|
|
419
503
|
} | undefined;
|
|
420
504
|
sections?: {
|
|
421
505
|
id: string;
|
|
@@ -464,6 +548,7 @@ declare const ResearchYamlSchema: z.ZodObject<{
|
|
|
464
548
|
type Section = z.infer<typeof SectionSchema>;
|
|
465
549
|
type GateConfig = z.infer<typeof GateConfigSchema>;
|
|
466
550
|
type PrimarySourceWaiver = z.infer<typeof PrimarySourceWaiverSchema>;
|
|
551
|
+
type SectionScopedWaiver = z.infer<typeof SectionScopedWaiverSchema>;
|
|
467
552
|
type ResearchYaml = z.infer<typeof ResearchYamlSchema>;
|
|
468
553
|
|
|
469
554
|
interface InitOptions {
|
|
@@ -519,8 +604,8 @@ declare const SectionGatesYamlSchema: z.ZodObject<{
|
|
|
519
604
|
primary_sources_required: number;
|
|
520
605
|
contradictions_required: boolean;
|
|
521
606
|
status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
|
|
522
|
-
created_at: string;
|
|
523
607
|
section_id: string;
|
|
608
|
+
created_at: string;
|
|
524
609
|
}, {
|
|
525
610
|
purpose: string;
|
|
526
611
|
max_time_minutes: number;
|
|
@@ -528,8 +613,8 @@ declare const SectionGatesYamlSchema: z.ZodObject<{
|
|
|
528
613
|
primary_sources_required: number;
|
|
529
614
|
contradictions_required: boolean;
|
|
530
615
|
status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
|
|
531
|
-
created_at: string;
|
|
532
616
|
section_id: string;
|
|
617
|
+
created_at: string;
|
|
533
618
|
}>;
|
|
534
619
|
type SectionGatesYaml = z.infer<typeof SectionGatesYamlSchema>;
|
|
535
620
|
|
|
@@ -668,6 +753,7 @@ declare const SourceCardSchema: z.ZodObject<{
|
|
|
668
753
|
extracted_at: z.ZodString;
|
|
669
754
|
}, "strip", z.ZodTypeAny, {
|
|
670
755
|
section_id: string;
|
|
756
|
+
scope: string | null;
|
|
671
757
|
receipt_id: string;
|
|
672
758
|
source_id: string;
|
|
673
759
|
final_url: string | null;
|
|
@@ -676,17 +762,17 @@ declare const SourceCardSchema: z.ZodObject<{
|
|
|
676
762
|
url: string;
|
|
677
763
|
publisher: string | null;
|
|
678
764
|
published_at: string | null;
|
|
679
|
-
source_type: "primary" | "secondary" | "forum" | "benchmark" | "docs"
|
|
765
|
+
source_type: "unknown" | "primary" | "secondary" | "forum" | "benchmark" | "docs";
|
|
680
766
|
relevance: "unknown" | "high" | "medium" | "low";
|
|
681
767
|
key_points: string[];
|
|
682
768
|
limitations: string[];
|
|
683
769
|
asserts: string;
|
|
684
|
-
scope: string | null;
|
|
685
770
|
not: string | null;
|
|
686
771
|
extracted_by: "heuristic" | "ollama-intern";
|
|
687
772
|
extracted_at: string;
|
|
688
773
|
}, {
|
|
689
774
|
section_id: string;
|
|
775
|
+
scope: string | null;
|
|
690
776
|
receipt_id: string;
|
|
691
777
|
source_id: string;
|
|
692
778
|
final_url: string | null;
|
|
@@ -695,12 +781,11 @@ declare const SourceCardSchema: z.ZodObject<{
|
|
|
695
781
|
url: string;
|
|
696
782
|
publisher: string | null;
|
|
697
783
|
published_at: string | null;
|
|
698
|
-
source_type: "primary" | "secondary" | "forum" | "benchmark" | "docs"
|
|
784
|
+
source_type: "unknown" | "primary" | "secondary" | "forum" | "benchmark" | "docs";
|
|
699
785
|
relevance: "unknown" | "high" | "medium" | "low";
|
|
700
786
|
key_points: string[];
|
|
701
787
|
limitations: string[];
|
|
702
788
|
asserts: string;
|
|
703
|
-
scope: string | null;
|
|
704
789
|
not: string | null;
|
|
705
790
|
extracted_by: "heuristic" | "ollama-intern";
|
|
706
791
|
extracted_at: string;
|
|
@@ -1035,8 +1120,8 @@ declare const ClaimDensityAuditSchema: z.ZodObject<{
|
|
|
1035
1120
|
affects_claim_ids?: string[] | undefined;
|
|
1036
1121
|
}>, "many">;
|
|
1037
1122
|
}, "strip", z.ZodTypeAny, {
|
|
1038
|
-
research_os_version: string;
|
|
1039
1123
|
section_id: string;
|
|
1124
|
+
research_os_version: string;
|
|
1040
1125
|
claims_per_1k_words: number;
|
|
1041
1126
|
weak_scope_count: number;
|
|
1042
1127
|
generic_scope_count: number;
|
|
@@ -1068,8 +1153,8 @@ declare const ClaimDensityAuditSchema: z.ZodObject<{
|
|
|
1068
1153
|
affects_claim_ids: string[];
|
|
1069
1154
|
}[];
|
|
1070
1155
|
}, {
|
|
1071
|
-
research_os_version: string;
|
|
1072
1156
|
section_id: string;
|
|
1157
|
+
research_os_version: string;
|
|
1073
1158
|
claims_per_1k_words: number;
|
|
1074
1159
|
weak_scope_count: number;
|
|
1075
1160
|
generic_scope_count: number;
|
|
@@ -1167,10 +1252,10 @@ declare const ClaimSchema: z.ZodObject<{
|
|
|
1167
1252
|
created_at: z.ZodString;
|
|
1168
1253
|
review_state: z.ZodEnum<["candidate", "gated", "reviewed", "rejected", "accepted"]>;
|
|
1169
1254
|
}, "strip", z.ZodTypeAny, {
|
|
1170
|
-
created_at: string;
|
|
1171
1255
|
section_id: string;
|
|
1172
|
-
asserts: string;
|
|
1173
1256
|
scope: string | null;
|
|
1257
|
+
created_at: string;
|
|
1258
|
+
asserts: string;
|
|
1174
1259
|
not: string | null;
|
|
1175
1260
|
evidence_excerpt_ids: string[];
|
|
1176
1261
|
evidence_location: string | null;
|
|
@@ -1183,10 +1268,10 @@ declare const ClaimSchema: z.ZodObject<{
|
|
|
1183
1268
|
extraction_method: string;
|
|
1184
1269
|
review_state: "gated" | "reviewed" | "candidate" | "rejected" | "accepted";
|
|
1185
1270
|
}, {
|
|
1186
|
-
created_at: string;
|
|
1187
1271
|
section_id: string;
|
|
1188
|
-
asserts: string;
|
|
1189
1272
|
scope: string | null;
|
|
1273
|
+
created_at: string;
|
|
1274
|
+
asserts: string;
|
|
1190
1275
|
not: string | null;
|
|
1191
1276
|
evidence_location: string | null;
|
|
1192
1277
|
confidence: "high" | "medium" | "low";
|
|
@@ -1358,9 +1443,9 @@ declare const ContradictionSchema: z.ZodObject<{
|
|
|
1358
1443
|
}, "strip", z.ZodTypeAny, {
|
|
1359
1444
|
status: "rejected" | "unresolved" | "reconciled" | "preserved_deliberately";
|
|
1360
1445
|
type: "direct_conflict" | "scope_conflict" | "temporal_conflict" | "definition_conflict" | "evidence_conflict" | "overgeneralization_risk";
|
|
1446
|
+
section_id: string;
|
|
1361
1447
|
created_at: string;
|
|
1362
1448
|
evidence: string;
|
|
1363
|
-
section_id: string;
|
|
1364
1449
|
confidence: "high" | "medium" | "low";
|
|
1365
1450
|
source_ids: string[];
|
|
1366
1451
|
claim_ids: string[];
|
|
@@ -1374,9 +1459,9 @@ declare const ContradictionSchema: z.ZodObject<{
|
|
|
1374
1459
|
}, {
|
|
1375
1460
|
status: "rejected" | "unresolved" | "reconciled" | "preserved_deliberately";
|
|
1376
1461
|
type: "direct_conflict" | "scope_conflict" | "temporal_conflict" | "definition_conflict" | "evidence_conflict" | "overgeneralization_risk";
|
|
1462
|
+
section_id: string;
|
|
1377
1463
|
created_at: string;
|
|
1378
1464
|
evidence: string;
|
|
1379
|
-
section_id: string;
|
|
1380
1465
|
confidence: "high" | "medium" | "low";
|
|
1381
1466
|
source_ids: string[];
|
|
1382
1467
|
claim_ids: string[];
|
|
@@ -1423,9 +1508,9 @@ declare const ReviewFindingSchema: z.ZodObject<{
|
|
|
1423
1508
|
confidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
1424
1509
|
created_at: z.ZodString;
|
|
1425
1510
|
}, "strip", z.ZodTypeAny, {
|
|
1511
|
+
section_id: string;
|
|
1426
1512
|
created_at: string;
|
|
1427
1513
|
evidence: string;
|
|
1428
|
-
section_id: string;
|
|
1429
1514
|
confidence: "high" | "medium" | "low";
|
|
1430
1515
|
source_ids: string[];
|
|
1431
1516
|
claim_ids: string[];
|
|
@@ -1437,9 +1522,9 @@ declare const ReviewFindingSchema: z.ZodObject<{
|
|
|
1437
1522
|
reviewer: "heuristic" | "ollama-intern";
|
|
1438
1523
|
review_method: string;
|
|
1439
1524
|
}, {
|
|
1525
|
+
section_id: string;
|
|
1440
1526
|
created_at: string;
|
|
1441
1527
|
evidence: string;
|
|
1442
|
-
section_id: string;
|
|
1443
1528
|
confidence: "high" | "medium" | "low";
|
|
1444
1529
|
source_ids: string[];
|
|
1445
1530
|
claim_ids: string[];
|
|
@@ -1497,9 +1582,9 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
|
|
|
1497
1582
|
confidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
1498
1583
|
created_at: z.ZodString;
|
|
1499
1584
|
}, "strip", z.ZodTypeAny, {
|
|
1585
|
+
section_id: string;
|
|
1500
1586
|
created_at: string;
|
|
1501
1587
|
evidence: string;
|
|
1502
|
-
section_id: string;
|
|
1503
1588
|
confidence: "high" | "medium" | "low";
|
|
1504
1589
|
source_ids: string[];
|
|
1505
1590
|
claim_ids: string[];
|
|
@@ -1511,9 +1596,9 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
|
|
|
1511
1596
|
reviewer: "heuristic" | "ollama-intern";
|
|
1512
1597
|
review_method: string;
|
|
1513
1598
|
}, {
|
|
1599
|
+
section_id: string;
|
|
1514
1600
|
created_at: string;
|
|
1515
1601
|
evidence: string;
|
|
1516
|
-
section_id: string;
|
|
1517
1602
|
confidence: "high" | "medium" | "low";
|
|
1518
1603
|
source_ids: string[];
|
|
1519
1604
|
claim_ids: string[];
|
|
@@ -1561,9 +1646,9 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
|
|
|
1561
1646
|
review_method: string;
|
|
1562
1647
|
reviewed_at: string;
|
|
1563
1648
|
findings: {
|
|
1649
|
+
section_id: string;
|
|
1564
1650
|
created_at: string;
|
|
1565
1651
|
evidence: string;
|
|
1566
|
-
section_id: string;
|
|
1567
1652
|
confidence: "high" | "medium" | "low";
|
|
1568
1653
|
source_ids: string[];
|
|
1569
1654
|
claim_ids: string[];
|
|
@@ -1595,9 +1680,9 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
|
|
|
1595
1680
|
review_method: string;
|
|
1596
1681
|
reviewed_at: string;
|
|
1597
1682
|
findings: {
|
|
1683
|
+
section_id: string;
|
|
1598
1684
|
created_at: string;
|
|
1599
1685
|
evidence: string;
|
|
1600
|
-
section_id: string;
|
|
1601
1686
|
confidence: "high" | "medium" | "low";
|
|
1602
1687
|
source_ids: string[];
|
|
1603
1688
|
claim_ids: string[];
|
|
@@ -1926,22 +2011,22 @@ declare const SectionGateResultSchema: z.ZodObject<{
|
|
|
1926
2011
|
independent_publishers: z.ZodNumber;
|
|
1927
2012
|
failed_fetches: z.ZodNumber;
|
|
1928
2013
|
}, "strip", z.ZodTypeAny, {
|
|
2014
|
+
unknown: number;
|
|
1929
2015
|
primary: number;
|
|
1930
2016
|
secondary: number;
|
|
1931
2017
|
forum: number;
|
|
1932
2018
|
benchmark: number;
|
|
1933
2019
|
docs: number;
|
|
1934
|
-
unknown: number;
|
|
1935
2020
|
total: number;
|
|
1936
2021
|
independent_publishers: number;
|
|
1937
2022
|
failed_fetches: number;
|
|
1938
2023
|
}, {
|
|
2024
|
+
unknown: number;
|
|
1939
2025
|
primary: number;
|
|
1940
2026
|
secondary: number;
|
|
1941
2027
|
forum: number;
|
|
1942
2028
|
benchmark: number;
|
|
1943
2029
|
docs: number;
|
|
1944
|
-
unknown: number;
|
|
1945
2030
|
total: number;
|
|
1946
2031
|
independent_publishers: number;
|
|
1947
2032
|
failed_fetches: number;
|
|
@@ -2051,12 +2136,12 @@ declare const SectionGateResultSchema: z.ZodObject<{
|
|
|
2051
2136
|
orphans: number;
|
|
2052
2137
|
};
|
|
2053
2138
|
source_counts: {
|
|
2139
|
+
unknown: number;
|
|
2054
2140
|
primary: number;
|
|
2055
2141
|
secondary: number;
|
|
2056
2142
|
forum: number;
|
|
2057
2143
|
benchmark: number;
|
|
2058
2144
|
docs: number;
|
|
2059
|
-
unknown: number;
|
|
2060
2145
|
total: number;
|
|
2061
2146
|
independent_publishers: number;
|
|
2062
2147
|
failed_fetches: number;
|
|
@@ -2132,12 +2217,12 @@ declare const SectionGateResultSchema: z.ZodObject<{
|
|
|
2132
2217
|
orphans: number;
|
|
2133
2218
|
};
|
|
2134
2219
|
source_counts: {
|
|
2220
|
+
unknown: number;
|
|
2135
2221
|
primary: number;
|
|
2136
2222
|
secondary: number;
|
|
2137
2223
|
forum: number;
|
|
2138
2224
|
benchmark: number;
|
|
2139
2225
|
docs: number;
|
|
2140
|
-
unknown: number;
|
|
2141
2226
|
total: number;
|
|
2142
2227
|
independent_publishers: number;
|
|
2143
2228
|
failed_fetches: number;
|
|
@@ -2377,6 +2462,7 @@ declare function deriveClaimReviews(args: {
|
|
|
2377
2462
|
findings: ReviewFinding[];
|
|
2378
2463
|
reviewer: ReviewerName;
|
|
2379
2464
|
reviewMethod: string;
|
|
2465
|
+
activeSectionWaivers?: SectionScopedWaiver[];
|
|
2380
2466
|
}): ClaimReview[];
|
|
2381
2467
|
|
|
2382
2468
|
declare function renderReviewMarkdown(snapshot: ReviewSnapshot): string;
|
|
@@ -2567,18 +2653,18 @@ declare const ClaimSynthesisDispositionSchema: z.ZodObject<{
|
|
|
2567
2653
|
created_at: z.ZodString;
|
|
2568
2654
|
}, "strip", z.ZodTypeAny, {
|
|
2569
2655
|
status: "parked_not_for_synthesis" | "preserved_for_human_note" | "needs_human_review_excluded" | "out_of_bounds_regression_fixture";
|
|
2656
|
+
section_id: string;
|
|
2570
2657
|
reason: string;
|
|
2571
2658
|
created_at: string;
|
|
2572
|
-
section_id: string;
|
|
2573
2659
|
claim_id: string;
|
|
2574
2660
|
source: string;
|
|
2575
2661
|
decided_by: string;
|
|
2576
2662
|
authorized_by: string;
|
|
2577
2663
|
}, {
|
|
2578
2664
|
status: "parked_not_for_synthesis" | "preserved_for_human_note" | "needs_human_review_excluded" | "out_of_bounds_regression_fixture";
|
|
2665
|
+
section_id: string;
|
|
2579
2666
|
reason: string;
|
|
2580
2667
|
created_at: string;
|
|
2581
|
-
section_id: string;
|
|
2582
2668
|
claim_id: string;
|
|
2583
2669
|
source: string;
|
|
2584
2670
|
decided_by: string;
|
|
@@ -2759,15 +2845,15 @@ declare const WaiverEntrySchema: z.ZodObject<{
|
|
|
2759
2845
|
compensating_controls: z.ZodArray<z.ZodString, "many">;
|
|
2760
2846
|
applied_to: z.ZodString;
|
|
2761
2847
|
}, "strip", z.ZodTypeAny, {
|
|
2848
|
+
scope: "pack" | "gate";
|
|
2762
2849
|
reason: string;
|
|
2763
2850
|
compensating_controls: string[];
|
|
2764
|
-
scope: "pack" | "gate";
|
|
2765
2851
|
family: string;
|
|
2766
2852
|
applied_to: string;
|
|
2767
2853
|
}, {
|
|
2854
|
+
scope: "pack" | "gate";
|
|
2768
2855
|
reason: string;
|
|
2769
2856
|
compensating_controls: string[];
|
|
2770
|
-
scope: "pack" | "gate";
|
|
2771
2857
|
family: string;
|
|
2772
2858
|
applied_to: string;
|
|
2773
2859
|
}>;
|
|
@@ -2789,12 +2875,12 @@ declare const ReviewDecisionCountSchema: z.ZodObject<{
|
|
|
2789
2875
|
decision: z.ZodString;
|
|
2790
2876
|
count: z.ZodNumber;
|
|
2791
2877
|
}, "strip", z.ZodTypeAny, {
|
|
2792
|
-
decision: string;
|
|
2793
2878
|
section_id: string;
|
|
2879
|
+
decision: string;
|
|
2794
2880
|
count: number;
|
|
2795
2881
|
}, {
|
|
2796
|
-
decision: string;
|
|
2797
2882
|
section_id: string;
|
|
2883
|
+
decision: string;
|
|
2798
2884
|
count: number;
|
|
2799
2885
|
}>;
|
|
2800
2886
|
declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
@@ -2961,15 +3047,15 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
|
2961
3047
|
compensating_controls: z.ZodArray<z.ZodString, "many">;
|
|
2962
3048
|
applied_to: z.ZodString;
|
|
2963
3049
|
}, "strip", z.ZodTypeAny, {
|
|
3050
|
+
scope: "pack" | "gate";
|
|
2964
3051
|
reason: string;
|
|
2965
3052
|
compensating_controls: string[];
|
|
2966
|
-
scope: "pack" | "gate";
|
|
2967
3053
|
family: string;
|
|
2968
3054
|
applied_to: string;
|
|
2969
3055
|
}, {
|
|
3056
|
+
scope: "pack" | "gate";
|
|
2970
3057
|
reason: string;
|
|
2971
3058
|
compensating_controls: string[];
|
|
2972
|
-
scope: "pack" | "gate";
|
|
2973
3059
|
family: string;
|
|
2974
3060
|
applied_to: string;
|
|
2975
3061
|
}>, "many">;
|
|
@@ -2991,12 +3077,12 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
|
2991
3077
|
decision: z.ZodString;
|
|
2992
3078
|
count: z.ZodNumber;
|
|
2993
3079
|
}, "strip", z.ZodTypeAny, {
|
|
2994
|
-
decision: string;
|
|
2995
3080
|
section_id: string;
|
|
3081
|
+
decision: string;
|
|
2996
3082
|
count: number;
|
|
2997
3083
|
}, {
|
|
2998
|
-
decision: string;
|
|
2999
3084
|
section_id: string;
|
|
3085
|
+
decision: string;
|
|
3000
3086
|
count: number;
|
|
3001
3087
|
}>, "many">;
|
|
3002
3088
|
recommended_next_actions: z.ZodArray<z.ZodString, "many">;
|
|
@@ -3043,9 +3129,9 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
|
3043
3129
|
}[];
|
|
3044
3130
|
summary: string;
|
|
3045
3131
|
waivers: {
|
|
3132
|
+
scope: "pack" | "gate";
|
|
3046
3133
|
reason: string;
|
|
3047
3134
|
compensating_controls: string[];
|
|
3048
|
-
scope: "pack" | "gate";
|
|
3049
3135
|
family: string;
|
|
3050
3136
|
applied_to: string;
|
|
3051
3137
|
}[];
|
|
@@ -3065,8 +3151,8 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
|
3065
3151
|
synthesis_allowed: boolean;
|
|
3066
3152
|
blocked_claim_ids: string[];
|
|
3067
3153
|
review_decisions: {
|
|
3068
|
-
decision: string;
|
|
3069
3154
|
section_id: string;
|
|
3155
|
+
decision: string;
|
|
3070
3156
|
count: number;
|
|
3071
3157
|
}[];
|
|
3072
3158
|
recommended_next_actions: string[];
|
|
@@ -3112,9 +3198,9 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
|
3112
3198
|
}[];
|
|
3113
3199
|
summary: string;
|
|
3114
3200
|
waivers: {
|
|
3201
|
+
scope: "pack" | "gate";
|
|
3115
3202
|
reason: string;
|
|
3116
3203
|
compensating_controls: string[];
|
|
3117
|
-
scope: "pack" | "gate";
|
|
3118
3204
|
family: string;
|
|
3119
3205
|
applied_to: string;
|
|
3120
3206
|
}[];
|
|
@@ -3133,8 +3219,8 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
|
3133
3219
|
synthesis_allowed: boolean;
|
|
3134
3220
|
blocked_claim_ids: string[];
|
|
3135
3221
|
review_decisions: {
|
|
3136
|
-
decision: string;
|
|
3137
3222
|
section_id: string;
|
|
3223
|
+
decision: string;
|
|
3138
3224
|
count: number;
|
|
3139
3225
|
}[];
|
|
3140
3226
|
recommended_next_actions: string[];
|
|
@@ -3363,16 +3449,16 @@ declare const WaiverDependencySchema: z.ZodObject<{
|
|
|
3363
3449
|
applied_to: z.ZodString;
|
|
3364
3450
|
must_disclose_in: z.ZodEnum<["decision-brief.md", "final-report.md", "both"]>;
|
|
3365
3451
|
}, "strip", z.ZodTypeAny, {
|
|
3452
|
+
scope: "pack" | "gate";
|
|
3366
3453
|
reason: string;
|
|
3367
3454
|
compensating_controls: string[];
|
|
3368
|
-
scope: "pack" | "gate";
|
|
3369
3455
|
family: string;
|
|
3370
3456
|
applied_to: string;
|
|
3371
3457
|
must_disclose_in: "decision-brief.md" | "final-report.md" | "both";
|
|
3372
3458
|
}, {
|
|
3459
|
+
scope: "pack" | "gate";
|
|
3373
3460
|
reason: string;
|
|
3374
3461
|
compensating_controls: string[];
|
|
3375
|
-
scope: "pack" | "gate";
|
|
3376
3462
|
family: string;
|
|
3377
3463
|
applied_to: string;
|
|
3378
3464
|
must_disclose_in: "decision-brief.md" | "final-report.md" | "both";
|
|
@@ -3387,16 +3473,16 @@ declare const AllowedSynthesisInputSchema: z.ZodObject<{
|
|
|
3387
3473
|
source_ids: z.ZodArray<z.ZodString, "many">;
|
|
3388
3474
|
}, "strip", z.ZodTypeAny, {
|
|
3389
3475
|
section_id: string;
|
|
3390
|
-
asserts: string;
|
|
3391
3476
|
scope: string | null;
|
|
3477
|
+
asserts: string;
|
|
3392
3478
|
not: string | null;
|
|
3393
3479
|
claim_id: string;
|
|
3394
3480
|
source_ids: string[];
|
|
3395
3481
|
artifact_path: string;
|
|
3396
3482
|
}, {
|
|
3397
3483
|
section_id: string;
|
|
3398
|
-
asserts: string;
|
|
3399
3484
|
scope: string | null;
|
|
3485
|
+
asserts: string;
|
|
3400
3486
|
not: string | null;
|
|
3401
3487
|
claim_id: string;
|
|
3402
3488
|
source_ids: string[];
|
|
@@ -3408,14 +3494,14 @@ declare const ForbiddenInputSchema: z.ZodObject<{
|
|
|
3408
3494
|
decision: z.ZodString;
|
|
3409
3495
|
reason: z.ZodString;
|
|
3410
3496
|
}, "strip", z.ZodTypeAny, {
|
|
3497
|
+
section_id: string;
|
|
3411
3498
|
reason: string;
|
|
3412
3499
|
decision: string;
|
|
3413
|
-
section_id: string;
|
|
3414
3500
|
claim_id: string;
|
|
3415
3501
|
}, {
|
|
3502
|
+
section_id: string;
|
|
3416
3503
|
reason: string;
|
|
3417
3504
|
decision: string;
|
|
3418
|
-
section_id: string;
|
|
3419
3505
|
claim_id: string;
|
|
3420
3506
|
}>;
|
|
3421
3507
|
declare const CrossSectionMapSchema: z.ZodObject<{
|
|
@@ -3533,16 +3619,16 @@ declare const CrossSectionMapSchema: z.ZodObject<{
|
|
|
3533
3619
|
applied_to: z.ZodString;
|
|
3534
3620
|
must_disclose_in: z.ZodEnum<["decision-brief.md", "final-report.md", "both"]>;
|
|
3535
3621
|
}, "strip", z.ZodTypeAny, {
|
|
3622
|
+
scope: "pack" | "gate";
|
|
3536
3623
|
reason: string;
|
|
3537
3624
|
compensating_controls: string[];
|
|
3538
|
-
scope: "pack" | "gate";
|
|
3539
3625
|
family: string;
|
|
3540
3626
|
applied_to: string;
|
|
3541
3627
|
must_disclose_in: "decision-brief.md" | "final-report.md" | "both";
|
|
3542
3628
|
}, {
|
|
3629
|
+
scope: "pack" | "gate";
|
|
3543
3630
|
reason: string;
|
|
3544
3631
|
compensating_controls: string[];
|
|
3545
|
-
scope: "pack" | "gate";
|
|
3546
3632
|
family: string;
|
|
3547
3633
|
applied_to: string;
|
|
3548
3634
|
must_disclose_in: "decision-brief.md" | "final-report.md" | "both";
|
|
@@ -3558,16 +3644,16 @@ declare const CrossSectionMapSchema: z.ZodObject<{
|
|
|
3558
3644
|
source_ids: z.ZodArray<z.ZodString, "many">;
|
|
3559
3645
|
}, "strip", z.ZodTypeAny, {
|
|
3560
3646
|
section_id: string;
|
|
3561
|
-
asserts: string;
|
|
3562
3647
|
scope: string | null;
|
|
3648
|
+
asserts: string;
|
|
3563
3649
|
not: string | null;
|
|
3564
3650
|
claim_id: string;
|
|
3565
3651
|
source_ids: string[];
|
|
3566
3652
|
artifact_path: string;
|
|
3567
3653
|
}, {
|
|
3568
3654
|
section_id: string;
|
|
3569
|
-
asserts: string;
|
|
3570
3655
|
scope: string | null;
|
|
3656
|
+
asserts: string;
|
|
3571
3657
|
not: string | null;
|
|
3572
3658
|
claim_id: string;
|
|
3573
3659
|
source_ids: string[];
|
|
@@ -3579,14 +3665,14 @@ declare const CrossSectionMapSchema: z.ZodObject<{
|
|
|
3579
3665
|
decision: z.ZodString;
|
|
3580
3666
|
reason: z.ZodString;
|
|
3581
3667
|
}, "strip", z.ZodTypeAny, {
|
|
3668
|
+
section_id: string;
|
|
3582
3669
|
reason: string;
|
|
3583
3670
|
decision: string;
|
|
3584
|
-
section_id: string;
|
|
3585
3671
|
claim_id: string;
|
|
3586
3672
|
}, {
|
|
3673
|
+
section_id: string;
|
|
3587
3674
|
reason: string;
|
|
3588
3675
|
decision: string;
|
|
3589
|
-
section_id: string;
|
|
3590
3676
|
claim_id: string;
|
|
3591
3677
|
}>, "many">;
|
|
3592
3678
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3633,9 +3719,9 @@ declare const CrossSectionMapSchema: z.ZodObject<{
|
|
|
3633
3719
|
contradiction_id: string;
|
|
3634
3720
|
}[];
|
|
3635
3721
|
waiver_dependencies: {
|
|
3722
|
+
scope: "pack" | "gate";
|
|
3636
3723
|
reason: string;
|
|
3637
3724
|
compensating_controls: string[];
|
|
3638
|
-
scope: "pack" | "gate";
|
|
3639
3725
|
family: string;
|
|
3640
3726
|
applied_to: string;
|
|
3641
3727
|
must_disclose_in: "decision-brief.md" | "final-report.md" | "both";
|
|
@@ -3643,17 +3729,17 @@ declare const CrossSectionMapSchema: z.ZodObject<{
|
|
|
3643
3729
|
open_questions: string[];
|
|
3644
3730
|
allowed_synthesis_inputs: {
|
|
3645
3731
|
section_id: string;
|
|
3646
|
-
asserts: string;
|
|
3647
3732
|
scope: string | null;
|
|
3733
|
+
asserts: string;
|
|
3648
3734
|
not: string | null;
|
|
3649
3735
|
claim_id: string;
|
|
3650
3736
|
source_ids: string[];
|
|
3651
3737
|
artifact_path: string;
|
|
3652
3738
|
}[];
|
|
3653
3739
|
forbidden_inputs: {
|
|
3740
|
+
section_id: string;
|
|
3654
3741
|
reason: string;
|
|
3655
3742
|
decision: string;
|
|
3656
|
-
section_id: string;
|
|
3657
3743
|
claim_id: string;
|
|
3658
3744
|
}[];
|
|
3659
3745
|
}, {
|
|
@@ -3700,9 +3786,9 @@ declare const CrossSectionMapSchema: z.ZodObject<{
|
|
|
3700
3786
|
contradiction_id: string;
|
|
3701
3787
|
}[];
|
|
3702
3788
|
waiver_dependencies: {
|
|
3789
|
+
scope: "pack" | "gate";
|
|
3703
3790
|
reason: string;
|
|
3704
3791
|
compensating_controls: string[];
|
|
3705
|
-
scope: "pack" | "gate";
|
|
3706
3792
|
family: string;
|
|
3707
3793
|
applied_to: string;
|
|
3708
3794
|
must_disclose_in: "decision-brief.md" | "final-report.md" | "both";
|
|
@@ -3710,17 +3796,17 @@ declare const CrossSectionMapSchema: z.ZodObject<{
|
|
|
3710
3796
|
open_questions: string[];
|
|
3711
3797
|
allowed_synthesis_inputs: {
|
|
3712
3798
|
section_id: string;
|
|
3713
|
-
asserts: string;
|
|
3714
3799
|
scope: string | null;
|
|
3800
|
+
asserts: string;
|
|
3715
3801
|
not: string | null;
|
|
3716
3802
|
claim_id: string;
|
|
3717
3803
|
source_ids: string[];
|
|
3718
3804
|
artifact_path: string;
|
|
3719
3805
|
}[];
|
|
3720
3806
|
forbidden_inputs: {
|
|
3807
|
+
section_id: string;
|
|
3721
3808
|
reason: string;
|
|
3722
3809
|
decision: string;
|
|
3723
|
-
section_id: string;
|
|
3724
3810
|
claim_id: string;
|
|
3725
3811
|
}[];
|
|
3726
3812
|
}>;
|
|
@@ -3753,6 +3839,8 @@ interface WeakSourceRow {
|
|
|
3753
3839
|
details: string;
|
|
3754
3840
|
evidence_ids: string[];
|
|
3755
3841
|
artifact_path: string;
|
|
3842
|
+
waived?: boolean;
|
|
3843
|
+
waiver_reason?: string;
|
|
3756
3844
|
}
|
|
3757
3845
|
interface UnresolvedContradictionRow {
|
|
3758
3846
|
contradiction_id: string;
|
|
@@ -3775,6 +3863,8 @@ interface SourceDiversityGapRow {
|
|
|
3775
3863
|
section_id: string;
|
|
3776
3864
|
details: string;
|
|
3777
3865
|
evidence_ids: string[];
|
|
3866
|
+
waived?: boolean;
|
|
3867
|
+
waiver_reason?: string;
|
|
3778
3868
|
}
|
|
3779
3869
|
interface SynthesisReadinessRow {
|
|
3780
3870
|
section_id: string;
|
|
@@ -3937,14 +4027,14 @@ declare const OrphanClaimRowSchema: z.ZodObject<{
|
|
|
3937
4027
|
details: z.ZodString;
|
|
3938
4028
|
artifact_path: z.ZodString;
|
|
3939
4029
|
}, "strip", z.ZodTypeAny, {
|
|
3940
|
-
reason: "missing_source_card" | "missing_source_hash" | "missing_evidence_excerpt" | "unresolvable_source_id";
|
|
3941
4030
|
section_id: string;
|
|
4031
|
+
reason: "missing_source_card" | "missing_source_hash" | "missing_evidence_excerpt" | "unresolvable_source_id";
|
|
3942
4032
|
claim_id: string;
|
|
3943
4033
|
artifact_path: string;
|
|
3944
4034
|
details: string;
|
|
3945
4035
|
}, {
|
|
3946
|
-
reason: "missing_source_card" | "missing_source_hash" | "missing_evidence_excerpt" | "unresolvable_source_id";
|
|
3947
4036
|
section_id: string;
|
|
4037
|
+
reason: "missing_source_card" | "missing_source_hash" | "missing_evidence_excerpt" | "unresolvable_source_id";
|
|
3948
4038
|
claim_id: string;
|
|
3949
4039
|
artifact_path: string;
|
|
3950
4040
|
details: string;
|
|
@@ -3970,8 +4060,8 @@ declare const StaleSourceRowSchema: z.ZodObject<{
|
|
|
3970
4060
|
max_source_age_months: number | null;
|
|
3971
4061
|
}>;
|
|
3972
4062
|
}, "strip", z.ZodTypeAny, {
|
|
3973
|
-
reason: "too_old" | "missing_date" | "unparseable_date";
|
|
3974
4063
|
section_id: string;
|
|
4064
|
+
reason: "too_old" | "missing_date" | "unparseable_date";
|
|
3975
4065
|
source_id: string;
|
|
3976
4066
|
publisher: string | null;
|
|
3977
4067
|
artifact_path: string;
|
|
@@ -3982,8 +4072,8 @@ declare const StaleSourceRowSchema: z.ZodObject<{
|
|
|
3982
4072
|
max_source_age_months: number | null;
|
|
3983
4073
|
};
|
|
3984
4074
|
}, {
|
|
3985
|
-
reason: "too_old" | "missing_date" | "unparseable_date";
|
|
3986
4075
|
section_id: string;
|
|
4076
|
+
reason: "too_old" | "missing_date" | "unparseable_date";
|
|
3987
4077
|
source_id: string;
|
|
3988
4078
|
publisher: string | null;
|
|
3989
4079
|
artifact_path: string;
|
|
@@ -4001,14 +4091,14 @@ declare const WeakSourceRowSchema: z.ZodObject<{
|
|
|
4001
4091
|
evidence_ids: z.ZodArray<z.ZodString, "many">;
|
|
4002
4092
|
artifact_path: z.ZodString;
|
|
4003
4093
|
}, "strip", z.ZodTypeAny, {
|
|
4004
|
-
reason: "source_cluster_monopoly" | "low_independent_publishers" | "missing_primary_source" | "excessive_type_imbalance" | "failed_fetches_reducing_floor";
|
|
4005
4094
|
section_id: string;
|
|
4095
|
+
reason: "source_cluster_monopoly" | "low_independent_publishers" | "missing_primary_source" | "excessive_type_imbalance" | "failed_fetches_reducing_floor";
|
|
4006
4096
|
artifact_path: string;
|
|
4007
4097
|
details: string;
|
|
4008
4098
|
evidence_ids: string[];
|
|
4009
4099
|
}, {
|
|
4010
|
-
reason: "source_cluster_monopoly" | "low_independent_publishers" | "missing_primary_source" | "excessive_type_imbalance" | "failed_fetches_reducing_floor";
|
|
4011
4100
|
section_id: string;
|
|
4101
|
+
reason: "source_cluster_monopoly" | "low_independent_publishers" | "missing_primary_source" | "excessive_type_imbalance" | "failed_fetches_reducing_floor";
|
|
4012
4102
|
artifact_path: string;
|
|
4013
4103
|
details: string;
|
|
4014
4104
|
evidence_ids: string[];
|
|
@@ -4045,14 +4135,14 @@ declare const ScopeWideningRiskRowSchema: z.ZodObject<{
|
|
|
4045
4135
|
details: z.ZodString;
|
|
4046
4136
|
artifact_path: z.ZodString;
|
|
4047
4137
|
}, "strip", z.ZodTypeAny, {
|
|
4048
|
-
reason: "overgeneralization_finding" | "scope_null_in_use" | "missing_not_flagged" | "contextual_to_universal_risk";
|
|
4049
4138
|
section_id: string;
|
|
4139
|
+
reason: "overgeneralization_finding" | "scope_null_in_use" | "missing_not_flagged" | "contextual_to_universal_risk";
|
|
4050
4140
|
claim_id: string;
|
|
4051
4141
|
artifact_path: string;
|
|
4052
4142
|
details: string;
|
|
4053
4143
|
}, {
|
|
4054
|
-
reason: "overgeneralization_finding" | "scope_null_in_use" | "missing_not_flagged" | "contextual_to_universal_risk";
|
|
4055
4144
|
section_id: string;
|
|
4145
|
+
reason: "overgeneralization_finding" | "scope_null_in_use" | "missing_not_flagged" | "contextual_to_universal_risk";
|
|
4056
4146
|
claim_id: string;
|
|
4057
4147
|
artifact_path: string;
|
|
4058
4148
|
details: string;
|
|
@@ -4063,13 +4153,13 @@ declare const SourceDiversityGapRowSchema: z.ZodObject<{
|
|
|
4063
4153
|
details: z.ZodString;
|
|
4064
4154
|
evidence_ids: z.ZodArray<z.ZodString, "many">;
|
|
4065
4155
|
}, "strip", z.ZodTypeAny, {
|
|
4066
|
-
reason: "section_publisher_monopoly" | "low_section_publisher_count" | "cross_section_publisher_overlap" | "section_has_no_sources";
|
|
4067
4156
|
section_id: string;
|
|
4157
|
+
reason: "section_publisher_monopoly" | "low_section_publisher_count" | "cross_section_publisher_overlap" | "section_has_no_sources";
|
|
4068
4158
|
details: string;
|
|
4069
4159
|
evidence_ids: string[];
|
|
4070
4160
|
}, {
|
|
4071
|
-
reason: "section_publisher_monopoly" | "low_section_publisher_count" | "cross_section_publisher_overlap" | "section_has_no_sources";
|
|
4072
4161
|
section_id: string;
|
|
4162
|
+
reason: "section_publisher_monopoly" | "low_section_publisher_count" | "cross_section_publisher_overlap" | "section_has_no_sources";
|
|
4073
4163
|
details: string;
|
|
4074
4164
|
evidence_ids: string[];
|
|
4075
4165
|
}>;
|
|
@@ -4230,24 +4320,24 @@ declare const PackAuditPayloadSchema: z.ZodObject<{
|
|
|
4230
4320
|
sections_with_sources: z.ZodNumber;
|
|
4231
4321
|
sections_without_sources: z.ZodNumber;
|
|
4232
4322
|
}, "strip", z.ZodTypeAny, {
|
|
4323
|
+
unknown: number;
|
|
4233
4324
|
primary: number;
|
|
4234
4325
|
secondary: number;
|
|
4235
4326
|
forum: number;
|
|
4236
4327
|
benchmark: number;
|
|
4237
4328
|
docs: number;
|
|
4238
|
-
unknown: number;
|
|
4239
4329
|
total: number;
|
|
4240
4330
|
independent_publishers: number;
|
|
4241
4331
|
failed_fetches: number;
|
|
4242
4332
|
sections_with_sources: number;
|
|
4243
4333
|
sections_without_sources: number;
|
|
4244
4334
|
}, {
|
|
4335
|
+
unknown: number;
|
|
4245
4336
|
primary: number;
|
|
4246
4337
|
secondary: number;
|
|
4247
4338
|
forum: number;
|
|
4248
4339
|
benchmark: number;
|
|
4249
4340
|
docs: number;
|
|
4250
|
-
unknown: number;
|
|
4251
4341
|
total: number;
|
|
4252
4342
|
independent_publishers: number;
|
|
4253
4343
|
failed_fetches: number;
|
|
@@ -4384,12 +4474,12 @@ declare const PackAuditPayloadSchema: z.ZodObject<{
|
|
|
4384
4474
|
not_null: number;
|
|
4385
4475
|
};
|
|
4386
4476
|
source_summary: {
|
|
4477
|
+
unknown: number;
|
|
4387
4478
|
primary: number;
|
|
4388
4479
|
secondary: number;
|
|
4389
4480
|
forum: number;
|
|
4390
4481
|
benchmark: number;
|
|
4391
4482
|
docs: number;
|
|
4392
|
-
unknown: number;
|
|
4393
4483
|
total: number;
|
|
4394
4484
|
independent_publishers: number;
|
|
4395
4485
|
failed_fetches: number;
|
|
@@ -4469,12 +4559,12 @@ declare const PackAuditPayloadSchema: z.ZodObject<{
|
|
|
4469
4559
|
not_null: number;
|
|
4470
4560
|
};
|
|
4471
4561
|
source_summary: {
|
|
4562
|
+
unknown: number;
|
|
4472
4563
|
primary: number;
|
|
4473
4564
|
secondary: number;
|
|
4474
4565
|
forum: number;
|
|
4475
4566
|
benchmark: number;
|
|
4476
4567
|
docs: number;
|
|
4477
|
-
unknown: number;
|
|
4478
4568
|
total: number;
|
|
4479
4569
|
independent_publishers: number;
|
|
4480
4570
|
failed_fetches: number;
|
|
@@ -4951,10 +5041,10 @@ declare const ReviewInvalidationReceiptSchema: z.ZodObject<{
|
|
|
4951
5041
|
}>, "many">;
|
|
4952
5042
|
notes: z.ZodNullable<z.ZodString>;
|
|
4953
5043
|
}, "strip", z.ZodTypeAny, {
|
|
5044
|
+
section_id: string;
|
|
4954
5045
|
reason: string;
|
|
4955
5046
|
notes: string | null;
|
|
4956
5047
|
research_os_version: string;
|
|
4957
|
-
section_id: string;
|
|
4958
5048
|
receipt_id: string;
|
|
4959
5049
|
contract_label: string;
|
|
4960
5050
|
invalidated_at: string;
|
|
@@ -4963,10 +5053,10 @@ declare const ReviewInvalidationReceiptSchema: z.ZodObject<{
|
|
|
4963
5053
|
dst: string;
|
|
4964
5054
|
}[];
|
|
4965
5055
|
}, {
|
|
5056
|
+
section_id: string;
|
|
4966
5057
|
reason: string;
|
|
4967
5058
|
notes: string | null;
|
|
4968
5059
|
research_os_version: string;
|
|
4969
|
-
section_id: string;
|
|
4970
5060
|
receipt_id: string;
|
|
4971
5061
|
contract_label: string;
|
|
4972
5062
|
invalidated_at: string;
|
|
@@ -5445,8 +5535,8 @@ declare const SectionReportSchema: z.ZodObject<{
|
|
|
5445
5535
|
gate_synthesis_eligible: z.ZodNullable<z.ZodBoolean>;
|
|
5446
5536
|
}, "strip", z.ZodTypeAny, {
|
|
5447
5537
|
status: string;
|
|
5448
|
-
research_os_version: string;
|
|
5449
5538
|
section_id: string;
|
|
5539
|
+
research_os_version: string;
|
|
5450
5540
|
extraction: {
|
|
5451
5541
|
claims_per_1k_words: number;
|
|
5452
5542
|
weak_scope_count: number;
|
|
@@ -5506,8 +5596,8 @@ declare const SectionReportSchema: z.ZodObject<{
|
|
|
5506
5596
|
gate_synthesis_eligible: boolean | null;
|
|
5507
5597
|
}, {
|
|
5508
5598
|
status: string;
|
|
5509
|
-
research_os_version: string;
|
|
5510
5599
|
section_id: string;
|
|
5600
|
+
research_os_version: string;
|
|
5511
5601
|
extraction: {
|
|
5512
5602
|
claims_per_1k_words: number;
|
|
5513
5603
|
weak_scope_count: number;
|
|
@@ -5613,20 +5703,20 @@ declare const ClaimTriageSchema: z.ZodObject<{
|
|
|
5613
5703
|
triage_method: z.ZodString;
|
|
5614
5704
|
created_at: z.ZodString;
|
|
5615
5705
|
}, "strip", z.ZodTypeAny, {
|
|
5706
|
+
section_id: string;
|
|
5616
5707
|
reason: string;
|
|
5617
5708
|
created_at: string;
|
|
5618
5709
|
decision: "selected_for_review" | "parked_duplicate" | "parked_overdense_source" | "parked_weak_scope" | "parked_low_value" | "needs_scope_repair" | "needs_human_review";
|
|
5619
|
-
section_id: string;
|
|
5620
5710
|
claim_id: string;
|
|
5621
5711
|
triage_id: string;
|
|
5622
5712
|
rank: number | null;
|
|
5623
5713
|
quality_score: number;
|
|
5624
5714
|
triage_method: string;
|
|
5625
5715
|
}, {
|
|
5716
|
+
section_id: string;
|
|
5626
5717
|
reason: string;
|
|
5627
5718
|
created_at: string;
|
|
5628
5719
|
decision: "selected_for_review" | "parked_duplicate" | "parked_overdense_source" | "parked_weak_scope" | "parked_low_value" | "needs_scope_repair" | "needs_human_review";
|
|
5629
|
-
section_id: string;
|
|
5630
5720
|
claim_id: string;
|
|
5631
5721
|
triage_id: string;
|
|
5632
5722
|
rank: number | null;
|
|
@@ -5658,8 +5748,8 @@ declare const TriageSummarySchema: z.ZodObject<{
|
|
|
5658
5748
|
total: number;
|
|
5659
5749
|
}>, "many">;
|
|
5660
5750
|
}, "strip", z.ZodTypeAny, {
|
|
5661
|
-
research_os_version: string;
|
|
5662
5751
|
section_id: string;
|
|
5752
|
+
research_os_version: string;
|
|
5663
5753
|
triage_method: string;
|
|
5664
5754
|
summary_id: string;
|
|
5665
5755
|
triaged_at: string;
|
|
@@ -5674,8 +5764,8 @@ declare const TriageSummarySchema: z.ZodObject<{
|
|
|
5674
5764
|
total: number;
|
|
5675
5765
|
}[];
|
|
5676
5766
|
}, {
|
|
5677
|
-
research_os_version: string;
|
|
5678
5767
|
section_id: string;
|
|
5768
|
+
research_os_version: string;
|
|
5679
5769
|
triage_method: string;
|
|
5680
5770
|
summary_id: string;
|
|
5681
5771
|
triaged_at: string;
|
|
@@ -5712,14 +5802,14 @@ declare const DiscoveryCandidateSchema: z.ZodObject<{
|
|
|
5712
5802
|
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
5713
5803
|
}, "strip", z.ZodTypeAny, {
|
|
5714
5804
|
status: "candidate" | "rejected" | "approved";
|
|
5715
|
-
reason: string | null;
|
|
5716
5805
|
section_id: string;
|
|
5806
|
+
reason: string | null;
|
|
5717
5807
|
title: string;
|
|
5718
5808
|
url: string;
|
|
5719
5809
|
publisher: string | null;
|
|
5720
5810
|
rank: number;
|
|
5721
5811
|
candidate_id: string;
|
|
5722
|
-
source_type_guess: "
|
|
5812
|
+
source_type_guess: "unknown" | "primary" | "forum" | "benchmark" | "docs" | "article" | "paper" | "standard";
|
|
5723
5813
|
why_relevant: string;
|
|
5724
5814
|
query: string;
|
|
5725
5815
|
discovered_at: string;
|
|
@@ -5732,7 +5822,7 @@ declare const DiscoveryCandidateSchema: z.ZodObject<{
|
|
|
5732
5822
|
publisher: string | null;
|
|
5733
5823
|
rank: number;
|
|
5734
5824
|
candidate_id: string;
|
|
5735
|
-
source_type_guess: "
|
|
5825
|
+
source_type_guess: "unknown" | "primary" | "forum" | "benchmark" | "docs" | "article" | "paper" | "standard";
|
|
5736
5826
|
why_relevant: string;
|
|
5737
5827
|
query: string;
|
|
5738
5828
|
discovered_at: string;
|
|
@@ -5751,8 +5841,8 @@ declare const DiscoverySummarySchema: z.ZodObject<{
|
|
|
5751
5841
|
candidates_rejected_invalid_url: z.ZodNumber;
|
|
5752
5842
|
warnings: z.ZodArray<z.ZodString, "many">;
|
|
5753
5843
|
}, "strip", z.ZodTypeAny, {
|
|
5754
|
-
research_os_version: string;
|
|
5755
5844
|
section_id: string;
|
|
5845
|
+
research_os_version: string;
|
|
5756
5846
|
summary_id: string;
|
|
5757
5847
|
warnings: string[];
|
|
5758
5848
|
query: string;
|
|
@@ -5762,8 +5852,8 @@ declare const DiscoverySummarySchema: z.ZodObject<{
|
|
|
5762
5852
|
candidates_validated: number;
|
|
5763
5853
|
candidates_rejected_invalid_url: number;
|
|
5764
5854
|
}, {
|
|
5765
|
-
research_os_version: string;
|
|
5766
5855
|
section_id: string;
|
|
5856
|
+
research_os_version: string;
|
|
5767
5857
|
summary_id: string;
|
|
5768
5858
|
warnings: string[];
|
|
5769
5859
|
query: string;
|
|
@@ -5920,6 +6010,6 @@ declare class SynthesisNotReadyError extends ResearchOSError {
|
|
|
5920
6010
|
constructor(mode: string);
|
|
5921
6011
|
}
|
|
5922
6012
|
|
|
5923
|
-
declare const RESEARCH_OS_VERSION = "0.3.
|
|
6013
|
+
declare const RESEARCH_OS_VERSION = "0.3.2";
|
|
5924
6014
|
|
|
5925
6015
|
export { type AllowedSynthesisInput, AllowedSynthesisInputSchema, type ApproveOptions, type ApproveResult, type ArchivedArtifact, ArchivedArtifactSchema, type ArtifactHash, ArtifactHashSchema, type AuditDensityOptions, type AuditDensityResult, type HandoffMode as AuditHandoffMode, HandoffModeSchema as AuditHandoffModeSchema, type AuditOptions, type AuditSummary, type CitationCoverage, type Claim, type ClaimCluster, ClaimClusterSchema, type ClaimCounts, type ClaimDensityAudit, ClaimDensityAuditSchema, type ClaimExtractionInput, type ClaimExtractionResult, type ClaimExtractor, type ClaimExtractorAdapter, ClaimExtractorSchema, type ClaimReview, ClaimReviewSchema, ClaimSchema, type ClaimSummary, type ClaimTriage, ClaimTriageSchema, type Confidence, ConfidenceSchema, type Contradiction, ContradictionConfidenceSchema, type ContradictionCounts, type ContradictionDetector, type ContradictionDetectorName, ContradictionDetectorSchema, type ContradictionResolution, ContradictionResolutionSchema, ContradictionSchema, type ContradictionStatus, ContradictionStatusSchema, type ContradictionSummary, type ContradictionType, ContradictionTypeSchema, type CoworkHandoffPayload$1 as CoworkHandoffPayload, CoworkHandoffPayloadSchema, type CrossSectionContradictionRef, CrossSectionContradictionRefSchema, type CrossSectionMap, CrossSectionMapSchema, DEFAULT_PROFILE, type DensityFlag, DensityFlagSchema, type DetectionResult, type DetectorMode, type DiscoverOptions, type DiscoverProposal, type DiscoverProvider, type DiscoverProviderInput, type DiscoverProviderResult, type DiscoverResult, type DiscoveryCandidate, DiscoveryCandidateSchema, type DiscoveryCandidateStatus, DiscoveryCandidateStatusSchema, type DiscoverySummary, DiscoverySummarySchema, type DraftClaim, type DraftContradiction, type DraftFinding, EXCERPT_ID_PATTERN, type Excerpt, type ExcerptDraft, type ExcerptOrigin, ExcerptOriginSchema, ExcerptSchema, type ExportOptions, type ExportSummary, type ExportUrlsOptions, type ExportUrlsResult, type ExtractClaimsOptions, type ExtractClaimsSummary, type ExtractionInput, type ExtractionResult, type Extractor, type ExtractorName, ExtractorNameSchema, FORBIDDEN_ACTIONS_ALWAYS, type FetchReceipt, FetchReceiptSchema, type FindingCategory, FindingCategorySchema, type FindingSeverity, FindingSeveritySchema, type ForbiddenInput, ForbiddenInputSchema, type FreezeOptions, type FreezeReceiptPayload, FreezeReceiptPayloadSchema, type FreezeRefusalPayload, FreezeRefusalPayloadSchema, type FreezeSummary, type FreshnessSummary, type GateCheckResult, GateCheckResultSchema, type GateCheckStatus, GateCheckStatusSchema, type GateConfig, GateConfigSchema, type GateFamily, GateFamilySchema, type GateInput, type GateVerdictEntry, GateVerdictEntrySchema, type GatherOptions, type GatherSummary, type HandoffMode$1 as HandoffMode, HandoffModeSchema$1 as HandoffModeSchema, HandoffNotFoundError, type HandoffOptions, type HandoffSummary, HeuristicClaimExtractor, HeuristicContradictionDetector, HeuristicExtractor, HeuristicReviewer, type IndexBuildOptions, type IndexBuildSummary, IndexNotBuiltError, type IndexQueryOptions, type IndexQuerySummary, type IndexStatus, IndexStatusSchema, type InitOptions, type InitResult, IntakeValidationError, type IntegrityCheck, IntegrityCheckSchema, InvalidSectionIdError, type InvalidateExtractionOptions, type InvalidateExtractionResult, type InvalidateReviewOptions, type InvalidateReviewResult, type InvalidationReceipt, InvalidationReceiptSchema, LlmHeuristicDiscoverProvider, type LoadOrBuildArgs, type LoadOrBuildResult, type MapOptions, type MapSummary, type NearDuplicateCluster, NearDuplicateClusterSchema, NoSourcesGatheredError, NoUrlsProvidedError, OllamaInternClaimExtractor, OllamaInternContradictionDetector, OllamaInternExtractor, OllamaInternReviewer, type OrphanClaimRow, OrphanClaimRowSchema, type OverlapAssessment, OverlapAssessmentSchema, type PackAuditPayload, PackAuditPayloadSchema, PackExistsError, PackNotFoundError, type PackVerdict, PackVerdictSchema, type PairedDraft, type PerSourceDensity, PerSourceDensitySchema, type PrimarySourceWaiver, PrimarySourceWaiverSchema, type PromoteOptions, type PromoteResult, type QueryHit, RESEARCH_OS_VERSION, type ReadinessSummary, type RecordType, type RejectOptions, type RejectResult, type Relevance, RelevanceSchema, ResearchOSError, type ResearchYaml, ResearchYamlSchema, type ResolutionStatus, ResolutionStatusSchema, type ReviewActive, ReviewActiveSchema, ReviewConfidenceSchema, type ReviewDecision, type ReviewDecisionCount, ReviewDecisionCountSchema, ReviewDecisionSchema, type ReviewFinding, ReviewFindingSchema, type ReviewInvalidationReceipt, ReviewInvalidationReceiptSchema, type ReviewSnapshot, ReviewSnapshotSchema, type ReviewState, ReviewStateSchema, type ReviewSummary, type Reviewer, type ReviewerInput, type ReviewerName, ReviewerNameSchema, type ReviewerResult, type RunGateOptions, type RunReviewOptions, type RunReviewSummary, SCHEMA_VERSION, type ScopeIntegritySummary, type ScopeOverlap, ScopeOverlapSchema, type ScopeWideningRiskRow, ScopeWideningRiskRowSchema, type Section, type SectionAcceptedSummary, SectionAcceptedSummarySchema, type SectionAddOptions, type SectionAddResult, SectionExistsError, type SectionGateResult$1 as SectionGateResult, SectionGateResultSchema, type SectionGatesYaml, SectionGatesYamlSchema, SectionNotFoundError, type SectionReport, SectionReportAcceptanceSchema, SectionReportContradictionsSchema, SectionReportExtractionSchema, type SectionReportOptions, type SectionReportResult, SectionReportReviewSchema, SectionReportSchema, SectionReportSourcesSchema, SectionSchema, type SectionState, SectionStateSchema, type SectionStatusChange, SectionStatusChangeSchema, type Severity, SeveritySchema, type SharedSource, SharedSourceSchema, type SourceCard, SourceCardSchema, type SourceCounts, type SourceDiversityGapRow, SourceDiversityGapRowSchema, type SourceFetchPair, type SourceSummary, type SourceType, type SourceTypeGuess, SourceTypeGuessSchema, SourceTypeSchema, type StaleSourceRow, StaleSourceRowSchema, type SyncOptions, type SyncSummary, SynthesisNotReadyError, type SynthesisReadinessRow, SynthesisReadinessRowSchema, TemplateNotFoundError, type TriageDecision, TriageDecisionSchema, type TriageOptions, type TriageRunResult, type TriageSummary, TriageSummarySchema, type UnresolvedContradictionRow, UnresolvedContradictionRowSchema, type Verdict, VerdictSchema, type WaiverApplication, WaiverApplicationSchema, type WaiverDependency, WaiverDependencySchema, type WaiverEntry, WaiverEntrySchema, type WaiverSummary, type WeakSourceRow, WeakSourceRowSchema, type WorkspaceOptions, type WorkspaceSummary, add, aggregate, appendFetchLog, appendSectionSourceId, applySchema, applyWaivers, approve, assessScopeOverlap, audit, auditDensity, build, buildCard, buildExcerptIndex, buildResearchYaml, checkClaimIntegrity, checkContradiction, checkFreshness, checkScopeIntegrity, checkSectionBudget, checkSourceFloor, chunkKeyPoints, chunkRawText, collectUrls, dedupeAndValidate, defaultClaimExtractors, defaultContradictionDetectors, defaultExtractors, defaultReviewers, derive, deriveClaimReviews, deriveCrossSectionMap, discover, evidenceGrounded, exportRepoKnowledge, exportUrls, extract, extractClaimCitations, extractContradictionDisclosures, extractWaiverDisclosures, fetchOnce, freeze, gate, gather, handoff, hasNegation, indexDbPath, init, invalidateExtraction, invalidateReview, isValidProfileName, jaccardSimilarity, ledgerPathFor, loadOrBuildLedger, makeReceiptId, makeSourceId, map, normalizeOllamaHost, openIndexDb, parseUrlsFileText, pickClaimExtractor, pickContradictionDetector, pickExtractor, pickReviewer, profileDir, promote, query, readActiveProfile, readTriagedClaimIds, readUrlsFile, reject, renderCoworkMaster, renderCrossSectionMapMarkdown, renderDecisionBrief, renderFinalReport, renderFreezeReceiptMarkdown, renderFreezeRefusalMarkdown, renderGateMarkdown, renderLedgerForPrompt, renderMarkdownView, renderOrphanClaimsMarkdown, renderPackAuditMarkdown, renderReviewMarkdown, renderScopeWideningRisksMarkdown, renderSourceDiversityGapsMarkdown, renderStaleSourcesMarkdown, renderSynthesisReadinessMarkdown, renderUnresolvedContradictionsMarkdown, renderWeakSourcesMarkdown, renderWorkingReport, reportSection, resolve, review, reviewActivePath, slugify, syncRepoKnowledge, tokenize, triage, workspace, writeActiveProfile, writeSourceCard };
|