Skip to content

fix(classify): settle a module-path wrapper entry through the shared call identity (#13625) - #13668

Merged
EffortlessSteven merged 4 commits into
mainfrom
claude/rust-13625-module-reach
Nov 8, 2026
Merged

EffortlessSteven merged 4 commits into
mainfrom
claude/rust-13625-module-reach

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven Zimmerman · project thread

Governing issue or accepted claim: #13625

Acceptance delta (one sentence): The same changed behavior now classifies exposed whether the test reaches the wrapper by bare import or by a module-qualified path, so module_reach_control_qualified and module_reach_bare_import_control agree.

Which side was wrong

The qualified fixture (weakly_exposed) was the miss. The bare-import exposed is right on independent grounds: the test calls the wrapper at inputs 10 and 9, which straddle the 10 <= qty boundary, and the exact assert_eq! pins the wrapper's whole boolean return. wrapper_return_boundary_pinned read the asserted entry only through direct_call_name, which refuses every path. It now also accepts a plain module-path spelling when the shared qualified_owner_calls_resolve authority settles that path on the wrapper. A path naming another module's same-named function is still refused.

Local checks

  • cargo xtask precommit: pass
  • cargo xtask fixtures: pass (only module_reach_control_qualified drifted; re-blessed with reason)
  • cargo xtask goldens check: pass
  • new unit test path_qualified_whole_call_reads_only_a_whole_plain_path_call: pass

Hosted CI not yet run.


Generated by Claude Code

…call identity (#13625)

The return-value twin of a whole boolean tail read the asserted wrapper call
only through direct_call_name, which refuses any path, so the qualified
module-reach control stayed weakly_exposed while the bare-import control with
the same diff read exposed. Accept a plain module-path spelling when the
shared qualified_owner_calls_resolve authority settles it on the wrapper.

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

@coderabbitai

coderabbitai Bot commented Nov 8, 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 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 152 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: c2699869-6f6d-4eed-a136-d8d3b091c341
Commits

Reviewing files that changed from the base of the PR and between af8ddd5 and c7f5610.

Files selected for processing: 6

  • changelog.d/13625-qualified-wrapper-boundary.md
  • crates/ripr/src/analysis/classify/boundary_pairing.rs
  • fixtures/module_reach_control_qualified/SPEC.md
  • fixtures/module_reach_control_qualified/expected/CHANGELOG.md
  • fixtures/module_reach_control_qualified/expected/check.json
  • fixtures/module_reach_control_qualified/expected/human.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Resolve module_reach_control_qualified expected human.txt/CHANGELOG.md: keep exposed outcome from #13625; goldens check passes unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLSoNkcHb5xqvctzMo3
…pper (#13625)

qualified_owner_calls_resolve admits every spelling of a non-free owner, so a
method wrapper could otherwise borrow any plain-path X::name(..) call.

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

Copy link
Copy Markdown
Member Author

SOURCE_REVIEW_READY

Head: d4e438b

Independent review of 1d63044 (fresh-context subagent). Clean. 17 counterexample variants were run against the built ripr binary, and none of them were credited. They covered:

  • another module's same-named fn
  • a pub use alias
  • T::name associated fns
  • crate::, super:: and self:: paths to other items
  • a use … as alias
  • a real call mixed with a decoy call
  • method wrappers with decoys

The positive control stays exposed. exposed also holds on independent grounds: inputs 10 and 9 straddle the boundary, and the exact assert_eq! covers the whole return. The conflict resolution in human.txt and CHANGELOG.md agrees with check.json and SPEC.md.

Latent finding, repaired in d4e438b. qualified_owner_calls_resolve admits every spelling of a non-free owner. A method, local or unknown wrapper could therefore have borrowed any path-spelled X::name(..). The path spelling is now admitted only for a free wrapper, and the bare direct_call_name arm is unchanged. A second independent delta review of 1d63044..d4e438b found it clean: precedence is correct, the guard matches the callee's own check exactly, and only path-only credit for non-free wrappers changes.

Local checks at d4e438b:

  • cargo fmt --check: pass
  • cargo xtask fixtures for module_reach_control_qualified and module_reach_bare_import_control: pass
  • cargo test -p ripr --lib boundary_pairing: 61 passed

cargo xtask precommit was SIGKILLed (OOM) in the lib-test clippy compile. That is an environment limit (#12726), not a result. Hosted CI is the authority for the full gates.

Accepted proof gap. No end-to-end negative fixture shows a different-function path being refused at this pin. Reach already declines those cases upstream, as the 17 variants show.


Generated by Claude Code

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

@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 2 potential issues.

Devin Review

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

Two independent fresh-context reviews were run, one of the full diff at 1d63044 and one of the 1d63044..d4e438b delta. Details are in the PR conversation. Hosted CI has not run yet.


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 — head c7f5610

Since d4e438b the only change is one new changelog.d fragment, which passes the fragment and static-language checks. Production code and tests are unchanged.


Generated by Claude Code

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

ripr static exposure check

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

#ripr agent static-advisory base=af8ddd5e1bf178c8352907a9a19b1e130853afbf findings=20 gaps=0 infection_unknown=1 static_unknown=15 weakly_exposed=4
static_unknown|crates/ripr/src/analysis/classify/boundary_pairing.rs:336|let subject = subject.trim();|missing=-|test=t1|id=probe:crates_ripr_src_analysis_classify_boundary_pairing.rs:static_unknown:d37848a7
weakly_exposed|crates/ripr/src/analysis/classify/boundary_pairing.rs:88|hop.caller.item.container == FunctionContainer::Free|missing=-|test=t2|id=probe:crates_ripr_src_analysis_classify_boundary_pairing.rs:predicate:8c70afe5
weakly_exposed|crates/ripr/src/analysis/classify/boundary_pairing.rs:89|let whole_call_of = \|subject: &str\| {|missing=-|test=t2|id=probe:crates_ripr_src_analysis_classify_boundary_pairing.rs:field_construction:994928ba
weakly_exposed|crates/ripr/src/analysis/classify/boundary_pairing.rs:90|super::owner_pin::direct_call_name(subject) == Some(name)|missing=-|test=t2|id=probe:crates_ripr_src_analysis_classify_boundary_pairing.rs:predicate:4a2f0da5
static_unknown|crates/ripr/src/analysis/classify/boundary_pairing.rs:90|Some(name)|missing=-|test=t3|id=probe:crates_ripr_src_analysis_classify_boundary_pairing.rs:return_value:4498b98f
t1=crates/ripr/src/analysis/classify/boundary_pairing.rs:2115 aliased_operand_buried_literal_does_not_pair_via_activation relational_check `assert!( !pairing_with_admitted_oracles(&probe, Some(&owner), &[&buried], &activ…` miss=no_call_path
t2=crates/ripr/src/analysis/classify/boundary_pairing.rs:3843 a_borrowed_assertion_pairs_only_through_its_loan relational_check `assert!(!pairs(&test));` miss=weak_assertion
t3=crates/ripr/src/analysis/classify/boundary_pairing.rs:1622 path_qualified_whole_call_reads_only_a_whole_plain_path_call unknown miss=assertion_admission_unproven
+13 more limited findings not shown; `--format json` lists all
stop=ripr cannot tell from reading the code whether tests would notice; the documented route is a co-located test that reaches and observes the changed behavior; static advisory, not runtime proof
limits=infection_unknown:1,static_unknown:15,weakly_exposed:4
next=ripr explain --root /home/runner/work/ripr-swarm/ripr-swarm/head --base af8ddd5e1bf178c8352907a9a19b1e130853afbf --committed --mode draft --format agent probe:crates_ripr_src_analysis_classify_boundary_pairing.rs:static_unknown:d37848a7

Took 59s.

@EffortlessSteven
EffortlessSteven merged commit 2ac0c46 into main Nov 8, 2026
76 of 77 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/rust-13625-module-reach branch November 8, 2026 14:30
EffortlessSteven pushed a commit that referenced this pull request Nov 8, 2026
…ified

Same one-line fix as #13773/#13778: main's precommit fails
check-fixture-contracts after #13668 and #13613 merged independently.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLSoFodhRSfKyLdQTcg
EffortlessSteven added a commit that referenced this pull request Nov 8, 2026
…tled exposed class

#13668 settled the qualified module-reach wrapper entry through the shared
call identity (#13625) and regenerated expected/check.json to exposed, but
left the expected-classes block at weakly_exposed, so check-fixture-contracts
(#12928) fails on current main for any PR that touches fixtures. The block
now matches the intended class stated in the same SPEC's Then section and in
the regenerated check.json. No corpus pin held this probe at
weakly_exposed; the honesty-corpus entry covers the predicate family with
maximum_class exposed.

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Nov 8, 2026
… exposed (#13771) (#13773)

#13668 re-blessed the fixture to exposed but left the SPEC expected-classes
block at weakly_exposed; check-fixture-contracts (#13613) now compares them.


Claude-Session: https://claude.ai/code/session_01UNUoLSoNkcHb5xqvctzMo3

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Nov 8, 2026
…finding exposed (#13774)

#13668 (#13625) made the qualified module-reach control read exposed, and
its SPEC prose says so, but the expected-classes block added by #13613
(#12928) still declared weakly_exposed. The two merged independently and
check-fixture-contracts now fails on main for every PR. Align the block
with the intended class stated in the same SPEC.


Claude-Session: https://claude.ai/code/session_01UNUoLXGWmKDBx3oMbDNGkJ

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven pushed a commit that referenced this pull request Nov 8, 2026
…ts golden

#13668 changed the fixture's expected check.json and prose to `exposed`
but left the machine-checked class line at `weakly_exposed`, so
check-fixture-contracts (added by #13613) fails on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNUoLSZQNCvcBkuWYiSWaM
EffortlessSteven added a commit that referenced this pull request Nov 8, 2026
…rors (#11584) (#13720)

* wip: cli refusal envelope (unverified)

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

* Add cli_refusal schema, tests, docs and verification registrations

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

* Update usage-error tests for cli_refusal; register xtask contract

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

* Assert the refusal block on real check refusals and its absence on completed runs; pin explicit-JSON usage-error documents

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

* Fail closed: selector_miss next is always null; pin with a hostile selector

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01UNUoLSoFodhRSfKyLdQTcg

* Schemas: require the refusal block on refusal documents and forbid it on completed runs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01UNUoLSoFodhRSfKyLdQTcg

* fix(schema): admit partial-scope check runs; scope cli_refusal docs

The #11584 check.schema.json conditional required the refusal block on any
document whose analysis_scope object carried run_status. A completed bounded
partial-scope run (RIPR-PROP-0019) writes analysis_scope with run_status
limited_partial_scope and findings but no refusal block, so the rule rejected
it. Key the refusal arm on a run_status other than limited_partial_scope, fix
the rule description, and register a real partial-scope check capture as an
edge fixture plus a test that exercises both arms in both directions.

Docs (OUTPUT_SCHEMA, EXIT_CODES, RIPR-SPEC-0241, changelog fragment) now name
the argv classes that write cli_refusal under a JSON request and list the
ones that keep empty stdout (missing value, malformed value, conflicting
flags, values rejected outside the shared unknown-value builder).

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

* cli: cover json-terse and context stray positionals in cli_refusal (#11584)

- JSON-request detection now asks the format owner: OutputFormat gains an
  exhaustive is_json_request(), and usage_refusal parses --format through
  OutputFormat::parse_cli_name instead of a hand-kept name list, so
  json-terse (and check-findings-json) are JSON requests; SARIF and the
  Shields projections stay outside.
- `ripr context --json <positional>` notes an unknown_argument refusal with
  the existing prose and `next` = `ripr context --help`.
- RIPR-SPEC-0241 acceptance example, required evidence and traceability now
  match the amendment and the renamed test; specs index summary updated.
- check-partial-scope fixture uses repo-relative fixture paths instead of
  captured absolute local paths (check-local-context).

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

* repair/continue --json: unknown flags write the cli_refusal document

After merging main (#13718), `ripr repair --json --bogus` and
`ripr continue --json --bogus` already route through
`suggest::unknown_argument` and its `note_unknown_argument` helper, so
the run boundary writes the standalone `cli_refusal` document on stdout
(exit 2 and stderr prose unchanged, #6834 decision). Update the #13718
test to assert that document (code, token, next, minimal shape) with a
no-`--json` negative control, rename it to
repair_and_continue_json_keep_refusals_prose_and_usage_errors_cli_refusal
and update its traceability and RIPR-SPEC-0011 registrations. Repair
refusals and continue selection refusals still keep stdout empty.

Help text, COMMAND_HIERARCHY, OUTPUT_SCHEMA, the RIPR-SPEC-0011
amendment and the changelog fragment now say unknown flags (and stray
continue positionals) print the cli_refusal document while other argv
usage errors keep stdout empty.

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

* fix(fixtures): port main SPEC class fix for module_reach_control_qualified

Same one-line fix as #13773/#13778: main's precommit fails
check-fixture-contracts after #13668 and #13613 merged independently.

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

* docs(cli): rebless CLI reference after merging main

main's docs/CLI_REFERENCE.md went stale when #13718 and #13731 merged
independently; regenerated on this branch's merged tree with
RIPR_BLESS_CLI_REFERENCE=1.

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

* fix(schema): keep #11584 refusal block additive in check schemas

The schema-compatibility check (#1720) rejects newly required keys and an
added allOf without a schema_version bump. Bumping check 0.2 would ripple
through every check golden, so keep `status`/`error` optional and drop
the refusal/partial-scope conditional. The producer still writes the block
on every refusal; the xtask test now pins that on the producer-captured
fixtures, and the schema still rejects a malformed block. OUTPUT_SCHEMA
records that the pairing becomes a schema rule at the next bump.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Nov 9, 2026
…ing (#9992) (#13432)

* fix(python): withhold protocol credit after multiline receiver rebinding (#9992)

* fix(fixtures): align module_reach_control_qualified SPEC with the settled exposed class

#13668 settled the qualified module-reach wrapper entry through the shared
call identity (#13625) and regenerated expected/check.json to exposed, but
left the expected-classes block at weakly_exposed, so check-fixture-contracts
(#12928) fails on current main for any PR that touches fixtures. The block
now matches the intended class stated in the same SPEC's Then section and in
the regenerated check.json. No corpus pin held this probe at
weakly_exposed; the honesty-corpus entry covers the predicate family with
maximum_class exposed.

Co-authored-by: Claude <noreply@anthropic.com>

* test(lsp): align the gap-corpus consumer pin with cache generation 1.175

CodeRabbit major: the LSP lifecycle corpus check still compared against
1.174 after the union recomposition bumped CACHE_SCHEMA_VERSION to 1.175.
Corpus consumer and live cache identity now match.

Co-authored-by: Claude <noreply@anthropic.com>

* docs(review): reword attestation to satisfy check-static-language

Co-authored-by: Claude <noreply@anthropic.com>

* chore(corpus): follow the Rust cache generation to 1.175

Main's seam-cache line moved to 1.175 after this branch's rebase;
the 21 Rust-only honesty-corpus pins moved with it. Judged fields are
unchanged (the regeneration guard re-ran every subject at the current
generation before this pin assertion).

Co-authored-by: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
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