Skip to content

feat(verdict-corpus): split abstentions by missed side and classification (#13657) - #13693

Merged
EffortlessSteven merged 5 commits into
mainfrom
claude/project-thread-emewgg
Nov 8, 2026
Merged

EffortlessSteven merged 5 commits into
mainfrom
claude/project-thread-emewgg

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven Zimmerman · project thread

Summary

  • cargo xtask verdict-corpus report gains abstention_by_cause (report.json and a markdown table), keyed <side missed>:<observed classification>, e.g. gap_missed:no_static_path, credit_missed:static_unknown.
  • Every abstained row is already acceptable by its case's own labels, so the single abstention rate mixes promotions worth attempting with gap_missed:no_static_path rows. 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 measured no_static_path agreeing with Stryker only 22.5% of the time.

Swarm / Source Boundary

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

Source-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-emewgg
Stack parent or prerequisite PR: none
Proposed replacement of PR: none

Scope

  • xtask/src/reports/verdict_corpus.rs: new Report.abstention_by_cause field, abstention_by_cause() helper, markdown table.
  • xtask/src/reports/verdict_corpus_tests.rs: unit test covering both missed sides, no_claim_expected, the none fallback, a multi-class join, and that a non-abstained row is not counted.
  • metrics/public-proof/verdict-corpus.json and docs/PUBLIC_PROOF.md: regenerated with cargo 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.
  • Changelog fragment (Internal / CI).
  • No committed expected rows change; outcomes and rates are unchanged.

Scope Classification

  • Docs/spec/test-only evidence package (xtask report surface only)

Baseline (main 24c0913, fresh run)

Corpus Abstained gap_missed:no_static_path other gap_missed credit_missed
TypeScript 50/373 25 6 19 (no_static_path 8, static_unknown 11)
Python 85/388 18 55 (static_unknown) 12
Perl 49/94 1 18 30
Rust 327/853 in receipt 167 (mostly infection/propagation unknown)

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

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

coderabbitai Bot commented Nov 8, 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 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 152 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: 79695820-74df-4bf0-989f-19c682a198a0
Commits

Reviewing files that changed from the base of the PR and between 54f0c79 and 97ea448.

Files selected for processing: 6

  • changelog.d/13657-verdict-corpus-abstention-by-cause.md
  • docs/PUBLIC_PROOF.md
  • docs/specs/RIPR-SPEC-0245-per-language-verdict-corpora.md
  • metrics/public-proof/verdict-corpus.json
  • xtask/src/reports/verdict_corpus.rs
  • xtask/src/reports/verdict_corpus_tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

…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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 8, 2026 12:37
@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!

@devin-ai-integration devin-ai-integration 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.

Devin Review found 3 potential issues.

Devin Review

Comment thread xtask/src/reports/verdict_corpus.rs Resolved
Comment thread xtask/src/reports/verdict_corpus.rs Resolved
Comment thread xtask/src/reports/verdict_corpus.rs Resolved
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit 97ea448189d8 · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=54f0c796f3d5c2654c120b2305ff47dbe919d7cb findings=43 gaps=22 exposed=3 propagation_unknown=5 reachable_unrevealed=16 static_unknown=12 weakly_exposed=7
weakly_exposed|xtask/src/reports/verdict_corpus.rs:823|row.outcome != Outcome::Abstained|missing=No strong discriminator was detected|test=t1|id=probe:xtask_src_reports_verdict_corpus.rs:predicate:0083f941
weakly_exposed|xtask/src/reports/verdict_corpus.rs:826|match row.ideal_verdict|missing=No strong discriminator was detected|test=t2|id=probe:xtask_src_reports_verdict_corpus.rs:match_arm:78e65ad1
weakly_exposed|xtask/src/reports/verdict_corpus.rs:831|row.observed_classifications.is_empty()|missing=No strong discriminator was detected|test=t1|id=probe:xtask_src_reports_verdict_corpus.rs:predicate:b7366c01
reachable_unrevealed|xtask/src/reports/verdict_corpus.rs:832|"none".to_string()|missing=No statically established oracle: assertion execution or macro binding is unesta…|test=t2|id=probe:xtask_src_reports_verdict_corpus.rs:call_deletion:c1d30e55
reachable_unrevealed|xtask/src/reports/verdict_corpus.rs:834|row.observed_classifications.join("+")|missing=No statically established oracle: assertion execution or macro binding is unesta…|test=t2|id=probe:xtask_src_reports_verdict_corpus.rs:call_deletion:94083873
reachable_unrevealed|xtask/src/reports/verdict_corpus.rs:836|*causes.entry(format!("{side}:{class}")).or_insert(0) += 1;|missing=No statically established oracle: assertion execution or macro binding is unesta…|test=t2|id=probe:xtask_src_reports_verdict_corpus.rs:call_deletion:e22137ef
weakly_exposed|xtask/src/reports/verdict_corpus.rs:1055|abstention_by_cause: abstention_by_cause(&rows)|missing=abstention_by_cause: abstention_by_cause(&rows)|test=t3|id=probe:xtask_src_reports_verdict_corpus.rs:field_construction:7771e177
t1=xtask/src/reports/verdict_corpus_tests.rs:2877 abstention_by_cause_is_kept_per_origin_and_sums_to_each_abstention_count relational_check `assert!( report.by_origin.len() > 1, "the committed corpus has both origins" );` miss=no_call_path
t2=xtask/src/reports/verdict_corpus_tests.rs:2845 abstention_by_cause_counts_only_abstained_rows_by_missed_side_and_class exact_value `assert_eq!(causes.get("gap_missed:no_static_path"), Some(&2));` miss=observation_unconfirmed
t3=xtask/src/outcome_page.rs:1155 summarize_counts_actionable_and_instrument_failures exact_value `assert_eq!(r["started"], json!(1));` miss=missing_exact_assertion
+15 more gaps not shown; `--format json` lists all
limits=propagation_unknown:5,static_unknown:12,weakly_exposed:1
next=ripr explain --root /home/runner/work/ripr-swarm/ripr-swarm/head --base 54f0c796f3d5c2654c120b2305ff47dbe919d7cb --committed --mode draft --format agent probe:xtask_src_reports_verdict_corpus.rs:predicate:0083f941

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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