Skip to content

fix(rust): fence qualified receiver initializers and annotations - #8833

Merged
EffortlessSteven merged 9 commits into
mainfrom
codex/8782-qualified-receiver-identity
Oct 25, 2026
Merged

EffortlessSteven merged 9 commits into
mainfrom
codex/8782-qualified-receiver-identity

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Governing issue or accepted claim: #8782, item 1 (qualified receiver initializer/annotation identity).

Acceptance delta (one sentence): Discarding an unresolved initializer or annotation qualifier cannot establish a competing Rust owner's identity from its compact type name; previously supported bare controls retain their behavior.

The compact receiver matcher could drop a module prefix and credit a foreign value's method call to a different owner with the same final type name. This PR fences unresolved qualified record/tuple/constructor initializer heads and type annotations at the shared compact-name reader. Prefix checks preserve qualification across Rust source whitespace and reject raw-identifier or Unicode-prefix truncation. Bare constructors/variants, primitive receivers, owner-aware direct paths and independent local calls remain controls.

Scope and relationships

Evidence at head 12e9e51

  • Merged current main (clean). cargo xtask precommit exit 0, including a full goldens check, after one intended re-bless.
  • Re-bless: since gap withholding landed on main, the rust_qualified_foreign_receiver fixture reports static_unknown / gap_evidence_unresolved instead of weakly_exposed. The four related-test rows stay weak_token_substring, nothing is promoted to exposed, and the corpus expected_class pin, fixture SPEC and RIPR-SPEC-0108 wording are updated. The class pin holds only non-promotion; the relation pins reject the old false reach claim.
  • cargo test -p ripr --lib related_tests: 349 passed.
  • Two independent exact-head reviews (correctness/edge cases; tests/spec/contract) found no blocking defects; the spec-wording finding was fixed in 12e9e51.
  • Changelog fragment: changelog.d/8782-qualified-receiver-identity.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_014doxtTEYf5uCgqiWJV8ffG

@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 19, 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 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 164 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: 245c87cb-0158-4ce7-9403-806b4c202775
Commits

Reviewing files that changed from the base of the PR and between 1d3255d and 9e315e3.

Files selected for processing: 19
  • .ripr/traceability.toml
  • changelog.d/8782-qualified-receiver-identity.md
  • crates/ripr/src/analysis/classify/related_tests.rs
  • crates/ripr/src/analysis/classify/text.rs
  • crates/ripr/src/analysis/classify/text/wildcard.rs
  • docs/specs/RIPR-SPEC-0005-repo-seam-inventory.md
  • docs/specs/RIPR-SPEC-0108-evidence-promotion-honesty-meta-gate.md
  • fixtures/evidence-promotion-honesty-corpus/corpus.json
  • fixtures/rust_qualified_foreign_receiver/SPEC.md
  • fixtures/rust_qualified_foreign_receiver/diff.patch
  • fixtures/rust_qualified_foreign_receiver/expected/CHANGELOG.md
  • fixtures/rust_qualified_foreign_receiver/expected/check.json
  • fixtures/rust_qualified_foreign_receiver/expected/human-full.txt
  • fixtures/rust_qualified_foreign_receiver/expected/human.txt
  • fixtures/rust_qualified_foreign_receiver/input/Cargo.toml
  • fixtures/rust_qualified_foreign_receiver/input/foreign/Cargo.toml
  • fixtures/rust_qualified_foreign_receiver/input/foreign/src/lib.rs
  • fixtures/rust_qualified_foreign_receiver/input/src/lib.rs
  • fixtures/rust_qualified_foreign_receiver/input/tests/size_hints.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

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

Confirmed findings

  • Helper naming qualified_head_prefix collides loosely with type_head's segment-level module detection. The two layers operate on different text spans (full-text prefix vs. parsed segment list), so this is acceptable, but a one-line doc comment clarifying that qualified_head_prefix checks the textual prefix ..:: / ..# and does not parse segments would prevent future refactorers from conflating the two.

