Expand description
ai-memory verify-reflection-chain — external verifier for
reflection chains (procurement-grade audit tool, v0.7.0 L1-3).
Walks the reflects_on edges backward from the supplied memory to
depth 0, verifies each Ed25519 signature (when present) using the
identity::verify infrastructure, optionally checks signed_events
creation entries, and emits a structured chain-integrity report.
§Exit codes
0— chain fully verified (or no signatures present andbounded_status != "exceeded_cap").1— at least one edge failed signature verification, or the chain exceeds its namespacemax_reflection_depthcap.
§Output formats
--format text(default) — human-readable report printed to stdout.--format json— structuredAgenticMem Attesttier evidence packet serialised as JSON.
Structs§
- Chain
Report - Full chain-integrity report — the
AgenticMem Attesttier evidence packet. - Edge
Result - One
reflects_onedge in the ancestry tree, with its verification result. - Signed
Event Summary - Per-
signed_eventsrow summary for a memory in the chain. - Verify
Chain Args - Arguments for
ai-memory verify-reflection-chain.
Functions§
- build_
chain_ report - Walk the
reflects_onancestry tree fromroot_id, verify every edge, and return theChainReport. - build_
chain_ report_ at - Variant of
build_chain_reportthat lets the caller pin thegenerated_attimestamp. Used byforensic::bundleso the embeddedverification.jsonis byte-stable across rebuilds (the bundle’s ownmanifest.generated_atis the only legitimate non-deterministic field).Nonefalls back toUtc::now(). - run
- Run the
verify-reflection-chainsubcommand against the SQLite DB atdb_path. Returns an exit code:0if the chain is intact,2otherwise.