Skip to content

test(corpus): measure RIPR-SPEC-0158 and 0159 acceptance examples - #9888

Merged
EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-lffaof
Oct 23, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-lffaof

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

  • Numbers the acceptance examples of RIPR-SPEC-0158 (18) and RIPR-SPEC-0159 (9), moves both from [[unmeasured]] to [[spec]] (0158#18 and 0159#6 waived with reasons), and raises the floor 144 → 169.
  • Adds 13 spec-b-* cases in the new authored-spec-b-value subject (runtime-labeled; relabel replays 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).
  • Fix surfaced by spec-b-0158-dynamic-default: a computed local that some rows evaluate while another row's chain is refused (absent rfind, dynamic map_or default) reported a missing-discriminator gap on a fully discriminated test. It now reads infection_unknown (activation.rs, with a unit test). No existing corpus row moved.
  • TS, Python and Perl ledgers list 0158/0159 as out of scope.

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

  • Docs/spec/test-only evidence package (plus one small analyzer fix the new case surfaced)

Single acceptance criterion: cargo xtask verdict-corpus check covers 169/169 in-scope examples with zero new false verdicts.

Proof

cargo xtask verdict-corpus check        # 169/169 covered, no moved rows
cargo xtask verdict-corpus relabel --case spec-b-...   # 13 replayed, 0 drifted
cargo test -p ripr --lib classify       # 1706 passed
cargo test -p xtask --bin xtask verdict_corpus
cargo xtask precommit

cargo xtask goldens check shows only the typescript_enum_wrong_export drift 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

…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
@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 22, 2026
@coderabbitai

coderabbitai Bot commented Oct 22, 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 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 124 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: 5f565749-d263-4a03-9eae-534e21cb64b8
📥 Commits

Reviewing files that changed from the base of the PR and between 69e1c17 and a33f608.

📒 Files selected for processing: 78
  • changelog.d/spec-b-0158-0159-corpus-cases.md
  • crates/ripr/src/analysis/classify/activation.rs
  • docs/specs/RIPR-SPEC-0158-bounded-value-transfer.md
  • docs/specs/RIPR-SPEC-0159-bounded-helper-transfer.md
  • fixtures/perl-verdict-corpus/spec-coverage.toml
  • fixtures/python-verdict-corpus/spec-coverage.toml
  • fixtures/rust-verdict-corpus/cases/bytesize-format-unit-first-run.json
  • fixtures/rust-verdict-corpus/cases/local-boundary-flag-alias.json
  • fixtures/rust-verdict-corpus/cases/local-boundary-flag-hit.json
  • fixtures/rust-verdict-corpus/cases/local-boundary-flag-loop.json
  • fixtures/rust-verdict-corpus/cases/local-boundary-flag-negated.json
  • fixtures/rust-verdict-corpus/cases/local-boundary-flag-shadowed.json
  • fixtures/rust-verdict-corpus/cases/local-boundary-flag-trap.json
  • fixtures/rust-verdict-corpus/cases/method-hop-field-read-hit.json
  • fixtures/rust-verdict-corpus/cases/method-hop-field-read-name-collision.json
  • fixtures/rust-verdict-corpus/cases/method-hop-field-read-nonliteral.json
  • fixtures/rust-verdict-corpus/cases/method-hop-field-read-rebound.json
  • fixtures/rust-verdict-corpus/cases/method-hop-field-read-second-ctor.json
  • fixtures/rust-verdict-corpus/cases/method-hop-field-read-trap.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-dynamic-default.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-dynamic-default.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-method-outside-families.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-method-outside-families.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-non-identity-closure.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-non-identity-closure.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-rfind-boundary.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-rfind-boundary.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-shadowed-binding.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-shadowed-binding.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-strip-prefix-absent.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0158-strip-prefix-absent.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-binding-tail-helper.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-binding-tail-helper.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-computed-argument.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-computed-argument.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-method-call-site.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-method-call-site.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-multiple-callers.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-multiple-callers.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-non-unique-callee.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-non-unique-callee.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-path-qualified-call-site.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-path-qualified-call-site.json
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-recursive-helper.diff
  • fixtures/rust-verdict-corpus/cases/spec-b-0159-recursive-helper.json
  • fixtures/rust-verdict-corpus/cases/tokens-word-start-helper.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0158-dynamic-default.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0158-method-outside-families.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0158-non-identity-closure.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0158-rfind-boundary.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0158-shadowed-binding.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0158-strip-prefix-absent.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0159-binding-tail-helper.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0159-computed-argument.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0159-method-call-site.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0159-multiple-callers.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0159-non-unique-callee.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0159-path-qualified-call-site.json
  • fixtures/rust-verdict-corpus/expected/rows/spec-b-0159-recursive-helper.json
  • fixtures/rust-verdict-corpus/known-false/spec-b-0159-computed-argument.toml
  • fixtures/rust-verdict-corpus/spec-coverage.toml
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value.json
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/Cargo.toml
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/h_binding_tail.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/h_callers.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/h_computed.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/h_method.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/h_nonunique.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/h_path.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/h_recursion.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/lib.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/v_closure.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/v_dynamic.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/v_method.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/v_rfind.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/v_shadow.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-spec-b-value/src/v_strip.rs.txt
  • fixtures/typescript-verdict-corpus/spec-coverage.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

…argument false row (#9889)

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

Copy link
Copy Markdown
Member Author

Review of record

Head reviewed: f88e3952; current head a68c89c4 adds only the corpus-data follow-ups listed under "Resolutions" (no analyzer or spec-text change).

Angles (independent reviewer agents, read-only):

  1. Correctness and edge cases of the activation.rs change. No blocking findings. The change can only widen abstention for a local operand (never create a new missing-discriminator claim); Expression, parameter and Call operands and the first-run: all three canonical first-run edits end static_unknown ("boundary operand is a local or computed value") #9276 comparability check are untouched. The unit test exercises the new branch.
  2. Spec, contract and label honesty. No blocking findings; the renumbered 0158/0159 text keeps every original sentence; existing-case citations match the example numbers.

Findings and resolutions:

Local proof on this head: verdict-corpus check 169/169 covered, no existing row moved; relabel 13/13; cargo test -p ripr --lib classify 1706 passed; xtask verdict_corpus tests pass; cargo xtask precommit passes. goldens check differs only on typescript_enum_wrong_export (main, fix #9884).


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 23:44
@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!

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

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

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.

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