Skip to content

fix(spot-check): gate pilot refutations on timeout/variant/in-function misses (#6696) - #15870

Merged
EffortlessSteven merged 3 commits into
mainfrom
fix/6696-pilot-judge
Nov 22, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
fix/6696-pilot-judge

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

��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 corroborating Descend finding only refutes when the line's outcomes exclude the three new mismatch families: timeout-only seam lines (AdmissionTimeoutMismatch), error-variant picks (ErrorVariantDecomposition, including error-parametric Result<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::tests 10 passed; cargo test -p xtask --bin xtask pilot_ranking 18 passed; pre-fix the new timeout/error-variant tests failed with a false RefutedExternal and pass after the fix; cargo xtask check-pr-shape passed; cargo fmt --check clean.

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 Result check 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.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 147 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: c4914c2e-a17e-4f31-8366-4b5f68782a74
Commits

Reviewing files that changed from the base of the PR and between bcea364 and 54694d0.

Files selected for processing: 6

  • benchmarks/mutation_spot_check/README.md
  • benchmarks/pilot_ranking/README.md
  • changelog.d/6696-pilot-judge-attribution.md
  • xtask/src/reports/mutation_spot_check/pilot.rs
  • xtask/src/reports/pilot_ranking.rs
  • xtask/src/reports/pilot_ranking/tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 6 potential issues.

Devin Review

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Current head reviewed; source evidence and thread repairs are recorded in the PR conversation. Final merge review pending hosted checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant