Skip to content

fix(rust): credit literal byte-length boundary call rows (#9637) - #10378

Merged
EffortlessSteven merged 14 commits into
mainfrom
claude/9637-literal-byte-len
Oct 26, 2026
Merged

EffortlessSteven merged 14 commits into
mainfrom
claude/9637-literal-byte-len

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Successor to #9715, rebuilt on current main. Credits tokens-fits-binding-predicate: an immutable string byte-length local returned as local <= width, when the literal test rows separate the off-by-one mutants. #9715's branch was far behind main, untouched for hours, and had no successor lane. I could not and did not push to its branch.

What changed relative to #9715's head 85d6197: the six commits are squashed onto main and reconciled with main's LocatedValueFact/includes_external_docs_with APIs and with #9731's literal folding. The text.chars().count() control in the integration test now asserts not-exposed and no byte-length fact. The route requires probe.before to be exactly <text>.len(), requires a straight-line test call, and bounds the rows (64) and literal size (512 bytes). infection_evidence_for_owner takes the owner and its boundary as one OwnerInputs argument. With #10317 landed, the missed-credit baseline is the per-row fixtures/rust-verdict-corpus/missed-credit.toml, and this PR deletes the tokens-fits-binding-predicate entry because that row now credits.

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; bounded implementation of the accepted #9637 repair route.
Spec: RIPR-SPEC-0157 and RIPR-SPEC-0158
ADR: none
Plan item: literal byte-length leaf of #9637
Governing issue or accepted claim: #9637 (parent #9619); partial, #9637 stays open
Acceptance delta (one sentence): Credit the literal string-byte-length boundary only with the same source call's admitted owner-return oracle, keeping wrong-row, wrong-owner, distant-input and unsupported-expression results conservative.

Candidate Relationships

Candidate branch: claude/9637-literal-byte-len
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): replaces #9715 (stale draft; its prerequisite #9628 has merged)
Acceptance retained from a replaced candidate (if any): #9715's design, tests and review evidence for the production source
Accepted winner and losing candidate disposition (when decided): this is the single live candidate; #9715 to be closed as superseded once this merges

Proof

  • cargo test -p ripr --test literal_length_boundary passed on the pre-merge head; cargo xtask precommit passes on 7549eb8 plus the OwnerInputs commit (clippy was the only failure on 7549eb8, from main's new argument plus this PR's).
  • cargo xtask verdict-corpus check --language rust: 676 cases, false verdicts 3/676, no missed-credit note, with the entry removed.
  • A sweep cleared efe39a0 for false credit; a fresh agent review of the current head is on this PR.
  • Not run locally: full workspace tests, hosted qualification. The 64-row and 512-byte limit tests are in test(rust): pin byte-length negatives and its row and token budgets (#9637) #10430.

Claim boundary: only the byte-length leaf. Modulo, consts and other computed operands in #9637 are unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU

Successor to #9715, rebuilt on current main (its branch was 459 commits behind
and its owner had not touched it for 7 hours). The six candidate commits are
squashed; main's ValueFact/reach APIs and #9731 literal folding are reconciled,
and the chars().count() control now asserts the #9731 path instead of unknown.
Rust missed_credit_ceiling 148 -> 147.

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

Copy link
Copy Markdown

Review in Change Stack →

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 6 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 186 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: 5e162d9d-f5c1-45a2-baba-73b71fc0ee98
Commits

Reviewing files that changed from the base of the PR and between 7549eb8 and 77fef21.

Files selected for processing: 15
  • .ripr/traceability.toml
  • changelog.d/9637-literal-byte-length-boundary.md
  • crates/ripr/src/analysis/classifier/evidence.rs
  • crates/ripr/src/analysis/classify/activation.rs
  • crates/ripr/src/analysis/classify/infection.rs
  • crates/ripr/src/analysis/classify/literal_length_boundary.rs
  • crates/ripr/src/analysis/classify/mod.rs
  • crates/ripr/src/analysis/classify/owner_pin.rs
  • crates/ripr/src/analysis/language/rust/mod.rs
  • crates/ripr/src/analysis/language/rust/probes.rs
  • crates/ripr/tests/literal_length_boundary.rs
  • docs/specs/RIPR-SPEC-0157-changed-binding-predicate-relation.md
  • docs/specs/RIPR-SPEC-0158-bounded-value-transfer.md
  • fixtures/rust-verdict-corpus/expected/rows/tokens-fits-binding-predicate.json
  • fixtures/rust-verdict-corpus/missed-credit.toml