Verification questions

  • Confirm the new fixture's two related-test pins in the honesty corpus both set relation_reason weak_token_substring with strong oracles; the fixture's expected check.json keeps one finding classified weakly_exposed with four related-test rows — proves non-promotion but not that any single foreign row would have promoted under the old matcher.
  • Confirm fixture + honesty corpus + spec updates co-pin the same contract: classification stays weakly_exposed, both related-test rows remain weak_token_substring. Checked the corpus JSON assertions (must_not_report_clean, expected_finding_count=1, must_not_promote, expected_class, two expected_related_test pins) line up with the expected/check.json fields and the SPEC.md language.
  • Confirm fixture boundary is a real workspace: foreign is a path dev-dependency so Fast mode does not need cross-crate indexing; the second local OtherIterator::size_hint ensures competing-name dispatch without depending on dependency indexing. This is the correct micro-scale mirror of the prod invariant.

Refuted

  • Adding qualified-prefix refusal could introduce a worker/postMessage/SharedArrayBuffer detach hazard via some hidden JS channel in the ripr analyzer; refuted because: crates/ripr has no JS runtime, no transferable handle, and no FFI; the change is a pure text-match refinement in initializer_type_head and bracketed_expr_has_type that only reads &str.
  • Sibling helper / runtime-adjacent families (allocation, hashing, compression, RNG, time, syscalls) might share a related-test regression path through method_call_resolves_to_impl or initializer_type_head; refuted because: The diff is confined to one matcher (initializer_type_head/let_statement_type_head/bracketed_expr_has_type/type_head) plus four matrix flips and a new two-crate fixture. No Box::from, Hash*, flate2, rand, Instant, read, write, or unsafe-adjacent symbol is touched in the right side. Helper families have no shared symbol to regress through this change.
  • This change touches a resizable buffer / ArrayBuffer / TypedArray / SharedArrayBuffer / wasm active-view surface and must be reviewed against detach, transfer, or stale length scenarios.; refuted because: The diff is entirely a Rust static text-classifier fix (related_tests.rs), TOML/XML/Markdown docs and a small fixture workspace; no JS, WASM, FFI buffers, or runtime object model is touched. The lane's resizable/active-view hypotheses have no applicable surface, so no candidate finding is filed.
  • No transferable JS, WASM, or SharedArrayBuffer surface exists in the ripr analyzer; worker/async/detach/transfer UB concerns do not apply to this qualified-receiver-initializer fence.
  • introduced Box::from(slice) / Box::<[u8]>::from(slice) would silently truncate on allocation failure; refuted because: the diff contains no Box::from or Box::<[u8]>::from(slice); only Vec growth which aborts on OOM. No fallible-conversion regression introduced, and the new qualifier/refusal logic is pure borrow arithmetic over text slices.

Evidence gaps

  • Native foreign tests pass 2/2 with both original and independently changed local return (per PR body). This is the load-bearing oracle-strength claim; without it the weak_token_substring pin would be unfalsifiable.
  • Model proof intent was rejected by deterministic validation.

Parked follow-ups

  • Sibling-path parking note: the PR body and RIPR-SPEC-0005 section both state this is item 1 only. Out-of-scope siblings (#8577/#8004 broader inherent-receiver authority; #8782 items 2–4 covering direct UFCS/unit-value paths, borrowed helper context, unique-name attribution, uppercase module/enum ambiguity) remain open issues under the same tracking ticket and are explicitly deferred. Lane notes them as parked, not silently broadened.

@EffortlessSteven EffortlessSteven changed the title fix(rust): refuse qualified initializer identity from compact type names fix(rust): fence qualified receiver initializers and annotations Oct 19, 2026

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

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm skip_annotation_generic_args groups ()/[]/{} with strict equality and excludes > preceded by - so fn() -> () cannot close a generic; depth decrement is saturating, returning None on imbalance rather than panicking.
  • Confirm skip_annotation_generic_args keeps balanced angle-bracket counting within () /[] /{} so stray tokens in fn-pointer/const-expression annotations cannot leak past a closing >, so a tail :: Foreign is still observed and rejected by qualified_head_prefix.
  • Confirm annotation_compatibility_does_not_expand_initializer_admission proves that preserving full annotations does not widen constructor recognition across the six identified regressions.
  • Confirm pR body self-reports REPAIR_REQUIRED for the previously published 91942d7 with six bare-generic-annotation regressions; the current branch advertises a scoped repair but the proposed branch head vs basis is not visible in the diff, so residual trust risk remains on the human reviewer to verify the commit graph and any re-run evidence.

Refuted

  • The annotation-compatibility widening might let Site<u8> == make() be admitted as bare Site because find('=') would now see == as a terminator; reviewed and refuted because tail.starts_with('=') && !tail.starts_with("==") && !tail.starts_with("=>") is explicitly guarded.; refuted because: Both == and => patterns are excluded in let_statement_type_head; the annotation_compatibility_does_not_expand_initializer_admission test pins this for Site == make() and Site => make() expecting non-resolution.
  • rslice(begin..end) allocation in skip_annotation_generic_args / type_head_tail could return an empty or stale backing-store view, causing later segment lookups to mis-attribute a qualified head.; refuted because: These functions operate on &str byte slices of already-borrowed source text; they only adjust end offsets and trim, they never reallocate or detach any backing store. No JS/TS active-view or typed-array lifecycle applies, and the new if rest.starts_with("::") { return None; } guard actively blocks absolute-path heads from claiming a compact type name.
  • A worker / postMessage / transferable boundary could mishandle a WhileSome cloned across crates and cause double-drop or use-after-free of JS-backed resources.; refuted because: The PR diff and seeded thread describe a pure Rust analyzer over a Rust workspace fixture; there is no JS runtime, no shared-memory object, no WebAssembly component, and no manual unsafe block newly introduced — the Box::from(slice) / allocation-failure branch is not exercised here, so it is refuted as a stale, off-scope objection.
  • Annotation preservation (skip_annotation_generic_args + let-statement full-span reading) would silently re-widen initializer admission by accepting let x: Site<fn() -> ()> or const-expression tails.; refuted because: annotation_compatibility_does_not_expand_initializer_admission explicitly asserts the opposite for 11 bodies including unbalanced Site<fn() -> ()], =>/== tails, and Site::<{ const_expr }>.

Parked follow-ups

  • Test documentation overlap: qualified_head_prefix checks textual ..:: / ..# suffix while type_head also ends paths on ::; refactorers could conflate the two and lose the prefix-only module check. Recommend one-line doc comment on qualified_head_prefix.

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

Disposition: REVIEW_INCOMPLETE solely for missing hosted qualification and final integration judgment. No blocking finding remains in the observed source, independent runtime controls or retained local proof. This author-posted COMMENT records independent agent review; it is not an approval or merge clearance.

Reviewed head: bf8e66c
Integration basis: 4ad2635
Claim: #8782 item 1, qualified initializer/type-annotation compact-tail identity only.

Independent reviewer inspected the full production/test delta, both binding consumers, test-grip/transitive-reach consumers, exact Rust whitespace predicate/re-export, fixture/corpus/goldens, specs, traceability and changelog. Separately designed controls exposed earlier annotation compatibility, specialization-widening and Unicode-whitespace defects; those findings are repaired on this head.

Final runtime evidence: 52/52 CLI controls (22 direct positives / 30 weak refusals), each exit0 and one nonempty finding; all five non-ASCII Rust whitespaces across foreign record/tuple refusals and bare positives. A copied committed public fixture reports one weakly_exposed finding/four weak_token_substring oracle rows. CLI SHA256: 20e78e25dfb9086df285a82dfd720a6ba76ab242ea2698bcf46b81fb12bac740. Scratch lexical controls were not all natively compiled; the committed two-crate foreign fixture passed its native tests in both local-return states.

Reviewer independently inspected final receipts: focused tests309/69/4 pass, check-fast15 gates with successful19-path selector, full precommit golden comparison504 fixtures/no INCOMPLETE gap, honesty pass and advisory dogfood pass. Native pipeline31512 exit0 is retained; reviewer did not rerun Cargo.

