Skip to content

Repair macro-site retention parity regressions merged in #8262 #8265

Closed

Description

@EffortlessSteven

Verified regression evidence

#8262 merged as 43ac0e9 with submitted head 99ddc59. Independent completed CLI comparisons reproduced two output-contract failures at that head: #8262 (comment) . Earlier trusted-subset reproduction and immutable evidence: #8262 (comment) .

  1. Deferred completion retains scoped sites without the scope exclusion used by the old oracle. An unrelated scoped definition can replace a genuine global may-rebind site, including false-gap promotion rather than merely a changed diagnostic.
  2. Scanning all assertion-context names together changes the old per-name opaque-macro argument semantics. stringify!(assert_eq) can cease to supply the old MacroArgument disclosure, replaced by a later ForeignGlob. The completed example preserves two static_unknown findings but changes evidence attribution.
  3. A separate direct-oracle same-file ordering mismatch was executed at predecessor 55b1594. It requires current-head regression qualification before claiming current runtime impact.

Currentness and ownership

Read-only inspection at main 9142188 found classify/owner_pin.rs unchanged from 99ddc59 (Git blob 6881e81e989d7bbc84256f46e69b5275b599f18a). The relevant logic is still present; post-merge runtime has not been re-executed. Bounded permitted open issue/PR searches found no repair candidate; this does not exclude private work. Please coordinate any existing owner here before a competing writer starts.

Acceptance

  • Retain completed old-oracle equivalence controls for scoped rest sites, per-name trusted-macro argument context, and same-file global/root ordering.
  • Demonstrate the fixes with tests-first failures and discriminating wrong controls; preserve exact head, input and output identities.
  • Preserve the bounded scan improvement without suppressions, truncated evidence, widened budgets or reclassification shortcuts.
  • Keep producer runtime/convergence claims separate from semantic parity and hosted qualification.

A repair-task restart was requested but service admission is unconfirmed; no new repair writer is claimed active yet. No release, merge, lifecycle change or hosted rerun is requested by this issue.

