Repository navigation
test(analysis): private inherent receiver integration and grip tests (#7415, split of #8004) - #11031
Conversation
…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
…7415, split of #8004) 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
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 25 minutes. View limit details
Comment |
…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
left a comment
There was a problem hiding this comment.
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.
…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
#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
left a comment
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head cf220b7): REPAIR_REQUIRED
Inspected:
- Head delta:
compare cf220b7...cf220b7returnsstatus=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.rsat head: fixture setup (142-158), the cross-target class assertion and its rationale (229-237), and theinclude_str!sites at 430, 445, 482, 494, 501.- Fixture resolution: contents API at ref
cf220b7for five representativeinclude_str!targets, and the same paths at refmain. - Sibling PR #9614 (state, files, close time) and
main'scrates/ripr/src/analysis/test_grip_evidence/tests.rs(18978 lines) andcrates/ripr/tests/private_inherent_receiver.rs. xtask/src/main.rs:6995-7010(validate_trace_paths) andmain's.ripr/traceability.tomlfor 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,:501and the matchinginclude_str!sites incrates/ripr/src/analysis/test_grip_evidence/tests.rs— this head still does not compile undercargo test. I confirmed this independently rather than by inference: every fixture path theseinclude_str!calls name is absent at this head. The contents API returns 404 at refcf220b7forfixtures/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.rsandfixtures/inherent_receiver_foreign_helper/input/src/lib.rs.include_str!is resolved at compile time, so both theriprlib test target and theprivate_inherent_receiverintegration 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.jsonandfixtures/inherent_receiver_macro_discard/input/src/lib.rsboth resolve onmainnow. The remedy is therefore no longer "wait for #11029/#11030"; it is to rebase or merge currentmaininto this branch. The test content itself needs no change for this. - Because taking
mainmoves 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.
- What has changed since the earlier review: the fixture PRs have since landed on
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:149callsstd::fs::create_dir(&fixture.0)before thecreate_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 == 3andoutput.findings.len() == 3are producer inventory counts for a fixture whose diff changes two lines; the accompanying comments state an intent that the literal3does 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_diffspecial-cases one corpus case (inherent_receiver_async_function/controls/sync-chain.rs) whose repository-matrix expectation isnulland asserts the diff path credits ithelper_owner_call/High. The PR body documents the choice, but the durable artifact (that fixture'sSPEC.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.tomlcarriescrates/ripr/tests/cli_smoke.rs::...entries) and the repo's traceability contract is spec-test-code.cargo xtask check-traceabilitydoes 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-policyhung 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 (
mergedAtnull, no merge commit),crates/ripr/tests/private_inherent_receiver.rsis absent frommain, andmain'scrates/ripr/src/analysis/test_grip_evidence/tests.rscontains 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.tomlregistration 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 isweakly_exposedon 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 refcf220b7while the same paths resolve onmain, 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, andcargois not installed here (cargo --versionreports 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,rankingand the threedroidjobs are allskipped(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.CodeRabbitisneutral. 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.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013kSch2opYors8Yb2NR1ZMd
EffortlessSteven
left a comment
There was a problem hiding this comment.
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) andcrates/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 atcf220b7f. At299be818all elevenfixtures/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) andfixtures/inherent_receiver_free_helper_identity/diff.patch(314 bytes). The referenced paths in the current source areprivate_inherent_receiver.rs:435,:450,:487-488,:499-500and: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 asindex.call_identity_memos.receiver_scan_passes()being within1..=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_diris replaced withstd::fs::create_dir_all, and the failure message now names the resolved path. The recorded reason is specific and checkable:.cargo/config.tomlpointsTMPDIRat<workspace>/target, which does not exist whenCARGO_TARGET_DIRredirects 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 == 3plusoutput.findings.len() == 3tooutput.summary.probes > 0plusoutput.findings.len() == output.summary.probes. - Hosted check-runs at
299be818— every Rust lane isskipped(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), plusranking);Graphite / AI Reviewsandworkflow policy and wheel applicabilityaresuccess,CodeRabbitandGitGuardian Security Checksneutral, and the wheel build andub-reviewwere 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 at299be818(above). Not re-raised. - The prior review's note that sibling #9614 was closed unmerged and that none of its tests are on
mainis unchanged by this delta; the fixtures these tests need have since reachedmainby 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 == 3andfindings.len() == 3tosummary.probes > 0andfindings.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 == 3on the platforms where that is stable) would restore the discrimination the old assertion had. - The new scan-pass bound is an inequality (
1..=2passes), 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.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013kSch2opYors8Yb2NR1ZMd
EffortlessSteven
left a comment
There was a problem hiding this comment.
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) andcrates/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, andinherent_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 fors: Site,mut s: Site,s: &Siteands: &mut Site, and withholds fors: 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, anif let Some(s) = ext()binding, a closure parameter, and — in theprefix|paramscases — 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 throughmod tests { use super::*; }and withholds throughmod 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 eachinclude_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.tomlandfixtures/inherent_receiver_free_helper_identity/diff.patchall exist with content at19abffe2. The delta does not touch thoseinclude_str!lines. - Hosted check-runs at
19abffe2— the PR is no longer a draft, and sixteen checks aresuccess(Admit PR Candidate,Route Ripr Rust Small,Detect Docs-Only Surface,dependency-review,cargo-deny,ranking, the threepaste-*jobs,build and inspect Linux x64 wheel,workflow policy and wheel applicability, the two Python journeys,Graphite / AI ReviewsandGraphite / mergeability_check);CodeRabbitandGitGuardian Security Checksare neutral; andRipr Rust Small on GitHub Hosted / Rust gates,ub-review,windows-advisory-subsetand oneRust-only feature laneinstance were still in progress. The remaining Rust lanes areskippedat 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 == 3becamesummary.probes > 0withfindings.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 gateswas still running when this review was posted, so the Rust test lanes that would compile and runinherent_receiver_typed_parameter_names_the_owner_only_for_a_plain_typeand 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.
There was a problem hiding this comment.
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.
Governing issue or accepted claim: #7415 (split of #8004; #8577 landed slice 1)
Acceptance delta (one sentence): Adds the #7415
private_inherent_receiverintegration tests and thetest_grip_evidenceinherent-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/mainf923f2f (clean merge, no conflicts), so theinclude_str!fixtures now resolve.Test adjustments:
public.classis pinned to exactlyWeaklyExposed(fix(rust): retain assertion contexts across shared Cargo targets #9969 widened the unresolved-macro-placement refusal for the decoy'sserde_json::json!); acceptingExposedwould mask an over-promotion (fail-closed). Verified deterministic on current main (19abffe).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.inherent_receiver_async_function/controls/sync-chain.rsisnullincases.jsonfor the repository seam walk (lib matrix) but creditedhelper_owner_callby the diff path; the integration test names that one case explicitly instead of flipping the sharedcases.json.create_dir_alland names the resolved path on failure; theprobes == 3/findings.len() == 3literals are replaced byprobes > 0andfindings.len() == probes.changelog.d/7415-inherent-receiver-integration-tests.md.ENOENT cause (isolated):
.cargo/config.tomlforcesTMP/TMPDIRto<workspace>/target. If that directory does not exist (for exampleCARGO_TARGET_DIRredirects build output),std::env::temp_dir()points at a missing directory and the oldcreate_dirfailed with ENOENT. Reproduced by running the built test binary withTMPDIR=/nonexistent/tmpdir(failed before the fix, passes after). Hosted CI builds intotarget/, 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 withTMPDIR=/nonexistent/tmpdiron 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): passcargo xtask goldens check: pass aftercargo xtask goldens prepare(the first run failed on offline fixture dependency preparation, an environment issue)check-changelog-fragments, full precommit, hosted Rust lanes (draft, no qualification requested).fixtures/inherent_receiver_async_function/SPEC.mdon main.Draft.
https://claude.ai/code/session_013kSch2opYors8Yb2NR1ZMd
Generated by Claude Code