agent-inspect 6.26.0 → 6.28.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 (60) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/docs/BUNDLES.md +4 -1
  4. package/docs/LIMITATIONS.md +1 -1
  5. package/docs/SAFE-TRACE-SHARING.md +2 -0
  6. package/docs/TRACE-CONTRACTS.md +21 -3
  7. package/package.json +1 -1
  8. package/packages/cli/dist/{chunk-HPR2OJPU.mjs → chunk-JVQ4LTHR.mjs} +4317 -3803
  9. package/packages/cli/dist/chunk-JVQ4LTHR.mjs.map +1 -0
  10. package/packages/cli/dist/index.cjs +4541 -4005
  11. package/packages/cli/dist/index.cjs.map +1 -1
  12. package/packages/cli/dist/index.mjs +4 -4
  13. package/packages/cli/dist/index.mjs.map +1 -1
  14. package/packages/cli/dist/{src-J43ECFHC.mjs → src-M5J5YC5E.mjs} +3 -3
  15. package/packages/cli/dist/{src-J43ECFHC.mjs.map → src-M5J5YC5E.mjs.map} +1 -1
  16. package/packages/core/dist/advanced.cjs +3026 -2501
  17. package/packages/core/dist/advanced.cjs.map +1 -1
  18. package/packages/core/dist/advanced.d.cts +172 -16
  19. package/packages/core/dist/advanced.d.ts +172 -16
  20. package/packages/core/dist/advanced.mjs +362 -32
  21. package/packages/core/dist/advanced.mjs.map +1 -1
  22. package/packages/core/dist/checks.cjs +537 -152
  23. package/packages/core/dist/checks.cjs.map +1 -1
  24. package/packages/core/dist/checks.d.cts +9 -414
  25. package/packages/core/dist/checks.d.ts +9 -414
  26. package/packages/core/dist/checks.mjs +1 -1
  27. package/packages/core/dist/{chunk-LHSXRIYU.mjs → chunk-ME4WXYY3.mjs} +3609 -3224
  28. package/packages/core/dist/chunk-ME4WXYY3.mjs.map +1 -0
  29. package/packages/core/dist/{context-DOOT9GZ-.d.cts → context-DGMqxFpz.d.cts} +4 -4
  30. package/packages/core/dist/{context-DOX2-RjH.d.ts → context-DgcvkJ9t.d.ts} +4 -4
  31. package/packages/core/dist/diff.d.cts +3 -3
  32. package/packages/core/dist/diff.d.ts +3 -3
  33. package/packages/core/dist/exporters.d.cts +3 -3
  34. package/packages/core/dist/exporters.d.ts +3 -3
  35. package/packages/core/dist/{index-CtK_p-ps.d.ts → index-BOA1AeEU.d.ts} +473 -6
  36. package/packages/core/dist/{index-D72DPqAF.d.ts → index-BzyNPfLm.d.ts} +2 -2
  37. package/packages/core/dist/{index-DLLz9sce.d.cts → index-C6bCIbFO.d.cts} +2 -2
  38. package/packages/core/dist/{index-CR4CCRqP.d.cts → index-DVetZwGG.d.cts} +473 -6
  39. package/packages/core/dist/index.d.cts +7 -7
  40. package/packages/core/dist/index.d.ts +7 -7
  41. package/packages/core/dist/{inspect-event-DRthdZlf.d.cts → inspect-event-CDqjcrG_.d.cts} +1 -1
  42. package/packages/core/dist/{inspect-event-DRthdZlf.d.ts → inspect-event-CDqjcrG_.d.ts} +1 -1
  43. package/packages/core/dist/{log-config-CFlIJHTf.d.cts → log-config-DcjV8ZjF.d.cts} +1 -1
  44. package/packages/core/dist/{log-config-OZRfpHED.d.ts → log-config-N_c5AE09.d.ts} +1 -1
  45. package/packages/core/dist/logs.d.cts +3 -3
  46. package/packages/core/dist/logs.d.ts +3 -3
  47. package/packages/core/dist/{persisted-inspect-event-BVucFVrP.d.ts → persisted-inspect-event-CbaRYpbw.d.ts} +1 -1
  48. package/packages/core/dist/{persisted-inspect-event-CVZWZldL.d.cts → persisted-inspect-event-DiJ0I_vi.d.cts} +1 -1
  49. package/packages/core/dist/persisted.d.cts +5 -5
  50. package/packages/core/dist/persisted.d.ts +5 -5
  51. package/packages/core/dist/readers.d.cts +3 -3
  52. package/packages/core/dist/readers.d.ts +3 -3
  53. package/packages/core/dist/{types-B562HgN_.d.cts → types-BA_IOdg4.d.cts} +1 -1
  54. package/packages/core/dist/{types-B562HgN_.d.ts → types-BA_IOdg4.d.ts} +1 -1
  55. package/packages/core/dist/{types-VzKihKQo.d.cts → types-wXuxMUop.d.cts} +2 -2
  56. package/packages/core/dist/{types-Bx3mEZ04.d.ts → types-xv9bSgOK.d.ts} +2 -2
  57. package/packages/core/dist/writers.d.cts +2 -2
  58. package/packages/core/dist/writers.d.ts +2 -2
  59. package/packages/cli/dist/chunk-HPR2OJPU.mjs.map +0 -1
  60. package/packages/core/dist/chunk-LHSXRIYU.mjs.map +0 -1
@@ -1,17 +1,17 @@
1
- export { C as CreateInspectorOptions, D as DEFAULT_MAX_EVENT_BYTES, f as DEFAULT_MAX_METADATA_VALUE_LENGTH, h as DEFAULT_MAX_PREVIEW_LENGTH, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, i as InspectorRuntime, j as InspectorRuntimeContext, k as InspectorRuntimeDiagnostics, l as InspectorRuntimeOptions, d as InspectorStepOptions, T as TraceSafetyOptions, e as createInspector, n as createInspectorRuntime, o as getCurrentContext, g as getCurrentCorrelationMetadata, p as getCurrentDepth, q as getCurrentRunId, r as getCurrentRunName, s as getCurrentStepId, t as getParentStepId, u as getTraceDirFromContext, v as getTraceSafetyFromContext, w as hasActiveContext, x as isAgentInspectEnabled, y as isSilentContext, m as maybeInspectRun, z as prepareMetadataForDisk, A as prepareTraceEventForDisk, B as resolveTraceSafetyOptions, E as runWithContext, F as runWithStepContext } from './context-DOOT9GZ-.cjs';
2
- import { R as RedactionRule } from './log-config-CFlIJHTf.cjs';
3
- import { R as RedactionProfile, i as TraceEvent, E as ErrorInfo, b as RunStatus, e as StepStatus, k as RunSummary, l as TraceMetadata, T as TraceMetadataStatus, f as StepType, h as TraceCorrelationMetadata } from './types-VzKihKQo.cjs';
4
- export { A as ActiveStepContext, j as ExecutionContext, I as InspectRunOptions, O as ObserveOptions, a as Run, m as RunCompletedEvent, n as RunStartedEvent, c as Step, o as StepCompletedEvent, d as StepMetadata, S as StepOptions, p as StepStartedEvent, g as TokenMetadata, q as TraceEventBase, r as TraceSchemaVersion, s as isStepStatus, t as isStepType, u as isTraceEvent } from './types-VzKihKQo.cjs';
5
- import { a as InspectRunTree } from './inspect-event-DRthdZlf.cjs';
6
- export { A as AttributionConfidence, E as EventSource, c as InspectEvent, I as InspectKind, b as InspectNode } from './inspect-event-DRthdZlf.cjs';
7
- import { P as PersistedInspectEvent } from './persisted-inspect-event-CVZWZldL.cjs';
1
+ export { C as CreateInspectorOptions, D as DEFAULT_MAX_EVENT_BYTES, f as DEFAULT_MAX_METADATA_VALUE_LENGTH, h as DEFAULT_MAX_PREVIEW_LENGTH, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, i as InspectorRuntime, j as InspectorRuntimeContext, k as InspectorRuntimeDiagnostics, l as InspectorRuntimeOptions, d as InspectorStepOptions, T as TraceSafetyOptions, e as createInspector, n as createInspectorRuntime, o as getCurrentContext, g as getCurrentCorrelationMetadata, p as getCurrentDepth, q as getCurrentRunId, r as getCurrentRunName, s as getCurrentStepId, t as getParentStepId, u as getTraceDirFromContext, v as getTraceSafetyFromContext, w as hasActiveContext, x as isAgentInspectEnabled, y as isSilentContext, m as maybeInspectRun, z as prepareMetadataForDisk, A as prepareTraceEventForDisk, B as resolveTraceSafetyOptions, E as runWithContext, F as runWithStepContext } from './context-DGMqxFpz.cjs';
2
+ import { R as RedactionRule } from './log-config-DcjV8ZjF.cjs';
3
+ import { R as RedactionProfile, h as TraceEvent, E as ErrorInfo, b as RunStatus, e as StepStatus, k as RunSummary, l as TraceMetadata, j as TraceMetadataStatus, f as StepType, g as TraceCorrelationMetadata } from './types-wXuxMUop.cjs';
4
+ export { A as ActiveStepContext, i as ExecutionContext, I as InspectRunOptions, O as ObserveOptions, a as Run, m as RunCompletedEvent, n as RunStartedEvent, c as Step, o as StepCompletedEvent, d as StepMetadata, S as StepOptions, p as StepStartedEvent, T as TokenMetadata, q as TraceEventBase, r as TraceSchemaVersion, s as isStepStatus, t as isStepType, u as isTraceEvent } from './types-wXuxMUop.cjs';
5
+ import { a as InspectRunTree } from './inspect-event-CDqjcrG_.cjs';
6
+ export { A as AttributionConfidence, E as EventSource, b as InspectEvent, I as InspectKind, c as InspectNode } from './inspect-event-CDqjcrG_.cjs';
7
+ import { P as PersistedInspectEvent } from './persisted-inspect-event-DiJ0I_vi.cjs';
8
8
  import { Stats } from 'node:fs';
