Skip to content

fix(ux): clear four evidence and oracle rendering frictions - #8161

Merged
EffortlessSteven merged 3 commits into
mainfrom
fix/ux-evidence-oracle-batch
Oct 16, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
fix/ux-evidence-oracle-batch

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

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.

Both premises were re-verified against origin/main HEAD 20022bbfe before 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

  • Ordinary output, spec, test and fixture development for EffortlessMetrics/ripr-swarm.
  • Swarm-only CI, runner, routing or operating-surface change.
  • Other swarm-scoped work.

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-blesses
  • cargo xtask check-evidence-promotion-honesty — pass
  • cargo clippy -p ripr --lib / -p xtask --all-targets — clean
  • Pre-existing environment failures unrelated to this change: two output::markdown powershell translation tests require pwsh, which is not installed on this machine.

Closes #7642
Closes #7643


Devin Review

…#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.
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

The 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.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: eaf433a7-e652-495c-812f-c7994e5acb23
📥 Commits

Reviewing files that changed from the base of the PR and between 2d0aacc and b29059c.

📒 Files selected for processing: 2
  • changelog.d/7642-proximity-oracle-rows-no-call-path.md
  • changelog.d/7643-hidden-bullet-currentness.md

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 50808acb-f411-44d9-a26e-e087c2153e58
📥 Commits

Reviewing files that changed from the base of the PR and between 365990c and 2d0aacc.

📒 Files selected for processing: 25
  • changelog.d/7642.md
  • changelog.d/7643.md
  • crates/ripr/src/analysis/classifier/finding.rs
  • crates/ripr/src/output/human.rs
  • crates/ripr/src/output/human/triage.rs
  • fixtures/evidence-promotion-honesty-corpus/corpus.json
  • fixtures/human_full_shared_parse_port/expected/CHANGELOG.md
  • fixtures/human_full_shared_parse_port/expected/human.txt
  • fixtures/match_arm_proximity_wrapper_confirms/expected/CHANGELOG.md
  • fixtures/match_arm_proximity_wrapper_confirms/expected/check.json
  • fixtures/match_arm_proximity_wrapper_confirms/expected/human-full.txt
  • fixtures/multi_hunk_removed_line_wrong_target/expected/CHANGELOG.md
  • fixtures/multi_hunk_removed_line_wrong_target/expected/human.txt
  • fixtures/owner_return_pin_identity_traps/expected/CHANGELOG.md
  • fixtures/owner_return_pin_identity_traps/expected/check.json
  • fixtures/owner_return_pin_identity_traps/expected/human.txt
  • fixtures/rust_slice_table_call_exit/expected/CHANGELOG.md
  • fixtures/rust_slice_table_call_exit/expected/check.json
  • fixtures/rust_slice_table_call_exit/expected/human-full.txt
  • fixtures/rust_slice_table_try_exit/expected/CHANGELOG.md
  • fixtures/rust_slice_table_try_exit/expected/check.json
  • fixtures/rust_slice_table_try_exit/expected/human-full.txt
  • xtask/src/evidence_promotion.rs
  • xtask/src/tests.rs
  • xtask/src/tests/discarded_matcher_honesty.rs
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

Summary by CodeRabbit

  • Bug Fixes
    • Related tests linked only by proximity are now identified as having no call path to changed code, clarifying their evidence without affecting classifications or reach decisions.
    • Hidden findings now show their currentness category when the list contains multiple categories; single-category lists retain the existing format.

Walkthrough

The 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.

Changes

Related-test evidence

