Skip to content

fix(rust): probe and observe changed field assignments (RIPR-SPEC-0228, #6485) - #8061

Merged
EffortlessSteven merged 5 commits into
mainfrom
claude/project-thread-1foyxp
Oct 15, 2026
Merged

EffortlessSteven merged 5 commits into
mainfrom
claude/project-thread-1foyxp

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

https://claude.ai/code/session_01THmnTJYPr5V99aEDNdTy86

Before: a changed Rust field assignment (self.count += 1, self.state = JobState::Done) got no probe and always read static_unknown, whether a test asserted the field, read it some other way, or read nothing.

After: a single-line self.<field> assignment whose right-hand side is plain data gets a diff-scope field_construction probe:

  • Credited (exposed): an assert_eq! reads the whole field after the owner call, on the binding that call used, directly or through a plain getter.
  • Gap (reachable_unrevealed): no related test asserts anything.
  • Still static_unknown: every other reading.

Six Rust corpus cases leave abstention, and each lands on its ideal verdict:

Case Truth Before After
accounts-balance-add discriminated limited credited
grid-delete-exact discriminated limited credited
spec0228-field-write-direct-read discriminated limited credited
spec0228-field-write-enum-variant discriminated limited credited
spec0228-field-write-getter-read discriminated limited credited
spec0228-field-write-no-read not_discriminated limited gap

No other row moves. cargo xtask verdict-corpus check on this base: 24/480 false verdicts, 0 contradictions, oracle accuracy 44/44.

How.

  • Probe (ra.rs field_assignment_path). Probed: self.<path> with = or any compound operator, all on one line, using plain ASCII field names. Not probed: a right-hand side containing, at any depth, a call, method call, macro, closure, ?, .await, if, match, a comparison or &&/||. Those lines keep their call_deletion and predicate probes, as the spec's Non-Goals require.

  • Repo-scope seam inventory skips these shapes. Seam grading does not apply the read rule, so a well-tested write would otherwise be graded weakly gripped.

  • Credit (assigned_field_path + pushed_collection_compared_whole, reused from rust: a field inside an element pushed onto a field-path collection reads weakly_exposed when the test asserts the whole collection (false actionable gap) #7131). The assignment must:

    • occur once on its line;
    • start a top-level statement of the owner body;
    • not be written again later in the body;
    • have no early exit before it (return, ?, let .. else, break, continue, any macro call, assert, .unwrap(, .expect().

    A default-like expected value never confirms the write: 0, 0 as T, T::MIN, false, None, "", an empty String/Vec, or default().

  • classifier/evidence.rs turns weakly_exposed on these probes into static_unknown. This fails closed, and the spec records the deviation from Behavior.

  • The file-fact cache schema goes 1.38 → 1.39. The cached parser facts change; the classified-seam caches don't need a bump, because seam output is unchanged.

Review of record. It is posted as a PR comment and summarized here:

  1. An adversarial correctness pass ran about 90 shapes and found 3 false-credit shapes: an early return, a pre-call default value, and a branching right-hand side. All three are fixed.
  2. An exact-head pass covering tests, spec and performance found 3 more blockers: multi-line assignments read weakly_exposed, repo seams flagged tested writes, and a macro could hide an early exit. Those are fixed, along with the smaller findings.
  3. A re-review at 37dfcdc found nothing blocking. Its one remaining nit, a nested call displacing call_deletion, is fixed in 1388373.

Limits shared with other probe families are filed as #8051 (#7638 covers dead branches) and listed in the spec.

Checks.

  • cargo xtask precommit: pass.
  • Focused unit tests: pass (24 tests, including the parser, witness, default-value and schema checks).
  • cargo xtask goldens check: only the owner_return_pin_fallible_literal drift, which is identical on main.
  • The full cargo test -p ripr run has 8 failures that are not caused by this change. Seven are permission tests that fail when run as root, and one seam-inventory test also fails on main.

Part of #6485 (the field half; local accumulators are #8046).

#6485)

A changed self.<path> = .. / op= .. now gets a field_construction probe.
It is credited only through an assert_eq! read of the whole field after the
owner call (directly or through a plain getter); a test that calls the owner
and asserts nothing reads reachable_unrevealed; every weaker reading stays
static_unknown. Early exits before the assignment, branching right-hand
sides and default-like expected values refuse credit.

Six Rust corpus cases leave abstention, each to its ideal verdict.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01THmnTJYPr5V99aEDNdTy86
@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 15, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 50e38446-a34f-44cd-882b-38381331156c
📥 Commits

Reviewing files that changed from the base of the PR and between 604ff1e and 8a22439.

📒 Files selected for processing: 17
  • changelog.d/6485-rust-field-assignment-credit.md
  • crates/ripr/src/analysis/classifier/evidence.rs
  • crates/ripr/src/analysis/classify/activation.rs
  • crates/ripr/src/analysis/classify/mod.rs
  • crates/ripr/src/analysis/classify/propagation_witness.rs
  • crates/ripr/src/analysis/classify/reveal.rs
  • crates/ripr/src/analysis/seam_cache.rs
  • crates/ripr/src/analysis/seam_inventory.rs
  • crates/ripr/src/analysis/syntax/ra.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0228-rust-field-write-observation.md
  • fixtures/rust-verdict-corpus/expected/rows/accounts-balance-add.json
  • fixtures/rust-verdict-corpus/expected/rows/grid-delete-exact.json
  • fixtures/rust-verdict-corpus/expected/rows/spec0228-field-write-direct-read.json
  • fixtures/rust-verdict-corpus/expected/rows/spec0228-field-write-enum-variant.json
  • fixtures/rust-verdict-corpus/expected/rows/spec0228-field-write-getter-read.json
  • fixtures/rust-verdict-corpus/expected/rows/spec0228-field-write-no-read.json
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

Summary by CodeRabbit

  • Improvements
    • Rust field assignments can now be credited when tests compare the assigned field directly or through a getter.
    • Assignments with no related assertion are reported as reachable but unrevealed; unsupported reads remain unknown.
    • Six Rust test cases now receive their expected verdicts.

Walkthrough

The Rust parser now emits probes for eligible self field assignments. Classification checks assignment and assertion conditions to determine whether a write is exposed, unrevealed, or unknown. The cache schema and six Rust corpus expectations also change.

Changes

Rust field-assignment observation

Layer / File(s) Summary
Recognize field-assignment probes
crates/ripr/src/analysis/syntax/ra.rs, crates/ripr/src/analysis/seam_inventory.rs, crates/ripr/src/analysis/seam_cache.rs, docs/specs/RIPR-SPEC-0228-rust-field-write-observation.md, docs/OUTPUT_SCHEMA.md
The parser emits FieldConstruction probes for eligible, single-line assignments rooted at self. Repo-scope seam inventory skips recognized assignment shapes. The per-file fact cache schema changes from 1.39 to 1.40.
Resolve assignment observations
crates/ripr/src/analysis/classify/propagation_witness.rs, crates/ripr/src/analysis/classify/activation.rs, crates/ripr/src/analysis/classify/evidence.rs, crates/ripr/src/analysis/classify/mod.rs, crates/ripr/src/analysis/classify/reveal.rs, docs/specs/RIPR-SPEC-0228-rust-field-write-observation.md
Assignment analysis checks whether the write is top-level, the final write to the field, and free of specified early exits and branching right-hand sides. A qualifying whole-field assertion can establish observation; default-like expected values do not. Weakly exposed assignment probes classify as static_unknown.
Update documented and corpus outcomes
changelog.d/6485-rust-field-assignment-credit.md, fixtures/rust-verdict-corpus/expected/rows/*
The changelog and spec describe the probe and observation conditions. Five corpus rows now expect credited, exposed results; the no-read row expects a gap and reachable_unrevealed. All six rows expect an ideal outcome.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant FieldAssignmentParser
  participant assigned_field_of
  participant AssertionAnalysis
  participant ClassifiedProbeEvidence
  FieldAssignmentParser->>assigned_field_of: Provide field-construction probe
  assigned_field_of->>AssertionAnalysis: Resolve assigned field and check whole-field assertion
  AssertionAnalysis->>ClassifiedProbeEvidence: Provide observation classification
Loading
Merge Risk: ⚪ Minimal · up to 8a224

No merge-blocking issue was established for the field-assignment change; merge after the required checks pass.

Security architecture risk: 🔵 Low · up to 8a224

The inspected changes affect reported results rather than adding execution privileges or external access. No material security exposure was established, but the complete before-and-after comparison could not be verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — Repository-controlled Rust source and test text can influence assignment verdicts for the analyzed project. The demonstrated effect is on analysis-result integrity; the inspected assignment path does not execute that source or establish broader credential or service authority.

Trust Boundaries and Controls

  • observed — The new syntax recognizer treats input as AST data and rejects unsupported assignment shapes, including calls, macros, closures and branching right-hand sides. Observation controls additionally require matching receiver identity and ordering, and reject direct same-binding expected operands.

Resilience and Maintainability Implications

  • observed — Cache publication uses exclusively created staging files and rename-based replacement; ordinary failures remove only the writer's staging file. Recovery sweeps aged matching regular files without following symlinks. Reads require matching identity and a valid semantic payload digest. Cache writes omit fsync, so these controls do not promise power-loss durability or authentication against a malicious cache writer.
Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description gives a detailed technical summary, scope, limitations, test results, and known failures, but it does not follow the repository template and omits many required sections, including sou… Rewrite the description using the repository template. Complete each required section, mark applicable checkboxes, provide source links and relationships, document proof commands and results, state claim boundaries and rollback steps, and r…
Docstring Coverage Warning Docstring coverage is 73.08% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 26 functions across 8 files. (9 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 identifies the Rust field-assignment probing and observation change, with relevant issue and specification references.
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 gives a detailed technical summary, scope, limitations, test results, and known failures, but it does not follow the repository template and omits many required sections, including source-of-truth links, candidate relationships, scope classification, support and policy impact, proof, claim boundary, rollback, traceability, engineering checks, and gate statuses.

Resolution

Rewrite the description using the repository template. Complete each required section, mark applicable checkboxes, provide source links and relationships, document proof commands and results, state claim boundaries and rollback steps, and record engineering and gate statuses. Use n/a for CI Economics if no CI behavior changes.

Full details: Docstring Coverage

Explanation

Docstring coverage is 73.08% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 26 functions across 8 files. (9 skipped: 9 unsupported.)

  • Fix all pre-merge checks with AI
✨ 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 inspects each field with care,
A probe marks writes that meet the rule.
Whole-field reads can earn their place,
While empty claims stay unrevealed.
Six verdict rows now show the change,
And carrots wait beside the code.

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

@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

  • Corpus expects 24/480 false verdicts and 0 contradictions on this base. Two non-spec0228 corpus rows are NOT updated (status remains 'abstained' on other rows); if any of those rows happen to contain a self.f = .. pattern in their fixture, they would now be probed as field_construction and may regress to a different verdict. Author did not run the full corpus sweep beyond the 6 explicit cases.
  • is_default_like strips leading & only once and then does not recursively unwrap &Vec<u8>::new() / &String::new() / &&Some(..) — assert_eq!(&c.items, &Vec::new()) is treated non-default, so an entire deleted write (default vec) silently credits.
  • docs/specs/RIPR-SPEC-0228-rust-field-write-observation.md:347 — The 'Limits' section now mixes the field-assignment probe description with the inherited limits in one bullet, so the spec no longer separates 'what this family probes' from 'known limits shared with other families'. Split into two bullets so the limits stay discoverable.
  • Decision 3 (gap for call-without-assertion) is reversible but not gated by an oracle row asserting 'gap' for non-read callers. The single gap row (spec0228-field-write-no-read) is hand-labeled; no negative test pins a related-test-but-other-binding or no-related-test case. Add corpus rows for: caller reads field from a non-owner binding; owner takes &mut self and field is later dropped. Future local-accumulator PR (#8046) should reuse the same fixture.

Verification questions

  • Confirm sensors/ripr/ub-review-sensor-status.json:0 — ripr sensor failed with exit code 2; without a green receipt the lanes cannot witness that the six corpus rows actually transition through the new field_construction probe end-to-end. The PR body and the 6 expected JSON flips are not corroborated by an executed probe on this base.
  • Confirm spec claims weakly_exposed cannot arise for field probes, but the demotion in evidence.rs only fires when field_assignment_target(&probe.expression) returns Some. If ra.rs emits a FieldConstruction probe from a path the text-only field_assignment_target cannot parse (e.g. tuple field self.0), the demotion silently does not apply and a weakly_exposed slip-through is possible.
  • Confirm may_exit_early matches the bare word else by splitting on non-alnum/_. A rhs self.f = (x, else_value) or a method name like elsewise would not match (since split strips word chars), but a rhs identifier else_state similarly safe; however an else branch in masked body before the stmt (a prior if/else { ... }) would false-trigger may_exit_early and refuse credit.
  • Confirm limits section still says 'Field assignments (..) are not implemented' as a bullet that the diff itself edits; re-read after merge to confirm the bullet list reflects the new limits.
  • Confirm rHS branching guard uses substring containment; = followed by => (match arm) is excluded but open=/close= substrings could collide with rhs operands like open == 1. Need adversarial corpus on rhs with == after the operator.
  • Confirm rhs_may_branch does plain rhs.contains("==") etc. A rhs containing a string literal or doc comment that includes ==, &&, \|\|, ?, or </> will falsely refuse credit. Mask comments/strings (already used elsewhere as mask_comments_and_strings) before the scan, or split on token boundaries. Adversarial corpus must include self.f = concat!("a==b"), self.f = "x && y".to_string(), and rhs identifiers like less_than/min/or_zero. (crates/ripr/src/analysis/classify/propagation_witness.rs:1141).
  • Confirm rhs_may_branch uses ==, !=, <, > substring check on the whole RHS expression — self.count = if cond { a } else { b } is caught by the 'if' word match, but self.count = self.count.checked_add(1).unwrap_or(0) is not (no keyword, no comparison op), so a non-deterministic RHS credits. Asserted default-like value is the only post-hoc guard.
  • Confirm may_exit_early flags the bare word else anywhere in the masked prefix. A prior complete if/else { ... } block contains else but does not actually prevent the assignment from running (control reaches the end of the if/else and falls through). Owners with any earlier if/else will be over-refused. Recommend: only treat else as early-exit when it appears as } else { directly before a return/?/break/continue, or track the nearest enclosing statement's terminator. (crates/ripr/src/analysis/classify/propagation_witness.rs:1159).

…-branching writes (RIPR-SPEC-0228, #6485)

Exact-head review findings:
- a multi-line assignment's changed continuation line read weakly_exposed;
  the parser shape now requires the whole assignment on one line
- repo-scope seams graded every field write weakly_gripped; seam inventory
  now skips field-assignment shapes
- a macro before the assignment could hide an early exit; any macro call
  before it now refuses credit
- self.f = call(..) lost its call_deletion probe; call, method, macro, ?,
  .await, if, match, comparison and logical right-hand sides keep their
  earlier probes
- 0 as T, T::MIN and T::ZERO count as default-like expected values

Bumps the file-fact cache schema to 1.39 for the new parser shape.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01THmnTJYPr5V99aEDNdTy86
… earlier probes (RIPR-SPEC-0228, #6485)

Re-review R1: a call nested under +, parentheses, as or ! still minted the
field probe and displaced call_deletion. The parser now checks every node of
the right-hand side. Spec notes the missing repo seam and the fail-closed
macro rule.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01THmnTJYPr5V99aEDNdTy86
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 15, 2026 06:00
@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!

Copy link
Copy Markdown
Member Author

Review of record

Angles

  1. Adversarial correctness. Looked for false credits and false gaps across about 90 crate shapes, on the binary built from the change.
  2. Tests and regressions. Do the tests discriminate? Do probes collide or get displaced? Are the goldens and the corpus clean?
  3. Spec and contract. Checked the RIPR-SPEC-0228 Behavior section, Non-Goals and Implementation Status, the changelog, and the blessed rows against their truth labels.
  4. Performance. Checked the scan cost per probe and per assertion, and the recursion bounds.

Findings and resolutions

Finding Severity Resolution
An early return before the assignment still credits blocking may_exit_early refuses credit
An expected value equal to the pre-call default credits blocking Default-like expected values refuse credit (0, 0 as T, T::MIN, false, None, empty, default())
A branching right-hand side credits blocking The parser emits no probe, and the predicate probe stays
Parser and guard disagreed on self.0, raw and non-ASCII names non-blocking The parser accepts plain ASCII names only
A multi-line assignment read weakly_exposed blocking The parser emits no probe unless the assignment is on one line (static_unknown, as on main)
Repo seams graded tested writes as weakly gripped blocking Seam inventory skips field-assignment shapes; pilot on the repro ranks nothing
An early exit hidden in a macro credits blocking Any macro call before the assignment refuses credit
self.f = call(..) lost call_deletion, including nested calls non-blocking No probe when the right-hand side contains a call, macro, closure, ?, .await or branch at any depth
Tests did not discriminate (let..else, unwrap, once-per-line, ASCII) non-blocking Added individual cases and a parser unit test
The spec text drifted from the code non-blocking Implementation Status rewritten: diff-scope only, static_unknown instead of weakly_exposed, no repo seam, shared limits
Cached 1.38 facts would hide the new probe correctness File-fact cache schema bumped to 1.39

Not fixed here, all shared with other probe families:

Accepted limits:

  • A non-default pre-call value that equals the asserted value still credits. It is recorded in the spec.
  • The macro rule fails closed even for vec!.
  • A tail assignment with no ; gets an extra static_unknown finding.

The final re-review, at 37dfcdc, found nothing blocking. Its one remaining nit is fixed in 1388373.

Evidence on this head

  • cargo xtask precommit: pass.
  • verdict-corpus check: 480/480 rows match; 24/480 false verdicts and 0 contradictions.
  • goldens check: only the drift that is also on main.
  • Focused unit tests: pass.

Disposition: nothing blocking. This can merge once the required checks are green.


Generated by Claude Code

@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

Comment thread crates/ripr/src/analysis/syntax/ra.rs Resolved
… check

Review on #8061 found three gaps in the SPEC-0228 field-assignment path:
- A block RHS with a let-else return still credited the write. The parser
  now refuses block, loop, return/break/continue and let RHS expressions.
- A comment inside the assignment made the probe text unreadable to
  `field_assignment_target`, bypassing the evidence guard and seam skip.
  Such assignments keep no probe.
- `rhs_may_branch` scanned string contents, so `self.label = "if"` lost
  credit. It now masks strings and comments first.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01THmnTJYPr5V99aEDNdTy86
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 15, 2026 06:30
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 15, 2026 06:30
@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!

Copy link
Copy Markdown
Member Author

Review of record, addendum for head b4b62d6

This head adds commit b4b62d6, which fixes the three Devin findings on 1388373.

Finding Resolution
🔴 A block RHS with a let-else return still credited the write The parser now refuses BlockExpr, Loop/While/For, Return/Break/Continue and LetExpr anywhere in the RHS. Covered by unit cases in ra.rs and propagation_witness.rs.
🟡 "if" inside a string read as a branch rhs_may_branch masks strings and comments before scanning. New test covers it.
🟡 An inline comment bypassed the textual guard and seam skip An assignment node containing a COMMENT token keeps no probe. A trailing comment stays outside the node and is still accepted (tested).

Angles rechecked on this head:

  • Correctness: the new refusals only narrow which shapes get a probe, so no new credit path is opened.
  • Regressions: the corpus is unchanged at 480 cases, 24/480 false verdicts, 0/611 contradictions, oracle 44/44, spec examples 126/126.
  • Contract: the probe shape set changed, but the FILE_FACT_CACHE 1.38→1.39 bump in this PR still covers it, because main has not moved that version.

cargo xtask precommit exits 0, and the focused unit tests pass (6/6). There are no blocking findings, and all three review threads are answered and resolved. Merge waits on the required checks for this head.


Generated by Claude Code

Union of RIPR-SPEC-0228 field-write credit (PR) with the #6578
variant-field pattern rule (main) in classify/activation.rs; the
independently-allocated file-fact cache bump 1.38 -> 1.39 collides,
so the PR's field_construction shape renumbers to 1.40 (doc line in
docs/OUTPUT_SCHEMA.md follows).

Copy link
Copy Markdown
Member Author

Review of record, addendum for head 8a22439 (main merged into b4b62d6)

Conflict resolution checked.

Local proof on this head.

  • Focused tests: 181/181 pass, covering field assignment, witness, default-like, seam cache and variant field.
  • cargo xtask verdict-corpus check passes: 485 cases, 16/485 false verdicts, 0/621 contradictions, spec examples 131/131, oracle 44/44.

Remote. Ripr Rust Small Result is success on this head and no check is red. CodeRabbit reported no actionable comments, and all review threads are resolved.

No blocking findings.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 0d8bae7 into main Oct 15, 2026
34 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-1foyxp branch October 15, 2026 13:35
EffortlessSteven pushed a commit that referenced this pull request Oct 15, 2026
Main took file facts 1.40 (#8061); the expect_file binding candidates
move to 1.41.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011vJe7tsVbzfQsHJiNujJgV
EffortlessSteven added a commit that referenced this pull request Oct 21, 2026
…uments (#9247) (#9248)

* fix(rust): resolve slice-length boundary for direct literal slice arguments (#8061)

A test that calls the owner with literal &[..] arguments inside assertions now
supplies slice cardinalities to the boundary reader and the pairing gate, so an
empty literal pinned exactly credits xs.len() == 0 instead of abstaining.

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

* docs: point the direct-literal slice fix at its issue (#9247)

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

* fix(rust): bound the direct literal slice reader to compared, unconditional operands (#9247)

Reject owner calls in branch, match, block and short-circuit operands and in
assertion message arguments, and cover them with controls.

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

* fix(rust): require the owner result to reach the assertion unchanged; add spec and traceability (#9247)

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

---------

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants