Skip to content

fix(rust): preserve retained macro-site disclosure parity (#8265) - #8772

Merged
EffortlessSteven merged 9 commits into
mainfrom
codex/8265-macro-site-parity
Oct 22, 2026
Merged

EffortlessSteven merged 9 commits into
mainfrom
codex/8265-macro-site-parity

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Rust's retained workspace macro-site lookup could select an unrelated scoped definition, conflate union/per-name trust contexts, or lose same-file ordering across root/global buckets. The scoped public-only witness consequently emitted two actionable gaps where the original singleton scan retained analyzer uncertainty. This repair restores singleton disclosure parity while preserving the bounded initial/deferred workspace passes.

Swarm / Source Boundary

  • Ordinary analyzer and fixture development for EffortlessMetrics/ripr-swarm.

Source-of-truth Links

Governing issue or accepted claim: #8265 (spec RIPR-SPEC-0240, Unknown, not a gap; no new proposal, ADR or spec ID).
Acceptance delta (one sentence): Retained workspace macro-site disclosures match the singleton reference for every assertion-context name and representative root query, and an unrelated scoped definition cannot turn binding uncertainty into an actionable gap.

Scope

Retained workspace macro-site disclosure parity. One production behavior: share a parsed tree/binding-free index across the admission-union and per-name disclosure queries, exclude scoped sites in both retention phases, and merge by path plus producer position while retaining Definition/Import priority and root reach. Evidence: eight regression controls (owner_pin/tests/retention_parity.rs), fixture macro_site_scoped_rest_limit with native goldens, whole-fixture corpus registration, RIPR-SPEC-0240 traceability, changelog.d/8265-macro-site-parity.md.

Non-goals: complete Rust macro resolution, cache/schema changes, broader classifiers, deadlines/budgets, dependency or migration changes, #8263, workflow changes, performance or release qualification.

Support-tier Impact

No language-tier or schema change. Output disclosure is corrected within the existing unknown-not-gap contract.

Policy Impact

No dependency, process/network or policy exception; no new non-Rust programming file.

Proof

Claim Boundary

The controls establish the reported singleton/disclosure/gap repair; they do not establish Rust soundness, real runtime test adequacy or general performance. Hosted required checks on the current head are pending.

Rollback

Revert the squash. No dependency, persistent-cache or migration state is changed.

Static Language Check

  • Static unknowns retain named stop reasons; no unsupported adequacy claim.

Engineering Check

  • No new production/test panic-family call, unsafe code or new repository programming language.
  • No dependency, workflow, process/network or public-schema change.

Review: self-review plus independent source/oracle review found no blocking defect; the two compiler-coercion bot claims were refuted (slice element dereference coercions type-check on Rust 1.95).

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Summary by CodeRabbit

  • Bug Fixes
    • Rust macro-binding analysis now preserves argument context and source order when evaluating assertion macros, including during deferred analysis.
    • Scoped, unrelated macro definitions no longer incorrectly determine whether a changed behavior has a test gap; unresolved evidence remains classified as unknown.
  • Tests
    • Added coverage for scoped macros, rebinding, argument handling, source ordering, and root-dependent selection.

Walkthrough

The change shares Rust macro-site parsing and indexing, preserves retained-site source order, and applies shared routing during initial absorption and deferred completion. It adds parity tests and a fixture whose expected reports retain unresolved findings without claiming a test gap.

Changes

Macro-site retention

Layer / File(s) Summary
Shared macro-binding scan
crates/ripr/src/analysis/syntax/owner_pin.rs, crates/ripr/src/analysis/syntax/mod.rs, crates/ripr/src/analysis/classify/owner_pin.rs
Macro binding queries share one parse and BindingFreeFileIndex. The syntax module re-exports the new scan interface.
Retained-site routing and lookup
crates/ripr/src/analysis/classify/owner_pin.rs
Retained sites carry source positions. Initial absorption and deferred completion use shared routing, and workspace lookup compares path and source position.
Macro-site parity tests
crates/ripr/src/analysis/classify/owner_pin/tests.rs, crates/ripr/src/analysis/classify/owner_pin/tests/retention_parity.rs, .ripr/traceability.toml
Parity tests cover scope, singleton arguments, unparsed input, import ordering, and root-dependent rebinding. Traceability lists the tests.
Scoped-site fixture and expected reports
fixtures/macro_site_scoped_rest_limit/*, fixtures/evidence-promotion-honesty-corpus/corpus.json, .ripr/traceability.toml, changelog.d/8265-macro-site-parity.md
The fixture changes the bound from 11 to 10 and adds a scoped no-op assert_eq! macro. Its expected reports contain two static_unknown findings and no gap claim.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant scan_macro_sites
  participant trusted_macro_binding_site_sets
  participant macro_binding_ambiguity_sets
  participant retain_macro_sites
  participant workspace_macro_site
  scan_macro_sites->>trusted_macro_binding_site_sets: Request macro binding-site sets
  trusted_macro_binding_site_sets->>macro_binding_ambiguity_sets: Scan trusted names and singleton names
  macro_binding_ambiguity_sets-->>trusted_macro_binding_site_sets: Return ambiguity and retained-site results
  trusted_macro_binding_site_sets-->>scan_macro_sites: Return binding-site sets
  scan_macro_sites->>retain_macro_sites: Route retained sites with source positions
  retain_macro_sites-->>workspace_macro_site: Provide ranked site indexes
  workspace_macro_site->>workspace_macro_site: Select the earliest eligible site
Loading
Merge Risk: 🔵 Low · up to cb6f7

A narrow macro-binding disclosure case can identify the wrong site. Preserve source order across scanner passes before merging, or accept this bounded risk.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 55.17% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 29 functions across 8 files. (10 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description explains the change, scope, proof, claim boundary, and rollback. However, it omits required template sections, including Candidate Relationships, Scope Classification, Spec-Test-Code T… Complete the missing template sections. Mark CI Economics as n/a if applicable, document candidate or stack relationships, classify the scope, provide spec/test/code/golden traceability, and record the relevant gate results.
Passed Passed checks: 3 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the primary change: preserving retained macro-site disclosure parity in Rust.
Full details: Docstring Coverage

Explanation

Docstring coverage is 55.17% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 29 functions across 8 files. (10 skipped: 10 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Full details: Description check

Explanation

The description explains the change, scope, proof, claim boundary, and rollback. However, it omits required template sections, including Candidate Relationships, Scope Classification, Spec-Test-Code Traceability, CI Economics, and the Gates checklist.

Resolution

Complete the missing template sections. Mark CI Economics as n/a if applicable, document candidate or stack relationships, classify the scope, provide spec/test/code/golden traceability, and record the relevant gate results.

✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the paths in line,
And sorts each macro site in time.
Through scopes and tests, the traces run,
Two unknown findings greet the sun.
Then hops away, its checks all done.

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

gemini-code-assist[bot]

This comment was marked as resolved.

@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

  • public API re-export adds trusted_macro_binding_site_sets alongside trusted_macro_binding_sites in analysis/syntax/mod.rs and owner_pin.rs; callers downstream were not enumerated here beyond scan_macro_sites. The new symbol is leaf-call only with no schema/version change.
  • Sibling scope check found no other crypto/compression/runtime helper paths relevant to #8265 — the change is confined to Rust macro-binding admission/retention in analysis/{syntax,classify}/owner_pin.rs and one corpus fixture; no JSON, hashing, regex, archive, or process-spawn helpers are touched.

Verification questions

  • Confirm two gemini-code-assist review comments flagged missing .copied() after .flatten() on singleton_names causing &&&str type mismatches in syntax/owner_pin.rs. The reconstructed HEAD diff does NOT contain those .copied() calls in the unparsed-fallback (line ~633) or singleton flat_map (~655) branches, yet the parity suite and corpus are claimed green. This indicates either the diff is stale relative to current HEAD, or the gemini findings were against an earlier draft and the live code uses a different shape. Resolving requires comparing the live file at the cited lines against the diff hunks shown.
  • Confirm the diff adds macro_binding_scan_needed(source, &[name]) as a per-singleton prefilter inside both the unparsed fallback and the parsed flat_map, but macro_binding_scan_needed only inspects source and trusted; when called with a singleton slice the trusted.contains(&"json") && source.contains("serde_json") short-circuit is dead because trusted is &[name]. For a file containing serde_json the unparsed branch will emit Unparsed sites for every trusted singleton (including non-json) even when only the json macro needed scanning — sibling of the original concern that the new prefilter must not over-include.
  • Confirm scan closure inside macro_binding_ambiguity_sets captures binding_free by reference via (tree, binding_free) tuple; lifetime must outlive call to scan(&[&str]).
  • Confirm fixture targets scoped_rest but fixture input/tests/buf_tests.rs defines mod unrelated { macro_rules! assert_eq { ... } } and the golden's evidence cites pub use std::io::prelude::*; at src/globs.rs — there is no inner-scope assert_eq! redeemed by the scoped definition on stdout; the unredeemed glob message reads correctly but a goldened test asserting the wrong rebinding target (e.g., src/globs.rs path/path::assert_eq) was added would trip the corpus must_not_promote invariant. Confirm the diff reverses only the bound value and not the lib/globs layout. (fixtures/macro_site_scoped_rest_limit/expected/check.json:1).

Refuted

  • Shared (parse, BindingFreeFileIndex) between union and singleton scans is read-only over the tree; no detach/mutate. ra_ap_syntax SyntaxNode is a borrowed RedPtr view, stable for the &str source lifetime. No resizable-buffer semantics in Rust path.
  • retention_parity tests are smoke-only self-equality assertions; refuted because: parity() drives the deferred pass via trusted_macro_ambiguities(), asserts scan_passes()==2, and the rebuild_and_root_control case checks distinct (path,kind) tuples per root, ruling out self-equality.
  • retain_macro_sites new closure names = match ... { Some(root) => retained.by_root.entry(root).or_default(), None => &mut retained.global } borrows retained and returns &mut to sub-map; then calls .entry(name).or_default().absorb(&path, position, &site) which itself re-borrows retained — re-entrant borrow on retained.; refuted because: Chain .entry(name).or_default() resolves to &mut MacroSiteRank, then absorb borrows &path and &MacroBindingSite from the call site, not from retained. The site and path come from the outer iterator (owned Vec). Compiler-valid under disjoint-borrows-of-disjoint-fields; rustc will accept. Conflict with the mutable borrow on names is only on the local MacroSiteRank, not retained.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

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

[P1] REPAIR_REQUIRED: current-main composition conflicts after #8388. The submitted head remains 9fc6a47f29b5ad581a527244681d4c4bf0d4714b. Independent source/oracle inspection found no defect on its original basis, and the old advertised composition passed the local checks below. A final state check then discovered material main movement; this candidate is not currently eligible for a pre-merge qualification request. This is a COMMENT inspection record; no approval/Ready/qualification/merge action was performed.

Blocking integration finding and precise repair request

At the final pre-post read, main had advanced to 8654ddb2a3e8c25212b80e05f73f10790538a9b8, including #8388. GitHub's refs/pull/8772/merge still returned the older 4c4bba7406236cc47eec1c64d19560c6149080e6; PR metadata temporarily returned merge_commit_sha: null. Neither observation establishes a valid composition with the new main.

Observed reproduction: git merge-tree --write-tree 8654ddb2a3e8c25212b80e05f73f10790538a9b8 9fc6a47f29b5ad581a527244681d4c4bf0d4714b returns native exit 1, with a content conflict in crates/ripr/src/analysis/syntax/owner_pin.rs (base blob d663a0a73a38c7e6c21c21bd6cb9a4012814c075, main blob e3789ea4b16be80ced4f0d076d823c4b11d31570, candidate blob aa934f1393e6ace1804c0bad698ca797a0027610). The emitted tree 93e7464ac73395be6188923ccbd84552131bee3e contains conflict markers; it is NOT a valid or executed composition.

Failure mode / invariant: the advertised, executed old tree lacks a material change in the same semantic owner. #8388 changes std/core glob admission, widens standard-root alias candidates/prefilter handling, and changes manifest root verification. Its tests replace the shared convergence witness's std::io glob with rayon::prelude::*. The new parity tests and fixture still depend on std/fmt/io globs being ambiguous. This is a contract interaction, not a behind-only branch concern. No new-main behavioral test failure is claimed: the composition is conflicted and was not compiled.

Repair direction for the existing source lane:

  1. Integrate current main into the same candidate and resolve the syntax-owner conflict while preserving both singleton/union parity and #8388's standard-root trust/alias behavior. Carry the new extern prefilter into the extracted/shared prefilter; adapt upstream's parse/tree references to the shared tree; retain verified_root changes at all relevant consumers.
  2. Reconcile new regression/fixture stimuli with the changed contract. Use genuinely foreign glob witnesses where ambiguity/saturation is required, consistent with upstream's replacement convergence witness, and keep valid fixture dependencies if native compilation is claimed. Do not restore std/core ambiguity or blindly bless changed goldens to regain green. Standard-root positive controls must still pass. Alloc remains foreign under #8388's current manifest contract.
  3. Rerun the affected owner-pin selection including new #8388 controls and all eight parity cases, fixture JSON/human comparisons, whole-fixture honesty gate plus wrong-output rejection, and fixed-input CLI controls. Judge std-root output changes against the new contract rather than requiring equality with the old composition.
  4. Freeze the repaired exact head and actual advertised merge parents/tree, refresh independent review and applicable local composition proof. Only then return eligibility to the parent for its separate qualification-request decision.

Confidence: high for the observed content conflict and overlapping semantic contract; post-resolution output details remain to be executed. Keep Draft. No submitted source was modified and no competing repair was started.

Earlier frozen subjects and completed proof (2026-10-18 UTC; superseded for current-main eligibility)

  • Reviewed head: 9fc6a47f29b5ad581a527244681d4c4bf0d4714b, tree 78bb14ec667570f0877f7c369e98bf0be1967f96; reconstruction basis 006eaf853fce5713a2e9044ba9c8d6a9a873f3d0.
  • GitHub refs/pull/8772/merge: 4c4bba7406236cc47eec1c64d19560c6149080e6; ordered parents base 4f481952e1143415d0c8997ad14954a518ee9d49, head 9fc6a47f29b5ad581a527244681d4c4bf0d4714b; tree 6675f441ac26ded8c6765357707d27cd0110215b. GitHub Git-data read and native Git object agree. Independent git merge-tree --write-tree <base> <head> produces that tree.
  • Executed subject: that actual advertised merge in a review-owned detached worktree. All 18 candidate-path blobs equal the published head; later main changed none of those paths. Rust activation/probe/diff changes on main were inspected and exercised below. No restack or submitted-source edit.

Inspection and discriminator

Read the complete 18-file diff, current discussion/reviews/threads, RIPR-SPEC-0240, repository review/validation procedures, scanner consumers, fixture outputs, corpus row and traceability/changelog. The syntax owner preserves the scanner body while sharing parse/binding-free indexing between distinct union and singleton contexts. The retention consumer prunes per-name candidates, excludes scoped sites in both phases, retains per-name producer order across root/global buckets and preserves Definition/Import precedence. Followed selected sites through refusal classification and gap admission: the selected kind changes whether uncertainty is withheld as an unknown, so disclosure is behaviorally significant.

The eight regressions contain literal scoped-site/root controls as well as singleton-reference comparisons and two-pass assertions. Hash-verified raw tests-only RED compiled successfully, then failed six intended cases with two positive passes; repaired GREEN passed eight. This is newly reconstructed evidence, separate from lost fc18360e9a50eb94b194fa38ba2f89e34d19fa82 evidence.

Independently executed local proof

Linux x86_64, rustc/cargo 1.95.0; two Cargo jobs, four Rayon threads, existing shared Cargo target. Native exits below are terminal; no storage/time guard fired.

Command/subject Result
cargo test --locked -p ripr --no-default-features --features lang-rust --lib owner_pin -- --nocapture 260 passed, 0 failed/ignored, 9519 filtered; exit 0
cargo test --locked -p xtask --bin xtask evidence_promotion -- --nocapture 80 passed, 0 failed/ignored, 3859 filtered; exit 0
Same compiled composition library executable, analysis::probes::diff::tests::, analysis::classify::activation::tests::, analysis::diff::model::tests:: respectively 52 / 69 / 22 passed; each exit 0
cargo build --locked -p ripr -p xtask --bins --message-format=json default-feature product/xtask build; exit 0
xtask fixtures macro_site_scoped_rest_limit JSON, human and human-full comparisons pass; exit 0
xtask check-evidence-promotion-honesty, deliberate two-finding reachable_unrevealed JSON/summary/human-class re-blessing in review-owned tree exit 1; specifically names both findings and expected_class static_unknown
Exact original golden bytes restored; same honesty gate exit 0; clean tracked worktree

Five fixed-input CLI controls ran through the newly built composition binary, ready mode, individual 30-second caps and fresh separate caches. All exit 0, uncensored, analysis complete, two findings each. Entire JSON objects match the candidate outputs after replacing only the known relocated control-root prefix. An initial strict comparison failed solely on absolute roots/drill-in routes; retained as a comparator/setup outcome, not a product failure. Clean retains two exposed findings; same-path-rank and scoped-rest retain unknowns; scoped-public-only retains two unknowns, both named uncertainty codes, the unscoped src/globs.rs:1 disclosure and no gap IDs; trusted-subset selects src/a.rs:1 stringify arguments. Input bytes remained unchanged.

Composition CLI reports ripr 0.11.0 (4c4bba7406236cc47eec1c64d19560c6149080e6); SHA256 0558c89f656a656345da9f085c7737d09d286d5cbeb80fa3c2bc878695f9d143, 228340264 bytes. Captured compiler-artifact/source/profile/features, native command receipts, raw output, comparison/challenge drivers and a verified frozen CLI are retained for the parent. These are local checks, not hosted required-check results.

Current finding dispositions

  • 4306237493 and 4306237502: refuted, not stale-diff claims. Live source really has the cited iterator shapes. Expected &[&str] arguments permit element dereference coercions. Independently compiled the retained exact-shape control on Rust 1.95, exit 0/no diagnostics; full composition test/product builds also succeed. No .copied() repair is required.
  • Later review 5562061396: its public-API description is inaccurate: declaration and re-export are pub(crate), under private analysis::syntax. Repository search enumerates one production call, scan_macro_sites, plus definition/import/re-export. No public API/schema expansion.
  • Its singleton-prefilter concern is refuted: trusted.contains(&"json") remains live for the singleton named json; it is false for other names. An additional independently compiled/executed exact-iterator control asserts that serde_json ??? yields only json in both iterator shapes, while a macro_rules! source admits all queried names; compile/run both exit 0. The actual product's unparsed-prefilter regression also passed.
  • Its closure-lifetime question is discharged by the actual Rust builds: shared tree/index live through synchronous scan calls; no source mutation or escaped reference was introduced.
  • Its fixture question: diff.patch changes only 11 <= value to 10 <= value; it does not change lib/glob layout. Literal scope unit controls and native CLI output select the unscoped foreign glob. The corpus row pins classification/nonempty results, not arbitrary disclosure paths; path/kind correctness comes from the separate literal/parity/CLI controls. Do not claim that must_not_promote alone rejects every wrong path. The provider's rejected model-proof intent remains unavailable provider evidence, not a successful proof.
  • Both inline compiler threads remain unresolved as requested; no other's review/thread was dismissed or resolved. CodeRabbit's quota message supplies no CodeRabbit review.

Evidence provenance and residual boundary

Fetched the immutable reconstruction packet through Git and verified all 243 payload byte counts/SHA256 values. Manifest SHA256 is a107dadecfed8a9f1ea3a05fd862fed5db6e7a51244c5e33bcf97e9c68856758. Verified its production/test blob bindings against both head and composition. Inspected raw RED/GREEN, 260/80-test, CLI, final precommit, golden and Clippy receipts. Final-head precommit has complete 18-record selection, basis 006eaf853, full goldens with zero drift/errors and selected ripr/xtask all-target Clippy passes; report digest sha256:dc70d640fe103a9eb99da34430a516e9634335a802129e19aac9faef358ad111. Those precommit/full-golden/Clippy executions remain author-run evidence, not independently rerun whole suites.

The original-basis source/oracle and old-composition results remain valid for their named objects. The current-main integration conflict above blocks advancement and has a concrete repair request. Hosted required checks, effective protection acceptance, actual hosted job checkout, full workspace/nextest matrix, all-features, native Windows, whole-repository dogfood, external accuracy, broad performance and release proof are unestablished here. No platform/process/security/workflow implementation changed. Current routed Rust workflow requests PR qualification on ready_for_review; no such transition, label, dispatch, merge or release was performed. Keep Draft and return the old tested composition plus the current-main integration repair request to the parent; do not request qualification on the stale subject. Any head or material composition change requires affected review/proof refresh.

EffortlessSteven commented Oct 18, 2026 •

Copy link
Copy Markdown
Member Author

Qualification continuation — held before Ready

Current exact head remains cb6f7667430ad12f1cea5bb8b23ad98e078400b9, open Draft, with unchanged ownership. Independent review5562474288 clears source/local integration on that head and executed advertised merge 69c857708172c0119a0da7842885480b04dcda16 (parents main 69542f1a6ac8c1065edee6f93f08c749f5a6f4ef / head; tree 416c4614137a15a784f3ed4057f166c729eac0a8). The two older compiler threads remain unresolved but independently refuted; the producer-order proposal was withdrawn/resolved by its provider. No other's thread was resolved here.

Later-main inspection: current fetched main a54b993b14440e51c462084f6d3845e549f6b619 composes conflict-free to tree 55a7603bf04b25c941de08a88e72aa624c7774a0. Against the executed Rust-only dependency projection, 701/702 files match; the changed file is the already-reviewed existing-comment/output-path validation helper, outside the analysis/check route. The only delta after the successor review's final observed main is TypeScript committed-snapshot refusal. No affected Rust analyzer control requires repetition; no whole later-tree qualification is claimed.

Stop condition found before transition: live routed-rust.yml:8 subscribes to pull_request.ready_for_review and invokes the full rust-gates matrix for a non-docs candidate. That includes workspace/all-target/all-features checks, strict Clippy, workspace nextest, doctests and golden/fixture/verdict proof. Ready is already an expensive qualification request under installed enforcement. Separately, ci.yml's merge-ready labeled event starts its Rust-only test lane; routed-rust also exposes a manual full-matrix dispatch. The requested selection-only Ready followed by a separate explicit request is not installed; AGENTS identifies #8082 as the staged caller/skills migration owner. Following both stages now risks duplicate/overlapping expensive proof. Per the user's explicit stop condition, Ready was not marked and no label or dispatch was requested. Workflow/protection/credential settings were untouched.

Request/run reconciliation: the connected first-page PR-event lookup returned11 completed runs (success/skipped), with no active equivalent observed there. Its wrapper is first-page-only and excludes manual events, so complete absence is unestablished. A native paginated Actions-run inventory GET for this exact head returned Forbidden; that denied read was not retried or routed around, and no protection endpoint was retried. No new qualification request/run was created by this task.

Next / owner: parent chooses a single authorized qualification event under live enforcement or the existing #8082 owner completes the staged-protocol cutover; complete authorized request/run inventory is also required before admission. Preserve the reviewed head and Draft state. No merge, other's thread resolution or security/credential change.


Historical repair-stage continuation and proof:

Current #8772 continuation — Draft / REVIEW_INCOMPLETE

Owner / claim: authorized continuation of Rook's #8265 repair after the former author task became terminal; ownership/head verified before edits and immediately before normal push. Existing branch and PR retained; no force push or duplicate candidate.

Exact objects

Subject Commit / tree
Original source 9fc6a47f29b5ad581a527244681d4c4bf0d4714b
Integrated main basis ebe5350c6b2ac5364e4a246c625ae9db046707da
Published normal merge cb6f7667430ad12f1cea5bb8b23ad98e078400b9; ordered parents original source / integrated basis; tree 2d96d633ae70fbd127e9c04ecf292ff8e0467da0
Advertised and executed merge 69c857708172c0119a0da7842885480b04dcda16; ordered parents main 69542f1a6ac8c1065edee6f93f08c749f5a6f4ef / published head; tree 416c4614137a15a784f3ed4057f166c729eac0a8

GitHub/native object readbacks agree. Native merge-tree gives the advertised tree; all18 candidate-path blobs match the published head. The current PR head is open Draft at cb6f766.

Repair and proof

Shared scanner resolution retains #8388's extern prefilter, whole-file root/alias checks and verified_root consumers, with #8265 singleton/union parity. Parity stimuli now use foreign globs. The native fixture uses builtin alloc, explicitly foreign under #8388's current manifest contract, with its extern declaration and no new Cargo dependency.

Linux/Rust1.95.0 local terminal results:

  • Source-bound owner-pin:262 passed, including all8 parity cases and standard-root controls. All789 Rust source/test/build/manifest input hashes match the committed repair.
  • cargo test --locked -p xtask --bin xtask evidence_promotion -- --nocapture:80 passed.
  • On the actual advertised merge: Rust-only owner-pin262 / probe53 / activation69 / diff-model22 passed, zero failures/ignored. The extra probe control from later main is included. This is local composition execution, not a hosted checkout.
  • Exact published-head default CLI/xtask build passed. CLI identifies cb6f766; SHA256 ff178da3397d6479226a7d6a0be12c27d147e04dcba871899fee6784dd9575f5.
  • Five original fixed inputs plus five foreign-glob variants: all exit0, complete/nonempty, uncensored30s caps and fresh separate caches; no owned descendants remain. Standard-root output changes were judged against dogfood: same assertion gets different oracle strength per probe; plain assert_eq! "not credited as the standard macro" #8388. Original scoped-public-only retains generic uncertainty, not a std-glob disclosure. Foreign scoped-public-only names the unscoped alloc glob; trusted-subset names the earlier stringify argument.
  • Inspected native fixture output has two static_unknown findings, both required limitation codes, alloc-glob disclosure and no gap IDs. JSON/human comparisons pass; a byte-matched fixture copy compiles and passes its one native test.
  • Whole-fixture honesty gate passes. Deliberately changing both findings/summary/human projection to reachable_unrevealed is rejected (exit1, both expected_class violations); exact bytes restored and gate passes.
  • check-fast passes14 gates / independently verified18 paths, including workspace/all-target Clippy with warnings denied.
  • Final precommit passes, complete18-record selection on the integrated main basis; selected ripr/xtask all-target Clippy passes. Full golden scan: zero drift and zero fixture errors. V2 report digest sha256:91dba0aed7ffbc6ffa064f8ee90681c12b80c7f4efd5d8efceacf525060e7bf0.

Earlier compilation, storage-guard interruption and fixture-availability outcomes remain separate historical/setup evidence. Missing locked anyhow1.0.100 was prepared through the supported goldens command before the complete final scan; no availability drift was blessed. No product/analyzer budgets changed.

Review and currentness

The new physical-source-order proposal 4306512773 is refuted against the governing singleton-reference contract in source/CLI reply4306532725: producer/emission order is intentional across scanner passes; sorting by line would introduce a disclosure-parity regression. No thread was resolved. Existing compiler comments remain separately refuted by successful builds and unchanged iterator shapes.

Later observed main 36dfc3d6bcfc91d83c6aa2ae5cbea51c25832921 contains Python/TypeScript/traceability changes after the frozen executed merge. Its native composition is conflict-free, tree 59cc969577809bcab12ebc6264dc0dd80c6284f8. All702 actual Rust-only compiler dependency files match that tree. This preserves the scoped Rust proof; the full later tree/default-language changes are not newly executed or qualified. The advertised ref still names the frozen merge above. No behind-only restack.

Next / owner: parent performs independent exact-head repair re-review using the published head, frozen advertised merge and separate late-main inspection. No final technical clearance or qualification-request eligibility is asserted here. Full hosted checks/actual job checkout, full workspace matrix, native Windows and release proof remain unestablished. Keep Draft. No Ready, hosted CI request, merge, release, security/credential changes, task archival or destructive cleanup. Source/build/evidence witnesses are retained for the parent; all owned proof drivers are terminal.

The PR body's earlier reconstruction proof remains historical; this comment is the current continuation record.

coderabbitai[bot]

This comment was marked as resolved.

@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

  • Sibling-path scan limited to one crate (ripr) and the analysis::{syntax,classify} subtrees; no automated cross-crate caller enumeration was run for trusted_macro_binding_sites outside the listed headers. Any external consumer added in a future change outside these paths will need separate review.

Refuted

  • OrderedMacroSite::precedes may use a dangling Path via as_path() returning a borrow tied to a temporary; refuted because: as_path() borrows self.path which lives at least for the duration of the comparison expression; no reference escapes precedes, no aliasing risk. Recompile-time invariants remove any pointer-aliasing concern.
  • PR diff contains no JavaScript/TypeScript/WASM/JS-arraybuffer/SharedArrayBuffer code; ub-active-view scope (resize/detach/transfer, length snapshots, ArrayBuffer transferables) is not exercised by this Rust analyzer change.
  • JS-backed memory crossing worker/async/GC/detach/transfer boundary hazard; refuted because: PR contains no JavaScript, no worker, no async runtime, no transferable buffer, no GC-managed object, no detach point. The diff modifies a synchronous Rust analyzer (owner_pin.rs) that walks RA-AP syntax trees in a rayon par_iter map. There is nothing for a worker-handoff lane to check.
  • syntax/owner_pin.rs:652 and :674 contain a &&&str type mismatch from missing .copied() after .flatten() (gemini-code-assist critical).; refuted because: The current diff already slices with &[name] (singular) and &[*name] (singular) — the helper macro_binding_ambiguity_sets introduces the singleton names, then filter/flat_map iterate &str, not &&str. PR body records native 0 diagnostics for production/test targets and green fixture output, consistent with the type-check passing. The bot review was against an earlier draft before the helper landed; the current HEAD no longer has the layered reference.
  • A sibling crypto/compression/runtime helper shares the same trust-context conflation and needs a parallel parity fix in this PR.; refuted because: Sibling scan across hashing, JSON, regex, archive, and process-spawn helpers found no overlap with the changed paths; the union/per-name trust-context split is macro-binding-local and re-export is leaf-call only.
  • Parity harness in retention_parity.rs calls workspace_macro_binding_site (the reference) and syntax.workspace_macro_site (the candidate) on the same OwnerPinSyntax fixture; the production path delegates to the same MacroSiteRank.absorb. If scoped exclusion were missing, both sides would lose the same sites, the test would still pass, and the real fixture would still fail.
  • Box::from(slice) allocation failure does not return None; recoverable fallback claims are dropped.

Parked follow-ups

  • Broader classifier coverage (parser_format/glob/path), deadline/budget changes, and #8263 implementation remain explicitly out of scope per PR body and should stay parked — no sibling path requires broadening the current Rust macro-site parity fix.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • PR body records RED with 6 intended failures / 2 positive controls (native 101) and GREEN 8/8 (native 0); broader owner_pin selection 260 passed / 0 failed/ignored. That matches the eight parity tests + an extra fixture control pair, but the red/green transcript itself is not in the lane packet.

@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 source, oracle or affected-integration finding emitted for successor cb6f7667430ad12f1cea5bb8b23ad98e078400b9. The previous #8388 integration repair request is satisfied. Source/local-integration clear; technically eligible for the parent's separate pre-merge qualification-request decision. Final-merge disposition remains REVIEW_INCOMPLETE for hosted proof and actual checkout/protection acceptance. This COMMENT review does not request Ready, CI, merge or release.

This supersedes the blocking disposition in review5562095617 for its old 9fc6a47f subject. That review, its successful old-tree checks and its later conflict receipt remain historical evidence under their original identities.

Exact objects and composition

  • Published head cb6f7667430ad12f1cea5bb8b23ad98e078400b9, tree 2d96d633ae70fbd127e9c04ecf292ff8e0467da0; ordered parents original candidate 9fc6a47f29b5ad581a527244681d4c4bf0d4714b / integrated main ebe5350c6b2ac5364e4a246c625ae9db046707da.
  • Observed GitHub refs/pull/8772/merge and independently executed subject: 69c857708172c0119a0da7842885480b04dcda16; ordered parents base 69542f1a6ac8c1065edee6f93f08c749f5a6f4ef / head cb6f7667430ad12f1cea5bb8b23ad98e078400b9; tree 416c4614137a15a784f3ed4057f166c729eac0a8.
  • GitHub Git-data and native commit objects agree; independent merge-tree reproduces that tree. All 18 candidate-path blobs match the published head. #8388 is in the head's ancestry. Review ran in an owned detached checkout; no submitted source was altered.
  • Later main 36dfc3d6bcfc91d83c6aa2ae5cbea51c25832921 composes conflict-free to tree 59cc969577809bcab12ebc6264dc0dd80c6284f8. All 702 canonical repository dependencies from the actual Rust-only test executable's compiler depfile are byte/blob-identical there, with no missing paths.
  • Final observed main 2671dd85f6e159457c460a35ada5e618cba624d7 composes conflict-free to tree 6925f14e42b38269d98fdb4f897a14dc73cb03da. 701/702 of those inputs remain identical; the changed file is cli/commands/pr_comments_github.rs. Inspected its confined existing-comment/output-path validation changes: they do not change the analysis/check route. Other late deltas are Python/TypeScript (including #8785 module-value-use shadow handling), Perl corpus, unrelated traceability and release-test work. The whole later tree is not newly executed or qualified here. The advertised merge still names the frozen executed subject above. These unrelated deltas do not require a behind-only restack or invalidate the scoped analyzer observations.

Repair inspection

Read the complete current 18-file diff against the integrated basis, resolution changes, all current reviews/threads, repository review/validation procedures, changed fixture/spec/traceability/goldens and the actual consumers. The procedures/policy files used in the earlier review are unchanged.

The shared scanner carries #8388's extern prefilter into union and singleton queries, preserves standard-root alias/import checks over the whole file, and uses file_tree where a local use-tree variable would be the wrong scope. All three relevant owner-pin consumers preserve verified_root; serde_json retains its separate proof. The scanner body remains semantically shared while trust contexts remain distinct.

The retainer preserves scoped exclusion in both phases, root reach, per-name producer order and Definition/Import priority. The test reference independently filters scoped/unreachable sites and selects first-emitted sites; it does not invoke MacroSiteRank::absorb.

The eight parity stimuli now use foreign globs. The native fixture uses builtin alloc with an explicit extern declaration and no new dependency. Alloc remains foreign under the current manifest proof; std/core positive and alias/refusal controls remain present. The fixture's changed bound and diff coordinate both move to line 4. Traceability maps all eight regression symbols and the whole fixture; the changelog retains the canonical Fixed fragment format.

Fresh independent local results

Linux x86_64, Rust/cargo 1.95.0; two Cargo jobs, four Rayon threads, two Rust test threads. All results below are terminal native results on the frozen advertised merge; no resource/time guard fired.

Executed subject / command Result
cargo test --locked -p ripr --no-default-features --features lang-rust --lib owner_pin --message-format=json -- --nocapture 262 passed, 0 failed/ignored, 9528 filtered; exit 0. Includes all eight parity cases and std-root controls.
cargo test --locked -p xtask --bin xtask evidence_promotion -- --nocapture 80 passed, 0 failed/ignored, 3867 filtered; exit 0.
Same compiled composition library executable: probe-diff / activation / diff-model selections 53 / 69 / 22 passed, respectively; each exit 0, no failures/ignored.
cargo build --locked -p ripr -p xtask --bins --message-format=json default-feature product and xtask build; exit 0.
xtask fixtures macro_site_scoped_rest_limit JSON, human and human-full comparisons pass; exit 0.
Byte-matched scratch copy of native fixture, cargo test --offline ... One test passes; exit 0. Deliberately restoring the wrong 11 <= value bound makes pins fail, native 101; exact source bytes restored, one test passes again, exit 0.
Whole-fixture honesty gate with deliberately wrong two-finding reachable_unrevealed JSON/summary/human-class re-blessing Native 1, naming both expected_class violations. Exact original golden bytes restored; same gate passes, native 0; clean tracked checkout.

Eleven real CLI controls used individual 30-second caps and fresh separate caches: the five immutable original inputs (all 29 input files rechecked against the earlier immutable packet), five independently constructed alloc-glob variants, and one additional producer-order case. Every invocation exits 0, uncensored, analysis complete and two findings:

  • Original clean, same-path-rank, scoped-rest and trusted-subset: two exposed findings, consistent with #8388 trusting their std roots. Original scoped-public-only retains generic uncertainty, without a std-glob refusal disclosure.
  • Foreign clean remains exposed; the other four foreign controls retain two static_unknown findings. Foreign scoped-public-only has both named uncertainty codes, unscoped alloc-glob disclosure at src/globs.rs:1 and no gap IDs. Foreign trusted-subset discloses the earlier stringify argument at src/a.rs:1.
  • Additional producer-order input places assert_eq!(assert_eq!(1, 1), ()) on line 1 and pub use alloc::vec::*; on line 2. Both findings disclose the line-2 glob: the first scanner walk emits it before the later bound-name fixpoint appends argument sites. This is intentional singleton emission parity, not physical-line sorting.

The initial control harness incorrectly demanded a stringify refusal on the original std-glob trusted-subset case. Its native invocation correctly returned exposed findings under #8388. That harness assertion was restricted to the foreign variant; the original native-zero receipts were retained and reused, with no product change or concealed failing invocation.

Composition CLI: ripr 0.11.0 (69c857708172c0119a0da7842885480b04dcda16), SHA256 0a28f7571bc3cb216cb90ed9971c5ffd56898878945bc368cfc0c830fe1b01d8, 228642240 bytes. Rust-only test executable SHA256 84615724a3db95ed7cf528c0820165d7c76c72c7158a421941a6c38d96865729. Captured compiler artifacts/features, raw output, input hashes, experiment drivers, restored-byte receipts and verified frozen executable copies are retained for parent/repair consumers. These are local checks, not hosted required checks.

Current finding dispositions

  • The previous integration conflict is superseded by the repaired head, supported by source inspection, ancestry, conflict-free actual composition and fresh execution.
  • Compiler comments 4306237493 / 4306237502 remain refuted. Reference nesting in the live iterator shapes remains; expected element types permit dereference coercion. This is not a stale-diff explanation or a claim that flattened iterator item types became &str. Fresh actual product/test compilation confirms the result. Their unresolved thread state is unchanged by this review.
  • 4306512773 is refuted for the governing emission-parity contract, independently supported above. The provider's withdrawal and resolved state are observed; this review did not resolve it.
  • Review5562433436: a repository-wide Rust caller search finds one production call to the new crate-private helper, scan_macro_sites. Existing helper consumers include owner-pin and activation; inspected them and ran their selections. No current external public API consumer is exposed. Future hypothetical consumers are not a present defect. Its potential parity self-equality premise is contradicted by the independent reference selection/filter path above; shared semantic scanner code is a stated limitation, supplemented by literal site/root controls, real CLI results and the two fresh negative experiments. Its compiler-refutation conclusion is correct but its reference-type/stale-draft explanation is inaccurate, as clarified above. Rejected model-proof intent remains missing provider proof, not a successful validation.
  • The corpus pins classification/nonempty results; it does not independently pin every possible disclosure path. Literal unit controls and explicit CLI site checks provide that separate evidence. CodeRabbit's docstring warning is not counted as a pass or silently cleared; repository required-check/protection acceptance remains unestablished.

Provenance, residuals and next owner

The current continuation reports source-bound 789-input proof, check-fast, full precommit/goldens and selected Clippy, including V2 digest sha256:91dba0aed7ffbc6ffa064f8ee90681c12b80c7f4efd5d8efceacf525060e7bf0. Those full-suite executions remain reported author evidence, not independently rerun or raw-receipt-verified in this pass. The observed results above are this review's fresh proof. Earlier 260-test/RED/GREEN/CLI evidence is retained under its old subject, never relabeled as successor execution; lost-candidate evidence remains separate.

No source/oracle/affected-composition repair request remains from this pass. Full hosted checks, actual hosted job checkout, effective protection acceptance, the whole latest-main/default-language tree, full workspace/nextest/all-features, native Windows, broad dogfood/performance and release proof remain unestablished. The parent owns the separate qualification-request decision and any required workflow/thread handling; any new head or material prerequisite change requires affected review/proof refresh. Keep Draft in this task. No Ready, hosted CI request, body rewrite, merge, release, security change or other's review/thread resolution was performed.

EffortlessSteven commented Oct 18, 2026 •

Copy link
Copy Markdown
Member Author

67654 prerequisite reconciliation; c4 frozen: StoredAny firstrefuses; budget.rs own use crate::* independently blocks primitive-return identity, before expectedMAX. Decisive residual is scoped PrimitiveScalarIdentity through actualimports/reexports/expansions; Names/noassertsites/c4assertionlocality flag cannot supply it. Your existing parity/helperargument/expectedword claim is unchanged and is not reassigned. Canonicalroot#5500 retains integration; no separate exactprimitivewriter found in targetedallstateinspection. No bounded actualconsumer-changing patch justified under no-broad-serde; no rivalimplementation.

Reproducible12control packet, sound acceptance/resume contract, independent assessment; sourcec4 unchanged, evidence51324e92c482f4f27d7eac7eec4a5af9c547433d. Native24compile0/12original0/9zero101/3zero0; customimportedu64alwaysTrueEq staysweak despite Names(empty). IsolatedMAXweak/numericExposed pair provesseparate expectedstage.107sourcebytesets matchretainedexactconsumerreplay0; all52objects+topfields unchanged,targetweak/currentweak18. No duplicatedproductvalidation or PR/hostedCI/Ready/merge/release. Canonical handoff.


Final separate assertion prerequisite: ordinary pushed source c4a8f7828e15426c4d872718f66bd4bac3ab0daf on codex/5500-local-glob-assertion-identity; frozen656 untouched. Narrow direct local-module glob assertion identity only under explicit complete-index/composed source visibility; custom/shadowed/opaque/unresolved refusals preserved. General classified cache full1.85/compact0.91/sharded0.91, filefacts1.43 unchanged. No change to your disclosure/parity, helperargument or expectedrebinding mechanism/ownership.

Final local15gate strictClippy/checkfast0,precommit0,502fixtures1272comparisons0drift,dogfood0,honesty0;35currentfocused+36currentindependentCLI pass;265unchanged24a tests retained (300total selected). Independent source review complete/no current finding; hostedqualification intentionallyincomplete. Exact consumer native0/all52fullfindingobjects+topfields byte-identical656, target67654weak/currentweak18; no18→17 claim. CandidateAny/expectedglob refusal unchanged.

Evidence 4cafbc5255252bc1a7d8e9c3c3f0c34713a2552e; review, inventory, canonical #5500. Shared8772cb6f7667/8592 2b3013d/8597 5aa226a heads rechecked unchanged. All lanecommands terminal, transportrecovered without duplicatevalidation, prior24a/656/16ff custody retained. No PR/hostedCI/Ready/merge/release.


#5500 continuation coordination — macro soundness repair

Canonical ownership/result, ordinary pushed source 656d6d7effb51a888c4b627e2a0cd44c3bbd37ef on codex/5500-whole-tail-observation. The separate whole-tail MatchExpr-header receipt remains outside individual-arm authority; shared constructor extraction leaves ordinary MatchArm exclusion intact. No edits to your macro-site parity/helper-argument/expected-rebinding mechanisms and no ownership takeover.

Independent external custom-u64 P1 and fresh expected-MAX/local-proc/ancestor-derive counterexamples now refuse through conservative existing namespace/provenance checks plus wildcard/absent workspace macro-context refusal. Qualified assertion identity is not owner primitive identity. The original/selected-zero native controls both compile/pass, and the corrected honesty cases reject actual false-promoting old outputs. Ordinary primitive positives remain supported; no serde expansion, gap/unknown threshold or public schema change.

Final successor32 focused tests and23 independent frozen-artifact CLI controls pass. Check-fast native0 on stable74-file selector (15gates, explicit CLI-help skip), strict workspace/all-target Clippy native0; precommit native0 with selected ripr+xtask strict all-target Clippy and502fixtures/1272comparisons,0drift/violations. Advisory dogfood and final honesty native0. All owned successor commands terminal; no hosted qualification inferred.. Exact consumer PR1503 replay remains complete52/52, all52 objects and top-level fields unchanged;0introduced/removed/changed,18currentweak, target67654dc6 weak.18→17 remains NOT_ESTABLISHED. Direct numeric assertion macro identity and saturation expected-glob independence remain separate prerequisites; no claim that an adjacent PR automatically fixes either.

Current owners rechecked8772 cb6f766,8592 0588422,8597 5aa226a. The8592 successor only changes helper-side eligibility and a From precaution; its existing no-conflict confirmation is preserved.

Fresh independent exact-head source/artifact/oracle/consumer review reports no current actionable findings and all requested bounded local proof complete. Formal REVIEW_INCOMPLETE applies only to unrequested hosted/full-merge qualification; no local blocker or Ready/merge/release authority.

Immutable repair summary and manifest:416 text artifacts /7,425,729 bytes, manifest SHA256 1adf173988e8fa031ff844ae9e977e1db30a1feb0d209e8f3dcd460025f443ca; evidence tree f59a2251480cebc298217bfe31df079beec9e128. Remote commit/tree/manifest blob verified. Fresh final review and all52-row inventory.. Original16ff completed validation and old690975cf evidence custody preserved; oldf4be source clearance does not clear the independent P1. Parent coordinates any next separately sound prerequisite and repeats exact consumer replay. No PR or hostedCI/Ready/merge/release requested by this lane. All witnesses retained, no cleanup.

…_scans (#8265)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QksFCJZphNf8eUuSrJcFzm
…row the file list (#8265)

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

@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

  • Both retention phases (retain_macro_sites and complete_workspace_site_scan) gate on site.scope.is_some() before absorption; scoped sites cannot turn binding uncertainty into an actionable disclosure, matching #8265's parity contract.

Verification questions

  • Confirm source-claim: gemini flagged missing .copied() causing &&&str mismatch; the current diff does not add .copied() yet the author claims all tests GREEN.

Refuted

  • OrderedMacroSite::precedes can borrow a Path tied to a temporary, causing a dangling reference.; refuted because: precedes borrows paths through as_path only for the comparison expression; both OrderedMacroSite owners outlive that comparison.
  • The shared parse tree/index or per-file site position could represent a stale active-view length after mutation, resize, detach, or transfer.; refuted because: The changed Rust code performs read-only AST/index scans and collects owned site data. It contains no JavaScript runtime view, resizable storage, owner-reachable backing buffer, concurrent mutation, detachment, or transfer operation.
  • A reused parsed Rust syntax tree or binding-free index could be handed to async/worker code and encounter GC or detach/transfer invalidation.; refuted because: The reviewed changed route performs synchronous calls on stack-owned Rust references; the diff contains no JS/TS/WASM runtime, async executor, worker, GC-managed object, transferable buffer, or detach operation.
  • expansion of trusted_macro_binding_site_sets might have rippled into xtask/fixture runners or json serialization paths; refuted because: grep across xtask and fixture orchestration shows no addition; the new symbol is read only by scan_macro_sites in classify/owner_pin.rs.
  • Box::from(slice) allocation failure does not return None; recoverable fallback claims are dropped.

Parked follow-ups

  • Fixture pinned assertion uses the same input=10 and literal true that the changed bound evaluates; it is non-discriminating in isolation. Parked as fixture-honesty follow-up because the fixture asserts the unknown-not-gap route, not runtime truth.
  • absob_macro_sites lambda inside ScannedMacroSites gating needs stored candidates to allow at least one trusted name to even reach the binding-free wrapper index scan; parked helper rather than a widening.
  • Fixture macros_site_scoped_rest_limit's pinned assertion is non-discriminating against the changed predicate; SPEC.md frames this as an unknown-not-gap witness, but a future corpus fix could pin a value that also proves parity at the assertion level. Track as parked-follow-up, not a blocker.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Review of record, head 2846d9d

What changed since the earlier handback: I merged current main (conflicts in owner_pin.rs, syntax/mod.rs, the honesty corpus), routed the retained per-file scan through main's map_scans nested-parallelism guard (#8756), and re-blessed macro_site_scoped_rest_limit (wording-only drift from other merged changes: reason text, "no oracle" phrasing, a repair-start line; classes stay static_unknown, no gap IDs).

Angles: (1) correctness/semantic parity against the singleton oracle, including the merge resolution; (2) tests and fixtures.

  • No blocking findings. Scoped sites are excluded in both retention phases; per-name argument context uses singleton scans (union only for ambiguities); ordering follows producer position with rebinding over may-rebind; map_scans keeps the guard and the order-preserving collect, no re-entrant borrow.
  • Minor, not blocking: parity tests use only a lib/tests root pair plus None (no second-root exclusion case), and two reconstructed-parity tests compare against the in-repo oracle only; the fixture is the independent check. Recorded here rather than widening this PR.
  • Gemini's two compile claims: refuted (expected &[&str] coerces; the product builds with warnings denied). Threads answered and resolved. CodeRabbit unavailable (quota), not counted as review.

Proof at this head: cargo check --locked -p ripr --all-targets pass; 282 owner-pin tests pass; cargo xtask goldens check pass after the re-bless; cargo xtask precommit rc 0. Hosted required checks are next (Ready + merge-ready).


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 00:24
@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!

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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@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

  • CodeRabbit's 'Actionable comments posted: 1' with a deferred autofix and a 'quota unavailable' notice from gemini supply no provider-side review. Devin reported 'no issues'. The substantive second-opinion coverage therefore rests on the github-actions sibling-scope check and the author's own refutation thread; do not treat bot silence as a sibling-path veto.

Refuted

  • Reusing a parsed tree and BindingFreeFileIndex across union and singleton scans could create stale or overlapping mutable references.; refuted because: parse_clean_source_file produces immutable owned data; closures accept shared references and return owned MacroBindingSite values. The singleton iteration also has no unsafe or inferred-transmutation requirement.
  • No JS/TS/WASM/SharedArrayBuffer/worker/async/GC code is present; the worker/async/detach/transfer hazard class does not apply to this Rust analyzer diff.
  • Reused parsed SourceFile/BindingFreeFileIndex across union and singleton scans could carry a stale active-view length after mutation, resize, detach, or transfer.; refuted because: Rust analyzer code only: tree is rust-analyzer SyntaxNode handles into a tree owned for the scan call, borrowed read-only by per-name closures, collected into owned Vec. No JS, no worker, no async runtime, no transferable, no GC-managed object, no detach point exists in this diff.
  • Sibling paths in ripr's JSON, hashing, regex, archive, or process-spawn helpers were modified by #8772; refuted because: Diff hunk list and grep over analysis/{syntax,classify} confirm all production changes are inside owner_pin.rs; no other ripr/xtask modules and no fixtures-harness code is touched. The new trusted_macro_binding_site_sets symbol is exported but only called from scan_macro_sites in the same crate.
  • The architecture needs physical line ordering across root/global buckets.; refuted because: The governing singleton disclosure selects by scanner emission order, not physical line; retaining explicit producer positions preserves parity and same-line ordering without conflating parser passes.
  • Sites should be sorted by physical source position.; refuted because: This would violate the governing singleton-disclosure contract, which follows scanner producer order rather than source order; CodeRabbit withdrew the objection.

Parked follow-ups

  • Parked: gemini-code-assist's two compilation-failure findings (missing .copied() on flattened singleton_names at lines 665 and 687) were independently refuted at head 2846d9d by EffortlessSteven with a deref-coercion argument; the same disposition is recorded against the older head 9fc6a47 in the post-publication addendum. The head this lane sees (HEAD) still lacks the .copied() call in the diff, matching the refuted claim; parked rather than re-raised since cargo-check is not in the sensor set.
  • Parked: the new fixture uses extern crate alloc; the SPEC and changelog note this is the 'builtin alloc' to avoid a new Cargo dependency. No sibling helper path in fixtures/ was added or modified beyond macro_site_scoped_rest_limit/* and the corpus row rust_macro_site_scoped_rest_limit, so no fixture-helper sibling broadening is implied.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Review of record, head d3c9584 (= 2846d9d merged with main through #9237, one conflict resolved).

  • Angles: correctness/edge cases and tests (earlier independent source/oracle review of the repair, eight parity controls); spec/contract (RIPR-SPEC-0240 unknown-not-a-gap, singleton producer-order parity); integration (the conflict was in scan_macro_sites against perf(classify): first workspace_macro_site lookup scans the whole corpus inline on one worker while the other classify workers block on the SyncMemo mutex #9211's test-only scan log: kept this PR's ScannedMacroSites return and main's SCAN_LOG/scan_fans_out instrumentation, nothing else changed).
  • Proof on the merged tree: cargo check --locked -p ripr --all-targets clean; owner_pin lib selection 283 passed, 0 failed; cargo xtask goldens check clean. Required Ripr Rust Small Result is green on d3c9584 (run 39706220711), as are Admit PR Candidate, cargo-deny, dependency-review and the Windows advisory subset.
  • Findings: Devin: no issues on this head. github-actions review: every item refuted or parked, nothing blocking. Gemini's two compile claims and CodeRabbit's source-order claim were answered with source-backed refutations and their threads are resolved; CodeRabbit withdrew its own. Admission initially refused for a missing template line (Governing issue or accepted claim:); the PR body now carries it.
  • Not established: nothing beyond static/CI evidence; no performance claim.

Merging with the head pinned.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 01b1f7b into main Oct 22, 2026
71 of 78 checks passed
@EffortlessSteven
EffortlessSteven deleted the codex/8265-macro-site-parity branch October 22, 2026 02:57
EffortlessSteven added a commit that referenced this pull request Oct 22, 2026
#8772 merged (01b1f7b) and #8265 carries the delivered-acceptance comment.


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

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants