Repository navigation
test(corpus): add 21 std test-form Rust cases and a std_test_form axis - #9629
Conversation
#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
|
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
|
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 36 minutes. View limit details
Comment |
563f833 to
2909f35
Compare
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
Review of record — head f623802One 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
Proof on this head: Disposition: no open blocking findings. 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! |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JfeyhVjKnck3hhzL3soJz1
There was a problem hiding this comment.
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: 1rows (e.g.idiom-hand-mock-exact-linehas 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'sfindings_scoredsemantics against RIPR-SPEC-0219 so an apparent undercount inidiom-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.
|
Response to the github-actions review on the exact head 5c51942:
Generated by Claude Code |
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 newstd_test_formcoverage axis (floor 21). It finds four new false actionable rows, now in the[[known_false]]ledger with owning issues.Swarm / Source Boundary
ripr-swarmSource-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
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_lineand onefailing_test.Result (579 cases, false verdicts 13 to 17)
limited): 8. False actionable: 4.idiom-assert-macro-wrapper(Owner call inside a custom assertion macro reads as a weakly_exposed gap (checkout-bulk, strsim sorensen) #7089, user macro wrappingassert_eq!),idiom-display-string-pin(fix(rust): a Display impl pinned through to_string() reads as a weak gap #9608),idiom-fixture-builder-total(fix(rust): a method pinned on a fixture-built receiver reads as a weak gap #9609),idiom-hand-mock-exact-line(fix(rust): an effect recorded by a hand-written test double and pinned exactly reads as a weak gap #9610).Result-returning?test, table-driven loops,should_panic, error-variant and empty-guard shapes) are missed credit, not false claims; they get one tracking issue next.Proof
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
killed,survived,untested,proven, andadequate.Generated by Claude Code