Repository navigation
fix(ux): clear four evidence and oracle rendering frictions - #8161
Conversation
…#7642) A matched oracle row whose relation_reason never calls the owner now carries RelatedTestMiss::NoCallPath on exposed and unknown classes, so same-file sibling tests render as 'misses: no call to the changed code found; linked by file location only' instead of unqualified oracle rows. - annotate_related_test_misses: new arm for exposed/infection_unknown/ propagation_unknown/static_unknown; matched-oracle rows only, and only when the relation layer recorded a proximity-only reason. Rows without a relation reason keep the unknown. - xtask expected_related_test: optional miss pin (string or explicit null); corpus case rust_match_arm_proximity_wrapper_confirms pins the direct_owner_call row with no miss beside both same_test_file rows carrying no_call_path (RIPR-SPEC-0108). - Goldens re-blessed for four fixtures whose proximity-only matched rows now disclose the established miss.
The Hidden: count line names the omitted set's currentness mix, but the per-finding bullets rendered file:line (class) only, so a base-side evidence row at the same location as an outranked candidate was indistinguishable without a human-full rerun. - triage.rs: append hidden_bullet_currentness to each bullet when the omitted set has more than one currentness category; single-category sets keep the legacy bullet the count line already names. - Unit pins for the mixed and single-category cases; the existing #5021 mixed-count test now expects labeled bullets. - Goldens re-blessed for the three fixtures whose default human output has a mixed hidden set.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits. Next included review available in 1 minute. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughThe change updates related-test miss annotations for proximity-only oracle rows and adds currentness labels to hidden-finding bullets when omitted findings span categories. It also extends evidence-promotion assertions to check a related-test row’s miss value. ChangesRelated-test evidence
Hidden-finding currentness labels
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Refuted
- The #7642 classifier change could leave a related-test row with a stale miss pinned because the row's backing RelatedTest was resized or detached between oracle discovery and miss annotation; refuted because: Annotation reads oracle and relation_reason off the same &mut [RelatedTest] slot in one pass and writes only the miss field; there is no resize, reallocation, detach, or transfer on this path, and ripr is Rust-only with no JS interop surface in the touched crates.
- Any change that adds a new serde-deserialized field could break a downstream JS worker that mirrors the JSON shape via postMessage/transfer, leaving the worker holding a stale detached proxy after the host adds
miss/whykeys.; refuted because: Lane scope is JS/worker/postMessage/transfer; this PR is synchronous Rust with no JS consumer, no wasm module, and no worker boundary in the diff. The objection is out of scope for the lane and there is no surface to refute against; logged as a parked handoff rather than a refuted premise.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Independent bounded review/evidence handoff; lane C remains the sole fix owner. Reviewed head Existing-owner findings, with new controls (no separate novel defect established):
Preserve relation reasons/confidence and static classes. Qualify prose as, for example, “bounded static search did not establish a call path; linked by file location.” Update the new finding.rs comments around :247/:320 that assert “never calls/invokes” and “cannot discriminate.” These controls disprove those stronger assertions. They establish neither general runtime adequacy nor a classification regression. Preserve the existing weak-gap guidance suppression when fixing the aligned case. Minimal return reproduction (standalone edition-2024 crate): pub fn calculate(x: i32) -> i32 {
let amount = x + 3;
return amount;
}
#[cfg(test)] mod tests {
use super::*;
#[test] fn pins_amount() { let amount = calculate(5); assert_eq!(amount, 8); }
#[test] fn unrelated() { let amount = 8; assert_eq!(amount, 8); }
}Supply a unified diff from Field analogue: return Local evidence: Linux/Bash, rustc 1.95.0 (59807616e), cargo 1.95.0 (f2d3ce0bd); isolated detached checkout and separate target. Exact-head Disposition: repair needed before claiming complete #7642 coverage; targeted handoff, not merge qualification. Hosted required checks, Windows and full matrix not cleared here. No novel source defect beyond existing-owner concerns established. Focused exact-head tests: Setup observations: Cargo/Rust were absent from PATH; default Rustup home creation failed read-only. Explicit existing |
Summary
Lane C of the #7842 fix-lane plan: evidence/oracle rendering quality. Two of the four issues were already sibling-fixed on main and are skipped; the remaining two land here, one commit each.
exposedand unknown-class findings, a matched oracle row whose related-test link is proximity-only (same file/module, name match, token substring, import-path/fixture affinity, seam-callee) now carries theno_call_pathmiss it always established, so a same-file sibling test renders asuses strong exact value oracle: ...; misses: no call to the changed code found; linked by file location onlyinstead of an unqualified oracle row. The verdict is untouched (missis evidence-only; no classification or reach decision reads it); rows without a recorded relation reason or matched oracle keep the unknown. Corpus control:expected_related_testgrows an optionalmisspin (string, or explicitnullto require no miss) andrust_match_arm_proximity_wrapper_confirmspins the reaching row beside bothno_call_pathsibling rows (RIPR-SPEC-0108).Hidden:bullets append each omitted finding's currentness category (lower-priority candidate/base-side/unresolved currentness) when the omitted set mixes categories, connecting the count line's clauses to its rows. Single-category sets keep the legacy bullet the count line already names.Both premises were re-verified against origin/main HEAD
20022bbfebefore implementation. Goldens re-blessed for the seven fixtures whose evidence rows/hidden blocks now disclose the established facts (blessing CHANGELOGs carry RIPR-SPEC-0108 / RIPR-SPEC-0122 reasons).Swarm / Source Boundary
EffortlessMetrics/ripr-swarm.No publishing, release, signing, credentials or source-release boundary change.
Validation
cargo test -p ripr --lib analysis::classifier::finding(17 tests, incl. two new pins)cargo test -p ripr --lib output::human(188 tests, incl. two new pins and the updated ux(human): Hidden 'lower-priority finding(s) omitted' mislabels base-side and unresolved-currentness evidence when a top gap is selected #5021 mixed-count test)cargo test -p xtask --bin xtask evidence_promotion(80 tests)cargo xtask goldens check— green after intended re-blessescargo xtask check-evidence-promotion-honesty— passcargo clippy -p ripr --lib/-p xtask --all-targets— cleanoutput::markdownpowershell translation tests requirepwsh, which is not installed on this machine.Closes #7642
Closes #7643