Skip to content

fix(rust): credit test_case arrow rows only when their inputs tell the edit apart - #10804

Merged
EffortlessSteven merged 5 commits into
mainfrom
claude/10797-arrow-row-inputs
Oct 27, 2026
Merged

EffortlessSteven merged 5 commits into
mainfrom
claude/10797-arrow-row-inputs

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #10797
Acceptance delta (one sentence): a #[test_case(.. => literal)] row now reads as assert_eq!(returned with the row's arguments substituted, literal), so a coincident row (old and new return the same value for that input) no longer credits while a discriminating row still does.

Found by a runtime-labelled negative against #10734: 0 => 0 was exposed before and is weakly_exposed now; 1 => 2 and a two-row case still credit.

  • Template refuses self, non-simple patterns, any pattern binding in the tail (closure/let shadowing), and any parameter use that is not a plain one-segment path (field, method, macro).
  • RIPR-SPEC-0231 rule 9 amended; three new tests in test_case_arrow_expected_value (16 pass).
  • Cache generations 1.114 / 0.121 / file facts 1.49.
  • Local: verdict-corpus check-all, goldens check, precommit all exit 0.

Generated by Claude Code


Devin Review

…10797)

A coincident row (input where old and new return agree) no longer credits;
one discriminating row among coincident rows still does. Cache generations
bumped 1.114 / 0.121 / file facts 1.49.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
@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 26, 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 170 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: 46454ad9-8828-4735-8b7c-00378258d12e
Commits

Reviewing files that changed from the base of the PR and between 6eca9dd and ba1d789.

Files selected for processing: 24
  • .ripr/traceability.d/10797-test-case-arrow-row-inputs.toml
  • changelog.d/10797-test-case-arrow-row-inputs.md
  • crates/ripr/src/analysis/extract/test_case_arrow.rs
  • crates/ripr/src/analysis/seam_cache.rs
  • crates/ripr/tests/cache_clear_safety.rs
  • crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs
  • crates/ripr/tests/test_case_arrow_expected_value.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0231-rust-oracle-kind-admission.md
  • fixtures/boundary_gap/expected/CHANGELOG.md
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json
  • fixtures/evidence-promotion-honesty-corpus/cases/rust_test_case_arrow_coincident_row.json
  • fixtures/rust_test_case_arrow_coincident_row/SPEC.md
  • fixtures/rust_test_case_arrow_coincident_row/diff.patch
  • fixtures/rust_test_case_arrow_coincident_row/expected/CHANGELOG.md
  • fixtures/rust_test_case_arrow_coincident_row/expected/check.json
  • fixtures/rust_test_case_arrow_coincident_row/expected/human-full.txt
  • fixtures/rust_test_case_arrow_coincident_row/expected/human.txt
  • fixtures/rust_test_case_arrow_coincident_row/input/Cargo.toml
  • fixtures/rust_test_case_arrow_coincident_row/input/src/lib.rs
  • xtask/src/tests/rust_corpus_projection.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@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

…dd coincident-row corpus case; refresh boundary_gap hashes (#10797)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head 91264a76), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

Copy link
Copy Markdown
Member Author

Review of record, head ba1d789. Nothing blocking.

Angles: correctness (template substitution, shadowing, receiver precedence), tests (runtime-labelled negatives: 0 => 0 coincident, discriminating row among coincident rows, rebound/field/macro parameter, negated receiver), spec (RIPR-SPEC-0231 rule 9 amended), consumers (case_row_literals and literal_arguments now agree on strings), cache (1.115 / 0.122 / file facts 1.50, past main's 1.114).

Findings and resolutions: Graphite/Devin negated-receiver parenthesization fixed; string-row split admission fixed; coincident-row honesty case added with grip proven against the pre-fix analyzer; cli_smoke boundary_gap snapshot hashes refreshed for the new cache generation.

Local: seam_cache 199 pass, arrow and cache_clear_safety tests pass, verdict-corpus check-all and check-evidence-promotion-honesty pass, goldens check clean, precommit exit 0.


Generated by Claude Code

@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 extractor might retain AST references with lifetimes shorter than the synthesized facts, creating dangling references.; refuted because: The implementation copies text into owned String pieces and stores only parameter indices; no AST node or borrowed slice is retained in OracleFact construction.
  • The changed arrow-row substitution could corrupt or misread a live backing store through stale length or aliasing state.; refuted because: The implementation clones syntax-derived text into owned Strings and substitutes values into a newly constructed expression; it has no shared mutable buffer, resize operation, detach/transfer operation, or cached length used as an index.
  • The change introduces an unsafe worker/async handoff or ownership-transfer boundary.; refuted because: No JavaScript, worker, async, GC, detach, transfer, thread, channel, unsafe, or raw-pointer code is introduced on the changed path; the implementation is synchronous AST analysis and string construction.
  • The new independent fixture duplicates existing unit coverage without architectural value.; refuted because: The unit test and honesty corpus exercise different boundaries: the former verifies analyzer behavior directly, while the latter independently detects false promotion after re-blessing and is required by the repository's honesty-corpus invariant.
  • Untrusted attribute text can become executable synthesized Rust and become an exploit primitive.; refuted because: Admission is allowlisted to plain literals; strings are refused; argument count must match; parameter substitution is parenthesized; template bindings and non-plain parameter uses make the whole function unread.

Parked follow-ups

  • The semantic oracle change is paired with cache-generation bumps and an independent honesty-corpus fixture, so related consumers should not reuse stale unsubstituted facts.

Evidence gaps

  • The planned ripgrep sensor failed with exit code 2, so this lane's source reading cannot be supplemented by a successful ripgrep receipt.
  • Model proof intent was rejected by deterministic validation.

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