Skip to content

fix(rust): credit a crate-qualified exact pin on a reached computed tail (#13037) - #15927

Merged
EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-kbal55
Nov 22, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
claude/project-thread-kbal55

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

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-0443, "#13037 amendment" (one added bullet)
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #13037
Acceptance delta (one sentence): a changed computed return tail reads exposed when an integration test's exact assert_eq! pins the owner through the package's own library path and the call statically reaches that branch, the same as the bare spelling.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-kbal55
Stack parent or prerequisite PR (if any): none (#14950 merged)
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 merged PRs for the reached-tail pin and crate-qualified owner calls: #11673 covers a chain entry, #14950 the bare call. None covers this spelling.

Scope

  • classify/related_tests.rs: own_crate_qualified_owner_path returns the path the existing authority establishes for a non-bare owner call. Bare calls never reach the authority.
  • test_grip_evidence/value_contradiction.rs: return_seam_tail_reached_by_call reads the assertion and the test body with that path spelled bare at token boundaries (spell_path_bare), so a let the assertion names is found by the assertion's own position.
  • classifier/evidence.rs: the reached_tail_pin admission passes that path to return_seam_tail_reached_by_call.
  • New crates/ripr/tests/computed_return_tail_crate_qualified.rs (13 tests), spec bullet, traceability, changelog fragment.
  • Two honesty-corpus fixtures with goldens: rust_computed_return_tail_crate_qualified (must_promote, exposed) and rust_computed_return_tail_crate_rebound (must_not_promote, reachable_unrevealed: the test file declares a module with the library's name).

Scope Classification

  • One production behavior

Production delta:

  • A return_value finding on a reached computed tail is confirmed by a crate-qualified exact pin where it was already confirmed by the bare one.

Evidence/support delta:

Single acceptance criterion:

  • assert_eq!(shipping::shipping_cost(100, true), 800) in tests/shipping.rs reads exposed on base * 2, and every refusal control stays below exposed.

Non-goals:

Support-tier Impact

  • none

Claim/proof notes:

  • Credit only widens to a spelling whose identity an existing authority already establishes for relation.

Policy Impact

  • none

Ledger or exception notes:

  • none

Proof

cargo test -p ripr --test computed_return_tail_crate_qualified --test computed_return_tail_13037 \
  --test crate_qualified_free_call_pin --test crate_qualified_entry_reach --test crate_qualified_receiver
cargo xtask precommit

Result, failures, or skipped proof:

  • 13 / 17 / 11 / 43 / 10 pass on 20218543.
  • cargo xtask check-evidence-promotion-honesty and cargo xtask goldens check: pass on 20218543.
  • Without the evidence.rs wiring (measured on 0909111f, 10 tests): the 3 positive tests fail, the 7 others pass.
  • With the authority replaced by a naive shipping::<owner> rewrite: a_rebound_crate_name_is_not_credited, a_test_outside_the_test_crate_root_is_not_credited, the module-path and library-name tests fail. The refusal controls bind to the authority, not to another gate.
  • Walk repo re-run: tests/pricing.rs with pricing::loyalty_price(10_000, 5) reads 3 noticed + 1 unclear (was 2 noticed, 1 partly, 1 unclear).
  • cargo xtask precommit exit 0, cargo clippy -p ripr --all-targets -- -D warnings exit 0 and -p xtask exit 0 on 08163c8a. check-evidence-promotion-honesty --pre-label 15927 main passes for head 20218543 on base 5c27aabe, composition bb9c551e (107 reports, 29 historical pins). On 20218543 itself: cargo fmt --check, both clippy commands, goldens check and the honesty gate pass; the full precommit was not rerun after the review repair. A first precommit run on the uncommitted tree failed goldens check on 30 unrelated fixtures ("could not establish which revisions the check analyzed", task_first.rs::seam_commit_step_refusal): that line fires when the enclosing checkout has uncommitted files. The same check passes on the committed tree.
  • Devin reviewed 08163c8a and raised three findings, all valid and repaired in 20218543: a twice-bound expected lost credit through the qualified spelling (only the assertion text was rewritten; reproduced as weakly_exposed, now exposed), the authority ran its file scan for bare calls too, and an explicit [lib] name was untested. Three tests added.
  • Review providers: Gemini (daily quota) and CodeRabbit (rate limit) returned no review on this PR. That is missing review, not a clean one.

Claim Boundary

Static evidence only. The credit says the pinned call statically reaches the changed tail and compares its exact value; it claims no runtime or mutation outcome.

https://claude.ai/code/session_01SvmPmmxuDsVCBJtnqpTK3U


Generated by Claude Code

…ail (#13037)

An integration test that pins the owner through the package's own library
path with no `use` (`assert_eq!(pkg::owner(100, true), 800)`) read
`weakly_exposed` on a changed computed return tail, while the same pin
spelled bare after a `use` read `exposed`. An agent that appends one test
to an existing file without touching its imports writes the qualified
spelling, so `ripr check` reported a correct discriminator as a gap.

The reached-tail pin now reads the qualified call as the bare owner call
when the relation's own-crate authority (own_crate_qualified_entry_path)
establishes the path. A rebound crate name, a longer or wrong path, a
module child of the test crate and a transformed operand stay uncredited.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmmxuDsVCBJtnqpTK3U
@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 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 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 53 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 147 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: 0a1328ef-7cd1-4d82-b9f6-854a6506a1ac
Commits

Reviewing files that changed from the base of the PR and between 7cf9cd6 and 2021854.

Files selected for processing: 27

  • .ripr/traceability.d/RIPR-SPEC-0443.toml
  • changelog.d/13037-crate-qualified-tail-pin.md
  • crates/ripr/src/analysis/classifier/evidence.rs
  • crates/ripr/src/analysis/classify/mod.rs
  • crates/ripr/src/analysis/classify/related_tests.rs
  • crates/ripr/src/analysis/test_grip_evidence/value_contradiction.rs
  • crates/ripr/tests/computed_return_tail_crate_qualified.rs
  • docs/specs/RIPR-SPEC-0443-branch-local-return-value-grip.md
  • fixtures/evidence-promotion-honesty-corpus/corpus.json
  • fixtures/rust_computed_return_tail_crate_qualified/SPEC.md
  • fixtures/rust_computed_return_tail_crate_qualified/diff.patch
  • fixtures/rust_computed_return_tail_crate_qualified/expected/CHANGELOG.md
  • fixtures/rust_computed_return_tail_crate_qualified/expected/check.json
  • fixtures/rust_computed_return_tail_crate_qualified/expected/human-full.txt
  • fixtures/rust_computed_return_tail_crate_qualified/expected/human.txt
  • fixtures/rust_computed_return_tail_crate_qualified/input/Cargo.toml
  • fixtures/rust_computed_return_tail_crate_qualified/input/src/lib.rs
  • fixtures/rust_computed_return_tail_crate_qualified/input/tests/shipping.rs
  • fixtures/rust_computed_return_tail_crate_rebound/SPEC.md
  • fixtures/rust_computed_return_tail_crate_rebound/diff.patch
  • fixtures/rust_computed_return_tail_crate_rebound/expected/CHANGELOG.md
  • fixtures/rust_computed_return_tail_crate_rebound/expected/check.json
  • fixtures/rust_computed_return_tail_crate_rebound/expected/human-full.txt
  • fixtures/rust_computed_return_tail_crate_rebound/expected/human.txt
  • fixtures/rust_computed_return_tail_crate_rebound/input/Cargo.toml
  • fixtures/rust_computed_return_tail_crate_rebound/input/src/lib.rs
  • fixtures/rust_computed_return_tail_crate_rebound/input/tests/shipping.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

…pin (#13037)

One promoted case (the pin is spelled through the package's own library
path) and one refused case (the test file declares a module with the
library's name), with goldens and RIPR-SPEC-0443 mapping.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmmxuDsVCBJtnqpTK3U

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

Exact-head review (author self-review, COMMENT)

Subject: head 08163c8ad10255a7ddc2cb5c46f764f9821d0b64, base main caf728c9, GitHub merge ref 56674f4a (parents caf728c9 + 08163c8a, tree 5ee6375a). Governing claim: #13037 residual, own-crate qualified spelling of the reached-tail pin.

Inspected

  • Whole diff: related_tests.rs (new own_crate_qualified_owner_call_spelled_bare), classify/mod.rs (re-export), classifier/evidence.rs (reached_tail_pin admission), the new integration test, 2 fixtures with goldens, corpus rows, RIPR-SPEC-0443, traceability, changelog fragment.
  • Semantic owner and consumer: identity stays with own_crate_qualified_entry_path (#8999/#9638). The only consumer of the rewritten text is value_contradiction::return_seam_tail_reached_by_call. bool_field_pin_admitted, owner-name uniqueness, primitive-type and import/cross-package defeats still read the original assertion and are unchanged.

Claim / evidence

Claim Positive Discriminating negative
pkg::owner(..) exact pin that reaches the tail is exposed 5 shapes in computed_return_tail_crate_qualified.rs; fixture ..._crate_qualified (must_promote) Without the evidence.rs wiring the 3 positive tests fail
Identity comes from the existing authority only rebound name (4 forms), module child of the test crate, wrong module path, package-name spelling stay below exposed; fixture ..._crate_rebound (must_not_promote) Replacing the authority with a naive shipping::<owner> rewrite fails exactly those 4 tests
The fold's own refusals still hold through the rewrite other-branch input, + 0, wrapped, assert_ne!, two owner calls these pass with and without the change (inherited gates, not new evidence)

Wrong-behavior challenge on the rewrite itself

  • Token boundary: other::shipping::shipping_cost( and shipping::shipping_cost_v2( are not rewritten (tested). A leading :: path is not rewritten, so it stays unevaluated.
  • The path is fixed by owner (library name + module path + name), so taking it from any established call line of the same test cannot bind a different item; the crate-name shadow scan covers the whole file and test body.
  • A rewritten call inside an assertion message string reads as the bare spelling already would; no new credit.
  • Rewriting makes the fold's "test body shadows the owner name" refusal apply to a qualified call a local binding cannot capture. That only withholds credit.

Rendered behavior: real CLI on the walk repo (tests/pricing.rs appending pricing::loyalty_price(10_000, 5) beside an existing use): 2 noticed + 1 partly + 1 unclear before, 3 noticed + 1 unclear after.

Local proof on 08163c8a: cargo xtask precommit exit 0; cargo clippy -p ripr --all-targets -- -D warnings and -p xtask exit 0; goldens check pass; check-evidence-promotion-honesty --pre-label 15927 main pass on composition 56674f4a (107 reports, 29 pins). Platform lane: not engaged (pure text and index reads, no path or process branch).

Residual / not established

  • Hosted qualification has not run on this head.
  • Gemini (quota) and CodeRabbit (rate limit) produced no review: missing, not clean.
  • Root package only; workspace-member integration tests keep today's reading.

Disposition: source and oracle review complete with no blocking finding. REVIEW_INCOMPLETE for merge until Ripr Rust Small Result is inspected on this head.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 21, 2026 22:13
@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 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

Head 08163c8ad10255a7ddc2cb5c46f764f9821d0b64. The inspection record is the review of 2026-11-21T22:13Z on this same head: whole diff, semantic owner and consumer, positive and discriminating negative proof, removal and naive-resolver experiments, rendered CLI behavior, local precommit, clippy, goldens and pre-label honesty check. No blocking source or oracle finding.

This attests the source and oracle review only. Hosted qualification on this head is still to be inspected, and Gemini and CodeRabbit returned no review (quota and rate limit).


Generated by Claude Code

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 3 potential issues.

Devin Review

…ed pin (#13037)

Review repair. The reached-tail pin rewrote only the assertion text, so a
`let` the assertion names could no longer be selected by the assertion's
position: an expected value bound twice in one test read weakly_exposed
through the qualified spelling and exposed through the bare one. The fold
now reads the assertion and the test body with the established path
spelled bare together.

A call written bare no longer reaches the own-crate authority, which masks
the whole test file per call. Adds an explicit `[lib] name` case.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmmxuDsVCBJtnqpTK3U

@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

Exact head: 20218543bab42f080ac5a9451f879ade53f3cc3c (author self-review, COMMENT).

Inspected on this head:

  • Complete diff against main, including the review repair 08163c8a..20218543.
  • Semantic owner: the path still comes only from related_tests::own_crate_qualified_entry_path. own_crate_qualified_owner_path adds no resolver and skips the authority for bare calls.
  • Reader: return_seam_tail_reached_by_call rewrites the assertion and the test body with one token-boundary rule, so the assertion's position in the body is preserved. A longer path or a prefix of another item is left as written.
  • Oracle grip: 13 tests in computed_return_tail_crate_qualified.rs; the positives fail without the wiring, the refusal controls fail under a naive rewrite. Probed one more case by hand: a test-local fn with the owner's name pinned bare, next to an unrelated qualified call, stays weakly_exposed.
  • Honesty corpus: one must_promote and one must_not_promote case; check-evidence-promotion-honesty --pre-label 15927 main passes for this head on base 5c27aabe, composition bb9c551e.
  • Devin's three findings on 08163c8a are repaired, answered and resolved.

Not established here: hosted qualification on this head, and Gemini and CodeRabbit returned no review (quota and rate limit), which is missing review.


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

Exact head: 20218543bab42f080ac5a9451f879ade53f3cc3c (author self-review, COMMENT). Source and oracle review for this head is recorded in the earlier review on the same commit and is unchanged.

Hosted evidence on this head, run 44962905254 attempt 1:

  • Admit PR Candidate, Route, Detect Docs-Only Surface, vscode surface: success.
  • Rust gates: success.
  • Rust tests shard 1 of 2, shard 2 of 2, and shards verify: success.
  • Ripr Rust Small Result: success.

Conversation state: three review threads (Devin, on 08163c8a), each repaired in 20218543, answered and resolved; read back as resolved. No conflict with main.

Missing provider review: Gemini (daily quota) and CodeRabbit (rate limit) produced no review of this PR. Devin reviewed 08163c8a and has not re-reviewed 20218543.

Claim boundary: static evidence only; the credit claims no runtime or mutation outcome.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 601ce7f Nov 22, 2026
19 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-kbal55 branch November 22, 2026 02:59
EffortlessSteven pushed a commit that referenced this pull request Nov 22, 2026
…he composed tree (#13037)

Main's crate-qualified computed-tail pin (#15927) confirmed observation, but
the import line's strongest-oracle identity gate recognised only a bare whole
owner call, so the composed tree read rust_computed_return_tail_crate_qualified
as weakly_exposed (identity_unresolved). The pin folds the one compared owner
call on a uniquely named owner through the established own-crate path, so it
now supplies identity under the same shadow, import and cross-package defeats.

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