No actionable comments were generated in the recent review.

Recent review info
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: 1d2a2587-f2d1-47dc-a873-8d02e478f878
Commits

Reviewing files that changed from the base of the PR and between 2e954f8 and 7549eb8.

Files selected for processing: 15
  • .ripr/traceability.toml
  • changelog.d/9637-literal-byte-length-boundary.md
  • crates/ripr/src/analysis/classifier/evidence.rs
  • crates/ripr/src/analysis/classify/activation.rs
  • crates/ripr/src/analysis/classify/infection.rs
  • crates/ripr/src/analysis/classify/literal_length_boundary.rs
  • crates/ripr/src/analysis/classify/mod.rs
  • crates/ripr/src/analysis/classify/owner_pin.rs
  • crates/ripr/src/analysis/language/rust/mod.rs
  • crates/ripr/src/analysis/language/rust/probes.rs
  • crates/ripr/tests/literal_length_boundary.rs
  • docs/specs/RIPR-SPEC-0157-changed-binding-predicate-relation.md
  • docs/specs/RIPR-SPEC-0158-bounded-value-transfer.md
  • fixtures/rust-verdict-corpus/expected/rows/tokens-fits-binding-predicate.json
  • fixtures/rust-verdict-corpus/missed-credit.toml
Files with no reviewable changes: 1
  • fixtures/rust-verdict-corpus/missed-credit.toml

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Summary by CodeRabbit

  • New Features
    • Diff analysis can now recognize supported comparisons between a string’s UTF-8 byte length and a numeric width, providing exposure credit when the matching test evidence is present.
    • Analysis better distinguishes established input evidence from unresolved operand values, preserving disclosure when evidence is insufficient.
  • Documentation
    • Added guidance on supported byte-length comparisons, evidence requirements, and cases that remain unsupported.

Walkthrough

This change adds bounded analysis for predicates that replace text.len() with text.as_bytes().len(). Admitted literal calls can provide infection and pairing evidence. The change also updates unresolved-value disclosure, integration coverage, specifications, and the Rust verdict corpus.

Changes

Literal Byte-Length Analysis

