Repository navigation
feat(verdict-corpus): split abstentions by missed side and classification (#13657) - #13693
Conversation
…tion (#13657) The report now carries `abstention_by_cause`, keyed `<side>:<class>` (`gap_missed:no_static_path`, `credit_missed:static_unknown`, ...), in report.json and as a markdown table. Every abstained row is acceptable by its case's own labels; the split separates promotions worth attempting from `gap_missed:no_static_path` rows, which #13592 shows would raise false gaps on real code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLUiGE7tPe9UFd5gbYQ
|
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 32 minutes. View limit details
|
…by_cause (#13657) The verdict-corpus receipt is the serialized report, so the new field changes it. Refreshed with `cargo xtask public-proof --refresh-receipts`; this also carries main's corpus growth (846 -> 853 cases) that the receipt had not yet picked up. The unit test now covers the `no_claim_expected` side and a multi-class join. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLUiGE7tPe9UFd5gbYQ
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Independent fresh-context review at 6807130, in two passes. The first pass, at bfe4bc1, found that the committed public-proof receipt was stale. The receipt is the serialized report, so the new field changes it. It also found that the test never covered the limited/silent side or a multi-class join. The second commit fixes both, and the delta pass found nothing further.
What was inspected:
- The helper counts only abstained rows and maps credited to credit_missed, gap to gap_missed and limited/silent to no_claim_expected. Classes are joined with "+" and an empty list becomes "none".
- summarize is the only Report constructor. public_proof reads the receipt as a Value by field name, so the extra key is compatible.
- The receipt and PUBLIC_PROOF.md diffs are exactly refresh output. They carry the new key and main's 846 to 853 corpus growth. The abstention_by_cause values sum to the abstained count (327).
- The test discriminates against counting non-abstained rows, swapping sides, dropping the none fallback, changing the join, and mis-mapping the limited/silent arm.
- The changelog fragment follows the Internal / CI rules.
Local evidence: cargo xtask precommit exit 0 (before the receipt commit), verdict-corpus check-all exit 0, public-proof --check passes at this head, and the abstention_by_cause unit test passes at this head. Bot reviewers (CodeRabbit, Gemini) were rate limited and posted no 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! |
ripr static exposure checkCommit Took 19s. |
…the field (#13657) Devin review: authored and upstream abstentions were merged into one map, hiding the real-repository count, and the field had no spec text. `OriginRates` now carries its own `abstention_by_cause`, the markdown table adds a column per origin when a corpus has both, and RIPR-SPEC-0245 documents keys, sides, the `none` and `+` rules and that counts cover abstained rows only. Receipt refreshed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLUiGE7tPe9UFd5gbYQ
…ovenance in the spec (#13657) Fresh review follow-ups: the per-origin test now asserts each origin abstains on every row, the separator row, and one complete `credit_missed:no_static_path` row against the three maps; RIPR-SPEC-0245 names the Perl per-packet-provenance map that `OriginRates` also carries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLUiGE7tPe9UFd5gbYQ
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
A fresh-context reviewer read the head at 937abc2 (per-origin split and spec text, added for Devin's two findings) and found no blocking issues.
What they checked:
- Each origin's map comes from that origin's own rows, so it sums to that origin's abstention count. The committed receipt confirms this: authored 291/291, upstream 36/36.
- The markdown columns follow the BTreeMap key order (authored, then upstream). The header and the cells use the same key list, so they cannot misalign.
- The spec text matches the code.
They raised three small points, all addressed in 97ea448:
- The test now asserts that each origin abstains on every row.
- It pins the separator row and one complete per-origin row against the three maps.
- RIPR-SPEC-0245 now names the Perl per-packet-provenance map, which carries the same field.
All three Devin threads were answered and resolved.
Local evidence at 97ea448: cargo xtask precommit exit 0 (run single-job after one OOM kill), public-proof --check passes, cargo test -p xtask verdict_corpus 180 passed, check-spec-format and check-doc-artifacts pass.
Generated by Claude Code
Requested by Steven Zimmerman · project thread
Summary
cargo xtask verdict-corpus reportgainsabstention_by_cause(report.json and a markdown table), keyed<side missed>:<observed classification>, e.g.gap_missed:no_static_path,credit_missed:static_unknown.gap_missed:no_static_pathrows. Promoting those would raise false gaps on real code: typescript: no_static_path agrees with real Stryker outcomes only 22.5% of the time (172 false gaps on defu + ufo) #13592 measuredno_static_pathagreeing with Stryker only 22.5% of the time.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal: none
Spec: RIPR-SPEC-0245 (per-language verdict corpora), report only
ADR: none
Plan item: none
Governing issue or accepted claim: #13657
Acceptance delta (one sentence): The verdict-corpus report splits abstained rows by the side they missed and the observed classification for every language corpus.
Candidate Relationships
Candidate branch:
claude/project-thread-emewggStack parent or prerequisite PR: none
Proposed replacement of PR: none
Scope
xtask/src/reports/verdict_corpus.rs: newReport.abstention_by_causefield,abstention_by_cause()helper, markdown table.xtask/src/reports/verdict_corpus_tests.rs: unit test covering both missed sides,no_claim_expected, thenonefallback, a multi-class join, and that a non-abstained row is not counted.metrics/public-proof/verdict-corpus.jsonanddocs/PUBLIC_PROOF.md: regenerated withcargo xtask public-proof --refresh-receipts. The receipt is the serialized report, so it gains the new key. The refresh also carries main's Rust corpus growth (846 -> 853 cases), which the receipt had not yet picked up.Scope Classification
Baseline (main 24c0913, fresh run)
Local evidence
cargo xtask precommit: exit 0 (at bfe4bc1).cargo xtask verdict-corpus check-all: 4 corpora checked, exit 0.cargo xtask public-proof --check: passes at 6807130.cargo test -p xtask abstention_by_cause: 1 passed at 6807130.🤖 Generated with Claude Code
https://claude.ai/code/session_01UNUoLUiGE7tPe9UFd5gbYQ