Advisory verification questions: generic parsing tracks paired ()/[]/{} groups and refuses mismatched closers; angles inside grouped const expressions are deliberately not generic delimiters, and -> cannot close the outer generic. Full annotation consumption and the legacy-admission intersection prevent qualified tails and new initializer authority. Committed matrices plus independent rendered controls cover these cases. qualified_head_prefix intentionally checks the textual ::/# suffix separately from type_head's segment parsing; the suggested extra comment is nonblocking.

Residuals: unique-name, direct UFCS/unit/helper context, factories, generic nominal identity and uppercase module/enum ambiguity remain outside this slice. Gemini/CodeRabbit quotas are missing provider review. No general type-resolution, runtime-adequacy or release claim.

Retained review: /workspace/receiver-8782-evidence/review-bf8e.md and review-bf8e.json; final-local-proof.json, raw outputs and witness hashes retained in the same task directory. Parent campaign lead owns subsequent selected qualification/integration.

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

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • Submaterial polish: rust_source_whitespace_cannot_hide_receiver_qualification only iterates five non-ASCII whitespaces (NEL, LRM, RLM, LS, PS) and only one initializer shape per whitespace; U+000B VT, U+000C FF, U+0020 space, U+00A0 NBSP are already ASCII-or-trivial and the design note in text/wildcard.rs covers them. No missing-evidence gate.
  • Honesty metadata (weak_token_substring + weakly_exposed) is the sole mechanism preventing a false promotion in rust_qualified_foreign_receiver; the native foreign tests do not break under the pre-repair classifier, so discrimination lives entirely in corpus pins and spec text rather than native test outcome.

Verification questions

  • Confirm initial RED proof only exercised one body and a short --exact selector ran zero cases; later repairs added a lint fix and bare-generic-annotation regressions. Red/green pair is real but thin on independent re-red runs.
  • Confirm fixture expects 4 related-test rows (3 foreign_size_hint_is_observed exact_value pins + 1 unicode_module_receiver_is_not_the_local_type whole_object_equality) all weak_token_substring. Honesty corpus pins only 2 distinct names; if foreign_size_hint_is_observed produces 3 rows they must all stay weak_token_substring. Prior PR-body claim asserts the candidate reports 4 weak rows vs retained pre-repair 4 direct_owner_call rows, but the diff also flips a non-foreign compact tail test (Render::render(&m::Site(1))) from true to false — meaning Fast mode will index m::Site as bare miss, not as foreign. No fixture test directly asserts that 3-segment qualified paths still don't bind, only 2-segment. Same expected_json pre-existed for this fixture; integrity depends on goldens being current with 960e5fe84 check output.

Refuted

  • qualified_head_prefix + widened let_statement_type_head annotation consumption could return a &str backed by a buffer that gets resized/detached elsewhere, causing a stale active-view read in classify::related_tests.; refuted because: All return values remain &str slices into the caller-owned body: indexer retains observer state, only adjusts slice ranges within the existing allocation; no reallocation, detach, transfer, or capacity change is performed. Re-exports widen visibility but do not introduce or consume any byte buffer that could be resized mid-observation. There is no active-view UB pathway in this PR.
  • The two foreign tests would still pin local WhileSome::size_hint because Fast mode indexes dependency code and finds the foreign size_hint, letting the local change be falsely credited.; refuted because: The fixture's foreign crate is only a dev-dependency, and PR body + SPEC.md + honesty corpus pin that the finding stays weakly_exposed with weak_token_substring on all four rows; Fast mode does not depend on foreign dependency indexing per the SPEC's 'A second local method ensures Fast mode exercises competing names; dependency indexing is not assumed' clause.

