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:
- Add
current_source_roots()toignition/preparation/source_identity.py(17-19) returning the active_EXTRA_ROOTSbinding. rank_group.prepare_groupcaptures the roots and passes them as a trailing arg to spawned_peer, which wraps its whole body inwith source_roots(...)(rank_group.py:44-59, 295-311).tuning_replicas.prepare_recipedoes the same for spawned_replica, binding aroundCoreStorage+prepare(...)(tuning_replicas.py:142-194).- Three new tests in
tests/preparation/test_forward_cache_sources.py, two of them realspawn(Linux-only), one stubbing CUDA/CoreStorage. - Claims default
extra_source_roots=()keeps direct callers and coreignitionlaunches byte-identical. Touches: ignition/preparation/rank_group.py— TP peer spawn path (the hunk #670 already contains).ignition/preparation/tuning_replicas.py— local tuning replica spawn path.ignition/preparation/source_identity.py/aot.pyconsumers — the digest and forward-cache key that both ranks must agree on. Related items:- #670 parameterize THINK_TAGS … and propagate peer source roots (open): contains the identical
rank_group.pyfix; merge-order conflict, neither PR cites the other. - #597 Key compiled forward sharing and Inductor validation by GPU name (open, same author): adds the
_prepare_rankscache-root check #678's description names; likely source of its reported symptom and its SM120 evidence rig. - #668 Scale Ignition preparation memory budgets… (open): edits
aot.pyForwardCachekey and the same test file; no overlap on source roots. - #675 fix(ignition): forward recipe b12x_environment to multi-host peer ranks (open): multi-host analogue of this bug, which #678 leaves unfixed.
- #667 Harden Orbit payload integrity, multi-deployment TP seams… (merged): recent multi-host peer-export work this builds on.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/678
Autobot comments: The description's failure mode — a "cache-root agreement check in
ForwardCache._prepare_ranks" — does not exist onmain; that check is added by the author's other open PR #597, so the evidence most likely comes from a stack including unmerged work. A priority contributor's open #670 already ships the samerank_group.pyfix (and its review asked for exactly the test #678 adds and suggested splitting this hunk out), with no cross-reference in either direction. The fix is local-spawn only: the multi-hostignition joinpath (serve.py:546,host_ranks.py:270-271, :629-657) still binds no roots, so cross-host exports from external recipe CLIs remain broken. Undeclared details:_replicaimports the recipe (_resolve_recipe, tuning_replicas.py:155) before the roots are bound; the new tests assert ContextVar visibility, not equalForwardCache.root/source_identity(); peer-written rebuild metadata (rebuild_manifest.py:327) now carries rank 0's identity. No issue reports the bug, no human review, no reactions, and no CI checks on heade72ec0d; the 35-passed and SM120 end-to-end results are author-reported only. Charter fit is clean (root-cause fix in shared code, no flags/plugins, documented external-recipe entrypoint), though no docs were updated andsource_roots's docstring still says "for the duration of a CLI invocation".
Classify intake
Selected: triage:review, priority:P2, bug, duplicate, area:preparation
Threshold: 65%
Triage
- [✓]
triage:review: 99.2% -
triage:design-review: 0.5% -
triage:validation: 0.1% -
triage:partial: 0.1% -
triage:integration: 0.0% -
triage:investigate: 0.0% -
none: 0.0% -
triage:superseded: 0.0% -
triage:verify-for-closure: 0.0%
Priority
- [✓]
priority:P2: 66.4% -
none: 31.4% -
priority:P1: 2.3%
Type
- [✓]
bug: 77.7% - [✓]
duplicate: 70.6% -
community: 34.9% -
performance: 34.9% -
enhancement: 2.0% -
documentation: 0.0%
Area
- [✓]
area:preparation: 94.7% -
area:caching: 10.7% -
area:api: 3.7% -
area:memory: 1.4% -
area:orbit: 0.9% -
area:selene: 0.6% -
area:rocenante: 0.5% -
area:packaging: 0.4% -
area:engram: 0.3% -
area:kernels: 0.2% -
area:scheduling: 0.2%
Model
-
model:deepseek-v4.1: 1.6% -
model:deepseek-v4: 0.6% -
model:inkling-small: 0.6% -
model:muse-glimmer: 0.5% -
model:kimi-k3.1: 0.2% -
model:nemotron-3.5-bolt: 0.2% -
model:qwen3.8-27b: 0.2% -
model:qwen3.8-flash-next: 0.1% -
model:mimo-v2.6: 0.1% -
model:glm-5.3: 0.1% -
model:gemma4: 0.0%
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.
-
Magic default (high).
extra_source_roots=()inrank_group.py:44-45andtuning_replicas.py:142defaults 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=(); onlytests/preparation/test_native_processes.py:228-229needs updating. -
85 lines of re-indentation for a 3-line change (high).
rank_group.py:59wraps the whole_peerbody; onlyprepare(...)reads the ContextVar (aot.py:845-848,source_identity.py:48). Bind around the twopreparecalls only → diff falls from +91/−85 to ~6 lines. -
Leftover private read (low).
aot.py:845-848still doesfrom .source_identity import _EXTRA_ROOTS/_EXTRA_ROOTS.get(); it should use the newcurrent_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?
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:
- Major — the failure mode in the body does not exist on
main:ForwardCache._prepare_rankshas no cache-root agreement check (only a forward-catalog check,aot.py:1043-1046); theRuntimeErrorcomes from the author's unmerged #597, uncited. Root is set unguarded ataot.py:854-855. - Major — the
tuning_replicas.pyhunk is inert: replicas prepare withcompile_forwards=False(tuning_replicas.py:160), so noForwardCache(capture.py:117-118) and no_EXTRA_ROOTSconsumer (aot.py:845-851,source_identity.py:48,rebuild_manifest.py:327) is ever reached. The "identical digests for replicas" claim is vacuous. - Major — multi-host is not just untouched, it is short-circuited before the capture:
rank_group.py:288-290returns beforecurrent_source_roots()at:298;ignition joinstill hashes rootless (serve.py:546) and admission rejects it (host_ranks.py:269-271). Scope is undeclared. - Major (tests) — the new tests assert
ContextVarvisibility only (test_forward_cache_sources.py:83-90, 106-110, 186-188), neverForwardCache.rootorsource_identity()equality, so they would pass with the bug intact. - Minor — replica binding occurs after
_resolve_recipe(tuning_replicas.py:155vs:158), andcurrent_recipes(), bound together with the roots in the parent (cli/__init__.py:370), is not propagated. - 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). - 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.
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
- Scoped strictly to external-recipe local spawns: Plain in-tree
ignitioninvocations bind()and retain identicalForwardCachekeys and behavior; external-recipe launches gain consistent_EXTRA_ROOTSpropagation acrossrank_group._peerandtuning_replicas._replicawith picklabletuple[tuple[str, Path], ...]payloads and no new locks, threads, or runtime/ABI changes. - Unnecessary conflict surface in
rank_group.py: Wrapping the entire ~85-line_peerbody (ignition/preparation/rank_group.py:59-143) instead of just the preparation block (:60-74) collides directly with open PR #670 (which already wraps:60-74) and #664, and keeps preparation roots bound throughserve_rank/serve_peer. - No CI run recorded on head
e72ec0d:.github/workflows/python-cpu.yml(not opened) (:30-33) covers these tests underCUDA_VISIBLE_DEVICES="", but no check run exists one72ec0dyet.
Walkthrough
ignition/preparation/source_identity.py:17-19: Addscurrent_source_roots() -> tuple[tuple[str, Path], ...]returning_EXTRA_ROOTS.get().ignition/preparation/rank_group.py:44-45,53,59-143,295-312: Capturesextra_source_roots = current_source_roots()inprepare_group, passes it as the trailingextra_source_roots=()argument to spawned_peerprocesses, and wraps_peer's body inwith source_roots(extra_source_roots):.ignition/preparation/tuning_replicas.py:142,145,158-165,174-176,190-194: Capturesextra_source_roots = current_source_roots()inprepare_recipe, passes it as the trailingextra_source_roots=()argument to spawned_replicaworkers, and enterswith source_roots(extra_source_roots), CoreStorage(...) as storage:before callingprepare(...).tests/preparation/test_forward_cache_sources.py:71-189: Adds three CPU tests coveringcurrent_source_roots()nesting/reset, real-spawnpropagation throughrank_group.prepare_groupover loopback Gloo, and real-spawnpropagation throughtuning_replicas.prepare_recipe(with CUDA/CoreStorage stubbed in the child).
Pre-merge Checks
- [PASS] Security / malicious screen: No unsafe deserialization, prompt injection, shell execution, or credential handling across the 4 changed files; only a
tuple[tuple[str, Path], ...]is passed tomp.get_context("spawn"). - [WARN] Charter & value fit: Right layer, root-cause fix, and minimal runtime footprint without flags or
hyperflare_recipesimports; however, PR prose violatesdocs/design-review.mdPrinciple 16 by citing an unmerged #597 check as themainsymptom and omitting #597/#670 context. - [WARN] Related / duplicate / conflict check: Directly duplicates the
rank_group.pyfix already open in priority contributor@lukealonso's PR #670 (pr/670ignition/preparation/rank_group.py:44-74,295-311, whose review suggested splitting this fix out with a CPU test); also overlaps #664 (rank_group.py) and #668 (tests/preparation/test_forward_cache_sources.py). Coordinate ownership and merge order with #670. - [WARN] Tests & verification evidence: No CI checks have run on
e72ec0d; the peer spawn test checkscurrent_source_roots()rather thanForwardCache.root/source_identity()equality; SM120 2-GPU/4-GPU mixed-SKU runs are author-reported only and depend on unmerged #597.
Blockers
None.
Should Fix
-
Align the PR description with
mainand cross-reference #670 and #597 (docs/design-review.md:147-162Principle 16)- Verified behavior:
ForwardCache._prepare_ranksonmain(ignition/preparation/aot.py:1023-1295) has no cache-root agreement check (only forward-catalog key agreement at:1043-1046and Inductor kernel inventory checks). Onmain, root divergence causes spawned peers to resolve rank 0's cache-relativepathsunder their own rootlessself.root(aot.py:845-855,1214,1239), failing withFileNotFoundErroror silent cache misses. The same-SKU cache-root agreement check ("ranks with GPU ... resolved incompatible forward cache roots") comes from unmerged PR #597 (pr/597ignition/preparation/aot.py:1054,1068), which also matches the reported 4-GPU mixed-SKU (Max-Q + Workstation) validation rig. In addition,tuning_replicas._replicainvokesprepare(..., compile_forwards=False, ...)(ignition/preparation/tuning_replicas.py:160) and exits onTuningComplete, so no in-tree code path in_replicacurrently instantiatesForwardCache(ignition/preparation/capture.py:117-118,ignition/preparation/bootstrap.py:127-128(not opened)) or callssource_identity()(ignition/preparation/tuning.pyhas no references). - Fix: Update the PR description to (a) describe the real
mainfailure mode (FileNotFoundError/cache miss on divergentself.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 therank_group.pyhunk), and (c) describe thetuning_replicas.pypropagation accurately as defensive spawn-boundary parity rather than claiming replicas computeForwardCacheroots today.
- Verified behavior:
-
Assert actual
ForwardCache.rootand/orsource_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_peerwrites(external / "recipe.py (not opened)").write_text("recipe = 1\n")at:98(never read or hashed) and only asserts thatcurrent_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 thancurrent_source_roots(), so the claimed invariant (rank 0 and spawned peers compute identicalForwardCacheroots andsource_identitydigests) is only verified indirectly. - Fix: Inside
_record_peer_source_roots(:83-90), also computeaot.ForwardCache(namespace={"model": "example"}, device="cuda:0").root.name(using a localpytest.MonkeyPatch.context()onaot.torch.cuda.get_device_propertiesas at:44-45) andsource_identity(), and assert that rank 0 and rank 1 produce identical digests that differ from the unbound baseline.
- Location:
Subtract / Simplify
-
Narrow
with source_roots(extra_source_roots):in_peerto theprepare(...)block- Location:
ignition/preparation/rank_group.py:59-143. - Why: Wrapping the entire
_peerfunction 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 throughserve_rank(:122) andserve_peer(:126,130). Nothing in_peerafterprepare(...)(:60-74) reads_EXTRA_ROOTSor callssource_identity(). - Fix: Wrap only lines
:60-74(around theif exporting: ... else: model = prepare(...)block, matchingpr/670ignition/preparation/rank_group.py:60-74andignition/preparation/tuning_replicas.py:158).
- Location:
-
Consider removing the
=()default on private spawn targets_peerand_replica- Location:
ignition/preparation/rank_group.py:44-45,ignition/preparation/tuning_replicas.py:142. - Why: Both functions are module-private
multiprocessingtargets whose other 10 / 7 positional parameters are all required, and each has exactly one production caller (both now passingextra_source_roots). Dropping=()makes omission aTypeErrorrather than silently reintroducing empty roots, requiring only a 1-line update totests/preparation/test_native_processes.py:228-229.
- Location:
Nits
ignition/preparation/aot.py:845-847: Switchfrom .source_identity import _EXTRA_ROOTS/_EXTRA_ROOTS.get()to the newly introducedcurrent_source_roots()so_EXTRA_ROOTSstays private tosource_identity.py.ignition/preparation/source_identity.py:24: Updatesource_roots' docstring ("for the duration of a CLI invocation") to reflect that spawned rank/replica contexts also use it.tests/preparation/test_forward_cache_sources.py:162: Remove the unused(external / "recipe.py (not opened)").write_text("recipe = 1\n")intest_prepare_recipe_propagates_source_roots_to_spawned_tuning_replicaunless the replica callback hashesexternalviasource_identity().- Ensure
.github/workflows/python-cpu.yml(not opened) runs and passes on the updated head commit.
Dropped on verification
- Upstream claim (Correctness F3 / Dossier #3 / Value Prop #5): "Multi-host
ignition joinis still broken/unbounded and short-circuited byrank_group.py:288-290." Dropped as false.join(ignition/cli/__init__.py:153,ignition/cli/serve.py:528-553) runs insideignition.cli.main(..., source_roots=...)(ignition/cli/__init__.py:364-372), and bothHostRendezvous.prepare(ignition/preparation/host_ranks.py:300-385) andserve_peer(host_ranks.py:629-657) run in-process withoutmp.spawn. An external recipe CLI invokingjointherefore already has_EXTRA_ROOTSbound forsource_identity()(serve.py:546) andprepare(...)(host_ranks.py:654-657), and rank 0 must not forward its own local filesystem paths across hosts (host_ranks.py:270-271). - Upstream claim (Correctness F4 / Dossier #4 / Value Prop #3): "Bind
source_rootsbefore_resolve_recipeintuning_replicas._replica(:155vs:158) and propagatecurrent_recipes()." Dropped as false.source_roots(...)(ignition/preparation/source_identity.py:22-30) only sets_EXTRA_ROOTSfor hashing and does not altersys.pathor recipe imports;_resolve_recipe(ignition/preparation/tuning_replicas.py:128-139) resolves external recipes viaimportlib.import_module(prepare.__module__)and neither_resolve_recipenorPlan.__post_init__(ignition/planning.py:171-215) reads_EXTRA_ROOTS. Propagatingcurrent_recipes()acrossspawnis also deliberately avoided becauseRecipeinstances contain unpicklable lambdas (hencetuning_replicas.py:183stripsrecipebefore pickling). - Upstream claim (Correctness F7 / Dossier #4 / Value Prop #5): "Undeclared artifact change in peer-written
rebuild_manifest(rebuild_manifest.py:327)." Dropped as false.rebuild_manifest.from_plan(ignition/preparation/rebuild_manifest.py:286-335, callingsource_identity()at:327) is only called on rank 0 (ignition/cli/serve.py:237,338). Peerexport_model(ignition/preparation/runtime_core.py:350,432-434) only invokesrebuild_weights_metadataandweight_payload_request(rebuild_manifest.py:418-460), neither of which callssource_identity(). - Upstream claim (Correctness F2): Demand to delete the
tuning_replicas.pyhunk because it has no current in-tree consumer. Softened: verified that_replicapassescompile_forwards=Falseand reaches no in-treeForwardCache/source_identity()call today, but the ~8-line spawn-boundary parity is harmless and chains cleanly for TP>1 tuning replicas; only the overstated PR claim requires fixing (moved into Should Fix #1). - Upstream claim (Subtraction #1): Framing
extra_source_roots=()as a charter "magic default" violation. Dropped the charter-violation framing as overstated (source_roots(),source_identity(), andcli.main()all default to()); retained the simpler required-argument suggestion underSubtract / Simplify. - Upstream claim (Correctness F6): Flagging
world_size ×disk reads of external*.pyfiles inForwardCache.__init__. Dropped as low-signal:aot.py:837-844already readsignition/andflashinfer/*.pytrees on every rank, and reading a small external recipe tree from OS page cache adds negligible overhead.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 99.8% -
triage:design-review: 0.1% -
triage:validation: 0.1% -
triage:integration: 0.0% -
triage:investigate: 0.0% -
none: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
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:
- Add
current_source_roots()toignition/preparation/source_identity.py:17-19, keeping_EXTRA_ROOTSprivate to that module. - Switch
aot.py:845-847andrank_group.py:295-297from the private_EXTRA_ROOTSto the new accessor. - Capture the roots in
prepare_recipe(tuning_replicas.py:174-176) and pass them as a required positional argument to_replica(:142), binding them at:158. - Leave #670's narrow
with bind_source_roots(...)block inrank_group._peer(:60) untouched. - Add three CPU tests, including real-
spawnpeer and replica tests that now assert equalForwardCache.rootagainst an unbound baseline (test_forward_cache_sources.py:109,120-123,216,242-245). Touches: ignition/preparation/tuning_replicas.py— new required_replicaargument; conflicts with open #695.ignition/preparation/source_identity.py— new public accessor.tests/preparation/test_forward_cache_sources.py— +118/−12, rewritten assertions. Related items:- #670 feat(helios,ignition): parameterize THINK_TAGS reasoning... (merged): merged 2026-12-02 14:16; #678 is now a follow-on that replaces its private
_EXTRA_ROOTSimport and adds the replica path. - #597 Key compiled forward sharing and Inductor validation by GPU name (open): same author; adds the same-SKU cache-root check the description now conditions on.
- #695 Share local tuning across TP ranks in tuning replicas (open): rewrites the same
_replicaspawn region; reports a different-cause_prepare_ranksBindingMismatch. - #668 fix(ignition): reconcile divergent multi-host selections (open): overlaps the shared test file and ForwardCache keying.
- #664 helios,heliopause,ignition: single-plane BF16... (open): also edits
rank_group.py. Link: https://github.com/NVIDIA/hyperflare-inference/pull/678 Autobot comments: The post-rebase head fixes everything my earlier review flagged: the description now correctly names themainfailure mode (FileNotFoundError/cache misses) instead of citing unmerged #597's check, discloses that tuning replicas never reach an in-treeForwardCachetoday, and the tests now assert real cache-root equality. Scale is now honest (+136/−20; no_peerre-indentation). Remaining: the multi-hostignition joinpath (serve.py:546) still binds no roots and is not declared out of scope;_replicaimports the recipe (tuning_replicas.py:155) before binding at:158; peer-written rebuild metadata (rebuild_manifest.py:329) now carries rank 0's identity, undeclared. Repo triage still labels the PRduplicateeven though #670 has merged. No CI run on90b0d31; the 36-passed figure is author-reported and no re-review was posted despite a request.
Classify intake
Selected: triage:review, priority:P2, bug, area:preparation
Threshold: 65%
Triage
- [✓]
triage:review: 97.0% -
triage:validation: 1.1% -
triage:design-review: 0.8% -
triage:superseded: 0.4% -
triage:partial: 0.3% -
triage:investigate: 0.2% -
none: 0.1% -
triage:integration: 0.1% -
triage:verify-for-closure: 0.1%
Priority
- [✓]
priority:P2: 97.1% -
none: 1.8% -
priority:P1: 1.1%
Type
- [✓]
bug: 79.8% -
duplicate: 43.8% -
enhancement: 34.9% -
performance: 32.1% -
community: 16.5% -
documentation: 0.0%
Area
- [✓]
area:preparation: 99.0% -
area:api: 1.2% -
area:caching: 1.2% -
area:orbit: 0.6% -
area:memory: 0.2% -
area:kernels: 0.2% -
area:selene: 0.1% -
area:packaging: 0.1% -
area:rocenante: 0.1% -
area:scheduling: 0.0% -
area:engram: 0.0%
Model
-
model:mimo-v2.6: 0.5% -
model:deepseek-v4.1: 0.4% -
model:inkling-small: 0.4% -
model:glm-5.3: 0.3% -
model:muse-glimmer: 0.2% -
model:qwen3.8-27b: 0.2% -
model:kimi-k3.1: 0.2% -
model:gemma4: 0.1% -
model:nemotron-3.5-bolt: 0.1% -
model:qwen3.8-flash-next: 0.0% -
model:deepseek-v4: 0.0%
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.
- HIGH — delete the
tuning_replicas.pypropagation. Nothing in the replica path reads the roots:_replicacallsprepare(..., compile_forwards=False)and exits atTuningComplete(tuning_replicas.py:159-165), and the only in-tree reader,ForwardCache, is never constructed (aot.py:845-847is reachable only fromaot.py:819). Remove theextra_source_rootsparameter (:142), thesource_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 monkeypatchestuning_replicas._replicaitself (:234). Basis: AGENTS.md:165-169 and :188-193 reject changes justified only by hypothetical consumers. - 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. - 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. - LOW — the docstring edit (
source_identity.py:24) describes only the speculative replica context; revert with finding 1. - 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. - LOW — name drift:
extra_rootseverywhere else (rank_group.py:44-45,60,297) vsextra_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.
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:
_replicaresolves the recipe before binding the roots (tuning_replicas.py:155 vs :158);_resolve_recipe'simportlib.import_moduleat :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.- The only test of
prepare_recipeanywhere is Linux-gated (test_forward_cache_sources.py:210-212); the Windows spawn path plus theranks is not Noneand empty-tuning_gpusbranches (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.
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
- Minimal, preparation-only footprint: Only +136/−20 lines across 5 files (production code is +18/−8), with no runtime/Helios/ABI/core-format changes and zero hot-path overhead; plain in-tree
ignitionruns continue to bind(). - Clean spawn-boundary dataflow: Both
rank_group.prepare_groupandtuning_replicas.prepare_recipecapturecurrent_source_roots()(an immutable, picklabletuple[tuple[str, Path], ...]) in the parent and rebind via the existingContextVartoken-reset context manager in the spawned child, introducing no new locks, threads, or failure-propagation changes. - Disjoint from concurrent PR #695: Although open PR #695 also edits
ignition/preparation/tuning_replicas.py, it modifiesauthorization()andReplicaPreparation(lines32-125), leaving #678's edits in_replicaandprepare_recipe(lines142-194) non-overlapping.
Walkthrough
ignition/preparation/source_identity.py:17-24: Adds publiccurrent_source_roots() -> tuple[tuple[str, Path], ...]returning_EXTRA_ROOTS.get()(mirroringignition/registry.py'scurrent_recipes()/current_prog()pattern) and updatessource_roots's docstring for active CLI and spawned worker contexts.ignition/preparation/aot.py:845-847andignition/preparation/rank_group.py:295-297: Replaces direct private_EXTRA_ROOTSimports withcurrent_source_roots(), leaving_EXTRA_ROOTSreferenced solely insideignition/preparation/source_identity.pyand preserving #670's narrowwith bind_source_roots(extra_roots):block inrank_group._peer.ignition/preparation/tuning_replicas.py:142,153,158,174-176,190-194: Capturesextra_source_roots = current_source_roots()inprepare_recipe, passes it as a required positional argument to_replica, and bindswith source_roots(extra_source_roots), CoreStorage(world=plan.world_size) as storage:around replicaprepare(...).tests/preparation/test_forward_cache_sources.py:35-48,151-245: Extracts_stub_forward_cache_root()usingpytest.MonkeyPatch.context(), migrates_record_source_roots_preparetocurrent_source_roots(), addstest_current_source_roots_reflects_active_scopecovering nesting/reset, and adds Linux/Heliopause-gatedtest_prepare_recipe_propagates_source_roots_to_spawned_tuning_replicaverifying real-spawnpropagation andForwardCache.rootagreement against the unbound baseline.
Pre-merge Checks
- [PASS] Security / malicious screen: No unsafe deserialization, command execution, credential exposure, or prompt-injection content; only picklable
(str, Path)tuples crossmp.get_context("spawn"). - [PASS] Charter & value fit: Right layer, clean encapsulation matching
ignition/registry.py, no flags or model/recipe coupling, and complete four-part PR description with honest disclosure of defensive scope and CPU-test limitations (AGENTS.md:72-154,docs/design-review.mdPrinciples 16–17). - [PASS] Related / duplicate / conflict check: Properly rebased onto merged #670 (
cc0a49d2); edits intuning_replicas.py:142-194do not overlap PR #695'sauthorization()/ReplicaPreparationchanges. The existingduplicatetriage label is now stale and can be removed. - [WARN] Tests & verification evidence: Author reports 36/36 CPU tests passing across 7 suites (with CUDA/CoreStorage stubbed inside the spawned replica test), but no GitHub Actions CI run is recorded on head
90b0d31yet—confirm.github/workflows/python-cpu.yml(not opened) passes before merging.
Blockers
None.
Should Fix
None.
Subtract / Simplify
- Optional scope trim (
ignition/preparation/tuning_replicas.py:142,153,158,174-176,194andtests/preparation/test_forward_cache_sources.py:163-245): Because_replicainvokesprepare(..., compile_forwards=False)and exits onTuningComplete(ignition/preparation/tuning.py:618-624,tuning_replicas.py:159-165), no in-tree caller readscurrent_source_roots(),ForwardCache, orsource_identity()on the tuning-replica path today (as the PR description transparently notes). The production addition is only +8/−3 lines and harmless as defensive parity for external recipes, so keeping it is fine; however, if maintainers prefer strictly zero speculative plumbing perAGENTS.md:165-169,188-193, dropping thetuning_replicas.pypropagation and its 84-line spawn test trims the PR to the ~10-linecurrent_source_roots()encapsulation refactor.
Nits
- Parameter naming consistency (
ignition/preparation/tuning_replicas.py:142,158,176,194): Usesextra_source_roots, whereasignition/preparation/rank_group.py:45,60,297,310andignition/preparation/source_identity.py:33,48name the same tupleextra_roots. - Reuse test helper (
tests/preparation/test_forward_cache_sources.py:104-109):test_prepare_group_propagates_source_roots_to_spawned_peerscan call the newly extracted_stub_forward_cache_root()forbaseline_rootinstead of manually patchingaot.torch.cuda.get_device_properties.
Dropped on verification
- "
_replicacalls_resolve_recipebefore bindingsource_roots(tuning_replicas.py:155vs:158), so a recipe importable only via a bound external root would fail" — False.source_roots()(ignition/preparation/source_identity.py:22-30) only sets the_EXTRA_ROOTSContextVar; it does not touchsys.path,importlib, orignition.registry._ACTIVE_RECIPES. Moreover,prepareis unpickled (importingprepare.__module__) bymultiprocessingbefore_replicais even entered. - "Multi-host
ignition join(ignition/cli/serve.py:546) still computessource_identity()with no bound roots" — False.ignition/cli/__init__.py:364-372wrapsargs.handler(args)—includingjoin—inwith bind_source_roots(source_roots):, andhost_ranks.serve_peer()(ignition/preparation/host_ranks.py:597-657) runs in-process without spawning, so external-recipe CLIs passingsource_rootsalready bind them on joining hosts. - "
rebuild_manifest.py:329executes in a spawned child and changes recorded artifact metadata" — False. Every caller ofrebuild_manifest.from_plan(ignition/cli/serve.py:235-237and:336-338) runs in the rank-0 CLI parent process, wheresource_rootswas already bound prior to this PR. - "Merge conflict with open PR #695 on
tuning_replicas.py:190-194(_replicaargs tuple)" — False. PR #695 modifiesauthorization()andReplicaPreparation(tuning_replicas.py:32-125), which is disjoint from PR #678's changes in_replica/prepare_recipe(:142-194). - "The tuning-replica test bypasses production
_replicaby monkeypatching it" — False / overstated._cpu_replica_entry(tests/preparation/test_forward_cache_sources.py:199-207) is a child-side bootstrap wrapper needed becausemp.get_context("spawn")starts a fresh interpreter; it stubs CUDA/CoreStorageinside the child and then invokes the realtuning_replicas._replica(*args), genuinely exercising parent capture, spawn pickling, child rebinding, andForwardCache.roothashing. - "Linux-only skip marker leaves Windows spawn untested, and
ranks is not None/ emptytuning_gpusare untested" — Low-signal / out-of-scope.tuning_replicas._replicaexplicitly callsflare_heliopause.bind_parent_lifetime(parent)(tuning_replicas.py:149), CI runs onubuntu-24.04(.github/workflows/python-cpu.yml:14(not opened)), and requesting tests for untouched branches on Round 2 violates scope discipline. - "Pre-existing
source_identity(*, extra_roots=())keyword is dead fallback plumbing (source_identity.py:33,48)" — Out-of-scope. Untouched public API parameter outside this PR's diff. - "Drop
test_current_source_roots_reflects_active_scope(tests/preparation/test_forward_cache_sources.py:151-160)" — Low-signal. It is a crisp 10-line unit test directly covering the new public accessor's default, nesting, and reset behavior.
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
- [✓]
triage:review: 99.2% -
none: 0.5% -
triage:validation: 0.2% -
triage:design-review: 0.1% -
triage:integration: 0.0% -
triage:investigate: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
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:
- PR #670 merged (
2acc3f3a, included incc0a49d2). It already added_peer(..., extra_roots=())(ignition/preparation/rank_group.py:44-45) andwith bind_source_roots(extra_roots):around the prepare block (rank_group.py:60-74), andprepare_groupalready passes the roots into the spawn args (rank_group.py:309-310, identical onmainand at the PR head). - This PR's two edits in that path are a behavior-neutral refactor: it only swaps a private import for the new public accessor —
rank_group.py:295-297andaot.py:845-847change_EXTRA_ROOTS.get()→current_source_roots(), andsource_identity.py:17-19is a three-line accessor returning the sameContextVarvalue.
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):
test_current_source_roots_reflects_active_scope— nesting/reset of the new accessor.test_prepare_group_propagates_source_roots_to_spawned_peers— realspawn, assertsrank1["cache_root"] == rank0["cache_root"] != baseline(test_forward_cache_sources.py:122-123).test_prepare_recipe_propagates_source_roots_to_spawned_tuning_replica— Linux-gated (:210), stubs CUDA/CoreStoragein the child, asserts the same for replicas (:244-245).
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:
- 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 throughsource_rootspaths will fail before any GPU work. rg "_replica|_peer" <recipe-package>— if the external package callstuning_replicas._replicapositionally with 7 args, the new required 8th parameter breaks it with aTypeError. 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):
- Both ranks complete; no
FileNotFoundErrorresolving rank 0's cache-relativepathsunder a rootlessself.root(aot.py:1239), and no"bound source root ... does not exist"(aot.py:848-850). - 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. - Repeat the export once against the warm cache: the second launch restores (
bound.cache_hit,aot.py:1243) rather than recompiling, and adds no newforwards/<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:
- Exactly one
flare-tuning-1child reachesTuningComplete; parent reports no"tuning replica ... exited with"(tuning_replicas.py:200-202) and no"a tuning replica continued beyond kernel preparation"(:165). --verboseshows the replica'sForwardCache.root, when it builds one, equal to rank 0's — or, today, simply that the replica prepared without the root-binding path raising.- Child exits 0 under the same
source_rootsbinding; if you can, add a one-line debug print ofcurrent_source_roots()in the replica entry and confirm it is non-empty (this is the propagation actually crossingspawn, 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
- Serving throughput / latency benchmarks. Nothing on the serving hot path changes;
source_roots/current_source_rootsare CLI-invocation-scoped, andForwardCache.__init__already rglobs two whole source trees (aot.py:837-844), so one extra small recipe tree is noise. A tokens/s number here would measure nothing. - Memory measurements. Only an immutable
tuple[tuple[str, Path], ...]crosses the spawn boundary; no new locks, threads, or allocations. ignition join/ multi-host. Out of scope and already correct —joinruns insidemain(...)'sbind_source_roots(ignition/cli/__init__.py:364-372) andhost_ranks.serve_peerruns in-process withoutmp.spawn. Ran on cn5 alone it would also be meaningless; there is no second host.- cn7. See §2.
- Combined 4-GPU TP=2 + tuning replicas, unless Steps 1–2 both pass and a maintainer asks.
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
- Budget: one 2-min CPU pass, two ~15–20 min runs on 2 GPUs each. Under ~1 GPU-hour total. Nothing here needs 4 GPUs.
- 16 GiB scratch on cn5 is the real risk.
~/.cache/flare/kernelsplus the HF hub cache plus the checkpoint must fit. Verify checkpoint sizes and pre-download before booking GPUs; a mid-run disk-full will look like aFileNotFoundErrorand be misread as the bug under test. - cn5 is homogeneous SM120, so it can validate root agreement but cannot reproduce the mixed-SKU failure the PR's author-reported evidence relied on (and which depends on unmerged #597's cache-root check — that check does not exist on
main,aot.py:1043-1046only agrees forward catalog keys). - Pre-flight beats re-runs: the two checks in Step 1 (external package importable in a spawned child; no 7-arg positional
_replicacaller) are the realistic failure modes and cost no GPU time.
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.
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
- 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
mainby merged #670, so GPU runs can only prove "no regression" - The one genuinely new behavior is the tuning-replica spawn (
_replicanow takes a required 8th arg + bindssource_roots), and that needs realspawn+ 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 accessorcurrent_source_roots()returning_EXTRA_ROOTS.get(), plus a docstring update onsource_roots(:22). Behavior-neutral.ignition/preparation/aot.py:845-847—_EXTRA_ROOTS.get()→current_source_roots(). The key-hashing loop is at:837-844(rglobsignition+flashinfer) and the extra-roots fold-in at:847-855, with thebound source root ... does not existerror at:848-850; cache dir isroot/'forwards'/key.hexdigest()(:855). This confirms the report's cheapest hardware assertion — one newforwards/<hash>dir means the ranks hashed the same roots.ignition/preparation/rank_group.py:295-297— same accessor swap;_peer(..., extra_roots=())at:44-45and #670's narrowwith bind_source_roots(extra_roots):block at:60are present at head, and:309-310passesextra_rootsinto the spawn args. So the report's claim "already fixed onmain, 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;:158bindswith source_roots(extra_source_roots), CoreStorage(world=plan.world_size) as storage:;:174-176captures inprepare_recipe;:190-194passes it to the spawned worker.- Same file
:160-165—prepare(..., compile_forwards=False)andexcept TuningComplete/else: raise RuntimeError("a tuning replica continued beyond kernel preparation");:177replicas = len(tuning_gpus) // plan.world_sizeand:187for 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) whileauthorization()(:32-62) andReplicaPreparation(:65-125) are untouched.
Leads from the orientation packet
- #670 (merged
2acc3f3a, incc0a49d2) — followed. Its_peer(extra_roots=())+ narrowbind_source_rootsblock 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()/ReplicaPreparationin 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
duplicatelabel — 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_devicessame-SKU rule and the≥ 2 × world_sizeGPUs gate),ignition/preparation/capture.py:117-118(not opened) (ForwardCacheonly undercompile_decoder), or thatpyproject.toml(not opened) omitshyperflare_recipes; so the "inert today" argument rests on the report plus thecompile_forwards=False/TuningCompletecode 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
finishwas 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.
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
mainby merged #670, so GPU runs can only prove "no regression"- The one genuinely new behavior is the tuning-replica spawn (
_replicanow takes a required 8th arg + bindssource_roots), and that needs realspawn+ CUDA +CoreStorage, which the CPU test stubs outEstimated 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
90b0d31The diff (5 files, +136/−20) matches the report's description exactly.
ignition/preparation/source_identity.py:17-19— three-line public accessorcurrent_source_roots()returning_EXTRA_ROOTS.get(), plus a docstring update onsource_roots(:22). Behavior-neutral.ignition/preparation/aot.py:845-847—_EXTRA_ROOTS.get()→current_source_roots(). The key-hashing loop is at:837-844(rglobsignition+flashinfer) and the extra-roots fold-in at:847-855, with thebound source root ... does not existerror at:848-850; cache dir isroot/'forwards'/key.hexdigest()(:855). This confirms the report's cheapest hardware assertion — one newforwards/<hash>dir means the ranks hashed the same roots.ignition/preparation/rank_group.py:295-297— same accessor swap;_peer(..., extra_roots=())at:44-45and #670's narrowwith bind_source_roots(extra_roots):block at:60are present at head, and:309-310passesextra_rootsinto the spawn args. So the report's claim "already fixed onmain, 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;:158bindswith source_roots(extra_source_roots), CoreStorage(world=plan.world_size) as storage:;:174-176captures inprepare_recipe;:190-194passes it to the spawned worker.- Same file
:160-165—prepare(..., compile_forwards=False)andexcept TuningComplete/else: raise RuntimeError("a tuning replica continued beyond kernel preparation");:177replicas = len(tuning_gpus) // plan.world_sizeand:187for 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) whileauthorization()(:32-62) andReplicaPreparation(:65-125) are untouched.Leads from the orientation packet
- #670 (merged
2acc3f3a, incc0a49d2) — followed. Its_peer(extra_roots=())+ narrowbind_source_rootsblock 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()/ReplicaPreparationin 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
duplicatelabel — 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_devicessame-SKU rule and the≥ 2 × world_sizeGPUs gate),ignition/preparation/capture.py:117-118(not opened) (ForwardCacheonly undercompile_decoder), or thatpyproject.toml(not opened) omitshyperflare_recipes; so the "inert today" argument rests on the report plus thecompile_forwards=False/TuningCompletecode 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
finishwas 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.