Skip to content

fix(analysis): a bare call bound by a test-local const, static or tuple struct is not a call of the owner (#14087) - #14164

Merged
EffortlessSteven merged 4 commits into
mainfrom
claude/project-thread-aydlx6
Nov 18, 2026
Merged

EffortlessSteven merged 4 commits into
mainfrom
claude/project-thread-aydlx6

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven Zimmerman · project thread

Summary

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge,
    dependency, or repo-ops development for ripr-swarm
  • repair or follow-up for a same-repo swarm PR
  • swarm-only CI, runner, routing, source-of-truth, or agent-operating
    surface
  • other swarm-scoped work:

Source-of-truth Links

Proposal: none
Spec: docs/specs/RIPR-SPEC-0172-cross-crate-dependency-edge-relation.md ("Same-package call identity" section; one bullet added)
ADR: none
Plan item: none
Governing issue or accepted claim: #14087 (shape A; claim comment #14087 (comment))
Acceptance delta (one sentence): A test whose every call of a free function's name is a bare call bound by a const, static or tuple struct of that name in a scope around the test is not a related test of that function and lends it no boundary input.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-aydlx6
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): none
Accepted winner and losing candidate disposition (when decided): none

Neighbouring claim: #14069 (landed as #14131) covers a renaming use of a differently named function. It is a different binding kind; this head merges it and keeps both rules and both test blocks.

Scope

  • syntax/name_scope.rs: NameScope::value_items, the subset of defines that binds a callable non-fn value (const, static, tuple struct).
  • classify/call_identity.rs: resolve_bare settles a bare call bound by such an item away from every definition (Matches::elsewhere), keeping both readings when the same module also holds a placed fn of the name (a cfg alternative); new shared reader test_calls_only_a_local_value_item.
  • classify/related_tests.rs (diff mode) and test_grip_evidence/related_tests.rs (repo mode): drop a test the reader withholds.

Scope Classification

  • One production behavior
  • One public contract
  • One architectural seam
  • Docs/spec/test-only evidence package
  • Other:

Production delta:

  • Before: resolve_bare found the name in scope.defines, asked for the fn definitions in that module, got none and answered unsettled; an owner without same-named rivals keeps the name-only admission on an unsettled bare call, so the test related as direct_owner_call and its render(100) supplied the boundary input.
  • After: the call settles away from the owner. The test is not related, and qualified_owner_calls_resolve declines the call as an owner input.

Evidence/support delta:

  • 4 unit tests in call_identity.rs, 1 in name_scope.rs, 1 repo-mode test in test_grip_evidence/tests.rs, changelog entry.
  • Two integration tests that already carried this shape and pinned the weaker prior outcome now pin the stronger one: tests/recording_double_credit.rs (module const, static and tuple-constructor redirects: the exact test is not related and nothing is exposed) and tests/returned_element_field_pin.rs (the callable-const decoy: no reach, no_static_path; was weakly_exposed).
  • RIPR-SPEC-0172 bullet and .ripr/traceability.toml mappings for the four call_identity tests.

