Skip to content

fix(analysis): confirm a one-letter changed field through its read on the owner's result (#15274) - #16140

Merged
EffortlessSteven merged 9 commits into
mainfrom
claude/project-thread-3dbg4z
Nov 29, 2026
Merged

EffortlessSteven merged 9 commits into
mainfrom
claude/project-thread-3dbg4z

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

  • check: a correct exact-value test never clears propagation_unknown / infection_unknown, so verify stays refused forever #15274 repro 5: Point { x: dx, y: 0 } changed to y: 1, with assert_eq!(origin_shift(3).y, 1), read weakly_exposed / observation_unconfirmed for both the field_construction and the return_value finding, so verify stayed refused.
  • Cause: the reveal stage confirms a value probe through a shared token, and extract_identifier_tokens drops every identifier of two characters or fewer. A field named y, x or id had no token, so no assertion could ever confirm it. Renaming the field to lift in the same repro reads exposed on main, which isolates the name length.
  • Fix: for a changed field of the owner's returned record whose name yields no token, a .y read on the owner's own result (origin_shift(3).y, or let p = origin_shift(3); p.y) confirms. It reuses reads_owner_result_field, the RIPR-SPEC-0225 read rule, and the direct-call defeats the rust: a test that calls a &mut self method and then asserts the written field reads miss=no_call_path, so verify stays refused #14407 assigned-field read uses (direct owner call relation, no foreign import, no cross-package namesake, no shadow, not should_panic).
  • The bare name never confirms. A read of another field (.x), the same name on another value, a longer name starting with y (.yaw) and a read copied into the expected side (assert_eq!(p, Point { x: 3, y: p.y })) still confirm 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: n/a
Spec: RIPR-SPEC-0001
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #15274 (repro 5)
Acceptance delta (one sentence): a test that pins a changed one-letter field through the owner's result moves both findings from weakly_exposed to exposed, while a read of another field stays weakly_exposed.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-3dbg4z
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a

Related, not duplicated: #16017 (merged) took repros 1 and 2 through flow.rs sinks. #12324 (#7894) aligns repo-evidence field grip with whole-value pins; it does not touch the supplied-diff token reading. #15322 and #16039 are noted under Non-goals.

