Repository navigation
Description
Scope and existing owner
Bounded follow-through to #1401 / selected main integration #1599, under #945. This is not a replacement lock, a competing doctor repair, or permission to weaken validation.
Source inspection at #1599 head b9b083294d236aaef910627a320611cf7ed28606 confirms that write_fake_bun and write_fake_cargo in tests/cli.rs still use the local uncoordinated write_file + chmod sequence. The converted doctor tool writers and fake release curl writer use write_executable_fixture; ordinary CLI process creations participate in the shared spawn reader. The original #1401 contract explicitly excluded fake Bun/Cargo materialization, so their remaining exposure is not an introduced regression from that doctor repair.
Review 4400735874 identified this remaining scope. The known inherited-writer mechanism is documented in #1401. No fresh Bun/Cargo-specific failure count or executed reproduction is claimed by this source inventory.
Required change
Route actual Unix executable materialization for fake Bun/Cargo through the existing shared writer primitive. Inventory release-fixture executable payloads separately from ordinary archive/checksum/config bytes, and convert executable writes where relevant. Preserve exact script bytes, intentional malformed/archive cases, exit semantics and existing Windows implementation. Do not put ordinary file writes under the lock. Do not hold the writer while spawning a reader-participating command.
Acceptance
- Existing fake Bun/Cargo contracts still pass with unchanged scripts and configured exit/sleep/log behavior.
- Add bounded positive/negative controls using the real helper writers and concurrent unrelated launches; fix the count before running and retain failures rather than retrying for green.
- Every process-creation site in the affected test process participates; custom-stdio spawn behavior remains intact and the reader ends before child wait.
- A deliberately retained writer still returns native OS26 on Linux; real spawn errors do not become successful expected failures.
- Preserve all existing doctor/release/golden-workspace controls. Audit the common-module stress tests' per-target repetition so broad helper reuse does not silently multiply subprocess cost.
- Run focused tests, native fmt/check/test/Clippy/docs/policy and final exact-head required qualification. Do not use a sibling/old-parent green.
Boundaries
No sleep/retry workaround, whole-suite serialization, production process redesign, blanket suppression, threshold/pin/workflow/credential/release changes. Reuse #1599's helper and owned process-spawn receipt. This issue stays open even if the separately useful doctor/golden repair lands. Its completion is required before claiming all executable test fixtures are race-protected.
Activity
Merge PR #1599: coordinate executable fixtures and isolate snapshot w…
EffortlessSteven commentedon Oct 31, 2026
New executed race receipt and reader-side contract gap
Reuse this existing coordination owner; no new issue, replacement lock or competing implementation. #1617's unchanged unrelated CLI fixture produced a fresh instrumented ETXTBSY failure, retained in packet handoff6538559385. Gate41163897482/artifact13028426209 is bound to b451562 and main681def59; artifact SHA256015fbf3175483dda8c5fd5f00881dd50bb9278024473c42441bc6cfa8b36a79a. Ordinary CLI98/0fail/1ignore; instrumented CLI97/1fail/1ignore. Exact failure:
common::executable_fixture::tests::concurrent_children_cannot_inherit_executable_fixture_writers,Text file busy (os error 26). All five new lifecycle controls pass in both modes. Coverage exits101, no LCOV, actual upload skipped. The separate enforced RIPR40/max0 is not this fixture failure.Current source narrows the next investigation
At main681def59d005d3b0b922f23832d73e52c46a84d5:
tests/common/executable_fixture.rsblob3f587d35a28ef6732248ee7e7e3336b10093f9a9 explicitly requires every launch in the fixture process to take the shared RwLock reader. Its stress writer and its own /bin/true/script launches participate; reader ends after spawn, before wait.tests/cli/init_output.rsblob4e02134576df6349d6d8cd8d8030d63a9b0c9e5f still launches through raw.output()(e.g. directory-guide refusal L31 and fresh/forced output L97).tests/cli/setup_ci.rsblobb6c40d8e08784cc0da2d8f672d88ae878fd2822e has raw.output()in the newer action-SHA refusal/replay builders (e.g. L637/L707).cli_subprocess_test_lockis a different Mutex in cli_lock.rs blob75bb848fd81fa5ee565d394525362219e970846e. The common executable stress test does not acquire it. Thus that test-body mutex does not make these raw launches participate in the shared executable-writer boundary.This is a source-confirmed reader-side contract gap, separate from this issue's already-inventoried fake Bun/Cargo writers. It is a plausible way an unrelated child can inherit the stress fixture's open writer. The hosted log does not identify the precise failing executable/overlap, so I am not claiming causal attribution or a measured failure rate. The previous #1615 coverage-routing patch deliberately preserved these process methods; it fixed profiler placement, not universal fixture coordination.
Bounded next implementation: inventory every direct spawn/output/status in the CLI test process, distinguish the deliberate already-reader-guarded native OS26 control, audit stdio, and route eligible default-capture calls through existing
fixture_output()while preserving custom-stdio handling, LLVM_PROFILE_FILE, assertions and original I/O errors. Retain actual affected-helper concurrent positive/negative controls with a fixed count; then one converged ordinary/instrumented qualification. Do not add retries, sleeps, profiler filtering, global serialization, duplicated locks or suppression. Preserve existing writer work and every failure receipt. Targeted open-PR search for1600 returned no receiving candidate at this checkpoint; that is not proof all possible writers are idle. No source or CI mutation was made by this handoff.EffortlessSteven commentedon Oct 31, 2026
Continuing under the user's implementation-through-integration instruction. I am taking the bounded reader-side correction identified in comment6538576818 on a new owned branch from current mainf1a9670d139472aec99719793daf94ad31e6d5e1: route existing default-capture launches in tests/cli/init_output.rs and tests/cli/setup_ci.rs through the existing FixtureCommandExt boundary, preserving environments, coverage destinations, arguments, all assertions and native errors. Current issue discussion has no competing implementation handoff and the exact1600 open-PR search returns none; this is not a claim that all other writers are idle. Shared lock implementation, fake Bun/Cargo writers and release-payload materialization remain outside this bounded delta and #1600 stays open. I will audit caller stdio and current launch sites, then publish one selected source-reviewed candidate for installed exact-head qualification. This executor has no Rust toolchain; no new local Rust/control execution is claimed. No retries, sleeps, global serialization, new lock, policy/threshold/suppression/pin or workflow change.
Merge PR #1618: coordinate init and setup-ci fixture launches
EffortlessSteven commentedon Oct 31, 2026
Reader-side correction delivered — PR #1618
Merged through the normal protected expected-head path as 6be4490. Ordered parents are mainf1a9670d139472aec99719793daf94ad31e6d5e1 and head48f0720f509ffb5158f0c946f43481b245577355. Native landing tree 07209483ccb7fdde313324eb57195f3a662edf86 equals the actual tested merge tree. Exactly16
.output()->.fixture_output()replacements in tests/cli/init_output.rs (11) and tests/cli/setup_ci.rs (5); no other source or policy change.This implements the bounded reader participation correction from6538576818. All changed calls use default capture; environments, LLVM output routing, arguments, filesystem/output/replay assertions, error propagation and shared lock implementation are unchanged. Reader release still occurs immediately after spawn, before wait. No retries, sleeps, added serialization, replacement lock or assertion weakening.
Review5721321124 retains source review and actual evidence. Baseline41168614666 passes all7 checks/finalizer. Gate41168614630/job124441507924 passes; ordinary and coverage-instrumented workspace each pass1600 top-level tests with zero failures/two intentional ignores. All14 affected tests and both common concurrency/native-error controls pass in both modes. Existing stress count8x250 unrelated launches plus250 script writes/launches is unchanged. Each common control appears once per population, so this packet does not establish a per-integration-target repetition bug. Actual LCOV3,107,653bytes and telemetry upload pass. No local Rust execution or newly compiled old-source negative is claimed.
Gate artifact13030790419:822152bytes/SHA256edcea023025d6b903042f7cbb7d75d350f5d6eeca6c77b44ca68410659f3c3e9,241 CRC-valid entries. Exact two-path diff and canonical revision joins recompute. Dirty admission remains explicit. RIPR admits2 changed Rust files but emits0probes/findings; max0 passes without new suppression, not as static mutation-adequacy proof. Full identities and checksum details are in the review and PR body.
Keep #1600 open. Fake Bun/Cargo writers and release executable payload materialization remain outside this patch. Their remaining audit must distinguish executable writes from ordinary archive/config bytes, preserve Windows behavior and scripts, use the existing writer boundary without holding it across participating launches, and retain bounded discriminating concurrency/native-error controls. No duplicate implementation was started.
The earlier #1617 instrumented OS26 failure is retained. This landing repairs an observed source-contract gap, but neither identifies the exact historical inheriting child nor proves all fixture races eliminated or clears #1617's separate RIPR40/max0. Reuse this landed reader correction in the next selected writer composition; do not rerun an unchanged failing candidate to seek green.
EffortlessSteven commentedon Oct 31, 2026
Reopened: writer acceptance is not delivered
Live read found this issue closed as completed at the #1618 merge time, despite the PR's explicit non-closing scope and delivery comment6539196286 saying to keep it open. Reopened after checking current main e71c87f: tests/cli.rs is still blob d2fe57e2f97ec65f27a92763e673e311a3125201.
write_fake_bunandwrite_fake_cargostill call the uncoordinated localwrite_filefollowed by chmod; the release fixture still writes/chmods its candidate and copies nested executable payloads outside the writer boundary. #1618 changed only reader call sites and remains valid delivered work.The actual next implementation remains exactly this issue's writer conversion plus real-helper bounded controls, preserving script bytes, Windows paths, release archive negatives and native OS26. No later writer implementation/receiving PR was returned by the targeted1600 search. No replacement lock, ordinary-file locking, retry/sleep workaround, new CI generation or closure is justified by #1618's green.
This continuation has not modified these writers or executed new Rust controls. Local Cargo/rustc are absent and ordinary Git/Rust source acquisition failed DNS; those limits are not proof of correctness or a reason to drop acceptance. I am retaining this open objective while independently advancing existing delivery repairs through the connected GitHub path.
EffortlessSteven commentedon Oct 31, 2026
Bounded isolated handoff. Canonical owner retains adoption/integration custody; no new branch/PR/hostedqualification is claimed.
The isolated candidate converts the fake Bun and Cargo script writers and the release executable payloads to the existing writer primitive. Script bytes and Windows paths are preserved. The release fixture’s archive-negative cases passed.
75856416961ac03d4011101358a861ee22085950da410e3fdebf298b4fb9f58f38b015c17159981ce74f2baf27823c1ed8bbcc57d6b28099fb45c9115cbbac62a4d985a2944ddc45864974f014c5ebc6241f63577b86b4074f92619dWith Rust/Cargo 1.95.0, offline dependencies and two build jobs, the following commands exited 0:
cargo fmt --all -- --checkandgit diff --checkcargo test --locked --offline --test cli real_fake_tool_writers_survive_concurrent_launches -- --exactcargo test --locked --offline --test cli release_resolver_executes_identity_fixture_cases -- --exactcargo test --locked --offline --test cli common::executable_fixture::tests:: -- --nocapturecargo test --locked --offline --test cli run_executes_focused_proof_and_writes_receipts -- --exactcargo test --locked --offline --test cli duplicate_model_proof_requests_execute_once_with_all_request_ids -- --exactThe common controls include the native Linux error 26 comparison. The first compile failed because a permission trait was still needed by the shell runner; the candidate restores it and the subsequent tests passed. Windows execution and hosted qualification remain unverified. The canonical owners retain integration custody.
Full transferable patch:
EffortlessSteven commentedon Oct 31, 2026
Independent review reconstructs writer proposal6540377954 onmain75856416961ac03d4011101358a861ee22085950, verifies patchSHA5cbbac62a4d985a2944ddc45864974f014c5ebc6241f63577b86b4074f92619d and fulltreee74f2baf27823c1ed8bbcc57d6b28099fb45c911. No material source defect found in intended UnixfakeBun/Cargo/syntheticrelease writes: existing exclusive writer spans write+chmod, guarded launches hold readlock onlythroughspawn; ordinarywrite_file/Windowsbranches/scriptbytes/archive-negatives unchanged.
Compiledinventory confirms each four reported exacttest selectors selects1 and commonfilter selects2. Independently executed nativeOS26 comparison/lifetime test1pass (100filtered),fmt/diffpass; otherauthorpasses reused. Concurrentrealhelper stress is probabilistic, NOT a deterministic reverse-wiring discriminator; wiring established by source inspection. Windows/hosted/currentthreadstate remainunverified. Canonicaladoption and fullissueacceptance/closure remain with existingowner.
test(ripr): prepare PR1401 source-role counterparts for #813 adjudica…
Coordinate remaining executable fixture writes and launches
Coordinate remaining executable fixture writes and launches
test: coordinate remaining executable fixture writes and launches (#1620
EffortlessSteven commentedon Nov 4, 2026
Closing as completed on main (2026-11-04 open-issue board sweep; 29-issue verified batch).
Ground truth: already fixed on main.