Repository navigation
fix(rust): withhold gaps for owners reached without a placeable call - #9477
EffortlessSteven wants to merge 16 commits into
Conversation
|
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 59 minutes. View limit details
Comment |
|
Follow-up for crediting the four limited shapes: #9478. The limit's Generated by Claude Code |
60267dc to
032a74f
Compare
…9442, #9443) An owner passed as a function value, generated by an item macro, or called inside block_on / a local Future-polling helper has no call ripr can pair with the assertion. Those read weakly_exposed; they now read static_unknown under the new rust_indirect_owner_call_unresolved limit. comment after the owner's tail no longer defeats the owner-return pin, so shape-hostile-cfg-attr-test credits. Re-blessed: 5 rows (1 credited, 4 limited); no other row moved. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
Pattern bindings of the owner's name are locals; a value use counts only in a listed test when a related test already calls the owner; ignored-test and unrelated-binding controls; cache schema bumps; judged-panel kind mirror. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
…9442) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
…d boundary_gap snapshots (#9442) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
…ss the async rows (#9442) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
…pshot (#9442) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
032a74f to
4489505
Compare
|
Review of record — head Angles, each by an independent reviewer agent: (1) correctness and edge cases, (2) tests and regressions (including mutation checks on the new predicates), (3) spec and contract. Findings and resolutions:
Rebased on main (cache bump 1.91 from the skip-list change landed first). The known_false entries this fix retires are removed, plus three stale Rust entries (#9441) that #9588 also drops. Rust corpus check passes (555 cases, ledger matches); Still open after merge: the Generated by Claude Code |
… out of the ledger Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
|
Independent read of head Finding:
Fix. In the normalizer paths use Checked and fine. Predicate evaluation only credits Not established: whether another consumer outside the two paths named above reads Generated by Claude Code |
|
Source review of the diff at head 797184d (static read by a review worker; nothing built or run; I have not re-traced these lines myself). Disposition: COMMENT with concerns. No provider review exists (Gemini and CodeRabbit posted only quota notices) and there are no review threads. Staleness: Concerns (the first can create a false gap, the others hide real gaps):
Nits: Checked and fine: the enum, Not checked: fixtures and corpus truth, whether Generated by Claude Code |
|
The read-only review finding ( Generated by Claude Code |
# Conflicts: # crates/ripr/src/analysis/language/rust/mod.rs # crates/ripr/src/analysis/seam_cache.rs # crates/ripr/src/domain/language.rs # crates/ripr/src/lsp/gap_artifacts.rs # crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs # docs/OUTPUT_SCHEMA.md # docs/STATIC_LIMITS.md # docs/roadmap/false-verdicts.md # fixtures/boundary_gap/expected/CHANGELOG.md # fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.json # fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json # fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.json # fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json # fixtures/rust-verdict-corpus/spec-coverage.toml # policy/output_contracts.txt # xtask/src/python_judged_panel.rs # xtask/src/tests/rust_corpus_projection.rs
There was a problem hiding this comment.
Confirmed findings
- Two cfg_attr negative tests have weaker oracle assertions than the neighboring gap controls: they pass on any non-exposed outcome, including no finding, so they may not detect the intended false-credit regression cleanly.
- cfg_attr(all(), test, ignore) is accepted by attribute_introduces_test in the fact normalizer, while owner-pin logic requires attribute_introduces_only_test.
Verification questions
- Confirm function-value detection treats any integration test as seeing the owner, but the finding's related-test relation is not required when no direct/helper call is listed.
- Confirm the cfg_attr fact path is not symmetric with owner-pin credit: facts use attribute_introduces_test and admit a test sibling, whereas owner pin requires attribute_introduces_only_test.
- Confirm the repository claims the new limit has a complete proof path, but the ripr sensor failed with exit code 2 and cargo-test is only scheduled late; unavailable test evidence should not be presented as established safety.
- Confirm the new public integration test only checks that cfg_attr(all(), test, ignore) does not produce exposed credit, not that it remains non-crediting in every gap-admission route.
- Confirm the cfg_attr sibling and unknown-predicate controls assert only that no finding is exposed; they do not distinguish an expected retained gap from an unrelated finding disappearance or unsupported limit.
- Confirm the cfg_attr negative controls cover feature-gated predicates and an introduced ignore sibling, but the supplied patch does not show an explicit should_panic negative control.
Refuted
- This change crosses a worker handoff, GC, detach, or transferable-memory boundary that could create use-after-free or ownership loss.; refuted because: The changed implementation is a Rust source analyzer with no JavaScript runtime, worker, GC, detach, or transferable-memory API in scope. Its Future-related logic only recognizes call syntax and is not an asynchronous ownership handoff.
Evidence gaps
- Runtime evidence remains incomplete because ripr failed and cargo-test had not yet produced a receipt when this lane reviewed the packet.
- Deterministic execution proof is unavailable in the supplied packet because cargo-test has no receipt and the ripr sensor failed.
- Model proof intent was rejected by deterministic validation.
…(merge reconciliation)
…past both changes Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
…erations 1.99 / 1.47 in pins and snapshots (#9442) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
…d (left to #9478) (#9442) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
… 1.100 / 0.107 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY
|
Superseded — claim delivered by #9845. PR #9845 ("fix(rust): withhold gaps for owners reached without a placeable call (successor to #9477)") landed this same claim on main as This branch's final head Residuals, for the record:
Convergence evidence: PR #9477 head |
Summary
Fixes #9442 and #9443 (under #9410). Based on main.
Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Governing issue or accepted claim: #9442, #9443
Acceptance delta (one sentence): The Rust corpus rows for function-value, fn-pointer,
cfg_attrtest, macro-generated andblock_on-wrapped owners stop being false actionable.What changed
rust_indirect_owner_call_unresolved(RIPR-SPEC-0240,classify/indirect_owner.rs). Withholds a weak gap when a related test passes the owner as a function value, when the changed line is an item-position macro invocation, or when the owner call is the only argument ofblock_on/ a localFuture-polling helper. Limited, not credited: crediting needs the iterator chain or executor result evaluated (feat(rust): credit owners reached as function values, macro-generated or inside block_on instead of limiting them #9478).#[cfg_attr(<known-true predicate>, test)]is a test in the fact normalizer, parser and owner pin. Feature/target predicates and siblings likeignorestill refuse.Corpus effect
shape-hostile-cfg-attr-test→ credited;shape-hostile-owner-as-path-value,-through-fn-pointer,-macro-defined-owner,shape-async-fn-block-on→ limited. Their[[known_false]]entries are removed.Proof
Non-goals: attribute noise (#9439), implicit trait-method reach (#9441).
Claim boundary
May claim: these forms no longer produce an actionable gap. Must not claim: ripr reads them correctly beyond the cfg_attr case.
Rollback
Revert the commit.
🤖 Generated with Claude Code
https://claude.ai/code/session_014rDKCvewzinJrP5bh5iuSY