Skip to content

test(corpus): add 21 std test-form Rust cases and a std_test_form axis - #9629

Merged
EffortlessSteven merged 4 commits into
mainfrom
claude/project-thread-9lsalp
Oct 22, 2026
Merged

EffortlessSteven merged 4 commits into
mainfrom
claude/project-thread-9lsalp

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Under #9410. Adds authored-idiom-kit, a std-only subject with 21 runtime-labeled cases for test forms that need no test crate, and a new std_test_form coverage axis (floor 21). It finds four new false actionable rows, now in the [[known_false]] ledger with owning issues.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Spec: RIPR-SPEC-0219 (verdict corpus)
Governing issue or accepted claim: #9410
Acceptance delta (one sentence): The Rust corpus covers should_panic, Result-returning tests, catch_unwind, hand-written mocks, seeded loops, table loops, assertion helpers and macros, Display pins, doctests, tests/ integration tests, out-of-line test modules and fixture builders, with an enforced floor.

Candidate Relationships

Candidate branch: claude/project-thread-9lsalp
Stack parent or prerequisite PR (if any): none

Scope Classification

  • Corpus cases and ledger only; no analyzer change

Cases (21)

should_panic x2, Result-returning test x3, hand-written recorder x3, seeded property loop, table-driven loop x2, assertion helper and macro x2, Display x2, tests/ integration test, out-of-line test module, doctest, Option edge, catch_unwind, fixture builder. Each has an edited rewrite plus two or three runtime mutants with mutated_line and one failing_test.

Result (579 cases, false verdicts 13 to 17)

Proof

cargo xtask verdict-corpus validate                       # 579 cases valid
cargo xtask verdict-corpus relabel --case <21 ids>        # replayed 21, 0 drifted
cargo xtask verdict-corpus check                          # axes: test_library_idiom 59, language_shape 33, std_test_form 21, hostile_input 12
cargo xtask precommit                                     # exit 0

Claim Boundary

May claim: these std test forms are in the corpus with runtime truth and a floor. Must not claim: ripr reads them correctly; four rows are known false.

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

Generated by Claude Code

#9410)

authored-idiom-kit covers should_panic(expected), Result-returning tests,
catch_unwind, hand-written mocks, seeded loops, table loops, assertion helpers
and macros, Display pins, doctests, tests/ integration tests, out-of-line test
modules and fixture builders. Four cases read as false actionable and are
listed in the known_false ledger with owning issues.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JfeyhVjKnck3hhzL3soJz1
@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!

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JfeyhVjKnck3hhzL3soJz1
@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 36 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 103 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: c7a98797-8aea-4612-bde6-e82b29d7cf13
📥 Commits

Reviewing files that changed from the base of the PR and between 48d3080 and 5c51942.

