Skip to content

fix(syntax): index one test per row of a same-file macro_rules! test table (#6925) - #9208

Merged
EffortlessSteven merged 23 commits into
mainfrom
claude/project-thread-c7grv2
Oct 25, 2026
Merged

EffortlessSteven merged 23 commits into
mainfrom
claude/project-thread-c7grv2

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Before: a same-file macro_rules! test table such as itoa's test! { name(value, expected) ... } was refused as a repetition, so the code its tests call read as no_static_path ("No tests were found") even when a row pinned the changed boundary.
  • After: the expander splits a whole-matcher repetition into rows and expands the body once per row, so each row is an ordinary generated test. Row layouts it cannot split exactly (=> rows, a trailing separator, a leftover token, a wrong-arity group, nested repetition) still index nothing.

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: docs/specs/RIPR-SPEC-0117-rust-macro-reach-limitation.md (new example 8, "Same-File Test Generators" amended)
ADR: none
Plan item: 0.11 readiness blocker 3 (first-run five-shape re-walk, itoa)
Governing issue or accepted claim: #6925
Acceptance delta (one sentence): four table rows in the new authored-macro-table subject move from limited to credited, credited, gap, gap, and no existing row moves.

Candidate Relationships

Candidate branch: claude/project-thread-c7grv2
Stack parent or prerequisite PR: none
Proposed replacement of PR: none
Note: the unrelated mock call-count change that used this branch (#8606) was closed as superseded by #9077; this PR starts from current main.

Scope

  • syntax::local_test_macros: repetition-table matcher and body expansion, bounded to 512 rows.
  • SPEC-0117 example 8, an authored subject authored-macro-table and five cases labeled by running cargo test against the baseline and two mutants per owner.
  • Seam cache 1.87 → 1.88 and sharded/compact 0.93 → 0.94, with the OUTPUT_SCHEMA, currentness-test and first-useful-action fixture consumers.

Scope Classification

  • One production behavior

Production delta:

  • A generator whose matcher is $( row ) sep? * and whose transcriber is one $( body )* indexes one test per invocation row.

Evidence/support delta:

  • 1 new spec example (Rust coverage 139/139, floor 138 → 139), 5 corpus cases.

Single acceptance criterion:

  • Boundary rows in a table read exposed; far or oracle-free rows do not; unsplittable layouts keep no_static_path.

Non-goals:

  • General macro evaluation, tables in another file, nested repetition, => rows, expr rows with no separator.

Support-tier Impact

  • none

Policy Impact

  • doc artifacts

Ledger or exception notes:

Proof

cargo test -p ripr --lib local_test_macros              # 12 tests, 5 new
cargo test -p ripr --test macro_generated_tests         # 7 tests, 2 new
cargo xtask verdict-corpus check                        # 503 cases, 5/503 false, spec coverage 139/139
cargo xtask precommit                                   # pass (with the local allowlist note above)

Result, failures, or skipped proof:

  • On main the four table rows read limited (checked with this change stashed); with it they read credited, credited, gap, gap. The => row stays limited.
  • Runtime labels: baseline passes 11/11; per owner, limit > width and limit + 1 >= width fail one table test each for the boundary tables and none for the far and smoke tables.
  • Full workspace tests and hosted lanes run at Ready.

Claim Boundary

  • May claim: itoa-shaped same-file tables register their rows as tests.
  • Must not claim: tables in another file, #[macro_use] imports, or any generator the expander refuses.

Rollback

  • Revert this PR; the cache bump makes old entries miss.

Spec-Test-Code Traceability

  • Spec: RIPR-SPEC-0117 example 8
  • Tests: local_test_macros.rs::tests::*table*, crates/ripr/tests/macro_generated_tests.rs::a_table_*
  • Code: crates/ripr/src/analysis/syntax/local_test_macros.rs
  • Golden outputs: fixtures/rust-verdict-corpus/expected/rows/macro-table-*.json

Static Language Check

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

CI Economics

n/a

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.

https://claude.ai/code/session_011vJe7tsVbzfQsHJiNujJgV


Generated by Claude Code

…table (#6925)

A table generator such as itoa's test! { name(value, expected) ... } was
refused as a repetition, so the code its tests call read as no_static_path.
The expander now splits a whole-matcher repetition into rows and expands
the body once per row; layouts it cannot split exactly index nothing.
RIPR-SPEC-0117 gains example 8 and five runtime-labeled corpus cases; the
seam cache moves to 1.88 / 0.94.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011vJe7tsVbzfQsHJiNujJgV
@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 21, 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 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 161 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: 332f07b4-e4c5-4ac3-a725-92bdc37a50cb
Commits

Reviewing files that changed from the base of the PR and between 6212bda and fc8836c.

Files selected for processing: 33
  • changelog.d/6925-macro-table-tests.md
  • crates/ripr/src/analysis/seam_cache.rs
  • crates/ripr/src/analysis/syntax/local_test_macros.rs
  • crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs
  • crates/ripr/tests/macro_generated_tests.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0117-rust-macro-reach-limitation.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/rust-verdict-corpus/cases/macro-table-arrow-rows-refused.diff
  • fixtures/rust-verdict-corpus/cases/macro-table-arrow-rows-refused.json
  • fixtures/rust-verdict-corpus/cases/macro-table-boundary-rows.diff
  • fixtures/rust-verdict-corpus/cases/macro-table-boundary-rows.json
  • fixtures/rust-verdict-corpus/cases/macro-table-far-rows.diff
  • fixtures/rust-verdict-corpus/cases/macro-table-far-rows.json
  • fixtures/rust-verdict-corpus/cases/macro-table-semicolon-rows.diff
  • fixtures/rust-verdict-corpus/cases/macro-table-semicolon-rows.json
  • fixtures/rust-verdict-corpus/cases/macro-table-smoke-rows.diff
  • fixtures/rust-verdict-corpus/cases/macro-table-smoke-rows.json
  • fixtures/rust-verdict-corpus/expected/rows/macro-table-arrow-rows-refused.json
  • fixtures/rust-verdict-corpus/expected/rows/macro-table-boundary-rows.json
  • fixtures/rust-verdict-corpus/expected/rows/macro-table-far-rows.json
  • fixtures/rust-verdict-corpus/expected/rows/macro-table-semicolon-rows.json
  • fixtures/rust-verdict-corpus/expected/rows/macro-table-smoke-rows.json
  • fixtures/rust-verdict-corpus/spec-coverage.toml
  • fixtures/rust-verdict-corpus/subjects/authored-macro-table.json
  • fixtures/rust-verdict-corpus/subjects/authored-macro-table/Cargo.toml
  • fixtures/rust-verdict-corpus/subjects/authored-macro-table/src/lib.rs.txt
  • fixtures/rust-verdict-corpus/subjects/authored-macro-table/tests/table.rs.txt
  • 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.

…byte cap, sliced argument text

A matcher's trailing comma is a literal the invocation must carry, and an
invocation's trailing comma does not fit a matcher without one; both
previously picked the wrong arm. A table invocation now refuses beyond 128
KiB of expansion text, and argument text is sliced from its parent rather
than copying the parent per argument, which made a table's cost rows times
its size.

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

@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

  • A table transcriber that uses anything other than a separator-free repetition is refused.

Verification questions

  • Confirm prior disposition is a single-body, separator-free $( body )* over the matcher's variables; the diff enforces this in expand_rows and is independently unit-tested.

Refuted

  • match_rows could leave position == elements.len() in a loop that returns rows.len() == MAX_REPETITION_ROWS but never breaks, panicking on >512-row tables; refuted because: Bounds check if rows.len() == MAX_REPETITION_ROWS { return None; } runs before each row, so the limit-guard path is unreachable past 512; the loop ends when position >= elements.len() after a row or short-circuits to None on layout error. match_rows returns Option<Vec<...>>, no panic path on benign input.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

@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

  • Spec example 8 wording suggests the four-table subject reads as boundary/semicolon credited and far/smoke gap, but corpus cases only enumerate five table owners with one refused case; the PR's main->HEAD mapping for the arrow owner (no_static_path) is not asserted in unit tests beyond golden rows. No behavior regression, but the 'acceptance delta' line requires runtime labels per owner; this PR relies on the corpus projection cargo xtask verdict-corpus check rather than a unit-level per-owner assertion.
  • Architecture posture report only.

Verification questions

  • Confirm accept #![...] (inner attribute) inside transcriber is not in tests; default behavior treats any non-#[test] / non-cfg(test) / cfg_attr as refusal via text_has_conditional_attribute.

Refuted

  • expansion uses argument single() via cloned text slice from parent - argument() previously copied and the new code references parent.text() directly; if the parser later mutates the parent text (none observed, but conceptually), the slice would dangle.; refuted because: ra_ap_syntax syntax nodes are immutable post-parse within a single expand_local_test_macros call; argument() returns owned Argument strings only. Slicing rather than copying avoids per-row allocation of the parent String.

Parked follow-ups

  • Smallest-complete-fix is preserved: spec example 8, allowlisted fragments (ident/literal/tt/block/expr), separators (, ; :), and one separator-free $(body)* are exactly the moved line in the spec. Out-of-scope shapes (=> row, nested repetition, expr without separator, unsupported fragment) all refuse without expansion, so this change does not generalize the macro expander.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 21, 2026 17:49
@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 marked this pull request as draft October 21, 2026 18:28
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 21, 2026 18:28
@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 1 potential issue.

Devin Review

@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 unit tests in local_test_macros.rs cover both the boundary-only rows() allocation change and the new bounded-shape behavior: one-test-per-row happy path, separators/groups/+ repetition, refusal cases (=> trailing separator, leftover token, wrong group arity, wrong delimiter, literal-as-ident, empty, nested repetition, expr-without-separator, unsupported fragment, repeated variable, => inside row, transcriber separator, transcriber extra item, unbound variable, body without test attribute), local-macro refusal (row+body), arm-selection ordering, trailing-comma agree, plus row and expansion size bounds at MAX_REPETITION_ROWS=512 and MAX_EXPANSION_BYTES=128KiB. The previously-passing refusal-test for whole-matcher repetition was removed consistent with the new support. Integration coverage in macro_generated_tests.rs asserts related_tests names surface and refused layouts add no test.
  • Confirm no cargo-test execution witness was attached to this packet; red/green claims rest on golden snapshots and the model's read of the unit tests. Gate the merge on a real focused test run.
  • Confirm goldens for macro-table-* cases were added alongside the source change; only the boundary/semicolon/far/smoke subjects are validated end-to-end by cargo xtask verdict-corpus check (503 cases, 5/503 false). The => rejected shape is asserted via golden row observed_verdict: limited rather than a per-shape run; not a regression but worth flagging as a verification gap.

Refuted

  • The table-expansion path (match_rows/expand_rows) belongs in its own helper file (e.g., local_test_macros_table.rs) to keep modules small.; refuted because: All repetition-table logic (~250 lines) lives in exactly one module alongside the existing simple-arm logic; substitute was refactored to a lookup closure so both arms share it; module cohesion is improved, not diluted.
  • Expression parsing could fabricate table rows by consuming an arbitrary prefix through a separator.; refuted because: This is an intentional conservative limitation documented by the PR and spec: separator-free expressions are unsupported, and ambiguous rows are refused rather than indexed.

Parked follow-ups

  • RIPR-SPEC-0117 example 8 wording claims four table rows read boundary/semicolon credited and far/smoke gap, but corpus cases only enumerate five table owners with one refused case — the mapping for arrow owner (no_static_path) is asserted via golden row only, not a per-owner unit test.

Evidence gaps

  • Verdict-corpus expected rows are golden snapshots: boundary/semicolon read 'credited', far 'gap', smoke 'gap', arrow-refused 'limited' (abstained because of =>). Full-checkout observation block in cases/*.json also reports 'credited', 'gap', 'limited' respectively. test-shape labels classify the four table families plus one refusal. These assertions can only red/green via the built corpus runner; absent the cargo-test receipt the rows are reasoned-about, not executed.
  • Model proof intent was rejected by deterministic validation.

… without one

Devin review on #9208: top_level_arguments drops a trailing comma, so
edge(10,) bound as ($v:expr) although rustc selects a later arm. Refuse it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011vJe7tsVbzfQsHJiNujJgV
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 21, 2026 19:23
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 21, 2026 19:23
@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

Copy link
Copy Markdown
Member Author

Status pass (2026-10-22 04:25 UTC): this PR is green-gated on dbc4b384a, but the branch head moved to 3b44678c9 afterwards, and the branch now conflicts with main (8+ files changed in both, including boundary_gap golden fixtures, seam_cache.rs, local_test_macros.rs, and macro_generated_tests.rs). The gate cannot produce a mergeable result on the current head until the conflict is repaired.

The golden-fixture conflicts need the fixture pipeline re-run rather than a textual pick — flagging for the owning lane rather than patching blind. Happy to help validate once a rebased head is pushed.

Cache generation moves to 1.91 / 0.98 over main's 1.90 / 0.97; corpus floor 145.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011vJe7tsVbzfQsHJiNujJgV
…ache 1.91

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

@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

  • Expression-row boundaries are approximated by scanning for a separator token rather than by Rust’s expression follow set.

Verification questions

  • Confirm the corpus acceptance mapping is asserted only through projection fixtures; direct integration coverage exists for one table shape but not every corpus owner/layout.

Refuted

  • The table path requires broad macro evaluation or may leak through unrelated sibling routes.; refuted because: The route is intentionally limited to a whole-matcher repetition and separator-free transcriber; unsupported layouts and other repetition forms return None, while the integration refusal test confirms no generated test is added.
  • The change needs generalized macro expansion or a shared arbitrary-repetition implementation.; refuted because: The implementation intentionally supports one bounded table grammar and refuses nested repetition, unsupported separators, leftovers, wrong arity, and ambiguous trailing commas; broad evaluation would exceed the stated scope.
  • The 512-row and 128-KiB limits leave an unbounded expansion path.; refuted because: The row count is checked before adding another row, and the expansion byte budget is checked after each emitted body, so the table route is bounded.

Evidence gaps

  • Executable proof on the current head is still required before accepting the PR's runtime-label and corpus claims.
  • Model proof intent was rejected by deterministic validation.
  • Executable proof for the changed Rust behavior is absent from this packet: cargo-test is only scheduled late and ripr failed with exit code 2.
  • Current-head executable evidence is absent because cargo-test is late and the ripr sensor failed with exit code 2.
  • Current-head executable evidence is still required before relying on the claimed red/green behavior because the ripr sensor failed and cargo-test remains scheduled.
  • Current executable proof is not available in the review packet: ripr failed and cargo-test is only scheduled-late.

Copy link
Copy Markdown
Member Author

Head 84c02b7 merges main again (spec-coverage floor 191→202 after #10117 and others). One reasoned edit: Rust missed_credit_ceiling 135→144. After merging main, verdict-corpus check counts 144 abstained rows with discriminating tests. This PR adds exactly one (macro-table-arrow-rows-refused, deliberately limited); the other 143 are main's, which landed after #9628 measured 135 (#10140 re-measures at 134 on an older base). The Python/Perl equality test failure (committed_ceilings_equal_the_blessed_missed_credit) is main's and is what #10140 fixes. Required check re-requested on this head.

Nested-separator bot finding: expression rows split only at top-level separator tokens (delimited groups are single token trees), and a fragment split at a top-level generic comma fails the expression parse and refuses. Pinned by an_expr_row_splits_only_at_top_level_separators.


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.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the accepted table grammar is intentionally bounded, but expression boundaries are inferred by the first recognized separator rather than Rust’s full expression follow set, so valid separator-like expressions may be refused or mis-split.
  • Confirm the PR’s public claim is limited to itoa-shaped same-file tables, while the implementation also accepts several literal separator/group layouts; documentation and tests define that boundary, but the corpus owner-to-verdict mapping is asserted through projections rather than direct integration assertions for every owner.
  • Confirm the documented expression-row boundary is narrower than Rust's expression follow set, so some valid rows may be refused or split at the wrong top-level separator.

Refuted

  • The expression-row separator approximation permits unsafe over-acceptance of rows containing nested or delimiter-like expression tokens.; refuted because: The implementation only splits at recognized top-level separator kinds and refuses fragments that do not parse or fit; the remaining uncertainty is coverage of Rust expression follow-set cases, not a demonstrated false expansion.
  • The 512-row and 128-KiB limits permit unbounded work or a panic.; refuted because: Rejected: the row cap is checked before accepting another row, expansion is rejected after exceeding the byte budget, and both boundaries have unit coverage.

Evidence gaps

  • Current-head focused execution has not yet established the claimed macro-table behavior.
  • Model proof intent was rejected by deterministic validation.
  • Current-head executable proof is not yet attached to this review packet.
  • Current-head executable proof for the new parser and end-to-end indexing remains absent: the ripr sensor failed with exit code 2 and cargo-test is only scheduled-late.

…n's equality test is red)

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

Copy link
Copy Markdown
Member Author

Head 84c02b7's only red step was Required Rust tests: committed_ceilings_equal_the_blessed_missed_credit (Python 33 vs blessed 30, Perl 21 vs 23). That is main's state and not this PR's; #10140 carries the fix and is still open. Ported its Perl 23 / Python 30 values into this branch so the equality test passes here (verified locally, with Rust 144 and TypeScript 23 also equal to the blessed counts). The edit no-ops once #10140 lands. Required check re-requested.


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.

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm top-level expression rows are split by scanning for the next configured separator, so valid expressions containing separator-like tokens at top level may be refused or split incorrectly.

Refuted

  • The 512-row and 128-KiB limits permit unbounded work or a 513th-row panic.; refuted because: The row cap is checked before adding another row, and expansion returns None as soon as text exceeds the byte budget; unit tests cover both limits.
  • The implementation should share or generalize the arbitrary-repetition expansion path.; refuted because: That would exceed the documented scope and introduce macro-evaluation semantics beyond the bounded table contract; the dedicated helpers contain the new behavior and reject unsupported forms.
  • The implementation must support arbitrary macro repetition to avoid false negatives.; refuted because: The PR explicitly defines one bounded same-file table grammar and refuses other repetition forms, which is consistent with the scope and avoids claiming general macro evaluation.

Parked follow-ups

  • Expression-row splitting is narrower than Rust's expression follow set; valid separator-like expressions may be conservatively refused rather than mis-indexed.

Evidence gaps

  • The table route can index a generated test without current-head executable proof because the ripr sensor failed and cargo-test is only scheduled.
  • Model proof intent was rejected by deterministic validation.
  • Current-head executable proof remains unavailable in this packet: the ripr sensor failed with exit code 2 and cargo-test is scheduled late rather than completed.
  • The PR's public table claim reaches existing generated-test indexing and cache consumers rather than stopping at syntax expansion.
  • Current-head executable proof is absent from this packet, so the behavioral acceptance mapping remains unverified here.

… / 0.108)

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

@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 expr rows use the next configured separator as their boundary rather than Rust's expression follow set, so a valid top-level separator-like token may be split or refused.

Refuted

  • The 512-row and 128-KiB limits permit unbounded work or a 513th-row panic.; refuted because: The row cap is checked before another row is added, expansion returns None after crossing the byte budget, and row_and_expansion_size_are_bounded exercises both limits.

Parked follow-ups

  • The accepted grammar is intentionally narrower than general Rust expression parsing, but the implementation refuses ambiguous fragments instead of splitting them into multiple rows.
  • Expression-row boundaries are approximated by the next top-level separator rather than Rust's complete expression follow set, so some valid forms may be refused or split differently.

Evidence gaps

  • Executable current-head proof is still trust-relevant because the ripr sensor failed with exit code 2 and cargo-test has not yet supplied its late receipt.
  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Review of record: head fc8836c

Checks on this head: Ripr Rust Small Result and Rust gates success; no failed checks; mergeable state clean; the only review thread (Devin, trailing row-group comma) resolved.

Angles (independent agent reviews of the production delta, plus bot reviews):

  • Correctness and edge cases: row splitting uses only top-level tokens, because delimited groups are single token trees. A fragment cut at a top-level generic comma fails the expression parse and refuses. Pinned by an_expr_row_splits_only_at_top_level_separators. A row group ending in , is refused so a later arm cannot be mis-credited (a_row_group_ending_in_a_comma_does_not_fit_a_group_without_one). Bounds: 512 rows, 128 KiB, both unit-covered.
  • Spec and contract: RIPR-SPEC-0117 example 8, five cases, floor 202. Observed rows credited, credited, gap, gap, limited. Seam cache 1.101 / 0.108 with all consumers (OUTPUT_SCHEMA, currentness tests, first-useful-action digests, boundary_gap CHANGELOG blessing). verdict-corpus check passes.
  • github-actions bot (four passes): the only open item is the parked follow-up that expression boundaries are narrower than Rust's full expression follow set, so some valid rows are refused rather than mis-split. That is conservative by design and is in the spec's stated limits. Its over-acceptance claims were refuted by the bot itself.

Findings and resolutions: Devin trailing-comma finding fixed. Contract reviewer's missing blessing entry added. Changelog fragment present. Rust missed_credit_ceiling 135→144 (this PR adds one; the rest is main's, see earlier comment) and Perl/Python ported from #10140.

Missing: Gemini and CodeRabbit reviews (quota). Not counted as clean.

Known limits, not blockers: substitute ignores macro hygiene (inherited); top_level_arguments is quadratic on very large comma counts, bounded by the 128 KiB cap.

Proceeding to protected squash merge on this exact head.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit f1a6349 into main Oct 25, 2026
51 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-c7grv2 branch October 25, 2026 02:08
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