Repository navigation
Description
Part of #1. Ready for a fixture-only CPU-isolation repair; no GPU/model work.
Implements / Consumes
Use SpurDispatchTest.setUp/run_job/write_tool and existing controlled busy/holder cases. Preserve the production dispatch contract and no_gpu.sh's LD_PRELOAD/KFD_GUARD_LOG boundary.
File set
tests/test_atomesh_spur_dispatch.py only.
Exit criteria
- Default dispatch owns deterministic idle probes and an empty KFD directory; no real SMI/KFD fallback occurs.
- Explicit busy/holder negatives still exercise unchanged production assertions and only controlled fixture processes.
- Child environments preserve supplied guard values exactly, including through overrides; no broad environment inheritance.
- Controlled shadow probes and child-environment receipts demonstrate old-boundary refusal and corrected isolation without device access, changed expectations, skips or longer timeouts.
- Independent focused qualification precedes resuming full CPU gates; final ordinary gate and review pass on the fix-bearing immutable head.
Named result
Spur dispatch unit tests remain meaningful and hardware-independent on the guarded CPU lane, without weakening production GPU ownership checks.
Effort
Code: 0 added/moved/deleted. Tests: approximately 120 added, 0 moved/deleted; weighted120. All fixture/control support is counted. Standard CPU gate applies after boundary qualification.
Bounded implementation and qualification contract
Centralize the default fake GPU-probe responses and fixture-owned KFD path in the existing fixture; preserve the busy-data and controlled-holder overrides. Exercise a valid idle response and the existing busy rejection through the actual copied shell script. A controlled shadow/sentinel tool must reveal unintended fall-through without invoking a real system probe. Do not patch production assert_gpus_idle, its 300-second default, thresholds, process ownership or existing 15-second fixture timeout.
Preserve only the required no_gpu.sh guard pair, LD_PRELOAD and KFD_GUARD_LOG, when present; do not let case overrides silently discard it. Keep the fixture's intentional clean environment. No shared harness, gate runner, conftest, runtime or GPU environment change is in scope. No GPU marker/skip, test exclusion or expected-result relaxation.
An author and independent reviewer from the existing pool first inspect the child/probe boundaries and run focused guarded CPU regressions with private temporary files and harmless child processes. Preserve a red isolation case for the old fixture using controlled fakes or captured environment, not hardware or a real busy node. Record default probe resolution, busy refusal, guard inheritance and controlled KFD/holder behavior. Root resumes full ordinary gates only after this independent boundary qualification; targeted success alone is not final APPROVE. Required full gates and review must complete before normal landing/closure.
#3 and #22/PR24 depend on this qualification for full-gate approval. Their source review and purpose-specific guarded targeted work may continue. Once qualified, dependent heads incorporate the exact fix or an approved stack and complete their remaining gates/review; no earlier failed/passed record is rewritten. #25 has no implementation prerequisite.
The existing source/trace record proves an isolation gap, not the exact timeout cause or attribution of three guard denials. Any relationship to #21's NCCL failure remains unproven; worker-loss detection repair44d85ea1 and any separately qualified model replacement remain independent. No GPU grant or final C12/precision/quality/ownership change.
The upstream comparison at cccc96a and inherited e875ed3/9cc9498b history remain linked in the ruling. This is the owner's required fork CPU-fixture adaptation, not an upstream production workaround, general repo audit or speculative backlog expansion.
Activity
whx-sjtu commentedon Nov 22, 2026
Ruling (auto): (a) Ready for the one-file fixture isolation repair under #1.
The mandatory CPU-isolation contract and fix-the-shared-boundary principle require controlled probes and preserved guards, not idle-only scheduling.
Brief updated: file set, meaningful checks and 0 code/120 test-line estimate. #3 and #22/PR24 await this boundary for full-gate approval; safe targeted work continues. No production, upstream, GPU or acceptance change.
Scope and upstream-rule reconciliation
The standing rule says an unfixed upstream defect is filed as backlog for the owner to raise upstream. No committed upstream isolation fix exists at the checked main cccc96a; the relevant contracts match fork ea8eec8b, and e875ed3/9cc9498b are already ancestors. This is not a sync request or permission to patch production GPU behavior.
For #25, the owner's mandatory local CPU-only guard contract and delegated technical authority support a case-specific fork fixture conformance repair. Leaving the broken child boundary in backlog while merely waiting for idle GPUs would not satisfy that contract. Keep #25 active under #1 because it directly enables required acceptance infrastructure. This does not authorize general workarounds for other unfixed upstream defects or any upstream write.
Change only tests/test_atomesh_spur_dispatch.py. Centralize controlled default idle GPU probes and a fixture-owned empty KFD directory; retain explicit busy/holder cases and their existing production assertions. Prevent probe fallback from reaching real amd-smi/rocm-smi or real KFD discovery. Preserve LD_PRELOAD and KFD_GUARD_LOG exactly when supplied, through the fixture's child-environment construction/overrides, without copying the broad parent environment. Affinity/nice inheritance and the shared guard remain unchanged.
Prove this with harmless controlled CPU children: default dispatch uses fixture probes; a shadow/sentinel probe catches fall-through; the actual busy-data negative still rejects; holder actions target only fixture-owned children/directories; the guard pair survives child launch. Demonstrate the old fixture's isolation failure using controlled fakes or environment inspection, never a real device call. No production script/threshold change, skip, GPU relabel, timeout inflation, permissive idle setting, altered expectation or shared guard/environment change.
Use the normal private CPU interpreter, absolute no_gpu.sh, CPU lock, private node-local TMPDIR and CPU affinity/priority. First complete focused checks and independent boundary qualification. Only then may root resume required full CPU gates on fix-bearing heads; making #25 unheld is not itself permission for a full gate. Final ordinary gate, source review and normal landing remain required. Reuse unaffected proofs; preserve #3's failed gate and PR24's historical passes without upgrading either into approval.
The 21 timeouts and three denied opens remain unassigned to an exact blocking stage. Any effect on #21's independently audited FAILED_IN_WARMUP/NCCL outcome is unproven; its worker-loss repair is separate. No #21 source/input/run change or GPU allowance follows. Root assigns distinct existing author/reviewer roles. All final C12, precision, quality and ownership requirements remain.
Evidence reused: source advice b58dd21c76fbb6bb4ad0dd27f81ac017f6607a46d2a0c154d6da96621ebd6ec9 and failed-gate seal bf295e4ee1ed8d7bb4e23a10c2fb51c448f0405c9c92e8fbffa021617cea9612. No failed test, repository import, compiler or device/model action was rerun by this ruling.
Also: #25 brief published; #3/#22 dependencies updated; PR24 notified.
whx-sjtu commentedon Nov 22, 2026
Claimed: branch task-25. Ready for the ruled fixture-only repair.
The live brief, comments and open delivery pool were checked; no prior claim or delivering PR exists. AMD owns the correction; Source independently qualifies the focused boundary before Root permits a full CPU gate. Production GPU assertions and existing negative cases remain unchanged. No GPU/model execution or replacement benchmark is authorized.
whx-sjtu commentedon Nov 22, 2026
Ready: PR26 landed on k31-perf-opt as 791da5d; #25 is complete.
The independent approval covers the isolated fixture and full CPU gate. Dependent heads can incorporate this exact fix. Production GPU checks are unchanged; historical failures and unassigned guard denials remain preserved. This is validation infrastructure, not model performance evidence.