Amendments to the case file for PR #678 — new event: 2026-12-02 21:29 head (rebase 90b0d31)
Only deltas to the earlier report are listed; everything not mentioned stands. The "new event" is the author's force-push/rebase onto main@cc0a49d2 (which contains now-merged #670) plus a rewritten description and a request for re-review (read_item 678, comment 2026-12-02 21:29), and the appearance of PR #695 at 21:41 on the same file.
Key findings (amended)
- The competing duplicate is no longer competing: #670 merged. #670 (lukealonso) merged 2026-12-02 14:16, head
46e380a, +1132/−307. #678 is now a follow-on to merged code — it replaces #670's direct private_EXTRA_ROOTSimport with the new accessor and adds the tuning-replica path. Repo triage still carries theduplicatelabel (labels nowarea:preparation, bug, duplicate, priority:P2, triage:review). - Scale shrank and the conflict surface I flagged is gone. Now +136/−20 in 5 files (was +233/−91 in 4):
aot.py+2/−2,rank_group.py+2/−2,source_identity.py+6/−1,tuning_replicas.py+8/−3,tests/preparation/test_forward_cache_sources.py+118/−12 (pr_files). The +91/−85_peerre-indentation is gone; #678's onlyrank_group.pyedit isextra_roots = current_source_roots()atignition/preparation/rank_group.py:295-297. Thewith bind_source_roots(extra_roots):block atrank_group.py:60and_peer(..., extra_roots=())at:44-45are merged #670 code, not this PR's diff. My earlier "roots stay bound throughserve_rank" and "conflict with #670 onrank_group.py" findings are withdrawn. - The tests now prove cache-root agreement, closing my top should-fix.
tests/preparation/test_forward_cache_sources.py:109computes an unboundbaseline_root;:120-123assert both ranks report the boundextra_rootsand equalcache_rootandcache_root != baseline_root. The replica test does the same at:216, 242-245. Newtest_current_source_roots_reflects_active_scope(:151-160) checks nesting/reset. My earlier "tests assert ContextVar visibility only" is withdrawn. - My #2 finding (wrong failure mode in the description) is now closed, not just reported. The rewritten body names the
mainsymptom as divergentForwardCacheroots withFileNotFoundError/cache misses and explicitly conditions the same-SKU cache-root mismatch on "unmerged PR #597"; it also discloses that_replicatoday callsprepare(..., compile_forwards=False)and exits atTuningCompletewithout reaching an in-treeForwardCacheorsource_identity(), i.e. replica propagation is defensive parity. That is exactly the substance of my earlier criticism. Docs are still untouched:docs/has nosource_rootsmention (search_code). - Still broken and still undeclared as out of scope: the multi-host
ignition joinpath. Unchanged from my earlier finding and re-verified at this head:ignition/cli/serve.py:528-552computesidentity = source_identity()at:546with no bound roots and passes it toknock/serve_peer;host_ranks.pyrecomputes and compares the identity (:270-271,:597-631). Nosource_rootsreference exists underignition/cli/(search_code: only__init__.py:364-370). Cross-host external-recipe exports still diverge, now caught by that identity comparison rather than by equal cache roots. - New conflict surface: #695 (open, lukealonso, 2026-12-02 21:41, +526/−15) rewrites
ignition/preparation/tuning_replicas.pyandtuning.py(not opened) for cross-rank tuning-selection sharing, and independently reports aForwardCache._prepare_ranksBindingMismatchondecoder.layers[*].attention.scratch_layoutfor--tuning-gpusexports — a different root cause (divergent tuning selections) from the same exception family. Two open PRs now cite_prepare_ranksfailure with different causes; a reviewer must not conflate them.items_touchingontuning_replicas.pylists #695 and #678 as the only two open changes to that file, so whoever merges second re-resolves the_replicaargs tuple (tuning_replicas.py:190-194).
Detail added since the previous report
- Exact new
tuning_replicas.pyshape:_replica(parent, prepare, recipe_name, snapshot, values, gpu_uuids, options, extra_source_roots)at:142— now a required positional, called only fromprepare_recipeat:190-194.prepare_recipecapturesextra_source_roots = current_source_roots()at:174-176. Binding happens at:158(with source_roots(extra_source_roots), CoreStorage(...) as storage:). - Remaining gap (unchanged):
_replicastill resolves/imports the recipe at:155(recipe = _resolve_recipe(...)) before the bind at:158, so a recipe importable only via a bound external root still cannot resolve in the replica child. Not mentioned in the body. - Rebuild metadata consequence (unchanged, still undeclared):
rebuild_manifest.py:329recordssource_identity()computed in the child, which now includes rank 0's roots only because of this propagation — a behaviour change in recorded artifacts the description does not note. - Private-var cleanup is complete and legitimate: after the change
_EXTRA_ROOTSis referenced only insideignition/preparation/source_identity.py— definition:12-14, accessor body:19, set/reset:26, :30, andsource_identity()'s owncombined_roots = (*_EXTRA_ROOTS.get(), *extra_roots)at:48.aot.py:845,847andrank_group.py:295,297now usecurrent_source_roots()(search_code). Thegit grepclaim in the body is accurate. - Docstring nit fixed:
source_identity.py:24now reads "Bind external(label, path)source roots for the active CLI or spawned worker context." - Test-gating correction to my earlier report: my previous note that "both real-spawn tests are Linux-only" was wrong. Only the replica test is gated —
@pytest.mark.skipif(sys.platform != "linux", ...)attest_forward_cache_sources.py:210pluspytest.importorskip("flare_heliopause")at:212.test_prepare_group_propagates_source_roots_to_spawned_peers(:100) has neither and drives a real spawn over loopback Gloo viaSimpleNamespace(devices=("cuda:0","cuda:1"))(:111-123). File total 246 lines. - How the CPU tests assert "real" cache roots:
_stub_forward_cache_root()(:35-42) monkeypatchesaot.torch.cuda.get_device_propertiesto an SM120/96-SM namespace and returnsstr(ForwardCache(...).root);_record_source_roots_prepare(:45-48) reportsextra_roots+cache_root._cpu_replica_entry(:199-207) patchestorch.cuda.set_device,torch.cuda.synchronizeandcore_storage.CoreStoragein the child and then calls the realtuning_replicas._replica, so the spawn/serialization path is genuinely exercised. - Public entrypoint unchanged:
ignition/cli/__init__.py:364def main(argv=None, *, recipes=(), prog="ignition", source_roots=()), binding at:370— identical onmain, so no API or default change. - Evidence status (unchanged in kind): the 36-passed/7-suite figure is still author-reported; no CI check run is shown on
90b0d31; the only Autobot review on the PR is the 11:19 UTC one, which predates the rebase, the test rewrite and the description rewrite — no re-review has been posted despite the author's@flare-autobot please re-review. #695's author likewise notestest_source_identityfailing in his environment for unrelated venv reasons.
Amended open questions
- With #670 merged, is the
duplicatelabel now stale, or is triage saying the whole PR is redundant because merged #670 already fixed the live failure (i.e. is the remaining replica-parity half worth landing)? Neither the labels nor any human comment answers this. - #678 vs #695 on
tuning_replicas.py: both alter the replica spawn/serving contract. Should #678's two-line propagation land first (small, mechanical) to spare #695 a rebase of its +482-line test file? - Is the multi-host
ignition joingap (serve.py:546) deliberately deferred to #668/#675? Still not stated anywhere in the body. - Is
_resolve_recipe-before-bind (tuning_replicas.py:155vs:158) worth fixing in this PR, or is it unreachable given replicas never reach aForwardCache? - No issue, benchmark or user report corroborates the external-recipe multi-GPU benefit; no CI run and no post-rebase review to independently confirm the 36-passed claim.