Skip to content

fix(xtask): prepare locked golden fixture in effective Cargo home - #8174

Merged
EffortlessSteven merged 6 commits into
mainfrom
codex/7920-fixture-preparation
Oct 16, 2026
Merged

EffortlessSteven merged 6 commits into
mainfrom
codex/7920-fixture-preparation

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

The fixture tooling's Cargo offline flag did not stop rustup from installing a missing repository pin before Cargo started. This successor disables rustup auto-installation for every offline readiness/preparation launch, including both version probes, and adds safe executable regressions. Refs #7616 / #7920 and findings 4290966731, 4290966815.

CANDIDATE_REPAIRED / REVIEW_INCOMPLETE — keep Draft for fresh independent review. The prior terminal-green CI result with 16,312 tests is historical evidence on the prior subject; it does not establish this previously untested boundary. No new hosted dispatch, rerun, Ready transition, merge, release or access/settings change was requested.

Current source and repair

  • Head a33df51525b0386ade05d5b97d52ea34f0d76e3f; tree d453c0d434b4fa3c2921d123c306ca46851be99a.
  • Repair parent 791ed55a4e8c25622863a100cddefe5facc4a11a; implementation/diff base 50d8688877a5619223c0cebcf60f7b1fa5467edb.
  • proxy_output applies RUSTUP_AUTO_INSTALL=0 to offline metadata, fetch and the shared Cargo/rustc version-probe loop, overriding ambient 1. Explicit offline builds and CARGO_NET_OFFLINE=true builds receive the same launcher guard.
  • Ordinary online preparation preserves the caller's rustup installation policy, including an explicit denial. Its final metadata verification remains offline.
  • Missing-pin errors retain the selected Cargo/Rustup homes, pin, launcher policy and Rustup diagnostic, with explicit toolchain preparation advice.
  • Contributor/spec/changelog guidance now states the launcher boundary. No analyzer, fixture input/lock, expected golden, quarantine or CI workflow changed.

Executed controls

All controls use real rustup proxies. Missing-pin stores are fresh owned directories; both distribution/update endpoints point only to an owned rejecting loopback listener returning empty HTTP 503. Proxy PATH is explicit and inherited HTTP proxies are bypassed. No unsafe control uses the public distribution server.

Control Observed result
Offline Cargo/rustc version probes, metadata and fetch with absent pin and ambient AUTO_INSTALL=1 native refusal, zero distribution requests
Actual CLI readiness and prepare --offline, absent pin native 1, selected-environment / missing-pin advice, zero requests
Online preparation, absent pin, caller AUTO_INSTALL=0 native 1, zero requests; caller denial preserved
Online preparation, absent pin, caller AUTO_INSTALL=1 native 1 after exactly one loopback request / HTTP 503; caller allowance preserved, no successful download
Installed pin, missing locked anyhow 1.0.100 actual readiness and offline preparation refuse with dependency repair advice
Same selected home after seeding only verified archive + sparse index offline preparation and real metadata succeed
Ordinary online preparation with installed pin and warm canonical cache native 0, both version probes and preparation complete
Same retained product CLI / unchanged real fixture, separate fact caches weakly_exposed before seeding; exposed after seeding, native 0 both

The committed tests execute production readiness/preparation in fresh child processes so the OnceLocks cannot leak context between cases. Seven scoped tests pass (including one subprocess-entry helper). The dependency control verifies the canonical crate checksum a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61 and copies only that public locked archive and sparse index into the owned home. Its prepared-input prerequisite is the existing canonical fixture preparation; tests do not fetch dependencies.

Discrimination: a compiling guard-removal counterfactual forced AUTO_INSTALL=1. The missing-pin regression failed at runtime, native 101, reporting channel synchronization against the rejecting loopback server. Mutant source, actual test executable and raw failure are retained. The corrected guard passes. Initial test-listener inventory and test diagnostic Clippy failures are also retained separately; their narrow repairs changed no production semantics.

New end-to-end xtask SHA-256: 961454d1c4be876edaf4943863efa917ae5a73f109ff75914624d739da3dc4ea. The compatibility product probe reuses frozen cd92b8e846fcde38bf66351a98de8afc0557675ab784c9d25644b76df0585872, source 9217dad, and is explicitly not a newly built current-head product CLI. Product source and all tracked fixture bytes are unchanged. Historical cross-build wrapper equality failure remains a failure, with its previously established separate-build boundary; nothing is reblessed or relabeled.

