Repository navigation
fix(rust): closure-adaptor table column requires the call inside its loop - #8560
Conversation
…loop (#8012) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 5 minutes. View limit details
Comment |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- argument_sequences uses match_indices(site) on test.body without skipping commented-out or string-literal occurrences of the same site text; if a developer comments a call that exactly matches &call.text, the count becomes 2 and the closure silently stops crediting. Unlikely but document or guard via masked-body search.
Refuted
- constant_table_column_around will still read off-loop rows when site text appears more than once; refuted because: Lane added an explicit uniqueness guard: found.next() returns Some => return None, so duplicate-site bodies bail out instead of reading a table.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
…cate-site negative Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Architecture boundary is correct (helper, not caller, owns loop-scope check) and smallest-complete-fix is achieved with one new param. Minor residual:
match_indices(site)skips comment/string masking, so commented-out identical site text silently refuses credit rather than masking.
Verification questions
- Confirm match_indices(site) on test.body does not skip comments or string literals, so a developer who retypes the call text inside a comment inflates the site count and the closure loses its credit silently.
- Confirm constant_table_column_around is called with
atbyte offset from match_indices; spec #8012 acceptance is met only if that helper scopes to the enclosing loop body. - Confirm argument_sequences uses test.body.match_indices(site) on the raw, unmasked body; commented-out or string-literal occurrences of identical text inflate the count and silently stop crediting.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0193fZVBGjXWpxEYFUzBGCYt
Requested by Steven · project thread
Closes #8012
argument_sequences(RIPR-SPEC-0265) read a constant-row table column withconstant_table_column, so a call after the loop naming the same identifier (e.g. a moduleconst x) was credited with the loop's rows. It now takes the call/assertionsitetext, requires it to occur exactly once in the test body, and usesconstant_table_column_around(as #7972 did for short-circuit). Callers inclosure_adaptor.rs,boundary_pairing.rs,activation.rspass their site.Proof: new test
table_column_is_read_only_for_a_call_inside_its_loop(off-loop refuses, in-loop credits);cargo test -p ripr --lib classify1407 passed;cargo xtask precommitexit 0. Hosted checks not yet run.Source-of-truth Links
Governing issue or accepted claim: #8012
Acceptance delta (one sentence): A constant-row table column is credited only to a call that sits inside its own loop, not to a later call naming the same identifier.
Generated by Claude Code