Skip to content

test(corpus): authored-mined-features cases for feature-gated tests, snapshot helper and static table - #9669

Merged
EffortlessSteven merged 6 commits into
mainfrom
claude/corpus-mined-feature-snapbox-table
Oct 31, 2026
Merged

EffortlessSteven merged 6 commits into
mainfrom
claude/corpus-mined-feature-snapbox-table

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

Seven authored Rust verdict-corpus cases (new subject authored-mined-features, no vendored source, no network deps) for corpus-mining rows 4-6: feature-gated module and tests, inline snapshot via a snapbox-style local helper, and a production static lookup table.

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 (fixtures/rust-verdict-corpus/SPEC.md)
Governing issue or accepted claim: #9619
Acceptance delta (one sentence): Adds runtime-mutant-labeled cases for the feature-gated, snapshot-helper and static-table test shapes mined from real crates.

Scope

  • New subject authored-mined-features; 7 cases; 7 expected rows; SPEC.md convention note; changelog fragment; 2 known_false entries (per-file under fixtures/rust-verdict-corpus/known-false/).

Truth convention: for a feature-gated case, truth is the feature set the case's own test_command runs (cargo test --features v4); the default-features twin (cargo test, v7 module not compiled) labels the same shape as missed.

Cases (observed by ripr -> outcome; truth from relabel --case, 0 drift each)

case truth ripr outcome
mined-feature-v4-stamp-run-with-feature discriminated (--features v4) gap false actionable (#9643, known_false)
mined-feature-v7-stamp-default-features-run not_discriminated gap ideal
mined-snapshot-helper-negative-zero discriminated gap false actionable (#9644, known_false)
mined-snapshot-helper-document-separator discriminated limited abstained (missed credit)
mined-snapshot-helper-heading-unasserted not_discriminated gap ideal
mined-token-table-pinned-range discriminated limited abstained (missed credit)
mined-token-table-unpinned-tilde not_discriminated limited abstained (acceptable)

Proof

cargo xtask verdict-corpus relabel --case <id>   # each of 7: 0 drift
cargo xtask verdict-corpus check --language rust # after merging main @ 4b1b56a551: 597 cases, false 14/597, no drift, no split/bless needed
cargo xtask precommit                            # pass (head 09cb0a5378)

Claim Boundary

Adds corpus truth only; no analyzer change. docs/PUBLIC_PROOF.md and metrics/public-proof untouched.

Dependency landed: PR #9628 merged (2026-10-24, 49b1aa9); the rust missed_credit_ceiling line was then retired in favor of per-entry acceptance in fixtures/rust-verdict-corpus/missed-credit.toml (#10222). The document-separator and pinned-range rows are accepted there as missed-credit entries (#9619).

Rollback

Revert the commit.

Static Language Check

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

Generated by Claude Code

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

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

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 148 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: e111c69e-e57e-43d7-9044-f93e16bc57b3
Commits

Reviewing files that changed from the base of the PR and between f3d8abc and 77b318e.

Files selected for processing: 29
  • changelog.d/rust-verdict-corpus-mined-features-snapshot-table.md
  • fixtures/rust-verdict-corpus/SPEC.md
  • fixtures/rust-verdict-corpus/cases/mined-feature-v4-stamp-run-with-feature.diff
  • fixtures/rust-verdict-corpus/cases/mined-feature-v4-stamp-run-with-feature.json
  • fixtures/rust-verdict-corpus/cases/mined-feature-v7-stamp-default-features-run.diff
  • fixtures/rust-verdict-corpus/cases/mined-feature-v7-stamp-default-features-run.json
  • fixtures/rust-verdict-corpus/cases/mined-snapshot-helper-document-separator.diff
  • fixtures/rust-verdict-corpus/cases/mined-snapshot-helper-document-separator.json
  • fixtures/rust-verdict-corpus/cases/mined-snapshot-helper-heading-unasserted.diff
  • fixtures/rust-verdict-corpus/cases/mined-snapshot-helper-heading-unasserted.json
  • fixtures/rust-verdict-corpus/cases/mined-snapshot-helper-negative-zero.diff
  • fixtures/rust-verdict-corpus/cases/mined-snapshot-helper-negative-zero.json
  • fixtures/rust-verdict-corpus/cases/mined-token-table-pinned-range.diff
  • fixtures/rust-verdict-corpus/cases/mined-token-table-pinned-range.json
  • fixtures/rust-verdict-corpus/cases/mined-token-table-unpinned-tilde.diff
  • fixtures/rust-verdict-corpus/cases/mined-token-table-unpinned-tilde.json
  • fixtures/rust-verdict-corpus/expected/rows/mined-feature-v4-stamp-run-with-feature.json
  • fixtures/rust-verdict-corpus/expected/rows/mined-feature-v7-stamp-default-features-run.json
  • fixtures/rust-verdict-corpus/expected/rows/mined-snapshot-helper-document-separator.json
  • fixtures/rust-verdict-corpus/expected/rows/mined-snapshot-helper-heading-unasserted.json
  • fixtures/rust-verdict-corpus/expected/rows/mined-snapshot-helper-negative-zero.json
  • fixtures/rust-verdict-corpus/expected/rows/mined-token-table-pinned-range.json
  • fixtures/rust-verdict-corpus/expected/rows/mined-token-table-unpinned-tilde.json
  • fixtures/rust-verdict-corpus/known-false/mined-feature-v4-stamp-run-with-feature.toml
  • fixtures/rust-verdict-corpus/known-false/mined-snapshot-helper-negative-zero.toml
  • fixtures/rust-verdict-corpus/missed-credit.toml
  • fixtures/rust-verdict-corpus/subjects/authored-mined-features.json
  • fixtures/rust-verdict-corpus/subjects/authored-mined-features/Cargo.toml
  • fixtures/rust-verdict-corpus/subjects/authored-mined-features/src/lib.rs.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member Author

#9644 analyzer repair is published as Draft #9697, exact head ea36be7e698d2f02d82d22e3f09239863cdffb7c. This preserves your ownership of the seven-case corpus branch and leaves #9643 separate.

Original source provenance: your PR head 4f7b115a5c53e48fc476c8103f0addd115bf0aca, both retained subject hashes verified. $crate::snap::check uses standard equality after trim_end; snap_str! returns its literal. Fresh isolated cargo test --offline: original and behavior-preserving rewrite each 4/4 passed; zero/empty mutants each native101 with3passed/1failed, specifically negative_zero_snapshot at that comparison. Initial copied-package/shared-target trials reused a stale executable and are excluded from proof.

Actual built ea36 CLI now verifies the FULL original row: exactly1 weakly_exposed return-value finding, related_tests_total11 retained8, rust_macro_wrapped_assertion_unresolved, no canonical gap, canonical_next_action.action_class unsupported_or_limited; JSON/HumanFull both direct inspection of the existing macro and test. Base52cfc and earlier7c3 both reproduce the original full-row gap. The fix carries a complete pre-cap admitted-oracle-scope boolean internally, keeps hidden rows out of witness selection, and finds only owner calls outside nested macro inputs. No helper name or expected text supplies exposure credit.

Native ea36 proof: public regression5/5, full-row veto predicate1/1, existing macro/oracle units23/23 all native0. No-op/shadowed helper, shadowed assertion, mismatched expected, wrong owner and nested-only owner controls are retained. A formatter-only successor and remaining native/independent/hosted qualification are still pending; Draft is not a merge/readiness claim.

When #9697 lands, please reconcile this row's native expected projection / known_false inventory / missed-credit ceiling in your owned corpus candidate: accepted limited instead of false_actionable; ideal credited remains unmet (one additional missed credit if #9628 governs that metric). I will add the exact merge/qualified result here. Whole-document recall and #6642 remain separate.

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

Refuted

  • The seeded discussion makes the negative-zero false-actionable classification stale.; refuted because: The thread preserves the same analyzer-repair premise; this PR only adds corpus truth and known-false metadata, while the PR explicitly claims no analyzer change.
  • The PR's runtime-mutant labels may be internally swapped between discriminating and missed tests.; refuted because: Each expected row agrees with its case-level truth and recorded outcomes: feature-on, asserting snapshot, and pinned-table mutants fail; default-feature, discarded-helper, and unpinned-table mutants pass.
  • The new fixture cases might require analyzer or production caller changes.; refuted because: The PR adds authored corpus inputs and expected evidence only; no analyzer or production route is modified.
  • The feature-gated cases are inconsistent because the default-features twin intentionally labels the same source shape as missed.; refuted because: The pair encodes the required truth convention: v4 is discriminated under --features v4, while v7 is not discriminated under cargo test; the differing feature declarations make this intentional.
  • The PR makes analyzer-grounding claims for seven cases, while this diff intentionally changes no analyzer source.
  • The changelog overstates analyzer improvement or claims a production behavior change.; refuted because: The changelog describes corpus coverage and explicitly ties the two false-actionable cases to repair issues; it does not claim analyzer code was modified.

Parked follow-ups

  • The PR's stated dependency on a future missed-credit ceiling is correctly parked as follow-up rather than silently treated as part of this change.

Evidence gaps

  • The authored subject's retained-file hashes are claims not independently reproducible from the shown packet, and the scheduled cargo-test receipt is the remaining trust-relevant proof.
  • Model proof intent was rejected by deterministic validation.
  • The corpus test receipt is scheduled but not yet available in the supplied lane context.

Copy link
Copy Markdown
Member Author

Status: this PR is behind main and needs a bless that I could not run. Merging main (7cc4412) locally gives 617 Rust cases and verdict-corpus check --language rust fails on drift in three rows: mined-feature-v4-stamp-run-with-feature, mined-feature-v7-stamp-default-features-run and mined-snapshot-helper-heading-unasserted. In each the only change is changed_since_labeling false to true and the observed classification weakly_exposed to reachable_unrevealed; the verdict and outcome are unchanged (v4 stays false_actionable, the others ideal). The permission check refused cargo xtask verdict-corpus bless, so the merge commit (5609f5b5cb) is unpushed and the rows are not hand-edited. Needs: someone with approval runs cargo xtask verdict-corpus bless --language rust after merging main; it touches only fixtures/rust-verdict-corpus/expected/. The only merge conflict was the case-family list in fixtures/rust-verdict-corpus/SPEC.md (kept both entries).


Generated by Claude Code

@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 of record (exact-head sweep, head 09cb0a5)

Verified

Observed (read or ran in this review against head 09cb0a5):

  • Diff scope matches the PR body's claimed scope exactly (28 files): 7 case diffs + 7 case JSONs, 7 expected rows, subject descriptor + Cargo.toml + src/lib.rs.txt, 2 known-false TOMLs, the SPEC.md convention note, and one changelog fragment. No analyzer, output-contract, docs/PUBLIC_PROOF.md or metrics/public-proof files are touched, honoring the "corpus truth only; no analyzer change" claim boundary.
  • Anchor lines check out against the pinned subject source subjects/authored-mined-features/src/lib.rs.txt at head for all seven cases: v4 stamp -> line 9, v7 stamp -> 29, render_float return -> 77, render_document push -> 86, render_heading format -> 93, token-table alnum row -> 106, punctuation row -> 105.
  • Truth labels discriminate. Each tests_failed mutant was re-derived by hand against the pinned test code: v4 mutant 0x5000 | (raw & 0x0fff) gives stamp(0xffff) = 0x5fff vs asserted 0x4fff (fails); pinned-range mutant b'1'..=b'9' removes b'0', which token_table_pins_alphanumerics_and_bang reads (fails); negative-zero and document-separator mutants change snapshot-visible bytes (fail). Each tests_passed set genuinely passes: the v7 module is #[cfg(feature = "v7")]-gated out of a default-features cargo test, and the unpinned-table mutants remove only b'~'/b'^', which no test reads. No swapped or stale labels.
  • Expected rows agree with each case's truth/expected/labeling_observation block in all 7 cases (verdict, classification, outcome: 2x false_actionable, 2x ideal, 3x abstained), and with the body's case table.
  • Retained-file hashes verified byte-exact: sha256sum over the head blobs gives Cargo.toml = 3c398211d75372f854a3393530e4a02872feeae62aa84cc8e794f2dee140c097 and src/lib.rs.txt = 22001b73d4f87d094f1bde9958dcd7bf6bbf72d0816321f13a7aa92147f2a036, both matching subjects/authored-mined-features.json (SPEC: "a changed byte fails its sha256").
  • Case count at head: 597 cases/*.json (git trees API, tree not truncated) - matches the body's "597 cases".
  • The head merge commit's second parent is main @ 4b1b56a - the exact SHA the body cites for its check --language rust run.
  • Referenced objects exist and match: #9643 and #9644 are open with titles that mirror the known-false reason lines; #9619 is the open governing audit issue; labeling_observation.ripr_commit f039726 resolves to a real main commit dated 2026-10-22.
  • Static-language policy: a case-insensitive grep of the full patch set finds 0 occurrences of killed, survived, untested, proven, or adequate; classifications used are weakly_exposed and static_unknown (allowed vocabulary).
  • Shapes match existing corpus entries: known-false TOML vs known-false/idiom-assert-macro-wrapper.toml; subject descriptor vs subjects/authored-mined-wire.json; expected-row schema vs neighboring rows; the un-prefixed changelog fragment name has precedent (30 existing fragments in changelog.d lack an issue-number prefix, including other verdict-corpus fragments).
  • CI at head (draft): merge-gate lanes report skipping as expected for a draft; ub-review, GitGuardian and Graphite pass. Per SPEC.md, the required gate for this corpus (cargo xtask verdict-corpus check-all) runs at Draft -> Ready and on main pushes, so it has not run yet by design.

Reported (PR body / commit messages, not independently re-run):

  • relabel --case <id> x7 with 0 drift, and check --language rust = 597 cases, false 14/597, no drift, no split/bless needed, precommit pass at head 09cb0a5.
  • The dependency claim that #9628's missed_credit_ceiling key is rejected by the current parser and the ceiling must rise by exactly 2 after it lands (consistent with the two abstained-on-discriminated rows).

Not verified (not run in this review):

  • cargo xtask verdict-corpus relabel --case <id> and cargo xtask verdict-corpus check --language rust were not re-run here; the corpus check is the build-heavy Draft->Ready CI gate, and the labels were instead re-derived by hand as recorded above.
  • excerpt_parity: "matched" per case (would require running ripr's excerpt mode).

Findings

See the inline comment on cases/mined-snapshot-helper-negative-zero.json (1 finding, P2). Everything else inspected came back consistent.

What is done well

The case matrix is a genuinely discriminating set: every truth claim is independently checkable against the pinned test code and all seven survive the check; the negative twins are proper controls (result-discarding helper call, unpinned table row, default-features twin of the feature-gated case); and the two false-actionable rows are registered as known-false against live, title-matching issues instead of being hidden - exactly the honesty convention this corpus exists to enforce.

Disposition

REVIEW_INCOMPLETE (draft) - findings above are pre-landing feedback; none blocking (1x P2). The P2 is a truth-record fidelity fix that should land before the rows are treated as the durable record for #9644.

@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 of record (exact-head sweep, head 09cb0a5)

Supersedes review of record 5648524620 (2026-10-26, same head) as the current sweep; that review's single inline P2 (comment 4374736059) remains unaddressed at this head and is re-recorded below with independent verification. The PR is a draft, so the required corpus gate has not run yet by design (see Not verified).

Verified

Observed (read or ran in this review against head 09cb0a5, current main, and API state on 2026-10-30):

  • Diff scope (PR files API, 22 files) matches the body's claimed scope: 7 case diffs + 7 case JSONs, 7 expected rows, subject descriptor + subject Cargo.toml + src/lib.rs.txt, 2 known-false TOMLs, the SPEC.md convention note, one changelog fragment. No analyzer, output-contract, docs/PUBLIC_PROOF.md or metrics/public-proof files touched, honoring the "corpus truth only; no analyzer change" claim boundary. The body carries both required fields (Governing issue or accepted claim: #9619, Acceptance delta).
  • Retained-file hashes verified byte-exact by running gh api .../contents/<path>?ref=09cb0a53 | sha256sum: Cargo.toml = 3c398211d75372f854a3393530e4a02872feeae62aa84cc8e794f2dee140c097, src/lib.rs.txt = 22001b73d4f87d094f1bde9958dcd7bf6bbf72d0816321f13a7aa92147f2a036 — both equal to subjects/authored-mined-features.json (SPEC: "a changed byte fails its sha256"). The .rs.txt storage convention matches the SPEC and every other subject.
  • Anchors and diff hunks line up against the pinned subject source for all seven cases (v4 stamp -> src/lib.rs:9, v7 -> 29, render_float return -> 77, render_document push -> 86, render_heading format -> 93, token-table alnum row -> 106, punctuation row -> 105), and all seven edits are genuinely behavior-preserving (commutative or-pattern reorders over disjoint patterns; equivalent String construction/append forms), so edit_kind: behavior_preserving_rewrite is accurate.
  • Truth labels discriminate. Each tests_failed mutant was re-derived by hand against the pinned test code: v4 0x5000 | (raw & 0x0fff) gives stamp(0xffff)=0x5fff vs asserted 0x4fff (fails); pinned-range b'1'..=b'9' removes b'0' and b'A'..=b'Y' removes b'Z', both read by token_table_pins_alphanumerics_and_bang (fails); negative-zero and document-separator mutants change snapshot-visible bytes (fail). Each tests_passed set holds: the v7 module is #[cfg(feature = "v7")]-gated out of the default-features cargo test, heading_is_computed_but_never_asserted discards snap::matches' bool, and the unpinned mutants remove only b'~'/b'^', which no test reads. The v4/v7 twin pair encodes the SPEC's new truth convention correctly and the unpinned-tilde negative is a proper control.
  • All 7 expected rows agree with their case JSONs (truth/expected/labeling_observation: verdict, classification, outcome) and with the body's case table (2 false_actionable, 2 ideal, 3 abstained).
  • Case inventory at head: 597 cases/*.json and 597 expected rows, recursive git-tree query, truncated: false — matches the body's "597 cases".
  • Head is a two-commit stack: 4f7b115 (the cases) merged with main @ 4b1b56a (the exact SHA the body cites for its check run), i.e. the branch's recorded proof base is observed, not just reported.
  • Referenced objects exist and match: #9643/#9644 open with titles mirroring the two known-false reason lines; #9619 open (the governing false-verdict audit); known-false file stems equal their case fields as the entry loader requires.
  • Static-language grep over the full patch: 0 occurrences of killed/survived/untested/proven/adequate; verdict vocabulary (credited/limited/gap/silent) and classifications (weakly_exposed/static_unknown) are the allowed corpus vocabulary; runtime words (tests_failed/tests_passed, runtime_mutant_kill) appear only inside truth blocks, where the spec puts them.
  • Current-main premise check (new since the body was written): #9628 merged 2026-10-24 (49b1aa9) and #10317 (2026-10-25) replaced its shared missed_credit_ceiling line with sorted per-language [[entry]] blocks in fixtures/rust-verdict-corpus/missed-credit.toml (152 entries on main today); the key no longer exists in spec-coverage.toml. missed_credit_gate on main fails a whole-corpus check for any discriminated-truth abstained row without an accepted entry. Main has no authored-mined-features subject and none of this PR's case ids (no equivalent landed work).

Reported (PR body / commit messages; not re-run here):

  • relabel --case x7 with 0 drift; check --language rust = 597 cases, false 14/597, no drift; precommit pass — all run against main @ 4b1b56a, which predates #10317 and several analyzer changes in the measured surface (#9845, #9462, #10881 among others).

Not verified (not run in this review):

  • cargo xtask verdict-corpus relabel and verdict-corpus check were not re-run; labels were instead re-derived by hand as recorded above. The required whole-corpus gate (check-all) runs at Draft->Ready and on main pushes and has therefore not executed for this PR yet.
  • findings_scored: 1 per row and excerpt_parity: "matched" per case (would require running ripr against the subject).

Findings

Three findings; two carry full repair packets as inline comments:

  • [P1] The two new missed-credit rows have no missed-credit.toml entries and the branch conflicts with current main in fixtures/rust-verdict-corpus/SPEC.md — the required Draft->Ready / main-push check-all gate fails as-is. Inline on expected/rows/mined-snapshot-helper-document-separator.json. This subsumes the body's stale "raise the rust ceiling by exactly 2" instruction: that mechanism no longer exists (#10317 replaced it with sorted [[entry]] blocks).
  • [P2] The Claim Boundary paragraph in the PR body is stale twice over: it says #9628 "is not on main" (it merged 2026-10-24) and describes the retired ceiling mechanism. A convergence lane following it literally cannot act on it, because missed_credit_ceiling is gone from spec-coverage.toml. The body needs a refresh naming the missed-credit.toml entry route instead (body edit is outside this review lane's write boundary).
  • [P2] The negative-zero case's first mutant is recorded against the pre-rewrite line form, violating the SPEC's mutated_line must-rule; relabel cannot catch it (it overwrites the anchor line verbatim), so the record needs a manual fix. Inline on cases/mined-snapshot-helper-negative-zero.json; restates unaddressed comment 4374736059 from the prior review.

What is done well

The case matrix is genuinely discriminating: every truth claim is independently checkable against the pinned test code and all seven survive the check, with proper negative twins (result-discarding helper call, unpinned table row, default-features twin of the feature-gated case). The two false-actionable rows are registered as known-false against live, title-matching issues instead of being hidden — exactly the honesty convention this corpus exists to enforce — and the subject pins its sources by sha256 so a silent edit cannot drift the labels.

Disposition

REVIEW_INCOMPLETE (draft) — findings above are pre-landing feedback: 1 P1 (add the two missed-credit entries and sync/re-bless against current main; blocks the Draft->Ready check-all gate as-is) and 2 P2s.

@EffortlessSteven
EffortlessSteven force-pushed the claude/corpus-mined-feature-snapbox-table branch from 09cb0a5 to 17aa5c9 Compare October 30, 2026 13:09
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 30, 2026 13:09

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

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • The negative-zero case records a mutant against the pre-rewrite expression, while its diff changes that expression to a different implementation.

Verification questions

  • Confirm pR-body proof/dependency narrative is stale relative to the current diff: it references a retired ceiling mechanism and old proof counts, while missed-credit.toml now uses explicit entries.

Refuted

  • The fixture truth labels might be internally swapped, with discriminating mutants assigned to missed cases and vice versa.; refuted because: Manual comparison of each mutant with the subject tests supports the labels: feature-on, asserted snapshots, and pinned table entries fail; default-feature, discarded-helper, and unpinned punctuation mutants pass.
  • Adding these corpus cases requires analyzer or production-caller changes.; refuted because: The diff changes only corpus inputs/expected metadata, SPEC, subject fixture, and changelog; no analyzer or production route is modified.
  • The PR changes analyzer behavior or production callers to support these cases.; refuted because: Changed surfaces are corpus fixtures, expected rows, subject sources, metadata, SPEC text, and changelog only; no analyzer or production implementation is modified.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Current executable corpus proof is not included in the supplied packet.

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

Independent review (fresh-context reviewer, head 17aa5c9): REVIEW_INCOMPLETE — the candidate's own delta is purely additive corpus content that is internally consistent (every accepted row carries an issue number, a reason, and a truth/ideal_verdict/observed_verdict triple that makes the acceptance auditable), and the two acceptance files it touches record a specific defect rather than a blanket exemption; no blocking defect found. The candidate has no hosted Rust lane at this head, so the Rust proof is unobserved.

Inspected:

  • Head 17aa5c9e, previously reviewed head 09cb0a53789125e4724576e688b2be5b4ec54fef.
  • The candidate's own four commits, isolated from the upstream merge by comparing against d9e6eb03 (the last upstream commit in the range): 419c3bcd test(corpus): add authored-mined-features cases for feature-gated tests, snapshot helper and static table (#9619), d7f6219f fix(corpus): record post-rewrite mutant, restore per-file known-false, accept mined missed credit (#9619), 9c9156ae test(corpus): re-bless mined rows moved by main analyzer changes (#9619), and 17aa5c9e fix(corpus): accept mined known-false growth under #9643/#9644.
  • The candidate's own file surface: 35 files, all under fixtures/rust-verdict-corpus/ plus changelog.d/rust-verdict-corpus-mined-features-snapshot-table.md. Every file is an addition (+N/-0) except the SPEC.md (+5/-0) and the acceptance files — the candidate adds no production code.
  • The new subject fixtures/rust-verdict-corpus/subjects/authored-mined-features.json (+17/-0) with Cargo.toml (+11/-0) and src/lib.rs.txt (+151/-0), and the seven new cases with their .diff and .json files and the seven expected/rows/*.json files (+22/-0 each).
  • The two acceptance files the candidate touches: fixtures/rust-verdict-corpus/known-false/mined-feature-v4-stamp-run-with-feature.toml and known-false/mined-snapshot-helper-negative-zero.toml.
  • The candidate's own missed-credit.toml entries, isolated by case id from the file's pre-existing #10222 baseline entries.
  • A full expected row: fixtures/rust-verdict-corpus/expected/rows/mined-feature-v4-stamp-run-with-feature.json.
  • fixtures/rust-verdict-corpus/SPEC.md at this head (the subject/case layout section).
  • Hosted state at this head: ub-review, Graphite / AI Reviews, Graphite / mergeability_check and GitGuardian Security Checks are all success; CodeRabbit is neutral; Rust-only feature lane, rust-tests-junit, rust-coverage, future-clippy, msrv, cargo-deny, dependency-review, Windows Advisory, windows-advisory-subset, macOS Advisory and Perl and release proof are all completed | skipped.

Blocking:

  • None found. The delta adds corpus cases and their expected rows; it does not change any analyzer behavior, so the risk it carries is that a newly accepted row hides a real defect. On that specific risk:
    • The two known-false acceptances are per-case and each names a distinct issue. mined-feature-v4-stamp-run-with-feature is accepted under issue 9643 with accepted_growth = 9643 and the reason "exact pin in a nested cfg(feature) module's tests read as gap though the feature-on run catches the edit (#9643)". mined-snapshot-helper-negative-zero is accepted under issue 9644 with accepted_growth = 9644 and the reason "exact inline snapshot compared through a local assert_data_eq!/snap_str! helper read as gap (#9644)". Two different issues, two different root causes (a feature-gated module's tests and a local snapshot helper), and neither is a blanket acceptance of a whole family. The file naming follows the per-file convention the candidate follows throughout (known-false/<case-id>.toml), so an acceptance is scoped to one case id rather than to a pattern.
    • The two missed-credit.toml entries the candidate adds are scoped and carry a removal condition. mined-snapshot-helper-document-separator and mined-token-table-pinned-range are recorded with the reason "Tests discriminate the change but ripr abstains (#9619). Delete this entry when the row credits." — the file's own header states the invariant this satisfies: "A row that newly misses credit fails verdict-corpus check until it is fixed or accepted here with a reason; an entry whose row credits again fails verdict-corpus check until the entry is deleted (#10341)." The two entries the candidate adds are distinguishable from the file's pre-existing baseline by their reason text (they cite #9619, the others cite #10222), so the candidate's acceptances do not silently absorb the baseline.
    • Each expected row records the disagreement it is papering over, so an acceptance is auditable rather than opaque. mined-feature-v4-stamp-run-with-feature.json records "truth": "discriminated", "ideal_verdict": "credited", "observed_verdict": "gap", "outcome": "false_actionable", "observed_classifications": ["reachable_unrevealed"], "behavior_family": "return_value_bitmask", "test_shape": "feature_gated_module_tests_run_with_feature", "hard_case": true, and "changed_since_labeling": true. A reader can see exactly which classification is wrong and what the correct verdict was, and the changed_since_labeling flag records that the analyzer moved under the row after it was labeled — which is the honest thing to record when the label is stale rather than the analyzer being wrong.
    • The corpus subject and its cases are self-contained. The candidate adds subjects/authored-mined-features.json with its own Cargo.toml and src/lib.rs.txt, so the seven new cases resolve against a subject declared in the same change, and each case has the .diff + .json pair the SPEC.md layout section requires ("cases/<case_id>.json beside its cases/<case_id>.diff. A file must be named after the id it holds").

Non-blocking:

  • The candidate's SPEC.md change (+5/-0) is a small addition to the subject/case layout section that registers the new authored-mined-features subject alongside the existing authored-spec-results, authored-spec-confirm, authored-spec-harness and authored-lib-* subjects. The larger apparent growth of that file (167 → 200 lines) between the two heads is upstream main movement adding the authored-spec-results subject; the candidate's own contribution is the 5 added lines.
  • The missed-credit.toml file grew from 1 line to 605 lines between the two heads. The bulk of that is upstream (main carrying the retired missed_credit_ceiling baseline forward as explicit per-case entries, per the #10222 note in each reason); the candidate's own contribution is the two #9619 entries and the 8 added lines.
  • The candidate's seven new rows are all "observed_verdict": "gap" rows with a truth of "discriminated" — that is, the candidate is documenting cases where the analyzer is wrong in the conservative direction. This is the safe direction for the product's honesty axis: the corpus records the gap between what ripr says and what the tests actually discriminate, rather than adding cases that would justify more credit. A corpus that only ever records rows where the analyzer was right would not be measuring anything.
  • The candidate has no hosted Rust lane at this head, so the corpus gate verdicts are unobserved. Per .github/workflows/routed-rust.yml:5-12 and :40, the routed Rust workflow starts work only on a merge-ready label event; no such run has occurred for this head. The verdict-corpus check gate that this delta's acceptances must satisfy is therefore not yet exercised on the hosted side.

Not run:

  • No local Rust toolchain on this host: cargo/rustc are absent from PATH, so build and test execution could not be performed locally. Every claim above is source reading plus the hosted run state at the exact head.
  • cargo xtask verdict-corpus check was not run by this reviewer; the corpus was verified by reading the committed case, row and acceptance bytes, not by regenerating them.
  • cargo xtask precommit was not run by this reviewer (no toolchain on this host); the candidate's reported local results are not independently reproduced here.
  • The seven new cases' runtime truth ("Tests discriminate the change") was not independently re-established here; the candidate's rows assert it and the accepted_growth entries cite the upstream issues. Verifying that truth requires running the authored crate's own test suite, which needs a Rust toolchain.

Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 17aa5c9e. Not an approval.

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

Refuted

  • The new cases require analyzer or production-caller changes to be recognized.; refuted because: The changed files register complete fixture metadata for the existing corpus pipeline; analyzer and production routes are outside the diff.
  • The new corpus cases cross an analyzer or production-caller boundary.; refuted because: The changed surface is limited to authored corpus inputs, expected rows, acceptance metadata, subject fixtures, SPEC.md, and a changelog fragment; no analyzer, runtime production route, or public proof output is changed.

Evidence gaps

  • Execution proof for the changed corpus on the merged head is not yet present in this lane's evidence.
  • Model proof intent was rejected by deterministic validation.
  • Current-host Rust proof is unavailable because cargo-test is still scheduled in late evidence.
  • Whole-corpus gate success is asserted by the PR body but is not available in the current evidence packet.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Convergence status — blocked by an inherited main failure, not by this branch.

The required Ripr Rust Small Result check on this PR's merge ref failed (run 41171321648) with check-user-text overages: discriminator in golden-human 3278 lines (ceiling 3274) and seam 596 (ceiling 595). Main's own gate run on 6d6d79cdc5 (run 41172497078) fails with the identical counts and first hits, so the overage is inherited from main's golden growth; the baseline at bd517af is behind main's own tree by +4/+1. This PR adds no expected/human.txt golden and no analyzer code (diff: 29 fixture-corpus/SPEC/changelog files), so it contributes zero scanned lines.

Lane state at head 37423d1f69: all 3 review threads resolved and verified at head (missed-credit entries present at fixtures/rust-verdict-corpus/missed-credit.toml:196,200; mutant recorded in post-rewrite form matching the codec twin); merged main locally; verdict-corpus check --language rust passed on WSL pinned 1.95 (796 cases, false 4/796, no drift, no re-bless); cargo fmt --check, 7 policy checks and 3 docs checks pass locally.

Awaiting: a main-side repair of check-user-text (raise the two ceilings with a reviewed reason, or re-word/re-bless the offending goldens). Once main's gate is green again, re-adding merge-ready fires a fresh qualification run and this PR can merge unchanged.

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

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm the fixture labels are coherent: feature-on, asserted snapshots, and pinned table rows discriminate, while default-feature, discarded-helper, and unpinned punctuation rows do not.

Refuted

  • The corpus additions require analyzer or production-caller changes.; refuted because: The 29-file diff changes only corpus cases, expected rows, acceptance metadata, an authored subject, SPEC text, and a changelog fragment; no analyzer or production route is changed.
  • The corpus additions cross an analyzer or production-route boundary.; refuted because: The patch adds only authored subject data, case metadata, expected rows, acceptance records, spec text, and a changelog entry. It changes no analyzer, production caller, output contract, or dependency manifest.

Evidence gaps

  • Current-head Rust execution proof remains unavailable in this packet.
  • Model proof intent was rejected by deterministic validation.
  • Merged-head Rust corpus execution remains trust-relevant because cargo-test is only scheduled in late evidence.
  • The PR body reports obsolete corpus counts and an obsolete missed-credit mechanism, so its proof narrative overstates current-head verification.

@EffortlessSteven
EffortlessSteven merged commit 15d3155 into main Oct 31, 2026
46 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/corpus-mined-feature-snapbox-table branch October 31, 2026 08:00
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