Final-head local validation and ownership

  • Scoped native tests: 7 passed, none failed/ignored; xtask binary build passed.
  • Explicit process and network policy checks passed.
  • check-fast passed all 14 applicable gates, including strict workspace/all-target Clippy; fixture-contract gate correctly not selected.
  • precommit passed with complete ten-path selection, no skipped checks or limitations. Independent path enumeration agrees.
  • All builds were serial, two jobs, using the existing warm target and registry. Runtime free-space floor remained 10 GiB; final free space is about 13 GiB. No shared-cache purge or broad cold runtime matrix.
  • New network inventory is exactly one test-only std::net::Tcp allowance for the rejecting 127.0.0.1:0 listener. Active test(rust): retain real uncertain-delivery helper attribution witness (#7818) #7837 also edits the shared network allowlist; only this unique row was added, with existing allowances/sibling branch untouched. Existing fix(evidence): retain source file across colliding assertion lines #7833 command-catalog shared-path finding remains separate.

Reproduce committed controls from the repository root with the installed pin and prepared fixture cache:

RUSTUP_AUTO_INSTALL=0 CARGO_BUILD_JOBS=2 cargo test --locked --offline \
  -p xtask --bin xtask reports::fixtures::preparation::tests -- --nocapture

This guards xtask-owned child proxy launches; the caller must bind its own outer Cargo/rustup bootstrap when invoking an offline alias with an absent toolchain.

Changelog: changelog.d/7920-golden-fixture-preparation.md, canonical Internal / CI section, bullet and issue references. Roll back this bounded tooling/controls slice together. Canonical home resolver #8018 remains unchanged. The historical e287b48 source and the separately described unpublished four-file sanitized-environment candidate remain distinct and were not reconstructed.

Evidence retained under /workspace/scratch/8174-offline: red witness, executed source snapshots, native unit/build/policy/aggregate logs, current standalone CLI/fresh-home receipt and frozen xtask, unchanged predecessor fixture outputs, previous PR body, and successor patch. Local paths are locators, not uploaded artifact custody. Receipt SHA-256 a1a5e787cdb9efa11bde4018334c38528756e57b3f1195dd26b65d10c8b1bf20; final precommit JSON 635caca20b5e46c972e326c378a02b8425faca980c3209df56f0c3ef5dff5a96; successor patch 5888602ff7636d3da6d77a3dbfdd24453f722f405614b3fd14f4bc174bd82787.

Parent owns fresh independent review, finding/thread disposition and later qualification. Native Windows, current-main composition, hosted repaired-head acceptance and #7920's separate sanitized sensor preparation boundary remain unqualified. #7746/#7929 holds remain. All local drivers are terminal.

Historical pre-repair handoff and evidence (superseded as current acceptance)

Missing fixture-locked anyhow 1.0.100 can turn the unchanged owner_return_pin_fallible_literal golden from exposed into weakly_exposed. This adds cargo xtask goldens prepare [--offline] and an offline readiness check in the existing fixture runner. Refs #7616 and #7920; neither issue is closed.

Preparation fetches only the canonical locked fixture manifest, then verifies offline metadata. Preparation, fixture binary builds and analyzer children share one captured absolute Cargo home, the repository toolchain pin and an explicitly selected Rustup home. Errors name that environment, the native Cargo failure and the repair command. Existing once-per-process build reuse and fixture-cache isolation remain. CONTRIBUTING and RIPR-SPEC-0002 describe the contract; the command catalog marks preparation as mutating the effective registry cache.

Exact source and ownership

  • Final branch: codex/7920-fixture-preparation; head 791ed55a4e8c25622863a100cddefe5facc4a11a; tree 1adb5e9ea4dda375a4a2ee49de38cdbf63ae6712.
  • Frozen base: 50d8688877a5619223c0cebcf60f7b1fa5467edb, tree 6c058b8f4d1941da6b6ec216192d46abc3b31e3f. Merged fix(analysis): discover assertion Cargo home canonically #8018 canonical resolution at b06728144e3463c212dd6acff8f04bf5c52c2166 is an ancestor; its analyzer implementation is unchanged.
  • Executed production candidate: 9217dad88afedc3c50add89a763e3ac18d3e2d8d, tree ed82c4dd12b3075e73515b7bdb919d9a831c3153. The final delta adds module documentation and renames/strengthens two refusal tests under cfg(test). The preparation module's production section (excluding module documentation), product files and manifests are unchanged; this was byte-compared, not inferred from the test-only commit title. Four repaired tests were executed on final head 791ed55.
  • All-state issue/claim searches found no equivalent published preparation PR. A full file comparison against the 26 observed open PRs found a shared path with fix(evidence): retain source file across colliding assertion lines #7833: xtask/src/command.rs. Its patch changes the changelog-check description; this PR adds the goldens preparation registration in different entries. No sibling branch was edited. ci: stage reviewed qualification leaves in exact-subject caller #8082's shared tests/docs paths were avoided. test(rust): retain real uncertain-delivery helper attribution witness (#7818) #7837 also owns edits to the network allowlist, which this PR leaves untouched.
  • #7920 comment 6181941828 describes a separate unpublished four-file sanitized-environment candidate without a ref/task ID. Its source was not recovered. Historical parent commit e287b48ad7d0129cb3810c1a1132fcd9c4beaf75 (reported tree 210a29822ad9f454bae65dd82b5a1f61a9c6c1f8, base 89ac47a603092ba7f9f55cf74999b88649621abf) is absent locally and GitHub's commit API returned 422/no commit. These are not equated, reconstructed or claimed incorporated.

Observed local proof

Linux/Bash, Cargo 1.95.0 f2d3ce0bd, rustc 1.95.0 59807616e; explicit PATH prefix /workspace/.ripr-toolchain/cargo/bin, CARGO_HOME /workspace/.ripr-toolchain/cargo, RUSTUP_HOME /workspace/.ripr-toolchain/rustup, RUSTUP_TOOLCHAIN 1.95.0.

Control Native result
Frozen CLI, real unchanged fixture, home containing anyhow 1.0.104 but no 1.0.100 0; exactly one weakly_exposed finding
Candidate fixture runner before preparation 1; offline metadata fails on missing anyhow 1.0.100 and gives the selected-home repair
Candidate preparation --offline before preparation 1; missing-dependency refusal
Candidate preparation, ordinary locked fetch 0
Same frozen CLI, same inputs, fresh separate fact cache after preparation 0; exactly one exposed finding
Seeded candidate preparation --offline 0
Prepared real fixture through existing runner 0; JSON, human and human-full golden comparisons pass

Same before/after CLI SHA-256: cd92b8e846fcde38bf66351a98de8afc0557675ab784c9d25644b76df0585872. It reports executed head 9217dad. The wrapper's separate single-package Cargo build produced SHA-256 26483e0898889dac6aa78908e6d781206478f125575cc36413541006b2527eb8; this is recorded separately. The original proof driver ended native 1 because its final assertion incorrectly required those distinct build outputs to match; all seven preceding native controls completed as shown. A separate finalizer verified retained outputs, the frozen CLI hash and tracked fixture byte identity without relabeling that instrument failure as a pass.

Fixture subtree remains 7337af6bda86c0e8aec550643d7e1986a40f5827; every tracked fixture file was byte-compared with its Git object. Downloaded crate SHA-256 is the locked checksum a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61. No analyzer source, fixture manifest/lock or expected golden changed, and nothing was blessed.

Other checks: clean-base scoped xtask Cargo check; candidate scoped xtask check/build; four focused preparation unit tests (4 passed, none ignored); formatting and diff hygiene; process, network, command-catalog, spec-format, changelog-fragment and traceability checks pass. Tests map to RIPR-SPEC-0002: offline locked readiness arguments, actionable selected-home errors, invalid preparation arguments and required repository toolchain pin. Network policy initially matched the old test name's fetch( token; the test was accurately renamed and the explicit network boundary documented. No policy allowance changed.

Limits, review and continuation

Author source inspection: REVIEW_INCOMPLETE. Inspected canonical home resolution, shared subprocess owner, default/Perl build consumers, fixture entrypoints and three output surfaces; no remaining scoped author finding. Parent owns independent review and later qualification. Final-head local check-fast and precommit now pass; exact clean-base check-fast also passes. Hosted/sanitized-sensor acceptance, Windows, current-main composition and full-workspace runtime qualification remain unclaimed. No broad cold workspace runtime matrix was run. This local preparation tool does not repair or relax #7920's separate UB-review sanitized environment boundary.

Keep Draft. #7746 and #7929 holds are preserved. No workflow dispatch, Ready transition, merge, release, pin/gate/quarantine/access change or shared-cache deletion. Ordinary Draft-opening advisory fan-out is not qualification.

Changelog: changelog.d/7920-golden-fixture-preparation.md, canonical Internal / CI marker, bullet and issue references. Rollback the bounded eight-file change together.

Local evidence retained at /workspace/scratch/7920-proof, unit/check/build logs at /workspace/scratch/7920-*.log; these executor paths are locators, not uploaded artifacts. Receipt SHA-256 3fbed848cfbcaaf2256ddc0bcf7f584f1b43f5a933f8b3012cb46af71ac208c8; two-commit patch SHA-256 ffd394dd44231883e72b53a9bf987b41ff23899d56679f421ffed9ed1db79e15. Frozen CLI, raw outputs, driver failure and usable patch remain retained for parent inspection. Mutable warm target state is retained for qualification. Initial 6 GiB storage estimate was revised to 8 GiB after link/witness growth, preserving the 10 GiB reserve; the original endpoint had about 22 GiB free. The validation follow-up admitted further scoped growth while preserving the same 10 GiB floor; final free space is about 13 GiB. All local drivers are terminal.

Validation follow-up: exact identity boundary and completed local gates

Current published head is 791ed55a4e8c25622863a100cddefe5facc4a11a, tree 1adb5e9ea4dda375a4a2ee49de38cdbf63ae6712. Actual branch parent/diff base remains 50d8688877a5619223c0cebcf60f7b1fa5467edb. Live main separately advanced to observed 2e6fbbe39eb8e1866782331416a300c1f4aa5d62; these are not relabeled as the same basis.

The original failing expression was before_hash == sha(frozen_cli) == sha(target/debug/ripr). Its first predicate holds: the pre-run hash and retained frozen file both equal cd92b8e846fcde38bf66351a98de8afc0557675ab784c9d25644b76df0585872. Its second predicate fails: the fixture wrapper's later Cargo build produced 26483e0898889dac6aa78908e6d781206478f125575cc36413541006b2527eb8. Both actual artifacts remain available independently: 7920-proof/ripr and 7920-followup/wrapper-ripr. The frozen CLI is a separate inode, not a hard link into Cargo output.

This boundary is supported by actual compiler fingerprints, not just matching version strings. The combined command was cargo build --locked --offline -p xtask --bin xtask -p ripr --bin ripr; the wrapper's existing once-per-process owner ran cargo build -p ripr. Both artifacts report source 9217dad and have equal compiler/profile/root-feature/rustflag/build-script fingerprint fields. Their dependency graphs differ. Combined ripr-43ea12c7f8ed293a uses oxc_ast fingerprint 17453657526960978329, whose bitflags dependency fingerprint 3952633255115479961 has features ["std"]; standalone ripr-b2136d76190b1439 uses oxc_ast 16275515214585664457, whose bitflags 15761490105132846283 has features [], with the same bitflags profile. Parser and LSP dependency fingerprints differ as well. There is no cross-build byte-equality contract here. This does not prove general semantic equivalence of those binaries.

The expected relationships are separate: both raw availability controls must use the identical frozen executable; the fixture wrapper must retain its fresh source build and pass its own golden comparison. Both were observed. The original failure remains native 1, unchanged. The repaired driver preserves the frozen-copy assertion, records the wrapper separately and persists per-command executable hashes immediately for future full runs. Only its identity-validation step was rerun, native 0; no fetch, fixture or availability experiment was repeated. It verifies retained raw output digests/classifications and both retained executable hashes/versions.

The local stage requirements in build-candidate steps 2, 11 and 12 were closed:

  • First check-fast: native 1 at the new test's strict Clippy assertions_on_result_states violation. Test-only repair now checks the actual diagnostic strings.
  • First precommit: native 1 before policy execution because offline metadata lacked android_system_properties 0.1.6. Ordinary cargo fetch --locked completed; no compilation or lock edit in that prerequisite.
  • Repaired head 791ed55: four focused preparation tests pass; check-fast native 0 (11 applicable gates, fixture-contract gate correctly not selected); precommit native 0. Its complete eight-path change set has zero skips/limitations and strict workspace/all-target Clippy passes. Independent Git diff-tree enumeration agrees with the selector.
  • Exact clean base 50d8688 in isolated /workspace/scratch/7920-base-floor: scoped cargo build --locked --offline -p xtask --bin xtask and baseline check-fast both native 0. HEAD equals frozen origin/main there, so zero changed paths is expected. Six floor gates ran; Rust/fixture/support selectors were not applicable. This is not baseline full-workspace runtime proof. The Cargo compiler-artifact record and actual baseline producer (SHA-256 94bc6b863f44e2ab184fdd46e1d2891a5abf71143723d758acc004f8e2f13604) are retained.
  • All operations used two build jobs, the existing warm Cargo target and registry, offline Cargo after the explicit locked fetch, serialized execution and a 10 GiB free-space floor. No duplicate active builds or held hosted dispatch.

Evidence: /workspace/scratch/7920-followup contains the unchanged original failure/script, repaired identity-only driver and native-0 receipt, saved Cargo fingerprint comparison, separate wrapper witness, actual gate logs/receipts, exact-base compiler-artifact JSON and report, and a syntax-checked fresh-owned-home reproduction script. That reproduction script is provided for independent use and was not executed during this follow-up. Baseline and candidate producer witnesses, raw availability outputs and warm build state are retained for parent review/qualification.

Updated three-commit patch: 7920-followup/repaired/candidate.patch, SHA-256 0ccd9f873b7ec6de35fe1d35f8c2a198a9402c1e7de6eefe40d41b658879e84c. Final precommit JSON SHA-256 c3cc6b9299d04a47df137377282e480fd079bf1edb02a8c15bcc1d6d9abc9e2e; its own report digest is sha256:fcad1334f95e9b06317851821f0a72f8f02accccdc56028915d832f1b7eeca80. Identity-only receipt SHA-256 fa37b8eff5172d2fd0f262ebc957b848687b15de1a40f5e05f5dac71ec56a08b. These paths are executor-local locators, not uploaded artifact custody. Keep Draft; parent independent review and later qualification remain pending.

Read-only fetch of observed main 2e6fbbe39eb8e1866782331416a300c1f4aa5d62 confirms the actual merge-base with published head 791ed55 is still 50d8688877a5619223c0cebcf60f7b1fa5467edb, and the PR diff remains the same eight paths. This validates selector applicability; it is not combined-tree execution. Original PR base metadata b772d9e13cafcdc84a19ea77d9b90fbc6cb91ecc is kept distinct from both the implementation base and the later observed main.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

The included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: fb27e621-8cbb-4db4-b940-fd12d22c1155
📥 Commits

Reviewing files that changed from the base of the PR and between f3a5684 and a33df51.

📒 Files selected for processing: 6
  • CONTRIBUTING.md
  • changelog.d/7920-golden-fixture-preparation.md
  • docs/specs/RIPR-SPEC-0002-fixture-laboratory.md
  • policy/network_allowlist.txt
  • xtask/src/reports/fixtures/preparation.rs
  • xtask/src/reports/fixtures/preparation/tests.rs

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 70331e4f-6b7e-408e-aee7-864e0b1eea29
📥 Commits

Reviewing files that changed from the base of the PR and between b772d9e and f3a5684.

⛔ Files ignored due to path filters: 1
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing: 7
  • CONTRIBUTING.md
  • changelog.d/7920-golden-fixture-preparation.md
  • docs/specs/RIPR-SPEC-0002-fixture-laboratory.md
  • xtask/Cargo.toml
  • xtask/src/command.rs
  • xtask/src/reports/fixtures.rs
  • xtask/src/reports/fixtures/preparation.rs
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Summary by CodeRabbit

  • Developer Tooling
    • Added a fixture preparation command that fetches locked dependencies and checks offline readiness before golden fixture runs. It does not build the workspace or change expected outputs.
    • Fixture checks now report actionable preparation guidance when required dependencies are unavailable and use a consistent Cargo environment for preparation, builds, and analysis.
  • Documentation
    • Updated contributor and fixture guidance with preparation steps, environment requirements, offline cache support, and limitations.

Walkthrough

The change adds cargo xtask goldens prepare [--offline] to fetch locked dependencies for a registry-backed fixture and verify them with offline metadata. Fixture readiness, builds, and child processes use a captured Cargo environment.

Changes

Fixture Dependency Preparation

Layer / File(s) Summary
Capture environment and check readiness
xtask/Cargo.toml, xtask/src/reports/fixtures/preparation.rs
The preparation module captures Cargo and Rustup settings, checks locked dependencies with offline metadata, and caches the readiness result.
Expose dependency preparation
xtask/src/command.rs, xtask/src/reports/fixtures.rs, xtask/src/reports/fixtures/preparation.rs, CONTRIBUTING.md, changelog.d/7920-golden-fixture-preparation.md
The goldens prepare [--offline] command fetches locked fixture dependencies and verifies readiness. The command catalog, contributor instructions, and changelog describe the command and its environment.
Use prepared environment for fixture runs
xtask/src/reports/fixtures.rs, docs/specs/RIPR-SPEC-0002-fixture-laboratory.md
The designated fixture checks readiness before running. Fixture builds and child processes use the captured environment, with RIPR_CACHE_DIR added when a cache directory is supplied.

Priority: ⬇️ Low

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

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Contributor
  participant xtask as xtask goldens
  participant Cargo
  participant Runner as Fixture runner
  participant Analyzer as Analyzer subprocess
  Contributor->>xtask: Run goldens prepare
  xtask->>Cargo: Fetch locked fixture dependencies
  Cargo-->>xtask: Return fetch result
  xtask->>Cargo: Check locked metadata offline
  Cargo-->>xtask: Return readiness result
  Contributor->>Runner: Run fixture check
  Runner->>Cargo: Check readiness and build binary
  Runner->>Analyzer: Run fixture with captured environment
Loading
Merge Risk: ⚪ Minimal · up to f3a56

The fixture build is not required to run offline. No confirmed merge-blocking issue remains from this review.

Security architecture risk: 🔵 Low · up to f3a56

The change is limited to developer fixture workflows. Preparation accepts a narrowly defined command and uses a fixed locked manifest. No introduced exploitable boundary crossing was established, but the readiness guarantee and comparison with prior behavior remain incompletely verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The directly affected persistent state is the selected local Cargo cache, which may be shared with other projects using that home. Preparation restricts the requested dependency graph to the fixed fixture manifest, while the captured environment also governs subsequent fixture binary builds and analyzer children.

Trust Boundaries and Controls

  • observed — Preparation rejects manifest, registry, and other arbitrary CLI overrides by accepting only --offline. Subprocesses receive argument arrays rather than shell command strings. Environment bindings are child-local overlays; the shared capture helper does not clear the remaining ambient environment, so this is environment consistency rather than a credential sandbox.
  • observed — Cargo offline policy and Rustup installation policy are separate controls. The inspected analyzer metadata helper explicitly forbids Rustup auto-install, whereas the new readiness invocation applies the captured environment without adding that control. This distinction alone does not establish increased exposure relative to the unavailable base.

Resilience and Maintainability Implications

  • observed — Concurrent readiness callers share one terminal result, preventing conflicting process-local readiness decisions. The same design does not revalidate after external cache changes or retry a failure after same-process repair; the documented prepare-then-check workflow uses separate command invocations.
Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 38.10% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 21 functions across 3 files. (4 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description provides extensive technical context, validation results, scope limits, and rollback information. However, it does not follow the required template structure and omits or leaves unclea… Restructure the description using the repository template. Complete every required section, including checkboxes and explicit n/a entries where applicable. Add source-of-truth links, candidate relationship status, scope classification, supp…
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 identifies the main change: preparing locked golden-fixture dependencies in the effective Cargo home.
Full details: Docstring Coverage

Explanation

Docstring coverage is 38.10% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 21 functions across 3 files. (4 skipped: 4 unsupported.)

Full details: Description check

Explanation

The description provides extensive technical context, validation results, scope limits, and rollback information. However, it does not follow the required template structure and omits or leaves unclear several required sections, including Source-of-truth Links, Candidate Relationships, Scope Classification, Support-tier Impact, Policy Impact, CI Economics, Engineering Check, Gates, and Spec-Test-Code Traceability.

Resolution

Restructure the description using the repository template. Complete every required section, including checkboxes and explicit n/a entries where applicable. Add source-of-truth links, candidate relationship status, scope classification, support and policy impact, engineering and gate results, CI economics, and spec-test-code traceability.

✨ 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 cache at dawn
Then locked crate paths are safely drawn
Offline metadata gives the sign
The fixture runs in env aligned
And carrots wait when checks are done

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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Confirmed findings

  • Preparation, fixture build and analyzer children all run under one captured env vector (CARGO_HOME, RUSTUP_TOOLCHAIN, optional RUSTUP_HOME) so a fetch in another home cannot silently satisfy the subprocess.
  • Lane is JS/async memory + transfer focus but diff is Rust subprocess ownership only; no JS crossings, SharedArrayBuffer, postMessage, transferable, WeakRef/FinalizationRegistry, or Worker detach surfaces exist. Lane relevance is bounded to process-level capture ordering, which was verified.
  • No unsafe code introduced; lockfile adds home =0.5.12 pinned exactly. No new alloc-failure or type-confusion surface from the new module.

Verification questions

  • Confirm only owner_return_pin_fallible_literal triggers ensure_ready; any future registry-locked fixture will silently skip the readiness gate.
  • Confirm onceLock and OnceLock cache the captured environment and metadata outcome, so a poisoned CARGO_HOME is sticky for the process. No negative test resets or detects this; native controls rely on a fresh subprocess per fixture run.
  • Confirm captured environment uses home::cargo_home_with_cwd with cwd resolved before child cwd mutates; relative RUSTUP_HOME is intentionally joined to original cwd rather than resolved per fixture.
  • Confirm preparation_error unit test asserts substrings but not the newline-separated ordering of binding/error/next that the diff comment claims as part of the contract. If the order regresses, no test fails.

Refuted

  • fixture subprocess holds a mutable ArrayBuffer/TypedArray whose length snapshot can go stale across cargo metadata calls; refuted because: Diff contains zero ArrayBuffer, TypedArray, SharedArrayBuffer, WebAssembly.Memory, RawVec, or unsafe resize code; preparation only performs cargo metadata/fetch subprocesses and caches env tuples in OnceLock<Vec<(&str, String)>>, which are static-length and never resized after init.
  • ORIG EVERPATH: home =0.5.12 is pinned with =; reproducible but a transitive-resolution regression upstream could prevent the workspace from resolving at all. Acceptable trade-off; PR body does not claim cross-version support.
  • Adding a 'home' crate just to resolve CARGO_HOME is over-scoped relative to a one-line std::env lookup.; refuted because: The module deliberately resolves a relative CARGO_HOME against a captured CWD before any child mutates the working directory; std::env::var yields the raw string only. home::cargo_home_with_cwd mirrors Cargo's documented rule and is the minimal correct surface. Dep added is pinned (=0.5.12) and limited to xtask.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Parked follow-ups

  • preparation::cargo/build re-collects the env Vec into &[(&str,&str)] on every call instead of caching a static slice; sibling helper overlap, not a bug.

Copy link
Copy Markdown
Member Author

Updated source-review and Ready-admission disposition, superseding earlier builder instructions to keep Draft pending independent review.

Reviewed head: 791ed55; tree 1adb5e9ea4dda375a4a2ee49de38cdbf63ae6712. Base: 50d8688. Independent source review task 01a142e0-e84b-77ec-8ab7-17887030600e inspected all eight changed paths but its container failed provisioning; that review made no runtime claim. Replacement independent reviewer task 01a142ee-f58d-73e9-8f0e-b9b98cd4000f completed the scoped runtime review on Linux/Bash with no actionable findings.

The replacement reviewer built only xtask and ripr binaries with locked offline Cargo, then froze artifacts. CLI SHA256 5c2cf133f9fedce1988e3d0e1ae77c36411f84117dba13f2d93f26042747d6b7 stayed identical before/after preparation. xtask SHA256 69299e3b485566cd044b725d9b3b47d66f079e59583f92138b60ef52e13a8f5b; wrapper 2d404444b4bf803cfdb635e896eb60ec0d293bb45319881cbca9fc5070ba71e2. Compiler artifacts and version output bind these to the reviewed checkout; distinct builds are not claimed byte-equivalent.

Executed controls: selected home with anyhow1.0.104 but missing locked1.0.100 produced weakly_exposed; fixture runner and offline preparation refused with actionable advice; preparing a different home did not fix selected-home refusal; preparing selected relative home succeeded and verified locked checksum; the same frozen CLI then produced exposed with a separate fact cache. Seeded offline preparation, all three golden surfaces, 0.31s warm repeat, unset/empty CARGO_HOME fallback all passed. Five observed Cargo delegation calls consistently received absolute Cargo/Rustup homes and repository toolchain pin despite invalid ambient toolchain. All ten fixture files remained unchanged. Original failed cross-build wrapper equality is retained; it is not relabeled as success.

Owner final-head evidence: four focused tests, check-fast11 applicable gates, complete eight-path precommit with no skips/limitations; exact-base scoped build/check-fast passed. These owner gates are attributed separately from independent runtime controls. Review5542856442 questions are disposed by fixture-specific readiness, existing process-sticky OnceLocks, original-CWD home resolution and executed controls above; extra diagnostic-ordering coverage is nonblocking. No inline threads remain.

Current main50166e2f2ea9e391013152349a9b9be5c10fd371 adds unrelated pilot/help/MCP/SARIF changes; no preparation consumer, canonical resolver, dependency, toolchain or required workflow delta. Remote merge4c296b2e7964c78109d1b4a6f4527e1a023ddb8e/treee220f50bec91f62a9e7bea56665a451be08c73dc uses main2e6fbbe plus reviewed head. This is source applicability, not executed combined-tree qualification.

Inherited standalone cargo-deny still fails yankedzip8.6.0; #8178/#8180 own repair, no pass or duplicate repair claimed. Branch summary requires Ripr Rust Small Result, triggered by Ready; main ruleset requires thread resolution, zero approvals and no bypass. Classic protection read403 remains a visibility limit.

Proceeding with normal Ready qualification. Required hosted results, actual checkout identity, sensor acceptance, Windows and full-workspace qualification remain pending/unclaimed. No release or deployment authorized; existing holds remain.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 16, 2026 04:33
@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!

@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 found 2 potential issues.

Devin Review

Copy link
Copy Markdown
Member Author

New finding4290966731 needs disposition before landing: the absent pinned-toolchain boundary was not exercised by our installed-pin/invalid-ambient runtime controls. Source currently does not disable rustup auto-install for readiness and prepare --offline. Returning to Draft while the owner establishes a no-download negative control and repairs the offline contract if confirmed. This supersedes Ready receipt6208148868 for the new finding; earlier exact-head tests remain historical valid scoped observations, not proof of this untested boundary.

Discussion4290966815: the independent review did execute selected-home missing locked dependency → refusal → preparation → success, with a frozen CLI and unchanged fixture; that evidence is in6208148868. This does not substitute for an executable committed regression where required. Both coverage and behavior will be reconciled together.

Current required run38851275697 is already active on the prior subject. No duplicate dispatch or rerun requested; its eventual result will be retained under its actual checkout. Repair handoff currently hit a cloud-service error, so implementation has not yet resumed. Source and proof are preserved.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 16, 2026 04:50

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

REPAIR_REQUIRED — independent missing-pin boundary review; corroborates existing finding 4290966731, not a new competing repair.

Reviewed head: 791ed55a4e8c25622863a100cddefe5facc4a11a, tree 1adb5e9ea4dda375a4a2ee49de38cdbf63ae6712; actual diff base 50d8688877a5619223c0cebcf60f7b1fa5467edb. Re-read head and Draft state before publication. Read AGENTS, checkout review-pr skill, full eight-file diff, preparation owner/fixture consumers, shared process launcher, relevant spec/docs and current threads.

Owner recovery first: 6208331945 retains repair ownership and reports a cloud-service recovery failure. This fresh environment contains neither the owner's retained proof directories nor a newer repair object; no replacement implementation or candidate push was attempted.

Observed source: environment() does not set RUSTUP_AUTO_INSTALL; cargo() delegates to a launcher that preserves the ambient environment. Readiness's Cargo offline flag cannot govern Rustup. In prepare --offline, the earlier cargo --version and rustc --version probes also need the control; protecting only fetch/metadata is incomplete. Existing process_owner::forbid_rustup_auto_install documents this boundary. The four committed tests do not execute missing-pin children.

Observed independent native controls (Linux/Bash; Rustup 1.29.1 d95a37b6a, installed Cargo 1.95.0 f2d3ce0bd/rustc 1.95.0 59807616e):

  • Each child used a fresh empty absolute RUSTUP_HOME, repository pin 1.95.0, explicit proxy PATH, empty selected CARGO_HOME and an otherwise cleared environment. Both Rustup distribution/update endpoints pointed only to a loopback server returning empty HTTP 503.
  • Three commands: cargo --version, rustc --version, and cargo metadata --locked --offline --format-version 1 --manifest-path fixtures/owner_return_pin_fallible_literal/input/Cargo.toml.
  • AUTO_INSTALL=0: 3/3 native exit 1, missing-toolchain diagnostic, zero server requests.
  • AUTO_INSTALL unset or 1: 6/6 native exit 1, each made exactly one /dist/channel-rust-1.95.0.toml.sha256 request and reported syncing channel updates. No successful distribution response or toolchain download. All nine assertions passed.

Reproduction controls: execute the three commands directly through rustup's cargo/rustc proxies from this head, in separate empty stores for each setting (0/unset/1). Keep RUSTUP_TOOLCHAIN=1.95.0; set RUSTUP_DIST_SERVER and RUSTUP_UPDATE_ROOT to the rejecting loopback listener; bound each child to 15 seconds. Do not run the unsafe unset/1 controls against the public distribution server. Frozen driver/rows are retained at /workspace/scratch/review-8174-evidence/{rustup_boundary.py,rustup-boundary.json} (executor-local, not uploaded custody). Driver SHA256 c7d0060b53f04e89ac196e91e6d06a20b057f2c723812e8fe70fc59a70f3b052; raw receipt SHA256 3b342f8e65f95ff3cdbf0f1e08d785cc9773565ac9855ad71986c2186b5a2cc6; Rustup executable SHA256 dda7234360b7f578ca8b0ddcb80145646fa61a67c1720a5abc7051b35c9fcb71.

Limits/blocker: exact-head cargo build --locked --offline -p xtask --bin xtask stopped before compilation, native 101: no matching package named home in the available registry. Registry was left unchanged. These are real launcher controls plus source-path inspection, not a newly built end-to-end xtask pass. Missing-pin diagnostics through repaired xtask, committed executable regression, installed-pin success and normal preparation behavior still need owner proof on the repaired head. Parent-reported prior dependency preparation controls remain attributed to 6208148868.

Existing run 38851275697 returned completed/success hosted Rust gates and aggregate result; observed steps explicitly install the toolchain. Its actual checkout was not inspected here; it cannot discharge this negative boundary. No duplicate dispatch, bot contact, thread resolution or state transition.

Next: canonical owner repairs the same Draft candidate, enforcing the offline control before every relevant proxy launch (including overriding ambient 1), adds an executable missing-pin discriminator, and supplies new-head evidence for independent re-review. No novel issue emitted. Overall end-to-end proof remains REVIEW_INCOMPLETE.

Copy link
Copy Markdown
Member Author

Repaired-head independent review and Ready-admission receipt. Reviewed head a33df51525b0386ade05d5b97d52ea34f0d76e3f, tree d453c0d434b4fa3c2921d123c306ca46851be99a, implementation base 50d8688877a5619223c0cebcf60f7b1fa5467edb, repair parent 791ed55a4e8c25622863a100cddefe5facc4a11a.

Attributable independent reviewer: Codex /root in task 01a142ee-f58d-73e9-8f0e-b9b98cd4000f, completed turn 01a14362-e9b8-773d-9ef7-77cf5ceba3a6. Admission verifier: /root/check_fixture_ready_admission; I read the complete direct reviewer result. Reviewer inspected all six successor paths, full ten-path PR inventory, subprocess consumers, committed tests and network validator; no actionable defect remained.

Independent execution: seven preparation tests passed (including one subprocess helper), scoped xtask build passed. Absent-pin readiness, explicit offline preparation, CARGO_NET_OFFLINE=true preparation and offline fixture build all refused with zero distribution requests. Online preparation preserved caller denial (zero requests) and allowance (one rejected request). The predecessor executable's offline preparation made one rejected request, demonstrating defect sensitivity. Both Rustup endpoints were bound exclusively to an owned loopback HTTP-503 listener. Installed-pin missing-dependency controls refused; minimal verified seeding permitted offline/online preparation. Same retained product CLI changed weakly_exposed to exposed. Important identity limit: that CLI is the retained 791ed55 artifact, SHA256 5c2cf133f9fedce1988e3d0e1ae77c36411f84117dba13f2d93f26042747d6b7, whose product subtree equals the successor; it is not a newly built successor product CLI. Independent successor xtask SHA256 1f88b607faee32328741d7ffbcfb4a271f2b262ad4db7d674b3224d2caa884ba.

The one-token network allowance is confined to the exact cfg(test) file. Validator unchanged; removing the row, exceeding its count and inserting the token in production independently failed policy. Restored network/process checks passed. Raw independent evidence bundle SHA256 86d4f1399d82a5b4fba395fe6eb173de3051aaa17ad832f5a230b485bda51180 is retained separately; binaries are excluded. Owner exact-head check-fast and complete ten-path precommit passed; these remain owner execution, not admission-verifier execution.

Disposition of findings 4290966731 and 4290966815: verified repaired by the real missing-pin and missing/seeded-dependency execution above, plus committed child-process regressions. No remaining material finding in assigned scope. Old required run 38851275697 is terminal success on its old subject; its 16,312 tests do not qualify this repair.

Actual remote merge ref independently read now: e3b271eba3c7a4c82bf59cab925fe625f3f5b438, tree ce7fb31bc9c952aa8cb424fc707aea65c80941db, parents current main e660a99480dc13a4ed93b131042d11506fd484b6 and repaired head. The remote subject contains zip9 from landed #8180 and the repaired proxy guard. PR metadata's older base_sha is not substituted for those actual commit parents. Reviewer verified relevant composed blobs equal the reviewed head; source composition is not combined-tree execution.

The #7837 composition conflict around the retired droid-review.yml row was independently reproducible without this PR's new allowance and remains separate; new row keys are disjoint. No #7837 integration is performed. #7746/#7929 holds and the separate sanitized-sensor boundary remain preserved.

Current required context remains Ripr Rust Small Result; no repaired-head Routed Rust Small run exists. Parent authorizes one normal Ready transition for this verified repair, superseding prior Keep Draft-for-review instructions for #8174 only. REVIEW_INCOMPLETE now concerns later hosted/platform qualification, not unfinished substantive review. Preserve protections, verify actual job checkout and monitor the resulting single required run; no duplicate/manual dispatch. No merge or release clearance is claimed.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 16, 2026 06:36
@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!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Confirmed findings

  • assertions_on_result_states clippy gate surfaced in PR body; the four repaired focused tests still call is_ok_and/Some_and on Result without assert!. Owner reports strict clippy passes on final head, so the gate cleared; the assertion-on-result-states concern is documented as historical.
  • Sibling scoped check: seeded reviewer thread reports owner repair hit a cloud-service error; no committed no-download negative control for production preparation path. Park the absent-pin boundary until repair lands; do not broaden lane scope.
  • xtask/src/reports/fixtures.rs:721 — ensure_ready is hard-gated to a single FIXTURE name (owner_return_pin_fallible_literal). Any future registry-locked fixture will silently skip the readiness gate and fall back to the old 'bless on missing deps' surface. Suggest replacing the hard-coded name match by a small const slice (or table) of gated fixtures iterated inside run_fixture_outputs.
  • The Cargo.lock adds home =0.5.12 exactly pinned, matching the manifest. No other Cargo.lock drift was observed; the new dependency does not introduce transitive UB-relevant additions.

Verification questions

  • Confirm test readiness_uses_the_locked_fixture_offline only asserts the literal metadata_args() vector, not a missing-dependency refusal→preparation→success oracle.
  • Confirm seeded test copies anyhow-1.0.100 archive out of the current host's CARGO_HOME into a synthetic OwnedRoot; fresh worktrees that never ran 'cargo xtask goldens prepare' will fail the precondition without a tool-only fallback.
  • Confirm fIXTURE constant = owner_return_pin_fallible_literal is referenced only from run_fixture_outputs (gate) and preparation::prepare/print/proxy_error, so the readiness path is single-fixture; future registry-locked fixtures will silently bypass ensure_ready.
  • Confirm ensure_ready is hard-coded to FIXTURE; any future registry-locked fixture silently skips readiness and the test suite has no coverage of run_fixture_outputs gating.
  • Confirm fIXTURE constant is hard-coded; readiness gate only triggers for owner_return_pin_fallible_literal, matching PR scope but creating a hidden gating contract for future registry-locked fixtures.
  • Confirm online control reaches the rejecting server (asserts requests>0) but does not prove online mode would have succeeded against the real distribution, so the assertion confirms network reach, not policy. The opposite contract (online + auto-install reaches, but offline does not) is what the test exercises.

Parked follow-ups

  • Smallest-complete fix could fold the new proxy_environment / RUSTUP_AUTO_INSTALL=0 control into the existing xtask::command or ripr::process_owner helper instead of a parallel once-cached env inside the new module; current placement keeps the change diff-bounded for #7920, so this is a follow-up rather than a blocker.
  • Preparation sits in xtask and shares its process-tree cargo/rustup invocation, so duplicating the existing forbid_rustup_auto_install policy here is an architectural smell rather than a blocker.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant