Skip to content

fix(explain): verdict recipe is conditional on an unresolved reach edge - #10253

Merged
EffortlessSteven merged 4 commits into
mainfrom
claude/project-thread-hbrih0
Oct 26, 2026
Merged

EffortlessSteven merged 4 commits into
mainfrom
claude/project-thread-hbrih0

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Source-of-truth Links

Proposal:
Spec: docs/specs/RIPR-SPEC-0319-classification-keyed-guidance.md
ADR:
Plan item:
Governing issue or accepted claim: #10220 (parent #10192, guidance umbrella #9438)
Acceptance delta (one sentence): ripr explain no longer says "call the owner, directly or through a helper" when the finding retains an unresolved reach edge; it says to call the owner directly if tests can name it and that the edge can stay unresolved even with an exact assertion.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-hbrih0
Stack parent or prerequisite PR (if any): none (#9449 merged)
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): n/a

Proof

  • New explain test pins the conditional wording for a retained transitive-reach stop reason and the unchanged wording when no unresolved edge is retained.
  • Spec 0319 amended; traceability updated; changelog fragment added.
  • One golden re-blessed (rust_qualified_foreign_receiver): its Next: line for rust_implicit_call_unresolved came from a limitation kind main added after feat(guidance): next step for every static limitation and stop reason #9449; the verdict-recipe wording itself changed no other golden.
  • cargo xtask precommit green locally; owner_return_pin_fallible_literal not comparable offline, hosted CI owns it.

Generated by Claude Code

@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!

@EffortlessSteven EffortlessSteven self-assigned this Oct 25, 2026
@coderabbitai

coderabbitai Bot commented Oct 25, 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 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 186 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: ef2c1a60-a901-4133-ab07-9f836645595e
Commits

Reviewing files that changed from the base of the PR and between 10d335a and 4c40f2c.

Files selected for processing: 5
  • .ripr/traceability.toml
  • changelog.d/10220-explain-recipe-unresolved-edge.md
  • crates/ripr/src/output/human/explain.rs
  • docs/specs/RIPR-SPEC-0319-classification-keyed-guidance.md
  • fixtures/rust_qualified_foreign_receiver/expected/CHANGELOG.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

…esolved-edge recipe (#10220)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GuGQtbbAYUM1bgExeZ3jiv

Copy link
Copy Markdown
Member Author

Review of record, head 6127fae8

Angle: correctness and no-false-repair, spec conformance (independent reviewer agent, read-only, on e093e949). No blocking findings. The unresolved-edge set matches the limit_guidance set; both "call the owner" paths (no related tests, NoCallPath) are conditional when an unresolved edge is retained; spec 0319 matches. Kinds deliberately left with a direct-call recipe (macro-wrapped test call, subprocess binary, Python transitive) match their limit_guidance steps.

Resolution of the reviewer's one gap: head 6127fae8 adds the static_limit_kind plus NoCallPath case to the regression test and replaces the vacuous assertion with a positive one on the unchanged wording.

Local cargo xtask precommit green on the code at e093e949; the later commit changes a test only (static-language and allow-attribute gates re-run green). Hosted qualification pending.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 25, 2026 06:24
@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!

Copy link
Copy Markdown
Member Author

The Rust-only feature lane failure on 6127fae is not a test assertion. The lib test binary was killed by SIGINT (process didn't exit successfully ... signal: 2, SIGINT) right after the cli::interrupt and cli::parse tests ran; no test reported FAILED, and every other target in the lane passed. That looks like an interrupt test signalling the shared process group on the runner, not something this diff touches. I've re-run the failed job. If it fails the same way again I'll file it as its own issue.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

This PR re-blesses only rust_qualified_foreign_receiver, but main (9766ac5ad) also drifts on cargo xtask goldens check for 13 Python fixtures, all human-full.txt gaining the same RIPR-SPEC-0319 Next: line, so the required check will stay red after this merges:

python_conditional_foreign_callable_write, python_conditional_foreign_version_write, python_conditional_version_annotated_write, python_conditional_version_attribute_write, python_conditional_walrus_replacement, python_module_backslash_return, python_module_continuation_return, python_module_formatted_generator_test, python_module_generator_test, python_module_prior_failing_assert, python_module_reader_replacement, python_module_same_line_prior_assert, python_module_test_reader_replacement.

A mechanical patch for all 14 (28 files: human-full.txt plus blessing CHANGELOGs, insertions only, generated with cargo xtask goldens bless) is at /mnt/project-files/main-break-goldens-0319/bless-14-human-full-fixtures.patch; the drift report is beside it. Please fold the 13 Python fixtures in (the rust one will conflict with yours, so drop it from the patch or re-bless it after). Note your own explain change may alter other outputs, so re-run cargo xtask goldens check after folding.


Generated by Claude Code

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

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the regression test covers TransitiveReachUnresolved and RustIntegrationPublicApiPathUnresolved, but not the other kinds newly recognized by reach_edge_unresolved.
  • Confirm the regression test covers transitive stop-reason and public-API static-limit paths, but not every listed macro/depth/static variant.
  • Confirm broad producer-level coverage of every StopReason and StaticLimitKind mapping was not demonstrated by this lane's bounded sibling scan.

Refuted

  • The conditional recipe could be driven by invalid borrowed data or could alter ownership of the owner signature.; refuted because: The helper accepts a shared Finding reference and only reads copied enum metadata; the owner signature remains an Option<&str> and is interpolated into a new owned String without mutation or unsafe access.
  • The changed code could expose an active-view-versus-backing-store mismatch, stale length snapshot, or resize/detach/transfer hazard.; refuted because: The Rust diff performs no JavaScript view mutation or buffer access. It only classifies an existing Finding using effective_stop_reasons and static_limit_kind, then builds deterministic display text; no region, capacity, length, ownership, detach, or transfer state is read.
  • This change could introduce a worker/async handoff lifetime defect because the packet marks unsafe/native risk as touched.; refuted because: The packet flag is repository-level metadata, while this diff modifies only Rust formatting logic and documentation. No worker, async, GC, detach, or transfer implementation was changed.
  • The golden fixture should demonstrate the changed verdict-recipe wording.; refuted because: The fixture is a separate rust_implicit_call_unresolved limitation path whose added Next line is not the changed verdict recipe; the dedicated source unit test is the relevant oracle.
  • The new wording changes the verdict for all findings with related-test misses.; refuted because: The conditional branch is applied only when reach_edge_unresolved(finding) is true; the focused test preserves the prior plain NoCallPath wording when no unresolved edge is retained.
  • The fixture re-bless could conceal an unintended broad output change.; refuted because: The observed fixture diff adds only the limitation-specific Next line, while the source change is localized to verdict_changers and its regression test; the seeded review records that the verdict wording changed no other golden.

Evidence gaps

  • Full execution evidence was not available in the cached context: ripr failed and cargo-test was scheduled late, so the human-output regression test still requires the configured test witness.
  • The PR's cross-link to limit_guidance is not independently pinned by the added test.

Copy link
Copy Markdown
Member Author

The Rust-only feature lane re-run on 6127fae passed, so the earlier failure was a SIGINT kill of the test binary and not a test result. Ripr Rust Small Result is still running.

On the bot review (commented, no change requested): the regression test covers the stop-reason path (TransitiveReachUnresolved) and the static-limit path (RustIntegrationPublicApiPathUnresolved) plus the plain-recipe negative. MaxDepthReached, MacroReachUnresolved and RustMacroReachUnresolved share the same one-line matches! in reach_edge_unresolved, so they take the same branch. Per-variant coverage is a cheap follow-up; I'll fold it into the next guidance PR on #9438 instead of restarting the ~45 minute qualification on this head.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Goldens pairing note: main at 9766ac5 drifts on 14 human-full.txt fixtures after #9449. #10269 re-blesses the 13 Python ones and deliberately leaves rust_qualified_foreign_receiver to this PR, which is the fix of record for that fixture (it was opened first and already carries merge-ready). #10260 also re-blesses the same Rust fixture; whichever lands second needs to take main's version of that file. Main's goldens check is green once both #10269 and this PR land.


Generated by Claude Code

EffortlessSteven pushed a commit that referenced this pull request Oct 25, 2026
Each bless PR's required run checks goldens on the merge with main, so a
Python-only PR stays red on the Rust fixture until #10253 lands and #10253
stays red on the Python fixtures. Taking #10253's expected files byte for
byte makes this PR self-sufficient; #10253 merges main cleanly afterwards.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PsBV1iPptZ2evQuHbhzELP

Copy link
Copy Markdown
Member Author

Update: #10269 now carries this PR's rust_qualified_foreign_receiver bless, byte for byte. Each PR's required run checked goldens on the merge with main, so this PR and #10269 kept each other red. #10269 is now the single fix of record for the 14-fixture goldens break and supersedes the goldens part of this PR. Once it lands, merging main here is conflict-free for that fixture because both sides are identical, and the explain change itself is unaffected.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Concrete shared-baseline failure handoff to the existing #10253 canonical owner. Required campaign40168988118 is terminal failed (producer121095917529; Result121103690675), actual tested mergef8f9865c3a6dd414566b71741495cf5e890ba5b4.21,077 required tests passed,5skipped; doctests passed. The rust_qualified_foreign_receiver golden no longer appears in the failure list, but13 Python human-full goldens now expect a blank where output adds 'Next: Add a test that calls the changed code and asserts an exact result.'

Affected fixtures: python_conditional_foreign_callable_write, python_conditional_foreign_version_write, python_conditional_version_annotated_write, python_conditional_version_attribute_write, python_conditional_walrus_replacement, python_module_backslash_return, python_module_continuation_return, python_module_formatted_generator_test, python_module_generator_test, python_module_prior_failing_assert, python_module_reader_replacement, python_module_same_line_prior_assert, python_module_test_reader_replacement.

This is the shared integration signature also observed on #10196, not evidence of13 new classifier defects. Existing fixture provenance is #10235 (canonical Claude session_01Md92nb17wXfHAmQNvaWYu3; mergeaeb777757c6846ce18a1b2d5bfb70270ea15f1ec), combined with #9449 guidance. Please coordinate with that existing fixture owner for the current-baseline integration repair, preserving classifications, JSON and semantic guidance; inspect precise expected-output deltas rather than blanket blessing. No duplicate writer or unchanged-head rerun is requested. #10203/#10246/#10247 await this shared repair's accepted landing, then their own owner refresh and required exact-candidate checks. Existing held review publications and access restrictions remain untouched; this comment is only the terminal CI dependency handoff. Downstream skipped checks are not passes, and this is not merge clearance.

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head 6127fae8), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJgwEL5EqfhxV47nHYYpMV

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

Devin Review

Comment thread crates/ripr/src/output/human/explain.rs Resolved
Comment thread crates/ripr/src/output/human/explain.rs Resolved
…sts relate

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJgwEL5EqfhxV47nHYYpMV

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

Verification questions

  • Confirm the regression test pins the unresolved-edge wording and the unchanged plain recipe, but does not exercise every enum variant accepted by reach_edge_unresolved.
  • Confirm the displayed regression test does not independently pin MaxDepthReached, MacroReachUnresolved, or RustMacroReachUnresolved, although all share the shown matches! classification route.
  • Confirm existing per-variant coverage was not demonstrated for every stop/static-limit kind recognized by the new predicate.
  • Confirm per-variant regression coverage is incomplete for every stop-reason and static-limit kind recognized by the new predicate.

Refuted

  • The unresolved-edge classifier could mutate classification state or introduce an aliasing hazard while reading effective_stop_reasons.; refuted because: The classifier only iterates copied enum values and matches a copied Option enum; it does not mutate the Finding or its backing collections.
  • The changed recipe could rely on an active view whose length or backing-store state is stale.; refuted because: The function reads Finding metadata and effective_stop_reasons, then formats strings. It does not create, retain, mutate, resize, detach, or transfer an ArrayBuffer/TypedArray or any other buffer-like storage.
  • The test suite must cover every newly recognized reach-edge variant before this change is correct.; refuted because: The seeded thread explicitly accepted deferring per-variant coverage to the next guidance PR and documented that the variants share the same branch. This remains residual test risk rather than a current correctness failure.
  • The classification is Rust-only and therefore misses Python transitive findings.; refuted because: The classifier intentionally keys on retained stop reasons and static limit kinds, not language; TransitiveReachUnresolved is shared across languages and the seeded review confirms this is intended.
  • The unresolved-edge branch could be activated by unrelated worker or asynchronous state.; refuted because: Its input is limited to effective finding stop reasons and static_limit_kind; no worker, async, GC, detach, or transfer state participates.
  • The conditional recipe is Rust-specific and would incorrectly alter Python explanations.; refuted because: The implementation keys on retained reach classifications rather than language, and the spec states transitive, public-API-path, macro, and depth limits are classification-keyed. Python findings retaining TransitiveReachUnresolved are intentionally covered.

Evidence gaps

  • Automated test evidence is not yet complete in the supplied packet.
  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Review of record, head 4c40f2c.

Angles: correctness (reach_edge_unresolved keys on retained stop reasons and static-limit kinds, so the conditional recipe appears only when the finding carries an unresolved reach edge; the plain recipe is unchanged otherwise); tests (the explain test pins the conditional wording for the stop-reason and static-limit paths, the unchanged wording without an unresolved edge, and now the ; assert on its result step in the no-related-tests branch); spec (RIPR-SPEC-0319 already states the rule language-neutrally, so Python findings retaining TransitiveReachUnresolved getting the same wording is intended); scope (explain wording only; classification, JSON, SARIF and gate output unchanged; one golden re-blessed for a limitation kind main added earlier).

Findings: both Devin findings were verified. The missing assert step was a real defect in this PR and is fixed in 4c40f2c; the Python note is intended and answered. The automated review's per-variant coverage question is residual test risk, since the variants share one matches! branch; it is not a correctness failure. No open threads, Ripr Rust Small Result green on this head.

Merging on the green exact head.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 8518f68 into main Oct 26, 2026
56 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-hbrih0 branch October 26, 2026 04:01
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.

2 participants