Skip to content

fix(classify): a bare parameter or local returned as the changed tail reaches the return sink (#13037) - #16162

Merged
EffortlessSteven merged 28 commits into
mainfrom
claude/project-thread-0onf8e
Nov 29, 2026
Merged

EffortlessSteven merged 28 commits into
mainfrom
claude/project-thread-0onf8e

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

  • A changed return that is one bare parameter or local (amount + 5 changed to amount in the else of the returned if) read propagation_unknown even when a test pinned the call that takes that branch (assert_eq!(discounted(100, false), 100)). return_value_sink accepted only text that spells a literal, call or arithmetic, so the name had no return sink and the RIPR-SPEC-0443 reached-tail pin never got a chance. Reproduced on main 195b362f.
  • bare_name_returned_tail (classify/flow.rs) now gives the name the return sink when the parser places it, once on its line, at a position whose value the owner returns: the body tail, or the tail of a plain block or either if branch in such a position. Only the sink moves; credit still comes from the existing readers.
  • Over-credit found while probing and closed in the same change: once the sink existed, a test local that only shares the name (let amount = discounted(100, true); assert_eq!(amount, 90);, which takes the other branch) read exposed through the Rust analysis credits a self-computed expected value as exposed #5830 owner-bound token rule. A bare owner name is now never a confirming token (bare_owner_name_tail in classify/reveal.rs).

This is item 2 of #13037 comment 7079745005 (item 1 is #16154).

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: docs/specs/RIPR-SPEC-0443-branch-local-return-value-grip.md (amended)
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #13037 (bare parameter/local changed tail)
Acceptance delta (one sentence): an exact pin of the call that takes the branch returning a changed bare parameter or local moves its return_value finding from propagation_unknown to exposed; other-branch, far-input and same-named-local tests stay weakly_exposed.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-0onf8e
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

Searched open and recent PRs for #13037 and "return tail": #16017 (merged, name-only comparison tails) and #14950/#15927 (merged, reached-tail pin) are related, not duplicates.

Scope

  • crates/ripr/src/analysis/classify/flow.rs: bare_name_returned_tail, consulted in return_value_sink before the unknown sink.
  • crates/ripr/src/analysis/classify/reveal.rs: bare_owner_name_tail keeps a bare owner parameter/local tail from setting owner_bound.
  • 3 new fixtures, 3 honesty-corpus cases (cases/*.json), 5 integration tests in crates/ripr/tests/computed_return_tail/bare_name_tail.rs.
  • Re-blessed: assertion_form_parity_assert_msg, assertion_form_parity_err_guard (the amount else-branch finding moves propagation_unknown to weakly_exposed; the test takes the other branch, and both parity twins move identically) and multi_hunk_removed_line_wrong_target (tail z now reads propagation yes; no related test, so the class stays no_static_path). No fixture moves to exposed.
  • Spec amendment, traceability fragment, changelog fragment.

Scope Classification

  • One production behavior

Production delta:

  • Return sink for a bare returned name, plus its token-confirmation refusal.

Evidence/support delta:

  • 5 integration tests, 3 fixtures, 3 honesty-corpus rows, 3 re-blessed goldens.

Single acceptance criterion:

  • rust_bare_name_return_tail_reached reads exposed; rust_bare_name_return_tail_other_branch and rust_bare_name_return_tail_test_local_same_name read weakly_exposed.

Non-goals:

Support-tier Impact

  • none

Claim/proof notes:

  • Changelog fragment changelog.d/13037-bare-name-return-tail.md.

Policy Impact

  • none

Proof

cargo test -p ripr --test computed_return_tail_13037        # 22 passed
cargo xtask check-evidence-promotion-honesty                 # pass; new cases read (flipping one to `exposed` fails the gate)
cargo xtask verdict-corpus check-all                         # 0 false verdicts, 0 contradictions in all 4 corpora
cargo clippy -p ripr --all-targets -- -D warnings            # exit 0
cargo clippy -p xtask --all-targets -- -D warnings           # exit 0
cargo xtask goldens check                                    # only drift: the 3 re-blessed fixtures (see below)
cargo xtask precommit                                        # exit 0

Result, failures, or skipped proof:

  • Discrimination: reverting reveal.rs alone fails a_test_binding_named_like_the_tail_does_not_confirm_it; reverting flow.rs alone fails the four sink tests.

  • Scratch-crate replay with release builds of main and this head: reached pin propagation_unknown → exposed; other branch, far input (for m in [true]), same-named local and a method whose other branch is pinned → weakly_exposed; bare-name let initializer branch unchanged.

  • goldens check in this container also reports about 35 formatting_only drifts in human.txt ("could not establish which revisions the check analyzed"), unrelated to analysis; hosted CI is the authority there.

  • cargo test -p ripr --lib cannot link in this 15 GB container; no unit tests were added in flow.rs for that reason. Hosted CI is the full run.

  • Classified seam cache generation 1.231 / 0.233 (claimed on the generation map, seam-cache generation coordination: #16449/#16453/#16419 all claim 1.215/0.217 off main 1.214; #16461 pre-recaptured to 1.216/0.218 #16466 comment 7245778984). The bump moves the portable boundary_gap unchanged-attempt snapshots and the honesty-corpus repo-exposure reports to 1.231, with their raw_json_placeholder_v1 content commitments, verify commitments and receipt byte hashes recomputed. No class moves.

  • Merged current main after the analysis hold lifted. The three new bare-name fixtures were re-blessed for main's human wording only.

Claim Boundary

May claim: a bare parameter or local returned as the changed tail is credited when an existing branch-reading pin reaches it. Must not claim: any wider credit for bare names, or a fix for the computed-tail token coincidence.

Binding resolution (reviews 6026060176, 6028496197 and comments 7110782677, 7112212023): the returned name must be spelled snake_case, a spelling heuristic rather than name resolution, since syntax cannot tell let Fallback = x; (a unit-struct pattern when struct Fallback; is in scope) from a binding. It must also resolve, at its own position, to a preceding let in a block enclosing the tail, or else to a parameter. A same-named let in a disjoint scope (the other if branch) does not count, and an item declared in an enclosing block that mentions the name (use crate::defaults::FALLBACK;) makes the reader decline, as does a preceding let .. else naming it (refutable, so a bare name there may be a constant pattern). Macro-introduced bindings are not read (conservative).

Rollback

Revert the commit; the three re-blessed goldens return with it.

Spec-Test-Code Traceability

  • Spec: RIPR-SPEC-0443 (amendment section)
  • Tests: crates/ripr/tests/computed_return_tail/bare_name_tail.rs
  • Code: classify/flow.rs::bare_name_returned_tail, classify/reveal.rs (bare_owner_name_tail)
  • Golden outputs: 3 new fixtures, 3 re-blessed
  • Metrics: branch_local_return_value_false_promotions stays zero on the corpus
  • 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.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented.

https://claude.ai/code/session_01SvmPmoZSPSU6CDFd8S3Gv3


Generated by Claude Code

… reaches the return sink (#13037)

A changed tail that is one bare name (`amount + 5` changed to `amount` in
the else branch of the returned `if`) had no return sink, so it read
propagation_unknown even under an exact pin of the call that takes that
branch. `bare_name_returned_tail` gives such a name the return sink when
the parser places it, once on its line, at a position whose value the
owner returns. Credit still comes from the RIPR-SPEC-0443 reached-tail pin.

The bare owner name is also kept from confirming observation by token: a
test local that only shares the name (`let amount = discounted(100, true)`)
read exposed once the sink existed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmoZSPSU6CDFd8S3Gv3
@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

Explain Change →

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

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 139 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: f0c7bb79-0433-4604-b322-71bfbb7517f0
Commits

Reviewing files that changed from the base of the PR and between 6c33c1f and 7b180ea.

Files selected for processing: 124

  • .ripr/traceability.d/13037-bare-name-return-tail.toml
  • changelog.d/13037-bare-name-return-tail.md
  • crates/ripr/src/analysis/classifier.rs
  • crates/ripr/src/analysis/classifier/evidence.rs
  • crates/ripr/src/analysis/classify/context.rs
  • crates/ripr/src/analysis/classify/flow.rs
  • crates/ripr/src/analysis/classify/mod.rs
  • crates/ripr/src/analysis/classify/reveal.rs
  • crates/ripr/src/analysis/seam_cache.rs
  • crates/ripr/tests/base_owner_cfg_gates.rs
  • crates/ripr/tests/computed_return_tail/bare_name_tail.rs
  • crates/ripr/tests/computed_return_tail_13037.rs
  • crates/ripr/tests/json_artifact_encoding.rs
  • crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0443-branch-local-return-value-grip.md
  • fixtures/assertion_form_parity_assert_msg/expected/CHANGELOG.md
  • fixtures/assertion_form_parity_assert_msg/expected/check.json
  • fixtures/assertion_form_parity_assert_msg/expected/human.txt
  • fixtures/assertion_form_parity_err_guard/expected/CHANGELOG.md
  • fixtures/assertion_form_parity_err_guard/expected/check.json
  • fixtures/assertion_form_parity_err_guard/expected/human.txt
  • fixtures/boundary_gap/expected/CHANGELOG.md
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json
  • fixtures/evidence-promotion-honesty-corpus/cases/rust_bare_name_return_tail_other_branch_not_promoted.json
  • fixtures/evidence-promotion-honesty-corpus/cases/rust_bare_name_return_tail_reached_promoted.json
  • fixtures/evidence-promotion-honesty-corpus/cases/rust_bare_name_return_tail_test_local_same_name_not_promoted.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-field-snapshot-missing-expected.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-field-snapshot-wrong-receiver.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-activated-unsupported.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-entry.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-intermediate.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-last-hop.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-method-entry.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-method-last-hop.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-operand.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-async-operand-helper.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-async-operand.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-dormant-body.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-foreign-helper.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-free-helper-identity.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-helper-scope-shadow.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-helper-type-parameter.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-local-wrapper.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-macro-discard.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-module-type-shadow.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-adapter-fed-error.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-bool-local-compared-with-true.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-branch-local-else-only.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-branch-local-rebound-let.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-exact.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-inline.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-literal.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-other.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-settings.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-weak.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-file-module-nested-block-renamed-other-function-outer-call-control.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-file-module-nested-block-renamed-other-function.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-guarded-boundary-guard-missing.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-guarded-statement-boundaries.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-integration-test-nested-block-renamed-other-function-sibling-mount-control.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-integration-test-nested-block-renamed-other-function.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-late-assert-eq-definition-match-arms.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-lib-test-false-skipped.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-local-binder-named-like-other-function.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-local-binder-named-like-owner-block-control.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-local-closure-named-like-owner-map.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-macro-held-owner-call.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-macro-held-owner-result-local.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-manifest-rebound-assertion-root.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-matches-compared-with-true.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-matches-or-pattern-of-values.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-matches-or-pattern-single-value-control.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-nested-block-renamed-other-function-outer-call-control.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-nested-block-renamed-other-function.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-ok-assertion-failure-seam.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-panic-marker-collision.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-panic-marker-neutral.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-proximity-other-function.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-rebound-assert-eq-match-arms.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-rebound-read-macro-unselected-arm.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-renamed-other-function-qualified-control.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-renamed-other-function.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-same-named-call-kinds.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-test-local-rival-bare-use.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-test-local-rival-glob-use.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-tuple-rebound-owner-unselected-arm.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-unselected-match-arm.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-wrapper-fed-error.json
  • fixtures/evidence-promotion-honesty-corpus/reports/rust-test-local-rival-import-control.json
  • fixtures/multi_hunk_removed_line_wrong_target/expected/CHANGELOG.md
  • fixtures/multi_hunk_removed_line_wrong_target/expected/check.json
  • fixtures/multi_hunk_removed_line_wrong_target/expected/human.txt
  • fixtures/rust_bare_name_return_tail_other_branch/SPEC.md
  • fixtures/rust_bare_name_return_tail_other_branch/diff.patch
  • fixtures/rust_bare_name_return_tail_other_branch/expected/CHANGELOG.md
  • fixtures/rust_bare_name_return_tail_other_branch/expected/check.json
  • fixtures/rust_bare_name_return_tail_other_branch/expected/human-full.txt
  • fixtures/rust_bare_name_return_tail_other_branch/expected/human.txt
  • fixtures/rust_bare_name_return_tail_other_branch/input/Cargo.toml
  • fixtures/rust_bare_name_return_tail_other_branch/input/src/lib.rs
  • fixtures/rust_bare_name_return_tail_other_branch/input/tests/price.rs
  • fixtures/rust_bare_name_return_tail_reached/SPEC.md
  • fixtures/rust_bare_name_return_tail_reached/diff.patch
  • fixtures/rust_bare_name_return_tail_reached/expected/CHANGELOG.md
  • fixtures/rust_bare_name_return_tail_reached/expected/check.json
  • fixtures/rust_bare_name_return_tail_reached/expected/human-full.txt
  • fixtures/rust_bare_name_return_tail_reached/expected/human.txt
  • fixtures/rust_bare_name_return_tail_reached/input/Cargo.toml
  • fixtures/rust_bare_name_return_tail_reached/input/src/lib.rs
  • fixtures/rust_bare_name_return_tail_reached/input/tests/price.rs
  • fixtures/rust_bare_name_return_tail_test_local_same_name/SPEC.md
  • fixtures/rust_bare_name_return_tail_test_local_same_name/diff.patch
  • fixtures/rust_bare_name_return_tail_test_local_same_name/expected/CHANGELOG.md
  • fixtures/rust_bare_name_return_tail_test_local_same_name/expected/check.json
  • fixtures/rust_bare_name_return_tail_test_local_same_name/expected/human-full.txt
  • fixtures/rust_bare_name_return_tail_test_local_same_name/expected/human.txt
  • fixtures/rust_bare_name_return_tail_test_local_same_name/input/Cargo.toml
  • fixtures/rust_bare_name_return_tail_test_local_same_name/input/src/lib.rs
  • fixtures/rust_bare_name_return_tail_test_local_same_name/input/tests/price.rs
  • xtask/src/tests/rust_corpus_projection.rs

Summary by CodeRabbit

  • Bug Fixes
    • Improved analysis of changed return values when functions return a parameter or local variable directly. Reports now distinguish cases where tests exercise and verify the changed return from cases where they only cover another branch or use a same-named local.
    • Updated findings to more accurately identify return-value flow and test observation.

Walkthrough

The return-value classifier now recognizes qualifying bare parameter and local names in returned tail positions. Matching names alone no longer confirm observation. Regression tests, fixture reports, and cache schema generations are updated.

Changes

Bare-name return-tail attribution

Layer / File(s) Summary
Return-sink rule and observation checks
crates/ripr/src/analysis/classify/flow.rs, crates/ripr/src/analysis/classify/reveal.rs, docs/specs/RIPR-SPEC-0443-branch-local-return-value-grip.md
A bare snake_case name can be a return sink when it appears in a supported returned position and has qualifying parameter or preceding let binding evidence. Matching owner-scoped names alone do not confirm observation.
Regression tests and specification mapping
crates/ripr/tests/computed_return_tail/*, .ripr/traceability.d/*, docs/specs/RIPR-SPEC-0443-branch-local-return-value-grip.md, changelog.d/*
Regression cases cover tail positions, binding scope, exclusions, and exposure classifications. The test module, traceability entry, specification mappings, and changelog document the cases.
Bare-name fixture scenarios
fixtures/rust_bare_name_return_tail_*/..., fixtures/evidence-promotion-honesty-corpus/cases/*
Fixture inputs and expected reports cover a reached tail classified as exposed, a different branch classified as weakly exposed, and a same-named test local that does not confirm observation.
Updated fixture classifications
fixtures/assertion_form_parity_*/expected/*, fixtures/multi_hunk_removed_line_wrong_target/expected/*
Affected reports now show return-value propagation evidence where applicable. The parity fixtures classify the findings as weakly exposed rather than propagation unknown.
Cache generations and refreshed snapshots
crates/ripr/src/analysis/seam_cache.rs, crates/ripr/tests/lsp_lifecycle/*, xtask/src/tests/*, docs/OUTPUT_SCHEMA.md, fixtures/boundary_gap/expected/*, fixtures/evidence-promotion-honesty-corpus/reports/*
Classified-seam cache generations advance from 1.229 to 1.231 and from 0.231 to 0.233. Corresponding version expectations, documentation, fixture metadata, and artifact hashes are refreshed.

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

Possibly related PRs

Merge Risk: Low · previous review 6c33c

Bare parameter and local return tails now reach the return sink, and a matching name alone no longer confirms observation. In a narrow case where the changed tail carries a block comment, a same-named test local could still be credited and overstate exposure. This is a small fix and is safe to follow up on or fix before merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main production change: a bare parameter or local returned as the changed tail now reaches the return-value sink in the classifier. The changeset matches this, including flow.rs (b…
Description check Passed The description follows the repository template closely. It covers the summary, source-of-truth links, candidate relationships, scope and scope classification, support-tier and policy impact, proof co…
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: Title check

Explanation

The title names the main production change: a bare parameter or local returned as the changed tail now reaches the return-value sink in the classifier. The changeset matches this, including flow.rs (bare_name_returned_tail), reveal.rs (bare owner-name token refusal), spec amendment, fixtures, and tests. The title follows the conventional commit form and carries the issue number, which is acceptable.

Full details: Description check

Explanation

The description follows the repository template closely. It covers the summary, source-of-truth links, candidate relationships, scope and scope classification, support-tier and policy impact, proof commands with results, claim boundary, rollback, traceability, static language check, and engineering check. The description is detailed and specific. Some template items remain unfilled: the Swarm/Source Boundary checkbox is marked, but the PR-level 'Proposal', 'ADR', and 'Plan item' fields are set to n/a rather than left blank, which is acceptable. The Gates checklist and the Extension changes section are absent from the author's description, and the Proof section does not include every gate listed in the template (for example cargo fmt, cargo test --workspace, cargo doc, cargo package). The CI Economics section is marked n/a, which the template permits for ordinary PRs.

Finishing Touches

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 checks the return-tail line,
And marks the names that bind in time.
A branch is tested, a sink is found,
Same-name clues stay on the ground.
New reports hop into view,
Cache versions follow too.

@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 9a3e29a against #13037 item 2. I did not write this PR.

Inspected: bare_name_returned_tail and its call site in flow.rs, the bare_owner_name_tail change to owner_bound in reveal.rs, the five integration tests, RIPR-SPEC-0443, the three corpus cases and fixtures, and the three existing fixtures whose goldens moved.

Sink: the new path only adds a return_value sink. It requires a non-unit return type, a one-identifier probe whose text is the same before and after the edit is applied (probe.after), and that identifier exactly once on the line, in a returned position (body tail, plain block tail, or an if branch tail, recursively). Credit still comes only from the #14950 reached-tail pin. The three existing goldens that move (assertion_form_parity_assert_msg, assertion_form_parity_err_guard, multi_hunk_removed_line_wrong_target) go from an unknown sink to the returned name. The parity pair moves propagation_unknown to weakly_exposed, because their test takes the other branch. No existing fixture is promoted to exposed.

Over-credit probes, run with the binary built from this head on two-commit temp repos (base amount + 5, head amount, and similar). Only pins whose input selects the changed branch read exposed: discounted(100, false) == 100, a > 50 condition hit with f(100) == 100, and the middle arm of an if / else if / else with (false, true). Each of the following reads weakly_exposed: the other branch; a loop-supplied or runtime-derived flag; a bare > relation; a test local named amount bound from the other branch; the result bound but a different value asserted; the input asserted instead of the result; the result shadowed and recomputed before the assertion; two calls with only the other-branch one asserted; a struct field asserted instead of the method result; an early return path; and the else and if-true misses of the nested and conditional shapes. A method whose tail is a local copied from self.amount, and a tail after an early return, read weakly_exposed even when pinned. Those are missed credit, in the conservative direction.

Name-coincidence fix: cargo test -p ripr --test computed_return_tail_13037 passes 22 of 22 locally. Discriminating control: with owner_bound no longer gated on bare_owner_name_tail, a_test_binding_named_like_the_tail_does_not_confirm_it stops passing, so the gate is what holds that case.

Gates on this head: cargo xtask goldens check exits 0, and cargo xtask check-evidence-promotion-honesty exits 0 with the three new cases present in corpus-summary.json. git merge-tree against current main 8b1865f is clean.

Not run by me: the lib unit tests (the lib test binary does not link in this container). Hosted qualification is owed on this head.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Independent source review at 9a3e29a4b4ad73e438f32ba2f429d16f103fc017: the only new not-returned initializer test can pass vacuously. bare_name_tail.rs:85–112 treats every Err from finding() as success, including fixture setup/analysis errors and ambiguous probe matching (computed_return_tail_13037.rs:53–97), not just a successfully analyzed report containing no matching return row. Please require successful analysis and inspect the rows, allowing only a genuinely absent row or a held row without the false sink.

The new sink matcher (flow.rs:1011–1068) also establishes an unqualified returned identifier but does not resolve it to a parameter/local; an unqualified const DEFAULT path meets the same syntactic conditions if there is a ReturnValue probe. That can be a valid return sink, but goes beyond the stated parameter/local boundary, and the downstream branch reader does not resolve it either. Either bound the implementation or name the wider syntax contract and add a contrasting control before qualification. No binary replay run in this review.

…; make the not-returned control non-vacuous (#16162 review)

A one-identifier tail now reaches the return sink only when the owner binds
it as a parameter or in a let pattern; a same-file constant spelled as one
identifier gets no sink here. The not-returned initializer test now requires
a successful analysis with a finding on the edited line instead of treating
every error as success.

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

Copy link
Copy Markdown
Member Author

Both findings repaired in 6a8fdbe.

  1. Vacuous not-returned control. a_bare_name_whose_value_is_not_returned_gets_no_return_sink now goes through findings_on_edited_line, which requires exactly one source line to read the edited text, requires check_workspace to succeed, and requires at least one finding on the edited line. Then it asserts that no finding on that line carries a ReturnValue sink named amount and that none reads exposed. A setup, analysis or premise error now fails the test instead of passing it.
  2. Identifier not resolved to a parameter/local. bare_name_returned_tail now gives the sink only when the owner binds the name itself, as a parameter or in a let pattern in its body. A constant, static, unit struct or imported item spelled as one identifier gets no sink from this reader. New test only_a_name_the_owner_binds_gets_the_return_sink: a let fallback = 7; local tail gets the sink (control), and pub const FALLBACK as the tail does not. With the binding check disabled, that test fails, so the check is what holds it. The RIPR-SPEC-0443 amendment, traceability fragment and changelog fragment name the narrower contract.

On this head: cargo test -p ripr --test computed_return_tail_13037 passes 23 of 23. cargo xtask goldens check exits 0 with no non-formatting drift. check-evidence-promotion-honesty passes. verdict-corpus check-all shows 0 false verdicts in all 4 corpora. cargo clippy -p ripr and cargo clippy -p xtask (--all-targets -D warnings) and cargo fmt --check are clean. cargo xtask precommit was not re-run for this follow-up. The lib unit tests still need the hosted run.


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.

SOURCE_REVIEW_READY

Independent source review of head 6a8fdbe. My earlier review of 9a3e29a stands for the unchanged parts; this pass covers the whole PR at this head, with emphasis on the delta that answers review comment 7107017696.

Delta inspected: flow.rs (owner-binding requirement in bare_name_returned_tail), bare_name_tail.rs (new findings_on_edited_line helper, rewritten not-returned control, new only_a_name_the_owner_binds_gets_the_return_sink), the RIPR-SPEC-0443 paragraph and its test list, traceability and changelog.

  1. Vacuous control: the not-returned test now requires a successful analysis and at least one finding on the edited line before it checks that no return_value sink names amount and nothing reads exposed. The helper also requires the edited text to appear on exactly one line. An analysis error or a missed line now surfaces as an Err, not a pass.
  2. Constant sink: the reader now requires the name to be bound by the owner itself, as a parameter pattern or a let pattern in its body. The new test pairs a let-bound local that reaches the sink with a same-file const FALLBACK that does not. Discriminating control, run locally: with the binding check disabled, only_a_name_the_owner_binds_gets_the_return_sink stops passing. With it in place, cargo test -p ripr --test computed_return_tail_13037 passes 23 of 23.

Gates on this head, run locally: cargo fmt --check and cargo clippy -p ripr --all-targets -- -D warnings are clean. cargo xtask goldens check, cargo xtask check-evidence-promotion-honesty and cargo xtask verdict-corpus check-all exit 0 (traps credited 0/13). git merge-tree against current main f9e9873 is clean.

One observation, which does not hold this head back. The binding check scans every let in the body, regardless of scope. With pub const FALLBACK and an unrelated inner block { let FALLBACK = 1; }, a tail FALLBACK still gets the return_value sink; I checked this with the binary built from this head. The sink is still factually the returned value, and the finding stayed weakly_exposed even with an exact pin of that branch, so nothing is over-credited. Only the spec's "binds it itself" wording is looser than scope-exact. Closure, for, if let and match bindings are not counted, which is the conservative direction.

Not run by me: the lib unit tests (the lib test binary does not link in this container). Hosted qualification is owed on this head.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Re-review at 6a8fdbef8a2c72080a2961c0c6b7c9a8b5a57df7: the not-returned control now requires successful analysis. The new binding check in flow.rs:1036–1044 still counts a let anywhere under the body, not a binding visible at the returned path. For example, in a tail if, the then block can let FALLBACK = amount; FALLBACK, while the else block imports crate::defaults::FALLBACK and returns FALLBACK on its own changed line. The then binding does not reach the else path, but it satisfies the existential check, so the new reader can label the imported constant as the supposedly local tail. The value really is returned; this is not evidence of false exposed, but it contradicts the narrowed claim and evades the current constant control. Resolve lexically or limit accepted lets to preceding declarations in enclosing scopes and decline ambiguous bindings. Add a variant of the constant control with a same-named local in a disjoint scope. Source review only.

…ts position (#16162 review)

The owner-binding check counted a let anywhere in the body, so a let in the
other branch could stand in for an imported or file-level constant returned
on the changed line. The name now resolves lexically: a preceding let in a
block enclosing the tail, or else a parameter. An item in an enclosing block
that mentions the name makes the reader decline.

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

Copy link
Copy Markdown
Member Author

Repaired in 0c5f898.

The binding check now resolves the returned name lexically (owner_binding_visible_at in flow.rs). It walks the blocks that enclose the returned path and accepts a let in one of those blocks that precedes the path, or else a parameter. A let in a disjoint scope, such as the other if branch, no longer counts. If an item declared in an enclosing block mentions the name (use, const, static, ...), the reader declines rather than guess.

New test a_same_named_local_in_a_disjoint_scope_does_not_bind_the_tail covers three cases:

  • your example: the then block has let FALLBACK = amount; and the else block has use crate::defaults::FALLBACK; FALLBACK. No sink.
  • a file-level pub const FALLBACK with the same disjoint then-block let. No sink.
  • control: a preceding let fallback = 7; in the returning block itself. Sink.

Discriminating control: with the old any-let-in-body rule put back, this test stops passing and the other bare-name tests still pass.

On this head: cargo test -p ripr --test computed_return_tail_13037 passes 24 of 24. goldens check exits 0 with no non-formatting drift. The honesty corpus passes. verdict-corpus check-all shows 0 false verdicts in all 4 corpora. Clippy on ripr and xtask, fmt --check, check-traceability and check-spec-format are clean. The spec amendment and the PR's claim boundary state the lexical contract.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Exact 0c5f8982 re-review: the enclosing-statement and ordering checks fix the disjoint binding search; the scoped-import negative and same-block positive exercise it. The first new test’s source is not compile-valid Rust: with const FALLBACK: u32 = 7 in scope, let FALLBACK = amount; is a refutable constant pattern, not a same-name binding. The syntax-only harness can miss this. There is also a valid residual: let FALLBACK = amount else { return 0; }; with that constant in scope, then the edited FALLBACK as function tail. The bare pattern parses as an IdentPat, but Rust resolves it as the constant; the new preceding-let condition still counts it as local. Prefer the valid scoped-import negative for the fixed defect; add a compile-valid constant-pattern negative or decline ambiguous patterns. This is inaccurate binding admission, not evidence of false exposed. Source only.

… names (#16162 review)

A let-else pattern is refutable, so a bare name in it may be a constant
pattern rather than a new binding. The reader now declines instead of
counting it as a local. The disjoint-scope test drops its compile-invalid
file-level constant source and keeps the scoped-import negative.

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

Copy link
Copy Markdown
Member Author

Repaired in 6b188b2.

  • Compile-invalid test source: removed. The file-level const FALLBACK variant had let FALLBACK = amount;, which is a refutable constant pattern. a_same_named_local_in_a_disjoint_scope_does_not_bind_the_tail now keeps only the scoped-import negative (then-block let FALLBACK = amount;, else-block use crate::defaults::FALLBACK; FALLBACK) and the same-block positive control.
  • let .. else residual: owner_binding_visible_at now declines when a preceding let .. else in an enclosing block names the returned identifier. That pattern is refutable, so a bare name in it may be a constant pattern, and syntax alone can't tell. New negative a_bare_name_in_a_preceding_let_else_is_not_read_as_a_local uses your shape (pub const FALLBACK: u32 = 7;, let FALLBACK = amount else { return 0; };, tail FALLBACK). With the decline disabled, that test stops passing and the other bare-name tests still pass.

Each of the new test sources compiles with rustc --edition 2024 --crate-type lib: the scoped-import case, the let-else case, the let-bound and same-block controls, the file-level constant control and the not-returned initializer.

On this head: computed_return_tail_13037 passes 25 of 25. goldens check exits 0. The honesty corpus passes. verdict-corpus check-all shows 0 false verdicts in all 4 corpora. Clippy on ripr and xtask (--all-targets -D warnings), fmt --check, check-traceability and check-spec-format are clean. The spec amendment and the claim boundary name the let-else decline.


Generated by Claude Code

EffortlessSteven commented Nov 23, 2026 •

Copy link
Copy Markdown
Member Author

Exact 6b188b2b re-review: the source now declines the prior let-else case, removes the invalid fixture, and retains the valid scoped-import test. One boundary to resolve without chasing individual syntax variants: a plain let Fallback = amount; with pub struct Fallback; in scope can be an irrefutable unit-struct pattern, not a local binding. Its bare returned Fallback still passes the lexical check. That means the blanket exclusion of other items in flow.rs overstates what IdentPat can prove. Either require unambiguous binding evidence, or document this as a visible identifier-in-pattern heuristic and make sure downstream analysis never uses that alone to prove an owner-local assertion. A unit-struct negative would pin the first option. The value is genuinely returned in this example; no false exposed demonstrated.

At 9dc3046c, the new negative covers the uppercase constructor and the spelling heuristic is now disclosed. One copy reconciliation: the earlier spec sentence still says no unit struct or imported item adds a sink, while use defaults::Fallback as fallback; at module scope can give a unit constructor the same lowercase pattern spelling and pass this syntax-only gate. State that the guard withholds item-like spellings and ambiguous patterns it sees, rather than claims to resolve all items. The reproduced scope refinement and downstream reached-tail requirement are separate; this example does not show false exposed.

At b2c82e88, the spec and code comment now explicitly describe the lowercase module-level alias limitation and no longer claim full item resolution. This resolves the scoped copy concern, not the underlying name-resolution limitation. The intervening exact test checks that an enclosing-block item shadows an outer local. No false exposed case demonstrated or hosted evidence here.

@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 6b188b2, answering PR comment 7111460489.

What I inspected:

  • The delta from 0c5f898 (flow.rs owner_binding_visible_at, bare_name_tail.rs, the RIPR-SPEC-0443 paragraph and test list, and the traceability entry).
  • The decline: a preceding let .. else that binds the name now returns None. This is the right boundary. A plain let or a parameter must be irrefutable (E0005), so it cannot hold a constant pattern. That makes let .. else the only refutable binding form this walker visits. Declining when a later plain let shadows an earlier let-else name is conservative, not a wrong credit.
  • Test sources: I compiled both the new let-else source (const FALLBACK plus let FALLBACK = amount else { return 0; }) and the kept imported-constant source with rustc. Both exit 0, so the compile-invalid source from the earlier head is gone.

Executed on this head (cloud Linux, shared target dir):

  • cargo fmt --check: clean.
  • cargo test -p ripr --test computed_return_tail_13037: 25 of 25 pass.
  • Control: with the binding.let_else().is_some() decline deleted, a_bare_name_in_a_preceding_let_else_is_not_read_as_a_local panics at bare_name_tail.rs:252 while the other 7 bare_name tests still pass. The control was restored afterward.
  • cargo clippy -p ripr --all-targets -- -D warnings, cargo xtask goldens check, cargo xtask check-evidence-promotion-honesty, cargo xtask verdict-corpus check-all (traps credited 0/13), cargo xtask check-traceability and cargo xtask check-spec-format all exit 0.
  • git merge-tree --write-tree against current main is clean.

Not covered here: the ripr lib unit-test binary (it cannot link in this container) and hosted exact-head CI. Those remain with hosted qualification.


Generated by Claude Code

…16162 review)

Syntax cannot tell a binding from a path pattern: with struct Fallback in
scope, let Fallback = x; is a unit-struct pattern. The reader now admits
only names spelled as bindings (snake_case), documented as a spelling
heuristic that admits only the return sink. The scope, item and let-else
controls use lowercase names so each still tests its own guard; a
unit-struct negative pins the casing rule.

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

Copy link
Copy Markdown
Member Author

Repaired in 9dc3046, taking the first option (require binding-shaped evidence) and documenting its limit.

  • bare_name_returned_tail now admits only a snake_case name (lowercase letters, digits, _). Syntax alone cannot tell let Fallback = input; (an irrefutable unit-struct pattern when struct Fallback; is in scope) from a binding. snake_case is the spelling Rust's lints expect of a local and not of a constant, static, unit struct or variant. The code comment, the RIPR-SPEC-0443 amendment and the claim boundary all call this a spelling heuristic, not name resolution. It admits only the return sink. Credit still needs the reached-tail pin, and the bare owner name never confirms by token.
  • New negative a_name_spelled_like_an_item_is_not_read_as_a_local: pub struct Fallback;, fn pick(input: Fallback, member: bool) -> Fallback { if member { return input; } let Fallback = input; Fallback }, with the tail changed from input to Fallback. No return sink.
  • The constant, scoped-import and let-else controls now use a lowercase fallback constant (with #[allow(non_upper_case_globals)]). That way each control still tests its own guard instead of passing on the casing rule.

Discrimination, each run on this head:

  • Casing rule reverted to any-alphabetic: only a_name_spelled_like_an_item_is_not_read_as_a_local fails.
  • let-else decline disabled: only a_bare_name_in_a_preceding_let_else_is_not_read_as_a_local fails.

Every source in bare_name_tail.rs compiles with rustc --edition 2024 --crate-type lib -D warnings.

On this head: computed_return_tail_13037 passes 26 of 26. goldens check exits 0. The honesty corpus passes. verdict-corpus check-all shows 0 false verdicts in all 4 corpora. Clippy on ripr and xtask (--all-targets -D warnings), fmt --check, check-traceability and check-spec-format are clean.


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.

Not ready: one of the five guards has no test of its own.

Independent source review of head 9dc3046, answering PR comment 7112212023.

Finding: the enclosing-block item guard is not discriminated. In owner_binding_visible_at (flow.rs), the ast::Stmt::Item arm returns None when an item in an enclosing block mentions the name. When I deleted that return None, all 9 bare_name tests still passed. The imported case in a_same_named_local_in_a_disjoint_scope_does_not_bind_the_tail does not reach this guard. Its let fallback sits in the other if branch, so the scope walk already yields false.

The guard does real work. This source compiles (rustc 2024, price(100, false) == 7), and the tail returns the imported constant rather than the outer local:

pub mod defaults {
    #[allow(non_upper_case_globals)]
    pub const fallback: u32 = 7;
}

pub fn price(amount: u32, member: bool) -> u32 {
    let fallback = amount;
    if member {
        amount
    } else {
        use crate::defaults::fallback;
        fallback
    }
}

With findings_on_edited_line(source, "amount + 1", "fallback", "assert_eq!(price(100, false), 7);") and assert!(!returns_name(..)), the test passes on this head and stops passing with the item guard deleted. Suggested repair: add it as the item guard's own test, either in place of or beside the imported case, plus its traceability and spec test-list lines.

Per-guard controls on this head. Each control deletes or weakens one guard and runs the 9 bare_name tests:

  • Casing rule restored to is_ascii_alphabetic/is_ascii_alphanumeric: only a_name_spelled_like_an_item_is_not_read_as_a_local stops passing.
  • let-else decline deleted: only a_bare_name_in_a_preceding_let_else_is_not_read_as_a_local stops passing.
  • Binding check forced true: only only_a_name_the_owner_binds_gets_the_return_sink stops passing. Its lowercased constant now reaches the binding check rather than the casing rule.
  • Scope walk widened to every StmtList in the body: a_same_named_local_in_a_disjoint_scope_does_not_bind_the_tail stops passing, along with two others.
  • Item guard deleted: nothing stops passing (the finding above).

Otherwise sound. The snake_case rule is labeled in code and in RIPR-SPEC-0443 as a spelling heuristic. It only narrows which names reach the sink, so it can miss credit but cannot add any. cargo fmt --check is clean, and 26 of 26 computed_return_tail tests pass. I did not run clippy, goldens, honesty or verdict-corpus on this head, and this repair would not change their inputs.


Generated by Claude Code

…ating test (#16162 review)

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

Copy link
Copy Markdown
Member Author

Repaired in this push: the enclosing-block item guard now has its own test.

an_item_in_an_enclosing_block_shadows_an_outer_local uses your source: function-level let fallback = amount;, then use crate::defaults::fallback; fallback in the else. I added #[allow(unused_variables)] so it compiles under rustc --edition 2024 -D warnings. It asserts no return_value sink named fallback. With the ast::Stmt::Item arm's return None neutralized, this test fails and the other 9 bare-name tests still pass. The imported case in the disjoint-scope test is kept beside it. Spec test list and traceability fragment updated. Production code is unchanged from 9dc3046.

On this head: computed_return_tail_13037 passes 27 of 27. fmt --check, cargo clippy -p ripr --all-targets -- -D warnings, check-traceability and check-spec-format are clean. Goldens, honesty and verdict-corpus inputs are unchanged since 9dc3046, where they passed.


Generated by Claude Code

…not name resolution (#16162 review)

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

Copy link
Copy Markdown
Member Author

Copy reconciliation for comment 7112212023 (its 9dc3046 addendum) is in this push. Only the spec text and the bare_name_returned_tail doc comment change, plus the item-guard test from the previous push.

The RIPR-SPEC-0443 amendment no longer says a unit struct or imported item never adds a sink. It now says three things:

  • The reader needs syntactic binding evidence at the tail's position: a preceding enclosing-block let or a parameter. A disjoint-scope let does not count.
  • It declines on items it sees in enclosing blocks and on a preceding let .. else.
  • This is not name resolution. A module-level use defaults::Fallback as fallback; gives a unit constructor a lowercase spelling this reader cannot see. The snake_case rule and the declines withhold the item-like spellings and ambiguous patterns it sees, and the reading admits only the sink, so credit still needs the reached-tail pin.

The function's doc comment says the same.

On this head: computed_return_tail_13037 passes 27 of 27. fmt --check, cargo clippy -p ripr --all-targets -- -D warnings, check-traceability and check-spec-format are clean.


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.

SOURCE_REVIEW_READY

Independent source review of head b2c82e8. This supersedes my earlier review on 9dc3046, whose only finding (the enclosing-block item guard had no test of its own) is now repaired.

What changed since 9dc3046:

  • 650019a adds an_item_in_an_enclosing_block_shadows_an_outer_local, with matching traceability and RIPR-SPEC-0443 test-list lines.
  • b2c82e8 rewrites the bare_name_returned_tail doc comment and the RIPR-SPEC-0443 paragraph. They now describe syntactic binding evidence, not name resolution, and name a module-level use .. as fallback as a case the reader cannot see. The flow.rs change is comment-only. Production logic is the same as 9dc3046.

Per-guard controls (each guard deleted or weakened on its own, running the 10 bare_name tests):

  • Item guard return None deleted (on 650019a): only an_item_in_an_enclosing_block_shadows_an_outer_local stops passing.
  • Casing rule restored to alphabetic/alphanumeric (on 9dc3046, same logic): only a_name_spelled_like_an_item_is_not_read_as_a_local stops passing.
  • let-else decline deleted: only a_bare_name_in_a_preceding_let_else_is_not_read_as_a_local stops passing.
  • Binding check forced true: only only_a_name_the_owner_binds_gets_the_return_sink stops passing.
  • Scope walk widened to every StmtList in the body: a_same_named_local_in_a_disjoint_scope_does_not_bind_the_tail stops passing.

Wording check: the spec now says the reader withholds the item-like spellings it can see and does not claim to rule out every item. That matches the code. The guards only narrow which names reach the return sink, and credit still needs the reached-tail pin.

Executed:

  • On b2c82e8: cargo fmt --check, cargo test -p ripr --test computed_return_tail_13037 (27 of 27), cargo clippy -p ripr --all-targets -- -D warnings, cargo xtask check-spec-format, cargo xtask check-traceability, and git merge-tree --write-tree against current main all exit 0.
  • On 650019a (same logic and tests, comments differ): cargo xtask goldens check, cargo xtask check-evidence-promotion-honesty and cargo xtask verdict-corpus check-all exit 0.

Not covered here: the ripr lib unit-test binary (it cannot link in this container) and hosted exact-head CI.


Generated by Claude Code

coderabbitai[bot]

This comment was marked as resolved.

EffortlessSteven commented Nov 23, 2026 •

Copy link
Copy Markdown
Member Author

Independent source confirmation of inline 4672137159 at b2c82e88: the owner_scoped_tokens path deliberately retains digit-leading tokens, so bare_owner_name_tail also suppresses the only confirming 100 token in an owner-bound assertion. The existing numeric-token test uses a computed return and does not hit the equality check. An isolated control is tax_reveal("100", … assert_eq!(tax(input), 100) …) with discriminate.state == StageState::Yes; the helper disables alternate return-pin paths. This identifies lost token credit, not a verified final verdict change. No runtime test run here.

At 3e2211e, the guard excludes digit-leading tokens using the same predicate that classifies those tokens as owner-scoped. The added 104→105 test passes a local argument and asserts the changing literal; ordinary binding names retain the hold. This resolves the source finding. I did not run the regression.

The bare-name tail refusal matched any owner-scoped token equal to the
tail, and owner_scoped_tokens also holds digit-leading literals. A
multi-digit literal tail (105) in an owner-bound assertion with a local
call argument lost its #5830 token credit and read weakly_exposed.
Exclude digit-leading tokens so the refusal covers names only; the new
test fails on the previous head and passes here.

Found by CodeRabbit review on b2c82e8.

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

@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 3e2211e. It covers the one commit since my marker on b2c82e8: the reveal.rs fix for the CodeRabbit regression on multi-digit literal tails.

What I inspected:

  • reveal.rs bare_owner_name_tail now skips digit-leading tokens. owner_scoped_tokens admits only owner parameters, owner locals and digit-leading tokens, so after this change the bare-name decline matches exactly a parameter or local name returned as the tail, as intended. true/false and other keywords never enter that token set, so no other literal class is affected.
  • The new test a_numeric_literal_tail_keeps_its_owner_bound_token_credit: its tail is 105, an owner-bound assert_eq!(fee(amount), 105), and a local argument the branch-reading pin does not fold.

Control: with reveal.rs restored to b2c82e8 and the rest of this head kept, the new test panics at bare_name_tail.rs:334. It reads WeaklyExposed where it expects Exposed. On this head it passes.

Executed on this head (cloud Linux, shared target dir), all exit 0:

  • cargo fmt --check
  • cargo test -p ripr --test computed_return_tail_13037 (28 of 28)
  • cargo clippy -p ripr --all-targets -- -D warnings
  • cargo xtask goldens check
  • cargo xtask check-evidence-promotion-honesty
  • cargo xtask verdict-corpus check-all
  • cargo xtask check-traceability
  • cargo xtask check-spec-format
  • git merge-tree --write-tree against current main

My per-guard controls from b2c82e8 still apply: flow.rs is unchanged.

Not covered here: the ripr lib unit-test binary (it cannot link in this container) and hosted exact-head CI.


Generated by Claude Code

…ly change (#13037)

The bare-name sink reads only the new-side owner. When the diff also
deletes an early return beside the tail, the old owner may return the
pinned value too (unary_tail_return_pin found f(5) == 5 credited). The
direct return now needs owner_sole_change; otherwise propagation stays
unknown (bare_name_tail_unpaired).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmoZSPSU6CDFd8S3Gv3
…ves more of an existing owner (#13037)

A new owner (new file, nothing removed inside it) has no old return to
agree with the pinned value, so it keeps its credit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmoZSPSU6CDFd8S3Gv3
…npaired bare-tail rule (#13037)

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

@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 29c417f. It covers the commits since my marker on 1824472: the qualification repairs 3a1111f, 565ab97, 2b3a78f and 29c417f.

What I inspected:

  • bare_name_tail_unpaired (classifier.rs, evidence.rs, context.rs). The flag is set when three things hold: the probe's sink comes from the bare-name rule, owner_sole_change is None, and the diff removes a line inside the owner's range. With the flag set, evidence.rs drops the propagation witness and reads propagate as Unknown, naming bare_name_tail_unpaired. The flag only withholds credit. A new owner, with nothing removed inside it, keeps its credit, and so does a tail line that is the owner's only change. It reuses the existing owner_sole_change reading rather than adding a parallel one.
  • json_artifact_encoding::baseline_diff_reads_both_inputs_in_a_powershell_encoding. It now takes the gap count from its own baseline and requires at least one gap. The encoding contract it tests (every baseline entry compared, none read as missing_current_input) is unchanged.
  • multi_hunk_removed_line_wrong_target rebless. In check.json, only one()'s return_value finding moves: propagate goes from Yes to Unknown and confidence from 0.48 to 0.35, and the class stays no_static_path. Because of the confidence drop, human.txt's "Start here" pick moves from line 4 to the line 2 static_unknown finding. Its stub line and the hidden-list grouping follow from that. No class changes.

Controls on this head:

  • With bare_name_tail_unpaired forced false, bare_name_tail::a_bare_tail_whose_owner_lost_an_early_return_is_not_credited stops passing. So does unary_tail_return_pin::an_old_owner_with_more_than_the_replaced_line_is_not_exposed, which is the over-credit that the full local integration run found. The sole-line control in the new test stays Exposed.

Executed on this head (cloud Linux, shared target dir), all exit 0:

  • cargo fmt --check
  • cargo test -p ripr for --test computed_return_tail_13037 (31/31), --test unary_tail_return_pin (24/24), --test json_artifact_encoding (3/3) and --test base_owner_cfg_gates (23/23)
  • cargo clippy -p ripr --all-targets -- -D warnings
  • cargo xtask goldens check, cargo xtask check-evidence-promotion-honesty, cargo xtask verdict-corpus check-all, cargo xtask check-traceability, cargo xtask check-spec-format, cargo xtask check-allow-attributes and cargo xtask check-doc-artifacts

Integration note: main moved to 706f08a, and #16554 also reblessed multi_hunk_removed_line_wrong_target. This head now conflicts with main in that fixture's expected/CHANGELOG.md. Its check.json auto-merges, but the combined goldens need a check on the merged tree. The next head that merges main needs its own marker covering that resolution.

Not covered here: the ripr lib unit-test binary (it cannot link in this container) and hosted exact-head CI.


Generated by Claude Code

…-0onf8e

# Conflicts:
#	fixtures/multi_hunk_removed_line_wrong_target/expected/CHANGELOG.md
…tion 1.231 (#13037)

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

@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 fb1a367. This head merges main at 706f08a (#16554). It covers the merge resolution since my marker on 29c417f.

Resolution checked

  • PR diff against main: byte-identical to 29c417f's PR diff, with three exceptions:
    • multi_hunk_removed_line_wrong_target/expected/CHANGELOG.md keeps main's entries and appends the #13037 bless as entry 49. That fixture's check.json carries the same PR-side change as before on top of #16554's base_line.
    • Two honesty reports that main added, rust-repo-exposure-guarded-statement-boundaries and rust-test-local-rival-import-control, move from 1.229 to 1.231. Every other changed line in them is a dependent hash.
  • Generation: main is still at 1.229/0.231, so the 1.231/0.233 claim stands.
  • Integration: git merge-tree --write-tree against current main (6a4c2d8) is clean.
  • Carried forward: my 29c417f review of bare_name_tail_unpaired and its controls still applies, because no source file changed.

Executed on this head (cloud Linux, shared target dir). Every command exits 0:

  • cargo fmt --check
  • cargo test -p ripr with these targets: --test computed_return_tail_13037 (31/31), --test unary_tail_return_pin (24/24), --test json_artifact_encoding (3/3), --test base_owner_cfg_gates (23/23) and --test lsp_lifecycle gap_corpus (21/21)
  • cargo clippy -p ripr --all-targets -- -D warnings
  • cargo xtask goldens check
  • cargo xtask check-evidence-promotion-honesty
  • cargo xtask verdict-corpus check-all
  • cargo xtask check-traceability
  • cargo xtask check-spec-format
  • cargo xtask check-allow-attributes
  • cargo xtask check-doc-artifacts

Not covered here: the ripr lib unit-test binary (it cannot link in this container) and hosted exact-head CI.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 29, 2026
…-0onf8e

# Conflicts:
#	crates/ripr/src/analysis/classify/flow.rs
#	crates/ripr/src/analysis/seam_cache.rs
#	crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs
#	docs/OUTPUT_SCHEMA.md
#	fixtures/boundary_gap/expected/CHANGELOG.md
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.json
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.json
#	fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-field-snapshot-missing-expected.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-field-snapshot-wrong-receiver.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-activated-unsupported.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-entry.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-intermediate.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-last-hop.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-method-entry.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-method-last-hop.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-async-fn-operand.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-async-operand-helper.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-async-operand.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-dormant-body.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-foreign-helper.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-free-helper-identity.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-helper-scope-shadow.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-helper-type-parameter.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-local-wrapper.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-macro-discard.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-inherent-receiver-module-type-shadow.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-adapter-fed-error.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-bool-local-compared-with-true.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-branch-local-else-only.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-branch-local-rebound-let.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-exact.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-inline.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-literal.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-other.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-settings.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-field-snapshot-weak.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-file-module-nested-block-renamed-other-function-outer-call-control.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-file-module-nested-block-renamed-other-function.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-guarded-boundary-guard-missing.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-guarded-statement-boundaries.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-integration-test-nested-block-renamed-other-function-sibling-mount-control.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-integration-test-nested-block-renamed-other-function.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-late-assert-eq-definition-match-arms.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-lib-test-false-skipped.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-local-binder-named-like-other-function.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-local-binder-named-like-owner-block-control.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-local-closure-named-like-owner-map.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-macro-held-owner-call.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-macro-held-owner-result-local.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-manifest-rebound-assertion-root.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-matches-compared-with-true.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-matches-or-pattern-of-values.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-matches-or-pattern-single-value-control.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-nested-block-renamed-other-function-outer-call-control.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-nested-block-renamed-other-function.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-ok-assertion-failure-seam.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-panic-marker-collision.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-panic-marker-neutral.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-proximity-other-function.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-rebound-assert-eq-match-arms.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-rebound-read-macro-unselected-arm.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-renamed-other-function-qualified-control.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-renamed-other-function.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-same-named-call-kinds.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-test-local-rival-bare-use.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-test-local-rival-glob-use.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-tuple-rebound-owner-unselected-arm.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-unselected-match-arm.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-repo-exposure-wrapper-fed-error.json
#	fixtures/evidence-promotion-honesty-corpus/reports/rust-test-local-rival-import-control.json
#	xtask/src/tests/rust_corpus_projection.rs

@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 fb1a367

Independent native-Windows review of fix(classify): a bare parameter or local returned as the changed tail reaches the return-value sink (PR #16162, #13037) at 3a1111f.

Source review (verified against source)

Delta (PR vs merge-base: classify/flow.rs +327, seam-cache generation claim, reveal/context/classifier adjustments, integration and LSP-currentness test updates; ~765 insertions across 11 files):

  • The claim: a changed return that is one bare parameter or local (amount + 5 → amount in the else of the returned if) read propagation_unknown even when a test pinned the branch call (assert_eq!(discounted(100, false), 100)). return_value_sink accepted only text spelling a literal, call, or arithmetic, so a bare name never reached the sink.

  • The fix accepts the owner-scoped name as the returned value when the flow discipline holds, and — the load-bearing half — "the matching owner-scoped name alone no longer confirms observation": reading the name at the return is not, by itself, oracle evidence. That mirrors the repo's evidence-promotion invariants: reach is not observation, and a name that passes through unchanged cannot discriminate the change.

  • Follow-on commit at this head: bare_name_tail_unpaired context — when the diff removes lines inside the owner without the tail line being the owner's only change (a deleted early return), the bare-name tail rule's new-side-only read cannot confirm the old owner did not also return the pinned value; the classification now carries that explicitly. Same #13037 scope; generation claim unchanged.

  • Third push at this head (rebase onto current main plus refinement): the same four semantic files, slightly evolved (classifier 16, evidence 21, context 12, flow +327); generation claim re-verified unchanged at this head (1.231 with the #13037 note, sharded and compact 0.233 in lockstep).

  • Generation claim 1.231 / 0.233, taken in textbook lockstep at this head: CACHE_SCHEMA_VERSION "1.231" with the semantic-transition comment ("a bare owner parameter or let-bound local returned as the changed tail reaches the return-value sink, and the matching owner-scoped name alone no longer confirms observation", #13037), both sharded and compact constants at "0.233" with matching notes. Per the live generation map (#16466), 1.231/0.233 was the next free claim: unique, ordered above shipped main top 1.229/0.231, and sequential to 16447's in-flight 1.230/0.232 (no collision).

  • Native proof (native Windows, worktree wt-16162 at head fb1a367): claim source-verified by direct read (CACHE_SCHEMA_VERSION "1.231", sharded and compact "0.233", each with the #13037 transition note); cargo test -p ripr --lib classify::flow (exit 0); cargo test -p ripr --lib classify::reveal (exit 0); cargo xtask goldens check (exit 0 apart from the known pre-existing python_parent_collected_test_shadow drift); cargo xtask check-evidence-promotion-honesty (exit 0); cargo xtask check-traceability (exit 0).

Scope and non-goals

  • Reviewed and proven at this head only; a later push restarts review.
  • The claim ordering assumes 16447 (1.230/0.232) lands first or the map is re-checked at merge time; both are recorded on the map.
  • Merge mechanics belong to the writer; this review is evidence only.

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head fb1a367f), 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.

@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.

Not ready: the main merge drops a line of main's public schema documentation.

Independent review of the merge resolution at head c675700, which merges main at a41fcf4.

Finding. In docs/OUTPUT_SCHEMA.md, near line 2592 in the ripr-check-artifact-v2 identity-gate paragraph, the merge reverts main's text back to the pre-#16528 wording. Main reads:

  `root`, `mode`, `enabled_languages`, `uncompiled_configured_languages`
  (present only when an inherited `ripr.toml` enables a language the binary
  lacks), `analysis_options.*`,

This head reads:

  `root`, `mode`, `enabled_languages`, `analysis_options.*`,

uncompiled_configured_languages is a real identity field on main (crates/ripr/src/app/check_artifact.rs:76, 274, 311), so the PR would silently remove its documented place in the fail-closed identity gate. It has nothing to do with #13037. The likely cause is that the conflict resolution took the PR side of that hunk.

Repair. Restore main's three lines, and keep this PR's two 1.230 to 1.231 changes further down the file.

How I found it. I swept every file in the PR diff against main for removed lines that were not part of the PR's earlier diff (at fb1a367 against 706f08a), after normalizing versions and hashes. Two files showed such lines:

  • docs/OUTPUT_SCHEMA.md: the lost sentence above.
  • flow.rs: the only extra lines are #16150's inline tail-if arm. They are rewrapped as (flow_sink(..), false) inside return_value_reading with the same arguments, which is correct.

Checked and correct on this head:

  • seam_cache.rs keeps main's 1.230/0.232 history, then adds 1.231/0.233 with transitions 1.230 -> 1.231 and 0.232 -> 0.233.
  • The 63 honesty reports, the 4 boundary_gap snapshots, gap_corpus_currentness.rs and rust_corpus_projection.rs change only version strings and dependent hashes against main.
  • The PR diff contains no stray 1.230; the only 1.230 mentions are main's CHANGELOG history.

Generated by Claude Code

…dentity field lost in the merge

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

@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 7b180ea. This head carries the c675700 merge of main a41fcf4 (#16447, #16150) and the doc repair for my review 6102280511.

Merge resolution, checked against main:

  • flow.rs: #16150's inline tail-if arm is kept inside return_value_reading, wrapped as (flow_sink(..), false) with unchanged arguments.
  • seam_cache.rs: main's 1.230/0.232 history stays, and the PR adds 1.231/0.233 on top. The constants, docs and transition tests all read 1.230 -> 1.231 and 0.232 -> 0.233.
  • Version-only fallout: in the 63 honesty reports, the 4 boundary_gap unchanged-attempt snapshots, gap_corpus_currentness.rs and rust_corpus_projection.rs, every changed line against main is a version string or a dependent hash.
  • docs/OUTPUT_SCHEMA.md (7b180ea): the file now equals current main (814af41) apart from the two 1.230 to 1.231 lines. #16528's uncompiled_configured_languages sentence is restored. The file also carries main's newer #16109 limit-kind line.
  • Lost main lines: I swept every file in the PR diff for main lines the merge removed, comparing against the PR diff at fb1a367 after normalizing versions and hashes. Only the #16150 tuple wrap and the now-repaired OUTPUT_SCHEMA hunk showed up.
  • Source and tests: byte-identical to fb1a367, which I reviewed, so the earlier per-guard, cfg-gate and unpaired-tail controls still apply.
  • Merge check: git merge-tree --write-tree against current main (814af41) is clean.

Executed on this head (cloud Linux, shared target dir), all exit 0:

  • cargo fmt --check
  • cargo test -p ripr with:
    • --test computed_return_tail_13037 (31/31)
    • --test unary_tail_return_pin (24/24)
    • --test json_artifact_encoding (3/3)
    • --test base_owner_cfg_gates (23/23)
    • --test lsp_lifecycle gap_corpus (21/21)
  • cargo clippy -p ripr --all-targets -- -D warnings and cargo clippy -p xtask --all-targets -- -D warnings
  • cargo test -p xtask rust_corpus_projection (5/5)
  • cargo xtask goldens check
  • cargo xtask check-evidence-promotion-honesty
  • cargo xtask verdict-corpus check-all
  • cargo xtask check-traceability
  • cargo xtask check-spec-format
  • cargo xtask check-allow-attributes
  • cargo xtask check-doc-artifacts

Not covered here: the ripr lib unit-test binary (it cannot link in this container) and hosted exact-head CI.


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 5c9b629 Nov 29, 2026
20 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-0onf8e branch November 29, 2026 12:07
EffortlessSteven pushed a commit that referenced this pull request Nov 29, 2026
Main moved three more inline `cfg(test)` modules out of line (#16628) and
landed the #13037 bare-name return tail (#16162) and the branch-call infection
rule (#16631). The merge keeps both sides' analyzer behavior:

- `classify/{boundary_pairing,constant_tail_change,flow}.rs` take main's
  `mod tests;` reference; the moved bodies are merged three-way into the new
  `tests.rs` files, so every item both sides carry survives.
- `classify/reveal.rs` keeps the #12010 identity route's import, cross-package
  and shadowing defeats alongside main's bare-owner-name-tail and
  owner-scoped-token conditions. They are independent fail-closed conditions.
- `test_grip_evidence.rs` imports both sides' added name.
- `analysis/seam_cache.rs` takes main's generation comments; the joined tree
  carries two 1.231 claims, so it takes a fresh number in the next commit.
- The corpus reports and the boundary-gap expectations differ only in
  provenance, so the branch's captures stand; the recapture rewrites them.
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