agent-inspect 1.6.0 → 1.8.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 (44) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +12 -5
  3. package/docs/ADAPTER-CONFORMANCE.md +39 -0
  4. package/docs/ADAPTERS.md +194 -1
  5. package/docs/API.md +171 -10
  6. package/docs/CLI.md +154 -6
  7. package/docs/KNOWN-ISSUES.md +9 -0
  8. package/docs/LIMITATIONS.md +14 -0
  9. package/docs/SCHEMA.md +2 -1
  10. package/package.json +13 -2
  11. package/packages/cli/dist/index.cjs +2057 -33
  12. package/packages/cli/dist/index.cjs.map +1 -1
  13. package/packages/cli/dist/index.mjs +2057 -33
  14. package/packages/cli/dist/index.mjs.map +1 -1
  15. package/packages/core/dist/advanced.d.cts +4 -4
  16. package/packages/core/dist/advanced.d.ts +4 -4
  17. package/packages/core/dist/checks.cjs +1535 -0
  18. package/packages/core/dist/checks.cjs.map +1 -0
  19. package/packages/core/dist/checks.d.cts +585 -0
  20. package/packages/core/dist/checks.d.ts +585 -0
  21. package/packages/core/dist/checks.mjs +1512 -0
  22. package/packages/core/dist/checks.mjs.map +1 -0
  23. package/packages/core/dist/diff.d.cts +3 -3
  24. package/packages/core/dist/diff.d.ts +3 -3
  25. package/packages/core/dist/exporters.d.cts +3 -3
  26. package/packages/core/dist/exporters.d.ts +3 -3
  27. package/packages/core/dist/index.d.cts +6 -6
  28. package/packages/core/dist/index.d.ts +6 -6
  29. package/packages/core/dist/{inspect-event-Des4JDHo.d.cts → inspect-event-CevRYp58.d.cts} +1 -1
  30. package/packages/core/dist/{inspect-event-Des4JDHo.d.ts → inspect-event-CevRYp58.d.ts} +1 -1
  31. package/packages/core/dist/{log-config-C1GcJPIM.d.ts → log-config-BPHS4Sds.d.ts} +1 -1
  32. package/packages/core/dist/{log-config-BnH8Ykcb.d.cts → log-config-DanPV3P9.d.cts} +1 -1
  33. package/packages/core/dist/logs.d.cts +3 -3
  34. package/packages/core/dist/logs.d.ts +3 -3
  35. package/packages/core/dist/{persisted-inspect-event-DiFto0K2.d.ts → persisted-inspect-event-Cw7TeYGr.d.ts} +1 -1
  36. package/packages/core/dist/{persisted-inspect-event-0kaRADsp.d.cts → persisted-inspect-event-DHPfzUd8.d.cts} +1 -1
  37. package/packages/core/dist/persisted.d.cts +5 -5
  38. package/packages/core/dist/persisted.d.ts +5 -5
  39. package/packages/core/dist/readers.d.cts +2 -2
  40. package/packages/core/dist/readers.d.ts +2 -2
  41. package/packages/core/dist/{types-tSix7tfv.d.ts → types-Ap9uMdx_.d.ts} +1 -1
  42. package/packages/core/dist/{types-DB8jB6Jg.d.cts → types-B2-BU5CS.d.cts} +1 -1
  43. package/packages/core/dist/writers.d.cts +2 -2
  44. package/packages/core/dist/writers.d.ts +2 -2
@@ -0,0 +1,585 @@
1
+ import { TraceReadResult, TraceReadWarning } from './readers.js';
2
+ import { a as InspectRunTree, b as InspectNode, A as AttributionConfidence } from './inspect-event-CevRYp58.js';
3
+ import { P as PersistedInspectEvent } from './persisted-inspect-event-Cw7TeYGr.js';
4
+
5
+ /**
6
+ * Experimental trace-check finding severity.
7
+ *
8
+ * @experimental Available through `agent-inspect/checks`; the checks API may
9
+ * evolve during the v1.x experimental period.
10
+ */
11
+ type TraceCheckSeverity = "error" | "warning" | "info";
12
+ /**
13
+ * Experimental trace-check rule category.
14
+ *
15
+ * @experimental Available through `agent-inspect/checks`; the checks API may
16
+ * evolve during the v1.x experimental period.
17
+ */
18
+ type TraceCheckRuleCategory = "run" | "tool" | "llm" | "structure" | "baseline" | "safety" | "reader";
19
+ /**
20
+ * Experimental trace-check finding status.
21
+ *
22
+ * @experimental Available through `agent-inspect/checks`; the checks API may
23
+ * evolve during the v1.x experimental period.
24
+ */
25
+ type TraceCheckFindingStatus = "pass" | "fail" | "warning";
26
+ /**
27
+ * Experimental trace-check aggregate status.
28
+ *
29
+ * @experimental Available through `agent-inspect/checks`; the checks API may
30
+ * evolve during the v1.x experimental period.
31
+ */
32
+ type TraceCheckStatus = "pass" | "fail" | "error";
33
+ /**
34
+ * Experimental stable diagnostic code for check execution and input errors.
35
+ *
36
+ * @experimental Available through `agent-inspect/checks`; the checks API may
37
+ * evolve during the v1.x experimental period.
38
+ */
39
+ type TraceCheckDiagnosticCode = "AI_CHECK_INVALID_ARGUMENTS" | "AI_CHECK_INVALID_CONFIG" | "AI_CHECK_CONFIG_LOAD_FAILED" | "AI_CHECK_TRACE_UNREADABLE" | "AI_CHECK_UNSUPPORTED_FORMAT" | "AI_CHECK_AMBIGUOUS_FORMAT" | "AI_CHECK_RUN_SELECTION_REQUIRED" | "AI_CHECK_BASELINE_UNREADABLE" | "AI_CHECK_BASELINE_INCOMPATIBLE" | "AI_CHECK_RULE_FAILED" | "AI_CHECK_INTERNAL_ERROR";
40
+ /**
41
+ * Experimental evidence pointing at trace data relevant to a finding.
42
+ *
43
+ * Evidence intentionally identifies runs/events/spans and bounded paths rather
44
+ * than embedding raw prompts, outputs, request bodies, headers, or tool payloads.
45
+ *
46
+ * @experimental Available through `agent-inspect/checks`; the checks API may
47
+ * evolve during the v1.x experimental period.
48
+ */
49
+ interface TraceCheckEvidence {
50
+ runId?: string;
51
+ eventId?: string;
52
+ parentId?: string;
53
+ traceId?: string;
54
+ spanId?: string;
55
+ kind?: string;
56
+ name?: string;
57
+ status?: string;
58
+ path?: string;
59
+ }
60
+ /**
61
+ * Experimental finding emitted by a trace-check rule.
62
+ *
63
+ * @experimental Available through `agent-inspect/checks`; the checks API may
64
+ * evolve during the v1.x experimental period.
65
+ */
66
+ interface TraceCheckFinding {
67
+ ruleId: string;
68
+ severity: TraceCheckSeverity;
69
+ status: TraceCheckFindingStatus;
70
+ message: string;
71
+ expected?: unknown;
72
+ actual?: unknown;
73
+ evidence: TraceCheckEvidence[];
74
+ }
75
+ /**
76
+ * Experimental diagnostic emitted when check execution cannot complete normally.
77
+ *
78
+ * @experimental Available through `agent-inspect/checks`; the checks API may
79
+ * evolve during the v1.x experimental period.
80
+ */
81
+ interface TraceCheckDiagnostic {
82
+ code: TraceCheckDiagnosticCode;
83
+ message: string;
84
+ severity: TraceCheckSeverity;
85
+ ruleId?: string;
86
+ }
87
+ /**
88
+ * Experimental input projection for trace checks.
89
+ *
90
+ * The `read` value must come from `agent-inspect/readers` or an equivalent
91
+ * already-normalized `TraceReadResult`. The checks engine does not read files
92
+ * or reparse source payloads.
93
+ *
94
+ * @experimental Available through `agent-inspect/checks`; the checks API may
95
+ * evolve during the v1.x experimental period.
96
+ */
97
+ interface TraceCheckInput {
98
+ read: TraceReadResult;
99
+ selectedRun?: InspectRunTree;
100
+ sourceLabel?: string;
101
+ }
102
+ /**
103
+ * Experimental normalized facts available to trace-check rules.
104
+ *
105
+ * @experimental Available through `agent-inspect/checks`; the checks API may
106
+ * evolve during the v1.x experimental period.
107
+ */
108
+ interface TraceCheckFacts {
109
+ format: string;
110
+ runs: readonly InspectRunTree[];
111
+ events: readonly PersistedInspectEvent[];
112
+ readerWarnings: readonly TraceReadWarning[];
113
+ unsupportedFields: readonly string[];
114
+ sourceFiles: readonly string[];
115
+ nodesByEventId: ReadonlyMap<string, InspectNode>;
116
+ childrenByParentId: ReadonlyMap<string, readonly InspectNode[]>;
117
+ rootNodes: readonly InspectNode[];
118
+ }
119
+ /**
120
+ * Experimental rule evaluation context.
121
+ *
122
+ * @experimental Available through `agent-inspect/checks`; the checks API may
123
+ * evolve during the v1.x experimental period.
124
+ */
125
+ interface TraceCheckContext extends TraceCheckFacts {
126
+ selectedRun?: InspectRunTree;
127
+ sourceLabel?: string;
128
+ }
129
+ /**
130
+ * Experimental trace-check rule definition.
131
+ *
132
+ * Rules are synchronous and pure: they receive normalized facts and return
133
+ * findings without reading files, mutating input, or performing network I/O.
134
+ *
135
+ * @experimental Available through `agent-inspect/checks`; the checks API may
136
+ * evolve during the v1.x experimental period.
137
+ */
138
+ interface TraceCheckRule {
139
+ id: string;
140
+ category: TraceCheckRuleCategory;
141
+ defaultSeverity: TraceCheckSeverity;
142
+ evaluate(context: TraceCheckContext): readonly TraceCheckFinding[];
143
+ }
144
+ /**
145
+ * Experimental options for `runTraceChecks`.
146
+ *
147
+ * @experimental Available through `agent-inspect/checks`; the checks API may
148
+ * evolve during the v1.x experimental period.
149
+ */
150
+ interface RunTraceChecksOptions {
151
+ rules?: readonly TraceCheckRule[];
152
+ select?: readonly string[];
153
+ runId?: string;
154
+ }
155
+ /**
156
+ * Experimental options for the built-in run status rule.
157
+ *
158
+ * @experimental Available through `agent-inspect/checks`; the checks API may
159
+ * evolve during the v1.x experimental period.
160
+ */
161
+ interface RunStatusRuleOptions {
162
+ expected?: "ok" | "error" | "running";
163
+ allowIncomplete?: boolean;
164
+ }
165
+ /**
166
+ * Experimental options for the built-in run duration rule.
167
+ *
168
+ * @experimental Available through `agent-inspect/checks`; the checks API may
169
+ * evolve during the v1.x experimental period.
170
+ */
171
+ interface RunDurationRuleOptions {
172
+ maxDurationMs: number;
173
+ }
174
+ /**
175
+ * Experimental options for the built-in event count rule.
176
+ *
177
+ * @experimental Available through `agent-inspect/checks`; the checks API may
178
+ * evolve during the v1.x experimental period.
179
+ */
180
+ interface RunEventCountRuleOptions {
181
+ kind?: PersistedInspectEvent["kind"];
182
+ min?: number;
183
+ max?: number;
184
+ }
185
+ /**
186
+ * Experimental options for the built-in run depth rule.
187
+ *
188
+ * @experimental Available through `agent-inspect/checks`; the checks API may
189
+ * evolve during the v1.x experimental period.
190
+ */
191
+ interface RunDepthRuleOptions {
192
+ maxDepth: number;
193
+ }
194
+ /**
195
+ * Experimental options for the built-in tool usage rule.
196
+ *
197
+ * @experimental Available through `agent-inspect/checks`; the checks API may
198
+ * evolve during the v1.x experimental period.
199
+ */
200
+ interface ToolUsageRuleOptions {
201
+ required?: readonly string[];
202
+ forbidden?: readonly string[];
203
+ allowed?: readonly string[];
204
+ minCount?: number;
205
+ maxCount?: number;
206
+ }
207
+ /**
208
+ * Experimental options for the built-in tool ordering rule.
209
+ *
210
+ * @experimental Available through `agent-inspect/checks`; the checks API may
211
+ * evolve during the v1.x experimental period.
212
+ */
213
+ interface ToolOrderingRuleOptions {
214
+ before: string;
215
+ after: string;
216
+ }
217
+ /**
218
+ * Experimental options for the built-in tool failure rule.
219
+ *
220
+ * @experimental Available through `agent-inspect/checks`; the checks API may
221
+ * evolve during the v1.x experimental period.
222
+ */
223
+ interface ToolFailureRuleOptions {
224
+ maxFailures?: number;
225
+ maxRetries?: number;
226
+ }
227
+ /**
228
+ * Experimental options for the built-in LLM usage rule.
229
+ *
230
+ * @experimental Available through `agent-inspect/checks`; the checks API may
231
+ * evolve during the v1.x experimental period.
232
+ */
233
+ interface LlmUsageRuleOptions {
234
+ allowedModels?: readonly string[];
235
+ allowedProviders?: readonly string[];
236
+ maxCalls?: number;
237
+ maxInputTokens?: number;
238
+ maxOutputTokens?: number;
239
+ maxTotalTokens?: number;
240
+ maxCachedTokens?: number;
241
+ finishReasons?: readonly string[];
242
+ }
243
+ /**
244
+ * Experimental options for the built-in structure incomplete rule.
245
+ *
246
+ * @experimental Available through `agent-inspect/checks`; the checks API may
247
+ * evolve during the v1.x experimental period.
248
+ */
249
+ interface StructureIncompleteRuleOptions {
250
+ allowRunning?: boolean;
251
+ requireEndedAtForStarted?: boolean;
252
+ }
253
+ /**
254
+ * Experimental options for the built-in structure orphan rule.
255
+ *
256
+ * @experimental Available through `agent-inspect/checks`; the checks API may
257
+ * evolve during the v1.x experimental period.
258
+ */
259
+ interface StructureOrphanRuleOptions {
260
+ allowMarkedUnresolved?: boolean;
261
+ }
262
+ /**
263
+ * Experimental options for the built-in structure relationship rule.
264
+ *
265
+ * @experimental Available through `agent-inspect/checks`; the checks API may
266
+ * evolve during the v1.x experimental period.
267
+ */
268
+ interface StructureRelationshipRuleOptions {
269
+ minConfidence?: AttributionConfidence;
270
+ requireParentBeforeChild?: boolean;
271
+ requireTraceParentSpan?: boolean;
272
+ }
273
+ /**
274
+ * Experimental options for the built-in structure parallel-width rule.
275
+ *
276
+ * @experimental Available through `agent-inspect/checks`; the checks API may
277
+ * evolve during the v1.x experimental period.
278
+ */
279
+ interface StructureParallelWidthRuleOptions {
280
+ maxChildren?: number;
281
+ maxConcurrent?: number;
282
+ }
283
+ /**
284
+ * Experimental options shared by built-in signal rules.
285
+ *
286
+ * @experimental Available through `agent-inspect/checks`; the checks API may
287
+ * evolve during the v1.x experimental period.
288
+ */
289
+ interface TraceSignalRuleOptions {
290
+ required?: readonly string[];
291
+ forbidden?: readonly string[];
292
+ allowed?: readonly string[];
293
+ minCount?: number;
294
+ maxCount?: number;
295
+ }
296
+ /**
297
+ * Experimental options for the built-in retrieval signal rule.
298
+ *
299
+ * @experimental Available through `agent-inspect/checks`; the checks API may
300
+ * evolve during the v1.x experimental period.
301
+ */
302
+ interface RetrievalRuleOptions extends TraceSignalRuleOptions {
303
+ }
304
+ /**
305
+ * Experimental options for the built-in guardrail signal rule.
306
+ *
307
+ * @experimental Available through `agent-inspect/checks`; the checks API may
308
+ * evolve during the v1.x experimental period.
309
+ */
310
+ interface GuardrailRuleOptions extends TraceSignalRuleOptions {
311
+ }
312
+ /**
313
+ * Experimental options for the built-in decision signal rule.
314
+ *
315
+ * @experimental Available through `agent-inspect/checks`; the checks API may
316
+ * evolve during the v1.x experimental period.
317
+ */
318
+ interface DecisionRuleOptions extends TraceSignalRuleOptions {
319
+ }
320
+ /**
321
+ * Experimental options for the built-in safety redaction rule.
322
+ *
323
+ * @experimental Available through `agent-inspect/checks`; the checks API may
324
+ * evolve during the v1.x experimental period.
325
+ */
326
+ interface SafetyRedactionRuleOptions {
327
+ sensitiveKeys?: readonly string[];
328
+ redactedMarkers?: readonly string[];
329
+ maxFindings?: number;
330
+ }
331
+ /**
332
+ * Experimental options for the built-in raw content path rule.
333
+ *
334
+ * @experimental Available through `agent-inspect/checks`; the checks API may
335
+ * evolve during the v1.x experimental period.
336
+ */
337
+ interface SafetyRawContentRuleOptions {
338
+ forbiddenKeys?: readonly string[];
339
+ includeSummaries?: boolean;
340
+ maxFindings?: number;
341
+ }
342
+ /**
343
+ * Experimental secret pattern used by the built-in secret safety rule.
344
+ *
345
+ * @experimental Available through `agent-inspect/checks`; the checks API may
346
+ * evolve during the v1.x experimental period.
347
+ */
348
+ interface SafetySecretPattern {
349
+ id: string;
350
+ pattern: RegExp;
351
+ }
352
+ /**
353
+ * Experimental options for the built-in secret pattern safety rule.
354
+ *
355
+ * @experimental Available through `agent-inspect/checks`; the checks API may
356
+ * evolve during the v1.x experimental period.
357
+ */
358
+ interface SafetySecretPatternRuleOptions {
359
+ patterns?: readonly SafetySecretPattern[];
360
+ maxStringLength?: number;
361
+ maxFindings?: number;
362
+ }
363
+ /**
364
+ * Experimental options for the built-in oversized attribute safety rule.
365
+ *
366
+ * @experimental Available through `agent-inspect/checks`; the checks API may
367
+ * evolve during the v1.x experimental period.
368
+ */
369
+ interface SafetyOversizedAttributeRuleOptions {
370
+ maxStringLength?: number;
371
+ maxArrayLength?: number;
372
+ maxObjectKeys?: number;
373
+ maxSerializedBytes?: number;
374
+ maxFindings?: number;
375
+ }
376
+ /**
377
+ * Experimental options for the built-in baseline regression rule.
378
+ *
379
+ * The baseline must already be normalized through `agent-inspect/readers` or an
380
+ * equivalent `TraceReadResult`; this rule does not read files or parse traces.
381
+ * `durationToleranceMs` defaults to `0`, meaning exact duration comparison.
382
+ *
383
+ * @experimental Available through `agent-inspect/checks`; the checks API may
384
+ * evolve during the v1.x experimental period.
385
+ */
386
+ interface BaselineRegressionRuleOptions {
387
+ baseline: TraceCheckInput;
388
+ baselineRunId?: string;
389
+ durationToleranceMs?: number;
390
+ compareFormat?: boolean;
391
+ }
392
+ /**
393
+ * Experimental aggregate counts for trace-check results.
394
+ *
395
+ * @experimental Available through `agent-inspect/checks`; the checks API may
396
+ * evolve during the v1.x experimental period.
397
+ */
398
+ interface TraceCheckSummary {
399
+ passed: number;
400
+ failed: number;
401
+ warnings: number;
402
+ errors: number;
403
+ }
404
+ /**
405
+ * Experimental trace-check result.
406
+ *
407
+ * `status: "fail"` means rules ran and at least one error-severity finding
408
+ * failed. `status: "error"` means execution could not complete because of
409
+ * invalid input, invalid rule selection, or a thrown rule error.
410
+ *
411
+ * @experimental Available through `agent-inspect/checks`; the checks API may
412
+ * evolve during the v1.x experimental period.
413
+ */
414
+ interface TraceCheckResult {
415
+ ok: boolean;
416
+ status: TraceCheckStatus;
417
+ format: string;
418
+ runId?: string;
419
+ summary: TraceCheckSummary;
420
+ findings: TraceCheckFinding[];
421
+ diagnostics: TraceCheckDiagnostic[];
422
+ }
423
+ /**
424
+ * Create the experimental built-in run status rule.
425
+ *
426
+ * @experimental Available through `agent-inspect/checks`; the checks API may
427
+ * evolve during the v1.x experimental period.
428
+ */
429
+ declare function createRunStatusRule(options?: RunStatusRuleOptions): TraceCheckRule;
430
+ /**
431
+ * Create the experimental built-in run duration rule.
432
+ *
433
+ * @experimental Available through `agent-inspect/checks`; the checks API may
434
+ * evolve during the v1.x experimental period.
435
+ */
436
+ declare function createRunDurationRule(options: RunDurationRuleOptions): TraceCheckRule;
437
+ /**
438
+ * Create the experimental built-in event count rule.
439
+ *
440
+ * @experimental Available through `agent-inspect/checks`; the checks API may
441
+ * evolve during the v1.x experimental period.
442
+ */
443
+ declare function createRunEventCountRule(options: RunEventCountRuleOptions): TraceCheckRule;
444
+ /**
445
+ * Create the experimental built-in run depth rule.
446
+ *
447
+ * @experimental Available through `agent-inspect/checks`; the checks API may
448
+ * evolve during the v1.x experimental period.
449
+ */
450
+ declare function createRunDepthRule(options: RunDepthRuleOptions): TraceCheckRule;
451
+ /**
452
+ * Create the experimental built-in tool usage rule.
453
+ *
454
+ * @experimental Available through `agent-inspect/checks`; the checks API may
455
+ * evolve during the v1.x experimental period.
456
+ */
457
+ declare function createToolUsageRule(options: ToolUsageRuleOptions): TraceCheckRule;
458
+ /**
459
+ * Create the experimental built-in tool ordering rule.
460
+ *
461
+ * @experimental Available through `agent-inspect/checks`; the checks API may
462
+ * evolve during the v1.x experimental period.
463
+ */
464
+ declare function createToolOrderingRule(options: ToolOrderingRuleOptions): TraceCheckRule;
465
+ /**
466
+ * Create the experimental built-in tool failure/retry rule.
467
+ *
468
+ * @experimental Available through `agent-inspect/checks`; the checks API may
469
+ * evolve during the v1.x experimental period.
470
+ */
471
+ declare function createToolFailureRule(options: ToolFailureRuleOptions): TraceCheckRule;
472
+ /**
473
+ * Create the experimental built-in LLM usage rule.
474
+ *
475
+ * @experimental Available through `agent-inspect/checks`; the checks API may
476
+ * evolve during the v1.x experimental period.
477
+ */
478
+ declare function createLlmUsageRule(options: LlmUsageRuleOptions): TraceCheckRule;
479
+ /**
480
+ * Create the experimental built-in structure incomplete rule.
481
+ *
482
+ * @experimental Available through `agent-inspect/checks`; the checks API may
483
+ * evolve during the v1.x experimental period.
484
+ */
485
+ declare function createStructureIncompleteRule(options?: StructureIncompleteRuleOptions): TraceCheckRule;
486
+ /**
487
+ * Create the experimental built-in structure orphan rule.
488
+ *
489
+ * @experimental Available through `agent-inspect/checks`; the checks API may
490
+ * evolve during the v1.x experimental period.
491
+ */
492
+ declare function createStructureOrphanRule(options?: StructureOrphanRuleOptions): TraceCheckRule;
493
+ /**
494
+ * Create the experimental built-in structure cycle rule.
495
+ *
496
+ * @experimental Available through `agent-inspect/checks`; the checks API may
497
+ * evolve during the v1.x experimental period.
498
+ */
499
+ declare function createStructureCycleRule(): TraceCheckRule;
500
+ /**
501
+ * Create the experimental built-in structure relationship rule.
502
+ *
503
+ * @experimental Available through `agent-inspect/checks`; the checks API may
504
+ * evolve during the v1.x experimental period.
505
+ */
506
+ declare function createStructureRelationshipRule(options?: StructureRelationshipRuleOptions): TraceCheckRule;
507
+ /**
508
+ * Create the experimental built-in structure parallel-width rule.
509
+ *
510
+ * @experimental Available through `agent-inspect/checks`; the checks API may
511
+ * evolve during the v1.x experimental period.
512
+ */
513
+ declare function createStructureParallelWidthRule(options: StructureParallelWidthRuleOptions): TraceCheckRule;
514
+ /**
515
+ * Create the experimental built-in retrieval signal rule.
516
+ *
517
+ * @experimental Available through `agent-inspect/checks`; the checks API may
518
+ * evolve during the v1.x experimental period.
519
+ */
520
+ declare function createRetrievalRule(options: RetrievalRuleOptions): TraceCheckRule;
521
+ /**
522
+ * Create the experimental built-in guardrail signal rule.
523
+ *
524
+ * @experimental Available through `agent-inspect/checks`; the checks API may
525
+ * evolve during the v1.x experimental period.
526
+ */
527
+ declare function createGuardrailRule(options: GuardrailRuleOptions): TraceCheckRule;
528
+ /**
529
+ * Create the experimental built-in decision signal rule.
530
+ *
531
+ * @experimental Available through `agent-inspect/checks`; the checks API may
532
+ * evolve during the v1.x experimental period.
533
+ */
534
+ declare function createDecisionRule(options: DecisionRuleOptions): TraceCheckRule;
535
+ /**
536
+ * Create the experimental built-in safety redaction rule.
537
+ *
538
+ * @experimental Available through `agent-inspect/checks`; the checks API may
539
+ * evolve during the v1.x experimental period.
540
+ */
541
+ declare function createSafetyRedactionRule(options?: SafetyRedactionRuleOptions): TraceCheckRule;
542
+ /**
543
+ * Create the experimental built-in raw content path safety rule.
544
+ *
545
+ * @experimental Available through `agent-inspect/checks`; the checks API may
546
+ * evolve during the v1.x experimental period.
547
+ */
548
+ declare function createSafetyRawContentRule(options?: SafetyRawContentRuleOptions): TraceCheckRule;
549
+ /**
550
+ * Create the experimental built-in secret pattern safety rule.
551
+ *
552
+ * @experimental Available through `agent-inspect/checks`; the checks API may
553
+ * evolve during the v1.x experimental period.
554
+ */
555
+ declare function createSafetySecretPatternRule(options?: SafetySecretPatternRuleOptions): TraceCheckRule;
556
+ /**
557
+ * Create the experimental built-in oversized attribute safety rule.
558
+ *
559
+ * @experimental Available through `agent-inspect/checks`; the checks API may
560
+ * evolve during the v1.x experimental period.
561
+ */
562
+ declare function createSafetyOversizedAttributeRule(options: SafetyOversizedAttributeRuleOptions): TraceCheckRule;
563
+ /**
564
+ * Create the experimental built-in baseline regression rule.
565
+ *
566
+ * The rule compares safe structural summaries from a normalized baseline
567
+ * against the candidate context. It intentionally ignores raw prompt/output,
568
+ * request/response body, header, and tool payload text.
569
+ *
570
+ * @experimental Available through `agent-inspect/checks`; the checks API may
571
+ * evolve during the v1.x experimental period.
572
+ */
573
+ declare function createBaselineRegressionRule(options: BaselineRegressionRuleOptions): TraceCheckRule;
574
+ /**
575
+ * Run experimental deterministic trace checks against normalized reader output.
576
+ *
577
+ * The engine is local-only and pure: it does not discover config files, read
578
+ * trace files, call providers, perform network I/O, or mutate input objects.
579
+ *
580
+ * @experimental Available through `agent-inspect/checks`; the checks API may
581
+ * evolve during the v1.x experimental period.
582
+ */
583
+ declare function runTraceChecks(input: TraceCheckInput, options?: RunTraceChecksOptions): TraceCheckResult;
584
+
585
+ export { type BaselineRegressionRuleOptions, type DecisionRuleOptions, type GuardrailRuleOptions, type LlmUsageRuleOptions, type RetrievalRuleOptions, type RunDepthRuleOptions, type RunDurationRuleOptions, type RunEventCountRuleOptions, type RunStatusRuleOptions, type RunTraceChecksOptions, type SafetyOversizedAttributeRuleOptions, type SafetyRawContentRuleOptions, type SafetyRedactionRuleOptions, type SafetySecretPattern, type SafetySecretPatternRuleOptions, type StructureIncompleteRuleOptions, type StructureOrphanRuleOptions, type StructureParallelWidthRuleOptions, type StructureRelationshipRuleOptions, type ToolFailureRuleOptions, type ToolOrderingRuleOptions, type ToolUsageRuleOptions, type TraceCheckContext, type TraceCheckDiagnostic, type TraceCheckDiagnosticCode, type TraceCheckEvidence, type TraceCheckFacts, type TraceCheckFinding, type TraceCheckFindingStatus, type TraceCheckInput, type TraceCheckResult, type TraceCheckRule, type TraceCheckRuleCategory, type TraceCheckSeverity, type TraceCheckStatus, type TraceCheckSummary, type TraceSignalRuleOptions, createBaselineRegressionRule, createDecisionRule, createGuardrailRule, createLlmUsageRule, createRetrievalRule, createRunDepthRule, createRunDurationRule, createRunEventCountRule, createRunStatusRule, createSafetyOversizedAttributeRule, createSafetyRawContentRule, createSafetyRedactionRule, createSafetySecretPatternRule, createStructureCycleRule, createStructureIncompleteRule, createStructureOrphanRule, createStructureParallelWidthRule, createStructureRelationshipRule, createToolFailureRule, createToolOrderingRule, createToolUsageRule, runTraceChecks };