9
- import { S as SessionWorkflowMetadata, al as SessionRunRecord, am as EnrichSessionSummaryOptions, an as SessionStatus, ao as SessionSummary, ap as SessionIndex, aq as BuildActivitySummaryOptions, ar as ActivitySummary, as as SessionWarning, at as BuildSessionIndexOptions, c as TraceCheckResult, P as TraceCheckStatus } from './index-CR4CCRqP.cjs';
10
- export { au as ActivityEntry, av as CriticalPathStep, aw as HandoffEdge, ax as RetryLink, ay as SESSION_WORKFLOW_KEYS, az as SessionCheckSummary, aA as SessionConfidence, aB as SessionEdgeSource, aC as SessionGroup, aD as SessionLastError, aE as SessionWorkflowKey } from './index-CR4CCRqP.cjs';
11
- import { b as ObservedOutcome } from './types-B562HgN_.cjs';
12
- export { O as ObservedOutcomeStatus } from './types-B562HgN_.cjs';
9
+ import { aR as SessionWorkflowMetadata, aS as SessionRunRecord, aT as EnrichSessionSummaryOptions, aU as SessionStatus, aV as SessionSummary, aW as SessionIndex, aX as BuildActivitySummaryOptions, aY as ActivitySummary, aZ as SessionWarning, a_ as BuildSessionIndexOptions, N as TraceCheckResult, X as TraceCheckStatus, a2 as TraceContractInput, Z as TraceContract } from './index-DVetZwGG.cjs';
10
+ export { a$ as ActivityEntry, b0 as CriticalPathStep, b1 as HandoffEdge, b2 as RetryLink, b3 as SESSION_WORKFLOW_KEYS, b4 as SessionCheckSummary, b5 as SessionConfidence, b6 as SessionEdgeSource, b7 as SessionGroup, b8 as SessionLastError, b9 as SessionWorkflowKey } from './index-DVetZwGG.cjs';
11
+ import { b as ObservedOutcome } from './types-BA_IOdg4.cjs';
12
+ export { a as ObservedOutcomeStatus } from './types-BA_IOdg4.cjs';
13
13
  import './writers.cjs';
14
- import './index-DLLz9sce.cjs';
14
+ import './index-C6bCIbFO.cjs';
15
15
 