Parked follow-ups

  • Author's PR body and prior github-actions review already enumerate parked follow-ups (UFCS, unit-value, borrowed helper, unique-name, generic nominal, uppercase module ambiguity, #8782 items 2–4). No new parked follow-ups to add from this lane.
  • Spec, fixture SPEC.md, traceability, and changelog entry co-pin the same single acceptance ('module-qualified receiver initializers and type annotations cannot establish competing owner identity solely through a matching compact type name') and reject the same false positives. The fixture introduces OtherIterator to force ambiguous-name matching in Fast mode without depending on foreign dependency indexing.

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

Disposition of github-actions review submitted 2026-10-19 03:08:36 UTC, at unchanged bf8e66c: no material source blocker established. Independent reviewer and delivery owner checked the following against committed source and retained actual outputs.

  • Whitespace coverage: rust_source_whitespace_cannot_hide_receiver_qualification loops both record and tuple initializers, all five legal non-ASCII Rust whitespaces, foreign refusals and bare positives. NBSP/U+00A0 is excluded by the exact Rust whitespace predicate; adding it as a legal-whitespace positive would be incorrect.
  • Three-segment paths: the committed matrix contains crate::m::Site(1), and the new refusal matrix contains foreign::é::Site(1). The claim of no such coverage is refuted.
  • Prevention is production behavior: the independent copied public fixture and separate scratch inputs have no honesty corpus, yet the real final CLI reports weakly_exposed and all four weak_token_substring rows. The corpus validates that output; it does not supply the classifier decision.
  • Fixture/oracle distinction: the foreign native tests intentionally continue passing when the local implementation changes; they establish that those tests exercise the other owner. The frozen pre-repair and final classifier outputs on the same fixture provide the attribution discriminator. Initial unit RED executed one fully qualified test, failing at its first matrix body; it does not claim every body independently re-red. Separate retained CLI witnesses cover the discovered annotation, specialization and whitespace regressions.
  • Golden currentness: this fixture's expected/check.json is newly added relative to basis4ad2635. The final504-fixture comparison is bound to bf8e66c, not the superseded960e head.
  • All four current rows are observed weak in both the fresh CLI output and complete golden comparison. Nuance retained: expected_related_test uses any-match per name, so its two name pins alone do not universally quantify the three same-name rows. The current full-output evidence supplies that dimension.

Rust-only hosted CI passed. Its actual terminal Cargo result rows sum to11,227 passed /0 failed /2 ignored across103 rows (96 nonempty and7 zero-pass targets); these are execution-row totals, not a unique-subject count or a full required matrix. Every new receiver control is present as executed okay in the log.

ub-review's own reporter is INCOMPLETE despite the successful advisory wrapper: RIPR sensor failed(exit2), cargo-test sensor timed out(900s), multiple proof targets were unsupported, red/green proof was deferred and one head-only receipt was recorded. These limits are not promoted to clean review or discrimination proof; no rerun or approval bypass was requested.

REVIEW_INCOMPLETE remains for pending Windows native verdicts, the required Rust Small producer (Ready-only; Draft retained under the current instruction), and final integration judgment. No merge clearance. Exact-head independent review, local RED/CLI witnesses and decoded hosted logs remain retained.

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

Final hosted extension at bf8e66c: REVIEW_INCOMPLETE; no merge clearance.

The single Draft merge-ready request is terminal. CI Rust-only, three-platform paste, Security and Source of Truth passed; existing same-head read-only wheel evidence passed and was reused. Independent review inspected their raw logs and subject bindings. Required Rust Small was not produced and cannot be replaced by these optional results while Draft.

Windows wrapper success retains actual failures: gap-artifacts84, Cargo-home7 and cache-warning1 pass; Clippy exits101 at inherited#8840 (identical affected test blob on head/main/merge); selector exits1. The selector receipt independently matches the raw log and exact bf8 head/tree/version/binary. Build passed, then malformed explain recovery comparison failed: "printed command lost frozen root/diff/JSON scope". Recovery replay/context never ran. Its free-function fixture and unchanged recovery/workflow surfaces support attribution outside the receiver-initializer patch, but no exact printed-stderr mismatch or native-main baseline result is established from the retained hashes. Do not credit native Windows qualification.