Scope

  • crates/ripr/src/analysis/classify/reveal.rs: analyze_related_assertions collects short_record_fields (the field_construction probe's record field when the owner returns a record it builds, or the changed fields of a return_value struct literal) whose names yield no token, and lets an owner-result read of one set has_token_match under the direct-call defeats. The existing builder-override narrowing still runs after it.
  • crates/ripr/src/analysis/classify/activation.rs: reads_owner_result_field becomes pub(super); new unit test a_one_letter_field_read_holds_to_the_owner_result.

Scope Classification

  • One production behavior

Production delta:

  • One more confirming signal in the reveal stage, limited to changed record fields whose names are too short to be tokens.

Evidence/support delta:

  • 1 unit test, 2 fixtures (rust_field_construction_short_field_name, rust_field_construction_short_field_name_other_field), 2 honesty-corpus rows (must_not_promote on the control), changelog fragment, traceability fragment.

Single acceptance criterion:

  • rust_field_construction_short_field_name reads both findings exposed; rust_field_construction_short_field_name_other_field reads both weakly_exposed.

Non-goals (the rest of #15274, traced on main bcb76da with the issue's repro inputs):

Support-tier Impact

  • none

Claim/proof notes:

  • Changelog fragment changelog.d/15274-short-field-read.md.

Policy Impact

  • none

Proof

cargo xtask goldens check                               # exit 0; no existing golden moves
cargo xtask verdict-corpus check-all                    # exit 0; 0 false verdicts in all 4 corpora
cargo xtask check-evidence-promotion-honesty            # exit 0
cargo clippy -p ripr --all-targets -- -D warnings       # exit 0
cargo xtask precommit                                   # see below
ripr check --base HEAD~1 --format agent                 # scratch crates, main bcb76da6 vs this head

Result, failures, or skipped proof:

  • Failing then passing. ripr check --diff fixtures/rust_field_construction_short_field_name/diff.patch reads findings=2 gaps=2 weakly_exposed=2 with the main binary and exposed=2 with this head. The control fixture reads weakly_exposed=2 on both.
  • Issue repro, scratch crate. Repro 5 as written moves to findings=2 gaps=0 exposed=2 and verify=complete. Controls in the same crate: let p = origin_shift(3); assert_eq!(p.y, 1) reads exposed; assert_eq!(origin_shift(3).x, 3), an unrelated P { x: 0, y: 1 } with .y read, and assert_eq!(p, P { x: 3, y: p.y }) stay weakly_exposed.
  • Unit-test caveat. The ripr lib-test binary does not link in the 15 GB authoring container, so the new activation.rs unit test runs only in hosted CI. Clippy compiled it.
  • precommit: cargo xtask precommit exit 0 on 34b2e11. Clippy evidence is the separate cargo clippy -p ripr --all-targets run above; xtask is unchanged.
  • Review repair (de2cb21, after merging main at ad2496c). Independent review found that assert_eq!(origin_shift(3).y(), 7), with a y() method returning a constant, read exposed because .y( was taken as a field read. The short-field path now uses reads_owner_result_field_value, which refuses a read followed by ( or ::, so a short-field getter stays unconfirmed (fails closed). The RIPR-SPEC-0225 assigned-field read keeps its same-named accessor credit, which mined-one-line-struct-literal-field in the verdict corpus pins (a first, blanket version broke it and was withdrawn). New control fixture rust_field_construction_short_field_name_method_call reads weakly_exposed=2, with two honesty rows. All five commands above exit 0 on de2cb21; the three check: a correct exact-value test never clears propagation_unknown / infection_unknown, so verify stays refused forever #15274 fixtures were re-blessed for main's formatting-only summary wording.
  • Devin review repair (d929a8e). Two more false credits reproduced on de2cb21 and fixed: a .y read in the failure message (assert_eq!(origin_shift(3).x, 3, "y was {}", origin_shift(3).y)) and a receiver rebound before the assertion (let p = Point::default(); after let p = origin_shift(3);). The short-field path now counts only reads inside the compared operands (first two of assert_eq!/assert_ne!, the condition of assert!; other forms refuse) and requires a bound receiver's latest let before the assertion to bind from the owner call. Controls rust_field_construction_short_field_name_message_read and ..._rebound_receiver read weakly_exposed=2, with four honesty rows. A single-field record's return_value finding stays unconfirmed (missed credit, fails closed; not claimed). All five proof commands exit 0 on d929a8e.
  • Second independent-review repair (b18d635). A let mut receiver replaced without a let or field write (p = Point { .. }, std::mem::replace(&mut p, ..)) read exposed. The short path now accepts a bound receiver only when its latest let before the assertion is not mut; let mut p = origin_shift(3); assert_eq!(p.y, 1) becomes a missed credit (fails closed). Control rust_field_construction_short_field_name_reassigned_receiver reads weakly_exposed=2, with two honesty rows. All five proof commands exit 0 on b18d635.
  • Third independent-review repair (34b2e11). A for p in [..] loop shadow, a pattern let (p, _n) = .. rebinding, and an initializer that only mentions the owner call (let p = if false { origin_shift(3) } else { .. }) read exposed for y. The short path now requires the receiver's latest let to be exactly the owner call (optionally path-qualified, optionally ?) and every later mention of the name before the assertion to be a p. access. Control rust_field_construction_short_field_name_loop_shadow reads weakly_exposed=2, with two honesty rows. All five proof commands exit 0 on 34b2e11. The long-name form of the loop shadow reads exposed on this head through the existing token path, which this PR does not touch; filed as rust: a for-loop variable shadowing the owner's bound result confirms the changed field #16551.
  • Known parity limit, not fixed here: a changed literal in one branch is confirmed by a field read whose call takes the other branch, for long names too. Filed as rust: a field read confirms a changed initializer in a branch the test's call never takes #16524.
  • Seam-cache generation: not bumped. analyze_related_assertions and the changed activation helper sit on the diff-probe path (classify_probe); the seam_inventory classified-seam cache does not call either.

Claim Boundary

May be claimed: a test that reads a changed one- or two-letter field on the owner's result now confirms it, as a longer name already did. Must not be claimed: that #15274 is resolved, or that repros 3, 4, 6 or 7 move.

Rollback

Revert the squash commit. No schema, config or output-contract change.

Spec-Test-Code Traceability

  • Spec: RIPR-SPEC-0001
  • Tests: activation.rs::tests::a_one_letter_field_read_holds_to_the_owner_result
  • Code: crates/ripr/src/analysis/classify/reveal.rs, crates/ripr/src/analysis/classify/activation.rs
  • Golden outputs: fixtures/rust_field_construction_short_field_name{,_other_field}
  • Metrics: n/a
  • ADR/learning: n/a

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

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.
  • New non-Rust programming files are allowlisted with owner, surface, and reason. (none)
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason. (none)
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented. (none)

https://claude.ai/code/session_01SvmPmmSMBuovLRPTFeSczf


Generated by Claude Code

… the owner's result (#15274)

A changed field whose name is too short to be a token (`y: 0` to `y: 1`)
gave an assertion no name to share, so `assert_eq!(origin_shift(3).y, 1)`
left both the field_construction and the return_value finding at
weakly_exposed with observation_unconfirmed, and verify stayed refused.

Such a field now confirms through a `.y` read on the owner's own result,
called directly or bound with `let`, under the direct-call defeats the
assigned-field read uses. A read of another field, the same name on another
value, or a read copied into the expected side still confirms nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmmSMBuovLRPTFeSczf
@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 self-assigned this Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 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 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 138 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: b35ff2c9-a756-4ee3-8312-c22f9196769c
Commits

Reviewing files that changed from the base of the PR and between 56014e4 and 1533419.

Files selected for processing: 61

  • .ripr/traceability.d/15274-short-field-read.toml
  • changelog.d/15274-short-field-read.md
  • crates/ripr/src/analysis/classify/activation.rs
  • crates/ripr/src/analysis/classify/reveal.rs
  • fixtures/evidence-promotion-honesty-corpus/corpus.json
  • fixtures/rust_field_construction_short_field_name/SPEC.md
  • fixtures/rust_field_construction_short_field_name/diff.patch
  • fixtures/rust_field_construction_short_field_name/expected/CHANGELOG.md
  • fixtures/rust_field_construction_short_field_name/expected/check.json
  • fixtures/rust_field_construction_short_field_name/expected/human-full.txt
  • fixtures/rust_field_construction_short_field_name/expected/human.txt
  • fixtures/rust_field_construction_short_field_name/input/Cargo.toml
  • fixtures/rust_field_construction_short_field_name/input/src/lib.rs
  • fixtures/rust_field_construction_short_field_name_loop_shadow/SPEC.md
  • fixtures/rust_field_construction_short_field_name_loop_shadow/diff.patch
  • fixtures/rust_field_construction_short_field_name_loop_shadow/expected/CHANGELOG.md
  • fixtures/rust_field_construction_short_field_name_loop_shadow/expected/check.json
  • fixtures/rust_field_construction_short_field_name_loop_shadow/expected/human-full.txt
  • fixtures/rust_field_construction_short_field_name_loop_shadow/expected/human.txt
  • fixtures/rust_field_construction_short_field_name_loop_shadow/input/Cargo.toml
  • fixtures/rust_field_construction_short_field_name_loop_shadow/input/src/lib.rs
  • fixtures/rust_field_construction_short_field_name_message_read/SPEC.md
  • fixtures/rust_field_construction_short_field_name_message_read/diff.patch
  • fixtures/rust_field_construction_short_field_name_message_read/expected/CHANGELOG.md
  • fixtures/rust_field_construction_short_field_name_message_read/expected/check.json
  • fixtures/rust_field_construction_short_field_name_message_read/expected/human-full.txt
  • fixtures/rust_field_construction_short_field_name_message_read/expected/human.txt
  • fixtures/rust_field_construction_short_field_name_message_read/input/Cargo.toml
  • fixtures/rust_field_construction_short_field_name_message_read/input/src/lib.rs
  • fixtures/rust_field_construction_short_field_name_method_call/SPEC.md
  • fixtures/rust_field_construction_short_field_name_method_call/diff.patch
  • fixtures/rust_field_construction_short_field_name_method_call/expected/CHANGELOG.md
  • fixtures/rust_field_construction_short_field_name_method_call/expected/check.json
  • fixtures/rust_field_construction_short_field_name_method_call/expected/human-full.txt
  • fixtures/rust_field_construction_short_field_name_method_call/expected/human.txt
  • fixtures/rust_field_construction_short_field_name_method_call/input/Cargo.toml
  • fixtures/rust_field_construction_short_field_name_method_call/input/src/lib.rs
  • fixtures/rust_field_construction_short_field_name_other_field/SPEC.md
  • fixtures/rust_field_construction_short_field_name_other_field/diff.patch
  • fixtures/rust_field_construction_short_field_name_other_field/expected/CHANGELOG.md
  • fixtures/rust_field_construction_short_field_name_other_field/expected/check.json
  • fixtures/rust_field_construction_short_field_name_other_field/expected/human-full.txt
  • fixtures/rust_field_construction_short_field_name_other_field/expected/human.txt
  • fixtures/rust_field_construction_short_field_name_other_field/input/Cargo.toml
  • fixtures/rust_field_construction_short_field_name_other_field/input/src/lib.rs
  • fixtures/rust_field_construction_short_field_name_reassigned_receiver/SPEC.md
  • fixtures/rust_field_construction_short_field_name_reassigned_receiver/diff.patch
  • fixtures/rust_field_construction_short_field_name_reassigned_receiver/expected/CHANGELOG.md
  • fixtures/rust_field_construction_short_field_name_reassigned_receiver/expected/check.json
  • fixtures/rust_field_construction_short_field_name_reassigned_receiver/expected/human-full.txt
  • fixtures/rust_field_construction_short_field_name_reassigned_receiver/expected/human.txt
  • fixtures/rust_field_construction_short_field_name_reassigned_receiver/input/Cargo.toml
  • fixtures/rust_field_construction_short_field_name_reassigned_receiver/input/src/lib.rs
  • fixtures/rust_field_construction_short_field_name_rebound_receiver/SPEC.md
  • fixtures/rust_field_construction_short_field_name_rebound_receiver/diff.patch
  • fixtures/rust_field_construction_short_field_name_rebound_receiver/expected/CHANGELOG.md
  • fixtures/rust_field_construction_short_field_name_rebound_receiver/expected/check.json
  • fixtures/rust_field_construction_short_field_name_rebound_receiver/expected/human-full.txt
  • fixtures/rust_field_construction_short_field_name_rebound_receiver/expected/human.txt
  • fixtures/rust_field_construction_short_field_name_rebound_receiver/input/Cargo.toml
  • fixtures/rust_field_construction_short_field_name_rebound_receiver/input/src/lib.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW_READY for head 64029f1

Independent native-Windows review of fix(analysis): confirm a one-letter changed field through its read on the owner's result (#15274 repro 5) at 64029f1.

Source review (verified against source)

  • Root cause is exact: extract_identifier_tokens drops identifiers of two characters or fewer, so a field named y, x or id produced no token and no assertion could ever confirm it — the PR body isolates this by the same repro reading exposed after renaming the field to lift.

  • The fix is narrowly scoped in classify/reveal.rs: a changed field of the owner's returned record whose name yields no token confirms only through a .y read on the owner's own result, via the existing RIPR-SPEC-0225 reads_owner_result_field rule, and only under the same direct-call defeats as the assigned-field read (direct owner-call relation, no foreign import, no cross-package namesake, no owner shadow, not should_panic). The bare name never confirms.

  • False-credit controls are pinned: a read of another field (.x), the same name on another value, a longer name starting with y (.yaw), and a read copied into the expected side (assert_eq!(p, Point { x: 3, y: p.y })) still confirm nothing; a builder override of the field is narrowed away by the existing RIPR-SPEC-0040 pass.

  • Evidence discipline: the fixture pair (rust_field_construction_short_field_name confirming read, ..._other_field control) plus an honesty-corpus entry pin the reading in both directions, with traceability, changelog, and spec notes moving together.

  • Native proof (native Windows, worktree wt-16140 at head 64029f1; batch-A redo after infrastructure worktree loss): sections 16140 lib confirms_a_short_field_write (redo) + 16140 fixtures (redo) + 16140 honesty (redo) => 1 passed; 0 failed across 1 test-binary result(s) (all exits 0); fixtures green: 2; evidence-promotion honesty check green.

Residuals

None blocking. Fields of two characters that DO tokenize elsewhere keep their existing readings; only the no-token case changes.

…ead (#15274)

The one-letter field credit added for repro 5 took `origin_shift(3).y()`
as a read of the field `y`, so a `y()` method returning a constant
confirmed a changed `y` initializer it never reads, and both findings
read exposed on a test that passes on old and new code.

The short-field path now asks `reads_owner_result_field_value`, which
refuses a read whose next non-space text is `(` or `::`. Nothing reads
that method's body there, so a getter of a short field stays
unconfirmed (fails closed). The RIPR-SPEC-0225 assigned-field read keeps
its existing reading: its same-named accessor credit is pinned by the
verdict corpus (`mined-one-line-struct-literal-field`).

Adds the rust_field_construction_short_field_name_method_call control
fixture, two honesty-corpus rows and unit cases beside `.yaw`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmmSMBuovLRPTFeSczf
…15274)

Formatting-only movement from main's summary wording; the method-call
control's next step follows the scoped short-field rule. Both findings
of each fixture keep their class.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmmSMBuovLRPTFeSczf
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 28, 2026 22:35

@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

…ive receiver (#15274)

Two false confirmations of a changed one-letter field, both reported on
review and reproduced with the built binary:

- `assert_eq!(origin_shift(3).x, 3, "y was {}", origin_shift(3).y)`
  read the field in the failure message, which never fails the test.
- `let p = origin_shift(3); ...; let p = Point::default(); assert_eq!(p.y, 0)`
  credited a receiver rebound to another value before the assertion.

`reads_owner_result_field_value` now counts only reads inside the
compared operands (the first two of assert_eq!/assert_ne!, the condition
of assert!; any other form refuses) and requires a bound receiver's
latest `let` before the assertion to bind from the owner call. The
RIPR-SPEC-0225 reading is unchanged.

Adds message_read and rebound_receiver control fixtures, four
honesty-corpus rows and unit cases.

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

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Independent source review of head de2cb21 by a session that did not write this change. This is a source review; hosted qualification and the final merge judgment belong to the owning session.

Read in full: the production diff in classify/reveal.rs and classify/activation.rs, the unit test, the three fixtures and their honesty-corpus rows, and the governing issue's repro 5.

Production: a changed field of the owner's returned record whose name yields no identifier token (y, id) can now be confirmed by a .y read on the owner's own result, under the direct-call conditions the assigned-field read already uses (direct owner call, no foreign import, no cross-package namesake, no shadow, not should_panic). The builder-override narrowing still runs after it. The short path calls reads_owner_result_field_value, which also refuses a read followed by ( or ::, so a method named like the field does not confirm.

Probes run here against a binary built from this head, each compared with the same case under a long field name and with a build of the PR's base bcb76da:

  • Credited (exposed): an exact read on the direct call, and on a let-bound result.
  • Stays weakly_exposed for y: a read of another field, a relational assertion, a self-comparison, assert_ne, a read on another function's result that wraps the owner call, the same name on another value, a nested record's outer field, a field overwritten before the read, a read copied into the expected side, and a method y() returning a constant. In several of these the long name is credited today and the short name is stricter.
  • The method case read exposed on the first head I reviewed (64029f1) and reads weakly_exposed here; the new fixture rust_field_construction_short_field_name_method_call pins it.

Known limit that this head keeps, stated so nobody reads this review as covering it: when the owner builds the record in two branches and only one literal changes, a .y read through the other branch (origin_shift(-1).y against the unchanged literal) reads exposed for field_construction. Base does the same for a long field name, and #16524 tracks it for both. For short names this PR is what newly moves that case. I judge it a pre-existing weakness of branch activation and outside this change, and the owning session and coordinator should weigh that judgment.

Local evidence on this head: cargo build -p ripr, cargo xtask goldens check and cargo xtask verdict-corpus check-all exited 0. I did not run clippy, the unit suite or precommit; the author reports them, and hosted jobs are the full run.

Seam-cache generation: reveal_evidence is the only caller of analyze_related_assertions. I did not independently trace the classified-seam cache, so the author's statement that it does not store results of that path is unverified by this review.


Generated by Claude Code

#15274)

Review found two more false confirmations of a changed one-letter field
through a bound receiver: `let mut p = origin_shift(3); p = Point { .. };
assert_eq!(p.y, 1)` and `std::mem::replace(&mut p, ..)` before the read.
Neither is a `let` or a field write, so the rebinding and overwrite
checks let both through.

The short-field path now accepts a bound receiver only when its latest
`let` before the assertion is not `mut`. Nothing here tracks whole-value
writes, `&mut` borrows or `&mut self` methods, so a mut receiver fails
closed; `let mut p = origin_shift(3); assert_eq!(p.y, 1)` becomes a
missed credit. The direct `origin_shift(3).y` read is unaffected.

Adds the reassigned_receiver control fixture, two honesty rows and unit
cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmmSMBuovLRPTFeSczf
… unshadowed (#15274)

Review found three more false confirmations of a changed one-letter
field through a bound receiver: a `for p in [..]` loop that shadows `p`,
a pattern `let (p, _n) = ..` rebinding, and an initializer that only
mentions the owner call (`let p = if false { origin_shift(3) } else { .. }`).

The short-field path now requires the receiver's latest `let` to be
exactly the owner call (optionally path qualified, optionally `?`), and
every later mention of the name before the assertion to be a `p.`
access; any other binding of the name fails closed.

Adds the loop_shadow control fixture, two honesty rows and unit cases.

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

@EffortlessSteven EffortlessSteven left a comment •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Independent source review of 34b2e11 by a session that did not write this PR. Scope: the source delta since my earlier passes (64029f1, de2cb21, d929a8e, b18d635) read in full, plus a probe set run through a binary built from this head.

Probe set (33 cases, each run with field names y and lift, old and new owner source committed in a scratch repository, ripr check --base HEAD~1)

  • exposed for y, each a test whose result differs between old and new owner source: direct origin_shift(3).y, plain let p, typed let p: Point, path-qualified crate::origin_shift(3), a read inside a compared closure argument.
  • weakly_exposed for y, each a test that passes on old and new source: other field, relational, self compare, assert_ne!, wrapped by another function, .y() method, overridden field, another value with the same field name, outer field of a nested record, expected value copied from the read, read only in the failure message, rebound let, reassigned let mut, mem::replace, assert!(.. == ..), inner block shadow, tuple-pattern shadow, for-loop shadow, if let shadow, closure-parameter shadow, conditional initializer, chained initializer, struct-update initializer, record rebuilt around the owner call.
  • Match-arm shadow abstains (static_unknown).
  • All seven findings from my earlier passes are closed on the short path.

Checks I ran on this head: cargo xtask goldens check, cargo xtask verdict-corpus check-all, cargo xtask check-evidence-promotion-honesty, all exit 0.

Limits that remain, stated so nobody reads this as wider than it is

  • A read of a branch the changed construction does not produce still reads exposed for the field-construction probe (#16524). Present for long names on main; this PR extends the same reading to short names.
  • For lift, the for-loop shadow reads exposed on this head. A binary built from current main gives the same result, so it is main's behaviour and is filed as #16551, outside this PR.
  • I did not verify the author's statement that the seam cache does not consume analyze_related_assertions.
  • I did not run the unit tests, clippy or precommit; the author reports them and the hosted run covers them.

Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready was requested, but this PR conflicts with main (head 34b2e118), so GitHub creates no test-merge ref and no qualification run can start.

  1. Merge main into the branch and resolve the conflicts.
  2. Remove and re-apply merge-ready to request admission and qualification only.
  3. After qualification is green, enqueue the PR through the native queue route; re-applying the label does not enqueue it.

…-3dbg4z

# Conflicts:
#	fixtures/evidence-promotion-honesty-corpus/corpus.json
…15274)

Formatting-only: main's legend line for weak findings changed. Classes
are unchanged.

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

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Independent source review of 1533419 by a session that did not write this PR. This pass covers the delta since 34b2e11, which I reviewed in review 6100988492.

What I compared

  • The PR's patch to crates/ and xtask/ against its merge base is identical before and after the merge of main (diffed hunk by hunk with index and position lines removed). The source I probed on 34b2e11 is the source on this head.
  • a3d6724 merges main. In the honesty corpus the PR's diff against the new merge base only adds rows; it removes none of main's.
  • 1533419 changes one line in each of six expected/human.txt files, the legend for weak (main's new wording), and adds the bless record to each fixture CHANGELOG. No class and no check.json changes.

Carried from the earlier pass, on unchanged source: the 33-case probe set and the limits stated there (#16524, #16551, the seam-cache statement I did not verify).

Not run by me on this head: any build, goldens check, corpus checks, unit tests, clippy or precommit. The author reports them and the hosted run covers them.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW_READY

Final published-head review of 1533419 by the owning session.

Inspected on this head: the full production diff in classify/reveal.rs (the short-field confirmation in analyze_related_assertions) and classify/activation.rs (reads_owner_result_field_value, compared_operands_end, latest_binding_is_owner_call, is_exact_owner_call, only_field_accesses); the unchanged RIPR-SPEC-0225 reading (value = None takes the same path as before, pinned by verdict-corpus case mined-one-line-struct-literal-field); the unit cases; eight fixtures (one positive, seven controls) and their twelve honesty-corpus rows; traceability and changelog fragments.

Evidence on this exact head: every completed check run succeeded, including Admit PR Candidate, Ripr Rust Small Result, Rust gates and both Rust test shards (the first run of the new unit cases). The Merge-ready request run (02:47Z) is later than the last output change on main (02:38Z), so the new goldens match main's wording. Local runs on this head: goldens check, check-evidence-promotion-honesty, verdict-corpus check-all, clippy on ripr with all targets, and precommit, all exit 0. Independent source review 6101129442 on this sha, after five probe rounds (33 cases) on the unchanged source.

Review threads: three Devin threads, two repaired (message read, rebound receiver) and one answered as a fail-closed missed credit, all replied to and resolved. CodeRabbit and Gemini were quota-limited throughout, so their review is missing, not clean.

Limits kept out of the claim: #16524 (a field read through a branch the changed literal is not in), #16551 (main's long-name loop shadow), a single-field record's return_value finding staying unconfirmed, and a short-field getter staying unconfirmed. No seam-cache generation bump: seam_inventory and test_grip_evidence call neither analyze_related_assertions nor the changed activation helpers.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit af1880e Nov 29, 2026
19 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-3dbg4z branch November 29, 2026 04:44
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