📒 Files selected for processing: 80
  • changelog.d/9629-rust-std-test-form-corpus.md
  • docs/roadmap/false-verdicts.md
  • fixtures/rust-verdict-corpus/cases/idiom-assert-macro-wrapper.diff
  • fixtures/rust-verdict-corpus/cases/idiom-assert-macro-wrapper.json
  • fixtures/rust-verdict-corpus/cases/idiom-catch-unwind-panic-and-value.diff
  • fixtures/rust-verdict-corpus/cases/idiom-catch-unwind-panic-and-value.json
  • fixtures/rust-verdict-corpus/cases/idiom-display-string-pin.diff
  • fixtures/rust-verdict-corpus/cases/idiom-display-string-pin.json
  • fixtures/rust-verdict-corpus/cases/idiom-display-suffix-only.diff
  • fixtures/rust-verdict-corpus/cases/idiom-display-suffix-only.json
  • fixtures/rust-verdict-corpus/cases/idiom-doctest-pin.diff
  • fixtures/rust-verdict-corpus/cases/idiom-doctest-pin.json
  • fixtures/rust-verdict-corpus/cases/idiom-fixture-builder-total.diff
  • fixtures/rust-verdict-corpus/cases/idiom-fixture-builder-total.json
  • fixtures/rust-verdict-corpus/cases/idiom-hand-mock-count-only.diff
  • fixtures/rust-verdict-corpus/cases/idiom-hand-mock-count-only.json
  • fixtures/rust-verdict-corpus/cases/idiom-hand-mock-exact-line.diff
  • fixtures/rust-verdict-corpus/cases/idiom-hand-mock-exact-line.json
  • fixtures/rust-verdict-corpus/cases/idiom-hand-mock-sum-window.diff
  • fixtures/rust-verdict-corpus/cases/idiom-hand-mock-sum-window.json
  • fixtures/rust-verdict-corpus/cases/idiom-helper-assert-fn.diff
  • fixtures/rust-verdict-corpus/cases/idiom-helper-assert-fn.json
  • fixtures/rust-verdict-corpus/cases/idiom-integration-test-dir.diff
  • fixtures/rust-verdict-corpus/cases/idiom-integration-test-dir.json
  • fixtures/rust-verdict-corpus/cases/idiom-option-empty-only.diff
  • fixtures/rust-verdict-corpus/cases/idiom-option-empty-only.json
  • fixtures/rust-verdict-corpus/cases/idiom-out-of-line-test-module.diff
  • fixtures/rust-verdict-corpus/cases/idiom-out-of-line-test-module.json
  • fixtures/rust-verdict-corpus/cases/idiom-result-empty-guard.diff
  • fixtures/rust-verdict-corpus/cases/idiom-result-empty-guard.json
  • fixtures/rust-verdict-corpus/cases/idiom-result-error-variant-unpinned.diff
  • fixtures/rust-verdict-corpus/cases/idiom-result-error-variant-unpinned.json
  • fixtures/rust-verdict-corpus/cases/idiom-result-test-sum-accumulate.diff
  • fixtures/rust-verdict-corpus/cases/idiom-result-test-sum-accumulate.json
  • fixtures/rust-verdict-corpus/cases/idiom-seeded-loop-relational-bound.diff
  • fixtures/rust-verdict-corpus/cases/idiom-seeded-loop-relational-bound.json
  • fixtures/rust-verdict-corpus/cases/idiom-should-panic-boundary-one.diff
  • fixtures/rust-verdict-corpus/cases/idiom-should-panic-boundary-one.json
  • fixtures/rust-verdict-corpus/cases/idiom-should-panic-message-guard.diff
  • fixtures/rust-verdict-corpus/cases/idiom-should-panic-message-guard.json
  • fixtures/rust-verdict-corpus/cases/idiom-table-driven-boundaries.diff
  • fixtures/rust-verdict-corpus/cases/idiom-table-driven-boundaries.json
  • fixtures/rust-verdict-corpus/cases/idiom-table-driven-missing-boundary.diff
  • fixtures/rust-verdict-corpus/cases/idiom-table-driven-missing-boundary.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-assert-macro-wrapper.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-catch-unwind-panic-and-value.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-display-string-pin.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-display-suffix-only.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-doctest-pin.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-fixture-builder-total.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-hand-mock-count-only.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-hand-mock-exact-line.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-hand-mock-sum-window.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-helper-assert-fn.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-integration-test-dir.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-option-empty-only.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-out-of-line-test-module.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-result-empty-guard.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-result-error-variant-unpinned.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-result-test-sum-accumulate.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-seeded-loop-relational-bound.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-should-panic-boundary-one.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-should-panic-message-guard.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-table-driven-boundaries.json
  • fixtures/rust-verdict-corpus/expected/rows/idiom-table-driven-missing-boundary.json
  • fixtures/rust-verdict-corpus/spec-coverage.toml
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit.json
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/Cargo.toml
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/src/display.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/src/guards.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/src/helpers.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/src/lib.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/src/mocks.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/src/ranges.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/src/ranges/tests.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/src/results.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/src/seeded.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/src/tables.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/src/unwinding.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-idiom-kit/tests/api.rs.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

swap_remove(0) reorders the remaining elements, so it is not a preserving
rewrite of remove(0). Use Vec::remove(values, 0). Clarify two reasoning texts
and the macro-wrapper known_false reason.

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

Copy link
Copy Markdown
Member Author

Review of record — head f623802

One independent read-only reviewer on label honesty (rewrite preservation, survivor non-equivalence, ideal/acceptable consistency, reasoning text), plus the tool's own replay.

Findings and resolutions

  • Blocking: idiom-catch-unwind-panic-and-value used swap_remove(0) as a "behavior-preserving" rewrite of remove(0); it reorders the remaining elements for 3+ items. Fixed: rewrite is now Vec::remove(values, 0); mutants and outcomes unchanged, replay 0 drift.
  • Non-blocking, fixed: the idiom-assert-macro-wrapper known_false reason now says credited or at worst limited; idiom-result-empty-guard reasoning now names the "a" input that hides len() < 2; idiom-out-of-line-test-module reasoning clarified.
  • Checked clean: the other 18 rewrites are behavior preserving; every surviving mutant differs on an input the tests never use; discriminated cases have ideal credited, partial ones gap; the std_test_form floor equals the case count.

Proof on this head: verdict-corpus validate 579 valid; relabel over all 21 cases replayed with 0 drift (3 re-replayed after the fix); check 17/579 false, all four new false rows ledgered (#7089, #9608, #9609, #9610); cargo xtask precommit exit 0 on the prior head (this push changes corpus data and ledger text only).

Disposition: no open blocking findings.


Generated by Claude Code

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

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

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

Confirmed findings

  • Lane mapping is wrong for this PR: the only changed code-bearing content is a Cargo.toml and .rs.txt stubs that are not part of any compiled workspace target and are not executed by the verdict-corpus harness. Worker handoff / async / GC / transfer cannot be reviewed meaningfully; this lane should be marked not-applicable and another lane (tests-oracle or source-route) should be the one to inspect the 4 false_actionable rows and 8 abstentions.

Verification questions

  • Confirm several findings_scored: 1 rows (e.g. idiom-hand-mock-exact-line has 2) suggest the analyzer only emits one finding per case here; this is consistent with a per-case single-owner model and is not a defect, but a human reviewer may want to confirm the corpus schema's findings_scored semantics against RIPR-SPEC-0219 so an apparent undercount in idiom-hand-mock-exact-line (1) vs its 2 mutants isn't read as a missed finding.
  • Confirm heavy witnesses (build, cargo-test, miri, cargo-mutants) were skipped per the gh-runner profile; the validate/relabel/check/precommit receipts cited in the PR body are the only runtime evidence, and the late cargo-test sensor is scheduled but not yet landed. The precommit 0 and 0-drift relabel are replay-on-this-head only; the 21 false-actionable/ideal/abstained verdicts in expected/rows are a label fixture, not a live analyzer run, so live analyzer reading of the new axis is not proven by this PR.

Test proof

  • Focused HEAD proof failed (exit 101): cargo test --locked --package idiomkit --test api. This is a current failure, not a red/green witness.

Refuted

  • PR introduces or modifies JS/WASM ArrayBuffer, TypedArray, or ResizableBuffer active-view code that could detach under a live view; refuted because: All changed files are Rust verdict corpus fixtures (JSON, .diff, .txt, TOML, markdown). Subject sources are .txt snapshots, not compiled. No ArrayBuffer/ResizableBufferDetachError/TypedArray tokens anywhere in the diff. Resizable/active-view UB class is out of scope for this PR.
  • Because Unsafe/native risk touched is true and the diff is class source-ub, there is a worker/async handoff boundary that must be checked.; refuted because: Inspected all 80 changed files: zero are JS/Python/TS, zero are async runtimes, zero are worker or message-passing boundaries. The .rs.txt files are inert corpus stubs with .txt extensions; only the Cargo.toml in the authored-idiom-kit subject would compile, and that subject is not registered as a workspace member. The 'unsafe/native risk touched' flag is a coarse match on 'unsafe' language in the diff (e.g. 'unsafe' appears in 'weakly_exposed' or axis descriptions), not an actual unsafe-block change.
  • Alloc failure OOB via Box::from(slice) in authored-idiom-kit (UAF/DOS primitive); refuted because: No Box::from(slice) or Box::<[u8]>::from(slice) pattern exists in any of the 11 src/*.rs.txt files; corpus is std-only with fixed-size u32/i32/&str/Vec<...>. No allocation-failure analysis is warranted here.
  • Diff class is source-ub by name but the actual change is data-only: 21 Rust verdict-corpus cases plus an authored-idiom-kit subject and a new std_test_form axis. No JS, no worker, no async, no transfer surface to review.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Parked follow-ups

  • Four false_actionable cases (idiom-assert-macro-wrapper #7089, idiom-display-string-pin #9608, idiom-fixture-builder-total #9609, idiom-hand-mock-exact-line #9610) are correctly ledgered under [[known_false]] in spec-coverage.toml and listed in docs/roadmap/false-verdicts.md. Each owning issue is referenced. No missing sibling entries; no analyzer change in this PR. Eight abstained cases (Result-returning, table-driven, should_panic, error-variant, empty-guard) are tracked separately per PR body. Parked for follow-up tracking issue, not actionable here.
  • spec-coverage.toml adds std_test_form axis with floor=21; same floor as case count. Sibling axes: language_shape floor=33, test_library_idiom floor=59, hostile_input floor=12. No axis overlap; std_test_form is a new axis not a subdivision. Park follow-up: ensure no future case is double-counted across axes (current PR places each new case only in std_test_form per cases/*.json axes arrays).
  • No OOB, UAF, type confusion, info disclosure, DoS, or secret-material exposure present in subject sources or diffs. Known false-actionable rows are not security flaws; they are analyzer false positives ledgred with owning issues #7089, #9608, #9609, #9610.

Copy link
Copy Markdown
Member Author

Response to the github-actions review on the exact head 5c51942:


Generated by Claude Code

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