agent-inspect 6.27.0 → 6.29.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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/docs/BUNDLES.md +4 -1
- package/docs/LIMITATIONS.md +1 -1
- package/docs/SAFE-TRACE-SHARING.md +2 -0
- package/docs/SCHEMA.md +1 -1
- package/package.json +2 -1
- package/packages/cli/dist/{chunk-WQITHDXH.mjs → chunk-D7PT6TXM.mjs} +4368 -3805
- package/packages/cli/dist/chunk-D7PT6TXM.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +4593 -4019
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +4 -4
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-T2ATN6XF.mjs → src-QONEBW2F.mjs} +3 -3
- package/packages/cli/dist/{src-T2ATN6XF.mjs.map → src-QONEBW2F.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +3062 -2490
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.d.cts +174 -16
- package/packages/core/dist/advanced.d.ts +174 -16
- package/packages/core/dist/advanced.mjs +374 -44
- package/packages/core/dist/advanced.mjs.map +1 -1
- package/packages/core/dist/checks.cjs +10 -1
- package/packages/core/dist/checks.cjs.map +1 -1
- package/packages/core/dist/checks.d.cts +9 -476
- package/packages/core/dist/checks.d.ts +9 -476
- package/packages/core/dist/checks.mjs +5 -5
- package/packages/core/dist/{chunk-U25RHRSU.mjs → chunk-3B24355S.mjs} +12 -5
- package/packages/core/dist/chunk-3B24355S.mjs.map +1 -0
- package/packages/core/dist/{chunk-NXQF73EC.mjs → chunk-5B4DNGFB.mjs} +9 -5
- package/packages/core/dist/chunk-5B4DNGFB.mjs.map +1 -0
- package/packages/core/dist/{chunk-NDRMIL7Z.mjs → chunk-FKUTGUFG.mjs} +12 -4
- package/packages/core/dist/chunk-FKUTGUFG.mjs.map +1 -0
- package/packages/core/dist/{chunk-B6PH7A24.mjs → chunk-LGTPSHH2.mjs} +3615 -3606
- package/packages/core/dist/chunk-LGTPSHH2.mjs.map +1 -0
- package/packages/core/dist/{chunk-R4SSYU6D.mjs → chunk-MVRZ7JBH.mjs} +3 -3
- package/packages/core/dist/{chunk-R4SSYU6D.mjs.map → chunk-MVRZ7JBH.mjs.map} +1 -1
- package/packages/core/dist/{chunk-P366CCL2.mjs → chunk-QJI52TH3.mjs} +4 -2
- package/packages/core/dist/chunk-QJI52TH3.mjs.map +1 -0
- package/packages/core/dist/{chunk-WRE4CNPF.mjs → chunk-SJ3C5RIS.mjs} +3 -3
- package/packages/core/dist/chunk-SJ3C5RIS.mjs.map +1 -0
- package/packages/core/dist/{chunk-WGDSM37E.mjs → chunk-TIGBAVED.mjs} +5 -5
- package/packages/core/dist/{chunk-WGDSM37E.mjs.map → chunk-TIGBAVED.mjs.map} +1 -1
- package/packages/core/dist/{chunk-JBNRJLIV.mjs → chunk-TNOPL75V.mjs} +33 -7
- package/packages/core/dist/chunk-TNOPL75V.mjs.map +1 -0
- package/packages/core/dist/{context-DOX2-RjH.d.ts → context-B8zzsmjX.d.ts} +4 -4
- package/packages/core/dist/{context-DOOT9GZ-.d.cts → context-BhaVHtOT.d.cts} +4 -4
- package/packages/core/dist/diff.d.cts +3 -3
- package/packages/core/dist/diff.d.ts +3 -3
- package/packages/core/dist/exporters.cjs +29 -3
- package/packages/core/dist/exporters.cjs.map +1 -1
- package/packages/core/dist/exporters.d.cts +3 -3
- package/packages/core/dist/exporters.d.ts +3 -3
- package/packages/core/dist/exporters.mjs +5 -5
- package/packages/core/dist/{index-DLLz9sce.d.cts → index-BT3KcO6-.d.cts} +2 -2
- package/packages/core/dist/{index-CR4CCRqP.d.cts → index-C61p7wBR.d.cts} +473 -6
- package/packages/core/dist/{index-CtK_p-ps.d.ts → index-DTO2iGeq.d.ts} +473 -6
- package/packages/core/dist/{index-D72DPqAF.d.ts → index-reskZCVW.d.ts} +2 -2
- package/packages/core/dist/index.cjs +10 -1
- package/packages/core/dist/index.cjs.map +1 -1
- package/packages/core/dist/index.d.cts +7 -7
- package/packages/core/dist/index.d.ts +7 -7
- package/packages/core/dist/index.mjs +6 -6
- package/packages/core/dist/{inspect-event-DRthdZlf.d.cts → inspect-event-CDqjcrG_.d.cts} +1 -1
- package/packages/core/dist/{inspect-event-DRthdZlf.d.ts → inspect-event-CDqjcrG_.d.ts} +1 -1
- package/packages/core/dist/{log-config-CFlIJHTf.d.cts → log-config-DcjV8ZjF.d.cts} +1 -1
- package/packages/core/dist/{log-config-OZRfpHED.d.ts → log-config-N_c5AE09.d.ts} +1 -1
- package/packages/core/dist/logs.d.cts +3 -3
- package/packages/core/dist/logs.d.ts +3 -3
- package/packages/core/dist/{persisted-inspect-event-BVucFVrP.d.ts → persisted-inspect-event-BMwvGIB8.d.ts} +6 -1
- package/packages/core/dist/{persisted-inspect-event-CVZWZldL.d.cts → persisted-inspect-event-DPaCiars.d.cts} +6 -1
- package/packages/core/dist/persisted.cjs +8 -2
- package/packages/core/dist/persisted.cjs.map +1 -1
- package/packages/core/dist/persisted.d.cts +5 -5
- package/packages/core/dist/persisted.d.ts +5 -5
- package/packages/core/dist/persisted.mjs +3 -3
- package/packages/core/dist/readers.cjs +16 -2
- package/packages/core/dist/readers.cjs.map +1 -1
- package/packages/core/dist/readers.d.cts +3 -3
- package/packages/core/dist/readers.d.ts +3 -3
- package/packages/core/dist/readers.mjs +4 -4
- package/packages/core/dist/{types-B562HgN_.d.cts → types-BA_IOdg4.d.cts} +1 -1
- package/packages/core/dist/{types-B562HgN_.d.ts → types-BA_IOdg4.d.ts} +1 -1
- package/packages/core/dist/{types-VzKihKQo.d.cts → types-BSzhK7Z1.d.cts} +11 -2
- package/packages/core/dist/{types-Bx3mEZ04.d.ts → types-C5Y8Idle.d.ts} +11 -2
- package/packages/core/dist/writers.cjs +10 -1
- package/packages/core/dist/writers.cjs.map +1 -1
- package/packages/core/dist/writers.d.cts +2 -2
- package/packages/core/dist/writers.d.ts +2 -2
- package/packages/core/dist/writers.mjs +3 -3
- package/packages/cli/dist/chunk-WQITHDXH.mjs.map +0 -1
- package/packages/core/dist/chunk-B6PH7A24.mjs.map +0 -1
- package/packages/core/dist/chunk-JBNRJLIV.mjs.map +0 -1
- package/packages/core/dist/chunk-NDRMIL7Z.mjs.map +0 -1
- package/packages/core/dist/chunk-NXQF73EC.mjs.map +0 -1
- package/packages/core/dist/chunk-P366CCL2.mjs.map +0 -1
- package/packages/core/dist/chunk-U25RHRSU.mjs.map +0 -1
- package/packages/core/dist/chunk-WRE4CNPF.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-
|
|
2
|
-
import { R as RedactionRule } from './log-config-
|
|
3
|
-
import { R as RedactionProfile,
|
|
4
|
-
export { A as ActiveStepContext,
|
|
5
|
-
import { a as InspectRunTree } from './inspect-event-
|
|
6
|
-
export { A as AttributionConfidence, E as EventSource,
|
|
7
|
-
import { P as PersistedInspectEvent } from './persisted-inspect-event-
|
|
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-BhaVHtOT.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-BSzhK7Z1.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-BSzhK7Z1.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-DPaCiars.cjs';
|
|
8
8
|
import { Stats } from 'node:fs';
|
|
9
|
-
import {
|
|
10
|
-
export {
|
|
11
|
-
import { b as ObservedOutcome } from './types-
|
|
12
|
-
export {
|
|
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-C61p7wBR.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-C61p7wBR.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-
|
|
14
|
+
import './index-BT3KcO6-.cjs';
|
|
15
15
|
|
|
16
16
|
interface ResolvedRedactionProfile {
|
|
17
17
|
profile: RedactionProfile;
|
|
@@ -337,6 +337,8 @@ interface RunWhatSummary {
|
|
|
337
337
|
output: number;
|
|
338
338
|
total?: number;
|
|
339
339
|
cached?: number;
|
|
340
|
+
cacheWrite?: number;
|
|
341
|
+
reasoning?: number;
|
|
340
342
|
};
|
|
341
343
|
correlation?: TraceCorrelationMetadata;
|
|
342
344
|
failedStepNames: string[];
|
|
@@ -743,7 +745,48 @@ type EvidenceFormatVersion = "1.0";
|
|
|
743
745
|
type EvidenceSafeStatus = "SAFE" | "SAFE WITH WARNINGS" | "UNSAFE" | "UNKNOWN";
|
|
744
746
|
type EvidenceRedactionProfile = "local" | "share" | "strict";
|
|
745
747
|
type EvidenceVerificationPolicy = "development" | "local" | "share" | "strict";
|
|
746
|
-
type EvidenceFileRole = "report" | "redacted-trace" | "checks" | "redaction-report" | "summary" | "other";
|
|
748
|
+
type EvidenceFileRole = "report" | "redacted-trace" | "checks" | "contract" | "redaction-report" | "summary" | "other";
|
|
749
|
+
/** How a packaged contract/preset was supplied (6.28+). */
|
|
750
|
+
type EvidenceContractBindingSource = "file" | "inline" | "preset" | "cli-shorthand" | "programmatic";
|
|
751
|
+
/** Reproducibility honesty for contract binding (6.28+). */
|
|
752
|
+
type EvidenceContractBindingStatus = "complete" | "partial" | "unavailable";
|
|
753
|
+
/**
|
|
754
|
+
* Optional Evidence v2 contract binding (6.28+).
|
|
755
|
+
* Additive; older readers ignore unknown fields. Not a signature or trusted-time claim.
|
|
756
|
+
*/
|
|
757
|
+
interface EvidenceContractBinding {
|
|
758
|
+
status: EvidenceContractBindingStatus;
|
|
759
|
+
source: EvidenceContractBindingSource;
|
|
760
|
+
contractId?: string;
|
|
761
|
+
contractVersion?: string;
|
|
762
|
+
canonicalizationVersion: "1";
|
|
763
|
+
engineVersion: string;
|
|
764
|
+
/** Relative packaged path (typically `contract.resolved.json`). */
|
|
765
|
+
path?: string;
|
|
766
|
+
/** SHA-256 of the packaged resolved-contract bytes. */
|
|
767
|
+
sha256?: string;
|
|
768
|
+
ruleIds: string[];
|
|
769
|
+
unsupportedRuleIds?: string[];
|
|
770
|
+
note?: string;
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* Optional fields embedded in `check-results.json` to bind results to a contract digest.
|
|
774
|
+
*/
|
|
775
|
+
interface EvidenceCheckContractBinding {
|
|
776
|
+
contractDigest?: string;
|
|
777
|
+
canonicalizationVersion?: "1";
|
|
778
|
+
engineVersion?: string;
|
|
779
|
+
evaluatedRuleIds?: string[];
|
|
780
|
+
bindingStatus?: EvidenceContractBindingStatus;
|
|
781
|
+
unsupportedRuleIds?: string[];
|
|
782
|
+
origin?: {
|
|
783
|
+
source: EvidenceContractBindingSource;
|
|
784
|
+
preset?: string;
|
|
785
|
+
path?: string;
|
|
786
|
+
};
|
|
787
|
+
selectedScope?: Record<string, unknown>;
|
|
788
|
+
selectedAlternativeBranch?: string;
|
|
789
|
+
}
|
|
747
790
|
interface EvidenceSourceHash {
|
|
748
791
|
runId: string;
|
|
749
792
|
algorithm: "sha256";
|
|
@@ -780,6 +823,11 @@ interface EvidenceManifest {
|
|
|
780
823
|
* Additive; older readers ignore unknown fields.
|
|
781
824
|
*/
|
|
782
825
|
semantics?: EvidenceSemantics;
|
|
826
|
+
/**
|
|
827
|
+
* Optional resolved-contract binding (6.28+).
|
|
828
|
+
* Additive; older readers ignore unknown fields.
|
|
829
|
+
*/
|
|
830
|
+
contract?: EvidenceContractBinding;
|
|
783
831
|
files: EvidenceFileEntry[];
|
|
784
832
|
}
|
|
785
833
|
/**
|
|
@@ -818,6 +866,8 @@ interface EvidencePackagedFile {
|
|
|
818
866
|
declare const EVIDENCE_FORMAT_VERSION: EvidenceFormatVersion;
|
|
819
867
|
declare const EVIDENCE_ASSESSMENT_NOTE = "Best-effort local safety verification only; not a compliance certification.";
|
|
820
868
|
declare const EVIDENCE_MANIFEST_FILENAME = "evidence.json";
|
|
869
|
+
/** Packaged resolved TraceContract / check-preset snapshot (6.28+). */
|
|
870
|
+
declare const EVIDENCE_RESOLVED_CONTRACT_FILENAME = "contract.resolved.json";
|
|
821
871
|
|
|
822
872
|
/**
|
|
823
873
|
* SHA-256 hex digest of exact bytes (UTF-8 when `data` is a string).
|
|
@@ -859,6 +909,7 @@ declare function buildEvidenceManifest(parts: {
|
|
|
859
909
|
createdAt?: string;
|
|
860
910
|
note?: string;
|
|
861
911
|
semantics?: EvidenceManifest["semantics"];
|
|
912
|
+
contract?: EvidenceManifest["contract"];
|
|
862
913
|
}): EvidenceManifest;
|
|
863
914
|
/**
|
|
864
915
|
* Minimal structural validation for a parsed evidence manifest object.
|
|
@@ -871,6 +922,105 @@ declare function parseEvidenceManifestJson(text: string): EvidenceManifest;
|
|
|
871
922
|
*/
|
|
872
923
|
declare function collectTraceSchemaVersions(jsonl: string): string[];
|
|
873
924
|
|
|
925
|
+
/**
|
|
926
|
+
* Evidence v2 contract binding (6.28) — package a resolved serializable
|
|
927
|
+
* TraceContract / check-preset snapshot and bind its digest to check results.
|
|
928
|
+
*
|
|
929
|
+
* Does not claim producer identity, trusted time, or semantic proof.
|
|
930
|
+
*/
|
|
931
|
+
|
|
932
|
+
declare const EVIDENCE_CONTRACT_CANONICALIZATION_VERSION: "1";
|
|
933
|
+
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.";
|
|
934
|
+
declare const EVIDENCE_CONTRACT_UNAVAILABLE_NOTE = "No resolved TraceContract or check preset was packaged with this Evidence artifact.";
|
|
935
|
+
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.";
|
|
936
|
+
/** Deterministic JSON (sorted keys) with trailing newline. */
|
|
937
|
+
declare function serializeCanonicalJson(value: unknown): string;
|
|
938
|
+
/**
|
|
939
|
+
* Normalize TraceContract aliases and make common evaluator defaults explicit
|
|
940
|
+
* for canonicalization version `"1"`.
|
|
941
|
+
*/
|
|
942
|
+
declare function resolveSerializableTraceContract(input: TraceContractInput | TraceContract): TraceContract;
|
|
943
|
+
/**
|
|
944
|
+
* Static rule-id inventory implied by a resolved TraceContract (no evaluation).
|
|
945
|
+
*/
|
|
946
|
+
declare function collectResolvedContractRuleIds(contract: TraceContract): string[];
|
|
947
|
+
interface ResolvedContractDocument {
|
|
948
|
+
canonicalizationVersion: typeof EVIDENCE_CONTRACT_CANONICALIZATION_VERSION;
|
|
949
|
+
kind: "trace-contract" | "check-preset";
|
|
950
|
+
resolved: Record<string, unknown>;
|
|
951
|
+
origin: {
|
|
952
|
+
source: EvidenceContractBindingSource;
|
|
953
|
+
preset?: string;
|
|
954
|
+
path?: string;
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
interface BuildEvidenceContractPackageInput {
|
|
958
|
+
engineVersion: string;
|
|
959
|
+
source: EvidenceContractBindingSource;
|
|
960
|
+
/** Serializable TraceContract (preferred for `complete`). */
|
|
961
|
+
contract?: TraceContractInput | TraceContract;
|
|
962
|
+
/**
|
|
963
|
+
* Pre-resolved check preset / CLI shorthand snapshot (caller expands).
|
|
964
|
+
* Used when `contract` is omitted or as origin metadata beside a contract.
|
|
965
|
+
*/
|
|
966
|
+
preset?: {
|
|
967
|
+
name: string;
|
|
968
|
+
resolved: Record<string, unknown>;
|
|
969
|
+
};
|
|
970
|
+
/** Original config path (omit or redact when sensitive). */
|
|
971
|
+
path?: string;
|
|
972
|
+
contractId?: string;
|
|
973
|
+
contractVersion?: string;
|
|
974
|
+
/**
|
|
975
|
+
* Stable IDs for programmatic / custom rules that cannot be serialized.
|
|
976
|
+
* Presence forces `status: "partial"`.
|
|
977
|
+
*/
|
|
978
|
+
unsupportedRuleIds?: readonly string[];
|
|
979
|
+
/** Override rule ID list (defaults to static inventory from the contract / preset select). */
|
|
980
|
+
ruleIds?: readonly string[];
|
|
981
|
+
note?: string;
|
|
982
|
+
}
|
|
983
|
+
interface EvidenceContractPackage {
|
|
984
|
+
/** Packaged `contract.resolved.json` when a serializable snapshot exists. */
|
|
985
|
+
file?: EvidencePackagedFile;
|
|
986
|
+
binding: EvidenceContractBinding;
|
|
987
|
+
/** Fields to merge into `check-results.json`. */
|
|
988
|
+
checkBinding: EvidenceCheckContractBinding;
|
|
989
|
+
/** Canonical document bytes when packaged (same as `file.content`). */
|
|
990
|
+
resolvedJson?: string;
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
* Build a resolved contract artifact + Evidence binding for packaging.
|
|
994
|
+
*
|
|
995
|
+
* Pass no `contract` and no `preset` to record an honest `unavailable` binding
|
|
996
|
+
* (missing-contract case). Pass `unsupportedRuleIds` to force `partial`.
|
|
997
|
+
*/
|
|
998
|
+
declare function buildEvidenceContractPackage(input: BuildEvidenceContractPackageInput): EvidenceContractPackage;
|
|
999
|
+
/**
|
|
1000
|
+
* Merge contract-binding fields into a check-results JSON object (additive).
|
|
1001
|
+
*/
|
|
1002
|
+
declare function bindCheckResultsToContract(checkResults: Record<string, unknown>, checkBinding: EvidenceCheckContractBinding): Record<string, unknown>;
|
|
1003
|
+
declare function serializeCheckResultsJson(value: unknown): string;
|
|
1004
|
+
/**
|
|
1005
|
+
* Parse the optional `contract` object from check-results.json when present.
|
|
1006
|
+
*/
|
|
1007
|
+
declare function readCheckResultsContractBinding(checkResultsJson: string): EvidenceCheckContractBinding | undefined;
|
|
1008
|
+
interface EvidenceContractVerifyIssue {
|
|
1009
|
+
code: "contract_file_missing" | "contract_hash_mismatch" | "contract_digest_mismatch" | "contract_binding_invalid";
|
|
1010
|
+
severity: "error" | "warning";
|
|
1011
|
+
message: string;
|
|
1012
|
+
path?: string;
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Verify digest binding between manifest.contract, contract.resolved.json, and
|
|
1016
|
+
* check-results.json. Older Evidence without `manifest.contract` is a no-op.
|
|
1017
|
+
*/
|
|
1018
|
+
declare function verifyEvidenceContractBinding(parts: {
|
|
1019
|
+
binding?: EvidenceContractBinding;
|
|
1020
|
+
resolvedContractBytes?: string | Uint8Array;
|
|
1021
|
+
checkResultsJson?: string;
|
|
1022
|
+
}): EvidenceContractVerifyIssue[];
|
|
1023
|
+
|
|
874
1024
|
declare const EVIDENCE_HTML_FILENAME = "evidence.html";
|
|
875
1025
|
/** View ids reserved for later 6.10 chunks; shell renders stubs except summary. */
|
|
876
1026
|
declare const EVIDENCE_VIEW_IDS: readonly ["summary", "tree", "timeline", "causal", "tools-llm", "outcomes", "contracts", "circuit", "diff", "safety", "provenance"];
|
|
@@ -1048,7 +1198,7 @@ declare function buildZipArchive(entries: readonly ZipEntry[]): Buffer;
|
|
|
1048
1198
|
|
|
1049
1199
|
type EvidenceVerifyStatus = "pass" | "fail";
|
|
1050
1200
|
interface EvidenceVerifyIssue {
|
|
1051
|
-
code: "manifest_missing" | "manifest_invalid" | "file_missing" | "file_unexpected" | "hash_mismatch" | "assessment_missing" | "provenance_missing" | "path_unsafe" | "io_error";
|
|
1201
|
+
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
1202
|
severity: "error" | "warning";
|
|
1053
1203
|
message: string;
|
|
1054
1204
|
path?: string;
|
|
@@ -1086,16 +1236,24 @@ interface EvidenceCiPackageInput {
|
|
|
1086
1236
|
summaryText?: string;
|
|
1087
1237
|
/** Optional TraceFacts/parity summary embedded in evidence.json (6.14+). */
|
|
1088
1238
|
semantics?: EvidenceManifest["semantics"];
|
|
1239
|
+
/**
|
|
1240
|
+
* Optional TraceContract / preset binding (6.28+).
|
|
1241
|
+
* When omitted, no contract section is written (older Evidence shape).
|
|
1242
|
+
* Pass `{ engineVersion, source }` with neither contract nor preset to record `unavailable`.
|
|
1243
|
+
*/
|
|
1244
|
+
contractPackage?: BuildEvidenceContractPackageInput;
|
|
1089
1245
|
}
|
|
1090
1246
|
interface EvidenceCiPackageFiles {
|
|
1091
1247
|
"evidence.html": string;
|
|
1092
1248
|
"evidence.json": string;
|
|
1093
1249
|
"check-results.json": string;
|
|
1094
1250
|
"trace.jsonl": string;
|
|
1251
|
+
"contract.resolved.json"?: string;
|
|
1095
1252
|
manifest: EvidenceManifest;
|
|
1096
1253
|
}
|
|
1097
1254
|
/**
|
|
1098
|
-
* Build the
|
|
1255
|
+
* Build the standard CI evidence files (in memory) using Evidence v2 helpers.
|
|
1256
|
+
* Optionally packages `contract.resolved.json` and binds digests (6.28+).
|
|
1099
1257
|
*/
|
|
1100
1258
|
declare function buildEvidenceCiPackage(input: EvidenceCiPackageInput): EvidenceCiPackageFiles;
|
|
1101
1259
|
|
|
@@ -1427,4 +1585,4 @@ declare function createOmittedPayloadCommitment(payload: string | Uint8Array, op
|
|
|
1427
1585
|
capturePolicy?: OmittedPayloadCommitment["capturePolicy"];
|
|
1428
1586
|
}): OmittedPayloadCommitment;
|
|
1429
1587
|
|
|
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 };
|
|
1588
|
+
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-
|
|
2
|
-
import { R as RedactionRule } from './log-config-
|
|
3
|
-
import { R as RedactionProfile,
|
|
4
|
-
export { A as ActiveStepContext,
|
|
5
|
-
import { a as InspectRunTree } from './inspect-event-
|
|
6
|
-
export { A as AttributionConfidence, E as EventSource,
|
|
7
|
-
import { P as PersistedInspectEvent } from './persisted-inspect-event-
|
|
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-B8zzsmjX.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-C5Y8Idle.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-C5Y8Idle.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-BMwvGIB8.js';
|
|
8
8
|
import { Stats } from 'node:fs';
|
|
9
|
-
import {
|
|
10
|
-
export {
|
|
11
|
-
import { b as ObservedOutcome } from './types-
|
|
12
|
-
export {
|
|
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-DTO2iGeq.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-DTO2iGeq.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-
|
|
14
|
+
import './index-reskZCVW.js';
|
|
15
15
|
|
|
16
16
|
interface ResolvedRedactionProfile {
|
|
17
17
|
profile: RedactionProfile;
|
|
@@ -337,6 +337,8 @@ interface RunWhatSummary {
|
|
|
337
337
|
output: number;
|
|
338
338
|
total?: number;
|
|
339
339
|
cached?: number;
|
|
340
|
+
cacheWrite?: number;
|
|
341
|
+
reasoning?: number;
|
|
340
342
|
};
|
|
341
343
|
correlation?: TraceCorrelationMetadata;
|
|
342
344
|
failedStepNames: string[];
|
|
@@ -743,7 +745,48 @@ type EvidenceFormatVersion = "1.0";
|
|
|
743
745
|
type EvidenceSafeStatus = "SAFE" | "SAFE WITH WARNINGS" | "UNSAFE" | "UNKNOWN";
|
|
744
746
|
type EvidenceRedactionProfile = "local" | "share" | "strict";
|
|
745
747
|
type EvidenceVerificationPolicy = "development" | "local" | "share" | "strict";
|
|
746
|
-
type EvidenceFileRole = "report" | "redacted-trace" | "checks" | "redaction-report" | "summary" | "other";
|
|
748
|
+
type EvidenceFileRole = "report" | "redacted-trace" | "checks" | "contract" | "redaction-report" | "summary" | "other";
|
|
749
|
+
/** How a packaged contract/preset was supplied (6.28+). */
|
|
750
|
+
type EvidenceContractBindingSource = "file" | "inline" | "preset" | "cli-shorthand" | "programmatic";
|
|
751
|
+
/** Reproducibility honesty for contract binding (6.28+). */
|
|
752
|
+
type EvidenceContractBindingStatus = "complete" | "partial" | "unavailable";
|
|
753
|
+
/**
|
|
754
|
+
* Optional Evidence v2 contract binding (6.28+).
|
|
755
|
+
* Additive; older readers ignore unknown fields. Not a signature or trusted-time claim.
|
|
756
|
+
*/
|
|
757
|
+
interface EvidenceContractBinding {
|
|
758
|
+
status: EvidenceContractBindingStatus;
|
|
759
|
+
source: EvidenceContractBindingSource;
|
|
760
|
+
contractId?: string;
|
|
761
|
+
contractVersion?: string;
|
|
762
|
+
canonicalizationVersion: "1";
|
|
763
|
+
engineVersion: string;
|
|
764
|
+
/** Relative packaged path (typically `contract.resolved.json`). */
|
|
765
|
+
path?: string;
|
|
766
|
+
/** SHA-256 of the packaged resolved-contract bytes. */
|
|
767
|
+
sha256?: string;
|
|
768
|
+
ruleIds: string[];
|
|
769
|
+
unsupportedRuleIds?: string[];
|
|
770
|
+
note?: string;
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* Optional fields embedded in `check-results.json` to bind results to a contract digest.
|
|
774
|
+
*/
|
|
775
|
+
interface EvidenceCheckContractBinding {
|
|
776
|
+
contractDigest?: string;
|
|
777
|
+
canonicalizationVersion?: "1";
|
|
778
|
+
engineVersion?: string;
|
|
779
|
+
evaluatedRuleIds?: string[];
|
|
780
|
+
bindingStatus?: EvidenceContractBindingStatus;
|
|
781
|
+
unsupportedRuleIds?: string[];
|
|
782
|
+
origin?: {
|
|
783
|
+
source: EvidenceContractBindingSource;
|
|
784
|
+
preset?: string;
|
|
785
|
+
path?: string;
|
|
786
|
+
};
|
|
787
|
+
selectedScope?: Record<string, unknown>;
|
|
788
|
+
selectedAlternativeBranch?: string;
|
|
789
|
+
}
|
|
747
790
|
interface EvidenceSourceHash {
|
|
748
791
|
runId: string;
|
|
749
792
|
algorithm: "sha256";
|
|
@@ -780,6 +823,11 @@ interface EvidenceManifest {
|
|
|
780
823
|
* Additive; older readers ignore unknown fields.
|
|
781
824
|
*/
|
|
782
825
|
semantics?: EvidenceSemantics;
|
|
826
|
+
/**
|
|
827
|
+
* Optional resolved-contract binding (6.28+).
|
|
828
|
+
* Additive; older readers ignore unknown fields.
|
|
829
|
+
*/
|
|
830
|
+
contract?: EvidenceContractBinding;
|
|
783
831
|
files: EvidenceFileEntry[];
|
|
784
832
|
}
|
|
785
833
|
/**
|
|
@@ -818,6 +866,8 @@ interface EvidencePackagedFile {
|
|
|
818
866
|
declare const EVIDENCE_FORMAT_VERSION: EvidenceFormatVersion;
|
|
819
867
|
declare const EVIDENCE_ASSESSMENT_NOTE = "Best-effort local safety verification only; not a compliance certification.";
|
|
820
868
|
declare const EVIDENCE_MANIFEST_FILENAME = "evidence.json";
|
|
869
|
+
/** Packaged resolved TraceContract / check-preset snapshot (6.28+). */
|
|
870
|
+
declare const EVIDENCE_RESOLVED_CONTRACT_FILENAME = "contract.resolved.json";
|
|
821
871
|
|
|
822
872
|
/**
|
|
823
873
|
* SHA-256 hex digest of exact bytes (UTF-8 when `data` is a string).
|
|
@@ -859,6 +909,7 @@ declare function buildEvidenceManifest(parts: {
|
|
|
859
909
|
createdAt?: string;
|
|
860
910
|
note?: string;
|
|
861
911
|
semantics?: EvidenceManifest["semantics"];
|
|
912
|
+
contract?: EvidenceManifest["contract"];
|
|
862
913
|
}): EvidenceManifest;
|
|
863
914
|
/**
|
|
864
915
|
* Minimal structural validation for a parsed evidence manifest object.
|
|
@@ -871,6 +922,105 @@ declare function parseEvidenceManifestJson(text: string): EvidenceManifest;
|
|
|
871
922
|
*/
|
|
872
923
|
declare function collectTraceSchemaVersions(jsonl: string): string[];
|
|
873
924
|
|
|
925
|
+
/**
|
|
926
|
+
* Evidence v2 contract binding (6.28) — package a resolved serializable
|
|
927
|
+
* TraceContract / check-preset snapshot and bind its digest to check results.
|
|
928
|
+
*
|
|
929
|
+
* Does not claim producer identity, trusted time, or semantic proof.
|
|
930
|
+
*/
|
|
931
|
+
|
|
932
|
+
declare const EVIDENCE_CONTRACT_CANONICALIZATION_VERSION: "1";
|
|
933
|
+
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.";
|
|
934
|
+
declare const EVIDENCE_CONTRACT_UNAVAILABLE_NOTE = "No resolved TraceContract or check preset was packaged with this Evidence artifact.";
|
|
935
|
+
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.";
|
|
936
|
+
/** Deterministic JSON (sorted keys) with trailing newline. */
|
|
937
|
+
declare function serializeCanonicalJson(value: unknown): string;
|
|
938
|
+
/**
|
|
939
|
+
* Normalize TraceContract aliases and make common evaluator defaults explicit
|
|
940
|
+
* for canonicalization version `"1"`.
|
|
941
|
+
*/
|
|
942
|
+
declare function resolveSerializableTraceContract(input: TraceContractInput | TraceContract): TraceContract;
|
|
943
|
+
/**
|
|
944
|
+
* Static rule-id inventory implied by a resolved TraceContract (no evaluation).
|
|
945
|
+
*/
|
|
946
|
+
declare function collectResolvedContractRuleIds(contract: TraceContract): string[];
|
|
947
|
+
interface ResolvedContractDocument {
|
|
948
|
+
canonicalizationVersion: typeof EVIDENCE_CONTRACT_CANONICALIZATION_VERSION;
|
|
949
|
+
kind: "trace-contract" | "check-preset";
|
|
950
|
+
resolved: Record<string, unknown>;
|
|
951
|
+
origin: {
|
|
952
|
+
source: EvidenceContractBindingSource;
|
|
953
|
+
preset?: string;
|
|
954
|
+
path?: string;
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
interface BuildEvidenceContractPackageInput {
|
|
958
|
+
engineVersion: string;
|
|
959
|
+
source: EvidenceContractBindingSource;
|
|
960
|
+
/** Serializable TraceContract (preferred for `complete`). */
|
|
961
|
+
contract?: TraceContractInput | TraceContract;
|
|
962
|
+
/**
|
|
963
|
+
* Pre-resolved check preset / CLI shorthand snapshot (caller expands).
|
|
964
|
+
* Used when `contract` is omitted or as origin metadata beside a contract.
|
|
965
|
+
*/
|
|
966
|
+
preset?: {
|
|
967
|
+
name: string;
|
|
968
|
+
resolved: Record<string, unknown>;
|
|
969
|
+
};
|
|
970
|
+
/** Original config path (omit or redact when sensitive). */
|
|
971
|
+
path?: string;
|
|
972
|
+
contractId?: string;
|
|
973
|
+
contractVersion?: string;
|
|
974
|
+
/**
|
|
975
|
+
* Stable IDs for programmatic / custom rules that cannot be serialized.
|
|
976
|
+
* Presence forces `status: "partial"`.
|
|
977
|
+
*/
|
|
978
|
+
unsupportedRuleIds?: readonly string[];
|
|
979
|
+
/** Override rule ID list (defaults to static inventory from the contract / preset select). */
|
|
980
|
+
ruleIds?: readonly string[];
|
|
981
|
+
note?: string;
|
|
982
|
+
}
|
|
983
|
+
interface EvidenceContractPackage {
|
|
984
|
+
/** Packaged `contract.resolved.json` when a serializable snapshot exists. */
|
|
985
|
+
file?: EvidencePackagedFile;
|
|
986
|
+
binding: EvidenceContractBinding;
|
|
987
|
+
/** Fields to merge into `check-results.json`. */
|
|
988
|
+
checkBinding: EvidenceCheckContractBinding;
|
|
989
|
+
/** Canonical document bytes when packaged (same as `file.content`). */
|
|
990
|
+
resolvedJson?: string;
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
* Build a resolved contract artifact + Evidence binding for packaging.
|
|
994
|
+
*
|
|
995
|
+
* Pass no `contract` and no `preset` to record an honest `unavailable` binding
|
|
996
|
+
* (missing-contract case). Pass `unsupportedRuleIds` to force `partial`.
|
|
997
|
+
*/
|
|
998
|
+
declare function buildEvidenceContractPackage(input: BuildEvidenceContractPackageInput): EvidenceContractPackage;
|
|
999
|
+
/**
|
|
1000
|
+
* Merge contract-binding fields into a check-results JSON object (additive).
|
|
1001
|
+
*/
|
|
1002
|
+
declare function bindCheckResultsToContract(checkResults: Record<string, unknown>, checkBinding: EvidenceCheckContractBinding): Record<string, unknown>;
|
|
1003
|
+
declare function serializeCheckResultsJson(value: unknown): string;
|
|
1004
|
+
/**
|
|
1005
|
+
* Parse the optional `contract` object from check-results.json when present.
|
|
1006
|
+
*/
|
|
1007
|
+
declare function readCheckResultsContractBinding(checkResultsJson: string): EvidenceCheckContractBinding | undefined;
|
|
1008
|
+
interface EvidenceContractVerifyIssue {
|
|
1009
|
+
code: "contract_file_missing" | "contract_hash_mismatch" | "contract_digest_mismatch" | "contract_binding_invalid";
|
|
1010
|
+
severity: "error" | "warning";
|
|
1011
|
+
message: string;
|
|
1012
|
+
path?: string;
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Verify digest binding between manifest.contract, contract.resolved.json, and
|
|
1016
|
+
* check-results.json. Older Evidence without `manifest.contract` is a no-op.
|
|
1017
|
+
*/
|
|
1018
|
+
declare function verifyEvidenceContractBinding(parts: {
|
|
1019
|
+
binding?: EvidenceContractBinding;
|
|
1020
|
+
resolvedContractBytes?: string | Uint8Array;
|
|
1021
|
+
checkResultsJson?: string;
|
|
1022
|
+
}): EvidenceContractVerifyIssue[];
|
|
1023
|
+
|
|
874
1024
|
declare const EVIDENCE_HTML_FILENAME = "evidence.html";
|
|
875
1025
|
/** View ids reserved for later 6.10 chunks; shell renders stubs except summary. */
|
|
876
1026
|
declare const EVIDENCE_VIEW_IDS: readonly ["summary", "tree", "timeline", "causal", "tools-llm", "outcomes", "contracts", "circuit", "diff", "safety", "provenance"];
|
|
@@ -1048,7 +1198,7 @@ declare function buildZipArchive(entries: readonly ZipEntry[]): Buffer;
|
|
|
1048
1198
|
|
|
1049
1199
|
type EvidenceVerifyStatus = "pass" | "fail";
|
|
1050
1200
|
interface EvidenceVerifyIssue {
|
|
1051
|
-
code: "manifest_missing" | "manifest_invalid" | "file_missing" | "file_unexpected" | "hash_mismatch" | "assessment_missing" | "provenance_missing" | "path_unsafe" | "io_error";
|
|
1201
|
+
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
1202
|
severity: "error" | "warning";
|
|
1053
1203
|
message: string;
|
|
1054
1204
|
path?: string;
|
|
@@ -1086,16 +1236,24 @@ interface EvidenceCiPackageInput {
|
|
|
1086
1236
|
summaryText?: string;
|
|
1087
1237
|
/** Optional TraceFacts/parity summary embedded in evidence.json (6.14+). */
|
|
1088
1238
|
semantics?: EvidenceManifest["semantics"];
|
|
1239
|
+
/**
|
|
1240
|
+
* Optional TraceContract / preset binding (6.28+).
|
|
1241
|
+
* When omitted, no contract section is written (older Evidence shape).
|
|
1242
|
+
* Pass `{ engineVersion, source }` with neither contract nor preset to record `unavailable`.
|
|
1243
|
+
*/
|
|
1244
|
+
contractPackage?: BuildEvidenceContractPackageInput;
|
|
1089
1245
|
}
|
|
1090
1246
|
interface EvidenceCiPackageFiles {
|
|
1091
1247
|
"evidence.html": string;
|
|
1092
1248
|
"evidence.json": string;
|
|
1093
1249
|
"check-results.json": string;
|
|
1094
1250
|
"trace.jsonl": string;
|
|
1251
|
+
"contract.resolved.json"?: string;
|
|
1095
1252
|
manifest: EvidenceManifest;
|
|
1096
1253
|
}
|
|
1097
1254
|
/**
|
|
1098
|
-
* Build the
|
|
1255
|
+
* Build the standard CI evidence files (in memory) using Evidence v2 helpers.
|
|
1256
|
+
* Optionally packages `contract.resolved.json` and binds digests (6.28+).
|
|
1099
1257
|
*/
|
|
1100
1258
|
declare function buildEvidenceCiPackage(input: EvidenceCiPackageInput): EvidenceCiPackageFiles;
|
|
1101
1259
|
|
|
@@ -1427,4 +1585,4 @@ declare function createOmittedPayloadCommitment(payload: string | Uint8Array, op
|
|
|
1427
1585
|
capturePolicy?: OmittedPayloadCommitment["capturePolicy"];
|
|
1428
1586
|
}): OmittedPayloadCommitment;
|
|
1429
1587
|
|
|
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 };
|
|
1588
|
+
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 };
|