Repository navigation
eval(verdict-corpus): 37 TypeScript cases complete spec-example coverage - #7731
Conversation
…ples Adds runtime-labeled TypeScript cases for every acceptance example the ledger left uncovered: RIPR-SPEC-0246 #3-5/#7/#9/#10, 0247 #3/#5, 0248 #7-10, 0249 #3/#5-9, 0250 #4-6, 0251 #2-7, 0254 #2-5 and 0256 #2-6. Coverage 67/103 -> 103/103, floor 103 (ledger and the pinned xtask assertion). Truth comes from running each subject's own test command on the unedited package, on the edit, and on each listed mutant in a scratch copy; new tests sit in new src/test file pairs, so re-bless added 37 rows and moved none. ripr: 25 ideal, 2 abstained, 8 false actionable, 2 false exposed. Every false verdict is the grade the cited example states: 0248 #10 (substring toThrow on an error seam) and 0246 #3 (field dropped under toEqual of an input that already holds it) are spec-accepted false exposed; the false actionable rows are the refused shapes whose tests still discriminate. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP
|
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 Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP
|
Warning Review limit reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits. Next included review available in 4 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughThe TypeScript verdict corpus adds 37 Jest and Vitest cases, authored subject fixtures, and expected-result rows. The coverage ledger and its test threshold increase from 67 to 103 examples. ChangesTypeScript verdict corpus expansion
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- fixtures/typescript-verdict-corpus/subjects/authored-ts-jest-mined/src/profileSpread.ts:1 — spec0250-ex06 uses overrides={adult:true} for the 18-case to deliberately make the test pass on the edit, so the test asserts the spread overrides the field rather than the changed line. The test as written (buildProfileSpread('bo',18,{adult:true}).toMatchObject({name:'bo',adult:true})) is structurally redundant with respect to the edit. Consider a 17-case call without override so the spread branch isn't the only thing under test; current shape is intentional per hard_case but weaker than ideal.
- No production code path, no unsafe, no native, no UB narrative applies. Wrong-verdict count rises (8/127 -> 18/164) but these are spec-graded grades, called out in the PR body. The PR is evidence/test only and the only Rust change is a numeric floor bump kept in sync with spec-coverage.toml.
Verification questions
- Confirm all 37 case JSONs declare case_id matching fixture filename, anchor.file/line matches diff hunk, spec_examples single-entry array, and expected.acceptable_verdicts include the ideal outcome or gap/limited fallbacks per the spec text in reasoning.
- Confirm ex09-async-foreach truth depends on jest process exit code 1 from an unhandled rejection; the test_command fails but the test framework reports no failing test. The case JSON's failing_test field is 'tickPrice' (the test whose callback raised) but the runtime signal is the wrapper exit, not a per-test failure. Documented in SPEC.md and the case's hard_case.
- Confirm floor rise (67→103) is justified and bounded: floor ≤ covered_examples is still enforced, schema_version unchanged, and the spec-coverage.toml comment is the only doc-side narration.
Refuted
- Shared helpers across the 37 new subject files would shrink the diff and reduce duplication; refuted because: Each case must be labelable in isolation; SPEC.md and the existing precedent (jest-mined-bound-local) require that a new case's truth cannot move an older case's. Sharing a helper would couple the cases and break the corpus invariant.
Parked follow-ups
- addCountsZero test asserts addCountsZero(2,3)===5 which masks the edit's effect for normal inputs; only the listed arithmetic mutant ('a-b') is the discriminating signal. Equivalent true edit (
a+b+0->a+b) is the case under test, but it relies on the StrykerJS mutant to prove discrimination. Acceptable per labeling method but the discriminated truth is established by a hand-applied arithmetic mutant, not the edit itself. Documented in SPEC.md; parked as low.
Evidence gaps
- Subject sha256 manifests for jest-mined, jest-oracles, jest-relations, vitest-cart include the 38 newly added files; PR claims each subject was run on its stored package pre-edit (green) and on each mutant with mutated_line.
- Model proof intent was rejected by deterministic validation.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
…clarify cart vitest history Devin on #7731: the async-forEach case named `tickPrice` as failing although jest reports no failed test; the command fails through an unhandled rejection. failing_test now says so, and #7734 tracks representing process-level kills in the schema. SPEC.md separates the cart subject's older vitest 3.2.7 labels from the 4.1.11 runs of the new lookup-table cases. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- jest-spec0250-ex06 spread test asserts the 18-case with
{adult:true}override; per reviewer sumary this makes the test pass on the edit because the spread overrides the changed entry. Spec accepts this as a hard_casegapoutcome; PR body has "Calls for review" entry flagging it. Consider an additional 17-case assertion without override to make the discrimination intent unambiguous, parallel to the other profile*.test.ts cases that don't use overrides. - fixtures/typescript-verdict-corpus/SPEC.md:86 — The vitest toolchain sentence and the new
vitest-spec0254-*mention sit in different paragraphs; SPEC.md now mixes historical 3.2.7 labels and current 4.1.11 runs but the cart subject's earlier examples still only mention vitest 3.2 in prose. Consider a one-line note that older vitest cases used 3.2.7 while the new lookup-table cases used 4.1.11 to keep toolchain history unambiguous.
Verification questions
- Confirm cargo-test receipt is scheduled-late; on-edit / on-package green for the 37 new cases and the cargo xtask verdict-corpus validate run are not yet witnessed in evidence available to this lane.
- Confirm fixtures/typescript-verdict-corpus/subjects/authored-ts-jest-relations/test/announceMail.test.ts:5 — jest.spyOn(mailer,'send') is not restored; running the full package, mailer.send stays spied and a sibling case (e.g. announceRetry in the same subject) that also touches mailer may carry state. Confirm each new spyon-based test calls .mockRestore()/jest.restoreAllMocks in an afterEach, otherwise an unrelated suite can observe the spy.
Refuted
- ledger floor must be raised above every observed_verdict to avoid undercount; refuted because: spec-coverage.toml floor is a covered-example floor (103), not a verdict-quality threshold; xtask gate at line 1612 asserts floor<=covered, satisfied (103==103).
Parked follow-ups
- profileSpread 18-case uses
{adult:true}override that masks the changed line, so the case labels the spread branch rather than the edit; prior review flagged this as intentional per hard_case but weaker than ideal.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- cargo-test receipt is scheduled-late not landed; the PR body's
cargo test -p xtask verdict_corpusexit 0 claim (119 passed) has no in-packet witness yet.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Review of recordHead: 4bfe3a1. This is 326242e with main merged in upstream; the merge touches no corpus file in this PR. Angles
Findings and resolutions
CI: green on the head, including the required Disposition: nothing blocking. Merging. Generated by Claude Code |
Summary
Before: the TypeScript ledger covered 67 of 103 spec examples after #7684. The uncovered ones were RIPR-SPEC-0246, 0247, 0248, 0249, 0250, 0251, 0254 and 0256 variant and negative examples.
After: 37 new cases, each labeled by running its subject's own tests, cover all 103 examples, and the floor is 103.
How truth was taken: each subject was copied to scratch outside the repo. Its own test command ran on the unedited package (green), then on the edit, then on each mutant with
mutated_line. Toolchain: Node 22.22.0, jest 30.5.2, ts-jest 29.4.14, typescript 5.9.3, and vitest 4.1.11 as the cart subject pins it. New tests sit in new src/test file pairs. Bless added 37 rows and moved none.What ripr does on these cases: 25 ideal, 2 abstained, 8 false actionable and 2 false exposed. Each wrong verdict is the grade its cited example states.
toThrow("limit ")matches both messages. The spec says "the ladder's exposed stands", so this is recorded as a false exposed.TS false verdicts move from 8/127 to 18/164, because these cases measure gaps that already existed.
Calls for review:
status === 404→404 === status), labeled with the Stryker mutant set its sibling case uses.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Scope Classification
Proof
Claim Boundary
Rollback
Revert the squash commit.
🤖 Generated with Claude Code
https://claude.ai/code/session_01UkJX24i4awmd7UoVV5CXkP
Generated by Claude Code