Repository navigation
fix(rust): preserve retained macro-site disclosure parity (#8265) - #8772
Conversation
There was a problem hiding this comment.
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()onsingleton_namescausing&&&strtype mismatches insyntax/owner_pin.rs. The reconstructed HEAD diff does NOT contain those.copied()calls in the unparsed-fallback (line ~633) or singletonflat_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 parsedflat_map, butmacro_binding_scan_neededonly inspectssourceandtrusted; when called with a singleton slice thetrusted.contains(&"json") && source.contains("serde_json")short-circuit is dead becausetrustedis&[name]. For a file containingserde_jsonthe unparsed branch will emitUnparsedsites 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_freeby 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 citespub use std::io::prelude::*;at src/globs.rs — there is no inner-scopeassert_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.rspath/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&pathand&MacroBindingSitefrom the call site, not from retained. Thesiteandpathcome from the outer iterator (owned Vec). Compiler-valid under disjoint-borrows-of-disjoint-fields; rustc will accept. Conflict with the mutable borrow onnamesis only on the local MacroSiteRank, not retained.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
[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:
- 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
externprefilter into the extracted/shared prefilter; adapt upstream's parse/tree references to the shared tree; retainverified_rootchanges at all relevant consumers. - 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.
- 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.
- 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, tree78bb14ec667570f0877f7c369e98bf0be1967f96; reconstruction basis006eaf853fce5713a2e9044ba9c8d6a9a873f3d0. - GitHub
refs/pull/8772/merge:4c4bba7406236cc47eec1c64d19560c6149080e6; ordered parents base4f481952e1143415d0c8997ad14954a518ee9d49, head9fc6a47f29b5ad581a527244681d4c4bf0d4714b; tree6675f441ac26ded8c6765357707d27cd0110215b. GitHub Git-data read and native Git object agree. Independentgit 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 privateanalysis::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 namedjson; it is false for other names. An additional independently compiled/executed exact-iterator control asserts thatserde_json ???yields onlyjsonin both iterator shapes, while amacro_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.patchchanges only11 <= valueto10 <= 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 thatmust_not_promotealone 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.
Qualification continuation — held before ReadyCurrent exact head remains Later-main inspection: current fetched main Stop condition found before transition: live routed-rust.yml:8 subscribes to 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 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_INCOMPLETEOwner / 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
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 proofShared 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:
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 currentnessThe 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 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. |
There was a problem hiding this comment.
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 helpermacro_binding_ambiguity_setsintroduces 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 returnNone; 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
left a comment
There was a problem hiding this comment.
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, tree2d96d633ae70fbd127e9c04ecf292ff8e0467da0; ordered parents original candidate9fc6a47f29b5ad581a527244681d4c4bf0d4714b/ integrated mainebe5350c6b2ac5364e4a246c625ae9db046707da. - Observed GitHub
refs/pull/8772/mergeand independently executed subject:69c857708172c0119a0da7842885480b04dcda16; ordered parents base69542f1a6ac8c1065edee6f93f08c749f5a6f4ef/ headcb6f7667430ad12f1cea5bb8b23ad98e078400b9; tree416c4614137a15a784f3ed4057f166c729eac0a8. - 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
36dfc3d6bcfc91d83c6aa2ae5cbea51c25832921composes conflict-free to tree59cc969577809bcab12ebc6264dc0dd80c6284f8. 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
2671dd85f6e159457c460a35ada5e618cba624d7composes conflict-free to tree6925f14e42b38269d98fdb4f897a14dc73cb03da. 701/702 of those inputs remain identical; the changed file iscli/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:1and no gap IDs. Foreign trusted-subset discloses the earlier stringify argument atsrc/a.rs:1. - Additional producer-order input places
assert_eq!(assert_eq!(1, 1), ())on line 1 andpub 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.
|
67654 prerequisite reconciliation; c4 frozen: StoredAny firstrefuses; budget.rs own 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 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 |
…_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
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Both retention phases (
retain_macro_sitesandcomplete_workspace_site_scan) gate onsite.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 returnNone; 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.
…ain (#8265) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QksFCJZphNf8eUuSrJcFzm
|
Review of record, head 2846d9d What changed since the earlier handback: I merged current main (conflicts in Angles: (1) correctness/semantic parity against the singleton oracle, including the merge resolution; (2) tests and fixtures.
Proof at this head: Generated by Claude Code |
|
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
There was a problem hiding this comment.
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.
|
Review of record, head d3c9584 (= 2846d9d merged with main through #9237, one conflict resolved).
Merging with the head pinned. Generated by Claude Code |
#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>
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
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), fixturemacro_site_scoped_rest_limitwith 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
owner_pinselection 283 passed after merging current main.reachable_unrevealedto 2static_unknownwith limitation codes and no gap IDs; clean and same-path-rank outputs unchanged.cargo check --locked -p ripr --all-targets, theowner_pinlib tests andcargo xtask goldens checkpass.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
Engineering Check
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