Layer / File(s) Summary
Recognize bounded byte-length predicates
crates/ripr/src/analysis/classify/literal_length_boundary.rs, crates/ripr/src/analysis/classify/owner_pin.rs, crates/ripr/src/analysis/classify/mod.rs
Adds checks for the supported owner shape, literal call inputs, test-body placement, assertion matching, and unshadowed primitive types.
Connect boundary evidence to classification
crates/ripr/src/analysis/classify/activation.rs, crates/ripr/src/analysis/classifier/evidence.rs, crates/ripr/src/analysis/classify/infection.rs, crates/ripr/src/analysis/language/rust/probes.rs, crates/ripr/src/analysis/language/rust/mod.rs
Passes boundary data through evidence gathering and infection analysis. Matching observed byte-length evidence can suppress unresolved-value disclosure; infection evidence alone does not.
Verify and document bounded transfer
crates/ripr/tests/literal_length_boundary.rs, docs/specs/RIPR-SPEC-0157-changed-binding-predicate-relation.md, docs/specs/RIPR-SPEC-0158-bounded-value-transfer.md, fixtures/rust-verdict-corpus/*, .ripr/traceability.toml, changelog.d/9637-literal-byte-length-boundary.md
Adds integration cases for supported and rejected inputs and owners. Updates the specifications, expected verdict, missed-credit entry, traceability manifest, and changelog.

Priority: Normal

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant BoundaryTest as literal_length_boundary test
  participant WorkspaceCheck as check_workspace
  participant EvidenceGather as ClassifiedProbeEvidence::gather
  participant Boundary as LiteralLengthBoundary
  BoundaryTest->>WorkspaceCheck: Submit edited workspace
  WorkspaceCheck->>EvidenceGather: Gather probe evidence
  EvidenceGather->>Boundary: Refine boundary and check literal rows
  Boundary-->>EvidenceGather: Return infection and pairing evidence
  EvidenceGather-->>BoundaryTest: Return predicate finding
Loading

Possibly related issues

  • Issue 9637: The change implements the literal byte-length recognition described in the issue.
  • Issue 7490: The change updates one Rust missed-credit case, but does not complete the release qualification tracked by the issue.
Merge Risk: Minimal · up to 7549e

This change narrowly extends byte-length boundary analysis, crediting a row only under strict owner-shape, straight-line-test, and plain-.len() conditions. Unsupported or ambiguous inputs keep the conservative reading. No concrete merge-blocking risk was identified. The changed-code test results are the author's own report, and a new head needs its own qualification run.

Pre-merge checks: Passed 3 · Failed 1 · Inconclusive 1

Failed Failed checks: 1 warning · 1 inconclusive

Check name Status Explanation Resolution
Description check Warning The description covers the summary, source boundary, source links, candidate relationship, proof, and claim boundary. It omits several required template sections, including Scope, Scope Classification… Add the missing template sections. Complete each applicable checkbox and provide the required details. Use n/a for CI Economics if the PR does not change CI behavior. Document rollback steps, scope and non-goals, traceability, engineering…
Docstring Coverage Inconclusive Docstring coverage is 21.05% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 38 functions across 8 files. (6 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: crediting literal byte-length boundary call rows for Rust.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description covers the summary, source boundary, source links, candidate relationship, proof, and claim boundary. It omits several required template sections, including Scope, Scope Classification, Support-tier Impact, Policy Impact, Rollback, Spec-Test-Code Traceability, Static Language Check, CI Economics, Engineering Check, and Gates. It also does not provide the required checkbox or n/a status for these sections.

Resolution

Add the missing template sections. Complete each applicable checkbox and provide the required details. Use n/a for CI Economics if the PR does not change CI behavior. Document rollback steps, scope and non-goals, traceability, engineering checks, and gate results, including skipped commands and reasons.

Full details: Docstring Coverage

Explanation

Docstring coverage is 21.05% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 38 functions across 8 files. (6 skipped: 5 unsupported, 1 too large.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit counts bytes in a string,
And checks which literal calls fit.
The bounded rows carry their evidence,
While distant ones stay unknown.
The test burrow records each case,
Then hops away, pleased with the diff.

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

…test statement (#9637)

Review finding: an assertion under `if false { .. }` still supplied a row and
read exposed. Adds the guard, a paired negative test (fails without it), and
the spec sentence.

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

Copy link
Copy Markdown
Member Author

Review of record (partial, not final-merge clearance) for head 3f81f6a41d, then repaired at 4b227466f3.

Angles (two independent read-only reviewers, no cargo run by them; I verified their leads by test):

  • Correctness / false credit: no verified false-credit bug in decoding, shadowing, mutability or owner-reference completeness. Two leads checked empirically: (1) a lone equal row fits("abc", 3) reads InfectionUnknown, so no gap; (2) an assertion under if false { .. } DID supply a row and read Exposed.
  • Tests / spec / contract: traceability, spec 0157/0158 and the changelog fragment match behavior; fixtures show only the intended change; ceiling count 146 matched at that time (now 142 on main 143). Weakness noted: several negatives assert only != Exposed, and the 64-row / 512-byte limits have no test.

Resolution: straight_line_call now admits a row only from a direct statement of a test body with no branch, loop, closure, ? or early exit. New test a_single_equal_row_or_a_conditionally_run_row_is_not_credited fails with the guard stubbed out (negative experiment run, Exposed on the if false row) and passes with it. Spec 0158 gained the matching sentence.

Not done: the != Exposed negatives were not tightened and the 64-row / 512-byte limits are still untested; neither is a false-credit path, so I'm leaving them for a follow-up rather than widening this PR.

Local proof on the repaired code: literal_length_boundary 12/12, cargo xtask precommit exit 0, rust corpus check green at 142 with false verdicts unchanged (3/668). Hosted CI not run; merge-ready not applied (queued behind other ceiling PRs). CodeRabbit and Gemini only posted quota notices, so provider review is missing, not clean.


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.

Confirmed findings

  • fixtures/binding_value_family_matrix/expected/check.json:45 — Avoid globally dropping binding_predicate_non_claim whenever infection is Yes. These goldens now remove the non-claim disclosure from findings whose operands are not resolved by the literal byte-length route, weakening the documented distinction between an unresolved operand and a bounded resolved one. Restrict the suppression to findings carrying the typed byte-length boundary and regenerate the matrix from that invariant.

Verification questions

  • Confirm the new route admits only a closed free-function shape and requires exact literal arguments, but its owner-reference count is used as a completeness proxy for hidden aliases and macro-derived calls.
  • Confirm the documented 64-row and 512-byte limits, plus straight-line detection of common branch/loop/closure forms, have no direct regression tests.
  • Confirm the unresolved-value disclosure is suppressed for every infection-Yes finding, even when the infection authority came from a different mechanism than this new byte-length boundary.

Refuted

  • The new route could hide an owner call through a hidden alias or macro and thereby create false credit.; refuted because: The route refuses the witness when owner-reference accounting does not match admitted rows; the seeded specification explicitly accepts residual macro-expansion incompleteness, so this is a bounded limitation rather than a demonstrated false credit.
  • The literal byte-length row may capture a stale or resizable backing-store length.; refuted because: The analyzed shape accepts only an immutable Rust string literal, computes its UTF-8 byte length, and compares that bounded value with a decimal width. There is no ArrayBuffer, TypedArray, allocation, resize, detach, or transfer path in this Rust change.
  • The PR introduces a JS-backed memory handoff across worker, async, GC, detach, or transfer boundaries.; refuted because: No JavaScript/TypeScript or worker-transfer code changed; the implementation is a synchronous Rust analyzer that retains typed test-call rows and does not perform GC, detach, ownership-transfer, or asynchronous handoff operations.
  • The new byte-length parser could admit malicious string literals or call rows causing OOB, UAF, type confusion, or unbounded processing.; refuted because: The changed path uses AST-owned values, checked optionals, explicit row/byte caps, and conservative owner/primitive/reference gates; it does not dereference raw memory or perform unchecked indexing in the reviewed implementation.
  • A related helper could credibly broaden this change to chars().count(), computed widths, aliases, or other string-length APIs.; refuted because: The accepted claim boundary is specifically one literal-owned byte-length operand; the implementation deliberately rejects unsupported expressions and the tests preserve conservative readings.
  • Adding a synthetic owner-return flow sink broadly weakens the owner/completeness gate and could falsely credit unrelated changed bindings.; refuted because: The sink is admitted only after the closed owner AST proves one exact returned comparison, and it is consumed through the dedicated typed boundary route rather than as a generic equality fact.
  • The new path introduces an unsafe lifetime or aliasing contract in production Rust code.; refuted because: The changed production module only parses owned Rust source strings and owns cloned PathBuf/String metadata. It introduces no native pointer, slice, unsafe block, or new borrow across calls; unsafe-review reported no new gaps.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

False-credit review (head as of 2026-10-25 ~16:00Z, read-only; not executed). BLOCKING (narrow): the credit ignores what the edit replaced.

boundary() fixes the new text (let end = text.as_bytes().len(); end <= width, via probe.after) and then infection/pairs credit any row with byte_length == width. Nothing reads probe.before (the only before in the file is an unrelated brace check), so the row is declared a discriminator for whatever the old initializer was. An equality row only separates old from new when the old value differs from byte_length at that row.

Repro, same retained subject with a different old line:

 pub fn fits(text: &str, width: usize) -> bool {
-    let end = text.chars().count();
+    let end = text.as_bytes().len();
     end <= width
 }

with the retained ASCII test row fits("abc", 3) and an exact assert!(fits("abc", 3)). Old: 3 <= 3 true. New: 3 <= 3 true. The mutant is invisible to every row the gate can read (all literals are ASCII-or-not, but byte_length == width is the only thing checked), yet the finding is exposed. A row that separates the edit needs a non-ASCII literal (chars().count() != len()), and the gate never asks for one. Same hole for text.len() - 1 → text.as_bytes().len(): the equality row gives true/true.

The credited retained case (text.len() → text.as_bytes().len()) is a no-op edit, so it passes whatever the gate does, which is why the fixture doesn't expose this.

Fix options: require probe.before to be exactly <text>.len() (the one edit the byte-length row model is valid for) and withhold otherwise; or evaluate the old initializer on the literal row (chars().count(), len() ± k) and credit only when old and new predicates differ on some row. A trap row with chars().count() → as_bytes().len() on "abc", 3 would pin it.


Generated by Claude Code

…is plain len() (#9637)

Sweep finding: the gate read only probe.after, so chars().count() -> as_bytes().len()
on fits("abc", 3) was credited exposed although both sides return true. Requires
before == text.len(), adds the negative (fails without the check), narrows the
unresolved-disclosure suppression to findings carrying this route's own derived-local
fact, and restores the two binding goldens to main.

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

Copy link
Copy Markdown
Member Author

Scoped queue coordination: your comment6399091178 places this candidate behind other ceiling PRs, but its exact position is not established in the public handoffs. #10317's migration47f77dd0 just passed required40207084965 and was invalidated by later Rust/Python scalar changes again. Requests6400148124 (#10275) and6400149057 (#10381) ask the retained queue owners to give the migration the next single integration/qualification/landing attempt, then release on landing or explicit abort.

Please confirm this candidate's queued position and whether its owner agrees to defer the ceiling-changing landing through that one attempt, or identify a concrete priority repair. This is not a global freeze and silence is not agreement. Keep the existing proof/ownership reconciliation moving; do not bypass the unresolved initializer-discrimination review or infer replacement acceptance merely to clear the queue. No new writer, qualification dispatch or lifecycle change is requested.

Copy link
Copy Markdown
Member Author

Queue position and agreement: this PR is entry 5 in /mnt/project-files/merge-queue/rust-ceiling-queue.md, behind #10291, #10275, #10381, #9890 and #10308 (the file's own ordering). It is a Draft with no merge-ready label and no qualification requested, so it holds no integration slot. I agree to defer any ceiling-changing landing through the one #10317 migration attempt, and I claim no priority repair.

On the unresolved initializer-discrimination review: the gate now requires the edit's old initializer to be plain text.len() (committed locally, precommit running; push follows). chars().count() -> as_bytes().len() no longer receives a row. The new negative an_old_initializer_other_than_plain_len_is_not_assumed_equivalent read Exposed with the check removed and passes with it. Replacement acceptance of #9715 is not inferred; both stay open.


Generated by Claude Code

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

Copy link
Copy Markdown
Member Author

Pushed efe39a0bab (includes the sweep repair, plus main merged; ceiling now 141 on main 142).

Fixes against the blocking findings:

  • Old initializer not read (sweep): the gate now requires probe.before == <text>.len(). chars().count(), text.trim().len() and text.len() + 0 as the old side get no row. New negative an_old_initializer_other_than_plain_len_is_not_assumed_equivalent: with the check removed, chars().count() -> as_bytes().len() reads Exposed (reproduced), with it the test passes. Spec 0158 states the rule.
  • Non-claim suppression too broad (github-actions review): the unresolved/non-claim disclosure is dropped only for findings that carry this route's own derived-local fact, not for every infection-Yes finding. The two binding goldens are back to main's content (no drift from this PR).
  • Straight-line, 64-row and 512-byte limits: the straight-line guard and its negative landed earlier; the exact-class pins and limit tests are staged as a stacked follow-up.

Local on this head: literal_length_boundary 13/13, cargo xtask precommit exit 0 (before the main merge; the merge only moved the ceiling line), Rust corpus check green at 141, false verdicts 3/675. Still Draft, no merge-ready; sweep re-check requested.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Re-check at efe39a0: resolved. boundary() now refuses unless compact(probe.before) == "<text>.len()", so chars().count() → as_bytes().len() and len() - 1 → as_bytes().len() no longer reach the row model; only the known no-op rewrite does. No further false-credit finding on this PR from my side.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

The agreed migration boundary is now reached: #10317 landed at18:36:13UTC as e7d8d2d after required40218461054 passed on bed5b92. This releases this candidate's migration-specific deferral; #9746's separate time cap had already expired at18:30. The shared #10275/#10381 owner can apply this notice to both candidates.

Continue under the existing owner and queue order, not as a simultaneous qualification wave. Integrate the landed per-language missed-credit acceptance files, preserve current scope/example locks, and regenerate exact accepted-versus-blessed identities for your actual composed change. Remove only the entries your proven credit improvement retires; do not restore numeric ceilings or treat old counts/green runs as proof of a new head. Re-review changed commits and preserve unresolved proof/custody limitations before one required qualification. No protection bypass, competing writer or new release/deployment is authorized by this coordination.

…fy too_many_arguments (#9637)

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

@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 documented 64-row and 512-byte limits are not directly exercised by the new integration test.
  • Confirm the 64-row and 512-byte resource bounds are specified but lack direct regression tests.

Refuted

  • The route might evaluate or retain unsafe borrowed data while computing a byte-length witness.; refuted because: String literals are parsed and decoded into owned Strings; byte length is computed from that owned value. The owner signature only reads an immutable &str, and no unsafe block, raw pointer, lifetime extension, or retained reference is introduced.
  • A literal row could observe a resized, detached, transferred, or stale backing-store view rather than the current literal contents.; refuted because: This diff contains no active-view, buffer, typed-array, resize, detach, or transfer machinery; Rust string literals are decoded into owned String values and their byte lengths are computed locally.
  • Literal-length evidence crosses no worker, async, GC, detach, or transfer boundary; all data remains ordinary Rust-owned values used synchronously.
  • The new literal-length row model may create a worker-handoff, async, GC, detach, or transfer-boundary defect.; refuted because: The changed code introduces no JavaScript runtime, worker, executor, thread, asynchronous task, GC-sensitive handle, detached resource, or ownership transfer. Typed rows are retained in owned Rust structures and synchronously inspected by the classifier.
  • The unresolved-value disclosure is removed globally for infection-Yes findings.; refuted because: Rejected: suppression requires a matching binding-scoped derived literal-byte-length fact, while a unit test verifies another infection mechanism retains the disclosure.
  • The route needs to be integrated into the general evaluator or persistent fact pipeline for correctness.; refuted because: The route is explicitly a diff-only refinement: existing activation, propagation, owner pinning, and oracle admission remain authoritative, while the new module supplies only the bounded typed rows and owner-return sink.

Parked follow-ups

  • Owner-reference completeness and straight-line admission are conservative but still inherit documented reach limitations for generated or unindexed calls.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

assert!(true || !fits("abcd", 3)) was credited because the row sits in a
straight-line body; a call right of || or && in its statement may never run.
Also moves OwnerInputs above the doc comment it had split, and pins the
short-circuit and same-named nested fn shapes.

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

@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 specified 64-row and 512-byte limits lack direct regression coverage, leaving an explicit contract boundary verified by implementation rather than exercised tests.

Verification questions

  • Confirm the documented resource bounds are present in source, but the changed integration test does not directly exercise the 64-row or 512-byte limits; this is a scoped evidence gap rather than a demonstrated false-credit bug.
  • Confirm the documented 64-row and 512-byte bounds are implemented, but the integration suite does not directly exercise either boundary.
  • Confirm the documented resource limits are implemented but not directly exercised by the added integration test.
  • Confirm the specification states direct 64-row and 512-byte limits, but the new integration test has no direct boundary-size regression cases.
  • Confirm the documented MAX_ROWS and MAX_LITERAL_BYTES boundaries lack direct regression tests.

Refuted

  • The literal witness could be invalidated by resizing, detaching, transferring, or otherwise changing a backing-store view.; refuted because: The route does not retain or mutate storage. Rust string literals are decoded into owned String values and byte lengths are computed synchronously from those immutable values.
  • The unresolved-value disclosure is globally removed for infection-Yes findings.; refuted because: The suppression checks for the route-specific derived-local fact, and the added unit test preserves disclosure for infection established by another mechanism.
  • The route creates an exploitable denial-of-service through attacker-controlled input or unbounded work.; refuted because: The source explicitly caps admitted rows at 64 and each literal's source text at 512 bytes, and parses a closed function shape and literal arguments only.
  • The byte-length route can retain a borrowed literal backing-store view across an async or worker boundary.; refuted because: No such boundary exists in the changed path: parser-produced string values are owned and length comparison is synchronous.

Evidence gaps

  • The repository's own rip r sensor failed, leaving the analyzer's integrated self-check unavailable in this packet.
  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Head efa2cb3 fixes one real false credit found by a fresh agent review of 6651060: assert!(true || !fits("abcd", 3)) was credited, because the row sits in a straight-line body even though the call is short-circuited. A call to the right of || or && in its own statement now supplies no row (SPEC-0158 sentence added). short_circuited_attributed_or_shadowed_rows_are_not_credited pins it, along with a same-named nested fn after the call; both stay out of Exposed. The same review found the OwnerInputs refactor behaviour-neutral and the missed-credit.toml removal consistent with the now-credited row.

Local evidence on the pre-push head: literal_length_boundary 14/14, verdict-corpus check --language rust 3/676 false with no note, cargo xtask precommit exit 0. The 64-row and 512-byte limit tests the latest bot review asks for are in #10430, which retargets to main right after this merges.

Holding merge-ready: main currently fails to compile (the mocks argument break from #10456 and #10488, fix of record #10506). A qualification run on a composed tree with that break would only fail. I will merge main after #10506 lands, then mark Ready and label.


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.

Confirmed findings

  • Add focused regression cases for both stated resource limits, including acceptance at the boundary and rejection just beyond it. This is a scoped evidence gap, not a demonstrated false-credit defect.
  • The PR claims bounded behavior for 64 rows and 512 literal bytes, but neither limit has direct regression coverage in the changed integration target; the boundary is therefore verified by inspection rather than an executable contract test.
  • Documented resource bounds are implemented but not directly exercised, leaving off-by-one/resource-limit regressions unguarded.

Verification questions

  • Confirm the 64-row and 512-byte contract limits are implemented but lack direct regression tests, leaving two explicit resource boundaries unverified.
  • Confirm resource bounds reduce attacker-controlled row and literal size but are not directly boundary-tested in this PR.
  • Confirm the route admits rows from exact literal calls but relies on reference counting as a completeness proxy; macro-expanded or otherwise hidden owner calls remain outside the proof boundary.
  • Confirm the 64-row and 512-byte contract limits remain a scoped test gap.
  • Confirm the stated 64-row and 512-byte resource limits lack direct regression coverage in the changed integration test.

Test proof

  • Focused HEAD proof failed (exit 101): cargo test --locked --package ripr --test agent_command_journey. This is a current failure, not a red/green witness.

Evidence gaps

  • A late cargo-test receipt is pending; without it, the architectural integration claim is not fully witnessed on the composed head.
  • The route's resource limits are specified but not directly exercised by the added integration test.
  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Review of record, head 34137a7c38d74a3d5585f6540cccc9cbd9f5e52b (efa2cb3 plus a clean merge of main at 9bdfcc4, which carries the #10506 compile repair).

Angles: correctness (infection route, short-circuit guard), tests (stimulus and oracle grip), spec (RIPR-SPEC-0158), perf and security.

Findings and resolutions:

  • if false row credited: fixed and pinned (earlier head).
  • assert!(true || !fits(..)) credited: fixed with the short-circuit guard in straight_line_call; short_circuited_attributed_or_shadowed_rows_are_not_credited pins it. Spec sentence added.
  • clippy too_many_arguments: resolved by OwnerInputs, no allow attributes.
  • No unresolved review threads. The github-actions bot's note that the 64-row and 512-byte limits lack boundary tests is correct and is not a false-credit defect. That coverage is owned by test(rust): pin byte-length negatives and its row and token budgets (#9637) #10430, which retargets to main after this lands. Its other note (a failed agent_command_journey run) was main's compile break, not this diff.

Proof on this head: cargo xtask verdict-corpus check --language rust exit 0 (oracle accuracy 44/44, overclaim 0, traps credited 0/43); cargo xtask precommit exit 0.

Not established: hosted Ripr Rust Small Result on this head. Marking Ready and requesting it now.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 26, 2026 02:14
@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

…fore a literal-length row runs (#9637)

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

Copy link
Copy Markdown
Member Author

Review of record refreshed for head 77fef21183b03e84b365960be8fdf058e9ba603f. This supersedes the 34137a7 record for the production change only; the earlier angles and findings stand.

New since 34137a7: Devin's finding that an earlier assert!(false) or diverging statement still let a literal-length row be credited is valid and fixed (reply posted, thread resolved). Guard and discriminating test are in this head; the test fails without the guard and passes with it. The guard is lexical, so a diverging statement inside a nested block is not recognised, but blocks already refuse the row.

Proof on this head: cargo test -p ripr --test literal_length_boundary 14/14; cargo xtask precommit exit 0. The Rust verdict-corpus check ran on 34137a7 (exit 0); this head changes only the admission guard and its test. Hosted Ripr Rust Small Result has been requested on this head and is not yet established.


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.

Verification questions

  • Confirm the route's owner-reference count does not cover an independently maintained sibling route for literal byte length.
  • Confirm resource limits are specified and implemented, but the changed integration target does not directly exercise acceptance at 64 rows or 512 bytes and rejection just beyond either limit.
  • Confirm resource-limit contracts are not directly exercised by the changed integration test; this is coverage debt, not a demonstrated routing defect.
  • Confirm the implementation and specification state 64-row and 512-byte limits, but the changed integration target does not directly test either boundary.
  • Confirm the stated 64-row and 512-byte resource limits still lack direct acceptance/rejection boundary tests.

Refuted

  • This Rust analyzer change necessarily introduces a JS-backed worker/async memory boundary.; refuted because: The PR changes Rust source, Rust tests, Rust specs, and fixtures only; there is no JavaScript/TypeScript source, JS runtime API, worker implementation, or async boundary in the diff.
  • The active-view concerns involving ArrayBuffer/TypedArray semantics apply to this route.; refuted because: This is a Rust string-literal analysis route, not a JavaScript buffer or typed-array implementation; the relevant concern is only whether owned decoded text can change, which it cannot after capture.
  • The implementation should be generalized into a sibling-path helper for computed or aliased string-length owners.; refuted because: The route explicitly defines a narrow byte-length leaf, while the PR body and SPEC-0158 exclude computed values, aliases, macros, and unsupported expressions from this authority; broadening would exceed the accepted claim.
  • Could hidden aliases, macro-derived calls, or external documentation create a false exposure credit and therefore a security-relevant misclassification?; refuted because: The route requires exact literal arguments, owner pinning, complete explicit owner-reference accounting, primitive-name authority, and refuses external documentation or unsupported forms. Existing thread evidence also records prior false-credit findings as fixed and rechecked.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Parked follow-ups

  • The byte-length route is a closed owner-specific analysis rather than a reusable runtime helper; aliases, computed values, macros, foreign owners, and unsupported owner bodies deliberately remain conservative.
  • Generated or macro-expanded calls are not proven complete by this route; the spec explicitly preserves that limitation.

@EffortlessSteven
EffortlessSteven merged commit 802092e into main Oct 26, 2026
54 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/9637-literal-byte-len branch October 26, 2026 03:39
EffortlessSteven pushed a commit that referenced this pull request Oct 26, 2026
…ken budgets (#9637)

Follow-up to #10378's review: the 'not exposed' negatives now assert their
exact class, and the 64-row and 512-byte limits are tested at and one past
the boundary (both fail when the constants are raised by one).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU
EffortlessSteven added a commit that referenced this pull request Oct 26, 2026
…ken budgets (#9637) (#10430)

Follow-up to #10378's review: the 'not exposed' negatives now assert their
exact class, and the 64-row and 512-byte limits are tested at and one past
the boundary (both fail when the constants are raised by one).


Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU

Co-authored-by: Claude <noreply@anthropic.com>
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