Single acceptance criterion:

  • For mod tests { const render: fn(i32) -> i32 = super::other; #[test] fn t() { assert_eq!(render(100), 10); assert_eq!(render(99), 0); } } with the diff changing render's boundary, ripr check no longer prints exposed, while the same test calling super::render(..) still does.

Non-goals:

Support-tier Impact

  • none
  • updates docs/status/SUPPORT_TIERS.md
  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes:

  • Static evidence only. "Would the test notice" below is rustc --test with the changed line mutated, used as the oracle for the probe matrix, not a ripr claim.

Policy Impact

  • none
  • doc artifacts
  • CI lane
  • package boundary
  • lint / Clippy
  • no-panic
  • file policy
  • generated artifact
  • dependency
  • process/network

Ledger or exception notes:

Proof

cargo fmt --check
cargo xtask precommit
CARGO_BUILD_JOBS=1 CARGO_INCREMENTAL=0 CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_TEST_DEBUG=0 cargo test -p ripr --lib
# removal experiment: `if false && scope.value_items.contains(name)` in resolve_bare
cargo test -p ripr --lib -- value_item
cargo test -p ripr --test recording_double_credit --test returned_element_field_pin
cargo clippy -p ripr --all-targets --all-features -- -D warnings
cargo xtask check-traceability && cargo xtask check-spec-format
# CLI probe matrix (not committed): 226 single-file crates, `ripr check --root .. --diff ..`
# against `rustc --edition 2021 --test` on the original and on the mutated owner

Result, failures, or skipped proof:

  • Current head 37004c4b merges main 9738c3eb. Head f81270a0 passed hosted Ripr Rust Small Result on 2026-11-11 and then conflicted with main. The two conflicts were both sides appending tests in classify/call_identity.rs and both sides editing the call_identity re-export list in classify/mod.rs; both sides are kept and no production line of this change moved.
  • Run on 37004c4b: cargo fmt --check clean; cargo test -p ripr --lib -- value_item call_identity name_scope related_tests test_grip_evidence 1224 passed, 0 failed; --test recording_double_credit --test returned_element_field_pin 14 and 12 passed; the all-features, all-targets Clippy command above is clean; check-traceability and check-spec-format pass; the acceptance criterion probed through the CLI (bare call under the const: no path; super::render(..): exposed).
  • Not rerun on 37004c4b: the whole library suite, cargo xtask precommit, the removal experiment and the 226-case probe matrix. The lines below are their results on the earlier heads; hosted qualification covers the suite and gates on this head.
  • cargo xtask precommit (on 4d6b0af6): exit 1, from this container's memory limit and not from a reported source failure. The policy checks that ran before it passed; the run stopped at policy/non-rust-allowlist.toml:867 ("test-valued covered_by could not be enumerated: cargo test -p ripr --lib analysis::scip::admission::tests") because the ripr library test build it spawns was OOM-killed (15 GB container).
  • cargo test -p ripr --lib (on 4d6b0af6): 19018 passed, 1 failed, 3 ignored. The one failure is seam_inventory::tests::fallible_literal_full_and_compact_warm_caches_invalidate_changed_inputs, which panics with "environment gap, not a source regression: prepare canonical fixture dependencies first" (fixture dependencies are not fetched in this container).
  • Hosted run on the first head 4d6b0af6 failed Rust-only feature lane on exactly two targets, --test recording_double_credit and --test returned_element_field_pin; both were repaired in 5e02f785. Hosted run on 5e02f785 stopped at Clippy single_element_loop in returned_element_field_pin.rs; repaired in f81270a0, which passed.
  • Removal experiment (on 4d6b0af6): with the resolve_bare rule disabled, 5 of the 6 new tests fail (the name_scope fact test still passes, as it should); restored before commit.
  • CLI probe matrix, main cb95c5b0 against 4d6b0af6. Changed verdicts only, all on tests that rustc shows do not run the owner:
shape boundary change return-value change
module const fn pointer exposed -> no_static_path infection_unknown -> no_static_path
module static fn pointer exposed -> no_static_path infection_unknown -> no_static_path
const at the top of the test body exposed -> no_static_path infection_unknown -> no_static_path
const / static beside use super::*; exposed -> no_static_path infection_unknown -> no_static_path
tuple-struct constructor not probed weakly_exposed -> no_static_path
const beside a glob of the owner's module, with a same-named rival infection_unknown -> static_unknown infection_unknown -> static_unknown

Controls unchanged: a qualified super::render(..) beside the const stays exposed; a const in a sibling module stays exposed; a braced struct render { .. } beside use super::*; stays exposed; the other import and shadowing probes (226 in all) keep their verdicts.

  • Not run locally: cargo xtask fixtures / goldens check (hosted qualification covers them).

Claim Boundary

What may be claimed after this PR? What must not be claimed yet?

  • May claim: a bare call bound by a const, static or tuple struct of the owner's name at module level or at the top of the test body is read as not calling the owner, in diff mode and repo mode.
  • Must not claim: that every local binding is read (nested-block items, macro-emitted items and raw-identifier imports are not); that a const aliasing the owner itself (const render: fn(i32) -> i32 = super::render;) is credited. It is withheld, because the initializer is not read.

Rollback

How can this PR be reverted safely?

  • Revert the squash commit. No schema, cache format, output field or fixture changes.

Spec-Test-Code Traceability

  • Spec: RIPR-SPEC-0172, "Same-package call identity"
  • Tests: call_identity::tests::{a_bare_call_bound_by_a_local_value_item_never_names_the_owner, a_local_value_item_withholds_only_the_bare_calls_it_binds, a_local_value_item_beats_a_glob_of_the_owners_module, related_tests_drop_a_test_whose_bare_call_a_local_value_item_binds}, name_scope::tests::records_const_static_and_tuple_struct_items_as_value_items, test_grip_evidence::tests::given_integration_test_when_bare_call_is_bound_by_a_local_value_item_then_owner_gets_no_related_test, tests/recording_double_credit.rs::hidden_execution_and_module_value_twins_cannot_supply_credit, tests/returned_element_field_pin.rs::a_callable_const_that_takes_the_bare_call_leaves_no_static_path
  • Code: crates/ripr/src/analysis/syntax/name_scope.rs, crates/ripr/src/analysis/classify/call_identity.rs, crates/ripr/src/analysis/classify/related_tests.rs, crates/ripr/src/analysis/test_grip_evidence/related_tests.rs
  • Golden outputs: none changed
  • Metrics: none
  • ADR/learning: none

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.

Candidate SHA: 37004c4

🤖 Generated with Claude Code

https://claude.ai/code/session_016EQRVhf8XbwpLXQG3rPuwz

…le struct is not a call of the owner (#14087)

A `const`, `static` or tuple `struct` of the changed function's name in a
scope around the test binds the bare call to itself: it beats a glob and
every enclosing scope, so the changed function never runs. The shared call
identity read such a scope as "defined here" and, finding no placed `fn`
in that module, left the call unsettled; for an owner without same-named
rivals an unsettled bare call kept the name-only admission, and a boundary
change read `exposed`.

- name scopes record which items bind a non-fn value (`value_items`);
- `resolve_bare` settles a bare call bound by one away from every
  definition, keeping both readings when the same module also holds a
  placed `fn` of the name (a `cfg` alternative);
- diff-mode related tests and repo-mode test grip drop a test whose every
  call of the owner's name settles that way; a qualified call of the owner,
  the owner passed as a value, a nested-block item and another helper-chain
  entry keep the prior relation.

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

coderabbitai Bot commented Nov 11, 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 40 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 150 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: 81685b0f-2e09-4283-9fa6-a52ebb46ecff
Commits

Reviewing files that changed from the base of the PR and between 9738c3e and 37004c4.

Files selected for processing: 11

  • .ripr/traceability.toml
  • changelog.d/14087-local-value-item-hides-owner.md
  • crates/ripr/src/analysis/classify/call_identity.rs
  • crates/ripr/src/analysis/classify/mod.rs
  • crates/ripr/src/analysis/classify/related_tests.rs
  • crates/ripr/src/analysis/syntax/name_scope.rs
  • crates/ripr/src/analysis/test_grip_evidence/related_tests.rs
  • crates/ripr/src/analysis/test_grip_evidence/tests.rs
  • crates/ripr/tests/recording_double_credit.rs
  • crates/ripr/tests/returned_element_field_pin.rs
  • docs/specs/RIPR-SPEC-0172-cross-crate-dependency-edge-relation.md
Pre-merge checks: Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Title check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Description check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_REVIEW_READY

Author self-review of the source and oracle on the exact head. Hosted qualification has not run yet and is the remaining evidence for the final merge review.

reviewed_head_sha: 4d6b0af
integration_basis: branch base cb95c5b0; a trial merge with main abf2c72d is conflict-free (git merge-tree).
claim_boundary: #14087 shape A only. A bare call bound by a const, static or tuple struct of a free owner's name, at module level or at the top of the test body, is not a call of the owner.

changed_surfaces_and_semantic_owners_inspected:

  • syntax/name_scope.rs record_item: value_items is a strict subset of defines; unit and braced structs, enums, unions, traits, type aliases and fn are not in it. A unit struct is not callable and a braced struct has no constructor function, so neither can bind a bare call.
  • classify/call_identity.rs resolve_bare: the new branch sits before the defines branch and after imports and local bindings, so an explicit use of the owner or a let of the name still decides first. For a module that also holds a placed fn of the name the result is the union of both readings, which target_of reads as unsettled. A function body's item never unions with the module's definitions.
  • test_calls_only_a_local_value_item: free owners only; returns true only when a scope around the test holds such an item and resolve_test is Other. resolve_test_uncached answers unsettled when the body has no call of the name, when any call is unsettled, or when the owner is reached as a value, so a test related for another reason keeps its relation.
  • Consumers: diff mode classify/related_tests.rs (after the rival-identity exclusion) and repo mode test_grip_evidence/related_tests.rs (before the registered-proptest retain). qualified_owner_calls_resolve reads the same identity, so the boundary input is declined by the same rule.

findings: none that require a change.

non_blocking_suggestions:

  • Repo mode keeps only HelperOwnerCall relations past the new retain. A test that both spells the bound bare name and reaches the owner through a helper could lose a relation recorded under a direct-call reason. This errs toward withholding credit. Recorded for #14087 follow-up.

proof_and_ci_observed (local, details in the PR body):

  • 6 new tests; with the resolve_bare rule disabled 5 of them go red and the scope-fact test stays green, as intended.
  • cargo test -p ripr --lib: 19018 passed, 1 environment-gap panic unrelated to this diff (fixture dependencies not fetched), 3 ignored.
  • Rendered behavior: ripr check on 226 single-file probe crates compared with rustc --test; only the value-item shapes changed verdict, and the qualified-call, sibling-module and braced-struct controls kept theirs.
  • cargo fmt --check clean.

proof_or_review_missing:

  • Hosted exact-head qualification (Clippy, fixtures, goldens, policy checks). Local cargo xtask precommit stopped when the container ran out of memory building the library tests for a covered_by enumeration.
  • No external reviewer output yet.

affected_currentness_dimensions: production implementation, test stimulus, test oracle and public claim are current on this head.

residual_assumptions_and_non_claims:

  • Nested-block items, macro-emitted items and raw-identifier imports are out of scope and unchanged.
  • A const that aliases the owner itself is withheld, since the initializer is not read.
  • No cache schema bump, following #14062 and #14034.

Generated by Claude Code

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

@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

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit f81270a0bec9 · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=abf2c72db29b8717348596d9034d18af66479b10 findings=41 gaps=0 unconfirmed_gaps=8 infection_unknown=3 static_unknown=7 weakly_exposed=31
open=a static limit leaves reach unconfirmed, but a related test asserts too weakly to notice the change; not a confirmed gap, and tests may still help
weakly_exposed|crates/ripr/src/analysis/classify/call_identity.rs:657|Self::Some(BTreeSet::from([ELSEWHERE]))|missing=-|test=t1|id=probe:crates_ripr_src_analysis_classify_call_identity.rs:return_value:8718ffa0
stages=reach:yes,infect:yes,propagate:yes,observe:yes,discriminate:weak
weakly_exposed|crates/ripr/src/analysis/classify/related_tests.rs:1398|if calls_owner|missing=-|test=t2|id=probe:crates_ripr_src_analysis_classify_related_tests.rs:predicate:9c50e982
stages=reach:yes,infect:yes,propagate:yes,observe:yes,discriminate:weak
weakly_exposed|crates/ripr/src/analysis/classify/related_tests.rs:1398|calls_owner && owner_fn.is_some_and(\|owner\| { super::call_identity::test_calls_o…|missing=-|test=t2|id=probe:crates_ripr_src_analysis_classify_related_tests.rs:predicate:e1887ab9
stages=reach:yes,infect:yes,propagate:yes,observe:yes,discriminate:weak
weakly_exposed|crates/ripr/src/analysis/classify/related_tests.rs:1404|!(hop.caller.file == test.file && hop.caller.start_line == test.start_line) && t…|missing=-|test=t2|id=probe:crates_ripr_src_analysis_classify_related_tests.rs:predicate:fc6ce3b7
stages=reach:yes,infect:yes,propagate:yes,observe:yes,discriminate:weak
weakly_exposed|crates/ripr/src/analysis/test_grip_evidence/related_tests.rs:109|if owner.free_function|missing=-|test=t3|id=probe:crates_ripr_src_analysis_test_grip_evidence_related_tests.rs:predicate:0e7f77d2
stages=reach:yes,infect:yes,propagate:yes,observe:yes,discriminate:weak
t1=crates/ripr/src/analysis/classify/owner_shape.rs:868 control_prefix_boundary_does_not_ignore_lookalike_calls relational_check `if !body_is_assertion_dominated( "fn helper(v: i32) {\n if v > 0 {\n assert!(v >…` miss=weak_assertion
t2=crates/ripr/src/analysis/classify/related_tests.rs:8923 camel_case_token_relates_no_snake_named_test_on_either_path relational_check `assert!(full_scan.is_empty(), "full scan must not split IoError");` miss=weak_assertion
t3=crates/ripr/src/analysis/test_grip_evidence/tests.rs:22440 a_test_local_shadow_of_the_default_method_trait_is_not_a_direct_owner_call relational_check `assert!( control.contains("use super::{Counter, Unit};") && control.contains("Co…` miss=weak_assertion
+3 more open findings not shown; `--format json` lists all
limits=infection_unknown:3,static_unknown:7,weakly_exposed:31
next=ripr explain --root . --base abf2c72db29b8717348596d9034d18af66479b10 --committed --mode draft --format agent probe:crates_ripr_src_analysis_classify_call_identity.rs:return_value:8718ffa0
verify=refused|outcome=complete_with_findings|findings=41|exposed=0|reason=gaps_remain

Took 77s.

… owner's name; spec the rule (#14087)

Two integration tests already carried this shape and pinned the weaker
prior outcome (the test stays related but lends no credit). With the
call-identity rule the test is no longer related at all:

- recording_double_credit: the module const, static and tuple-constructor
  redirects now assert that the exact test is not related and that no
  finding is exposed.
- returned_element_field_pin: the callable-const decoy gets its own test
  asserting no reach and no_static_path.

RIPR-SPEC-0172 gains the rule under Same-package call identity, and the
traceability entry maps the four call_identity tests.

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

Copy link
Copy Markdown
Contributor

merge-ready is set, but no qualification run exists for head 5e02f785: it was pushed after the label was applied, or the label event was dropped. Remove and re-apply merge-ready to request it 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

Author self-review of the source and oracle on the exact head, refreshed for the one commit added since my earlier review of 4d6b0af6. Production code is unchanged between the two heads; the earlier inspection of name_scope.rs, call_identity.rs and both related-test consumers stands.

reviewed_head_sha: 5e02f78
integration_basis: PR base abf2c72d; trial merge with current main is conflict-free.
claim_boundary: #14087 shape A only.

changed_since_the_earlier_review (commit 5e02f785, tests and docs only):

  • crates/ripr/tests/recording_double_credit.rs: the module const, module static and tuple-constructor redirect cases moved out of the "related, yet not exposed" loop into a loop that asserts the exact test is not related and that no finding on the changed call is exposed. The other three cases of that test keep the original assertion. The helper keeps its nonempty-findings premise, so the new assertion cannot pass on an empty subject.
  • crates/ripr/tests/returned_element_field_pin.rs: the callable-const decoy leaves the shared loop (whose helper requires the test to reach the owner) and gets its own test asserting a field_construction finding on line 6 exists, its reach does not name the test, and its class is no_static_path (was weakly_exposed). The trait decoy keeps weakly_exposed.
  • docs/specs/RIPR-SPEC-0172: one bullet under "Same-package call identity" stating the rule and its limits. .ripr/traceability.toml: the four call_identity tests mapped under RIPR-SPEC-0172.

Why the two integration tests changed: both were written for this same shape and pinned the weaker earlier outcome (test related, credit withheld by a later check). The rule now withholds the relation itself, which is the stronger form of the same intent, so their expectations moved with it. Hosted CI on the earlier head surfaced exactly these two targets and no others.

findings: none that require a change.

automated_review: three Devin threads, each answered with traced evidence and resolved. The formatter-reach case is lost upstream of this change (no formatting entry hop is built once the body spells the owner's name) and is recorded on #14087; the spec and traceability point is addressed in this head; the honesty-corpus case is recorded on #14087. CodeRabbit and Gemini were rate-limited and gave no review.

proof_observed_locally_on_this_head:

  • cargo test -p ripr --test recording_double_credit --test returned_element_field_pin: 14 and 12 passed.
  • cargo xtask check-traceability, check-spec-format, check-pr-shape: pass. cargo fmt --check: clean.
  • Library tests and the removal experiment were run on 4d6b0af6; crates/ripr/src is byte-identical on this head.

proof_or_review_missing:

  • Hosted exact-head qualification for 5e02f785.

residual_assumptions_and_non_claims: as listed in the PR body (nested-block items, macro-emitted items, raw-identifier imports, a const aliasing the owner, no cache schema bump).


Generated by Claude Code

…_element_loop) (#14087)

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

@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

Author self-review of the source and oracle on the exact head, refreshed for the one commit added since my review of 5e02f785. That review and the one on 4d6b0af6 stand for everything else; crates/ripr/src is byte-identical across all three heads.

reviewed_head_sha: f81270a
integration_basis: PR base abf2c72d; trial merge with current main is conflict-free.
claim_boundary: #14087 shape A only.

changed_since_the_earlier_review (commit f81270a0, one test file):

  • crates/ripr/tests/returned_element_field_pin.rs: after the callable-const decoy moved to its own test, a_decoy_the_shared_checks_catch_keeps_the_gap looped over a single case, which Clippy's single_element_loop rejects under -D warnings. The loop is unrolled into one assert_eq! with the same inputs, expected class (weakly_exposed) and label. No assertion was removed or weakened.

Hosted run on 5e02f785: formatting, user-text, precommit, promotion honesty, agent skills, dependencies, process and network policy all reported success; the all-features Clippy step stopped on that lint, so Clippy proper, the Rust tests, goldens and fixtures did not run on that head.

findings: none that require a change.

proof_observed_locally_on_this_head:

  • cargo clippy -p ripr --all-features --all-targets -- -D warnings: clean (this is the command the hosted step runs).
  • cargo test -p ripr --test recording_double_credit --test returned_element_field_pin: 14 and 12 passed.
  • cargo fmt --check: clean.

proof_or_review_missing:

  • Hosted exact-head qualification for f81270a0.

residual_assumptions_and_non_claims: as listed in the PR body.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

cargo-deny is red on head f81270a0 and it is not from this PR.

The required Ripr Rust Small Result qualification for f81270a0 is running separately.


Generated by Claude Code

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Disposition: parked, not merge-ready.

This PR is CONFLICTING with main at head f81270a0, so it cannot pass late qualification or land as-is. The merge-ready label was removed on 2026-11-14.

Owner: coding ripr-swarm. Revisit by 2026-11-21, or close it earlier as superseded if another candidate lands the same issue. No code was rejected here; this records the unowned state rather than leaving it silent.

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

VERDICT: APPROVE f81270a — no blocking findings on this head.

The change adds a value_items set to NameScope (a const, a static, or a tuple struct — the items whose name a bare call runs as a value, not a function) and makes resolve_bare settle such a name away from every indexed definition. The sentinel ELSEWHERE = usize::MAX is safe: target_of only tests set.contains(&0) and set.len(), so {ELSEWHERE} is Other, {0, ELSEWHERE} is Unsettled, and no consumer indexes the set. The item check runs before defines and before globs, which matches Rust's rule that an explicit item beats a glob in the same scope; a module that also holds a placed fn of the name keeps both readings and stays Unsettled, as documented.

The withhold is narrow: test_calls_only_a_local_value_item requires a free-function owner, a solo owner identity, a value item in one of the test's scopes, and resolve_test == Other. A qualified call of the owner, the owner passed as a value, a nested-block binding, an unparseable file, or a helper-chain hop keeps the prior relation. Both integration sites apply it as a drop-only filter, and test_grip_evidence keeps HelperOwnerCall candidates unconditionally.

The controls are discriminating: a_bare_call_bound_by_a_local_value_item_never_names_the_owner covers const, static and tuple struct; a_local_value_item_withholds_only_the_bare_calls_it_binds keeps the qualified call, the value use, the sibling module and the cfg alternative; a_local_value_item_beats_a_glob_of_the_owners_module proves the item beats a same-scope glob while the glob-only control still credits the owner; related_tests_drop_a_test_whose_bare_call_a_local_value_item_binds covers the retained selection path. The two existing tests that changed (recording_double_credit.rs, returned_element_field_pin.rs) now assert the intended stronger outcome (unrelated / NoStaticPath) rather than weakening an expectation.

Hosted evidence at this head: Ripr Rust Small on GitHub Hosted / Rust gates SUCCESS, all four test shards SUCCESS, Rust test shards verify SUCCESS, Ripr Rust Small Result SUCCESS, Admit PR Candidate SUCCESS. The only red is cargo-deny on RUSTSEC-2026-0486 (xattr unsound), which this PR does not introduce — it changes no dependency or lockfile — and is the same inherited advisory seen on other heads today.

No unresolved review threads at this head.

Static inspection of the head plus hosted run conclusions; no build or test run of my own. Head pinned at f81270a; repo clean.

@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

VERDICT: APPROVE f81270a — no blocking findings on this head.

The change adds a value_items set to NameScope (a const, a static, or a tuple struct — the items whose name a bare call runs as a value, not a function) and makes resolve_bare settle such a name away from every indexed definition. The sentinel ELSEWHERE = usize::MAX is safe: target_of only tests set.contains(&0) and set.len(), so {ELSEWHERE} is Other, {0, ELSEWHERE} is Unsettled, and no consumer indexes the set. The item check runs before defines and before globs, which matches Rust's rule that an explicit item beats a glob in the same scope; a module that also holds a placed fn of the name keeps both readings and stays Unsettled, as documented.

The withhold is narrow: test_calls_only_a_local_value_item requires a free-function owner, a solo owner identity, a value item in one of the test's scopes, and resolve_test == Other. A qualified call of the owner, the owner passed as a value, a nested-block binding, an unparseable file, or a helper-chain hop keeps the prior relation. Both integration sites apply it as a drop-only filter, and test_grip_evidence keeps HelperOwnerCall candidates unconditionally.

The controls are discriminating: a_bare_call_bound_by_a_local_value_item_never_names_the_owner covers const, static and tuple struct; a_local_value_item_withholds_only_the_bare_calls_it_binds keeps the qualified call, the value use, the sibling module and the cfg alternative; a_local_value_item_beats_a_glob_of_the_owners_module proves the item beats a same-scope glob while the glob-only control still credits the owner; related_tests_drop_a_test_whose_bare_call_a_local_value_item_binds covers the retained selection path. The two existing tests that changed (recording_double_credit.rs, returned_element_field_pin.rs) now assert the intended stronger outcome (unrelated / NoStaticPath) rather than weakening an expectation.

Hosted evidence at this head: Ripr Rust Small on GitHub Hosted / Rust gates SUCCESS, all four test shards SUCCESS, Rust test shards verify SUCCESS, Ripr Rust Small Result SUCCESS, Admit PR Candidate SUCCESS. The only red is cargo-deny on RUSTSEC-2026-0486 (xattr unsound), which this PR does not introduce — it changes no dependency or lockfile — and is the same inherited advisory seen on other heads today.

No unresolved review threads at this head.

Static inspection of the head plus hosted run conclusions; no build or test run of my own. Head pinned at f81270a; repo clean.

…tests and exports

Conflicts were in classify/call_identity.rs (two appended test blocks) and
classify/mod.rs (the call_identity re-export list). Both sides are kept.

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

@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

Source review of head 37004c4, which merges main 9738c3e into the candidate that passed hosted qualification as f81270a.

Inspected on this head:

  • The merge. Two conflicts, both additive. In classify/call_identity.rs main appended the #14069 rename tests where this change appended the #14087 value-item tests; both blocks are kept. In classify/mod.rs both sides edited the call_identity re-export list; the list now carries main's bare_owner_call_settles_on_owner and qualified_owner_calls_resolve plus this change's test_calls_only_a_local_value_item. The diff against main is the same 11 files, 566 insertions and 40 deletions as before the merge.
  • Interaction with what landed since. #14131 (renaming import) and #14744 (test-local rival calls) both edit related_tests.rs near this change's guard. The guard still runs as a drop-only filter on a free-function owner with a solo identity, and the rename rule and the value-item rule read different binding kinds, so neither masks the other. The focused library run below covers both rule sets together.
  • Semantic owner and consumers: NameScope::value_items feeds only resolve_bare; the ELSEWHERE member is tested by membership and length only; diff mode and repo mode both call the one shared reader.
  • Oracles: the four call_identity tests, the name_scope fact test, the repo-mode test and the two integration targets each carry a control that keeps the owner credited (qualified call, value use, sibling module, cfg alternative, glob only).

Run on this head: cargo fmt --check clean; cargo test -p ripr --lib -- value_item call_identity name_scope related_tests test_grip_evidence 1224 passed, 0 failed; cargo test -p ripr --test recording_double_credit --test returned_element_field_pin 14 and 12 passed; cargo clippy -p ripr --all-targets --all-features -- -D warnings clean; cargo xtask check-traceability and check-spec-format pass; CLI acceptance probe: the bare call under the const reads no path, the super::render(..) control reads exposed.

Missing on this head and requested now: hosted Ripr Rust Small Result (whole library suite, goldens, fixtures, policy gates).


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Unparked. Head 37004c4b merges main 9738c3eb and resolves the conflict that parked this PR on 2026-11-14 (both sides appended tests in classify/call_identity.rs and edited the same re-export list in classify/mod.rs; both are kept). No equivalent fix for #14087 shape A has landed on main (value_items does not exist there), so this remains the candidate. Focused re-proof and a source review are recorded on this head, and merge-ready is reapplied to request qualification. The owning session stays with it through the result and the merge queue.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REVIEW_READY

Final review of head 37004c4.

  • Source and oracle review: recorded on this head in the earlier source review (the merge of main 9738c3e, the interaction with #14131 and #14744, the semantic owner and its two consumers, and the controls in each new test). Nothing has changed on the branch since.
  • Hosted evidence on this exact head, run 44252946685: Admit PR Candidate success, Rust gates success, Rust tests shard 1 of 2 and shard 2 of 2 success, Rust test shards verify success, Ripr Rust Small Result success, vscode surface success. No check on this head is red.
  • Review threads: three, all answered and resolved. The formatter-reach residual, the honesty-corpus case and the nested-block const are recorded on #14087 as follow-ups and listed under Non-goals in the PR body.
  • Conversation: the 2026-11-14 parking note named the conflict with main as its only reason; this head resolves that conflict.
  • Claim boundary: static evidence only. The change withholds a relation and promotes nothing.

Next transition: enqueue this head in the merge queue.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit f10ff61 Nov 18, 2026
20 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-aydlx6 branch November 18, 2026 09:33
EffortlessSteven pushed a commit that referenced this pull request Nov 18, 2026
Conflict in classify/call_identity.rs tests: both sides appended tests to
the same module (#14164 value-item tests, std glob tests); both kept.

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