pub fn preflight(bundle: &Bundle, pins: &Pins) -> GateReportExpand description
Apply every preflight rule to a candidate bundle.
Why: this is the “lightweight preflight” #5441 asks for, and it runs before
any baseline comparison — comparing numbers produced by an unidentifiable
build would only launder the problem into a delta table.
What: replays the read violations, then per level checks the declared level
number, evidence mode, verifier check count, provenance completeness,
checkout cleanliness, the metadata/report build and status agreement, and
the caller’s Pins; then checks that all readable levels agree on build,
runner, challenge revision, and source digests.
Test: bakeoff::tests::a_complete_bundle_passes_preflight and the
per-rule rejection tests beside it.