Layer / File(s) Summary
Annotate proximity-only oracle rows
crates/ripr/src/analysis/classifier/finding.rs
Matched-oracle rows with a relation reason that does not establish owner reach now receive NoCallPath in the applicable exposure classes. Tests cover reaching rows, missing relation data, and existing misses.
Pin and verify miss values
xtask/src/evidence_promotion.rs, xtask/src/tests.rs, xtask/src/tests/discarded_matcher_honesty.rs, fixtures/evidence-promotion-honesty-corpus/corpus.json, fixtures/match_arm_proximity_wrapper_confirms/expected/*, fixtures/owner_return_pin_identity_traps/expected/*, fixtures/rust_slice_table_call_exit/expected/*, fixtures/rust_slice_table_try_exit/expected/*, changelog.d/7642.md
Evidence-promotion assertions can constrain a miss to a specific value, require no miss with null, or leave it unconstrained. The corpus and expected outputs record proximity-only rows as no_call_path.

Hidden-finding currentness labels

Layer / File(s) Summary
Render mixed currentness categories
crates/ripr/src/output/human/triage.rs, crates/ripr/src/output/human.rs, changelog.d/7643.md
When hidden findings span multiple currentness categories, bullets include a category label. Single-category lists keep the previous unlabeled format. Tests cover both cases.
Update hidden-bullet expectations
fixtures/human_full_shared_parse_port/expected/*, fixtures/multi_hunk_removed_line_wrong_target/expected/*, fixtures/owner_return_pin_identity_traps/expected/CHANGELOG.md, fixtures/owner_return_pin_identity_traps/expected/human.txt
Expected human output labels hidden findings as base-side evidence or lower-priority candidates. Fixture changelogs record the output updates.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to 2d0aa

No merge-blocking issue was identified in the evidence annotations or hidden-finding output. Merge after normal checks.

Pre-merge checks: Passed 3 · Failed 1 · Inconclusive 1

Failed Failed checks: 1 warning · 1 inconclusive

Check name Status Explanation Resolution
Description check Warning The description gives a clear summary, scope boundary, issue references, validation results, and known environment limitations. It omits most required template sections, including source-of-truth link… Complete the missing template sections. Add source-of-truth and relationship details, scope and acceptance criteria, support-tier and policy impact, proof commands and results, claim boundary, rollback steps, spec/test/code/golden traceabil…
Docstring Coverage Inconclusive Docstring coverage is 63.16% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 19 functions across 5 files. (20 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Linked Issues check Passed The PR addresses both active direct issues. For #7642, annotate_related_test_misses marks a matched oracle row as no_call_path when its recorded relation does not establish reach. It leaves rows w…
Out of Scope Changes check Passed The changes stay within the linked issue scope. The classifier and triage updates implement #7642 and #7643. The corpus assertion support, tests, golden updates, and changelog entries provide required…
Title check Passed The title is concise and clearly identifies the main UX changes to evidence and oracle rendering. It is related to the implemented changes, although it does not describe the hidden-finding category la…
Full details: Docstring Coverage

Explanation

Docstring coverage is 63.16% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 19 functions across 5 files. (20 skipped: 19 unsupported, 1 too large.)

Full details: Description check

Explanation

The description gives a clear summary, scope boundary, issue references, validation results, and known environment limitations. It omits most required template sections, including source-of-truth links, scope classification, support-tier impact, policy impact, proof, rollback, claim boundary, traceability, engineering checks, and gate results.

Resolution

Complete the missing template sections. Add source-of-truth and relationship details, scope and acceptance criteria, support-tier and policy impact, proof commands and results, claim boundary, rollback steps, spec/test/code/golden traceability, static-language and engineering check results, and the applicable gate statuses. Mark CI Economics as n/a if the PR does not change CI behavior.

✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit reads each test row twice,
And marks the paths that miss the call.
Hidden clues now wear their labels,
So base-side rows stand out from all.
The corpus pins each miss in place,
Then hops along, content and small.

Comment @coderabbitai help to get the list of available commands.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 16, 2026 02:46
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 16, 2026 02:46
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@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 3 potential issues.

Devin Review

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 16, 2026 03:00
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 16, 2026 03:01
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions 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.

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/why keys.; 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.

Copy link
Copy Markdown
Member Author

Independent bounded review/evidence handoff; lane C remains the sole fix owner.

Reviewed head b29059c927a0c42cf05e8cbc02d7e17c37ba32ea, tree f11b1e87d95b442928344175fa23852537b3698d, observed PR base 365990c4e0a98632dc5c81eec1106ff8e751bf8e. Read AGENTS.md and review-pr/prepare-proof, inspected the 25-file delta and relevant producer/renderer/corpus consumers. No candidate source edits or pushes.

Existing-owner findings, with new controls (no separate novel defect established):

  • Aligned direct sinks still leave unrelated siblings unqualified. Independent compiling fixtures reproduce exposed return-value, error-path/return-companion, and field-construction findings with a direct exact test plus a strong same_test_file sibling whose miss is absent. For return and field, changing only the direct assertion's spelling keeps the finding exposed yet makes the unchanged sibling receive no_call_path. This isolates build_finding's whole-pass skip under exact_oracle_covers_direct_sink (finding.rs:60). This is the already accepted residual, not a new regression; ux(evidence): same-file sibling tests render as unqualified oracle evidence rows on exposed findings #7642 coverage remains incomplete.
  • Bounded relation evidence cannot justify “never invokes/cannot discriminate.” Live match_arm_proximity_wrapper_confirms output matches its golden: both bridge_fortnight and from_str_fortnight carry same_test_file/no_call_path. Compile its actual input with rustc --edition=2024 --test. Both selected tests pass. Change only Unit::Fortnight => 1_209_600, to Unit::Fortnight => 1_296_000,: tests::bridge_fortnight fails (101, 1296000 versus 1209600); tests::from_str_fortnight still passes (0). This strengthens the existing wording concern, rather than creating a new classification issue.
  • Unknown-class witness: copy rust_slice_table_try_exit/input, add public mean_bridge(s: &[u64]) -> u64 { mean_latency(s) } before the test module and #[test] fn bridge_empty() { assert_eq!(mean_bridge(&[]), 0); } inside it. Analyze with the fixture's unchanged diff: predicate stays infection_unknown; bridge_empty gets same_test_file/no_call_path in JSON and human-full. Its selected runtime test passes; changing only if samples.len() == 0 { to if false { makes it fail (101, divide by zero). This concretely extends the same bounded-label concern to an unknown class.

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 return amount - 1; to return amount; and run this head's ripr check --root <crate> --diff <patch> --mode fast --format json (also human-full). Sibling has no miss. Replace only the first assertion with assert_eq!(calculate(5), 8);: same exposed class, sibling gets no_call_path. Both test variants compile/pass; changing the owner's return to amount - 1 fails the direct test and leaves the unrelated test green.

Field analogue: return Config { status: amount } after binding amount = x + 3, diffing the field from amount - 1; direct test binds amount = 8, cfg = calculate(5), then asserts cfg.status == amount; sibling constructs its own Config and asserts that field. Replace only the direct assertion with assert_eq!(calculate(5).status, 8); to restore the sibling annotation while retaining exposed. Error analogue: diff Err(Fail::Negative) to Err(Fail::TooLarge) under x > 5; direct test calls calculate(9).unwrap_err() and pins TooLarge, sibling creates TooLarge locally and pins it. Both exposed error/return findings leave the sibling unqualified. Each two-test fixture passes; wrong owner results fail direct tests (101), while all unrelated controls pass (0).

Local evidence: Linux/Bash, rustc 1.95.0 (59807616e), cargo 1.95.0 (f2d3ce0bd); isolated detached checkout and separate target. Exact-head cargo build -p ripr --bin ripr --locked passed; analyzer SHA256 839ae10e2ac5a69de7d1d400c2310e3bb58f980bb3bb4ae5a33b9e3314fea4e6. Seven nonempty live analyzer cases retained, plus runtime controls and raw JSON/human/logs. No stale installed binary used.

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. explain guards verdict-changing advice away from exposed/unknown classes, refuting that suspected extension. Next action belongs to lane C: pin aligned-sink siblings, retain bounded labels, preserve weak-gap behavior, then review the repaired head. No bot contact, thread resolution, Ready/merge, CI dispatch or release/security changes.

Focused exact-head tests: cargo test -p ripr --lib analysis::classifier::finding --locked — ok. 15 passed; 0 failed; 0 ignored; 0 measured; 11034 filtered out; finished in 0.00s; cargo test -p ripr --lib output::human --locked — ok. 188 passed; 0 failed; 0 ignored; 0 measured; 10861 filtered out; finished in 0.08s. These observed denominators supersede inherited counts for this receipt. Both commands exited 0.

Setup observations: Cargo/Rust were absent from PATH; default Rustup home creation failed read-only. Explicit existing /workspace/.cargo and /workspace/.rustup resolved setup without installation or credential changes. An exploratory listing of /root/.cargo/bin was permission-denied and not retried. No task-essential action remains access-blocked. Review/evidence paths are retained; no cleanup was attempted under the user’s restriction.

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

Labels

None yet

Projects

None yet

1 participant