Skip to content

test(pr-evidence): pin both changed-files digest helpers to one shared corpus - #11745

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/4006-pr-evidence-digest-parity
Oct 31, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/4006-pr-evidence-digest-parity

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Governing issue or accepted claim: #4006
Acceptance delta (one sentence): The product and xtask PR-evidence changed_files_sha256 helpers are pinned to one shared, independently computed corpus, so the two producers cannot drift apart (#4006 item 6 follow-up from #11648).

What changed

  • tests/fixtures/verification/ripr/changed-files-digest.corpus.json: 8 cases (empty, single, order/duplicates, newline name joined vs split, quote/backslash/space, non-ASCII, backslash vs nested path). Expected digests were computed with Python hashlib, independent of both Rust implementations.
  • One test in each of crates/ripr/src/app/pr_evidence.rs and xtask/src/reports/pr_evidence.rs reads the corpus and requires every digest to match.

Discriminating control: changing the NUL terminator byte in the xtask helper fails the corpus test (single: digest sha256:69e6…, corpus expects sha256:5428…); reverted before commit.

Not claimed

No production change. cargo xtask precommit stopped at check-rust-source-role-authority, which fails on main itself (literal in repair_attempt/mod.rs from #11596; fix of record is #11734), so the checks after it are not yet run locally; I'll rerun once #11734 lands.


Generated by Claude Code

…d corpus (#4006)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmoTGpbrnaom45UcHBf
@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 Oct 31, 2026
@coderabbitai

coderabbitai Bot commented Oct 31, 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 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 149 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: 86f82649-4e6a-4219-91d5-b156be65171d
Commits

Reviewing files that changed from the base of the PR and between 264db59 and 6f655bf.

Files selected for processing: 3
  • crates/ripr/src/app/pr_evidence.rs
  • tests/fixtures/verification/ripr/changed-files-digest.corpus.json
  • xtask/src/reports/pr_evidence.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Confirmed findings

  • The corpus pins ordering and duplicate normalization, NUL/path-boundary behavior, special characters, Unicode, and backslash-versus-slash distinctions.

Verification questions

  • Confirm the corpus pins eight digest outcomes, but the review packet contains no independently reproducible command or receipt validating the Python hashlib derivation.
  • Confirm the claim is limited to two PR-evidence producers; this review does not establish that no other changed-files digest implementations or routes exist.

Refuted

  • The corpus tests are regression guards, not red/green tests for a behavior change: the PR explicitly makes no production change.

Evidence gaps

  • Execution evidence for the new Rust tests is not present; cargo-test is scheduled but its receipt is absent, while ripr failed with exit code 2.
  • The new tests are not confirmed to have executed: cargo-test has no receipt and the ripr sensor failed with exit code 2.
  • Model proof intent was rejected by deterministic validation.
  • Runtime validation of the two focused tests is not established by the available sensor evidence.
  • Execution proof is incomplete in the review packet despite the corpus source being inspectable.

Parked follow-ups

  • Both test modules duplicate corpus loading, schema validation, and iteration logic, creating modest maintenance drift risk.
  • The corpus guards case count but not schema uniqueness, so duplicate case names or altered encodings could weaken diagnostics without necessarily failing behavior checks.
  • The two duplicate test bodies can drift in parsing and validation behavior even while the fixture remains shared.

Copy link
Copy Markdown
Member Author

Review of record, head 6f655bf (main 264db59 merged in, including the #11734 fix; self-review of the exact head, bot reviewers quota-limited).

Angles: oracle independence, discrimination, path resolution, scope.

  • Oracle: the eight expected digests came from Python hashlib, not from either Rust helper. The set includes the LF-collision pair (a\nb+c vs a+b\nc), order and duplicate invariance, and non-ASCII.
  • Discrimination: changing the NUL terminator in the xtask helper failed the corpus test with single: digest sha256:69e6…, corpus expects sha256:5428…, then reverted. The product helper has the same shape and is covered by its own copy of the test.
  • Paths: ../.. from the ripr crate and .. from xtask both land on the repo-root fixture. A corpus that shrinks below 8 cases fails instead of passing vacuously.
  • Scope: tests and one fixture only, no production change and no schema change.

Findings: none blocking. Local cargo xtask precommit has not been re-run on this head, because this host OOM-kills full builds. The hosted Ripr Rust Small Result is the gate before merge.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 31, 2026 17: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!

@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 verification checks before upstream.

Verification questions

  • Confirm the shared oracle does not directly assert cross-producer equality.
  • Confirm repository-wide absence of other changed-files digest producers is not established by this diff or the supplied sensor receipts.

Refuted

  • The corpus is a regression oracle rather than a red/green proof of a production behavior change.

Evidence gaps

  • Successful execution of the two focused corpus tests is not established by the available packet.
  • Model proof intent was rejected by deterministic validation.
  • Independent expected-digest derivation and focused execution remain unproven.
  • The shared-corpus regression tests lack completed runtime evidence in this packet; cargo-test has no receipt and the ripr sensor failed with exit code 2.
  • Runtime execution of the newly added Rust tests is not established by the available receipts.

Copy link
Copy Markdown
Member Author

Response to the verification questions on 6f655bf:

  • Cross-producer equality is asserted transitively. Both producers' tests compare against the same eight corpus digests. Those digests were computed with Python hashlib, so neither Rust helper is the oracle for the other. If the two helpers diverged, at least one corpus test would fail.
  • Other producers: a grep for changed_files_sha256 finds exactly two implementations, crates/ripr/src/app/pr_evidence.rs and xtask/src/reports/pr_evidence.rs, plus the schema, contract doc and valid fixture. There is no third producer. The other hits are a stale agent worktree under .claude/worktrees, which is not tracked.
  • Execution evidence is the hosted Ripr Rust Small Result on this head, which this PR waits on. The test is a regression oracle, as the bot says, and I make no red/green claim beyond the NUL-byte control recorded in the review of record.

Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit e23f19a into main Oct 31, 2026
59 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/4006-pr-evidence-digest-parity branch October 31, 2026 18:30
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