@shieldaai/security-watch 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/CONTRIBUTING.md +92 -0
  3. package/LICENSE +202 -0
  4. package/README.md +394 -2
  5. package/SECURITY.md +62 -0
  6. package/dist/assessment.d.ts +16 -0
  7. package/dist/assessment.js +569 -0
  8. package/dist/cli.d.ts +2 -0
  9. package/dist/cli.js +1105 -0
  10. package/dist/config.d.ts +302 -0
  11. package/dist/config.js +381 -0
  12. package/dist/coverage.d.ts +4 -0
  13. package/dist/coverage.js +11 -0
  14. package/dist/cve-now.d.ts +35 -0
  15. package/dist/cve-now.js +1002 -0
  16. package/dist/cvss4.d.ts +3 -0
  17. package/dist/cvss4.js +39 -0
  18. package/dist/delivery.d.ts +58 -0
  19. package/dist/delivery.js +687 -0
  20. package/dist/ecosystems.d.ts +48 -0
  21. package/dist/ecosystems.js +332 -0
  22. package/dist/engine.d.ts +80 -0
  23. package/dist/engine.js +388 -0
  24. package/dist/everyday-words.d.ts +11 -0
  25. package/dist/everyday-words.js +256 -0
  26. package/dist/health.d.ts +24 -0
  27. package/dist/health.js +122 -0
  28. package/dist/heartbeat.d.ts +13 -0
  29. package/dist/heartbeat.js +74 -0
  30. package/dist/http.d.ts +15 -0
  31. package/dist/http.js +280 -0
  32. package/dist/index.d.ts +36 -0
  33. package/dist/index.js +23 -0
  34. package/dist/inventory-evidence.d.ts +10 -0
  35. package/dist/inventory-evidence.js +206 -0
  36. package/dist/inventory.d.ts +276 -0
  37. package/dist/inventory.js +336 -0
  38. package/dist/lock.d.ts +3 -0
  39. package/dist/lock.js +112 -0
  40. package/dist/maintenance.d.ts +48 -0
  41. package/dist/maintenance.js +295 -0
  42. package/dist/matching.d.ts +29 -0
  43. package/dist/matching.js +537 -0
  44. package/dist/models.d.ts +33 -0
  45. package/dist/models.js +932 -0
  46. package/dist/operations.d.ts +17 -0
  47. package/dist/operations.js +117 -0
  48. package/dist/pilot-cases.d.ts +171 -0
  49. package/dist/pilot-cases.js +330 -0
  50. package/dist/pilot-input.d.ts +16 -0
  51. package/dist/pilot-input.js +125 -0
  52. package/dist/pilot-recall.d.ts +166 -0
  53. package/dist/pilot-recall.js +231 -0
  54. package/dist/pilot-report.d.ts +113 -0
  55. package/dist/pilot-report.js +279 -0
  56. package/dist/pilot-responses.d.ts +111 -0
  57. package/dist/pilot-responses.js +159 -0
  58. package/dist/providers.d.ts +209 -0
  59. package/dist/providers.js +459 -0
  60. package/dist/python-version.d.ts +3 -0
  61. package/dist/python-version.js +30 -0
  62. package/dist/rehearsal.d.ts +440 -0
  63. package/dist/rehearsal.js +372 -0
  64. package/dist/sbom.d.ts +13 -0
  65. package/dist/sbom.js +193 -0
  66. package/dist/setup.d.ts +113 -0
  67. package/dist/setup.js +100 -0
  68. package/dist/source-error.d.ts +38 -0
  69. package/dist/source-error.js +71 -0
  70. package/dist/sources.d.ts +3 -0
  71. package/dist/sources.js +1725 -0
  72. package/dist/store.d.ts +96 -0
  73. package/dist/store.js +953 -0
  74. package/dist/types.d.ts +404 -0
  75. package/dist/types.js +1 -0
  76. package/dist/util.d.ts +29 -0
  77. package/dist/util.js +94 -0
  78. package/dist/vendor/cvss4-reference.d.ts +2 -0
  79. package/dist/vendor/cvss4-reference.js +789 -0
  80. package/dist/vendor-sources.d.ts +24 -0
  81. package/dist/vendor-sources.js +56 -0
  82. package/dist/word-filter.d.ts +3 -0
  83. package/dist/word-filter.js +3291 -0
  84. package/docs/alert-outcome-evaluation.md +150 -0
  85. package/docs/compatibility.md +35 -0
  86. package/docs/configuration.md +666 -0
  87. package/docs/cvss-v4-support.md +41 -0
  88. package/docs/offline-advisory-preview.md +114 -0
  89. package/docs/offline-rehearsal.md +44 -0
  90. package/docs/pilot-cases.md +58 -0
  91. package/docs/pilot-recall.md +124 -0
  92. package/docs/pilot-report.md +52 -0
  93. package/docs/validation/alert-outcome-evaluation-2026-11-05.json +2935 -0
  94. package/docs/validation/cvss-v4-reference-parity-2026-11-05.json +93 -0
  95. package/docs/validation/rehearsal-accepted-2026-11-05.json +175 -0
  96. package/docs/validation/rehearsal-unknown-2026-11-05.json +175 -0
  97. package/docs/vendor/cvss-v4-LICENSE.txt +22 -0
  98. package/docs/vendor/cvss-v4-provenance.json +38 -0
  99. package/examples/advisories.json +17 -0
  100. package/examples/agent-advisories-2026.json +145 -0
  101. package/examples/agent-advisory-cases-2026.json +397 -0
  102. package/examples/common-systems.yaml +243 -0
  103. package/examples/libraries.example.txt +18 -0
  104. package/examples/libraries.example.yaml +40 -0
  105. package/examples/library-watch.example.yaml +27 -0
  106. package/examples/offline-advisory-preview.mjs +42 -0
  107. package/examples/rehearsal.json +75 -0
  108. package/examples/security-watch.example.yaml +86 -0
  109. package/examples/systems.example.yaml +35 -0
  110. package/package.json +85 -4
