Skip to content

rust: a changed arm head also emits a return_value probe for the unchanged arm body, which reads as a gap #7074

Closed

Description

@EffortlessSteven

Repro (verdict-corpus case config-log-level-warn, a false_actionable row):

-        "warn" | "warning" => Ok(LogLevel::Warn),
+        "warning" | "warn" => Ok(LogLevel::Warn),

The test every_log_level_spelling_parses pins each spelling. ripr emits two findings on the line:

  • match_arm "warning" | "warn" =>: exposed. This one is correct.
  • return_value Ok(LogLevel::Warn): weakly_exposed, with "No complete owner-bound propagation witness found for returned value".

The edit touches only the arm head. The return value Ok(LogLevel::Warn) is byte-identical on both sides, so it is not changed behavior. Because it projects to a gap, the line reads as a false actionable.

Proposed fix (narrow). In the canonical-shape branch of probes_for_file (analysis/probes/diff.rs), drop a ReturnValue shape when both of these hold:

  1. its text lies wholly in the text the old and new lines share (the edit never touches it);
  2. another canonical shape on the same line holds the whole edit, so the line keeps a probe for what changed.

If no other shape holds the edit, nothing is dropped.

Spec: RIPR-SPEC-0122 (probe before/after). Product contract: "for the behavior changed in this diff".

Goal hurt: trustworthy verdicts (false actionable). Owner: first-run thread (misc false-verdict cluster).

Activity

  1. EffortlessSteven commented on Oct 8, 2026

    @EffortlessSteven
    MemberAuthor

    Landed in #7084 (squash merge 0340bf5, PR head 62371b0).

    What landed: probes/diff.rs drops a return value that lies wholly in text the old and new lines share, but only when another shape on the line holds the whole edit, so a changed line keeps a probe. The corpus row config-log-level-warn moves gap -> credited (ideal); five rows lose one scored finding with no verdict change. Required check (Ripr Rust Small Result) green on the merged head via Routed Rust Small run 37851499066; review threads from the codex, CodeRabbit and Graphite rounds addressed and resolved; cargo xtask verdict-corpus check no drift on the merged base (350 cases, 59/350 false).

    Residual: none known for this claim; the clause-specific behaviors are pinned by the four probes/diff.rs tests named in the PR body.

    Next owner: issue owner may close as delivered.

  2. added
    status/done-open
    on Oct 8, 2026
  3. EffortlessSteven commented on Oct 17, 2026

    @EffortlessSteven
    MemberAuthor

    Closing as delivered by #7084 (merged as 0340bf5); the delivery comment records no residual.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/done-open

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions