Skip to content

test(analysis): private inherent receiver integration and grip tests (#7415, split of #8004) - #11031

Merged
EffortlessSteven merged 19 commits into
mainfrom
rook/7415-s8-integration-tests
Oct 30, 2026
Merged

EffortlessSteven merged 19 commits into
mainfrom
rook/7415-s8-integration-tests

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #7415 (split of #8004; #8577 landed slice 1)
Acceptance delta (one sentence): Adds the #7415 private_inherent_receiver integration tests and the test_grip_evidence inherent-owner identity matrix, aligned with current main behavior.

Replaces #9614 (closed unmerged as superseded); this PR is the sole claimant of these 15 tests. Fixtures (#11029, #11030) and the async-hop fail-closed fix (#11065) are on main; the branch is merged with origin/main f923f2f (clean merge, no conflicts), so the include_str! fixtures now resolve.

Test adjustments:

  • public.class is pinned to exactly WeaklyExposed (fix(rust): retain assertion contexts across shared Cargo targets #9969 widened the unresolved-macro-placement refusal for the decoy's serde_json::json!); accepting Exposed would mask an over-promotion (fail-closed). Verified deterministic on current main (19abffe).
  • A natively reaching synchronous helper case may be helper_owner_call/high in diff mode (rust: discriminating tests through a public entry point leave private-helper arms weakly_exposed, so agents write white-box tests to satisfy ripr #5352 bridge); async or otherwise unexecuted routes must stay uncredited.
  • The sparse inherent_receiver_async_function/controls/sync-chain.rs is null in cases.json for the repository seam walk (lib matrix) but credited helper_owner_call by the diff path; the integration test names that one case explicitly instead of flipping the shared cases.json.
  • Review follow-ups (299be81): fixture root now uses create_dir_all and names the resolved path on failure; the probes == 3 / findings.len() == 3 literals are replaced by probes > 0 and findings.len() == probes.
  • changelog fragment changelog.d/7415-inherent-receiver-integration-tests.md.

ENOENT cause (isolated): .cargo/config.toml forces TMP/TMPDIR to <workspace>/target. If that directory does not exist (for example CARGO_TARGET_DIR redirects build output), std::env::temp_dir() points at a missing directory and the old create_dir failed with ENOENT. Reproduced by running the built test binary with TMPDIR=/nonexistent/tmpdir (failed before the fix, passes after). Hosted CI builds into target/, so it is not expected there; the fix makes it robust either way.

Proof at head 299be81 (local, linux, single-threaded where noted):

  • cargo test -p ripr --test private_inherent_receiver -- --test-threads=1: 9 passed (also passes with TMPDIR=/nonexistent/tmpdir on the binary)
  • cargo test -p ripr --lib test_grip_evidence -- --test-threads=1: 519 passed, 0 failed (run at the merge head d32815b; the later commit changes only the integration test file)
  • cargo fmt --all --check, cargo xtask check-traceability, cargo xtask check-fixture-contracts, cargo xtask check-file-policy (completed, no hang this time): pass
  • cargo xtask goldens check: pass after cargo xtask goldens prepare (the first run failed on offline fixture dependency preparation, an environment issue)
  • Not run: check-changelog-fragments, full precommit, hosted Rust lanes (draft, no qualification requested).
  • Known open (non-blocking, not changed): traceability registration of these 15 tests is carried by docs(spec): RIPR-SPEC-0005 private-target attribution and traceability (#7415, split of #8004) #11032; the sync-chain producer divergence is recorded in fixtures/inherent_receiver_async_function/SPEC.md on main.

Draft.


https://claude.ai/code/session_013kSch2opYors8Yb2NR1ZMd


Generated by Claude Code

claude added 11 commits October 17, 2026 21:51
…oduction rule)

Refs #7415. First slice of the #8004 split: the production attribution rule,
owner-pin unit tests, source-snapshot syntax memo and corpus rows. Fixtures,
integration tests and spec/traceability follow in later slices.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XdFHetzhxrXVMQXg1meaVR
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XdFHetzhxrXVMQXg1meaVR
… shows once (#8583)

#8636 and #8642 both implemented the generic-client window/showMessage for
#8583. Both fired for one failure, so a generic client saw two warnings and
generic_client_analysis_failure_is_shown_once_and_only_to_generic_clients
failed on main. Keep #8642 (per-signature dedupe, plus the initialize and
config-reload paths) and remove #8636's latch, its notice helper, its test
module and its changelog fragment.

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

Main now fixes the #8636/#8642 duplicate itself, so this branch's own
removal of #8636's path is dropped in favor of main's version.

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

ripr check carries a 600s analysis budget below the 3600s producer timeout, so a
large analyzer diff stopped with analysis_timeout (exit 2). Set RIPR_CHECK_TIMEOUT
to the same 3600s ceiling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XdFHetzhxrXVMQXg1meaVR
… once per file

inherent_receiver_call_resolves built a fresh OwnerPinSyntax per query, so the
workspace trusted-macro scan repeated for every (seam, test) pair. It now uses
an index-owned owner. macro_may_define_callee_name re-parsed the whole file for
every distinct callee name; the file's macro definitions and invocations are now
scanned once and queried per name.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XdFHetzhxrXVMQXg1meaVR
Take main's SyncMemo path_memo and macro_defined memos; keep this slice's
shared macro-site and file-scope owners, using SyncMemo/Arc so the run stays
Send. Drop the now-unused per-syntax file_scopes memo.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013kSch2opYors8Yb2NR1ZMd
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013kSch2opYors8Yb2NR1ZMd
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013kSch2opYors8Yb2NR1ZMd
@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 Oct 30, 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 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 149 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: f463b263-6f5e-4d80-9007-5c1afd91e0dc
Commits

Reviewing files that changed from the base of the PR and between 3968da0 and 19abffe.

Files selected for processing: 3
  • changelog.d/7415-inherent-receiver-integration-tests.md
  • crates/ripr/src/analysis/test_grip_evidence/tests.rs
  • crates/ripr/tests/private_inherent_receiver.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

…7415)

Class check accepts Exposed or WeaklyExposed (#9969); natively reaching sync
helper cases may be helper_owner_call/high (#5352 bridge).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013kSch2opYors8Yb2NR1ZMd
…alk leaves uncredited (#7415)

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

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

Independent review (fresh-context reviewer, head cf220b7): REPAIR_REQUIRED

Inspected: both changed files at head — crates/ripr/tests/private_inherent_receiver.rs (580 lines, read in full) and the crates/ripr/src/analysis/test_grip_evidence/tests.rs additions (read in full against main); the production owners the tests exercise — analysis/test_grip_evidence (inventory_seams_from_index, evidence_for_seam, find_related_tests_with_context, related_tests/visibility.rs, related_tests/reach.rs) and the public library entry point ripr::check_workspace; the sibling splits of the same parent (#11029, #11030, #11065, #9614, #9613, #9611) and #9614's .ripr/traceability.toml patch; cargo xtask check-traceability (xtask/src/main.rs:6778-6815, 6903-7010) to establish what the gate actually enforces; changelog.d/7415-inherent-receiver-integration-tests.md; hosted checks for this head. Production-path check: the integration test drives the public ripr::check_workspace API with Mode::Ready and include_unchanged_tests: true, and the grip test drives the production grip producer (inventory_seams_from_index -> evidence_for_seam -> find_related_tests_with_context); I found no test that reaches a parallel or helper-only implementation. Expected-value check: the relation expectations (RelationReason::DirectOwnerCall / High for real calls, RelationReason::WeakTokenSubstring / Low for decoys) and the assert_ne!(finding.class, ExposureClass::Exposed) refusal are derived from the semantics of the fixture sources, not copied from producer output.

Blocking: crates/ripr/tests/private_inherent_receiver.rs:430, :445, :482, :494, :501 and crates/ripr/src/analysis/test_grip_evidence/tests.rs:20481, :20546, :20593, :20600, :20607, :20614, :20621, :20628, :20635, :20642, :20649, :20724, :20727 — this head does not compile under cargo test. Every one of those is an include_str! of a path under fixtures/inherent_receiver_*, and I confirmed by contents API that each is absent at cf220b7 (404 for fixtures/inherent_receiver_free_helper_identity/cases.json, .../input/Cargo.toml, .../diff.patch, .../controls/same-line-callers.rs, fixtures/inherent_receiver_macro_discard/input/src/lib.rs, .../diff.patch, .../controls/standard.rs, fixtures/inherent_receiver_local_wrapper/input/src/lib.rs, fixtures/inherent_receiver_foreign_helper/input/src/lib.rs). include_str! is resolved at compile time, so both the ripr lib test target and the private_inherent_receiver integration target fail to build — the failure is a compile error, not a test failure. The PR body discloses the dependency (#11029/#11030 supply the fixtures, #11065 the async-hop fix) and that the proof was a local, unpushed merge of those heads; hosted Rust lanes are skipped on this draft, so nothing on the hosted side contradicts it. Remedy is to land the fixture PRs and rebase, then request CI — the test content itself needs no change for this.

Blocking: duplicate ownership with the open sibling #9614 ("test(analysis): inherent receiver integration and executable-identity tests (split 3/7 of #8004)"), which is live on the same parent (#8004/#7415) and touches the same two files — crates/ripr/tests/private_inherent_receiver.rs and crates/ripr/src/analysis/test_grip_evidence/tests.rs. #9614's .ripr/traceability.toml patch registers exactly the 15 test functions this PR adds: the 9 integration tests (unique_private_inherent_receiver_keeps_real_calls_and_refuses_serde_decoys, public_inherent_method_keeps_cross_target_receiver_attribution, raw_call_line_comment_cannot_supply_inherent_receiver, expired_inner_binding_cannot_type_outer_inherent_receiver, expired_foreign_shadow_cannot_hide_actual_outer_receiver, while_let_pattern_cannot_borrow_outer_inherent_receiver_type, scope_items_and_assertion_operand_items_cannot_borrow_outer_receiver_type, module_assertion_shadow_and_standard_positive_have_consistent_diff_relations, executable_owner_identity_boundaries_agree_in_diff) and the 6 grip tests (unique_inherent_receiver_refuses_decoys_in_full_and_compact_repo_evidence, public_inherent_receiver_keeps_cross_target_full_and_compact_repo_evidence, inherent_executable_owner_identity_boundary_matrix, same_line_helper_callers_keep_distinct_module_function_identity, inherent_receiver_review_last_hop_and_wrapper_controls, inherent_helper_declarations_are_not_executable_self_edges). This PR re-derives that slice against current main (which looks like the better candidate) but does not say so, and does not carry over the .ripr/traceability.toml registration that #9614 holds. Two live drafts cannot both land the same 15 tests. Pick one — this one, given it is aligned with current main — state it as the replacement of #9614, close #9614, and bring the traceability entries across; cargo xtask check-traceability does not require registration (it only checks that registered paths exist, xtask/src/main.rs:6995-7010), so the omission is a spec-test-code traceability gap rather than a gate failure.

Non-blocking: crates/ripr/tests/private_inherent_receiver.rs:149 — std::fs::create_dir(&fixture.0) assumes std::env::temp_dir() already exists, and the PR body records the symptom this PR cannot currently reproduce: "run under cargo test in this sandbox these tests failed at fixture creation (No such file or directory, cause not isolated)". On a host where TEMP/TMP is unset the fixture root's parent may not exist, and every test in this file then errors at setup with a message that names neither the resolved path nor the missing parent. Creating the parent (or reporting the resolved path in the error) would make the failure self-explaining instead of leaving it unisolated.

Non-blocking: crates/ripr/tests/private_inherent_receiver.rs:170 and :173 — output.summary.probes == 3 and output.findings.len() == 3 are producer inventory counts for a fixture whose diff changes two lines (one in src/reader.rs, one in src/lib.rs); the accompanying comments ("nonempty complete probe inventory", "all original subjects retained") state an intent that the literal 3 does not derive from the fixture. A silent change in probe granularity (one changed line yielding two probes) would break this test without any behavior regression. Deriving the expectation from the fixture's own subjects, or asserting the per-subject counts, keeps the oracle tied to the semantics rather than to today's inventory.

Non-blocking: crates/ripr/tests/private_inherent_receiver.rs:236 — the cross-target library finding's class is asserted as matches!(public.class, ExposureClass::Exposed | ExposureClass::WeaklyExposed). In a test-only PR the test is the contract, and accepting two values leaves the headline field unpinned in both directions; the changelog fragment repeats the same open set ("the cross-target library probe may be exposed or weakly_exposed (#9969)"). Pin the current value and note the #9969 widening, or state in the test why the published contract intentionally accepts a set.

Non-blocking: crates/ripr/tests/private_inherent_receiver.rs:544-552 — executable_owner_identity_boundaries_agree_in_diff special-cases one corpus case (inherent_receiver_async_function/controls/sync-chain.rs) whose repository-matrix expectation is null and asserts that the diff path credits it helper_owner_call/High. The PR body documents the choice, but it now enshrines one side of a producer divergence as expected behavior in a second test while the sibling matrix records the other side; the two will drift independently and the test will keep passing the wrong side. Record the divergence in the fixture's SPEC.md/BOUNDARIES.md so the durable artifact, not only the test branch, carries it.

Not run: hosted Rust proof for this head is missing — rust-tests-junit, Rust-only feature lane, future-clippy, msrv, windows-advisory, macos-advisory, rust-coverage, vscode, Perl and release proof, cargo-deny, dependency-review and droid all report SKIPPED because those lanes are gated on the merge-ready label (ci.yml:97, test-analytics.yml:24) and this draft carries none; only the Python wheel qualification, ub-review, Security, GitGuardian, Graphite and Devin ran, all green, with Devin Review reporting "Full review skipped: trial expired and no credits remaining". The mergeStateStatus is UNKNOWN. I did not build or run the workspace suite (shared tree, other agents active) — and at this head cargo test could not compile anyway, for the reason in the first blocking finding. The PR body's own proof note ("check-file-policy hung in the sandbox, stopped"; "full precommit" not run) is consistent with that.


Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head cf220b7. Not an approval.

EffortlessSteven pushed a commit that referenced this pull request Oct 30, 2026
…view

Correct BOUNDARIES.md entry count (50), restore native_reaches disclosure
and Matrix polarity section, qualify test references as landing in the
integration-tests slice (#11031), make async_function Must-Not count-free,
and re-bless inherent_receiver_macro_discard human.txt against main.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013kSch2opYors8Yb2NR1ZMd
EffortlessSteven added a commit that referenced this pull request Oct 30, 2026
#11029)

* fix(analysis): require bounded inherent receiver attribution (1/n: production rule)

Refs #7415. First slice of the #8004 split: the production attribution rule,
owner-pin unit tests, source-snapshot syntax memo and corpus rows. Fixtures,
integration tests and spec/traceability follow in later slices.

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

* fix(lsp): drop the duplicate refresh-failure showMessage so a failure shows once (#8583)

#8636 and #8642 both implemented the generic-client window/showMessage for
#8583. Both fired for one failure, so a generic client saw two warnings and
generic_client_analysis_failure_is_shown_once_and_only_to_generic_clients
failed on main. Keep #8642 (per-signature dedupe, plus the initialize and
config-reload paths) and remove #8636's latch, its notice helper, its test
module and its changelog fragment.

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

* ci(rust-gates): align ripr check analysis budget with the PR-evidence ceiling

ripr check carries a 600s analysis budget below the 3600s producer timeout, so a
large analyzer diff stopped with analysis_timeout (exit 2). Set RIPR_CHECK_TIMEOUT
to the same 3600s ceiling.

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

* perf(analysis): share one receiver syntax owner and parse macro sites once per file

inherent_receiver_call_resolves built a fresh OwnerPinSyntax per query, so the
workspace trusted-macro scan repeated for every (seam, test) pair. It now uses
an index-owned owner. macro_may_define_callee_name re-parsed the whole file for
every distinct callee name; the file's macro definitions and invocations are now
scanned once and queried per name.

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

* style: cargo fmt after main merge

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

* test(fixtures): inherent receiver fixtures 1/2 (#7415, split of #8004)

Adds the free-helper-identity, macro-discard, async-function,
helper-scope-shadow and foreign-helper inherent-receiver fixtures from the
#8004 tracker.

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

* test(fixtures): re-bless inherent_receiver_* goldens on current main (#7415)

macro_discard ignored_operand weakly_exposed -> reachable_unrevealed (decoy
demotion, #9342); async_function/foreign_helper/free_helper_identity/
helper_scope_shadow are wording-only (#10886, #10887). free_helper_identity
cases.json records the native sync chain as helper_owner_call.

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

* docs(fixtures): async_function SPEC records sync-chain helper_owner_call on main (#7415)

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

* fix(fixtures): keep sync-chain null for the seam walk, document the diff-path bridge (#7415)

Verified: the lib identity matrix (repository seam walk) leaves the sparse
sync chain uncredited, while the diff path credits helper_owner_call.

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

* docs(fixtures): repair inherent-receiver fixture boundary docs per review

Correct BOUNDARIES.md entry count (50), restore native_reaches disclosure
and Matrix polarity section, qualify test references as landing in the
integration-tests slice (#11031), make async_function Must-Not count-free,
and re-bless inherent_receiver_macro_discard human.txt against main.

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

* docs(fixtures): qualify inherent-receiver fixture docs per exact-head review

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

---------

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

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

Independent review (fresh-context reviewer, head cf220b7): REPAIR_REQUIRED

Inspected:

  • Head delta: compare cf220b7...cf220b7 returns status=identical ahead=0 behind=0 files=0 commits=0. The earlier maintainer review on this PR (5708499895) is already bound to the current head, so the head did not move and there is no source delta to review. I re-verified the earlier blocking finding against the head myself rather than deferring to it, and I re-checked the PR-level state that the earlier review could not have known about.
  • Changed files at head (3): changelog.d/7415-inherent-receiver-integration-tests.md (+2/-0), crates/ripr/src/analysis/test_grip_evidence/tests.rs (+443/-0), crates/ripr/tests/private_inherent_receiver.rs (+580/-0).
  • crates/ripr/tests/private_inherent_receiver.rs at head: fixture setup (142-158), the cross-target class assertion and its rationale (229-237), and the include_str! sites at 430, 445, 482, 494, 501.
  • Fixture resolution: contents API at ref cf220b7 for five representative include_str! targets, and the same paths at ref main.
  • Sibling PR #9614 (state, files, close time) and main's crates/ripr/src/analysis/test_grip_evidence/tests.rs (18978 lines) and crates/ripr/tests/private_inherent_receiver.rs.
  • xtask/src/main.rs:6995-7010 (validate_trace_paths) and main's .ripr/traceability.toml for the registration convention.
  • Hosted: 29 check-runs at cf220b7.
  • Earlier review bound to cf220b7 (5708499895).

Blocking:

  • crates/ripr/tests/private_inherent_receiver.rs:430, :445, :482, :494, :501 and the matching include_str! sites in crates/ripr/src/analysis/test_grip_evidence/tests.rs — this head still does not compile under cargo test. I confirmed this independently rather than by inference: every fixture path these include_str! calls name is absent at this head. The contents API returns 404 at ref cf220b7 for fixtures/inherent_receiver_free_helper_identity/cases.json, fixtures/inherent_receiver_free_helper_identity/input/Cargo.toml, fixtures/inherent_receiver_macro_discard/input/src/lib.rs, fixtures/inherent_receiver_local_wrapper/input/src/lib.rs and fixtures/inherent_receiver_foreign_helper/input/src/lib.rs. include_str! is resolved at compile time, so both the ripr lib test target and the private_inherent_receiver integration target fail to build. This is a compile error, not a test failure, so no test result on this head would be meaningful.
    • What has changed since the earlier review: the fixture PRs have since landed on main — fixtures/inherent_receiver_free_helper_identity/cases.json and fixtures/inherent_receiver_macro_discard/input/src/lib.rs both resolve on main now. The remedy is therefore no longer "wait for #11029/#11030"; it is to rebase or merge current main into this branch. The test content itself needs no change for this.
    • Because taking main moves the head, the rebased head needs a focused re-review of the fixture-resolution dimension; the test bodies are unchanged by that step.
    • Observed defect vs proposed repair: the defect is that this branch does not contain the fixture trees its own tests compile in. The repair is to take current main, which now carries them. I do not prescribe the rebase/merge mechanics.

Non-blocking:

  • STILL OPEN (the head is byte-identical to the head the earlier review inspected, so this content is unchanged; I re-read the anchor): crates/ripr/tests/private_inherent_receiver.rs:149 calls std::fs::create_dir(&fixture.0) before the create_dir_all(parent) at :153, and that later call only creates the parent of each file inside the fixture. The fixture root's own parent — std::env::temp_dir() (:144) — is never created, and the error at :149 names neither the resolved path nor the missing parent. That is why the PR body could not isolate its "No such file or directory" at fixture creation. Creating the root's parent first, or reporting the resolved path, makes the failure self-explaining.
  • STILL OPEN: :170/:173 — output.summary.probes == 3 and output.findings.len() == 3 are producer inventory counts for a fixture whose diff changes two lines; the accompanying comments state an intent that the literal 3 does not derive from the fixture. A change in probe granularity would break this test with no behavior regression. Deriving the expectation from the fixture's own subjects keeps the oracle tied to semantics.
  • STILL OPEN: :544-552 — executable_owner_identity_boundaries_agree_in_diff special-cases one corpus case (inherent_receiver_async_function/controls/sync-chain.rs) whose repository-matrix expectation is null and asserts the diff path credits it helper_owner_call/High. The PR body documents the choice, but the durable artifact (that fixture's SPEC.md/BOUNDARIES.md) does not carry the divergence, so the two sides will drift independently.
  • STILL OPEN — traceability: this PR registers none of its 15 new test functions in .ripr/traceability.toml, and with #9614 closed nothing else does either (see Refuted or stale). The repository convention registers integration tests of this kind (.ripr/traceability.toml carries crates/ripr/tests/cli_smoke.rs::... entries) and the repo's traceability contract is spec-test-code. cargo xtask check-traceability does not catch it — validate_trace_paths (xtask/src/main.rs:6995-7010) only checks that registered paths exist — so this is a traceability gap, not a gate failure.
  • The PR body's proof notes remain incomplete ("check-file-policy hung in the sandbox, stopped"; "full precommit" not run). That is consistent with the compile blocker: the suite cannot run at this head.

Refuted or stale:

  • INVALIDATED by PR-state change — the earlier blocking finding "duplicate ownership with the open sibling #9614". #9614 was closed unmerged at 2026-10-30T07:42:33Z (mergedAt null, no merge commit), crates/ripr/tests/private_inherent_receiver.rs is absent from main, and main's crates/ripr/src/analysis/test_grip_evidence/tests.rs contains none of the six grip test functions this PR adds. This PR is now the sole claimant of the 15 tests. The earlier remedy is half satisfied: #9614 is closed, but the .ripr/traceability.toml registration it held was not brought across, which is why the traceability gap above is now unclaimed rather than merely duplicated.
  • STILL HOLDS — the compile blocker, confirmed above at this head.
  • WEAKER than the earlier review stated — the open class set at :234-237. The assertion is accompanied by an explicit in-code rationale (:230-233: "#9969 widened the unresolved-macro-placement refusal ... so the cross-target library probe is weakly_exposed on main; this test pins its relation, not that class"), and the changelog fragment states the same open set. The residual is only that no assertion pins the class value itself; the intent to accept a set is documented.
  • Refuted — "the earlier review's fixture-absence claim might be an artifact of the contents API": it is not. Five representative include_str! targets return 404 at ref cf220b7 while the same paths resolve on main, which is precisely the state that breaks the compile.

Not run:

  • No local cargo build / cargo test / cargo xtask: the checkout is shared with concurrent agents, the task forbids moving HEAD or writing to the tree, and cargo is not installed here (cargo --version reports not found). Every conclusion above is source reading, contents-API resolution checks, and hosted job logs.
  • The Rust suite did not execute at this head: cargo-deny, dependency-review, rust-coverage, rust-tests-junit, msrv, future-clippy, Rust-only feature lane, windows-advisory, windows-advisory-subset, windows-advisory-runner-probe, macos-advisory, paste-${{ matrix.os }}, Perl and release proof, pinned MCP evidence before and after (advisory), vscode, ranking and the three droid jobs are all skipped (draft; merge-ready qualification not requested). Passing at this head: build and inspect Linux x64 wheel, clean pip install and useful Python journey, clean uv install and useful Python journey, GitGuardian Security Checks, Graphite / AI Reviews, ub-review, workflow policy and wheel applicability. CodeRabbit is neutral. No failing job at this head.

Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head cf220b7f1cbf1543e35021c27e3238117d4b1cd6. Not an approval.

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

Independent review (fresh-context reviewer, head 299be81): REVIEW_INCOMPLETE — delta review of the move from head cf220b7f. The blocking compile failure from the prior review is repaired: every fixture path the changed tests include_str! now exists at this head. The PR is a draft and every Rust lane is skipped, so there is no hosted Rust proof to clear it against.

Inspected:

  • Delta cf220b7f..299be818 — the PR's own change touches two files: crates/ripr/src/analysis/test_grip_evidence/tests.rs (20744 → 20773 lines) and crates/ripr/tests/private_inherent_receiver.rs (580 → 585 lines).
  • The prior blocking finding was a compile blocker: five fixture paths the tests include_str! were absent at cf220b7f. At 299be818 all eleven fixtures/inherent_receiver_* directories exist, and each of the five referenced files is present with content: fixtures/inherent_receiver_macro_discard/input/src/lib.rs (486 bytes), fixtures/inherent_receiver_macro_discard/diff.patch (314 bytes), fixtures/inherent_receiver_free_helper_identity/cases.json (8136 bytes), fixtures/inherent_receiver_free_helper_identity/input/Cargo.toml (75 bytes) and fixtures/inherent_receiver_free_helper_identity/diff.patch (314 bytes). The referenced paths in the current source are private_inherent_receiver.rs:435, :450, :487-488, :499-500 and :506. The blocker is repaired.
  • crates/ripr/src/analysis/test_grip_evidence/tests.rs:20075-20102 — a new test, free_helper_hops_share_one_workspace_macro_scan, pins the cost the PR's other change buys down: eight identical free-helper hops over one indexed source must not repeat the workspace trusted-macro scan, asserted as index.call_identity_memos.receiver_scan_passes() being within 1..=2. Its doc comment records the measured motivation (a fresh owner per call made tokio's pilot evidence stage run that scan about 250 times, 318 s against 22 s), so the stimulus is tied to a specific regression rather than to an internal implementation detail. The assertion is an upper bound on scan passes, not an equality, so it tolerates one redundant pass without failing.
  • crates/ripr/tests/private_inherent_receiver.rs:146-153 — std::fs::create_dir is replaced with std::fs::create_dir_all, and the failure message now names the resolved path. The recorded reason is specific and checkable: .cargo/config.toml points TMPDIR at <workspace>/target, which does not exist when CARGO_TARGET_DIR redirects build output elsewhere, so the single-level create failed on a missing parent.
  • crates/ripr/tests/private_inherent_receiver.rs:173-177 — the probe-inventory assertion changed from output.summary.probes == 3 plus output.findings.len() == 3 to output.summary.probes > 0 plus output.findings.len() == output.summary.probes.
  • Hosted check-runs at 299be818 — every Rust lane is skipped (Rust-only feature lane, rust-tests-junit, msrv, future-clippy, rust-coverage, cargo-deny, dependency-review, droid, windows-advisory*, macos-advisory, vscode, Perl and release proof, pinned MCP evidence before and after (advisory), plus ranking); Graphite / AI Reviews and workflow policy and wheel applicability are success, CodeRabbit and GitGuardian Security Checks neutral, and the wheel build and ub-review were in progress.

Prior-finding disposition:

  • Blocking "the five fixture paths this PR's tests include_str! are absent at this head, so the test target cannot compile" — repaired at 299be818 (above). Not re-raised.
  • The prior review's note that sibling #9614 was closed unmerged and that none of its tests are on main is unchanged by this delta; the fixtures these tests need have since reached main by another route, which is what the repair above depends on.
  • The prior review's non-blocking observations are unaffected by a delta that adds one test and changes one fixture's directory creation and one assertion; none is re-raised.

Blocking:

  • None.

Non-blocking:

  • The fixture's exact probe count is no longer pinned. The assertion moved from summary.probes == 3 and findings.len() == 3 to summary.probes > 0 and findings.len() == summary.probes. The second half is a strictly stronger structural claim — every probe is retained as a finding — but the first half is weaker: a regression that collapsed this fixture's three subjects into one probe would still pass, because one probe is still greater than zero and one finding still equals one probe. If the count of three was an intended property of the fixture rather than an artefact of the platform, a relational invariant that also pins the count (for example, probes == 3 on the platforms where that is stable) would restore the discrimination the old assertion had.
  • The new scan-pass bound is an inequality (1..=2 passes), so it tolerates one redundant workspace scan. That is the right shape for a cost guard — it fails on the unbounded regression rather than on a harmless extra pass — and it is noted here only so the tolerance is deliberate on the record.

Not run: cargo xtask precommit, cargo fmt --check, cargo clippy, cargo nextest run --workspace and the fixture corpus — not executed. This host has no Rust toolchain (rustc/cargo/rustup are absent from PATH) and the checkout is shared with concurrent agents. The compile blocker was adjudicated by reading every include_str! target at this head, not by compiling the test target; the hosted head carries no Rust lane either, because the PR is a draft. That missing evidence, not a candidate defect, is why the disposition is not REVIEW_READY.


Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 299be818. Not an approval.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 30, 2026 08:42

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

Independent review (fresh-context reviewer, head 19abffe): REVIEW_INCOMPLETE — delta review of the move from head 299be818. The prior blocking finding stays repaired, and the delta adds three more discriminating tests; the hosted Rust lanes that would exercise them were still running at this head, so there is no green hosted head to clear against.

Inspected:

  • Delta 299be818..19abffe2 — the PR's own change touches the same two files as before: crates/ripr/src/analysis/test_grip_evidence/tests.rs (20773 → 20960 lines) and crates/ripr/tests/private_inherent_receiver.rs (585 → 587 lines). No production code changed; the delta is test-only.
  • crates/ripr/src/analysis/test_grip_evidence/tests.rs — three test functions are added, none removed: inherent_receiver_typed_parameter_names_the_owner_only_for_a_plain_type, inherent_receiver_default_derive_is_read_from_the_test_file, and inherent_receiver_file_local_credit_needs_a_root_owner_impl. The first is a table-driven test over 21 cases that discriminate the nominal-owner rule for an injected typed parameter: it credits the owner for s: Site, mut s: Site, s: &Site and s: &mut Site, and withholds for s: Cache, s: foreign::Site, s: Box<Site>, s: impl Into<Site>, a parameter not named for the owner, a local binding that shadows the parameter, an if let Some(s) = ext() binding, a closure parameter, and — in the prefix|params cases — a type parameter named like the owner (<Site: Tr>|s: Site), a rebinding import (use ext::Site;), an aliased import (use ext::Other as Site;), a glob import (use ext::*;), an inner module, and a trait of the same name. It still credits through mod tests { use super::*; } and withholds through mod a { mod b { use super::*; } }, which is exactly the distinction that separates "the name is in scope from the parent" from "the name is in scope from somewhere else". This is a discriminating oracle, not a self-confirming one: a reader that merely checked "is the parameter name spelled like the owner type" would fail the shadowing, closure, alias and nested-module rows.
  • The prior blocking finding — that five fixture paths the tests include_str! were absent at the head, so the test target could not compile — stays repaired at this head. I re-resolved each include_str! target against its real base directory (crates/ripr/tests/ for the integration test, crates/ripr/src/analysis/test_grip_evidence/ for the unit test) rather than against the repository root: fixtures/inherent_receiver_macro_discard/input/src/lib.rs, fixtures/inherent_receiver_macro_discard/diff.patch, fixtures/inherent_receiver_free_helper_identity/cases.json, fixtures/inherent_receiver_free_helper_identity/input/Cargo.toml and fixtures/inherent_receiver_free_helper_identity/diff.patch all exist with content at 19abffe2. The delta does not touch those include_str! lines.
  • Hosted check-runs at 19abffe2 — the PR is no longer a draft, and sixteen checks are success (Admit PR Candidate, Route Ripr Rust Small, Detect Docs-Only Surface, dependency-review, cargo-deny, ranking, the three paste-* jobs, build and inspect Linux x64 wheel, workflow policy and wheel applicability, the two Python journeys, Graphite / AI Reviews and Graphite / mergeability_check); CodeRabbit and GitGuardian Security Checks are neutral; and Ripr Rust Small on GitHub Hosted / Rust gates, ub-review, windows-advisory-subset and one Rust-only feature lane instance were still in progress. The remaining Rust lanes are skipped at this head.

Prior-finding disposition:

  • Blocking "the five fixture paths this PR's tests include_str! are absent at this head, so the test target cannot compile" — still repaired (above). Not re-raised.
  • The prior review's non-blocking observation that the fixture no longer pins its exact probe count (summary.probes == 3 became summary.probes > 0 with findings.len() == summary.probes) is unchanged by a test-only delta that adds new test functions, and is not re-raised.

Blocking:

  • None.

Non-blocking:

  • The three new tests are, as far as the hosted evidence shows, unexecuted. Ripr Rust Small on GitHub Hosted / Rust gates was still running when this review was posted, so the Rust test lanes that would compile and run inherent_receiver_typed_parameter_names_the_owner_only_for_a_plain_type and its two siblings have no receipt at this head. The rows that discriminate the owner rule (shadowing, closure, alias, nested-module) are exactly the rows that would fail if the implementation regressed, so their execution is the evidence this PR most needs. When that job reports, a green result with these tests included is what would move this candidate past REVIEW_INCOMPLETE.

Not run: cargo xtask precommit, cargo fmt --check, cargo clippy, cargo nextest run --workspace and the fixture corpus — not executed. This host has no Rust toolchain (rustc/cargo/rustup are absent from PATH) and the checkout is shared with concurrent agents. The fixture presence was adjudicated by resolving every include_str! target at this head, not by compiling the test target.


Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 19abffe2. Not an approval.

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

Verification questions

  • Confirm the diff-boundary matrix filters rows by case.name and does not assert that every retained row belongs to the expected fixture source identity.
  • Confirm the integration oracle selects related-test rows by unique test name and therefore does not pin the owning file for decoy rows.
  • Confirm the integration fixture's findings invariant compares finding count to probe count but does not ensure every probe is represented exactly once or that no unrelated probe was omitted.
  • Confirm a complete source-route inventory beyond the checked public API and inherent-receiver helper routes was not established by this lane.
  • Confirm the diff-mode matrix encodes repository-specific helper bridges as test-side exceptions, duplicating and potentially drifting from grip producer semantics.
  • Confirm the 50-case identity matrix asserts exact row and test counts, so a newly inserted or removed fixture case can invalidate the test without identifying which semantic expectation changed.

Refuted

  • The changed unsafe/native-risk surface might introduce an exploitable type-confusion, OOB, UAF, or information-disclosure primitive.; refuted because: The patch adds test assertions and fixture manipulation without unsafe code, raw memory access, FFI, or new production behavior; unsafe-review found no new gaps.
  • The new tests could expose an active-view bug involving a resized or detached backing store.; refuted because: The changed code only builds textual Rust fixtures and analyzes source; it neither creates buffers nor performs active-view operations.
  • The temporary fixture could leave dangling references or unsafe cleanup during test teardown.; refuted because: The fixture stores owned paths, findings are owned values, and cleanup occurs once in Drop; no raw pointer or borrowed fixture slice escapes the scope.
  • A helper or async fixture in this PR may cross a real worker/async memory handoff boundary and therefore hide a GC, detach, or transfer-lifetime bug.; refuted because: No JavaScript or worker implementation is changed; the fixtures are Rust source strings consumed by ripr's static analyzer, and the tests explicitly distinguish native execution from unsupported static routes.

Evidence gaps

  • The primary remaining verification gap is the scheduled cargo-test result, since the PR body reports focused test success but this lane did not receive the late receipt.
  • Model proof intent was rejected by deterministic validation.

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