Activity

  1. EffortlessSteven commented on Oct 17, 2026

    @EffortlessSteven
    MemberAuthor

    Reconstruction handed back — Draft #8772 — 2026-10-18

    Draft #8772 is open; source is frozen and local proof is complete. This supersedes the pending reconstruction blocks while preserving the custody-loss and historical author/parent record below.

    • Head: 9fc6a47f29b5ad581a527244681d4c4bf0d4714b; tree 78bb14ec667570f0877f7c369e98bf0be1967f96; reconstruction basis 006eaf853fce5713a2e9044ba9c8d6a9a873f3d0. Ordinary source pushes/readback succeeded; no competing writer/PR was found.
    • Fresh tests-only RED:6intended failures/2positive controls; repaired GREEN8/8; broader owner-pin260/260 (including those8); affected corpus tests80/80. No lost-fc18360 proof reused. Unit source bindings to the current head are recorded; final default-feature native CLI was independently captured at current head, SHA256 ce52bc536ab50d9bd52b8215dac4291ec7f803315eed3655458321fb589b1aaf.
    • Five final native CLI controls complete/nonempty/uncensored; three whole-JSON neutral equalities, scoped-public-only2gap→2unknown correction with typed limits/no gapIDs, and corrected per-name argument disclosure. Whole-fixture expected_class static_unknown registration covers every finding, with no probe_family selector. Deliberately wrong gap re-blessing rejected, original bytes restored.
    • Check-fast36113:14gates/19paths, workspace/all-target Clippy passed. Successor precommit9fc: native0, complete18-record change set, fullgoldens with zero drift/fixture errors, selected ripr/xtask all-target Clippy with warnings denied. An unnecessary new self-only fixture lock was removed after the named unchanged dependency gate passed on exact then-current main and failed on candidate; no policy exception. Supported locked preparation closed the inherited golden fixture availability gap.
    • Complete immutable evidence:243payloads plus manifest, complete244-file tree, all bytes/sizes/SHA256 verified through isolated remote Git readback and connected manifest retrieval. Manifest SHA256 a107dadecfed8a9f1ea3a05fd862fed5db6e7a51244c5e33bcf97e9c68856758.
    • Fresh independent source/oracle review and published-head addendum: no actionable defect. Both late Gemini compilation claims were independently refuted with exact iterator-shape Rust1.95 type checking/native0 and full product proof. No source change, bot reply or thread resolution. Resolution state was not independently queried. CodeRabbit review is unavailable due provider quota, not a clean review; no paid request/billing change.
    • Observed remote merge 4c4bba7406236cc47eec1c64d19560c6149080e6, parents main 4f481952e1143415d0c8997ad14954a518ee9d49 / head, tree 6675f441ac26ded8c6765357707d27cd0110215b. Independent local merge-tree agrees and every candidate-path blob matches. That combined subject and hosted checkout are not executed/qualified here.

    Disposition: REVIEW_INCOMPLETE / PR_IN_FLIGHT. Parent owns published-head integration review/execution, any separately authorized hosted qualification and review-thread disposition. Keep Draft. No Ready, merge-ready label, dispatch, merge, release, consumer/pin, credential/security/protection change, destructive cleanup or task archival. Forbidden check-run pagination was not retried. All owned proof drivers are terminal; worktree, exact-main baseline, shared target and distinct witnesses are retained for these proof/review consumers. Storage-guard interruptions/cleanup correction and first packaging/environment failures remain in their own evidence;8GiB development-growth estimate/10GiB reserve do not change analyzer budgets.

    The misdirected #8201 turn made no #8265 writes. This handback concerns only the new #8265 reconstruction.


    Current recovery result — 2026-10-18: SOURCE CUSTODY BLOCKED

    One authorized recovery attempt ran in the replacement executor. It is ready and native commands/responding GitHub reads work; this is missing source custody, not an observed quota or authorization denial.

    • /workspace/macro-site-parity and /workspace/scratch/8265-macro-site-parity do not exist. The former source, correction receipt, raw logs and archived test executables are unavailable here.
    • The remaining clean checkout is /workspace/ripr-swarm, branch work, HEAD 577a95ab26fd1811eccfd19887eb87af0ba937da; it lists only its own worktree. Its object database cannot resolve fc18360e9a50eb94b194fa38ba2f89e34d19fa82, and it has no local codex/8265-macro-site-parity ref.
    • Native ls-remote completed exit0 with no source or evidence branch refs. GitHub's commit fetch returned 422: No commit found for SHA fc18360e9a50eb94b194fa38ba2f89e34d19fa82. The all-state Repair macro-site retention parity regressions merged in #8262 #8265 PR search found no published candidate.

    Ownership remains with this existing lane. The additional claimant explicitly withdrew without source changes; no competing candidate was created. The requested source-preservation push is blocked by the absent commit/object, not denied. No push, reconstruction, expensive rerun, Draft creation, early CI, merge, release, credential/protection change or task archival was performed in this attempt. The previous corpus-correction command's terminal outcome cannot be recovered from this filesystem; it remains unverified.

    Recoverable inputs: the original base a1ea790e9 is retrievable; the older #8262 immutable evidence manifest is retrievable (101 entries, including29 original input files and oracle patches/log records); the independent scoped-site test patch remains in 6227753011. These do not contain the missing #8265 final candidate or its raw250-test archive.

    Resume condition: recover the original executor snapshot/Git objects or an actual source export first, then preserve the exact owned branch remotely and verify retrieval. If those bytes cannot be recovered, the coordinator must explicitly choose reconstruction with new source/evidence identities; the old hash/results must not be silently reassigned. #8263 remains secondary. Historical checkpoints below are preserved, not current-source verification.


    Current coordination status — 2026-10-17 02:10 UTC

    The source writer remains reserved to the existing owner; no replacement implementation is needed. The saved executor's latest turn stopped at its explicit usage limit at 01:46 UTC, so execution is paused, superseding the active/no-blocker statements in the retained checkpoint below.

    Last reported source head is fc18360e9a50eb94b194fa38ba2f89e34d19fa82 on unpublished codex/8265-macro-site-parity. The 250 selected tests and strict Clippy passed. Check-fast then found two fixture-registration problems: a one-family filter with a two-family expectation, and a missing nonempty-result guard. Their repair and subsequent gates are not verified complete. No Draft PR has been verified published.

    Resume with the same owner/worktree: inspect the retained driver and worktree; finish those registration corrections; run affected validation and final-head CLI controls; publish one linked Draft PR with immutable evidence; obtain fresh independent exact-head review. Mark Ready only after local integration/review are complete. Ready alone must not admit CI: use the separately configured pre-merge flag after verifying its exact workflow contract; that flag admits required pre-merge validation. Merge remains conditional on current required checks, reviews, ownership and protections. #8263 integration remains queued behind this repair. No duplicate cloud launch, CI rerun or source mutation was performed for this status update.

    Retained earlier checkpoint (historical)

    Recovery is confirmed and execution is active; I remain the sole #8265 source writer. Inherited basis: main a1ea790e923ae6036efdd9457ffc16ea2ad93348. Current claim searches found no competing repair. Independent corroboration preserves this ownership; its function-scope variant and literal unscoped-glob expectation are now folded into the existing test.

    Current unpublished branch: codex/8265-macro-site-parity
    Head: fc18360e9a50eb94b194fa38ba2f89e34d19fa82
    Tree: 4a3b0328cb27d8e6b2e97cbdfb76b714caec7a92

    • Fresh current-main/default-feature CLI replay completed all five retained controls and reproduced both public failures, byte-identical to the recorded fix(analysis): diff-scoped check converges on macro-binding disclosures (#8255) #8262 outputs.
    • Tests-first 3dbdc80762adc3e8a3041d7b3d98a200aff13c8d compiled then executed: 5 failed /2 positive passes, native101. Cases cover scoped completion, per-name opaque arguments, newline/same-line ordering and the per-name unparsed prefilter.
    • Final head 250 selected owner_pin library tests passed, zero failed/ignored, native0. This includes all seven new tests: 651 old-oracle name/root comparisons, the two-pass bounds, two literal scope controls and two positive ranking controls. Earlier 7e3a1b8d/558-comparison receipts remain historical; the folded function-local case ran at this new head.
    • The new public fixture completes with two static_unknown findings, the named foreign-glob/analyzer-limit disclosure and no canonical gap IDs. Its correct runtime fixture passes one integration test; a compiled wrong boundary variant fails that same test, native101.
    • Check-fast has passed file-policy, no-panic and allow-attribute gates; strict workspace/all-target Clippy is in progress. Golden drift, dogfood, precommit and final-head CLI replay remain in the validation queue.

    No current executor or storage blocker. A lost terminal handle was recovered through the still-running retained driver; golden generation recorded native0, with no duplicate launch. Exact failing and repaired executables are archived with full restore/hash/size/mode verification. The 10GiB reserve and 2GiB peak additional-storage cap are unchanged.

    Next: complete applicable local gates, freeze the source/evidence, then publish one Draft PR for fresh independent exact-head review. #8263 integration remains secondary and untouched. No merge, release, Ready, hosted CI dispatch, credentials/security change or suppression.

  2. EffortlessSteven commented on Oct 17, 2026

    @EffortlessSteven
    MemberAuthor

    Current-source corroboration for the existing #8265 owner (not a separate repair writer). I read the recovery claim in comment 6227611062 and am preserving that sole-writer ownership.

    At exact base a1ea790e923ae6036efdd9457ffc16ea2ad93348, a tiny test-only discriminator confirms the already-reported scoped deferred-site leakage. The likely-file foreign glob saturates ambiguity; a scoped inline-module definition is scanned only during completion. The literal reference expectation is the unscoped ForeignGlob, then retained lookup is compared with it.

    Observed intended red: successful compilation (231s), one executed test failed in 0.01s, 11,199 filtered, native exit 101:

    actual:   src/lib.rs, Definition, scope Some((1,1)), crate_local true
    expected: src/globs.rs, ForeignGlob("use std::io::prelude::*;"), scope None, crate_local true
    

    The function-local second case remains unexecuted because the first case aborts. Existing all-name/root parity control passed (1 test, 0.09s); existing <=2-pass control passed (1 test, 0.01s). An independent reader verified the retained logs and patch correspondence. This corroborates the disclosure-level defect; it does not independently establish the previously reported two-finding classification promotion or producer-timeout causality.

    Focused command: cargo test --locked -p ripr --lib completion_excludes_scoped_macro_sites_from_workspace_disclosures -- --nocapture. The whole compile/test invocation was externally capped at 300s, two Cargo jobs. No hosted CI, timeout changes, production changes, branch, commit or PR were created.

    Adoption patch follows. The tested patch SHA256 was 312c2f7583bc50d3b186e2e7c34ea7fd30054a2eaf656fefd817070915fc7ecc; this handoff differs only by rustfmt wrapping and has SHA256 0261ef71981c82dd96967c7326cf14d09926df4083f7db6fadd28c62500c195a. Rustfmt and whitespace checks pass. Binary SHA256: 6e5d00b616dc84644cd46366131b0753499a627c9d2f93e62fb1469594ea4dcc.

    diff --git a/crates/ripr/src/analysis/classify/owner_pin/tests.rs b/crates/ripr/src/analysis/classify/owner_pin/tests.rs
    index 6ed9db9c6..7835cb0d4 100644
    --- a/crates/ripr/src/analysis/classify/owner_pin/tests.rs
    +++ b/crates/ripr/src/analysis/classify/owner_pin/tests.rs
    @@ -5498,6 +5498,51 @@ fn a_refusal_site_lookup_matches_the_replaced_scan_for_every_name_and_root() {
         }
     }
     
    +/// Completion must preserve the reference scanner's scoped-site exclusion.
    +/// A likely-file glob saturates ambiguity before the scoped definition in
    +/// the deferred file is scanned; that definition cannot become the site
    +/// disclosed to an unrelated test root.
    +#[test]
    +fn completion_excludes_scoped_macro_sites_from_workspace_disclosures() {
    +    for scoped_source in [
    +        "mod nested { macro_rules! matches { ($($tokens:tt)*) => {} } }\n",
    +        "fn nested() { macro_rules! matches { ($($tokens:tt)*) => {} } }\n",
    +    ] {
    +        let index = index(&[
    +            (CONVERGENCE_GLOB, "use std::io::prelude::*;\n"),
    +            (LIB, scoped_source),
    +        ]);
    +        let syntax = OwnerPinSyntax::default();
    +        let _ = syntax.trusted_macro_ambiguities(&index);
    +        assert!(
    +            syntax
    +                .workspace_site_scan
    +                .borrow()
    +                .as_ref()
    +                .is_some_and(|scan| !scan.complete),
    +            "the scoped file must be deferred to completion"
    +        );
    +        let roots = syntax.target_roots(&index);
    +        let resolved_modules = syntax.resolved_module_declarations(&index);
    +        let resolved = |path: &Path, line: usize, declaration: &str| {
    +            resolved_modules.contains(&(path.to_path_buf(), line, declaration.to_string()))
    +        };
    +        let reference = workspace_macro_binding_site("matches", None, &index, roots, &resolved);
    +        assert!(
    +            matches!(&reference, Some((path, site))
    +                if path == Path::new(CONVERGENCE_GLOB)
    +                    && matches!(site.kind, MacroBindingKind::ForeignGlob(_))),
    +            "only the unscoped glob may be disclosed: {reference:?}"
    +        );
    +        assert_eq!(
    +            syntax.workspace_macro_site("matches", None, &index),
    +            reference,
    +            "completion must exclude scoped sites: {scoped_source}"
    +        );
    +        assert!(syntax.workspace_scan_passes() <= 2);
    +    }
    +}
    +
     /// #8255: the site lookup is bounded. The ambiguity pass saturates on the
     /// foreign glob and skips the rest of the index; the first site lookup
     /// completes that pass once, and however many (name, test root) refusals

    Please adopt or fold this into the existing scoped-site control rather than duplicate it. Broader opaque-macro and ordering controls remain with #8265. Raw logs/executable are retained executor-locally at /workspace/scratch/pr8221-investigation and /workspace/ripr-swarm/target/debug/deps/ripr-4dfb141009a72db0; those paths are not uploaded artifacts. The complete patch and observed mismatch above are portable.

  3. EffortlessSteven commented on Oct 17, 2026

    @EffortlessSteven
    MemberAuthor

    Withdrawn: this lane is already reserved to the existing owner on codex/8265-macro-site-parity (coordination status 2026-10-17 02:10 UTC). I am not a competing writer and have made no source changes.

    Corroboration only, at origin/main 87734f6: both CLI witnesses reproduce. Scoped-rest: current {reachable_unrevealed: 2, static_unknown: 0} vs baseline {static_unknown: 2}; disclosure becomes the scoped Definition at tests/buf_tests.rs:2. Macro-argument: disclosure selects ForeignGlob at src/z.rs:1 instead of MacroArgument(stringify) at src/a.rs:1; finding buckets unchanged. Same-file ordering was not re-executed at this head.

  4. EffortlessSteven commented on Oct 21, 2026

    @EffortlessSteven
    MemberAuthor

    Claim (2026-10-21, 0.11 #2766 pending row): taking #8265 to convergence. Candidate is the existing Draft #8772 on codex/8265-macro-site-parity (head cb6f7667); I am not starting a rival implementation. Plan: bring it current with main, re-review the exact head, repair or refute the open bot threads, then mark Ready, apply merge-ready, and finish under merge authority. Branch/PR: codex/8265-macro-site-parity / #8772. State: Draft, REVIEW_INCOMPLETE, hosted qualification not yet requested. Live for 3 hours of activity.


    Generated by Claude Code

  5. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    Landed in #8772 (squash 01b1f7b). Acceptance delivered: retained workspace macro-site disclosures match the singleton reference for every assertion-context name and representative root query, scoped sites are excluded in both retention phases, and an unrelated scoped definition no longer turns binding uncertainty into an actionable gap (fixture macro_site_scoped_rest_limit: 2 static_unknown, no gap IDs; eight parity controls). Required check green on the exact head; no performance claim. Remaining: none for this issue. For the #2766 packet owner ("Release critical path"): the #8265 row can be marked delivered.


    Generated by Claude Code

  6. EffortlessSteven commented on Nov 2, 2026

    @EffortlessSteven
    MemberAuthor

    Cursor verify claim: checking whether #8265 is satisfied on main.

  7. EffortlessSteven commented on Nov 2, 2026

    @EffortlessSteven
    MemberAuthor

    Cursor verify result — already satisfied on main

    Checked origin/main at 6689b157f0 (2026-11-02). No new PR; existing tests and fixture pin the acceptance.

    Acceptance → evidence

    Item Where on current main Landed
    Scoped deferred completion excludes scoped sites from retained disclosures (no unrelated scoped definition replacing a global may-rebind site) Production: retain_macro_sites skips site.scope.is_some() (crates/ripr/src/analysis/classify/owner_pin.rs:3582-3592); same rule in absorb_macro_sites (3690-3714). Tests: reconstructed_parity_inline_scope / reconstructed_parity_function_scope (crates/ripr/src/analysis/classify/owner_pin/tests/retention_parity.rs:62-70, 43-59). Integration fixture: fixtures/macro_site_scoped_rest_limit/expected/check.json — two static_unknown, no canonical gap promotion (summary + finding classifications). 01b1f7b9ab (#8772)
    Per-name trusted-macro MacroArgument semantics (e.g. stringify!(assert_eq) not displaced by a later foreign glob for another name’s scan) Production: per-token trusted-name disclosure in crates/ripr/src/analysis/syntax/owner_pin.rs:1204-1217. Test: reconstructed_parity_singleton_arguments (retention_parity.rs:72-83). 01b1f7b9ab (#8772)
    Same-file global/root ordering parity Tests: reconstructed_parity_newline_private_first, reconstructed_parity_same_line_private_first, reconstructed_parity_same_line_public_first (retention_parity.rs:99-112); root/rebinding control reconstructed_parity_rebinding_and_root_control (114-127). 01b1f7b9ab (#8772)
    Old-oracle equivalence + bounded scan (≤2 passes, no per-(name, root) rescan explosion) a_refusal_site_lookup_matches_the_replaced_scan_for_every_name_and_root (owner_pin/tests.rs:6910-6961); refusal_site_lookups_pay_at_most_two_full_index_passes (6968+). All eight reconstructed_parity_* tests pass locally on this head. 01b1f7b9ab (#8772) + earlier #8255 retention
    Discriminating corpus / honesty registration fixtures/evidence-promotion-honesty-corpus/corpus.json entry rust_macro_site_scoped_rest_limit; traceability in .ripr/traceability.toml. 01b1f7b9ab (#8772)

    Local proof (this verify run)

    cargo test -p ripr --lib reconstructed_parity -- --nocapture
    → 8 passed (retention_parity module)
    

    Disposition

    Already done on main. Issue left open per verify-or-finish instructions (no close, no merge).

  8. EffortlessSteven commented on Nov 6, 2026

    @EffortlessSteven
    MemberAuthor

    Acceptance rechecked on current main 05eacb5 (2026-11-06). No remaining item for #8265; close as completed.

    The implementation remains the repair merged by #8772, squash 01b1f7b9abc06cfea5c3798aff66d3cf953276ad. This confirms the landing acceptance and November 2 verification. #9445 already recorded the selected claim as landed and accepted.

    Current-source checks:

    • retain_macro_sites excludes scoped sites; both initial absorb_macro_sites and deferred completion use it. Scoped ambiguity handling remains separate.
    • trusted_macro_binding_site_sets retains distinct union-admission and singleton-name disclosure contexts, including the per-name unparsed prefilter and stringify!(assert_eq) case.
    • OrderedMacroSite compares path and producer position, preserving same-file/same-line global/root ordering; rebinding still outranks may-rebind.
    • The eight retention_parity tests and fixture inputs/diff/expected JSON are byte-identical to the November 2 audit. The fixture still records exactly two static_unknown findings, named unresolved evidence and the unscoped glob, with no gap IDs. Its whole-fixture honesty row has no probe-family selector; expected_class rejects empty findings and checks every finding.

    Fresh native Linux proof, Rust/Cargo 1.95.0, locked default-feature library tests on the commit above:

    cargo test --locked -p ripr --lib reconstructed_parity -- --nocapture
    8 passed; 0 failed/ignored; 18,220 filtered out
    
    cargo test --locked -p ripr --lib a_refusal_site_lookup_matches_the_replaced_scan_for_every_name_and_root -- --nocapture
    1 passed; 0 failed/ignored; 18,227 filtered out
    
    cargo test --locked -p ripr --lib refusal_site_lookups_pay_at_most_two_full_index_passes -- --nocapture
    1 passed; 0 failed/ignored; 18,227 filtered out
    

    The seven parity matrices execute 777 name/root comparisons (37 names × 3 roots × 7); the separate all-root control executes 185 comparisons and literal rebinding/root exclusions. The bound control also exercises production refusal disclosures without a third scan. Literal scoped-site controls distinguish the original erroneous scoped-definition selection from the required unscoped foreign glob.

    The original tests-first failures, fixed-input CLI comparisons and deliberately wrong gap re-blessing remain attributed to the immutable reconstruction review and receipts; they are not fresh execution claims. This pass did not rerun the broad historical suite, CLI fixture, hosted CI or mutation experiment. No performance, full Rust macro-resolution, release or general test-adequacy claim is made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions