pub fn verify_compiled_bundles_match_ledger(
graph_dir: &Path,
committed_nodes: &[LedgerNode],
framing: CtbnbdlFramingDcs,
expected_digests: Option<&CompiledBundleDigests>,
require_split: bool,
) -> Result<()>Expand description
Verifies that the tracked unsplit bundles (graph-bundles/*.ctbnbdl) and, when present or required,
the gitignored split live (graph-bundles/split/live/*.ctbnbdl) and historical
(graph-bundles/split/history/*.ctbnbdl) bundles match committed_nodes in:
- Exact bundle inventory and file SHA-256 digests (when
expected_digestsare provided), - Exact
(node.id, node.created_ns, &node.tokens)sequence equality for unsplit bundles, and - Disjoint strictly ascending node IDs, union equality, and active/inactive partition equality
for split bundles when
require_splitistrueorsplit/exists on disk.