@@ -0,0 +1,30 @@
1
+ import { satisfies, validRange, parse } from '@renovatebot/pep440';
2
+ /** Conservative final-release subset; unsupported syntax never establishes exclusion. */
3
+ export function pythonRangeStatus(version, range) {
4
+ if (!range || range.length > 2_048)
5
+ return 'unknown';
6
+ const finalRelease = (value) => {
7
+ if (value.length > 128 || !/^\d+(?:\.\d+){0,15}$/.test(value))
8
+ return false;
9
+ const parsed = parse(value);
10
+ return Boolean(parsed && parsed.release.every(Number.isSafeInteger));
11
+ };
12
+ if (!finalRelease(version))
13
+ return 'unknown';
14
+ const constraints = range.split(',');
15
+ if (constraints.length > 32)
16
+ return 'unknown';
17
+ for (const constraint of constraints) {
18
+ const match = /^(?:==|!=|<=|>=|<|>)\s*(\d+(?:\.\d+)*)$/.exec(constraint.trim());
19
+ if (!match || !finalRelease(match[1]))
20
+ return 'unknown';
21
+ }
22
+ try {
23
+ if (!validRange(range))
24
+ return 'unknown';
25
+ return satisfies(version, range) ? 'affected' : 'not_affected';
26
+ }
27
+ catch {
28
+ return 'unknown';
29
+ }
30
+ }
@@ -0,0 +1,440 @@
1
+ import { z } from 'zod';
2
+ import { Store } from './store.js';
3
+ import type { Config, Evidence, Inventory } from './types.js';
4
+ declare const sinkSchema: z.ZodEnum<{
5
+ accepted: "accepted";
6
+ disabled: "disabled";
7
+ failed: "failed";
8
+ unknown: "unknown";
9
+ }>;
10
+ declare const scenarioSchema: z.ZodObject<{
11
+ version: z.ZodLiteral<1>;
12
+ frames: z.ZodArray<z.ZodObject<{
13
+ at: z.ZodISODateTime;
14
+ evidence: z.ZodArray<z.ZodObject<{
15
+ id: z.ZodString;
16
+ source: z.ZodString;
17
+ kind: z.ZodEnum<{
18
+ advisory: "advisory";
19
+ health: "health";
20
+ kev: "kev";
21
+ news: "news";
22
+ }>;
23
+ title: z.ZodString;
24
+ url: z.ZodString;
25
+ description: z.ZodString;
26
+ aliases: z.ZodArray<z.ZodString>;
27
+ severity: z.ZodEnum<{
28
+ critical: "critical";
29
+ high: "high";
30
+ low: "low";
31
+ medium: "medium";
32
+ unknown: "unknown";
33
+ }>;
34
+ cvss_v4: z.ZodOptional<z.ZodObject<{
35
+ base_scores: z.ZodArray<z.ZodObject<{
36
+ vector: z.ZodString;
37
+ base_vector: z.ZodString;
38
+ score: z.ZodNumber;
39
+ context_removed: z.ZodBoolean;
40
+ }, z.core.$strict>>;
41
+ unsupported_vectors: z.ZodNumber;
42
+ }, z.core.$strict>>;
43
+ modified_at: z.ZodISODateTime;
44
+ fetched_at: z.ZodISODateTime;
45
+ published_at: z.ZodOptional<z.ZodISODateTime>;
46
+ content_status: z.ZodOptional<z.ZodEnum<{
47
+ excerpt: "excerpt";
48
+ full: "full";
49
+ unavailable: "unavailable";
50
+ }>>;
51
+ packages: z.ZodArray<z.ZodObject<{
52
+ ecosystem: z.ZodString;
53
+ name: z.ZodString;
54
+ range: z.ZodOptional<z.ZodString>;
55
+ versions: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
+ matched_versions: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ fixed: z.ZodOptional<z.ZodString>;
58
+ }, z.core.$strict>>;
59
+ withdrawn: z.ZodOptional<z.ZodBoolean>;
60
+ exploited: z.ZodOptional<z.ZodBoolean>;
61
+ malware: z.ZodOptional<z.ZodBoolean>;
62
+ }, z.core.$strict>>;
63
+ inventory: z.ZodOptional<z.ZodObject<{
64
+ systems: z.ZodArray<z.ZodObject<{
65
+ artifact_kind: z.ZodOptional<z.ZodEnum<{
66
+ application: "application";
67
+ container: "container";
68
+ library: "library";
69
+ mcp_client: "mcp_client";
70
+ mcp_server: "mcp_server";
71
+ model: "model";
72
+ other: "other";
73
+ plugin: "plugin";
74
+ skill: "skill";
75
+ }>>;
76
+ purl: z.ZodOptional<z.ZodString>;
77
+ source_url: z.ZodOptional<z.ZodURL>;
78
+ source_revision: z.ZodOptional<z.ZodString>;
79
+ sbom_ref: z.ZodOptional<z.ZodString>;
80
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
+ ref: z.ZodString;
82
+ component_id: z.ZodOptional<z.ZodString>;
83
+ }, z.core.$strict>>>;
84
+ signature_verification: z.ZodOptional<z.ZodObject<{
85
+ status: z.ZodEnum<{
86
+ failed: "failed";
87
+ unknown: "unknown";
88
+ verified: "verified";
89
+ }>;
90
+ reference: z.ZodString;
91
+ recorded_at: z.ZodISODateTime;
92
+ recorded_by: z.ZodOptional<z.ZodString>;
93
+ }, z.core.$strict>>;
94
+ attestation_verification: z.ZodOptional<z.ZodObject<{
95
+ status: z.ZodEnum<{
96
+ failed: "failed";
97
+ unknown: "unknown";
98
+ verified: "verified";
99
+ }>;
100
+ reference: z.ZodString;
101
+ recorded_at: z.ZodISODateTime;
102
+ recorded_by: z.ZodOptional<z.ZodString>;
103
+ }, z.core.$strict>>;
104
+ remediation_evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ event_id: z.ZodString;
106
+ stage: z.ZodEnum<{
107
+ changed: "changed";
108
+ deployed: "deployed";
109
+ proposed: "proposed";
110
+ }>;
111
+ verification: z.ZodEnum<{
112
+ failed: "failed";
113
+ supported: "supported";
114
+ unknown: "unknown";
115
+ }>;
116
+ reference: z.ZodString;
117
+ recorded_at: z.ZodISODateTime;
118
+ recorded_by: z.ZodOptional<z.ZodString>;
119
+ }, z.core.$strict>>>;
120
+ origin: z.ZodOptional<z.ZodString>;
121
+ digest: z.ZodOptional<z.ZodString>;
122
+ provenance: z.ZodOptional<z.ZodObject<{
123
+ source: z.ZodString;
124
+ reference: z.ZodOptional<z.ZodString>;
125
+ recorded_at: z.ZodOptional<z.ZodISODateTime>;
126
+ }, z.core.$strict>>;
127
+ observation: z.ZodOptional<z.ZodObject<{
128
+ observed_at: z.ZodISODateTime;
129
+ method: z.ZodString;
130
+ reference: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strict>>;
132
+ sbom_dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
133
+ ref: z.ZodString;
134
+ depends_on: z.ZodArray<z.ZodString>;
135
+ }, z.core.$strict>>>;
136
+ configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>>;
137
+ id: z.ZodString;
138
+ name: z.ZodString;
139
+ environment: z.ZodDefault<z.ZodString>;
140
+ owner: z.ZodOptional<z.ZodString>;
141
+ note: z.ZodOptional<z.ZodString>;
142
+ exposure: z.ZodDefault<z.ZodEnum<{
143
+ internal: "internal";
144
+ internet: "internet";
145
+ unknown: "unknown";
146
+ }>>;
147
+ criticality: z.ZodDefault<z.ZodEnum<{
148
+ critical: "critical";
149
+ high: "high";
150
+ low: "low";
151
+ medium: "medium";
152
+ unknown: "unknown";
153
+ }>>;
154
+ updated_at: z.ZodISODateTime;
155
+ components: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
156
+ artifact_kind: z.ZodOptional<z.ZodEnum<{
157
+ application: "application";
158
+ container: "container";
159
+ library: "library";
160
+ mcp_client: "mcp_client";
161
+ mcp_server: "mcp_server";
162
+ model: "model";
163
+ other: "other";
164
+ plugin: "plugin";
165
+ skill: "skill";
166
+ }>>;
167
+ purl: z.ZodOptional<z.ZodString>;
168
+ source_url: z.ZodOptional<z.ZodURL>;
169
+ source_revision: z.ZodOptional<z.ZodString>;
170
+ sbom_ref: z.ZodOptional<z.ZodString>;
171
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
172
+ ref: z.ZodString;
173
+ component_id: z.ZodOptional<z.ZodString>;
174
+ }, z.core.$strict>>>;
175
+ signature_verification: z.ZodOptional<z.ZodObject<{
176
+ status: z.ZodEnum<{
177
+ failed: "failed";
178
+ unknown: "unknown";
179
+ verified: "verified";
180
+ }>;
181
+ reference: z.ZodString;
182
+ recorded_at: z.ZodISODateTime;
183
+ recorded_by: z.ZodOptional<z.ZodString>;
184
+ }, z.core.$strict>>;
185
+ attestation_verification: z.ZodOptional<z.ZodObject<{
186
+ status: z.ZodEnum<{
187
+ failed: "failed";
188
+ unknown: "unknown";
189
+ verified: "verified";
190
+ }>;
191
+ reference: z.ZodString;
192
+ recorded_at: z.ZodISODateTime;
193
+ recorded_by: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strict>>;
195
+ remediation_evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
196
+ event_id: z.ZodString;
197
+ stage: z.ZodEnum<{
198
+ changed: "changed";
199
+ deployed: "deployed";
200
+ proposed: "proposed";
201
+ }>;
202
+ verification: z.ZodEnum<{
203
+ failed: "failed";
204
+ supported: "supported";
205
+ unknown: "unknown";
206
+ }>;
207
+ reference: z.ZodString;
208
+ recorded_at: z.ZodISODateTime;
209
+ recorded_by: z.ZodOptional<z.ZodString>;
210
+ }, z.core.$strict>>>;
211
+ origin: z.ZodOptional<z.ZodString>;
212
+ digest: z.ZodOptional<z.ZodString>;
213
+ provenance: z.ZodOptional<z.ZodObject<{
214
+ source: z.ZodString;
215
+ reference: z.ZodOptional<z.ZodString>;
216
+ recorded_at: z.ZodOptional<z.ZodISODateTime>;
217
+ }, z.core.$strict>>;
218
+ observation: z.ZodOptional<z.ZodObject<{
219
+ observed_at: z.ZodISODateTime;
220
+ method: z.ZodString;
221
+ reference: z.ZodOptional<z.ZodString>;
222
+ }, z.core.$strict>>;
223
+ id: z.ZodString;
224
+ ecosystem: z.ZodString;
225
+ name: z.ZodString;
226
+ version: z.ZodOptional<z.ZodString>;
227
+ note: z.ZodOptional<z.ZodString>;
228
+ }, z.core.$strict>, z.ZodTransform<{
229
+ artifact_kind?: "application" | "container" | "library" | "mcp_client" | "mcp_server" | "model" | "other" | "plugin" | "skill" | undefined;
230
+ purl?: string | undefined;
231
+ source_url?: string | undefined;
232
+ source_revision?: string | undefined;
233
+ sbom_ref?: string | undefined;
234
+ dependencies?: {
235
+ ref: string;
236
+ component_id?: string | undefined;
237
+ }[] | undefined;
238
+ signature_verification?: {
239
+ status: "failed" | "unknown" | "verified";
240
+ reference: string;
241
+ recorded_at: string;
242
+ recorded_by?: string | undefined;
243
+ } | undefined;
244
+ attestation_verification?: {
245
+ status: "failed" | "unknown" | "verified";
246
+ reference: string;
247
+ recorded_at: string;
248
+ recorded_by?: string | undefined;
249
+ } | undefined;
250
+ remediation_evidence?: {
251
+ event_id: string;
252
+ stage: "changed" | "deployed" | "proposed";
253
+ verification: "failed" | "supported" | "unknown";
254
+ reference: string;
255
+ recorded_at: string;
256
+ recorded_by?: string | undefined;
257
+ }[] | undefined;
258
+ origin?: string | undefined;
259
+ digest?: string | undefined;
260
+ provenance?: {
261
+ source: string;
262
+ reference?: string | undefined;
263
+ recorded_at?: string | undefined;
264
+ } | undefined;
265
+ observation?: {
266
+ observed_at: string;
267
+ method: string;
268
+ reference?: string | undefined;
269
+ } | undefined;
270
+ id: string;
271
+ version?: string | undefined;
272
+ note?: string | undefined;
273
+ ecosystem: "Go" | "Hackage" | "Hex" | "Maven" | "NuGet" | "Packagist" | "Pub" | "PyPI" | "RubyGems" | "SwiftURL" | "crates.io" | "npm";
274
+ name: string;
275
+ }, {
276
+ artifact_kind?: "application" | "container" | "library" | "mcp_client" | "mcp_server" | "model" | "other" | "plugin" | "skill" | undefined;
277
+ purl?: string | undefined;
278
+ source_url?: string | undefined;
279
+ source_revision?: string | undefined;
280
+ sbom_ref?: string | undefined;
281
+ dependencies?: {
282
+ ref: string;
283
+ component_id?: string | undefined;
284
+ }[] | undefined;
285
+ signature_verification?: {
286
+ status: "failed" | "unknown" | "verified";
287
+ reference: string;
288
+ recorded_at: string;
289
+ recorded_by?: string | undefined;
290
+ } | undefined;
291
+ attestation_verification?: {
292
+ status: "failed" | "unknown" | "verified";
293
+ reference: string;
294
+ recorded_at: string;
295
+ recorded_by?: string | undefined;
296
+ } | undefined;
297
+ remediation_evidence?: {
298
+ event_id: string;
299
+ stage: "changed" | "deployed" | "proposed";
300
+ verification: "failed" | "supported" | "unknown";
301
+ reference: string;
302
+ recorded_at: string;
303
+ recorded_by?: string | undefined;
304
+ }[] | undefined;
305
+ origin?: string | undefined;
306
+ digest?: string | undefined;
307
+ provenance?: {
308
+ source: string;
309
+ reference?: string | undefined;
310
+ recorded_at?: string | undefined;
311
+ } | undefined;
312
+ observation?: {
313
+ observed_at: string;
314
+ method: string;
315
+ reference?: string | undefined;
316
+ } | undefined;
317
+ id: string;
318
+ ecosystem: string;
319
+ name: string;
320
+ version?: string | undefined;
321
+ note?: string | undefined;
322
+ }>>>>;
323
+ products: z.ZodDefault<z.ZodArray<z.ZodObject<{
324
+ name: z.ZodString;
325
+ version: z.ZodOptional<z.ZodString>;
326
+ keywords: z.ZodDefault<z.ZodArray<z.ZodString>>;
327
+ note: z.ZodOptional<z.ZodString>;
328
+ }, z.core.$strict>>>;
329
+ keywords: z.ZodDefault<z.ZodArray<z.ZodString>>;
330
+ }, z.core.$strict>>;
331
+ import_warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
332
+ name_notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
333
+ }, z.core.$strict>>;
334
+ }, z.core.$strict>>;
335
+ }, z.core.$strict>;
336
+ export type RehearsalScenario = z.infer<typeof scenarioSchema>;
337
+ export type RehearsalSink = z.infer<typeof sinkSchema>;
338
+ /** Errors intentionally omit paths, parser diagnostics and source-controlled strings. */
339
+ export declare function readRehearsal(path: string): RehearsalScenario;
340
+ type Reference = (domain: string, value: unknown) => string;
341
+ declare function projectFrame(store: Store, input: Evidence[], ref: Reference, index: number, now: number, elapsed: number, degraded: boolean): {
342
+ index: number;
343
+ ingest: {
344
+ kind: 'fixture';
345
+ ref: string;
346
+ evidence_refs: string[];
347
+ };
348
+ scan_ms: number;
349
+ degraded: boolean;
350
+ evidence: {
351
+ ref: string;
352
+ kind: "advisory" | "health" | "kev" | "news";
353
+ retained: boolean;
354
+ fetched_age_ms: number | null;
355
+ modified_age_ms: number | null;
356
+ }[];
357
+ findings: {
358
+ ref: string;
359
+ revision: number;
360
+ active: boolean;
361
+ category: import("./types.js").Category;
362
+ applicability: import("./types.js").Applicability;
363
+ source_severity: import("./types.js").Severity;
364
+ priority: import("./types.js").Severity;
365
+ evidence_refs: string[];
366
+ decision: "digest" | "notify" | "record";
367
+ channels: import("./types.js").Channel[];
368
+ }[];
369
+ deliveries: {
370
+ ref: string;
371
+ finding_ref: string;
372
+ revision: number;
373
+ channel: import("./types.js").Channel;
374
+ status: "accepted" | "failed" | "pending" | "sending" | "unknown";
375
+ attempts: number;
376
+ scheduled_in_ms: number;
377
+ }[];
378
+ counters: {
379
+ findings: number;
380
+ active_findings: number;
381
+ decisions: {
382
+ record: number;
383
+ digest: number;
384
+ notify: number;
385
+ };
386
+ delivery_states: {
387
+ pending: number;
388
+ sending: number;
389
+ accepted: number;
390
+ failed: number;
391
+ unknown: number;
392
+ };
393
+ };
394
+ review_backlog: number;
395
+ oldest_review_age_ms: number | null;
396
+ };
397
+ export interface RehearsalReport {
398
+ version: 1;
399
+ mode: 'offline_rehearsal';
400
+ sink: RehearsalSink;
401
+ safety: {
402
+ models_disabled: true;
403
+ sources_disabled: true;
404
+ network_requests: 0;
405
+ external_deliveries: 0;
406
+ live_database_opened: false;
407
+ credentials_loaded: false;
408
+ };
409
+ frames: ReturnType<typeof projectFrame>[];
410
+ summary: ReturnType<typeof projectFrame>['counters'] & {
411
+ sink_calls: number;
412
+ model_requests: 0;
413
+ model_usd: 0;
414
+ };
415
+ recovery: {
416
+ reopened: true;
417
+ backup_verified: true;
418
+ restored: true;
419
+ receipts_preserved: true;
420
+ automatically_dispatched: 0;
421
+ dispatcher_probe: 'passed' | 'disabled';
422
+ terminal_receipts_not_retried: true;
423
+ probe_sink_calls: number;
424
+ };
425
+ unmeasured: {
426
+ source_coverage: null;
427
+ ai_shadow: null;
428
+ urgent_recall: null;
429
+ false_alert_rate: null;
430
+ analyst_latency_ms: null;
431
+ };
432
+ }
433
+ /** Offline rehearsal only: never opens the configured live database or resolves its credentials. */
434
+ export declare function runRehearsal(options: {
435
+ config: Config;
436
+ inventory: Inventory;
437
+ scenario: RehearsalScenario;
438
+ sink?: RehearsalSink;
439
+ }): Promise<RehearsalReport>;
440
+ export {};