Repository navigation
fix(rust): credit a crate-qualified exact pin on a reached computed tail (#13037) - #15927
Conversation
…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
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
|
…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
left a comment
There was a problem hiding this comment.
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(newown_crate_qualified_owner_call_spelled_bare),classify/mod.rs(re-export),classifier/evidence.rs(reached_tail_pinadmission), 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 isvalue_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(andshipping::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
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
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
…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
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Exact head: 20218543bab42f080ac5a9451f879ade53f3cc3c (author self-review, COMMENT).
Inspected on this head:
- Complete diff against
main, including the review repair08163c8a..20218543. - Semantic owner: the path still comes only from
related_tests::own_crate_qualified_entry_path.own_crate_qualified_owner_pathadds no resolver and skips the authority for bare calls. - Reader:
return_seam_tail_reached_by_callrewrites 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-localfnwith the owner's name pinned bare, next to an unrelated qualified call, staysweakly_exposed. - Honesty corpus: one
must_promoteand onemust_not_promotecase;check-evidence-promotion-honesty --pre-label 15927 mainpasses for this head on base5c27aabe, compositionbb9c551e. - Devin's three findings on
08163c8aare 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
left a comment
There was a problem hiding this comment.
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
…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
Requested by Steven · project thread
Summary
7cf9cd6d: afterripr checknamed an untested branch, the agent appended one test to the existingtests/pricing.rswithout touching itsuseline, so the call was spelledpricing::loyalty_price(10_000, 5).ripr checkthen read the changed return asweakly_exposedand printed "The related test ... already has an exact assertion; this does not establish observation of the returned value". The same assertion spelled bare after ausereadexposed.owner(..)call only (value_contradiction::owner_call_arguments), deliberately, because a qualified path cannot be resolved from the assertion alone.classifier/evidence.rsnow reads the call as bare when the relation's existing own-crate authority (related_tests::own_crate_qualified_entry_path, dogfood: tests added in the same diff are often not linked (nom, bitflags, chrono, log, tracing) #8999/Missed credit: Rust forwarded-result and public-API reach (propagation_unknown, transitive_reach_unresolved) #9638) establishes the path. No second resolver; every spelling that authority refuses keeps today's reading.Swarm / Source Boundary
ripr-swarmSource-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
exposedwhen an integration test's exactassert_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-kbal55Stack 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_pathreturns 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_callreads the assertion and the test body with that path spelled bare at token boundaries (spell_path_bare), so aletthe assertion names is found by the assertion's own position.classifier/evidence.rs: thereached_tail_pinadmission passes that path toreturn_seam_tail_reached_by_call.crates/ripr/tests/computed_return_tail_crate_qualified.rs(13 tests), spec bullet, traceability, changelog fragment.rust_computed_return_tail_crate_qualified(must_promote,exposed) andrust_computed_return_tail_crate_rebound(must_not_promote,reachable_unrevealed: the test file declares a module with the library's name).Scope Classification
Production delta:
return_valuefinding 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:
use, a library module path, a hyphenated package's library name. Refusals: other-branch input, rebound crate name (4 forms), longer or prefix-sharing path, transformed or doubled call, module child of the test crate, wrong module path, package-name spelling.ripr checkstill reports weak/unclear and contradicts itself #13037 asks for an independent corpus case before a promotion: the two fixtures above are those cases.Single acceptance criterion:
assert_eq!(shipping::shipping_cost(100, true), 800)intests/shipping.rsreadsexposedonbase * 2, and every refusal control stays belowexposed.Non-goals:
amount,base) still readspropagation_unknown(known agent loop: after tests that catch every mutant,ripr checkstill reports weak/unclear and contradicts itself #13037 residual).let v = pkg::owner(..); assert_eq!(v, ..)and wrapped calls stay uncredited.ripr repairvs pilot/card readiness on a new untested function is filed as consistency: a new untested function is "Ready to repair" in pilot, the repair card and MCP, refused by bareripr repair, andunsupportedin the card JSON #15926.Support-tier Impact
Claim/proof notes:
Policy Impact
Ledger or exception notes:
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 precommitResult, failures, or skipped proof:
20218543.cargo xtask check-evidence-promotion-honestyandcargo xtask goldens check: pass on20218543.evidence.rswiring (measured on0909111f, 10 tests): the 3 positive tests fail, the 7 others pass.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.tests/pricing.rswithpricing::loyalty_price(10_000, 5)reads 3 noticed + 1 unclear (was 2 noticed, 1 partly, 1 unclear).cargo xtask precommitexit 0,cargo clippy -p ripr --all-targets -- -D warningsexit 0 and-p xtaskexit 0 on08163c8a.check-evidence-promotion-honesty --pre-label 15927 mainpasses for head20218543on base5c27aabe, compositionbb9c551e(107 reports, 29 historical pins). On20218543itself:cargo fmt --check, both clippy commands,goldens checkand the honesty gate pass; the fullprecommitwas not rerun after the review repair. A first precommit run on the uncommitted tree failedgoldens checkon 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.08163c8aand raised three findings, all valid and repaired in20218543: a twice-boundexpectedlost credit through the qualified spelling (only the assertion text was rewritten; reproduced asweakly_exposed, nowexposed), the authority ran its file scan for bare calls too, and an explicit[lib] namewas untested. Three tests added.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