PR #678: fix(ignition): propagate bound source roots to spawned rank and replica processes

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/7709547a-e01d-494d-a793-1d3aac8b2f6d

Opened by a workflow run, Dec 2, 2026 5:58 AM EST. decide malicious: all_clear (100%): No malicious content found

explore

Author: brandonmmusic-max (CONTRIBUTOR; Discord "Brandonmusic") Motivation: External recipe repos tell ignition where their recipe directories are via ignition.cli.main(..., source_roots=...), which binds a ContextVar the preparation code hashes into cache keys. Processes spawned for tensor-parallel peers and local tuning replicas start with that binding empty, so they computed different ForwardCache roots and source_identity values than rank 0; this PR re-enters the captured binding in the children. Scale: +233 / −91 lines in 4 files (rank_group.py's +91/−85 is almost entirely re-indentation; the semantic change is ~13 lines plus 129 test lines) Proposal:

Full report · Notes

Classify intake

Selected: triage:review, priority:P2, bug, duplicate, area:preparation

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +triage:review, +priority:P2, +bug, +duplicate, +area:preparation

Value Proposition

Value Proposition — PR #678 "fix(ignition): propagate bound source roots to spawned rank and replica processes"

Charter alignment — good. The PR fixes the binding rather than relaxing the hash, matching "solve the right problem in the right place" and "bug fixes need to address the root cause" (#397). It stays inside shared ignition/preparation, adds no CLI flag, env var, plugin, or model branch, and imports nothing from hyperflare_recipes — consistent with the external-recipe contract in AGENTS.md:382-387. Evidence is on SM120, inside the supported matrix, and the body has all four required parts plus a limitations paragraph.

Novelty & status — additive with a duplicated hunk. Not obsolete: no main commit since the branch point (1fbcc3c → e72ec0d) touches these files. Not fully superseded: #670 (lukealonso, priority contributor, ~10h earlier) already contains the identical rank_group.py fix, but lacks current_source_roots(), the tuning_replicas.py propagation, and the three tests — which are exactly the CPU test #670's own review asked for and the PR split it suggested. The genuine value is the replica half plus tests; neither PR cites the other, so merge order would decide which duplicates which.

Value vs maintenance cost — small benefit, small cost, thin evidence. Beneficiaries are only external-recipe-CLI users doing same-SKU TP exports; in-tree export/serve/convert never bind roots, so their keys and artifacts are unchanged. There is no user issue reporting it, no CI on e72ec0d, the SM120 2-GPU/4-GPU runs are author-reported only, and the tests assert ContextVar visibility rather than equal ForwardCache.root/source_identity(). The declared symptom ("_prepare_ranks cache-root agreement check") does not exist on main — it is added by the author's own unmerged #597.

Changes required: (1) cross-reference #670 and #597 and state the merge-order plan for rank_group.py:44-59/295-311; (2) restate the "why" as the on-main FileNotFoundError/cache-miss symptom; (3) bind source_roots before _resolve_recipe in _replica (:155 vs :158); (4) assert equal digests, not just variable visibility; (5) declare multi-host ignition join out of scope (deferring to #668/#675), disclose the rebuild_manifest identity change, and fix the stale source_roots docstring.

Verdict: Worth it with changes

Full report Decide Value: yes (81%): This change is worth reviewing: it provides value to the project in line with its charter.

Subtraction and simplicity

Lens: Subtraction, Simplicity & Conventions on PR #678. The diff is functionally lean — one 3-line accessor plus argument plumbing, no new flags, env knobs, fallback branches or dead code — but two cheap simplifications are worth making before merge.

  1. Magic default (high). extra_source_roots=() in rank_group.py:44-45 and tuning_replicas.py:142 defaults the new spawn arg for module-private entry points with one production call site each. The bug is "a spawn site forgot to carry parent state", so the default silently restores the failure; charter says "No magic defaults". Drop =(); only tests/preparation/test_native_processes.py:228-229 needs updating.

  2. 85 lines of re-indentation for a 3-line change (high). rank_group.py:59 wraps the whole _peer body; only prepare(...) reads the ContextVar (aot.py:845-848, source_identity.py:48). Bind around the two prepare calls only → diff falls from +91/−85 to ~6 lines.

  3. Leftover private read (low). aot.py:845-848 still does from .source_identity import _EXTRA_ROOTS / _EXTRA_ROOTS.get(); it should use the new current_source_roots(). source_identity.py:24's docstring is now inaccurate.

Checked clean: current_source_roots() mirrors registry.current_recipes() and has 5 callers; test additions follow repo convention (no tests/conftest.py (not opened)); no copy_context helper exists to reuse. Cross-PR: the rank_group.py hunk duplicates open #670's identical edit — redundant work, not redundant code.

Open: does the author intend #678 to supersede #670's rank_group hunk? Is the whole-body wrap deliberate future-proofing?

Full report · Notes

Correctness and contracts

Correctness/contracts review of PR #678 (propagate bound source roots into spawned rank and replica processes). The mechanism is right; the scope and claims are overstated.

Findings, most important first:

  1. Major — the failure mode in the body does not exist on main: ForwardCache._prepare_ranks has no cache-root agreement check (only a forward-catalog check, aot.py:1043-1046); the RuntimeError comes from the author's unmerged #597, uncited. Root is set unguarded at aot.py:854-855.
  2. Major — the tuning_replicas.py hunk is inert: replicas prepare with compile_forwards=False (tuning_replicas.py:160), so no ForwardCache (capture.py:117-118) and no _EXTRA_ROOTS consumer (aot.py:845-851, source_identity.py:48, rebuild_manifest.py:327) is ever reached. The "identical digests for replicas" claim is vacuous.
  3. Major — multi-host is not just untouched, it is short-circuited before the capture: rank_group.py:288-290 returns before current_source_roots() at :298; ignition join still hashes rootless (serve.py:546) and admission rejects it (host_ranks.py:269-271). Scope is undeclared.
  4. Major (tests) — the new tests assert ContextVar visibility only (test_forward_cache_sources.py:83-90, 106-110, 186-188), never ForwardCache.root or source_identity() equality, so they would pass with the bug intact.
  5. Minor — replica binding occurs after _resolve_recipe (tuning_replicas.py:155 vs :158), and current_recipes(), bound together with the roots in the parent (cli/__init__.py:370), is not propagated.
  6. Minor — binding lifetime now spans the serve handoff (rank_group.py:59 → :121-122) while the docstring still says "for the duration of a CLI invocation" (source_identity.py:24); each peer also re-hashes the tree (aot.py:851-853).
  7. Minor — peer-written rebuild metadata now records rank 0's rooted identity (rebuild_manifest.py:327), undeclared in the compatibility section.

Verified sound: no lock/contention/memory/metric regression, backward-compatible defaults, picklable spawn payload, rank_group.py's +91/−85 is pure re-indentation, Linux-only test skips legitimate (but propagation untested off Linux).

Open: does #678 supersede #670's identical hunk? Was the symptom observed on a #597 stack? Is multi-host deliberate or overlooked? No CI, log, or issue corroborates the SM120 evidence.

Full report · Notes

Final review

Recommendation: Changes Requested

The propagation mechanism itself is sound, minimal, and fixes a real ContextVar loss across mp.get_context("spawn") boundaries for external recipe CLIs without introducing concurrency, memory, or hot-path regressions. However, the PR should not merge as-is because (1) the PR description cites an unmerged cache-root agreement check from PR #597 as the main failure mode, omits cross-references to #597 and priority-contributor PR #670 (which already contains the same rank_group.py fix), and overstates current tuning_replicas reachability (docs/design-review.md Principle 16), (2) the new peer spawn test asserts only ContextVar visibility rather than ForwardCache.root / source_identity() agreement, and (3) wrapping all 85 lines of _peer in rank_group.py creates avoidable re-indentation churn and merge conflicts against #670 and #664.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

  1. Align the PR description with main and cross-reference #670 and #597 (docs/design-review.md:147-162 Principle 16)

    • Verified behavior: ForwardCache._prepare_ranks on main (ignition/preparation/aot.py:1023-1295) has no cache-root agreement check (only forward-catalog key agreement at :1043-1046 and Inductor kernel inventory checks). On main, root divergence causes spawned peers to resolve rank 0's cache-relative paths under their own rootless self.root (aot.py:845-855,1214,1239), failing with FileNotFoundError or silent cache misses. The same-SKU cache-root agreement check ("ranks with GPU ... resolved incompatible forward cache roots") comes from unmerged PR #597 (pr/597 ignition/preparation/aot.py:1054,1068), which also matches the reported 4-GPU mixed-SKU (Max-Q + Workstation) validation rig. In addition, tuning_replicas._replica invokes prepare(..., compile_forwards=False, ...) (ignition/preparation/tuning_replicas.py:160) and exits on TuningComplete, so no in-tree code path in _replica currently instantiates ForwardCache (ignition/preparation/capture.py:117-118, ignition/preparation/bootstrap.py:127-128 (not opened)) or calls source_identity() (ignition/preparation/tuning.py has no references).
    • Fix: Update the PR description to (a) describe the real main failure mode (FileNotFoundError/cache miss on divergent self.root), (b) cross-reference #597 (disclosing that the cache-root agreement check and 4-GPU mixed-SKU validation included #597) and #670 (stating the intended merge/ownership plan for the rank_group.py hunk), and (c) describe the tuning_replicas.py propagation accurately as defensive spawn-boundary parity rather than claiming replicas compute ForwardCache roots today.
  2. Assert actual ForwardCache.root and/or source_identity() agreement in the spawned-peer test

    • Location: tests/preparation/test_forward_cache_sources.py:83-110.
    • Verified behavior: test_prepare_group_propagates_source_roots_to_spawned_peer writes (external / "recipe.py (not opened)").write_text("recipe = 1\n") at :98 (never read or hashed) and only asserts that current_source_roots() returns the same tuple on ranks 0 and 1. Meanwhile, ForwardCache.__init__ (ignition/preparation/aot.py:845-847) reads _EXTRA_ROOTS.get() directly rather than current_source_roots(), so the claimed invariant (rank 0 and spawned peers compute identical ForwardCache roots and source_identity digests) is only verified indirectly.
    • Fix: Inside _record_peer_source_roots (:83-90), also compute aot.ForwardCache(namespace={"model": "example"}, device="cuda:0").root.name (using a local pytest.MonkeyPatch.context() on aot.torch.cuda.get_device_properties as at :44-45) and source_identity(), and assert that rank 0 and rank 1 produce identical digests that differ from the unbound baseline.

Subtract / Simplify

  1. Narrow with source_roots(extra_source_roots): in _peer to the prepare(...) block

    • Location: ignition/preparation/rank_group.py:59-143.
    • Why: Wrapping the entire _peer function body re-indents ~85 lines (turning a ~6-line semantic change into +91/-85), creates a large merge conflict with open PRs #670 and #664, and keeps preparation roots bound through serve_rank (:122) and serve_peer (:126,130). Nothing in _peer after prepare(...) (:60-74) reads _EXTRA_ROOTS or calls source_identity().
    • Fix: Wrap only lines :60-74 (around the if exporting: ... else: model = prepare(...) block, matching pr/670 ignition/preparation/rank_group.py:60-74 and ignition/preparation/tuning_replicas.py:158).
  2. Consider removing the =() default on private spawn targets _peer and _replica

    • Location: ignition/preparation/rank_group.py:44-45, ignition/preparation/tuning_replicas.py:142.
    • Why: Both functions are module-private multiprocessing targets whose other 10 / 7 positional parameters are all required, and each has exactly one production caller (both now passing extra_source_roots). Dropping =() makes omission a TypeError rather than silently reintroducing empty roots, requiring only a 1-line update to tests/preparation/test_native_processes.py:228-229.

Nits

Dropped on verification

Full report

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with. decide malicious: all_clear (100%): No malicious content found

explore

Author: brandonmmusic-max (CONTRIBUTOR; Discord "Brandonmusic") Motivation: External recipe CLIs bind their extra source directories on rank 0 only, and spawned worker processes start without that binding, so peers and tuning replicas hash different source trees into their compiled-forward cache keys. This PR exposes a public accessor for the bound roots and re-binds them inside spawned processes so all ranks agree. Scale: +136 / −20 lines in 5 files (was +233/−91 in 4 before the 21:29 rebase) Proposal:

Full report · Notes

Classify intake

Selected: triage:review, priority:P2, bug, area:preparation

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

No label changes

Subtraction and simplicity

Subtraction review of PR #678: the accessor half is worth keeping; the tuning-replica half should be deleted rather than polished.

  1. HIGH — delete the tuning_replicas.py propagation. Nothing in the replica path reads the roots: _replica calls prepare(..., compile_forwards=False) and exits at TuningComplete (tuning_replicas.py:159-165), and the only in-tree reader, ForwardCache, is never constructed (aot.py:845-847 is reachable only from aot.py:819). Remove the extra_source_roots parameter (:142), the source_roots(...) bind (:153,158), the capture (:174-176) and the spawn arg (:194); with them goes ≈84 lines of test scaffolding (test_forward_cache_sources.py:163-246) that monkeypatches tuning_replicas._replica itself (:234). Basis: AGENTS.md:165-169 and :188-193 reject changes justified only by hypothetical consumers.
  2. MEDIUM — even on its own terms the bind is decoration: it is bound after _resolve_recipe (tuning_replicas.py:155-158), the only step that could consume an external root. If parity is kept, hoist the existing bind one line; do not add a parameter.
  3. MEDIUM — keep current_source_roots() (source_identity.py:17-19) plus the two call-site swaps (aot.py:847, rank_group.py:297). Six lines, removes #670's private imports, already minimal.
  4. LOW — the docstring edit (source_identity.py:24) describes only the speculative replica context; revert with finding 1.
  5. LOW — pre-existing source_identity(*, extra_roots=()) (source_identity.py:33,48) has no caller passing the keyword; a second unexercised binding path, optional to delete.
  6. LOW — name drift: extra_roots everywhere else (rank_group.py:44-45,60,297) vs extra_source_roots (tuning_replicas.py:142,158,194).

Open: whether triage considers the accessor alone worth landing (duplicate label unresolved); no CI on 90b0d31, so "36 passed" is author-reported; deleting the replica half also removes the only conflict surface with open #695.

Full report · Notes

Correctness and contracts

No blocker on PR #678 (head 90b0d31, +136/−20 in 5 files). The change is small and mechanically correct: _EXTRA_ROOTS is now referenced only inside source_identity.py, both spawn paths capture roots on the parent side and pass them as a pickled argument (rank_group.py:297,309-310; tuning_replicas.py:174-176,194), and the fail-loud missing-root ValueError is preserved (aot.py:848-850). No lock, memory, metric-span, wire/proto or public-API change; main()'s signature is unchanged.

Two Minor findings:

  1. _replica resolves the recipe before binding the roots (tuning_replicas.py:155 vs :158); _resolve_recipe's importlib.import_module at :135 therefore runs with empty roots, so the body's "spawn-boundary parity with rank_group._peer" is overstated. Fix: bind before resolution, or narrow the wording.
  2. The only test of prepare_recipe anywhere is Linux-gated (test_forward_cache_sources.py:210-212); the Windows spawn path plus the ranks is not None and empty-tuning_gpus branches (tuning_replicas.py:170-173) are unexercised.

Informational: replica propagation is defensive only, as the body discloses — compile_forwards=False (:160) plus TuningComplete (:162) means no replica builds a ForwardCache. Residual and pre-existing: multi-host ignition join computes source_identity() unbound (serve.py:546) and rejects mismatched peers (host_ranks.py:270-271) — undeclared in the body, not a regression. Merge order: land these 2 lines before #695, whose _prepare_ranks BindingMismatch has a different root cause and should not be conflated.

Open: is the duplicate label stale after #670 merged; does rebuild_manifest.py:329 record an identity in a spawned child (an undeclared artifact change); and the 36-passed figure remains author-reported with no CI run or post-rebase review.

Full report · Notes

Re-review

Recommendation: Ready To Merge

Rebased onto main (cc0a49d2, which includes merged #670), PR #678 cleanly addresses every Round 1 review item: _EXTRA_ROOTS is now encapsulated behind current_source_roots(), #670's narrow with bind_source_roots(extra_roots): scope in rank_group._peer is untouched, the PR description accurately frames both the on-main failure mode and the defensive nature of tuning_replicas propagation, and the CPU spawn tests assert real ForwardCache.root agreement against an unbound baseline. No correctness, safety, concurrency, or regression issues remain at 90b0d31; merge once the Python CPU tests workflow completes green and triage clears the stale duplicate label.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

Nits

Dropped on verification

Full report Decision to Test: yes (56%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes

Pre Test Report

Hardware Test Plan — PR #678 fix(ignition): expose current_source_roots and propagate source roots to tuning replicas

Head: 90b0d31 · 5 files, +136/−20 (production +18/−8) · fix/spawn-propagate-source-roots → main


1. Bottom line for the test engineer

Book cn5. Do not book cn7. Total ask: one CPU pass plus two short 2-GPU runs (well under one GPU-hour).

The decisive finding is that there is no speedup to measure. Nothing in this PR touches a hot path, and no performance claim is made anywhere in the PR body. More importantly, the bug it is titled after is already fixed on main:

So the entire behavioral delta of this PR is one thing: tuning_replicas._replica gains a required 8th positional argument and binds source_roots around replica preparation (tuning_replicas.py:142,153,158,174-176,190-194). And the PR itself discloses that this is inert today: _replica calls prepare(..., compile_forwards=False) (:160) and exits on TuningComplete (:162-165), and ForwardCache is constructed only under if compile_decoder: in ignition/preparation/capture.py:117-118. I verified no in-tree replica path reaches ForwardCache, source_identity() or current_source_roots().

Consequence: hardware testing cannot demonstrate that this PR fixes anything, because on main nothing is broken in the paths it touches. Hardware testing can only do two useful jobs: (a) confirm the changed _replica signature does not regress a real spawn with real CUDA/CoreStorage, and (b) confirm no regression in TP-peer compiled-forward reuse end-to-end. That is exactly the scope of the plan below — and it is deliberately small.

2. Machine selection

Machine Verdict Why
cn5 (4 × RTX PRO 6000 Blackwell Max-Q, 96 GiB, 48 CPU, 125 GiB RAM) Use it SM120, inside the supported matrix (AGENTS.md:3: SM103/SM120/SM121; the repo's own ForwardCache test stub uses "SM120"). Four GPUs is exactly enough for either spawn path. Homogeneous SKU, so tuning_devices' same-SKU rule is satisfied.
cn7 (1 × GB10, arm64, 10 CPU, 60 GiB) Skip Both spawn loops are gated on world size. prepare_group spawns peers over range(1, len(config.devices)) (rank_group.py:304) — with one GPU that loop is empty. tuning_devices (ignition/cli/preparation.py:84-107) returns tuning_gpus=() unless there are ≥ 2 × world_size GPUs, and replicas = len(tuning_gpus) // world_size with a spawn loop of range(1, replicas) (tuning_replicas.py:177,187) — so no replica process is ever created. cn7 cannot execute a single line of the changed code.

Also not reproducible on this fleet: the author's "4-GPU mixed-SKU (Max-Q + Workstation)" evidence. cn5's product name is literally "RTX PRO 6000 Blackwell Max-Q Workstation Edition" ×4 — one SKU. If mixed-SKU validation matters it needs a different rig; do not pretend cn5 covers it.

3. The plan

Step 0 — CPU spawn gate (0 GPUs, ~2 min, run on cn5)

No CI run exists on 90b0d31; the "36 passed" figure is author-reported. This is the cheapest check in the whole plan and it covers more of the change than any GPU run.

cd /repo && git checkout 90b0d315953e453c8438f0129cc5173d01fcb731
CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest \
  tests/preparation/test_forward_cache_sources.py -q        # the changed tests
CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest \
  tests/preparation tests/cli -q                            # blast radius

Must include (do not accept skips silently — per AGENTS.md:306, report a skip as an unrun check):

Why this is not redundant with GPU work: these are the only tests that assert the invariant the PR exists to protect — equal ForwardCache.root across a spawn boundary — and they assert it directly. The GPU runs below cannot assert it cheaply, because no in-tree recipe reads the roots in a replica.

Also confirm the private-symbol claim holds: git grep _EXTRA_ROOTS must show hits only in ignition/preparation/source_identity.py.

Step 1 — TP=2 peer spawn with a real external-recipe CLI (2 GPUs, ~15 min, cn5)

Purpose: end-to-end confirmation that two spawned peers build an identical ForwardCache root with real CUDA/Inductor, i.e. that the accessor swap in aot.py:845-847 did not disturb the copy already merged via #670. Expected to pass on both the PR head and main — this is a no-regression run, not a fix demonstration.

Pre-flight (5 min, no GPU): this bug is only reachable through an external recipe CLI calling ignition.cli.main(..., source_roots=...) (ignition/cli/__init__.py:364-372); core ignition has no in-tree recipes (pyproject.toml does not depend on hyperflare_recipes; AGENTS.md:382-387). So:

  1. Install the external recipe package into the venv and confirm python -c "import hyperflare_recipes" works — mp.get_context("spawn") re-imports the recipe module in the child, so a package visible only through source_roots paths will fail before any GPU work.
  2. rg "_replica|_peer" <recipe-package> — if the external package calls tuning_replicas._replica positionally with 7 args, the new required 8th parameter breaks it with a TypeError. This is the single realistic backward-compat risk in the diff; resolve it on paper, not on GPU.

Run (a minimal driver script is required, since core ignition binds ()):

# external-recipe entrypoint, ~20 lines
from ignition.cli import main
from hyperflare_recipes.recipes import RECIPES            # the real package tuples
raise SystemExit(main(["export", "<model>", "--gpus", "0,1",
                       "--compile-workers", "12"],
                      recipes=RECIPES, prog="hyperflare",
                      source_roots=(("hyperflare_recipes", RECIPE_DIR),)))
export CUDA_VISIBLE_DEVICES=0,1
mkdir -p /scratch/flare/kernels        # cn5 gives only 16 GiB scratch; keep ~/.cache/flare off it
ls /scratch/flare/kernels/forwards 2>/dev/null | wc -l > /tmp/before
bash repro.sh (not opened) 2>&1 | tee /tmp/run1.log
ls /scratch/flare/kernels/forwards | wc -l > /tmp/after

Pass criteria (all boolean, no benchmarking):

  1. Both ranks complete; no FileNotFoundError resolving rank 0's cache-relative paths under a rootless self.root (aot.py:1239), and no "bound source root ... does not exist" (aot.py:848-850).
  2. Exactly one new forwards/<hash> directory appears — a second directory means the ranks hashed different roots. This is the single cheapest, most direct hardware assertion of the property; a divergent root forks the cache.
  3. Repeat the export once against the warm cache: the second launch restores (bound.cache_hit, aot.py:1243) rather than recompiling, and adds no new forwards/<hash> directory.

Step 2 — tuning-replica spawn with the changed signature (2 GPUs, ~20 min, cn5)

Purpose: the only genuinely new code. Confirm the required extra_source_roots argument survives real spawn pickling and that with source_roots(...), CoreStorage(...) around prepare(...) (tuning_replicas.py:158) runs against real CUDA and real CoreStorage — which the CPU test stubs out (test_forward_cache_sources.py:199-207).

Pick the cheapest valid layout: world_size=1, two tuning GPUs. tuning_devices (ignition/cli/preparation.py:94,107) requires the tuning list to start with the serving GPUs and be a whole number of replicas; --gpus 0 --tuning-gpus 0,1 gives replicas=2, so exactly one _replica process spawns (tuning_replicas.py:187). That is all the coverage the change needs.

export CUDA_VISIBLE_DEVICES=0,1
bash repro.sh (not opened) --gpus 0 --tuning-gpus 0,1 2>&1 | tee /tmp/run2.log

Pass criteria:

  1. Exactly one flare-tuning-1 child reaches TuningComplete; parent reports no "tuning replica ... exited with" (tuning_replicas.py:200-202) and no "a tuning replica continued beyond kernel preparation" (:165).
  2. --verbose shows the replica's ForwardCache.root, when it builds one, equal to rank 0's — or, today, simply that the replica prepared without the root-binding path raising.
  3. Child exits 0 under the same source_roots binding; if you can, add a one-line debug print of current_source_roots() in the replica entry and confirm it is non-empty (this is the propagation actually crossing spawn, on real hardware).

If a 4-GPU run is preferred instead, use --gpus 0,1 --tuning-gpus 0,1,2,3 (replicas=2, still one child) — it adds TP=2 + replicas in one shot but costs 4 GPUs for no additional code coverage. Treat this as optional, not the default.

Step 3 — do not run

4. Measurement guidance

There is no speedup claim to validate, so do not build a benchmark. The one quantity worth recording is the cache-fork count from Step 1 (forwards/<hash> directories created per launch), because it is the only directly observable hardware consequence of the property under test — divergent roots fork the cache and silently recompile. Record it as a raw number with the command that produced it (AGENTS.md:512-513); do not produce an audit bundle.

5. Cost and risks

6. What the testing will and will not establish

Will establish: the changed _replica signature works under real spawn with real CUDA and CoreStorage; TP=2 peers still agree on the compiled-forward cache after the accessor swap; no observable regression in the two spawn paths.

Will not establish: that this PR fixes the stated bug — #670 already merged that fix, and the replica-side propagation is inert by the PR's own disclosure. If the team's goal is to validate a fix, the honest answer is that there is nothing left for hardware to fix-verify here, and the merge decision should rest on the CPU tests (90b0d31 has no CI run), the code-encapsulation value, and the ownership/merge-order question against #670 — not on a GPU run.

Recommendation: run Step 0 unconditionally (it is free and its absence is the PR's biggest open gap); run Steps 1–2 only if maintainers want positive evidence for the external-recipe TP and tuning-replica paths before merge. If GPU time is scarce, Step 0 plus Step 2 is the highest-value subset — Step 2 is the only run that touches new behavior.

Full report · Notes

Discord Test Request

Discord post (ready to paste)

Recommendation: Test

Medium-high confidence — the CPU pass is high-value and must be run; the two GPU runs are no-regression checks, not fix verification.

Hardware Required

Justification

Estimated Time to Complete

~40 minutes of GPU time total (2 min CPU gate + ~15 min TP=2 spawn + ~20 min tuning-replica spawn), plus ~10 min pre-flight — well under 1 GPU-hour.


What I verified myself against the PR head 90b0d31

The diff (5 files, +136/−20) matches the report's description exactly.

Leads from the orientation packet

Gaps I did not close (be aware before posting)

Bottom line: the pre-test report's conclusion survives the checks I could make, so the post above keeps its "Test, but small" recommendation and drops the mixed-SKU, 4-GPU, benchmark and cn7 variants, as the report itself argued.

Full report Human Approval: Do you approve this test? → No answer in time.

Discord post (ready to paste)

Recommendation: Test

Medium-high confidence — the CPU pass is high-value and must be run; the two GPU runs are no-regression checks, not fix verification.

Hardware Required

  • cn5 (4× RTX PRO 6000 Blackwell Max-Q, SM120) — one CPU-only pass, then two short 2-GPU runs
  • Nothing else needed; cn7 cannot run any of this (1 GPU ⇒ both spawn loops are empty)
  • Optional 4-GPU layout only if maintainers want TP=2 + replicas in one shot

Justification

  • There is no speedup to measure — the bug PR #678 is titled after is already fixed on main by merged #670, so GPU runs can only prove "no regression"
  • The one genuinely new behavior is the tuning-replica spawn (_replica now takes a required 8th arg + binds source_roots), and that needs real spawn + CUDA + CoreStorage, which the CPU test stubs out

Estimated Time to Complete

~40 minutes of GPU time total (2 min CPU gate + ~15 min TP=2 spawn + ~20 min tuning-replica spawn), plus ~10 min pre-flight — well under 1 GPU-hour.


What I verified myself against the PR head 90b0d31

The diff (5 files, +136/−20) matches the report's description exactly.

  • ignition/preparation/source_identity.py:17-19 — three-line public accessor current_source_roots() returning _EXTRA_ROOTS.get(), plus a docstring update on source_roots (:22). Behavior-neutral.
  • ignition/preparation/aot.py:845-847 — _EXTRA_ROOTS.get() → current_source_roots(). The key-hashing loop is at :837-844 (rglobs ignition + flashinfer) and the extra-roots fold-in at :847-855, with the bound source root ... does not exist error at :848-850; cache dir is root/'forwards'/key.hexdigest() (:855). This confirms the report's cheapest hardware assertion — one new forwards/<hash> dir means the ranks hashed the same roots.
  • ignition/preparation/rank_group.py:295-297 — same accessor swap; _peer(..., extra_roots=()) at :44-45 and #670's narrow with bind_source_roots(extra_roots): block at :60 are present at head, and :309-310 passes extra_roots into the spawn args. So the report's claim "already fixed on main, this PR is a refactor on that path" holds at the code level.
  • ignition/preparation/rank_group.py:304 — for rank in range(1, len(config.devices)): with one device the peer spawn loop is empty. Confirms cn7 (1× GB10) cannot execute the changed code.
  • ignition/preparation/tuning_replicas.py:142 — _replica(..., options, extra_source_roots), a new required 8th positional; :158 binds with source_roots(extra_source_roots), CoreStorage(world=plan.world_size) as storage:; :174-176 captures in prepare_recipe; :190-194 passes it to the spawned worker.
  • Same file :160-165 — prepare(..., compile_forwards=False) and except TuningComplete / else: raise RuntimeError("a tuning replica continued beyond kernel preparation"); :177 replicas = len(tuning_gpus) // plan.world_size and :187 for replica in range(1, replicas). Both the "inert today" claim and the "no replica child with one GPU / needs ≥2 tuning GPUs" claim check out.
  • #695 non-overlap claim checks out: #678's edits sit in _replica/prepare_recipe (lines 142-194) while authorization() (:32-62) and ReplicaPreparation (:65-125) are untouched.

Leads from the orientation packet

  • #670 (merged 2acc3f3a, in cc0a49d2) — followed. Its _peer(extra_roots=()) + narrow bind_source_roots block survive at the PR head, which is exactly why the report calls the PR's peer-path delta behavior-neutral. This is the load-bearing factual claim of the whole recommendation and it holds.
  • #597 (open, key compiled-forward sharing by GPU name) — followed, and correctly flagged as not on main; #678's description cites its cache-root mismatch error, which is why the mixed-SKU failure mode cannot be reproduced on our fleet. Good as a "will not establish" caveat.
  • #664 (open, helios/heliopause BF16) — noted as overlap on rank_group.py; not relevant to hardware scope, only to merge order.
  • #668 (open, ForwardCache hardening / test_forward_cache_sources.py) — noted as overlap on the test file; relevant to CPU-test conflicts, not to GPU booking.
  • #695 (open, share local tuning across TP ranks) — followed; edits authorization()/ReplicaPreparation in the same file, disjoint from #678's lines 142-194. If both land, the tuning-replica GPU run should be re-checked, but no change to the plan.
  • Autobot review status — Round 2 says Ready To Merge, 0 blockers, with the only open item being "no CI run recorded on 90b0d31", which is precisely why the report's Step 0 (CPU pass) is the unconditional must-run.
  • Stale duplicate label — still on the PR; worth a maintainer ping, unrelated to testing.

Gaps I did not close (be aware before posting)

  • I did not independently check the cn5/cn7 hardware specs (GPU SKUs, 16 GiB scratch) or AGENTS.md:3 (not opened)'s SM103/SM120/SM121 matrix — those numbers come from the pre-test report only.
  • I did not verify ignition/cli/preparation.py:84-107 (not opened) (tuning_devices same-SKU rule and the ≥ 2 × world_size GPUs gate), ignition/preparation/capture.py:117-118 (not opened) (ForwardCache only under compile_decoder), or that pyproject.toml (not opened) omits hyperflare_recipes; so the "inert today" argument rests on the report plus the compile_forwards=False / TuningComplete code I did read.
  • I did not run any test or command (none available in this environment), so the "36 passed" figure remains author-reported, as the report already says.
  • I saved no scratchpad notes: this was my final turn and only finish was available.

Bottom line: the pre-test report's conclusion survives the checks I could make, so the post above keeps its "Test, but small" recommendation and drops the mixed-SKU, 4-GPU, benchmark and cn7 variants, as the report itself argued.