16
16
  interface ResolvedRedactionProfile {
17
17
  profile: RedactionProfile;
@@ -743,7 +743,48 @@ type EvidenceFormatVersion = "1.0";
743
743
  type EvidenceSafeStatus = "SAFE" | "SAFE WITH WARNINGS" | "UNSAFE" | "UNKNOWN";
744
744
  type EvidenceRedactionProfile = "local" | "share" | "strict";
745
745
  type EvidenceVerificationPolicy = "development" | "local" | "share" | "strict";
746
- type EvidenceFileRole = "report" | "redacted-trace" | "checks" | "redaction-report" | "summary" | "other";
746
+ type EvidenceFileRole = "report" | "redacted-trace" | "checks" | "contract" | "redaction-report" | "summary" | "other";
747
+ /** How a packaged contract/preset was supplied (6.28+). */
748
+ type EvidenceContractBindingSource = "file" | "inline" | "preset" | "cli-shorthand" | "programmatic";
749
+ /** Reproducibility honesty for contract binding (6.28+). */
750
+ type EvidenceContractBindingStatus = "complete" | "partial" | "unavailable";
751
+ /**
752
+ * Optional Evidence v2 contract binding (6.28+).
753
+ * Additive; older readers ignore unknown fields. Not a signature or trusted-time claim.
754
+ */
755
+ interface EvidenceContractBinding {
756
+ status: EvidenceContractBindingStatus;
757
+ source: EvidenceContractBindingSource;
758
+ contractId?: string;
759
+ contractVersion?: string;
760
+ canonicalizationVersion: "1";
761
+ engineVersion: string;
762
+ /** Relative packaged path (typically `contract.resolved.json`). */
763
+ path?: string;
764
+ /** SHA-256 of the packaged resolved-contract bytes. */
765
+ sha256?: string;
766
+ ruleIds: string[];
767
+ unsupportedRuleIds?: string[];
768
+ note?: string;
769
+ }
770
+ /**
771
+ * Optional fields embedded in `check-results.json` to bind results to a contract digest.
772
+ */
773
+ interface EvidenceCheckContractBinding {
774
+ contractDigest?: string;
775
+ canonicalizationVersion?: "1";
776
+ engineVersion?: string;
777
+ evaluatedRuleIds?: string[];
778
+ bindingStatus?: EvidenceContractBindingStatus;
779
+ unsupportedRuleIds?: string[];
780
+ origin?: {
781
+ source: EvidenceContractBindingSource;
782
+ preset?: string;
783
+ path?: string;
784
+ };
785
+ selectedScope?: Record<string, unknown>;
786
+ selectedAlternativeBranch?: string;
787
+ }
747
788
  interface EvidenceSourceHash {
748
789
  runId: string;
749
790
  algorithm: "sha256";
@@ -780,6 +821,11 @@ interface EvidenceManifest {
780
821
  * Additive; older readers ignore unknown fields.
781
822
  */
782
823
  semantics?: EvidenceSemantics;
824
+ /**
825
+ * Optional resolved-contract binding (6.28+).
826
+ * Additive; older readers ignore unknown fields.
827
+ */
828
+ contract?: EvidenceContractBinding;
783
829
  files: EvidenceFileEntry[];
784
830
  }
785
831
  /**
@@ -818,6 +864,8 @@ interface EvidencePackagedFile {
818
864
  declare const EVIDENCE_FORMAT_VERSION: EvidenceFormatVersion;
819
865
  declare const EVIDENCE_ASSESSMENT_NOTE = "Best-effort local safety verification only; not a compliance certification.";
820
866
  declare const EVIDENCE_MANIFEST_FILENAME = "evidence.json";
867
+ /** Packaged resolved TraceContract / check-preset snapshot (6.28+). */
868
+ declare const EVIDENCE_RESOLVED_CONTRACT_FILENAME = "contract.resolved.json";
821
869
 
822
870
  /**
823
871
  * SHA-256 hex digest of exact bytes (UTF-8 when `data` is a string).
@@ -859,6 +907,7 @@ declare function buildEvidenceManifest(parts: {
859
907
  createdAt?: string;
860
908
  note?: string;
861
909
  semantics?: EvidenceManifest["semantics"];
910
+ contract?: EvidenceManifest["contract"];
862
911
  }): EvidenceManifest;
863
912
  /**
864
913
  * Minimal structural validation for a parsed evidence manifest object.
@@ -871,6 +920,105 @@ declare function parseEvidenceManifestJson(text: string): EvidenceManifest;
871
920
  */
872
921
  declare function collectTraceSchemaVersions(jsonl: string): string[];
873
922
 
923
+ /**
924
+ * Evidence v2 contract binding (6.28) — package a resolved serializable
925
+ * TraceContract / check-preset snapshot and bind its digest to check results.
926
+ *
927
+ * Does not claim producer identity, trusted time, or semantic proof.
928
+ */
929
+
930
+ declare const EVIDENCE_CONTRACT_CANONICALIZATION_VERSION: "1";
931
+ declare const EVIDENCE_CONTRACT_PARTIAL_NOTE = "Custom or programmatic rules are not serializable; Evidence records rule IDs only and does not claim complete reviewer replay.";
932
+ declare const EVIDENCE_CONTRACT_UNAVAILABLE_NOTE = "No resolved TraceContract or check preset was packaged with this Evidence artifact.";
933
+ declare const EVIDENCE_CONTRACT_ASSURANCE_NOTE = "Contract binding verifies packaged digest integrity only; it does not prove producer identity, trusted time, source completeness, semantic truth, or external acceptance.";
934
+ /** Deterministic JSON (sorted keys) with trailing newline. */
935
+ declare function serializeCanonicalJson(value: unknown): string;
936
+ /**
937
+ * Normalize TraceContract aliases and make common evaluator defaults explicit
938
+ * for canonicalization version `"1"`.
939
+ */
940
+ declare function resolveSerializableTraceContract(input: TraceContractInput | TraceContract): TraceContract;
941
+ /**
942
+ * Static rule-id inventory implied by a resolved TraceContract (no evaluation).
943
+ */
944
+ declare function collectResolvedContractRuleIds(contract: TraceContract): string[];
945
+ interface ResolvedContractDocument {
946
+ canonicalizationVersion: typeof EVIDENCE_CONTRACT_CANONICALIZATION_VERSION;
947
+ kind: "trace-contract" | "check-preset";
948
+ resolved: Record<string, unknown>;
949
+ origin: {
950
+ source: EvidenceContractBindingSource;
951
+ preset?: string;
952
+ path?: string;
953
+ };
954
+ }
955
+ interface BuildEvidenceContractPackageInput {
956
+ engineVersion: string;
957
+ source: EvidenceContractBindingSource;
958
+ /** Serializable TraceContract (preferred for `complete`). */
959
+ contract?: TraceContractInput | TraceContract;
960
+ /**
961
+ * Pre-resolved check preset / CLI shorthand snapshot (caller expands).
962
+ * Used when `contract` is omitted or as origin metadata beside a contract.
963
+ */
964
+ preset?: {
965
+ name: string;
966
+ resolved: Record<string, unknown>;
967
+ };
968
+ /** Original config path (omit or redact when sensitive). */
969
+ path?: string;
970
+ contractId?: string;
971
+ contractVersion?: string;
972
+ /**
973
+ * Stable IDs for programmatic / custom rules that cannot be serialized.
974
+ * Presence forces `status: "partial"`.
975
+ */
976
+ unsupportedRuleIds?: readonly string[];
977
+ /** Override rule ID list (defaults to static inventory from the contract / preset select). */
978
+ ruleIds?: readonly string[];
979
+ note?: string;
980
+ }
981
+ interface EvidenceContractPackage {
982
+ /** Packaged `contract.resolved.json` when a serializable snapshot exists. */
983
+ file?: EvidencePackagedFile;
984
+ binding: EvidenceContractBinding;
985
+ /** Fields to merge into `check-results.json`. */
986
+ checkBinding: EvidenceCheckContractBinding;
987
+ /** Canonical document bytes when packaged (same as `file.content`). */
988
+ resolvedJson?: string;
989
+ }
990
+ /**
991
+ * Build a resolved contract artifact + Evidence binding for packaging.
992
+ *
993
+ * Pass no `contract` and no `preset` to record an honest `unavailable` binding
994
+ * (missing-contract case). Pass `unsupportedRuleIds` to force `partial`.
995
+ */
996
+ declare function buildEvidenceContractPackage(input: BuildEvidenceContractPackageInput): EvidenceContractPackage;
997
+ /**
998
+ * Merge contract-binding fields into a check-results JSON object (additive).
999
+ */
1000
+ declare function bindCheckResultsToContract(checkResults: Record<string, unknown>, checkBinding: EvidenceCheckContractBinding): Record<string, unknown>;
1001
+ declare function serializeCheckResultsJson(value: unknown): string;
1002
+ /**
1003
+ * Parse the optional `contract` object from check-results.json when present.
1004
+ */
1005
+ declare function readCheckResultsContractBinding(checkResultsJson: string): EvidenceCheckContractBinding | undefined;
1006
+ interface EvidenceContractVerifyIssue {
1007
+ code: "contract_file_missing" | "contract_hash_mismatch" | "contract_digest_mismatch" | "contract_binding_invalid";
1008
+ severity: "error" | "warning";
1009
+ message: string;
1010
+ path?: string;
1011
+ }
1012
+ /**
1013
+ * Verify digest binding between manifest.contract, contract.resolved.json, and
1014
+ * check-results.json. Older Evidence without `manifest.contract` is a no-op.
1015
+ */
1016
+ declare function verifyEvidenceContractBinding(parts: {
1017
+ binding?: EvidenceContractBinding;
1018
+ resolvedContractBytes?: string | Uint8Array;
1019
+ checkResultsJson?: string;
1020
+ }): EvidenceContractVerifyIssue[];
1021
+
874
1022
  declare const EVIDENCE_HTML_FILENAME = "evidence.html";
875
1023
  /** View ids reserved for later 6.10 chunks; shell renders stubs except summary. */
876
1024
  declare const EVIDENCE_VIEW_IDS: readonly ["summary", "tree", "timeline", "causal", "tools-llm", "outcomes", "contracts", "circuit", "diff", "safety", "provenance"];
@@ -1048,7 +1196,7 @@ declare function buildZipArchive(entries: readonly ZipEntry[]): Buffer;
1048
1196
 
1049
1197
  type EvidenceVerifyStatus = "pass" | "fail";
1050
1198
  interface EvidenceVerifyIssue {
1051
- code: "manifest_missing" | "manifest_invalid" | "file_missing" | "file_unexpected" | "hash_mismatch" | "assessment_missing" | "provenance_missing" | "path_unsafe" | "io_error";
1199
+ code: "manifest_missing" | "manifest_invalid" | "file_missing" | "file_unexpected" | "hash_mismatch" | "assessment_missing" | "provenance_missing" | "path_unsafe" | "io_error" | "contract_file_missing" | "contract_hash_mismatch" | "contract_digest_mismatch" | "contract_binding_invalid";
1052
1200
  severity: "error" | "warning";
1053
1201
  message: string;
1054
1202
  path?: string;
@@ -1086,16 +1234,24 @@ interface EvidenceCiPackageInput {
1086
1234
  summaryText?: string;
1087
1235
  /** Optional TraceFacts/parity summary embedded in evidence.json (6.14+). */
1088
1236
  semantics?: EvidenceManifest["semantics"];
1237
+ /**
1238
+ * Optional TraceContract / preset binding (6.28+).
1239
+ * When omitted, no contract section is written (older Evidence shape).
1240
+ * Pass `{ engineVersion, source }` with neither contract nor preset to record `unavailable`.
1241
+ */
1242
+ contractPackage?: BuildEvidenceContractPackageInput;
1089
1243
  }
1090
1244
  interface EvidenceCiPackageFiles {
1091
1245
  "evidence.html": string;
1092
1246
  "evidence.json": string;
1093
1247
  "check-results.json": string;
1094
1248
  "trace.jsonl": string;
1249
+ "contract.resolved.json"?: string;
1095
1250
  manifest: EvidenceManifest;
1096
1251
  }
1097
1252
  /**
1098
- * Build the four standard CI evidence files (in memory) using Evidence v2 helpers.
1253
+ * Build the standard CI evidence files (in memory) using Evidence v2 helpers.
1254
+ * Optionally packages `contract.resolved.json` and binds digests (6.28+).
1099
1255
  */
1100
1256
  declare function buildEvidenceCiPackage(input: EvidenceCiPackageInput): EvidenceCiPackageFiles;
1101
1257
 
@@ -1427,4 +1583,4 @@ declare function createOmittedPayloadCommitment(payload: string | Uint8Array, op
1427
1583
  capturePolicy?: OmittedPayloadCommitment["capturePolicy"];
1428
1584
  }): OmittedPayloadCommitment;
1429
1585
 
1430
- export { ADAPTER_CAPTURE_DIAGNOSTIC_CODES, ActivitySummary, type AdapterCaptureDiagnostic, type AdapterCaptureDiagnosticCode, type AdapterCaptureDiagnostics, type AdapterCaptureMode, type AdapterDiagnosticListener, type AdapterPreviewCapture, type AdapterPreviewCaptureOptions, type AnalyzeCohortOptions, BuildActivitySummaryOptions, BuildSessionIndexOptions, type BundleCheckResults, type BundleCheckRunResult, type BundleMetadata, type BundlePlaceholderArtifact, type BundleRedactionProfile, type BundleRedactionReport, type BundleRedactionReportRun, type BundleResolveOptions, type BundleResolveResult, type BundleSafeStatus, type BundleSafeStatusMetadata, COHORT_METRIC_IDS, type CausalContractFindingInput, type CausalFailureKind, type CohortAggregateMetrics, type CohortAnalysisResult, type CohortMetricComparison, type CohortMetricId, type CohortRunMetrics, DEFAULT_ADAPTER_MAX_PREVIEW_CHARS, DEFAULT_SUITE_ARTIFACTS_DIR, DEFAULT_SUITE_CONFIG_NAMES, DEFAULT_TRACE_DIR_NAME, type DurationStats, EVIDENCE_ASSESSMENT_NOTE, EVIDENCE_FORMAT_VERSION, EVIDENCE_HTML_FILENAME, EVIDENCE_MANIFEST_FILENAME, EVIDENCE_VIEW_CSS, EVIDENCE_VIEW_IDS, EnrichSessionSummaryOptions, ErrorInfo, type EvidenceCheckFindingSummary, type EvidenceCiPackageFiles, type EvidenceCiPackageInput, type EvidenceContractsViewInput, type EvidenceFileEntry, type EvidenceFileRole, type EvidenceFormatVersion, type EvidenceHtmlShellInput, type EvidenceManifest, type EvidencePackagedFile, type EvidenceProvenanceViewInput, type EvidenceRedactionProfile, type EvidenceSafeStatus, type EvidenceSafetyViewInput, type EvidenceSourceHash, type EvidenceVerificationPolicy, type EvidenceVerifyIssue, type EvidenceVerifyOptions, type EvidenceVerifyResult, type EvidenceVerifyStatus, type EvidenceViewId, type ExplainFact, type ExplainInference, type ExplainMode, type ExplainOptions, type ExplainResult, FALLBACK_TRACE_DIR, type FindFirstCausalFailureOptions, type FirstCausalFailure, type GateCheckId, type GateCheckResult, type GateExitCode, type GateResult, type GroupSessionCohortsOptions, InspectRunTree, type LoadSuiteConfigOptions, MAX_NAME_LENGTH, MAX_TERMINAL_DEPTH, MAX_TERMINAL_NAME_LENGTH, OMITTED_PAYLOAD_MAX_DIGEST_INPUT_BYTES, ObservedOutcome, type OmittedPayloadAlgorithm, type OmittedPayloadCommitment, type ParseTraceJsonlOptions, type ParseTraceJsonlResult, type ParsedDurationFilter, RUNS_DIR_NAME, RedactionProfile, type RenderCohortReportOptions, type RenderGateReportOptions, type RenderSuiteReportOptions, type RenderTimelineOptions, type RenderWhatOptions, type ResolvedRedactionProfile, type ResolvedSuiteCase, type RunGateOptions, RunStatus, type RunSuiteOptions, RunSummary, type RunTimeline, type RunWhatSummary, SUITE_TEMPLATE_IDS, type SessionCohort, type SessionCohortKind, SessionIndex, SessionRunRecord, type SessionScopeOptions, type SessionScopeResult, SessionStatus, SessionSummary, SessionWarning, SessionWorkflowMetadata, StepStatus, StepType, type SuiteArtifactsConfig, type SuiteCaseConfig, type SuiteCaseResult, type SuiteCaseStatus, type SuiteChecksConfig, type SuiteConfig, type SuiteDiagnostic, type SuiteDiagnosticCode, type SuiteEvalConfig, type SuiteRunResult, type SuiteRunSummary, type SuiteTemplateId, TERMINAL_INDENT, type TimelineEntry, type TimelineFocus, type TimelineOptions, TraceCorrelationMetadata, TraceDirectory, type TraceDirectoryOptions, TraceEvent, type TraceFilterOptions, type TraceJsonlFormat, TraceMetadata, TraceMetadataStatus, type TraceSearchOptions, type TraceSearchResult, type TraceSessionCheckResult, type TraceStats, type TraceStatsOptions, type TraceStatsRankedRun, type TraceStatsRankedStep, type ValidateSuiteConfigResult, type ZipEntry, aggregateBundleSafeStatus, aggregateSessionCheckResults, analyzeCohort, assertBundlePathContained, assertEvidenceRelativePath, buildActivitySummary, buildBundleMetadata, buildBundleSummaryMarkdown, buildEvidenceCausalFailureViewHtml, buildEvidenceCiPackage, buildEvidenceCircuitViewHtml, buildEvidenceContractsViewHtml, buildEvidenceDiffViewHtml, buildEvidenceFileEntries, buildEvidenceHtmlShell, buildEvidenceHtmlShellFromManifest, buildEvidenceManifest, buildEvidenceOutcomesViewHtml, buildEvidenceProvenanceViewHtml, buildEvidenceSafetyViewHtml, buildEvidenceTimelineViewHtml, buildEvidenceToolsLlmViewHtml, buildEvidenceTreeViewHtml, buildLocalExplanation, buildPlaceholderArtifact, buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildSessionIndex, buildTraceStats, buildZipArchive, bundleFailsOnSafety, bundleRunAssetRelativePath, collectTraceSchemaVersions, compareCohortAggregates, createAdapterPreviewCapture, createOmittedPayloadCommitment, createRunId, createStepId, defaultBundleOutputPath, defaultSuiteConfigTemplate, deriveSessionStatus, encodeEmbeddedEvidenceJson, enrichSessionRunRecord, enrichSessionSummary, ensureTraceDir, extractMetadata, extractOutcomesFromPersistedEvents, extractOutcomesFromTraceEvents, extractSessionWorkflowMetadata, filterMetasBySessionScope, filterTraces, findFirstCausalFailure, formatDuration, formatError, formatStepLabel, formatTerminalName, formatTimestamp, gateHasThresholds, getDefaultTraceDir, getIndent, getRunIdFromTraceFileName, getSuiteTemplate, getTraceFilePath, groupSessionCohorts, inferEvidenceFileRole, initializeTraceFile, isAgentInspectTrace, isSha256Hex, listSuiteTemplates, listTraceFiles, loadSessionRunRecords, loadSuiteConfig, loadTraceMetadataList, normalizeBundleOutputPath, normalizeSuiteConfig, omittedPayloadByteLength, parseCohortMetricList, parseDuration, parseDurationFilter, parseEvidenceManifestJson, parseGateList, parseGateNumber, parseGroupBySpec, parseTraceJsonl, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readTraceEvents, readTraceFile, renderActivitySummaryHuman, renderCohortReport, renderCohortSummaryMarkdown, renderErrorLine, renderGateGithubAnnotations, renderGateGithubStepSummary, renderGateJUnit, renderGateReport, renderGateSummaryMarkdown, renderRunSummary, renderRunWhat, renderStepLine, renderSuiteReport, renderSuiteReportMarkdown, renderTimeline, renderTraceStats, resolveAdapterMaxPreviewChars, resolveBundleRunIds, resolveRedactionProfile, resolveSuiteCaseTrace, resolveSuiteConfigPath, resolveSuiteTemplate, resolveTraceDir, runGate, runSuite, sanitizeBundleRunId, searchTraces, serializeAdapterPreview, serializeEvent, serializeEvidenceManifest, sessionKeyForRun, sha256Equals, sha256Hex, toMetadataSafeStatus, traceMetasToSessionRunRecords, truncateName, unknownTraceFormatMessage, validateEvent, validateEvidenceManifest, validateSuiteConfig, verifyEvidenceDirectory, warn, writeTraceEvent };
1586
+ export { ADAPTER_CAPTURE_DIAGNOSTIC_CODES, ActivitySummary, type AdapterCaptureDiagnostic, type AdapterCaptureDiagnosticCode, type AdapterCaptureDiagnostics, type AdapterCaptureMode, type AdapterDiagnosticListener, type AdapterPreviewCapture, type AdapterPreviewCaptureOptions, type AnalyzeCohortOptions, BuildActivitySummaryOptions, type BuildEvidenceContractPackageInput, BuildSessionIndexOptions, type BundleCheckResults, type BundleCheckRunResult, type BundleMetadata, type BundlePlaceholderArtifact, type BundleRedactionProfile, type BundleRedactionReport, type BundleRedactionReportRun, type BundleResolveOptions, type BundleResolveResult, type BundleSafeStatus, type BundleSafeStatusMetadata, COHORT_METRIC_IDS, type CausalContractFindingInput, type CausalFailureKind, type CohortAggregateMetrics, type CohortAnalysisResult, type CohortMetricComparison, type CohortMetricId, type CohortRunMetrics, DEFAULT_ADAPTER_MAX_PREVIEW_CHARS, DEFAULT_SUITE_ARTIFACTS_DIR, DEFAULT_SUITE_CONFIG_NAMES, DEFAULT_TRACE_DIR_NAME, type DurationStats, EVIDENCE_ASSESSMENT_NOTE, EVIDENCE_CONTRACT_ASSURANCE_NOTE, EVIDENCE_CONTRACT_CANONICALIZATION_VERSION, EVIDENCE_CONTRACT_PARTIAL_NOTE, EVIDENCE_CONTRACT_UNAVAILABLE_NOTE, EVIDENCE_FORMAT_VERSION, EVIDENCE_HTML_FILENAME, EVIDENCE_MANIFEST_FILENAME, EVIDENCE_RESOLVED_CONTRACT_FILENAME, EVIDENCE_VIEW_CSS, EVIDENCE_VIEW_IDS, EnrichSessionSummaryOptions, ErrorInfo, type EvidenceCheckContractBinding, type EvidenceCheckFindingSummary, type EvidenceCiPackageFiles, type EvidenceCiPackageInput, type EvidenceContractBinding, type EvidenceContractBindingSource, type EvidenceContractBindingStatus, type EvidenceContractPackage, type EvidenceContractVerifyIssue, type EvidenceContractsViewInput, type EvidenceFileEntry, type EvidenceFileRole, type EvidenceFormatVersion, type EvidenceHtmlShellInput, type EvidenceManifest, type EvidencePackagedFile, type EvidenceProvenanceViewInput, type EvidenceRedactionProfile, type EvidenceSafeStatus, type EvidenceSafetyViewInput, type EvidenceSourceHash, type EvidenceVerificationPolicy, type EvidenceVerifyIssue, type EvidenceVerifyOptions, type EvidenceVerifyResult, type EvidenceVerifyStatus, type EvidenceViewId, type ExplainFact, type ExplainInference, type ExplainMode, type ExplainOptions, type ExplainResult, FALLBACK_TRACE_DIR, type FindFirstCausalFailureOptions, type FirstCausalFailure, type GateCheckId, type GateCheckResult, type GateExitCode, type GateResult, type GroupSessionCohortsOptions, InspectRunTree, type LoadSuiteConfigOptions, MAX_NAME_LENGTH, MAX_TERMINAL_DEPTH, MAX_TERMINAL_NAME_LENGTH, OMITTED_PAYLOAD_MAX_DIGEST_INPUT_BYTES, ObservedOutcome, type OmittedPayloadAlgorithm, type OmittedPayloadCommitment, type ParseTraceJsonlOptions, type ParseTraceJsonlResult, type ParsedDurationFilter, RUNS_DIR_NAME, RedactionProfile, type RenderCohortReportOptions, type RenderGateReportOptions, type RenderSuiteReportOptions, type RenderTimelineOptions, type RenderWhatOptions, type ResolvedContractDocument, type ResolvedRedactionProfile, type ResolvedSuiteCase, type RunGateOptions, RunStatus, type RunSuiteOptions, RunSummary, type RunTimeline, type RunWhatSummary, SUITE_TEMPLATE_IDS, type SessionCohort, type SessionCohortKind, SessionIndex, SessionRunRecord, type SessionScopeOptions, type SessionScopeResult, SessionStatus, SessionSummary, SessionWarning, SessionWorkflowMetadata, StepStatus, StepType, type SuiteArtifactsConfig, type SuiteCaseConfig, type SuiteCaseResult, type SuiteCaseStatus, type SuiteChecksConfig, type SuiteConfig, type SuiteDiagnostic, type SuiteDiagnosticCode, type SuiteEvalConfig, type SuiteRunResult, type SuiteRunSummary, type SuiteTemplateId, TERMINAL_INDENT, type TimelineEntry, type TimelineFocus, type TimelineOptions, TraceCorrelationMetadata, TraceDirectory, type TraceDirectoryOptions, TraceEvent, type TraceFilterOptions, type TraceJsonlFormat, TraceMetadata, TraceMetadataStatus, type TraceSearchOptions, type TraceSearchResult, type TraceSessionCheckResult, type TraceStats, type TraceStatsOptions, type TraceStatsRankedRun, type TraceStatsRankedStep, type ValidateSuiteConfigResult, type ZipEntry, aggregateBundleSafeStatus, aggregateSessionCheckResults, analyzeCohort, assertBundlePathContained, assertEvidenceRelativePath, bindCheckResultsToContract, buildActivitySummary, buildBundleMetadata, buildBundleSummaryMarkdown, buildEvidenceCausalFailureViewHtml, buildEvidenceCiPackage, buildEvidenceCircuitViewHtml, buildEvidenceContractPackage, buildEvidenceContractsViewHtml, buildEvidenceDiffViewHtml, buildEvidenceFileEntries, buildEvidenceHtmlShell, buildEvidenceHtmlShellFromManifest, buildEvidenceManifest, buildEvidenceOutcomesViewHtml, buildEvidenceProvenanceViewHtml, buildEvidenceSafetyViewHtml, buildEvidenceTimelineViewHtml, buildEvidenceToolsLlmViewHtml, buildEvidenceTreeViewHtml, buildLocalExplanation, buildPlaceholderArtifact, buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildSessionIndex, buildTraceStats, buildZipArchive, bundleFailsOnSafety, bundleRunAssetRelativePath, collectResolvedContractRuleIds, collectTraceSchemaVersions, compareCohortAggregates, createAdapterPreviewCapture, createOmittedPayloadCommitment, createRunId, createStepId, defaultBundleOutputPath, defaultSuiteConfigTemplate, deriveSessionStatus, encodeEmbeddedEvidenceJson, enrichSessionRunRecord, enrichSessionSummary, ensureTraceDir, extractMetadata, extractOutcomesFromPersistedEvents, extractOutcomesFromTraceEvents, extractSessionWorkflowMetadata, filterMetasBySessionScope, filterTraces, findFirstCausalFailure, formatDuration, formatError, formatStepLabel, formatTerminalName, formatTimestamp, gateHasThresholds, getDefaultTraceDir, getIndent, getRunIdFromTraceFileName, getSuiteTemplate, getTraceFilePath, groupSessionCohorts, inferEvidenceFileRole, initializeTraceFile, isAgentInspectTrace, isSha256Hex, listSuiteTemplates, listTraceFiles, loadSessionRunRecords, loadSuiteConfig, loadTraceMetadataList, normalizeBundleOutputPath, normalizeSuiteConfig, omittedPayloadByteLength, parseCohortMetricList, parseDuration, parseDurationFilter, parseEvidenceManifestJson, parseGateList, parseGateNumber, parseGroupBySpec, parseTraceJsonl, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readCheckResultsContractBinding, readTraceEvents, readTraceFile, renderActivitySummaryHuman, renderCohortReport, renderCohortSummaryMarkdown, renderErrorLine, renderGateGithubAnnotations, renderGateGithubStepSummary, renderGateJUnit, renderGateReport, renderGateSummaryMarkdown, renderRunSummary, renderRunWhat, renderStepLine, renderSuiteReport, renderSuiteReportMarkdown, renderTimeline, renderTraceStats, resolveAdapterMaxPreviewChars, resolveBundleRunIds, resolveRedactionProfile, resolveSerializableTraceContract, resolveSuiteCaseTrace, resolveSuiteConfigPath, resolveSuiteTemplate, resolveTraceDir, runGate, runSuite, sanitizeBundleRunId, searchTraces, serializeAdapterPreview, serializeCanonicalJson, serializeCheckResultsJson, serializeEvent, serializeEvidenceManifest, sessionKeyForRun, sha256Equals, sha256Hex, toMetadataSafeStatus, traceMetasToSessionRunRecords, truncateName, unknownTraceFormatMessage, validateEvent, validateEvidenceManifest, validateSuiteConfig, verifyEvidenceContractBinding, verifyEvidenceDirectory, warn, writeTraceEvent };
@@ -1,17 +1,17 @@
1
- export { C as CreateInspectorOptions, D as DEFAULT_MAX_EVENT_BYTES, f as DEFAULT_MAX_METADATA_VALUE_LENGTH, h as DEFAULT_MAX_PREVIEW_LENGTH, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, i as InspectorRuntime, j as InspectorRuntimeContext, k as InspectorRuntimeDiagnostics, l as InspectorRuntimeOptions, d as InspectorStepOptions, T as TraceSafetyOptions, e as createInspector, n as createInspectorRuntime, o as getCurrentContext, g as getCurrentCorrelationMetadata, p as getCurrentDepth, q as getCurrentRunId, r as getCurrentRunName, s as getCurrentStepId, t as getParentStepId, u as getTraceDirFromContext, v as getTraceSafetyFromContext, w as hasActiveContext, x as isAgentInspectEnabled, y as isSilentContext, m as maybeInspectRun, z as prepareMetadataForDisk, A as prepareTraceEventForDisk, B as resolveTraceSafetyOptions, E as runWithContext, F as runWithStepContext } from './context-DOX2-RjH.js';
2
- import { R as RedactionRule } from './log-config-OZRfpHED.js';
3
- import { R as RedactionProfile, i as TraceEvent, E as ErrorInfo, b as RunStatus, e as StepStatus, k as RunSummary, l as TraceMetadata, T as TraceMetadataStatus, f as StepType, h as TraceCorrelationMetadata } from './types-Bx3mEZ04.js';
4
- export { A as ActiveStepContext, j as ExecutionContext, I as InspectRunOptions, O as ObserveOptions, a as Run, m as RunCompletedEvent, n as RunStartedEvent, c as Step, o as StepCompletedEvent, d as StepMetadata, S as StepOptions, p as StepStartedEvent, g as TokenMetadata, q as TraceEventBase, r as TraceSchemaVersion, s as isStepStatus, t as isStepType, u as isTraceEvent } from './types-Bx3mEZ04.js';
5
- import { a as InspectRunTree } from './inspect-event-DRthdZlf.js';
6
- export { A as AttributionConfidence, E as EventSource, c as InspectEvent, I as InspectKind, b as InspectNode } from './inspect-event-DRthdZlf.js';
7
- import { P as PersistedInspectEvent } from './persisted-inspect-event-BVucFVrP.js';
1
+ export { C as CreateInspectorOptions, D as DEFAULT_MAX_EVENT_BYTES, f as DEFAULT_MAX_METADATA_VALUE_LENGTH, h as DEFAULT_MAX_PREVIEW_LENGTH, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, i as InspectorRuntime, j as InspectorRuntimeContext, k as InspectorRuntimeDiagnostics, l as InspectorRuntimeOptions, d as InspectorStepOptions, T as TraceSafetyOptions, e as createInspector, n as createInspectorRuntime, o as getCurrentContext, g as getCurrentCorrelationMetadata, p as getCurrentDepth, q as getCurrentRunId, r as getCurrentRunName, s as getCurrentStepId, t as getParentStepId, u as getTraceDirFromContext, v as getTraceSafetyFromContext, w as hasActiveContext, x as isAgentInspectEnabled, y as isSilentContext, m as maybeInspectRun, z as prepareMetadataForDisk, A as prepareTraceEventForDisk, B as resolveTraceSafetyOptions, E as runWithContext, F as runWithStepContext } from './context-DgcvkJ9t.js';
2
+ import { R as RedactionRule } from './log-config-N_c5AE09.js';
3
+ import { R as RedactionProfile, h as TraceEvent, E as ErrorInfo, b as RunStatus, e as StepStatus, k as RunSummary, l as TraceMetadata, j as TraceMetadataStatus, f as StepType, g as TraceCorrelationMetadata } from './types-xv9bSgOK.js';
4
+ export { A as ActiveStepContext, i as ExecutionContext, I as InspectRunOptions, O as ObserveOptions, a as Run, m as RunCompletedEvent, n as RunStartedEvent, c as Step, o as StepCompletedEvent, d as StepMetadata, S as StepOptions, p as StepStartedEvent, T as TokenMetadata, q as TraceEventBase, r as TraceSchemaVersion, s as isStepStatus, t as isStepType, u as isTraceEvent } from './types-xv9bSgOK.js';
5
+ import { a as InspectRunTree } from './inspect-event-CDqjcrG_.js';
6
+ export { A as AttributionConfidence, E as EventSource, b as InspectEvent, I as InspectKind, c as InspectNode } from './inspect-event-CDqjcrG_.js';
7
+ import { P as PersistedInspectEvent } from './persisted-inspect-event-CbaRYpbw.js';
8
8
  import { Stats } from 'node:fs';
9
- import { S as SessionWorkflowMetadata, al as SessionRunRecord, am as EnrichSessionSummaryOptions, an as SessionStatus, ao as SessionSummary, ap as SessionIndex, aq as BuildActivitySummaryOptions, ar as ActivitySummary, as as SessionWarning, at as BuildSessionIndexOptions, c as TraceCheckResult, P as TraceCheckStatus } from './index-CtK_p-ps.js';
10
- export { au as ActivityEntry, av as CriticalPathStep, aw as HandoffEdge, ax as RetryLink, ay as SESSION_WORKFLOW_KEYS, az as SessionCheckSummary, aA as SessionConfidence, aB as SessionEdgeSource, aC as SessionGroup, aD as SessionLastError, aE as SessionWorkflowKey } from './index-CtK_p-ps.js';
11
- import { b as ObservedOutcome } from './types-B562HgN_.js';
12
- export { O as ObservedOutcomeStatus } from './types-B562HgN_.js';
9
+ import { aR as SessionWorkflowMetadata, aS as SessionRunRecord, aT as EnrichSessionSummaryOptions, aU as SessionStatus, aV as SessionSummary, aW as SessionIndex, aX as BuildActivitySummaryOptions, aY as ActivitySummary, aZ as SessionWarning, a_ as BuildSessionIndexOptions, N as TraceCheckResult, X as TraceCheckStatus, a2 as TraceContractInput, Z as TraceContract } from './index-BOA1AeEU.js';
10
+ export { a$ as ActivityEntry, b0 as CriticalPathStep, b1 as HandoffEdge, b2 as RetryLink, b3 as SESSION_WORKFLOW_KEYS, b4 as SessionCheckSummary, b5 as SessionConfidence, b6 as SessionEdgeSource, b7 as SessionGroup, b8 as SessionLastError, b9 as SessionWorkflowKey } from './index-BOA1AeEU.js';
11
+ import { b as ObservedOutcome } from './types-BA_IOdg4.js';
12
+ export { a as ObservedOutcomeStatus } from './types-BA_IOdg4.js';
13
13
  import './writers.js';
14
- import './index-D72DPqAF.js';
14
+ import './index-BzyNPfLm.js';
15
15
 
16
16
  interface ResolvedRedactionProfile {
17
17
  profile: RedactionProfile;
@@ -743,7 +743,48 @@ type EvidenceFormatVersion = "1.0";
743
743
  type EvidenceSafeStatus = "SAFE" | "SAFE WITH WARNINGS" | "UNSAFE" | "UNKNOWN";
744
744
  type EvidenceRedactionProfile = "local" | "share" | "strict";
745
745
  type EvidenceVerificationPolicy = "development" | "local" | "share" | "strict";
746
- type EvidenceFileRole = "report" | "redacted-trace" | "checks" | "redaction-report" | "summary" | "other";
746
+ type EvidenceFileRole = "report" | "redacted-trace" | "checks" | "contract" | "redaction-report" | "summary" | "other";
747
+ /** How a packaged contract/preset was supplied (6.28+). */
748
+ type EvidenceContractBindingSource = "file" | "inline" | "preset" | "cli-shorthand" | "programmatic";
749
+ /** Reproducibility honesty for contract binding (6.28+). */
750
+ type EvidenceContractBindingStatus = "complete" | "partial" | "unavailable";
751
+ /**
752
+ * Optional Evidence v2 contract binding (6.28+).
753
+ * Additive; older readers ignore unknown fields. Not a signature or trusted-time claim.
754
+ */
755
+ interface EvidenceContractBinding {
756
+ status: EvidenceContractBindingStatus;
757
+ source: EvidenceContractBindingSource;
758
+ contractId?: string;
759
+ contractVersion?: string;
760
+ canonicalizationVersion: "1";
761
+ engineVersion: string;
762
+ /** Relative packaged path (typically `contract.resolved.json`). */
763
+ path?: string;
764
+ /** SHA-256 of the packaged resolved-contract bytes. */
765
+ sha256?: string;
766
+ ruleIds: string[];
767
+ unsupportedRuleIds?: string[];
768
+ note?: string;
769
+ }
770
+ /**
771
+ * Optional fields embedded in `check-results.json` to bind results to a contract digest.
772
+ */
773
+ interface EvidenceCheckContractBinding {
774
+ contractDigest?: string;
775
+ canonicalizationVersion?: "1";
776
+ engineVersion?: string;
777
+ evaluatedRuleIds?: string[];
778
+ bindingStatus?: EvidenceContractBindingStatus;
779
+ unsupportedRuleIds?: string[];
780
+ origin?: {
781
+ source: EvidenceContractBindingSource;
782
+ preset?: string;
783
+ path?: string;
784
+ };
785
+ selectedScope?: Record<string, unknown>;
786
+ selectedAlternativeBranch?: string;
787
+ }
747
788
  interface EvidenceSourceHash {
748
789
  runId: string;
749
790
  algorithm: "sha256";
@@ -780,6 +821,11 @@ interface EvidenceManifest {
780
821
  * Additive; older readers ignore unknown fields.
781
822
  */
782
823
  semantics?: EvidenceSemantics;
824
+ /**
825
+ * Optional resolved-contract binding (6.28+).
826
+ * Additive; older readers ignore unknown fields.
827
+ */
828
+ contract?: EvidenceContractBinding;
783
829
  files: EvidenceFileEntry[];
784
830
  }
785
831
  /**
@@ -818,6 +864,8 @@ interface EvidencePackagedFile {
818
864
  declare const EVIDENCE_FORMAT_VERSION: EvidenceFormatVersion;
819
865
  declare const EVIDENCE_ASSESSMENT_NOTE = "Best-effort local safety verification only; not a compliance certification.";
820
866
  declare const EVIDENCE_MANIFEST_FILENAME = "evidence.json";
867
+ /** Packaged resolved TraceContract / check-preset snapshot (6.28+). */
868
+ declare const EVIDENCE_RESOLVED_CONTRACT_FILENAME = "contract.resolved.json";
821
869
 
822
870
  /**
823
871
  * SHA-256 hex digest of exact bytes (UTF-8 when `data` is a string).
@@ -859,6 +907,7 @@ declare function buildEvidenceManifest(parts: {
859
907
  createdAt?: string;
860
908
  note?: string;
861
909
  semantics?: EvidenceManifest["semantics"];
910
+ contract?: EvidenceManifest["contract"];
862
911
  }): EvidenceManifest;
863
912
  /**
864
913
  * Minimal structural validation for a parsed evidence manifest object.
@@ -871,6 +920,105 @@ declare function parseEvidenceManifestJson(text: string): EvidenceManifest;
871
920
  */
872
921
  declare function collectTraceSchemaVersions(jsonl: string): string[];
873
922
 
923
+ /**
924
+ * Evidence v2 contract binding (6.28) — package a resolved serializable
925
+ * TraceContract / check-preset snapshot and bind its digest to check results.
926
+ *
927
+ * Does not claim producer identity, trusted time, or semantic proof.
928
+ */
929
+
930
+ declare const EVIDENCE_CONTRACT_CANONICALIZATION_VERSION: "1";
931
+ declare const EVIDENCE_CONTRACT_PARTIAL_NOTE = "Custom or programmatic rules are not serializable; Evidence records rule IDs only and does not claim complete reviewer replay.";
932
+ declare const EVIDENCE_CONTRACT_UNAVAILABLE_NOTE = "No resolved TraceContract or check preset was packaged with this Evidence artifact.";
933
+ declare const EVIDENCE_CONTRACT_ASSURANCE_NOTE = "Contract binding verifies packaged digest integrity only; it does not prove producer identity, trusted time, source completeness, semantic truth, or external acceptance.";
934
+ /** Deterministic JSON (sorted keys) with trailing newline. */
935
+ declare function serializeCanonicalJson(value: unknown): string;
936
+ /**
937
+ * Normalize TraceContract aliases and make common evaluator defaults explicit
938
+ * for canonicalization version `"1"`.
939
+ */
940
+ declare function resolveSerializableTraceContract(input: TraceContractInput | TraceContract): TraceContract;
941
+ /**
942
+ * Static rule-id inventory implied by a resolved TraceContract (no evaluation).
943
+ */
944
+ declare function collectResolvedContractRuleIds(contract: TraceContract): string[];
945
+ interface ResolvedContractDocument {
946
+ canonicalizationVersion: typeof EVIDENCE_CONTRACT_CANONICALIZATION_VERSION;
947
+ kind: "trace-contract" | "check-preset";
948
+ resolved: Record<string, unknown>;
949
+ origin: {
950
+ source: EvidenceContractBindingSource;
951
+ preset?: string;
952
+ path?: string;
953
+ };
954
+ }
955
+ interface BuildEvidenceContractPackageInput {
956
+ engineVersion: string;
957
+ source: EvidenceContractBindingSource;
958
+ /** Serializable TraceContract (preferred for `complete`). */
959
+ contract?: TraceContractInput | TraceContract;
960
+ /**
961
+ * Pre-resolved check preset / CLI shorthand snapshot (caller expands).
962
+ * Used when `contract` is omitted or as origin metadata beside a contract.
963
+ */
964
+ preset?: {
965
+ name: string;
966
+ resolved: Record<string, unknown>;
967
+ };
968
+ /** Original config path (omit or redact when sensitive). */
969
+ path?: string;
970
+ contractId?: string;
971
+ contractVersion?: string;
972
+ /**
973
+ * Stable IDs for programmatic / custom rules that cannot be serialized.
974
+ * Presence forces `status: "partial"`.
975
+ */
976
+ unsupportedRuleIds?: readonly string[];
977
+ /** Override rule ID list (defaults to static inventory from the contract / preset select). */
978
+ ruleIds?: readonly string[];
979
+ note?: string;
980
+ }
981
+ interface EvidenceContractPackage {
982
+ /** Packaged `contract.resolved.json` when a serializable snapshot exists. */
983
+ file?: EvidencePackagedFile;
984
+ binding: EvidenceContractBinding;
985
+ /** Fields to merge into `check-results.json`. */
986
+ checkBinding: EvidenceCheckContractBinding;
987
+ /** Canonical document bytes when packaged (same as `file.content`). */
988
+ resolvedJson?: string;
989
+ }
990
+ /**
991
+ * Build a resolved contract artifact + Evidence binding for packaging.
992
+ *
993
+ * Pass no `contract` and no `preset` to record an honest `unavailable` binding
994
+ * (missing-contract case). Pass `unsupportedRuleIds` to force `partial`.
995
+ */
996
+ declare function buildEvidenceContractPackage(input: BuildEvidenceContractPackageInput): EvidenceContractPackage;
997
+ /**
998
+ * Merge contract-binding fields into a check-results JSON object (additive).
999
+ */
1000
+ declare function bindCheckResultsToContract(checkResults: Record<string, unknown>, checkBinding: EvidenceCheckContractBinding): Record<string, unknown>;
1001
+ declare function serializeCheckResultsJson(value: unknown): string;
1002
+ /**
1003
+ * Parse the optional `contract` object from check-results.json when present.
1004
+ */
1005
+ declare function readCheckResultsContractBinding(checkResultsJson: string): EvidenceCheckContractBinding | undefined;
1006
+ interface EvidenceContractVerifyIssue {
1007
+ code: "contract_file_missing" | "contract_hash_mismatch" | "contract_digest_mismatch" | "contract_binding_invalid";
1008
+ severity: "error" | "warning";
1009
+ message: string;
1010
+ path?: string;
1011
+ }
1012
+ /**
1013
+ * Verify digest binding between manifest.contract, contract.resolved.json, and
1014
+ * check-results.json. Older Evidence without `manifest.contract` is a no-op.
1015
+ */
1016
+ declare function verifyEvidenceContractBinding(parts: {
1017
+ binding?: EvidenceContractBinding;
1018
+ resolvedContractBytes?: string | Uint8Array;
1019
+ checkResultsJson?: string;
1020
+ }): EvidenceContractVerifyIssue[];
1021
+
874
1022
  declare const EVIDENCE_HTML_FILENAME = "evidence.html";
875
1023
  /** View ids reserved for later 6.10 chunks; shell renders stubs except summary. */
876
1024
  declare const EVIDENCE_VIEW_IDS: readonly ["summary", "tree", "timeline", "causal", "tools-llm", "outcomes", "contracts", "circuit", "diff", "safety", "provenance"];
@@ -1048,7 +1196,7 @@ declare function buildZipArchive(entries: readonly ZipEntry[]): Buffer;
1048
1196
 
1049
1197
  type EvidenceVerifyStatus = "pass" | "fail";
1050
1198
  interface EvidenceVerifyIssue {
1051
- code: "manifest_missing" | "manifest_invalid" | "file_missing" | "file_unexpected" | "hash_mismatch" | "assessment_missing" | "provenance_missing" | "path_unsafe" | "io_error";
1199
+ code: "manifest_missing" | "manifest_invalid" | "file_missing" | "file_unexpected" | "hash_mismatch" | "assessment_missing" | "provenance_missing" | "path_unsafe" | "io_error" | "contract_file_missing" | "contract_hash_mismatch" | "contract_digest_mismatch" | "contract_binding_invalid";
1052
1200
  severity: "error" | "warning";
1053
1201
  message: string;
1054
1202
  path?: string;
@@ -1086,16 +1234,24 @@ interface EvidenceCiPackageInput {
1086
1234
  summaryText?: string;
1087
1235
  /** Optional TraceFacts/parity summary embedded in evidence.json (6.14+). */
1088
1236
  semantics?: EvidenceManifest["semantics"];
1237
+ /**
1238
+ * Optional TraceContract / preset binding (6.28+).
1239
+ * When omitted, no contract section is written (older Evidence shape).
1240
+ * Pass `{ engineVersion, source }` with neither contract nor preset to record `unavailable`.
1241
+ */
1242
+ contractPackage?: BuildEvidenceContractPackageInput;
1089
1243
  }
1090
1244
  interface EvidenceCiPackageFiles {
1091
1245
  "evidence.html": string;
1092
1246
  "evidence.json": string;
1093
1247
  "check-results.json": string;
1094
1248
  "trace.jsonl": string;
1249
+ "contract.resolved.json"?: string;
1095
1250
  manifest: EvidenceManifest;
1096
1251
  }
1097
1252
  /**
1098
- * Build the four standard CI evidence files (in memory) using Evidence v2 helpers.
1253
+ * Build the standard CI evidence files (in memory) using Evidence v2 helpers.
1254
+ * Optionally packages `contract.resolved.json` and binds digests (6.28+).
1099
1255
  */
1100
1256
  declare function buildEvidenceCiPackage(input: EvidenceCiPackageInput): EvidenceCiPackageFiles;
1101
1257
 
@@ -1427,4 +1583,4 @@ declare function createOmittedPayloadCommitment(payload: string | Uint8Array, op
1427
1583
  capturePolicy?: OmittedPayloadCommitment["capturePolicy"];
1428
1584
  }): OmittedPayloadCommitment;
1429
1585
 
1430
- export { ADAPTER_CAPTURE_DIAGNOSTIC_CODES, ActivitySummary, type AdapterCaptureDiagnostic, type AdapterCaptureDiagnosticCode, type AdapterCaptureDiagnostics, type AdapterCaptureMode, type AdapterDiagnosticListener, type AdapterPreviewCapture, type AdapterPreviewCaptureOptions, type AnalyzeCohortOptions, BuildActivitySummaryOptions, BuildSessionIndexOptions, type BundleCheckResults, type BundleCheckRunResult, type BundleMetadata, type BundlePlaceholderArtifact, type BundleRedactionProfile, type BundleRedactionReport, type BundleRedactionReportRun, type BundleResolveOptions, type BundleResolveResult, type BundleSafeStatus, type BundleSafeStatusMetadata, COHORT_METRIC_IDS, type CausalContractFindingInput, type CausalFailureKind, type CohortAggregateMetrics, type CohortAnalysisResult, type CohortMetricComparison, type CohortMetricId, type CohortRunMetrics, DEFAULT_ADAPTER_MAX_PREVIEW_CHARS, DEFAULT_SUITE_ARTIFACTS_DIR, DEFAULT_SUITE_CONFIG_NAMES, DEFAULT_TRACE_DIR_NAME, type DurationStats, EVIDENCE_ASSESSMENT_NOTE, EVIDENCE_FORMAT_VERSION, EVIDENCE_HTML_FILENAME, EVIDENCE_MANIFEST_FILENAME, EVIDENCE_VIEW_CSS, EVIDENCE_VIEW_IDS, EnrichSessionSummaryOptions, ErrorInfo, type EvidenceCheckFindingSummary, type EvidenceCiPackageFiles, type EvidenceCiPackageInput, type EvidenceContractsViewInput, type EvidenceFileEntry, type EvidenceFileRole, type EvidenceFormatVersion, type EvidenceHtmlShellInput, type EvidenceManifest, type EvidencePackagedFile, type EvidenceProvenanceViewInput, type EvidenceRedactionProfile, type EvidenceSafeStatus, type EvidenceSafetyViewInput, type EvidenceSourceHash, type EvidenceVerificationPolicy, type EvidenceVerifyIssue, type EvidenceVerifyOptions, type EvidenceVerifyResult, type EvidenceVerifyStatus, type EvidenceViewId, type ExplainFact, type ExplainInference, type ExplainMode, type ExplainOptions, type ExplainResult, FALLBACK_TRACE_DIR, type FindFirstCausalFailureOptions, type FirstCausalFailure, type GateCheckId, type GateCheckResult, type GateExitCode, type GateResult, type GroupSessionCohortsOptions, InspectRunTree, type LoadSuiteConfigOptions, MAX_NAME_LENGTH, MAX_TERMINAL_DEPTH, MAX_TERMINAL_NAME_LENGTH, OMITTED_PAYLOAD_MAX_DIGEST_INPUT_BYTES, ObservedOutcome, type OmittedPayloadAlgorithm, type OmittedPayloadCommitment, type ParseTraceJsonlOptions, type ParseTraceJsonlResult, type ParsedDurationFilter, RUNS_DIR_NAME, RedactionProfile, type RenderCohortReportOptions, type RenderGateReportOptions, type RenderSuiteReportOptions, type RenderTimelineOptions, type RenderWhatOptions, type ResolvedRedactionProfile, type ResolvedSuiteCase, type RunGateOptions, RunStatus, type RunSuiteOptions, RunSummary, type RunTimeline, type RunWhatSummary, SUITE_TEMPLATE_IDS, type SessionCohort, type SessionCohortKind, SessionIndex, SessionRunRecord, type SessionScopeOptions, type SessionScopeResult, SessionStatus, SessionSummary, SessionWarning, SessionWorkflowMetadata, StepStatus, StepType, type SuiteArtifactsConfig, type SuiteCaseConfig, type SuiteCaseResult, type SuiteCaseStatus, type SuiteChecksConfig, type SuiteConfig, type SuiteDiagnostic, type SuiteDiagnosticCode, type SuiteEvalConfig, type SuiteRunResult, type SuiteRunSummary, type SuiteTemplateId, TERMINAL_INDENT, type TimelineEntry, type TimelineFocus, type TimelineOptions, TraceCorrelationMetadata, TraceDirectory, type TraceDirectoryOptions, TraceEvent, type TraceFilterOptions, type TraceJsonlFormat, TraceMetadata, TraceMetadataStatus, type TraceSearchOptions, type TraceSearchResult, type TraceSessionCheckResult, type TraceStats, type TraceStatsOptions, type TraceStatsRankedRun, type TraceStatsRankedStep, type ValidateSuiteConfigResult, type ZipEntry, aggregateBundleSafeStatus, aggregateSessionCheckResults, analyzeCohort, assertBundlePathContained, assertEvidenceRelativePath, buildActivitySummary, buildBundleMetadata, buildBundleSummaryMarkdown, buildEvidenceCausalFailureViewHtml, buildEvidenceCiPackage, buildEvidenceCircuitViewHtml, buildEvidenceContractsViewHtml, buildEvidenceDiffViewHtml, buildEvidenceFileEntries, buildEvidenceHtmlShell, buildEvidenceHtmlShellFromManifest, buildEvidenceManifest, buildEvidenceOutcomesViewHtml, buildEvidenceProvenanceViewHtml, buildEvidenceSafetyViewHtml, buildEvidenceTimelineViewHtml, buildEvidenceToolsLlmViewHtml, buildEvidenceTreeViewHtml, buildLocalExplanation, buildPlaceholderArtifact, buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildSessionIndex, buildTraceStats, buildZipArchive, bundleFailsOnSafety, bundleRunAssetRelativePath, collectTraceSchemaVersions, compareCohortAggregates, createAdapterPreviewCapture, createOmittedPayloadCommitment, createRunId, createStepId, defaultBundleOutputPath, defaultSuiteConfigTemplate, deriveSessionStatus, encodeEmbeddedEvidenceJson, enrichSessionRunRecord, enrichSessionSummary, ensureTraceDir, extractMetadata, extractOutcomesFromPersistedEvents, extractOutcomesFromTraceEvents, extractSessionWorkflowMetadata, filterMetasBySessionScope, filterTraces, findFirstCausalFailure, formatDuration, formatError, formatStepLabel, formatTerminalName, formatTimestamp, gateHasThresholds, getDefaultTraceDir, getIndent, getRunIdFromTraceFileName, getSuiteTemplate, getTraceFilePath, groupSessionCohorts, inferEvidenceFileRole, initializeTraceFile, isAgentInspectTrace, isSha256Hex, listSuiteTemplates, listTraceFiles, loadSessionRunRecords, loadSuiteConfig, loadTraceMetadataList, normalizeBundleOutputPath, normalizeSuiteConfig, omittedPayloadByteLength, parseCohortMetricList, parseDuration, parseDurationFilter, parseEvidenceManifestJson, parseGateList, parseGateNumber, parseGroupBySpec, parseTraceJsonl, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readTraceEvents, readTraceFile, renderActivitySummaryHuman, renderCohortReport, renderCohortSummaryMarkdown, renderErrorLine, renderGateGithubAnnotations, renderGateGithubStepSummary, renderGateJUnit, renderGateReport, renderGateSummaryMarkdown, renderRunSummary, renderRunWhat, renderStepLine, renderSuiteReport, renderSuiteReportMarkdown, renderTimeline, renderTraceStats, resolveAdapterMaxPreviewChars, resolveBundleRunIds, resolveRedactionProfile, resolveSuiteCaseTrace, resolveSuiteConfigPath, resolveSuiteTemplate, resolveTraceDir, runGate, runSuite, sanitizeBundleRunId, searchTraces, serializeAdapterPreview, serializeEvent, serializeEvidenceManifest, sessionKeyForRun, sha256Equals, sha256Hex, toMetadataSafeStatus, traceMetasToSessionRunRecords, truncateName, unknownTraceFormatMessage, validateEvent, validateEvidenceManifest, validateSuiteConfig, verifyEvidenceDirectory, warn, writeTraceEvent };
1586
+ export { ADAPTER_CAPTURE_DIAGNOSTIC_CODES, ActivitySummary, type AdapterCaptureDiagnostic, type AdapterCaptureDiagnosticCode, type AdapterCaptureDiagnostics, type AdapterCaptureMode, type AdapterDiagnosticListener, type AdapterPreviewCapture, type AdapterPreviewCaptureOptions, type AnalyzeCohortOptions, BuildActivitySummaryOptions, type BuildEvidenceContractPackageInput, BuildSessionIndexOptions, type BundleCheckResults, type BundleCheckRunResult, type BundleMetadata, type BundlePlaceholderArtifact, type BundleRedactionProfile, type BundleRedactionReport, type BundleRedactionReportRun, type BundleResolveOptions, type BundleResolveResult, type BundleSafeStatus, type BundleSafeStatusMetadata, COHORT_METRIC_IDS, type CausalContractFindingInput, type CausalFailureKind, type CohortAggregateMetrics, type CohortAnalysisResult, type CohortMetricComparison, type CohortMetricId, type CohortRunMetrics, DEFAULT_ADAPTER_MAX_PREVIEW_CHARS, DEFAULT_SUITE_ARTIFACTS_DIR, DEFAULT_SUITE_CONFIG_NAMES, DEFAULT_TRACE_DIR_NAME, type DurationStats, EVIDENCE_ASSESSMENT_NOTE, EVIDENCE_CONTRACT_ASSURANCE_NOTE, EVIDENCE_CONTRACT_CANONICALIZATION_VERSION, EVIDENCE_CONTRACT_PARTIAL_NOTE, EVIDENCE_CONTRACT_UNAVAILABLE_NOTE, EVIDENCE_FORMAT_VERSION, EVIDENCE_HTML_FILENAME, EVIDENCE_MANIFEST_FILENAME, EVIDENCE_RESOLVED_CONTRACT_FILENAME, EVIDENCE_VIEW_CSS, EVIDENCE_VIEW_IDS, EnrichSessionSummaryOptions, ErrorInfo, type EvidenceCheckContractBinding, type EvidenceCheckFindingSummary, type EvidenceCiPackageFiles, type EvidenceCiPackageInput, type EvidenceContractBinding, type EvidenceContractBindingSource, type EvidenceContractBindingStatus, type EvidenceContractPackage, type EvidenceContractVerifyIssue, type EvidenceContractsViewInput, type EvidenceFileEntry, type EvidenceFileRole, type EvidenceFormatVersion, type EvidenceHtmlShellInput, type EvidenceManifest, type EvidencePackagedFile, type EvidenceProvenanceViewInput, type EvidenceRedactionProfile, type EvidenceSafeStatus, type EvidenceSafetyViewInput, type EvidenceSourceHash, type EvidenceVerificationPolicy, type EvidenceVerifyIssue, type EvidenceVerifyOptions, type EvidenceVerifyResult, type EvidenceVerifyStatus, type EvidenceViewId, type ExplainFact, type ExplainInference, type ExplainMode, type ExplainOptions, type ExplainResult, FALLBACK_TRACE_DIR, type FindFirstCausalFailureOptions, type FirstCausalFailure, type GateCheckId, type GateCheckResult, type GateExitCode, type GateResult, type GroupSessionCohortsOptions, InspectRunTree, type LoadSuiteConfigOptions, MAX_NAME_LENGTH, MAX_TERMINAL_DEPTH, MAX_TERMINAL_NAME_LENGTH, OMITTED_PAYLOAD_MAX_DIGEST_INPUT_BYTES, ObservedOutcome, type OmittedPayloadAlgorithm, type OmittedPayloadCommitment, type ParseTraceJsonlOptions, type ParseTraceJsonlResult, type ParsedDurationFilter, RUNS_DIR_NAME, RedactionProfile, type RenderCohortReportOptions, type RenderGateReportOptions, type RenderSuiteReportOptions, type RenderTimelineOptions, type RenderWhatOptions, type ResolvedContractDocument, type ResolvedRedactionProfile, type ResolvedSuiteCase, type RunGateOptions, RunStatus, type RunSuiteOptions, RunSummary, type RunTimeline, type RunWhatSummary, SUITE_TEMPLATE_IDS, type SessionCohort, type SessionCohortKind, SessionIndex, SessionRunRecord, type SessionScopeOptions, type SessionScopeResult, SessionStatus, SessionSummary, SessionWarning, SessionWorkflowMetadata, StepStatus, StepType, type SuiteArtifactsConfig, type SuiteCaseConfig, type SuiteCaseResult, type SuiteCaseStatus, type SuiteChecksConfig, type SuiteConfig, type SuiteDiagnostic, type SuiteDiagnosticCode, type SuiteEvalConfig, type SuiteRunResult, type SuiteRunSummary, type SuiteTemplateId, TERMINAL_INDENT, type TimelineEntry, type TimelineFocus, type TimelineOptions, TraceCorrelationMetadata, TraceDirectory, type TraceDirectoryOptions, TraceEvent, type TraceFilterOptions, type TraceJsonlFormat, TraceMetadata, TraceMetadataStatus, type TraceSearchOptions, type TraceSearchResult, type TraceSessionCheckResult, type TraceStats, type TraceStatsOptions, type TraceStatsRankedRun, type TraceStatsRankedStep, type ValidateSuiteConfigResult, type ZipEntry, aggregateBundleSafeStatus, aggregateSessionCheckResults, analyzeCohort, assertBundlePathContained, assertEvidenceRelativePath, bindCheckResultsToContract, buildActivitySummary, buildBundleMetadata, buildBundleSummaryMarkdown, buildEvidenceCausalFailureViewHtml, buildEvidenceCiPackage, buildEvidenceCircuitViewHtml, buildEvidenceContractPackage, buildEvidenceContractsViewHtml, buildEvidenceDiffViewHtml, buildEvidenceFileEntries, buildEvidenceHtmlShell, buildEvidenceHtmlShellFromManifest, buildEvidenceManifest, buildEvidenceOutcomesViewHtml, buildEvidenceProvenanceViewHtml, buildEvidenceSafetyViewHtml, buildEvidenceTimelineViewHtml, buildEvidenceToolsLlmViewHtml, buildEvidenceTreeViewHtml, buildLocalExplanation, buildPlaceholderArtifact, buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildSessionIndex, buildTraceStats, buildZipArchive, bundleFailsOnSafety, bundleRunAssetRelativePath, collectResolvedContractRuleIds, collectTraceSchemaVersions, compareCohortAggregates, createAdapterPreviewCapture, createOmittedPayloadCommitment, createRunId, createStepId, defaultBundleOutputPath, defaultSuiteConfigTemplate, deriveSessionStatus, encodeEmbeddedEvidenceJson, enrichSessionRunRecord, enrichSessionSummary, ensureTraceDir, extractMetadata, extractOutcomesFromPersistedEvents, extractOutcomesFromTraceEvents, extractSessionWorkflowMetadata, filterMetasBySessionScope, filterTraces, findFirstCausalFailure, formatDuration, formatError, formatStepLabel, formatTerminalName, formatTimestamp, gateHasThresholds, getDefaultTraceDir, getIndent, getRunIdFromTraceFileName, getSuiteTemplate, getTraceFilePath, groupSessionCohorts, inferEvidenceFileRole, initializeTraceFile, isAgentInspectTrace, isSha256Hex, listSuiteTemplates, listTraceFiles, loadSessionRunRecords, loadSuiteConfig, loadTraceMetadataList, normalizeBundleOutputPath, normalizeSuiteConfig, omittedPayloadByteLength, parseCohortMetricList, parseDuration, parseDurationFilter, parseEvidenceManifestJson, parseGateList, parseGateNumber, parseGroupBySpec, parseTraceJsonl, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readCheckResultsContractBinding, readTraceEvents, readTraceFile, renderActivitySummaryHuman, renderCohortReport, renderCohortSummaryMarkdown, renderErrorLine, renderGateGithubAnnotations, renderGateGithubStepSummary, renderGateJUnit, renderGateReport, renderGateSummaryMarkdown, renderRunSummary, renderRunWhat, renderStepLine, renderSuiteReport, renderSuiteReportMarkdown, renderTimeline, renderTraceStats, resolveAdapterMaxPreviewChars, resolveBundleRunIds, resolveRedactionProfile, resolveSerializableTraceContract, resolveSuiteCaseTrace, resolveSuiteConfigPath, resolveSuiteTemplate, resolveTraceDir, runGate, runSuite, sanitizeBundleRunId, searchTraces, serializeAdapterPreview, serializeCanonicalJson, serializeCheckResultsJson, serializeEvent, serializeEvidenceManifest, sessionKeyForRun, sha256Equals, sha256Hex, toMetadataSafeStatus, traceMetasToSessionRunRecords, truncateName, unknownTraceFormatMessage, validateEvent, validateEvidenceManifest, validateSuiteConfig, verifyEvidenceContractBinding, verifyEvidenceDirectory, warn, writeTraceEvent };