Skip to main content

Module evidence_bundle

Module evidence_bundle 

Source
Expand description

Evidence bundle generator (evidence-bundle-v1, GL #425, H3 Epic A).

Composes the engine’s evidence surfaces — audit-chain segment, resolved policy pack, coverage reports — into one deterministic, offline- verifiable ZIP. The independent verifier lives in packages/leanctx-verify/ and implements the contract (docs/contracts/evidence-bundle-v1.md), not this code.

Determinism: identical inputs ⇒ byte-identical archive (sorted entry order, Stored compression, ZIP-epoch timestamps, canonical JSON, no wall-clock fields in the manifest).

Structs§

BundleResult
BundleSpec

Functions§

generate
Generate the bundle. Fails loudly on every inconsistency — an evidence artifact with silently missing parts would be worse than none.