Expand description
Append-only Merkle hash chain with signed evidence bundles.
See the crate-level docs in T1 for context. The public surface is re-exported below; internal modules are private.
Structs§
- Chain
Entry - One entry in the append-only chain.
- Chain
Entry Id - Identifies an entry in the provenance chain.
- Ecdsa
P256 Verifier - ECDSA-P256 implementation backed by the
p256crate. Algorithm tag is the literal string"ecdsa-p256". Compatible with the SignatureBytes shape emitted by KMS-rooted signers (examples/aws-kms-signer/, see ADR-009). - Ed25519
Verifier - Ed25519 implementation backed by
ed25519-dalek. Algorithm tag is the literal string"ed25519". - Evidence
Bundle - Regulator-ready evidence pack.
- Provenance
Chain - Provenance chain aggregate. Append-only.
- Provenance
Episodic - Decorator that wraps an
EpisodicMemoryand mirrors every episode write into aProvenanceRepositoryappend-only chain. - Provenance
Event - A single appendable record in the chain.
- Signature
Bytes - Detached signature bytes returned by a
BundleSigner. - Sqlite
Provenance Repository - SQLite-backed append-only provenance repository.
- Static
KeyResolver - In-process key resolver backed by a static
HashMap.
Enums§
- Provenance
Error - Errors raised by chain operations, the repository port, and the signer port.
- Provenance
Event Kind - What kind of operation this provenance entry records.
- Verify
Error - Failure cases for evidence-bundle verification.
Constants§
- GENESIS_
HASH_ HEX - Genesis hash used as the predecessor of the first entry in any chain.
Traits§
- Bundle
Signer - Abstract evidence-bundle signer port.
- KeyResolver
- Trust store: given a bundle’s
key_id, returns the trusted public key bytes. The verifier NEVER readspublic_key_hexfrom the bundle; trust derives exclusively from this resolver. - Provenance
Repository - Persistent storage port for a per-scope append-only chain.
- Signer
- Deprecated alias for
BundleSigner. Abstract evidence-bundle signer port. - Verifier
- Algorithm-specific signature checker.
Functions§
- chain_
from_ episodes - Build a Merkle
ProvenanceChainover an agent run’sepisodes, stamping every entry withactor. - episode_
to_ event - Map one
Episodeto aProvenanceEventstamped withactorandrun_ref. - error_
category - Collapse a raw error string into a fixed, PII-free category code.