Repository navigation
fix(spot-check): gate pilot refutations on timeout/variant/in-function misses (#6696) - #15870
Conversation
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 26 minutes. View limit details
|
There was a problem hiding this comment.
Code Review
This pull request refines the mutation spot-check pilot judge logic so that it no longer refutes recommendations from whole-function mutants when the seam line timed out, the pick is an error variant, or a missed mutant resides in the same function. It also restricts the line tier to mutants starting inside the located expression when it occurs once on a line. Feedback on these changes suggests optimizing the new timeout_on_line helper function to avoid repeatedly constructing a BTreeMap of all outcomes, recommending an early-return strategy with a single pass over outcomes instead.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Pilot judge candidate dfb7883 verified: pilot::tests 10, pilot_ranking 18 pass locally (pre-fix the new tests failed). Final merge review pending hosted checks.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Head dfb7883 re-attested for qualification: pilot::tests 10 and pilot_ranking 18 pass locally, new tests verified failing pre-fix. Final merge review pending hosted checks.
…the seam function (#6696)
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Head 358ce71 triaged: all 7 bot review threads verified against the diff, real defects fixed with tests in 358ce71, one non-defect refuted with evidence, and every thread read back isResolved=true. Focused proof: cargo test -p xtask --bin xtask -- mutation_spot_check::pilot pilot_ranking passes (32 tests), cargo fmt --check clean. Residual: label files written before timeout preservation need a relabel for the ranking timeout gate to see timeout locations, now stated in benchmarks/pilot_ranking/README.md.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Head fix: duplicated #[test] attribute in pilot_ranking tests (hosted Clippy duplicate-macro-attributes) removed; clippy -p xtask --all-targets -D warnings passes locally. Final merge review pending hosted checks.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Current head reviewed; source evidence and thread repairs are recorded in the PR conversation. Final merge review pending hosted checks.
��Claim:
fix(spot-check): gate pilot refutations on timeout/variant/in-function misses (#6696)closes the remaining #6696 false-refutation families.Production delta:
xtask/src/reports/mutation_spot_check/pilot.rs(~199 LOC). The pilot judge never suspends the foreground command, never lowers the hard kill, and increasingly relies on external verification. A corroboratingDescendfinding only refutes when the line's outcomes exclude the three new mismatch families: timeout-only seam lines (AdmissionTimeoutMismatch), error-variant picks (ErrorVariantDecomposition, including error-parametricResult<T, E2>), and missed mutants in the same function (InFunctionMissUndecided).Evidence delta: 9 tests observed (7 new in pilot::tests, 2 new in pilot_ranking ranking fixtures) +
changelog.d/6696-pilot-judge-attribution.md.Validation:
cargo test -p xtask --bin xtask mutation_spot_check::pilot::tests10 passed;cargo test -p xtask --bin xtask pilot_ranking18 passed; pre-fix the new timeout/error-variant tests failed with a falseRefutedExternaland pass after the fix;cargo xtask check-pr-shapepassed;cargo fmt --checkclean.Non-goals: the Cargo-mutants lifecycle (suspend/kill/timeout accounting) remains deferred to caller/work orders per #6696; no product-analyzer changes; no PRs closed.
Acceptance: landing is gated on the hosted
Ripr Rust Small Resultcheck for this PR head.Source-of-truth Links
Governing issue or accepted claim: #6696 (false pilot refutations from whole-function mutants)
Acceptance delta (one sentence): The spot-check pilot judge no longer refutes a recommendation from timeout-only seam lines, error-variant picks, or missed mutants in the same function.