Repository navigation
test(corpus): measure RIPR-SPEC-0158 and 0159 acceptance examples - #9888
Conversation
…measure them Adds 13 spec-b cases, cites 13 existing cases, and withholds a missing-discriminator gap when a computed local is evaluated on some rows while another row's chain is refused. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VeN2hmqMmkK2TDY7KvMsQP
|
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 47 minutes. View limit details
Comment |
…argument false row (#9889) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VeN2hmqMmkK2TDY7KvMsQP
Review of recordHead reviewed: Angles (independent reviewer agents, read-only):
Findings and resolutions:
Local proof on this head: Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Verification questions
- Confirm the 0159 computed-argument case deliberately records a known false actionable gap, but the PR acceptance criterion claims zero new false verdicts.
Refuted
- The new local-operand validation could create a panic or type-confusion vulnerability.; refuted because: The changed code constructs ExactInputs from cloned row cell values and checks exact_operand_for_row(...).is_some(); it does not cast types, dereference pointers, index unchecked memory, or cross a trust boundary.
- The computed-argument known-false row makes the stated zero-new-false-verdicts criterion internally inconsistent.; refuted because: The case is explicitly registered in known-false for issue 9889 and the seeded review of record explicitly accepted its over-abstention/false-actionable behavior; the PR claims no new false verdicts rather than no false-actionable corpus rows.
- The ExactInputs reconstruction in activation.rs may introduce dangling references or an ownership/lifetime violation.; refuted because: The change clones owned metadata into a temporary map and passes it synchronously to the existing resolver; it does not store or return references, and no unsafe or native operation is introduced.
- Adding RIPR-SPEC-0158/0159 to TypeScript, Python, and Perl ledgers creates cross-language coverage claims requiring sibling cases.; refuted because: Each ledger explicitly marks both specs out of scope because the rules target Rust analyzer syntax; the in-scope Rust ledger raises the measured floor and maps the numbered examples.
- The added all-row exactness check might retain a stale active-view length snapshot or expose a backing-store resize.; refuted because: The affected analyzer path operates on Rust AST/value-transfer records. The fixture subject likewise uses &str and ordinary lengths; no allocation-backed view, resize, detach, transfer, pointer, or unsafe code is involved.
- The new corpus cases only prove reachability and would survive boundary-preserving mutants.; refuted because: Their paired inputs straddle the relevant threshold, while each case records one or two non-equivalent boundary mutants with failing-test evidence.
- This diff introduces a JS/worker handoff whose owned memory could outlive its worker or cross a GC/detach boundary.; refuted because: No JS runtime, thread/task spawning, async channel, Arc/RefCell sharing, raw pointer, buffer transfer, or detach surface appears in the changed analyzer or authored Rust fixture paths. The change performs synchronous cloning and exact-operand checks.
- The activation fix is untested.; refuted because: The new unit test drives both an evaluated present row and a refused absent row, then checks the key classification invariant and unresolved reason.
Evidence gaps
- Full Rust test success remains a late broker receipt rather than evidence already observed by this lane.
- Security-relevant runtime evidence is incomplete because the planned cargo-test sensor was still pending and the ripr sensor exited 2.
- Model proof intent was rejected by deterministic validation.
There was a problem hiding this comment.
Refuted
- The local-operand validation could panic or cross a trust boundary.; refuted because: The code only constructs owned metadata, performs ordinary iteration/collection, and queries exact_operand_for_row with is_some; the diff contains no cast, dereference, unchecked indexing, or unsafe boundary crossing.
- ExactInputs reconstruction in activation.rs may introduce an active-view/aliasing UB via a resizable buffer or detached ArrayBuffer; refuted because: ripr is pure Rust static analysis with no JS, no ArrayBuffer, no TypedArray, no .resize()/.detach()/.transfer(); ExactInputs is a HashMap<String,String> of owned clones consumed synchronously. Resizable-buffer invariants are entirely outside this codebase and this diff.
- The new activation logic crosses a JS worker/async/GC/detach/transfer boundary or has unsafe lifetime behavior.; refuted because: No JavaScript-backed worker or async boundary appears in the changed code. The changed Rust path uses cloned owned metadata and does not store references beyond the synchronous resolver call.
- The known-false computed-argument case makes the PR's zero-new-false-verdicts claim inconsistent.; refuted because: The seeded review and fixture explicitly classify this as a known false actionable row, while the PR claim is zero moved/new false verdicts under the corpus accounting; the row is disclosed rather than silently accepted.
- The computed-argument known-false fixture contradicts the stated zero-new-false-verdicts criterion.; refuted because: The seeded review and explicit known-false registration classify this as a known analyzer false actionable for issue 9889, not a new false verdict counted by the acceptance criterion.
- The computed-argument corpus row contradicts the zero-new-false-verdicts claim.; refuted because: It is explicitly a known-false row documenting an existing analyzer limitation for issue 9889; the PR claims no moved verdicts, not that every newly authored fixture is currently ideal.
- The computed-argument known-false row contradicts the stated zero-new-false-verdict criterion.; refuted because: The row is explicitly registered as known false for issue 9889 and is an accepted limitation of value-row transfer, not a newly introduced false verdict in the claimed corpus check.
- The new ExactInputs reconstruction could introduce ownership or lifetime unsafety.; refuted because: It clones owned row metadata into a temporary map consumed synchronously by the resolver; the change contains no unsafe access or returned borrowed reference.
- The computed-argument known-false row contradicts the stated zero-new-false-verdicts criterion.; refuted because: The PR claims no new false verdicts for existing corpus behavior, while this newly authored known-false case explicitly documents the analyzer limitation for issue 9889; the seeded review already resolved this distinction.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Requested by Steven · project thread
Summary
[[unmeasured]]to[[spec]](0158#18 and 0159#6 waived with reasons), and raises the floor 144 → 169.spec-b-*cases in the newauthored-spec-b-valuesubject (runtime-labeled;relabelreplays 13/13 with 0 drift) and cites 13 existing cases (local-boundary-flag-*,method-hop-field-read-*,bytesize-format-unit-first-run,tokens-word-start-helper).spec-b-0158-dynamic-default: a computed local that some rows evaluate while another row's chain is refused (absentrfind, dynamicmap_ordefault) reported a missing-discriminator gap on a fully discriminated test. It now readsinfection_unknown(activation.rs, with a unit test). No existing corpus row moved.Source-of-truth Links
Spec: RIPR-SPEC-0158, RIPR-SPEC-0159
Governing issue or accepted claim: #9271 (0.11 readiness); claim in verdict-corpus/spec-coverage-inventory.md ("Unnumbered Rust specs B")
Acceptance delta (one sentence): Every acceptance example of RIPR-SPEC-0158 and 0159 is numbered and either covered by a labeled corpus case or waived with a reason.
Scope Classification
Single acceptance criterion:
cargo xtask verdict-corpus checkcovers 169/169 in-scope examples with zero new false verdicts.Proof
cargo xtask goldens checkshows only thetypescript_enum_wrong_exportdrift already on main (fix of record #9884).Claim Boundary
Static corpus measurement only; no runtime-mutation claim beyond each case's labeled mutants.
Generated by Claude Code