Repository navigation
fix(explain): verdict recipe is conditional on an unresolved reach edge - #10253
Conversation
…ge (#10220) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GuGQtbbAYUM1bgExeZ3jiv
|
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 reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
Comment |
…esolved-edge recipe (#10220) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GuGQtbbAYUM1bgExeZ3jiv
Review of record, head
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
The Generated by Claude Code |
|
This PR re-blesses only
A mechanical patch for all 14 (28 files: human-full.txt plus blessing CHANGELOGs, insertions only, generated with Generated by Claude Code |
There was a problem hiding this comment.
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.
|
The On the bot review (commented, no change requested): the regression test covers the stop-reason path ( Generated by Claude Code |
|
Goldens pairing note: main at 9766ac5 drifts on 14 Generated by Claude Code |
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
|
Update: #10269 now carries this PR's Generated by Claude Code |
|
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. |
|
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJgwEL5EqfhxV47nHYYpMV
…sts relate Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJgwEL5EqfhxV47nHYYpMV
There was a problem hiding this comment.
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.
|
Review of record, head 4c40f2c. Angles: correctness ( 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 Merging on the green exact head. Generated by Claude Code |
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 explainno 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
explaintest pins the conditional wording for a retained transitive-reach stop reason and the unchanged wording when no unresolved edge is retained.rust_qualified_foreign_receiver): itsNext:line forrust_implicit_call_unresolvedcame 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 precommitgreen locally;owner_return_pin_fallible_literalnot comparable offline, hosted CI owns it.Generated by Claude Code