#1 [high] Related work: open #668 already implements the same peer b12x_environment propagation
#668 "fix(ignition): reconcile divergent multi-host selections, propagate peer b12x env and kernel cache, and harden ForwardCache", open, by lukealonso (COLLABORATOR), opened 2026-12-01 22:26, updated 2026-12-02 03:04, labels area:preparation, area:rocenante, bug, performance, priority:P2, triage:review; +423/-44 over 8 files incl. ignition/cli/serve.py, ignition/preparation/host_ranks.py, ignition/preparation/aot.py, ignition/preparation/collectives.py, tests/preparation/*. Closes #651.
Its part 2 is the same bug as #675: "Dropped Recipe.b12x_environment and leaked config.kernel_cache on peer hosts ... HostRendezvous.prepare did not transmit those settings and serve_peer never applied them. As a result, peers prepared with different b12x behavior from rank zero—directly contributing to declaration divergence on GLM-5.3."
Implementation differs from #675:
- #668 sends a separate control message ("b12x-environment", b12x_env) from HostRendezvous.prepare BEFORE the assignment object is unpickled (so import-time reads see it), and also includes it in
assignment; serve_peer validates+applies it to os.environ, accepts kernel_cache from join, remaps config.kernel_cache; wired from model.recipe.b12x_environment in serve.py:197,420. - #668's validation rejects non-B12X_ keys, B12X_COMPILE_CACHE_DIR, and non-string values (host_ranks.py:201-239 per review).
- #675 instead piggybacks b12x_environment on the admission JSON reply in HostRendezvous._admit (host_ranks.py:291-292), validates it in knock() (host_ranks.py:612-615), and has join() apply it via environment.apply (serve.py:548-555). #675 does NOT apply it in serve_peer's own process env, and does not touch kernel_cache.
So the two PRs touch the same functions and the same line region (join in serve.py, HostRendezvous init/_admit, knock, serve_peer) but are not stacked: merging both would produce a semantic duplicate (two channels for the same data) and textual conflicts. #668 is by the area's main maintainer and was reviewed by flare-autobot (Changes Requested, 0 blockers, 3 should-fix) and has a hardware +1 from nepenth on 2x GB10 TP2 GLM-5.3 (comment 2026-12-02 03:04) specifically confirming the missing B12X_W4A16_A4_PREFILL=1 on rank 1 caused a +33% cold prefill regression (18.4s vs 12.6s @32k) and --reuse-weights layout mismatches.
#675's description does not mention #668 or #651 at all.
#2 [high] Change: what the diff actually does at head 92b977d (file:line)
Facts verified at PR head 92b977d (read_file / search_code at ref pr/675):
- ignition/preparation/host_ranks.py:193-205 — new
_validate_b12x_environment: copies mapping via dict(); rejects non-mapping (TypeError/ValueError → ValueError "b12x settings name B12X_ variables with string values") and any name not str / not startswith("B12X_") / value not str. Slightly stricter thanRecipe.__post_init__(ignition/declaration.py:251-253) which only checks name.startswith + str value (a non-str name would raise AttributeError there). Notably it does NOT rejectB12X_COMPILE_CACHE_DIR, which #668's version explicitly rejects (see entry on #668). - host_ranks.py:219-229 —
HostRendezvous.__init__(..., b12x_environment=()), validated at :223 beforesocket.create_serverat :229. - host_ranks.py:290-292 —
_admitcontrol-channel accept reply now{"accepted": True, "session": ..., "b12x_environment": self.b12x_environment}. Additive JSON field; PROTOCOL stays 5 (host_ranks.py:41), so old peer/new rank-zero combinations remain wire-compatible in shape (old knock ignores unknown key; new knock defaults missing key to {}), thoughsource_identity(source_identity.py:94-95, hashes the whole ignition tree) makes mixed-checkout pairs reject in_admitanyway. - host_ranks.py:582-623 —
knockreturns (control, executor, b12x_environment); validates reply["b12x_environment"] via reply.get(...,{}) inside a try where the executor connect happens only after validation; on failure closes control and re-raises (no executor socket opened). - ignition/cli/serve.py:193-197 (
_export_hosts) and :416-420 (debug_serve) passb12x_environment=model.recipe.b12x_environment; rank zero's own apply remainsenvironment.apply(configuration, local, plan.recipe.b12x_environment)at serve.py:211 and :438. plan.recipe is the same Recipe object as model.recipe (ignition/planning.py:543,595fit(recipe, ...); serve.py only doesreplace(plan, hub_cache=hub_cache)), so both sides use identical settings. - serve.py:530-560 —
joinnow: Host.discover → source_identity() → knock → environment.apply(configuration, (gpu,), b12x_environment) inside try/except BaseException that closes executor+control → serve_peer. On main,environment.apply(configuration, (gpu,))was the line beforesource_identity()/knock (main serve.py:545). - Description overstatement: it says join was "reordered to compute source_identity() ... before knock". source_identity() was already before knock on main (main serve.py:546-548); the only real reorder is environment.apply moving after knock.
- environment.apply (ignition/cli/environment.py:36-74) sets TORCH_CUSTOM_PYTHONPATH, CUDA_VISIBLE_DEVICES, HF_HUB_CACHE, B12X_COMPILE_CACHE_DIR, FLASHINFER_WORKSPACE_BASE, TRITON_CACHE_DIR, TORCHINDUCTOR_CACHE_DIR, then
**dict(b12x)(recipe values win), then CUDA_HOME/ptxas/CPATH, thenruntime_patches.apply(). runtime_patches.apply (ignition/runtime_patches/init.py:90-133) imports torch and calls workers.register_hooks() (:119), which is the b12x.preparation import path the PR description cites. So on peers the recipe B12X_* values now reach os.environ before torch/b12x import — the mechanism the PR claims. serve_peeritself (host_ranks.py:626-773) does NOT receive or apply b12x env in this PR; it relies on join having set the process env already. Only caller is serve.py:556 (join); tests also call it in test_checkpoint_source.py:559.Host.discover→ planning.discover_gpus imports cuda.bindings nvml/driver, not torch (ignition/planning.py:56-91), and runs before environment.apply both before and after the PR, so CUDA device selection ordering is unchanged; source_identity() deliberately avoids importing flashinfer (source_identity.py:38 comment) and only find_spec's it, so moving it in front of environment.apply does not import torch early.- b12x_environment declaration/semantics: ignition/declaration.py:205-207,231 — "b12x reads them only from its environment, so Ignition sets them for the preparing process."
- Tests added in tests/preparation/test_host_ranks.py:334-476 (5 tests incl. parametrized rejection x3): forwarding to every peer over loopback TCP, pre-bind rejection, malformed-reply rejection + control-socket close, join applies received var before runtime_patches.apply and serve_peer (asserts events == [("runtime_patches","1"),("serve_peer","1")]), join closes both sockets when environment.apply raises.
- Existing helper join() in test_host_ranks.py:26-34 unpacks
sockets = knock(...)as a tuple and appends it, so pre-existing tests keep working with the 3-tuple.
#3 [high] Project fit: documented "no environment variables, b12x from recipe" rule; multi-host docs silent; B12X_COMPILE_CACHE_DIR
Docs and contract facts for #675:
- docs/cli-design.md:46-51 states the design rule: "No environment variables. Flare reads none ... Variables that underlying libraries read are set by Flare from its own configuration, and b12x's from the recipe's declared settings, before those libraries are imported." Rank zero already does this (serve.py:211/438 -> environment.apply); the PR brings peers into line with this documented rule. Charter angle: fits "prepare supported model recipes with Ignition" and cross-node serving (charter lines 21-22), no per-model branches.
- docs/cli-design.md:69 documents
ignition join ADDR:PORT --rank R --ranks N [--gpu INDEX]; docs/multi-host.md:330-400 documents the prepare-the-core flow (export --ranks on rank zero, join on the peer). Neither doc mentions that recipe B12X_* settings must be exported manually on peer hosts, i.e. the documented operator workflow silently omitted the requirement this PR removes. docs/multi-host.md has no mention of b12x_environment (grep for b12x/join/environment returned only :137 subnet, :239 join-code, :361 join example, :398 workers joined). docs/multi-host.md:334-336 tells operators to use matching sources; nothing about env parity. - #668's autobot review suggests exactly this doc note as a nit: "Docs (docs/multi-host.md): Consider a short note that rank zero now propagates recipe.b12x_environment and each peer uses its own local kernel_cache." #675 does not touch docs, so the same doc gap stays open.
- ignition/cli/environment.py:47 sets "B12X_COMPILE_CACHE_DIR": kernel_cache/"b12x" and then :51 spreads
**dict(b12x), so a recipe could override the peer's local compile-cache dir with rank zero's path. #668 explicitly rejects B12X_COMPILE_CACHE_DIR in its validation for this reason; #675's_validate_b12x_environment(host_ranks.py:202) permits it. Per #668's review "no recipe sets that var", so it is latent, not live. #668 also separately fixes peers inheriting rank zero's absoluteconfig.kernel_cache; #675 does not touch that. - Recipe.b12x_environment is a static Recipe field (ignition/declaration.py:231), not a RecipeParameter, so no per-plan variation; serve.py can safely read model.recipe.b12x_environment before plan(…) at serve.py:201/424.
#4 [high] Why: bug is real and measured, but #675 cites no issue, PR or measurement
Why: the defect #675 targets is corroborated independently, but the PR never links the reports.
- #668 (open, lukealonso, 2026-12-01) states the identical defect: "HostRendezvous.prepare did not transmit those settings and serve_peer never applied them. As a result, peers prepared with different b12x behavior from rank zero—directly contributing to declaration divergence on GLM-5.3."
- nepenth's 2026-12-02 03:04 comment on #668 is the only hardware measurement of the consequence: on 2x GB10 (SM121) TP2 with GLM-5.3-Flash-FP4-Local v0.5.0, without B12X_W4A16_A4_PREFILL=1 on rank 1, "rank 1 silently prepared BF16-activation W4A16 prefill instead of A4 prefill, stalling every layer's all-reduce", +33% cold prefill (18.4 s vs 12.6 s at 32k context), plus --reuse-weights layout mismatches (device-57); propagation restored 49 s re-exports.
- #651 (open issue, hiroshi-ya, 2026-12-01) is the multi-host GLM-5.3 export failure (1321 differing kernel selections, non-converging retries) that #668 treats as partly caused by the missing b12x env parity. #675 does not mention #651 or #668, so a reader of #675 alone cannot tell that the bug was already reported and already has an open fix.
- Nobody filed a standalone issue for "recipe B12X_* settings are not forwarded to
ignition joinpeers" treating it as its own defect; search_items for that wording returns nothing. So #675 is a no-issue PR, which the repo's AGENTS.md:165-169 requires to address "an explicit maintainer request, a demonstrated defect, a measured performance or memory problem": the demonstrated defect exists but is documented only inside #668/#651 and nepenth's comment, not in #675. - Feature provenance: Recipe.b12x_environment was introduced/used for Kimi in commit 9a719611 "Declare Kimi K3's b12x settings in its recipe" (2026-10-17, Martin Vit) — same commit also touched ignition/cli/serve.py; survives on main as ignition/declaration.py:231 and is applied at serve.py:211/438, bench.py:205. #237 (voipmonitor, merged) notes recipe b12x deps "select" kernels, confirming the settings are behavior-changing.
#5 [high] People: first-time contributor, no reviews yet; area owned by Luke Alonso
- Author: Reederey87, GitHub association FIRST_TIME_CONTRIBUTOR, no other PRs or issues in the repo per the orientation packet; two things by them on 2026-12-02: this PR (#675, opened 10:50) and issue #676 (opened 10:51, scheduler prefill-chunk ITL on GLM-5.3 TP2 / 2x DGX Spark, with a receipts repo https://github.com/Reederey87/glm53-flash-fp4-b12x-2x-dgx-spark and a prototype patch). #676 mentions B12X_W4A16_A4_PREFILL=1 as part of its export config, so the author demonstrably runs the exact multi-host GLM-5.3 TP2 workflow #675 fixes — but #675's own description contains no measurement from that setup, only CPU unit tests. Commit author on head 92b977d is "Artem Matskevych" (per search_history), consistent with a solo contributor.
- Review engagement so far: none. read_item #675 shows "Discussion (0)": no reviewers, no labels, no flare-autobot case file (unlike #668 which got an autobot intake + review within 20 min), no CI checks on the head commit. Prepared 2026-12-02 10:50, updated 10:50.
- Who owns this area: ignition/preparation commit counts last 180 days — Luke Alonso 161, Martin Vit 52, Eugene Rakhmatulin 36; ignition/cli — Luke Alonso 83, Martin Vit 25, jasonc 14; tests/preparation — Luke Alonso 207, Martin Vit 34, jasonc 23. Luke Alonso authored the multi-host peer-export hardening #667 (merged 2026-12-01 1fbcc3c9, the PR's merge base) and the overlapping #668, and is therefore the natural reviewer and the person whose in-flight work would conflict. Multi-host rendezvous itself originated with jasonc (858f72d8 "Serve GLM from ranks on separate DGX Sparks through a rank-zero rendezvous" 2026-10-12; b754f645 "Export each host's rank of a multi-host GLM model as its own package") and was extended by yatesdr (#369 RoCE GID per host, #198 peer failure reporting) and 0z5a (#198).
#6 [high] Claims and evidence: 195-pass self-reported with no CI; tests verified by reading; what they don't prove
Claims vs evidence, keeping verified apart from claimed:
CLAIMED (PR description): "Ran CUDA_VISIBLE_DEVICES='' pytest tests/cli tests/preparation/test_host_ranks.py tests/preparation/test_checkpoint_source.py on Linux aarch64 with flare_heliopause and protoc: 195 passed, 0 failed."
- No CI evidence: orientation packet says "CI on the head commit: no checks". The repo's only Python workflow is .github/workflows/python-cpu.yml, which runs
pytest tests/ -qon ubuntu-24.04 with CUDA_VISIBLE_DEVICES="" — it has not run for this PR. So the 195-pass number is self-reported and unverified; aarch64 also differs from the CI image (x86_64 ubuntu-24.04). - Not reproduced here (this case file is read-only research, no test run). The numbers are plausible in shape: 195 ≈ tests/cli (136 per #668's measurement) + test_host_ranks (44 pre-existing + 7 new) + test_checkpoint_source.
VERIFIED BY READING (head 92b977d):
- New tests exist and are real loopback-TCP tests, not mocks of the wire: test_rendezvous_forwards_recipe_b12x_environment_to_every_peer (test_host_ranks.py:334-359) starts a HostRendezvous and two knock() peers; test_knock_rejects_invalid_b12x_environment_and_closes_control_socket (:377-403) asserts the peer closes the control socket without opening an executor; test_join_applies_received_b12x_environment_before_runtime_patches_and_serve_peer (:405-451) asserts events == [("runtime_patches","1"),("serve_peer","1")], i.e. the ordering claim; test_join_closes_rendezvous_sockets_when_environment_apply_fails (:453-476) asserts both peer sockets see EOF.
- Weak spot in the ordering evidence: the "before runtime_patches.apply()" assertion works by monkeypatching ignition.runtime_patches.apply, so it proves treating order within environment.apply, not that the real b12x import sees the variable; the real chain (environment.apply -> runtime_patches.apply -> workers.register_hooks -> b12x.preparation import) is not exercised by any test. Also
monkeypatch.setattr(os, "environ", os.environ.copy())(test_host_ranks.py:414) is the env-leak mitigation #668's reviewer asked for on the sibling PR; here it is present in the positive test. - CLAIMED "matching rank zero's ordering": verified rank zero applies recipe settings at serve.py:211 (export) / :438 (debug-serve) before prepare; peers now apply at serve.py:551 after knock and before serve_peer (:556), and serve_peer's real b12x work starts at restore/prepare time (host_ranks.py:646 onward, model = prepare(...) at :683/:686). So parity of ordering holds for the peer prepare, but peers still apply AFTER
import torch.distributed? No: dist is imported inside serve_peer (host_ranks.py:667), so not an early-import hazard. - CLAIMED limitation "Live multi-host CUDA export (FLARE_RUN_TP_CUDA_TESTS=1) was not re-executed on this commit" — consistent with AGENTS.md:302 requiring that variable for GPU tests; nothing hidden there.
- NOT CLAIMED but relevant: the PR says nothing about kernel_cache paths. On a peer, environment.apply sets B12X_COMPILE_CACHE_DIR/TRITON_CACHE_DIR/etc. from the peer's own Configuration, and then rank zero's recipe b12x map is spread over it (environment.py:40-52), so a peer's cache dirs stay local unless a recipe sets B12X_COMPILE_CACHE_DIR. The unrelated leak of rank zero's absolute
config.kernel_cachethrough the pickled config (fixed by #668) remains in #675's tree: host_ranks.py:486 and rank_group.py:110 pass settings.kernel_cache around, untouched here.
#7 [high] Process and reach: ready-for-review, zero engagement, knock() 3-tuple signature change, additive wire key, no docs
Process and reach:
Process
- State: open, description marks it ready for review ("State: open, ready for review"); base main, head 92b977d; +194/-11 across 3 files; opened 2026-12-02 10:50, updated 10:50 (read_item #675). No labels, no reviews, no discussion (read_item "Discussion (0)"), no checks on head. Nothing has happened on it since it was opened.
- Repo policy hooks that apply: CONTRIBUTING.md:9,19 requires DCO sign-off on commits (this case file cannot verify whether 92b977d carries a Signed-off-by trailer); AGENTS.md:165-169 requires a demonstrated defect or maintainer request, satisfied in substance but not cited by the PR; AGENTS.md:294-306 documents the CPU test command the author used, and says a skipped test must be reported as unrun — the author did report the unrun CUDA path.
- Merge mechanics: merge base is 1fbcc3c9 (#667, merged 2026-12-01); no default-branch commit since has touched the three changed files, so the branch is current against main. Conflict risk is entirely with open #668 (same functions) and marginally #394 (tests/preparation/test_host_ranks.py) and #671 (host_ranks.py).
Reach / who is affected
- Operators of
ignition export --ranks N+ignition joinand multi-hostignition debug-serve --ranks N(docs/multi-host.md:330-400, docs/cli-design.md:69). Before this change, they had to export B12X_* manually on every peer host to get correct prepare/export; after, the recipe's declaration is authoritative and no new flag/config key exists (PR description "no new CLI flags"; verified: no CLI or config change in the diff). - Configuration/defaults: none changed for single-host. Recipe.b12x_environment (ignition/declaration.py:231) unchanged in shape.
- Compatibility: control-channel JSON gains an additive key (host_ranks.py:291-292);
PROTOCOLstays 5 (host_ranks.py:41). Old peer against new rank zero: the old knock ignores the extra key and would still silently prepare without the recipe env — i.e. the fix does not protect mixed-checkout pairs, and mixed checkouts are separately blocked by source_identity (source_identity.py:94-95 hashes the whole ignition tree; _admit rejects mismatch at host_ranks.py:286-287). Rust/Helios are unaffected: helios/src/execution/rendezvous.rs:174-221 implements a separate binary-framed protocol (ADMITTED byte, :25,155,199) for the serving-side rendezvous, not this JSON one. - API surface change for in-repo callers:
knock(...)now returns a 3-tuple instead of 2 (host_ranks.py:623). Verified all in-repo call sites: serve.py:548 (updated), tests/preparation/test_host_ranks.py:28 helper (tuple-agnostic), tests at :399. No other production caller — the returned shape change is safe inside this repo but is an undocumented breaking signature change for any out-of-tree consumer (ignition is a library per AGENTS.md:6). - Deployment: peers must run the same checkout anyway (source identity), so no rollout ordering problem.
- Docs: no doc update; the documented multi-host guide never mentioned the manual env requirement nor now records that it is handled. #668's reviewer flagged the same missing note.
- Test-only artifacts outside ignition/: none; the diff's only test file is tests/preparation/test_host_ranks.py.
#9 [high] Research summary
Case file for #675 is complete; every angle has scratchpad entries (7 notes, high/medium importance) with citations.
Headline: #675's defect is real and independently measured, but the PR cites none of it — the same bug is already described, fixed and hardware-verified inside open PR #668 (lukealonso, collaborator, same three files plus aot.py/collectives.py (not opened), closes #651), whose peer-b12x propagation reaches peers through a different channel (a control message in HostRendezvous.prepare, applied in serve_peer) whereas #675 piggybacks it on the admission JSON and applies it in join via environment.apply. The two are not stacked: they are semantic duplicates that would textually collide in the same functions, and #668's reviewer already noted overlap with #667, which is #675's merge base. Nobody has engaged with #675 (0 comments, no labels, no CI checks, ready-for-review, first-time contributor who filed the closely related #676 the same morning from the exact 2×GB10 GLM-5.3 TP2 setup).
Verified at head 92b977d: validation at host_ranks.py:193-205 permits B12X_COMPILE_CACHE_DIR that #668 rejects; knock now returns a 3-tuple (:623) and closes the control socket on malformed env (:612-620); join applies the recipe env before serve_peer with socket cleanup (serve.py:548-555); the description's "compute source_identity() before knock" is already true on main, so the only real reorder is environment.apply. Tests are genuine loopback-TCP tests but the "before runtime_patches.apply()" claim rests on a monkeypatched apply, and the 195-pass result is self-reported with no CI. Charter/docs fit the documented "no environment variables, b12x from the recipe's declared settings" rule (docs/cli-design.md:46-51), yet neither multi-host doc is updated and #668's review asked for exactly that note; peers still inherit rank zero's absolute config.kernel_cache, which #675 does not address.
#10 [high] Community: no comments, reviews, labels or bot engagement on #675; the relevant +1 and hardware data are on #668
Community engagement on #675 is zero, and this is itself a finding:
- read_item #675 discussion: "Discussion (0)" — no comments, no reviews, no inline review comments, no labels, no reactions, no reviewer requests. Opened 2026-12-02 10:50 and last updated 10:50 (same minute), so nothing has been said on it at all.
- No flare-autobot intake/review: #668 (opened 2026-12-01 22:26) got a case-file comment at 22:28 and a full Changes-Requested review at 22:47, so the bot/pipeline normally engages within ~20 minutes; #675 has neither. Combined with "CI on the head commit: no checks" (orientation packet, consistent with .github/workflows/python-cpu.yml being the only Python workflow and it not having run), the PR currently has no external validation of any kind.
- The interest that does exist is on the sibling item, not here: nepenth's 2026-12-02 03:04 "Strong +1 from hardware testing on 2× GB10 (SM121) multi-host TP2 with GLM-5.3-Flash-FP4-Local (v0.5.0)" comment sits on #668 (#668 entry has the numbers: +33% cold prefill, 18.4 s vs 12.6 s at 32k, --reuse-weights device-57 mismatch). That is the community evidence a reviewer of #675 would want, and it is not linked from #675.
- Author engagement pattern: Reederey87 has no repository history beyond #675 and #676 (orientation packet: 0 merged, 0 closed, 0 open pull requests/issues in the last 180 days besides these; search_items by author returns only #676). #676 (scheduler prefill-chunk ITL, GLM-5.3 TP2, 2× DGX Spark, with receipts repo and a 407/407 + 213/213-test prototype patch) shows the author does hardware work and writes evidence-rich reports — which makes the absence of any hardware measurement or issue link in #675 a contrast worth noting, not an inability.
- No Discord username given on #675 ("Discord: no username provided"), whereas #668 names lukealonso and other PRs name theirs; the repo appears to use Discord handles as a coordination channel (see #668's "Discord: lukealonso", #676's "Discord: no username provided").
#8 [medium] Recent activity: #667 merge base, #647/#648 context, other open PRs on the same files
Recent activity in the touched areas (from orientation packet + search_history at pr/675) and how #675 sits against it:
- 1fbcc3c9 (#667, Luke Alonso, merged 2026-12-01, "Harden Orbit payload integrity, multi-deployment TP seams, GB10 page-cache release, Unix flock drop, and multi-host peer exports") is #675's merge base and the most recent change to ignition/preparation/host_ranks.py. #667 also appears in #668's "Referred to by", and #668's autobot review notes active merge overlap with #667 in host_ranks.py. #675 neither builds on nor reverses #667; it adds an independent field to the same class and the same admit path, so it will textually collide with #668 (which rewrites HostRendezvous.init/_admit/prepare/serve_peer there).
- f2ca2c41 (#647, Luke Alonso, merged 2026-11-30, "Fix externalized core signing, stream-0 weight race, export I/O, and multi-host tuning") introduced the tuning/reconcile machinery behind #631/#651 — the context in which the asymmetric-b12x problem shows up (see #668's and #651's diagnosis). #675 is a small, orthogonal piece of the same multi-host correctness story.
- 555db719 (#648, merged 2026-11-30, "Migrate ignition runtime patches and preparation onto public b12x contracts") is what makes runtime_patches.apply() pull in b12x.preparation via workers.register_hooks() (ignition/runtime_patches/init.py:106-119) — the import path #675's description names; so #675 depends on #648's shape but is not undone by it.
- f377dc85 (#543, Luke Alonso, 2026-11-26) last touched the
b12xlines of ignition/cli/serve.py before this PR besides this PR itself; 9a719611 (Martin Vit, 2026-10-17) last touched the recipe-b12x path in serve.py ("Declare Kimi K3's b12x settings in its recipe"). - Other open PRs touching the same files but not the same behavior: #394 (voipmonitor, host_ranks.py + test_host_ranks.py, rank export workspace), #671 (kbenkhaled, host_ranks.py, memory budgets for <=16 GiB devices), #475 (brandonmmusic-max, serve.py, CheckpointOverlay), #560 (WynnD, serve.py, metrics), #533 (roobyz, serve.py, context cap). None conflicts logically; #394/#671 could conflict textually in host_ranks.py.
- Direction-of-travel signal: reviewers in this area (autobot review on #668, subtractions 3 and 4 dropped) explicitly endorsed keeping a boundary validation like
_validate_b12x_environmentbefore os.environ updates, which favors #675's validation function existing at all.
#11 [medium] Leads: orientation-packet items followed or set aside (with reasons)
Orientation-packet leads, each followed or explicitly set aside (so a later reader does not have to re-check them):
FOLLOWED AND MATERIAL
- #668 (open PR) — the overlapping implementation of the same fix; see entry "Related work: open #668 …". Competing/duplicating, not stacked.
- #667 (merged PR, 1fbcc3c9) — #675's merge base, most recent change to host_ranks.py; see entry "Recent activity".
- #648 (merged) — makes runtime_patches.apply() import b12x.preparation via workers.register_hooks() (ignition/runtime_patches/init.py:106-119), the mechanism #675's description names.
- #651 (open issue) + #631 (closed issue) — the multi-host GLM-5.3 selection-divergence reports; #651 is the failure that #668 says peer b12x env asymmetry contributes to. #675 cites neither.
- #597 (open PR, "Key compiled forward sharing and Inductor validation by GPU name") — touches ForwardCache keying in aot.py, i.e. the same cache-identity surface #668 also touches; irrelevant to #675's files except that a future merge of #668+#597 is where that overlap bites. Not relevant to #675 itself.
- #671 (open PR, memory budgets for ≤16 GiB integrated devices) and #394 (open PR, rank export workspace) — both edit ignition/preparation/host_ranks.py, so textual-conflict neighbours only; different behavior. No logical overlap with #675.
- #676 (open issue, same author, opened one minute after #675) — context on the author's hardware, and it names B12X_W4A16_A4_PREFILL=1 in its export config.
- #237 (merged) and commit 9a719611 — provenance of Recipe.b12x_environment as a kernel-selecting recipe field.
CHECKED, NOT RELEVANT TO #675
- #395 (open issue, CUDAGraph.reset workspace) — mentions host_ranks.py only incidentally; CUDA-graph lifecycle, unrelated.
- #581 (merged, USE_NODE_PRIORITY on exported CUDA graphs) — earlier host_ranks.py-adjacent work but about exports, not the rendezvous env.
- #584, #512, #623, #624 — runtime_patches/triton test premises; #624 fixed stale Triton assertions, which is background for why the CPU suite is green, not a dependency of #675.
- #310 (open issue, two-node DeepSeek V4 Flash Inductor warmup) and #628/#640 (helios offload/persistent workers) — same words in titles, different subsystems.
- #670 (open PR, THINK_TAGS reasoning + tool parser) — only shares test_host_ranks.py/host_ranks.py by coincidence of the orientation matcher.
- helios/src/execution/rendezvous.rs (and its knock()) — a separate Rust, binary-framed serving rendezvous (ADMITTED byte at :25/:155/:199); #675 changes only the Python JSON control channel, so no Helios change or rebuild is required by this PR.
- .github workflows — only python-cpu.yml runs Python tests (pytest tests/ -q, ubuntu-24.04, CUDA_VISIBLE_DEVICES=""); nothing ran on 92b977d.
- No documentation file in the diff; docs/multi-host.md and docs/cli-design.md were read and are silent about the peer env requirement (entry "Project fit").