Function run_defect_validation
pub fn run_defect_validation(opts: &Options) -> Result<Vec<DefectValidationRow>>Expand description
Run the defect-validation analysis.
Reads the --defect-calibration artifact configured in opts and
flattens its evidence into rows. Returns zero rows (and a stderr hint)
when no artifact is configured โ the honest-absence path.
Takes only opts, not a FactsDb: every number reported here was frozen
into the artifact at mining time, so the analysis never touches the fact
store.
ยงErrors
Propagates defect_calibration::load failures (missing / malformed /
version-mismatched artifact) and the defect_calibration::check_repo_identity
foreign-repo guard โ an explicitly configured artifact that cannot be read
or does not belong to this repo is a configuration mistake, not a
degradable state.