ub-review remains INCOMPLETE by its own reporter despite wrapper success. Source comments were dispositioned in review5566535481; independent source/runtime verdict remains non-blocking. No new source change, rerun, Ready toggle or qualification bypass occurred.

Retained final decoded receipts: /workspace/receiver-8782-evidence/draft-qualification-20261019/. Parent owns routing the separate Windows/selector gaps and selecting the next admitted required qualification/integration transition. Narrow claim/source/RED witnesses remain retained.

…olding (#8782)

Merging main made the unresolved foreign-owner receivers report static_unknown
(gap_evidence_unresolved) instead of weakly_exposed. Still no promotion to
exposed; fixture SPEC, honesty corpus pin and SPEC-0108 wording follow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014doxtTEYf5uCgqiWJV8ffG
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 12:58
@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!

Copy link
Copy Markdown
Member Author

This PR carries merge-ready but conflicts with main (mergeable_state=dirty), so GitHub creates no test-merge ref and no Ripr Rust Small Result run exists for the head or can start. The label was cycled on 2026-10-22, before the conflict notice workflow landed, which is why nothing said so. To unblock: merge main into the branch, resolve the conflicts, then remove and re-apply merge-ready. Tracked in #10136.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

merge-ready is set, but this PR conflicts with main, so GitHub creates no test-merge ref and the required Ripr Rust Small Result run never starts. It has been silent because the label predates the conflict notice (#9847). To unblock: merge main into the branch, resolve the conflicts, then remove and re-apply merge-ready. Tracked in #10136; the watchdog sweep in #10142 will flag these automatically.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head 12e9e518), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

# Conflicts:
#	fixtures/evidence-promotion-honesty-corpus/corpus.json

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

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm repository-wide alternate receiver-resolution consumers were not exhaustively enumerated from the supplied diff, so absence of further sibling routes is not proven.

Refuted

  • This patch may expose the same stale-view identity problem as a resizable ArrayBuffer or detached TypedArray.; refuted because: The assigned surface is absent: there are no buffer, detach, transfer, backing-store, or JavaScript active-view operations. The analogous Rust concern is addressed by failing closed when qualification prevents proof of the compact owner identity.
  • The assigned worker-handoff lifetime class is absent from this diff: all executable production changes are Rust text-classification logic, and fixture tests use ordinary Rust calls.
  • The changed Rust receiver parsing could create a JS-backed use-after-free, GC hazard, or worker-transfer lifetime bug.; refuted because: No JS-backed memory or handoff mechanism is changed or invoked; the modified code performs synchronous parsing over Rust string slices.
  • The new tests are merely reach-only smoke tests and therefore do not discriminate the changed behavior.; refuted because: The fixture asserts exact changed size_hint values, including the Some component and full tuple, while qualification-related assertions distinguish foreign from local receiver identity.
  • The parser change might introduce memory unsafety through unbounded indexing, panic, or invalid UTF-8 slicing.; refuted because: The modified scanner uses checked slicing and Option-returning helpers; no unchecked slice was introduced. Miri was disabled, but this is ordinary safe Rust and the changed paths contain no unsafe block.

Parked follow-ups

  • Direct UFCS and unit-value receiver paths are adjacent siblings but remain explicitly outside this PR; they should stay parked rather than be silently broadened here.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • The strongest unresolved verification issue is execution.

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

No actionable findings emitted for #8782 item 1. Scoped source/runtime disposition: non-blocking. Overall REVIEW_INCOMPLETE: final required qualification/integration is not established by this review.

Subject: EffortlessMetrics/ripr-swarm #8833, PR author EffortlessSteven; reviewed head 9e315e3, tree 32d247bf64b6ab0a97294a37eb28ddd6027d799a; PR base main at 1d3255d. Head was re-read unchanged before publication.

Reuse/currentness: retained independent review 5566430023, its finding disposition, and qualification limitations remain evidence for bf8e66c. I did not repeat that 52-control campaign or relabel its old CI as current. Direct comparison found all twelve relevant receiver reader/matcher function bodies unchanged, including last_let_statement, annotation consumption, initializer admission, textual-prefix refusal and both method-resolution entry paths. The six relevant committed control functions are unchanged too. This pass closes the post-main-integration/rendered-output seam.

Observed fresh local proof, Rust 1.95.0 on x86_64 Linux:

  • Clean detached head built with cargo build --locked -p ripr --bin ripr, exit 0. CLI SHA256 326a92c693344ef7257a838a5e44b85746f1d680248a80a2a26910660948cb64.
  • Ten independent real-CLI controls, each exit 0 with exactly one finding: two bare local receiver/annotation positives retain direct_owner_call; seven foreign-module, qualified-annotation, module-alias, type-alias, same-name module type-alias, explicit same-name import-shadow and binding-shadow negatives retain weak_token_substring. A crate::Site local control remains refused under the explicitly accepted conservative policy.
  • Each control compiled and executed natively. All ten candidate tests pass. Replacing only the local build return with 0 leaves all seven foreign-only tests passing and makes the two genuine local positives plus the conservatively refused qualified-local test fail. These are fixture oracle controls, not ten independent mutations of the analyzer.
  • Fresh copied public rust_qualified_foreign_receiver fixture: one static_unknown finding, gap_evidence_unresolved, all four related-test rows weak_token_substring/no_call_path. Fresh copied rust_same_method_owner_type_positive: one exposed finding with direct_owner_call. No honesty corpus was present in either copied input; the production CLI supplied these decisions.

Consumers inspected: classifier owner_call_relation_reason; direct/bound/literal receiver readers; test_grip_evidence/related_tests; transitive_reach's cached matcher; and implicit_call's shared readers. The intervening let_binding_certain_type_head helper can compact an annotation, but its inspected consumer uses it only for Operand::Other after the positive binding check fails, not as positive owner authority. No alternate positive bypass was established in these consumers. This is a bounded call-site audit, not proof that all repository-wide nominal-resolution siblings are absent; that stronger hypothesis from review 5641635396 is not this PR's accepted contract.

Observed hosted execution: Rust-only job 121077049207 logs execute all five new receiver tests successfully. Its actual checkout is merge 587b3a1, tree 46aea60959e5a00974ac719e0035cf9c8599948d, parents c0c0b04 and the reviewed head. The receiver production files and public foreign fixture are byte-identical between that checkout and head; this composition is distinct from the PR base metadata above.

Not verified here: terminal required matrix/current Windows native qualification, general type resolution, direct UFCS/unit paths, constructor return inference, unique-name attribution and borrowed-helper expansion. Historical ub-review/Windows limitations retain their original subjects; wrapper success is not upgraded to semantic proof. Accepted crate/self/super refusal is a precision cost, not a new blocker.

Canonical-owner next action: inspect the terminal jobs/artifacts and actual checkout of the already admitted merge-ready run 40162581663 (observed in_progress, attempt 1, same head), then reconcile the remaining final qualification/integration judgment. No new hosted request, Ready toggle, implementation write or merge occurred.

Local raw proof retained at /workspace/review-8833-evidence/: control-results.json, per-case inputs/CLI/native logs, public-fixture.json, positive-fixture.json, fence-comparison.json and build.log. control-results.json SHA256 408c0c8b1e96f4f3d0d82783c7f2075c061ee7f7fd294f50541acbea2f90d338. These local paths are retention locations, not publicly downloadable artifacts. This COMMENT records independent review under the author's account; it is not approval or merge clearance.

Copy link
Copy Markdown
Member Author

Review of record, head 9e315e3

  • Angles: correctness and edge cases; tests, regressions and spec/contract (two independent exact-head reviews at 12e9e51, whose receiver code is unchanged since); a further exact-head review on 9e315e3 (review 5641702884) that re-ran ten real-CLI controls and found no actionable findings.
  • Findings: no blocking defects. Accepted precision cost (crate::/self::/super:: qualified local receivers stay refused) is stated in the PR body. The one spec-wording overstatement (which pin carries non-promotion) was fixed in 12e9e51. The github-actions "alternate consumers not enumerated" question is a parked sibling concern; UFCS and unit-value paths are explicitly out of this slice.
  • Main moved again; the 10-25 merge conflict was only the honesty corpus, resolved by keeping main's cases and inserting this one. The fixture's confidence moved 0.66 to 0.56 with main and was re-blessed; class, stop reason and relation rows are unchanged.
  • Local: cargo xtask precommit exit 0 on this head.
  • Hosted: Ripr Rust Small Result and Rust gates green on this head; windows-advisory-subset, paste on all three OSes, wheel journeys, cargo-deny and source-of-truth green.

Merging with the head SHA pinned.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit a9eb589 into main Oct 25, 2026
54 checks passed
@EffortlessSteven
EffortlessSteven deleted the codex/8782-qualified-receiver-identity branch October 25, 2026 05:25

Copy link
Copy Markdown
Member Author

Verified external landing of #8833; terminal extension to review 5641702884. The source/runtime controls from that review were reused without reruns or new CI.

GitHub reports merged at 2026-10-25 05:25:50 UTC as a9eb5894953a04f92eed37968543d856bb183741. I independently fetched the Git object: its sole parent is d49439e and its tree is 95b6d424826f4c496444ff071ffe6cbd927d0fce. A read-only local merge-tree composition of that parent with reviewed head 9e315e3 produces exactly the landing tree. The landing delta is the expected 19 files / 795 insertions / 18 deletions. Receiver implementation, relevant specs, honesty corpus, changelog and foreign-fixture blobs are identical to the reviewed head. No extra conflict-resolution edit was introduced.

Existing run 40162581663, attempt 1 is terminal success, updated 05:24:29 UTC:

  • Actual Rust producer 121077162882: terminal success, no failed steps. Decoded logs establish checkout 587b3a1, tree 46aea60959e5a00974ac719e0035cf9c8599948d, parents c0c0b04 and the reviewed head. All five new receiver controls execute PASS. Nextest reports 20,960 tests run / 20,960 passed / five skipped across 168 binaries; separate doctests report two passed / one ignored. Policy, honesty, checks, strict Clippy, goldens, fixtures, verdict corpora, PR evidence and schema producer sweep all finish successfully.
  • Ripr Rust Small Result 121085345880: terminal success. Its actual environment records candidate admission admitted/current_unique_bounded, cut inactive/admitted, no competing PRs, GitHub producer success. Other hardware routes and the docs-only gate are skipped, not additional passes.

Currentness boundary: the qualified checkout is the c0c0-based composition above; the landed tree includes eight later main commits. I inspected that intervening path inventory and relevant shared-source deltas: the receiver matcher, text readers, direct test-grip/transitive consumers, manifests/lockfile and both receiver fixtures did not change. Other classifier/value-origin/output work did change. Clean composition/tree equality establishes integration provenance, not execution of the required suite on the later landed tree. No post-merge replay was requested or run.

Conversation and inline-thread reads establish no new unresolved source finding/dependency blocker for this slice. The old 12e9e51 conflict notice is superseded by the successful admitted run and actual landing; the accepted qualified-local refusal and parked UFCS/unit siblings remain non-blocking scope limits. #8782 remains open.

Limits: the connector rejected the rules-read URL as unsupported, so I do not assert independently verified protection configuration. The nextest ZIP was listed/uploaded, but its supported transfer into this workspace failed with "library file transfer failed: download failed"; its XML/run-context contents were not independently inspected. Test counts and checkout above come from decoded producer logs, not that unmaterialized ZIP or an advisory wrapper.

Canonical-owner next action: record #8833's verified landing as delivery of #8782 item 1 while retaining that issue's remaining scope. No direct merge, Ready change, branch write, rerun or new hosted request was performed in this review.

EffortlessSteven pushed a commit that referenced this pull request Oct 25, 2026
Conflict: classify/related_tests.rs (kept both test sets; #8833 qualified-initializer tests alongside the receiver-rule boundary test).

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