verify_compiled_bundles_match_ledger

Function verify_compiled_bundles_match_ledger 

Source
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:

  1. Exact bundle inventory and file SHA-256 digests (when expected_digests are provided),
  2. Exact (node.id, node.created_ns, &node.tokens) sequence equality for unsplit bundles, and
  3. Disjoint strictly ascending node IDs, union equality, and active/inactive partition equality for split bundles when require_split is true or split/ exists on disk.