pub fn load_bundle(root: &Path) -> BundleExpand description
Read <root>/L1, <root>/L2 and <root>/L3.
Why: separating reading from judging lets the baseline bundle be loaded
with the same code that loads the candidate, without subjecting a
previously-accepted baseline to a fresh preflight it was never gated on.
What: for each of LEVELS, requires the directory and every entry of
REQUIRED_ARTIFACTS to exist and be non-empty, then parses
metadata.json and tcode_report.json. A level that fails any of those
records a violation and is omitted from levels.
Test: bakeoff::tests::a_missing_level_is_incomplete_coverage,
bakeoff::tests::an_empty_artifact_is_rejected,
bakeoff::tests::malformed_metadata_is_rejected.