#1 [high] Change: #672 what it does, size, files
PR #672 "fix(helios,roce): select RoCEv2 IPv4 GID index per HCA", author nepenth (FIRST_TIME_CONTRIBUTOR), opened 2026-12-02 03:04, open/ready-for-review, 0 reviews, 0 comments, no CI checks on head c582b10. Base main. Size 4 files +187/-40.
Diff facts (from pr_diff / result 2):
- helios/src/execution/roce_fabric.rs (+84/-24)
Fabricgainspub gid_indices: Vec<u32>(aftergid_index) at ~line 224;Topologygainspub gid_indices: Vec<u32>(~line 311).discover_inrewritten: previously computed ONE global index (PREFERRED_GID_INDEX=3 if every active device had RoCEv2 IPv4 GID there, else the lowest index where ANY device had one), then filtered out devices that did not have the GID at that index. Now a per-device closurepick_gid_index(name)= index 3 if valid on that HCA else that HCA's own lowest index;filter_mapdrops only devices with no RoCEv2 IPv4 GID at all; then.take(MAX_DEVICES). Devices now carry(name, gid, netdev).- New behaviour: returns Err "no active RDMA device has a RoCEv2 IPv4 GID" if the device list comes out empty (previously the error came from the index scan).
Fabric::gid_indexis now set todevices[0].1— i.e. the FIRST remaining device's index (previously the global chosen index).- New
Fabric::gid_index_for(&self, index: usize) -> u32with fallback toself.gid_indexwhengid_indicesnot populated (line ~1007). Fabric::topology()now emitsgid_indices: clone of self.gid_indices iflen() == endpoints.len(), elsevec![self.gid_index; self.endpoints.len()].- New test
mixed_per_hca_gid_indices_discover_both_ipv4_rails(roce_fabric.rs ~1181-1216): device roceP2p1s0f0 with RoCE v2 IPv4 at index 3, rocep1s0f0 with IPv6 link-local RoCE v2 at 3 and IPv4 at 5; asserts endpoints.len()==2, fabric.gid_index==3, gid_indices==[3,5], gid_index_for 3/5, and after topology(): rails==2, topology.gid_indices==[3,5]. - Other Fabric literals in existing tests get
gid_indices: Vec::new().
- helios/native/roce_proxy.c (+34/-8)
roce_hca_tgainsint gid_index;open_hcauseshca->gid_indexforibv_query_gid;connect_qpsetsrtr.ah_attr.grh.sgid_index = (uint8_t)hca->gid_index(wasc->gid_index).- New exported
roce_create_with_gids(...)takingconst int* gid_indices; validates non-NULL pointer plus each index 0..=255 (error string "invalid roce gid index %d for HCA %d"); setsc->gid_index = gid_indices[0](context-level field kept). - Old
roce_create(world, rank, hca_names, n_hca, gid_index, ...)retained as wrapper: bounds-checks n_hca, fillsint gids[ROCE_MAX_HCAS]with the single index, delegates.
- helios/src/execution/roce.rs (+10/-4)
- FFI extern block now declares
roce_create_with_gidsinstead ofroce_create(the Rust side never calls the wrapper). - RoceTransport::create builds
gid_indices: Vec<c_int>fromtopology.gid_indicesiflen() == pointers.len(), elsevec![topology.gid_index; pointers.len()].
- FFI extern block now declares
- flare-cli/src/doctor/spark.rs (+59/-4)
inspectenumerates endpoints with index and usesfabric.gid_index_for(idx)to readports/1/gid_attrs/ndevs/{gid_index}per endpoint; collectsready_gids; detail line prints "RoCEv2 GID index N" when uniform or "RoCEv2 GID indices [a, b]" when mixed.- New test
cx7_readiness_handles_distinct_per_hca_gid_indices(~spark.rs:539-576) with roce0/enP2p1s0f0np0 @idx3 and roce1/enp1s0f0np0 @idx5, asserts Pass and detail contains "2 of 2 active CX7 devices" and "indices [3, 5]".
#2 [high] Why: #143 issue and #369 prior fix for the same GID-index problem
#143 (open, bug, area:preparation + area:rocenante, priority:P2, triage:investigate, by CaptKitCarson 2026-10-29): "GB10 TP2 export: b12x RoCE prep hard-defaults to GID index 3 and fails when the IPv4 RoCE v2 GID is elsewhere (Helios already scans)". Two DGX Spark GB10, TP2 over CX-7. Reports GID tables where IPv4 RoCEv2 sits at idx 5/6 and index 3 is an IPv6 GID or empty; position depends on how many IPv6 addresses the interface holds. Reporter later corrected themselves: index 3 was EMPTY at failure, not IPv6.
- Comment 2026-11-19 yatesdr: root cause in preparation (
create_roce_runtime, ignition/preparation/collectives.py:50) — b12x uses B12X_ROCE_GID_INDEX else NCCL_IB_GID_INDEX else 3. Serving does not depend on it: Helios picks the index itself (discover_in, roce_fabric.rs). "The fix is for preparation to use the Helios selection." - CaptKitCarson's tables (2026-11-19) show all active ports with IPv4 RoCEv2 at index 5; index 3 = second link-local IPv6 RoCE v2. They state: "Using the Helios selection in preparation ... covers all three states we've seen (3 empty, 3 = IPv6, IPv4 at 5 or 6)."
#369 (merged 2026-11-21, by yatesdr, COLLABORATOR, +20/-0, 3 files: heliopause/src/python.rs, ignition/preparation/collectives.py, tests/preparation/test_collectives.py): flare_heliopause.roce_gid_index() returns the index from the SAME Rust discovery so "the rule exists once"; create_roce_runtime passes it to roce.AllReduce. Explicitly notes: "b12x still opens every active device with a non-zero GID at the chosen index, while serving keeps only devices with a RoCE v2 IPv4 GID there, so the two device sets differ when an active device holds a GID of another type at that index." That residual per-HOST single-index assumption is exactly what #672 removes on the serving side (and #369 keeps it on the prep side — prep still takes ONE index from roce_gid_index()).
- #369 evidence was asymmetric: hardware verified only for hosts where index 3 works; the index-5 case "still needs the reporter's run". Tested on 2 DGX Spark with GID index 3 both sides; no reproduction of the non-3 case.
- #369 is the direct predecessor of #672: #672 changes the discovery it depends on (
Fabric::gid_indexis now devices[0]'s index, not a host-global choice) and adds per-HCA indices. #672 does NOT touch heliopause/preparation, so prep (roce_gid_index()) presumably still sees one index per host — a possible remaining gap; verify.
#3 [high] Undeclared / not-carried-through: prep still single-index, vendored roce_proxy.c forked, docs singular
(a) flare_heliopause.roce_gid_index() (heliopause/src/python.rs:692-704) returns fabric.gid_index, and ignition/preparation/collectives.py:83 passes it as gid_index= to b12x. This is a SINGLE index for the host, fed to roce.AllReduce. Its doc comment (python.rs:692-693) explicitly states the OLD rule: "3 when every active device has a RoCEv2 IPv4 GID there, otherwise the lowest index at which one does". #672 changes the underlying rule (Fabric::gid_index is now devices[0].1, the first remaining device's own index) but does NOT update this doc comment or add a per-HCA path to preparation. So after #672, preparation would take devices[0]'s index for every b12x device — the same class of rung-mismatch the PR says it fixes for serving, on the prep side. Not declared in the PR description. Also #369's author (yatesdr) designed roce_gid_index() to keep "the rule exists once"; #672 changes the rule without touching that consumer.
(b) #672 declares roce_create_with_gids in the Rust FFI extern block (helios/src/execution/roce.rs:46) and calls it (roce.rs:205), while roce_create remains at helios/native/roce_proxy.c:587 with no caller. Line exposure: helios/src/execution/roce.rs:11 comment still says "native/roce_proxy.c, the proxy the kernels' ABI was..."
(c) helios/native/roce_proxy.c:6-8 header still says "Vendored from FlashInfer's pinned preparation dependency (flashinfer/experimental/b12x/comm/roce/_roce_proxy.c, proxy ABI 14). Keep the source below identical so preparation and serving share the transport ABI." helios/native/roce_proxy_dlopen.c:7-9: "keeping the vendored roce_proxy.c byte-for-byte identical to FlashInfer". #672 edits that file (adds roce_create_with_gids, per-HCA gid_index) with no upstream FlashInfer revision cited, so the vendored copy now diverges from the pin. This is the same invariant #643's review treated as a blocker and #649 (open) is currently blocked on ("the vendored transport is forked ahead of its unmerged upstream").
(d) docs drift: flare-cli/src/doctor/spark.rs:250-256 fallback message still says "at RoCEv2 GID index {}" (singular) using fabric.gid_index even when indices are mixed. docs/cli-design.md:1695-1698 says "The report uses serving's RoCEv2 GID index and lists ..." (singular). docs/roce-ring.md:161 ("Preparation and serving use proxy ABI 14"), :361-364 (vendored parity rule) and :405 (ABI troubleshooting) untouched; docs/multi-host.md:42-43, 102-130 untouched.
(e) CI: .github/workflows/native-serving.yml:63 runs cargo test ... helios --features runtime-core,server (execution::roce_fabric::tests is NOT feature-gated — helios/src/execution.rs:18 pub mod roce_fabric; — so the new roce_fabric test DOES run in CI). But execution::roce is #[cfg(feature = "roce")] (execution.rs:16-17) and the only roce job (:101-113) runs cargo check --features roce,rdma — no --features roce TESTS anywhere in CI, so the roce.rs FFI/path change and the C compile of roce_create_with_gids are compiled (build.rs:67-77 via helios/build.rs) but the roce.rs test at roce.rs:394 is not executed by CI. Head c582b10 has no checks at all (orientation packet).
#4 [high] Related work: #369, #143, #151 — which mismatch #672 does and does not close
#369 (merged 2026-11-21, yatesdr) made preparation take Helios's per-HOST index: flare_heliopause.roce_gid_index() -> create_roce_runtime(gid_index=...) -> roce.AllReduce (heliopause/src/python.rs:692-704, ignition/preparation/collectives.py:83). Its own description flags the residual hole: "b12x still opens every active device with a non-zero GID at the chosen index, while serving keeps only devices with a RoCE v2 IPv4 GID there, so the two device sets differ when an active device holds a GID of another type at that index."
#672 closes part of that hole on the serving side only (serving now keeps devices with the GID at different indices; preparation still uses ONE index for all b12x devices). So the class of mismatch described in #151 (prep opened 2 rails / 2 HCAs, runtime dropped one) is fixed for the case "HCA B has its IPv4 GID at index 5, HCA A at 3", but remains possible when preparation and serving disagree on which devices are selected for other reasons (e.g. a device with a non-zero GID of another type at the chosen index — #369's stated residual difference).
Issue #151 (open, triage:verify-for-closure) is the closest match to #672's "Why": "GB10 TP2 serving: first request times out on RoCE collective (HCA 0, sequence 1) when both CX-7 rails are active; single rail works" — but note that in #151 BOTH rails were at GID index 3 (evehour's env: "RoCE v2 IPv4 GID index 3" for both functions), so #672's mechanism (different indices per HCA) does NOT explain #151's report. #151 was instead pointed at #232 (merged 70069281, rail planning) by original-el8 on 2026-11-18. #672 does not cite or reference #151 or #143 in its description.
Issue #143 (open, area:preparation/area:rocenante, P2) is the prep-side version, closed for prep by #369; #672 addresses the serving-side variant of the same rule.
#6 [high] Process: no CI, no reviews, untriggered; what CI would and would not cover
#672 as opened: state "open, ready for review" (orientation packet), 0 comments, 0 reviews, no labels, no linked issue, no CI checks on head c582b10 (packet: "CI on the head commit: no checks"). Opened 2026-12-02 03:04, last updated same minute — no follow-up activity, no Autobot case-file comment (unlike #506/#643/#649, which all received an automatic case file + review). Age at case-file time: hours, not days.
What CI would run if triggered (.github/workflows/native-serving.yml):
:63cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server— this compiles and runsexecution::roce_fabric::tests(module is not feature-gated: helios/src/execution.rs:18), so the newmixed_per_hca_gid_indices_discover_both_ipv4_railstest and the threegid_indices: Vec::new()fixture updates are covered.:73cargo test --manifest-path flare-cli/Cargo.toml— does NOT enable therocefeature, butflare-cli/src/doctor/spark.rsis not feature-gated, so the newcx7_readiness_handles_distinct_per_hca_gid_indicestest runs here.:101-113therdmajob runs onlycargo check --features roce,rdma, which compiles helios/native/roce_proxy.c through helios/build.rs:67-77 but executes nothing.execution::roceis#[cfg(feature = "roce")](execution.rs:16-17), so the roce.rs change at roce.rs:199-210 and its test at roce.rs:394 are only type-checked in CI, exactly the gap the #643 and #577 reviews called out. So: two of the four changed files' new tests are CI-covered; the C change and the FFI path are compile-checked only.
Repo process constraints that apply to the commit (docs/design-review.md):
:298requires aDesign-Signed-Off-By: <identity>; design-review=<4 hex>trailer, enforced by.githooks/commit-msg:15. Whether c582b10 carries one was not verifiable from the tools available (no commit-message body view); #577's review treated a stale digest as a blocker.:252-259"Multi-GPU collective execution is mandatory for TP dispatch and transport changes … Replacing or reordering cross-rank launch, commit, cancellation, or drain paths inhelios/src/execution/{threaded,parallel,roce}*requires … live multi-GPU execution of real collective graphs". #672 toucheshelios/src/execution/roce.rs(the FFI call, not the launch/commit/drain paths) androce_fabric.rs(not named in that list). The PR does claim live 2× GB10 TP2 serving, so the requirement is arguably met, but with no commands or logs.AGENTS.md:234maps multi-host transport changes todocs/orbit.md,docs/multi-host.md,docs/roce-ring.md— none of which #672 updates.
#7 [high] Project fit: charter rules and doc contracts that bear on the change
Charter lines that bear on #672 (read_charter):
- "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210). Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)." #672 is a bug fix and does address a root cause (per-HCA index), but its evidence line is "cargo test …— passed.cargo test …— passed." plus a narrative hardware paragraph; no baseline, no command, no numbers.AGENTS.md:103-112requires each material claim tied to a command, configuration and result, and the #506 review explicitly rejected "All 10 focused tests passed"-style evidence. - "Solve the right problem in the right place … Look for the smallest footprint in shared code" (#404). The change is in the discovery rule, the transport FFI and the proxy — the places the mismatch actually occurs; no new flag, env var, or config key is added (checked: the diff adds no CLI/config surface).
- "Be explicit and pin everything. No magic defaults" (#215). The change keeps
PREFERRED_GID_INDEX = 3as a per-HCA preference (roce_fabric.rs:63-64, 407-413) — the same pinned default b12x uses — rather than introducing a new one. - "Keep the runtime small and model-agnostic" — the change is transport/fabric only, no model branch. Aligned.
- Supported hardware: the PR targets DGX Spark / GB10 / SM121 dual-rail ConnectX-7, which the charter names explicitly ("SM120/SM121 workstations and DGX Spark"). Aligned.
- Docs the repo treats as the contract for this area:
docs/multi-host.md:42-43("Active RoCEv2 ports with IPv4 GIDs"),docs/multi-host.md:102-130(rails, dual-rail, PCIe links),docs/roce-ring.md:161(proxy ABI 14),docs/roce-ring.md:360-364(vendored-parity rule),docs/cli-design.md:1695-1714(doctor CX7 check wording and the "four DGX Sparks … RoCEv2 GID index 3" qualification). #672 updates none of them, while changing the doctor's output text and the rule those docs describe as "serving's RoCEv2 GID index".
Non-goal check: nothing here is rack-scale/disaggregation, CPU backend, or new hardware support; it is a defect fix inside an already-supported deployment.
#8 [high] Claims and evidence: what is verified in the diff and what is only asserted
Claims in the #672 description and what backs each (all from read_item 672 / pr_diff):
- "cargo test … — passed. cargo test … — passed." (identifiers blank in the rendered body). No command, no crate/feature, no counts. The two new tests are listed; the feature-gated
execution::rocesuite is not mentioned. Compare #643 ("30 passed", exact command) and #577 (1,728/1,728 on ARM64) — the bar the reviewers here have applied. - "End-to-end hardware verification on 2× GB10 (SM121) dual-rail ConnectX-7 … eliminated the sequence-1 RoCE collective timeout and brought up dual-rail TP2 serving (verified with GLM-5.3-Flash-FP4-Local, greedy parity, C1–C4 concurrent benchmarks, and full eval suite)." No throughput numbers, no before/after, no core id, no command. This is the only evidence for the actual user-visible fix, and it is unverifiable as written. It is, however, exactly the failing scenario reported in #151 (two active CX-7 rails, sequence-1 timeout, HCA 0) and matches #151's hardware (GLM-5.3-Flash-FP4-Local, 2× GB10).
- "…dropped any active HCA whose IPv4 RoCEv2 GID lived at a different index" — verified in the diff:
discover_inpreviously filtered with.filter(|name| roce_v2_ipv4(name, gid_index))against one global index; now per-device (filter_map+pick_gid_index). True before/after. - "multi-host collectives timed out on sequence 1 due to the rail/flag-offset mismatch" — plausible and consistent with the proxy layout comment (roce_proxy.c:14-21:
flag[src][slot][rail]), and with #151's "HCA 0, at sequence 1" symptom; ranks that plan different rail counts index the flag array differently. Not demonstrated in the PR. - "Add
roce_create_with_gidswith bounds validation (…), while keepingroce_createintact as a backward-compatible wrapper." Verified in the C (roce_proxy.c:531-601). Note the "backward-compatible wrapper" is dead code in-tree: the only caller, the Rust FFI, was switched toroce_create_with_gids(roce.rs:46, 205), and nothing else in the repo callsroce_create(grep: only roce_proxy.c:587/599). - "Doctor alignment … display either
index N(uniform) orindices [a, b](mixed)." Verified (spark.rs:187-200). Undeclared: the terminalWarnfallback at spark.rs:250-256 still reports a single "RoCEv2 GID index {}". - "Carry
gid_indicesonFabricandTopology(withgid_index_forfalling back togid_indexfor backward compatibility)" — verified, with the fallback beinggid_indices.get(index), i.e. any short/empty vec silently degrades to the single global index (roce_fabric.rs:1006-1011, 1024-1031; roce.rs:199-203). Tests for that fallback path are implicit only (existing fixtures setgid_indices: Vec::new()).
#9 [high] Reach: behaviour changes the description does not spell out; no mixed-build guard; ABI untouched
Behaviour changes a reader should know, from the new discover_in (helios/src/execution/roce_fabric.rs:404-475 in PR head) compared with main:
- Which devices are kept changes on every multi-HCA host, not only the mixed-index case. Before: keep devices whose RoCEv2 IPv4 GID is at the ONE global index (3 if all had it there, else the lowest index where ANY device had it). After: keep every device that has a RoCEv2 IPv4 GID at any index, each with its own index. On CAP's real tables (#143 comment 2026-11-19) —
rocep1s0f0/roceP2p1s0f0with IPv4 RoCEv2 at index 5 and link-local IPv6 RoCE v2 at 3 — both rules pick 5, so no change there. They diverge when one HCA has the IPv4 GID at 3 and another at 5: main drops the second HCA (this is the bug), #672 keeps both. Fabric::gid_indexsemantic change. It used to be "the host's chosen index" (and is documented that way in heliopause/src/python.rs:692-693). It is nowdevices[0].1, i.e. whatever index the first device in name order happens to use. Consequences beyond the doc comment:flare_heliopause.roce_gid_index()→ignition/preparation/collectives.py:83(gid_index=for b12x) now reports the first device's index for the whole host. #369's whole point was that prep and serving share ONE rule; after #672 the serving rule is per-device and prep still needs one, anddevices[0]is an arbitrary pick of that one.- The doctor's terminal fallback (spark.rs:250-256) and
docs/cli-design.md:1695-1698still say "the RoCEv2 GID index".
- Ordering is unchanged (names sorted,
MAX_DEVICES = 4cap), soEndpointindices still line up withTopology.hcasandgid_index_for(idx)(used by the doctor with the index fromfabric.endpoints.iter().enumerate(), spark.rs:153-165). The rendezvousencode/decodeformat is untouched (roce_fabric.rs:531/563), so mixed builds do not reject each other on the wire here — a rank without #672 that drops the second HCA still plans a different rail count than a rank with it. #232 handled a comparable mixed-build hazard by adding a field that older builds reject; #672 adds no such guard, so a mixed cluster fails at connect with a rail-count mismatch rather than refusing loudly. - Error path. New:
return Err(…)when no device qualifies (roce_fabric.rs:427-429). Same message text as before. - Native ABI.
roce_create_with_gidsis a new exported symbol;roce_createkeeps its signature. NoROCE_ABI_VERSIONchange (still 14, roce.rs:23), noroce_blob_t/layout change, so exported cores and the kernel-visible ABI are unaffected — the only wire effect is thatsgid_indexper HCA now equals that HCA's own GID index (roce_proxy.c:680). - Reach of the SQL index choice.
gid_indexis used byibv_query_gidat QP setup (roce_proxy.c:461) and as the SGID for the QP (roce_proxy.c:680); the destination GID comes from the peer's blob (peer->gid[r], roce_proxy.c:650/679), so peers may legitimately use different indices — the PR's premise.c->gid_indexis retained but is now only a record ofgid_indices[0]; nothing reads it after the change (grep shows no other use).
#10 [high] Recent activity: builds on #369/#506/#666; reverses #643's vendored-parity restore; overlaps open #576/#577/#649
Recent commits in the touched areas and how #672 sits against them (from search_history on main and the packet):
- 2026-12-01 5c0d9c67 (#666, original-el8, merged): extended
Endpointwithportand changedindex_pairing_valid/best_matchingranking (physical-port separation). #672'sdiscover_inrewrite sits directly on top of that ordering; the new test'sdevice()/endpoint()helpers are the ones #666/#232 introduced (endpoint("roceP2p1s0f0", "10.200.2.11/24")). No conflict in principle, but #672 is a small patch on a file that has had three large planner rewrites in two weeks (#232 2026-11-14, #666 2026-11-30/12-01, #369 2026-11-21 on the prep side). - 2026-11-30 ec957867 (#643, lukealonso): re-vendored roce_proxy.c byte-for-byte from merged FlashInfer 2a07747b8 to restore the parity invariant after review. #672 edits the same file 1 day later, changing
roce_ctx_t/roce_hca_t/open_hca/connect_qp/roce_create. That is a fresh reversal of the invariant #643 was merged to restore. - 2026-11-28/12-01: open #576 (fordbmorris,
pin_high_capacity_cpusin roce_proxy.c) and #577 (fordbmorris, RING_WINDOW/roce_blob_t + roce.rs blob assertion) touch the same two files; #649 (FujitsuPolycom, open) adds opcodes 7-9 to roce_proxy.c. Any two of these rebasing on the other is routine here, but #672's C hunk touchesroce_create's signature area that #577's blob-size change also touches indirectly. - 2026-11-28 (#506, dbotwinick, merged): created flare-cli/src/doctor/spark.rs and pinned two tests:
cx7_readiness_requires_a_live_ipv4_address_at_the_serving_gid_index(spark.rs:379) and the end-to-end Pass/Warn test at spark.rs:363 that callsdiscover_in(&sysfs.join("class/infiniband"), prefix, …). #672 changes what those fixtures imply (a per-device index) but only adds a new test; the existing two still pass because their fixtures put the GID at one index. - 2026-11-19/21 (#369, yatesdr): the prep-side single-index consumer described in entry 3; #672 is the serving-side successor but leaves that consumer on the old rule.
- 2026-11-18 original-el8 on #151: pointed the dual-rail startup failure at merged #232 as a "candidate fix … not proof that this exact fabric is repaired", marked #151
triage:verify-for-closure, and asked for a retest. #672's narrative claims to have done that retest on the same class of hardware with the same model, but it does not cite #151 and does not appear in #151's thread. That is a loose end a reviewer would want joined up.
#12 [high] Leads followed: each orientation item and whether it is relevant to #672
Leads from the orientation packet and what each turned out to be:
- #369 (merged) — the prep-side predecessor; the same rule, one index per host (entry 2/4). Directly relevant: #672 changes the rule #369's
roce_gid_index()wrapper exposes. - #143 (open issue) — the prep-side report of the same class of defect (GID index not 3). Not fixed by #672 (prep path untouched). Relevant context.
- #151 (open issue) — the serving-side report this PR's hardware narrative describes (2× GB10, dual CX-7, "timeout … HCA 0, at sequence 1", GLM-5.3-Flash-FP4-Local). BUT #151's environment has both rails at GID index 3, so #672's mechanism (different indices per HCA) does not explain that report; #151 is under
triage:verify-for-closurepointing at #232. #672 neither cites #151 nor posts to it. Relevant, and the discrepancy is worth flagging. - #666 (merged) — the planner rewrite #672 patches; helper functions and ordering come from it. Also the source of the
Fabric/Topologyshapes #672 extends. - #506 (merged) — the author of flare-cli/src/doctor/spark.rs and of its "serving's GID index" wording (docs/cli-design.md:1695-1698); its review rounds are the precedent for how this file's evidence is judged.
- #232 (merged) — route planning over direct cables, including the mixed-build wire guard #672 does not add; original-el8's comment on #151 points there.
- #643 (merged) — byte-identical re-vendor of roce_proxy.c, one day before #672 edits it. Central to the vendored-parity concern.
- #649 (open, FujitsuPolycom) — adds opcodes 7-9 to roce_proxy.c; its review states the same parity blocker ("forked ahead of its unmerged upstream"). Overlapping file, no signature overlap.
- #577 (open, fordbmorris) — roce_proxy.c + roce.rs; changes
roce_blob_tsize androce.rsblob assertions. Overlaps both of #672's C/Rust touch points; whoever lands second rebases. - #576 (open, fordbmorris) — roce_proxy.c CPU pinning; overlapping file only.
- #633 (closed) — earlier CPU-pinning attempt to the same file, superseded by #643/#576. Not relevant beyond history.
- #589 (merged, lukealonso) — created
roce_proxy_dlopen.c, the file that#includes roce_proxy.c and therefore inherits any ABI drift; not otherwise relevant. - #251 / #279 (merged) — ABI 11 and ABI 14 alignment of the vendored proxy. History of the parity invariant; no functional overlap.
- #325 (merged) — ring relay flag ordering in roce_proxy.c. No overlap.
- #215 (closed) — "track FlashInfer main instead of a pinned commit", closed; the charter cites it as the pin-everything rule (#215). Directly explains why forking the vendored file is treated as blocking rather than routine.
- #34 (open issue) — 2-hop relay forwarding via flow label; unrelated to GID selection. Noted, not relevant.
- Not followed further: #137, #435, #222, #397, #126 (mentions only, all through #143/#151's link graph and none about GID-index selection).
#13 [high] Research summary
Case file for #672 is complete: every angle has scratchpad entries (12 notes) and every orientation lead is followed or dismissed with a reason.
What I verified. The diff does what the "What Changed" section says on the discovery/transport/doctor paths (per-HCA pick_gid_index in discover_in, gid_indices on Fabric/Topology, roce_create_with_gids + per-HCA sgid_index, doctor printing index N or indices [a, b], two new tests). No ABI bump, no wire-format change for cores or rendezvous records.
What the description does not say (high-importance findings). (1) Fabric::gid_index is now devices[0].1, and its only other consumer, flare_heliopause.roce_gid_index() → ignition/preparation/collectives.py:83 (not opened), still needs one index per host and still documents the old rule (heliopause/src/python.rs:692-704) — the preparation half of the mismatch that #369 (merged 2026-11-21) was meant to make single-rule is left on an arbitrary per-host pick. (2) The edit to helios/native/roce_proxy.c breaks the byte-identical-to-FlashInfer invariant that #643 was merged to restore one day earlier and that #649/#577 are currently blocked on; no upstream FlashInfer revision is cited. (3) roce_create is kept as a "backward-compatible wrapper" with no remaining caller (the Rust FFI switched to roce_create_with_gids). (4) No mixed-build guard: two ranks with and without #672 plan different rail counts, unlike #232 which added a field older builds reject. (5) Docs the repo treats as the contract (docs/cli-design.md:1695-1698, docs/roce-ring.md:161,361-364, docs/multi-host.md) are untouched, and the doctor's terminal Warn fallback (spark.rs:250-256) still prints a single index.
Cross-references worth carrying. #151 is the closest user-visible report (2× GB10, dual CX-7, "HCA 0, sequence 1", GLM-5.3-Flash-FP4-Local) but its environment has both rails at GID 3, so #672's mechanism does not explain it; #672 neither cites it nor posts to it, leaving original-el8's triage:verify-for-closure retest request open. #143 documents the same defect class on the prep side and is not fixed here. #506 authored the doctor file and its "serving's GID index" wording; #666 authored the planner ordering #672 patches.
Evidence and process. CI has run nothing on head c582b10; if triggered, the helios non-roce job and the flare-cli job would run both new tests, but the only --features roce job is cargo check, so the C change and the FFI path are compile-checked only — the gap #643/#577 reviews flagged. The evidence lines are bare "cargo test … — passed" and an unquantified hardware paragraph, below the bar AGENTS.md:103-112 and the charter's #210/#397 rule set, and no Design-Signed-Off-By could be confirmed.
#14 [high] File map with line citations for the changed sites and their consumers
Compact map for the report body (PR head c582b10 unless stated):
- helios/src/execution/roce_fabric.rs —
MAX_RAILS=2:60,MAX_DEVICES=4:62,PREFERRED_GID_INDEX=3:63-64,GID_TABLE=16:65;Fabric { gid_index, gid_indices, traffic_class, endpoints }:221-228;Topology { hcas, gid_index, gid_indices, traffic_class, rails, routes, direct, shape, links }:306-321;discover_in:386-475 (newpick_gid_index:407-413, per-devicefilter_map:414-426, empty→Err :427-429,gid_index = devices[0].1:430);discover():517-529;encode/decode:531/:563 (unchanged);Fabric::gid_index_for:1006-1011;Fabric::topologygid_indices :1024-1035; new testmixed_per_hca_gid_indices_discover_both_ipv4_rails:1181-1216; existing fixtures gaininggid_indices: Vec::new():1565-1567, :1680-1682, :1832-1834. - helios/native/roce_proxy.c — vendoring header :6-8;
roce_hca_t.gid_index:259;roce_ctx_t.gid_index:268;open_hcaibv_query_gid(..., hca->gid_index, ...):461;roce_local_blobgid copy :650;roce_create_with_gids:531-584 (bounds check loop :547-552,c->gid_index = gid_indices[0]:558, per-HCA assign :577);roce_createwrapper :587-601;connect_qpgrh.sgid_index = (uint8_t)hca->gid_index:680; flag layoutflag[src][slot][rail]documented :14-21. - helios/src/execution/roce.rs — extern block
roce_create_with_gids:46-61;PROXY_ABI = 14:23; ABI acceptance :126-136;RoceTransport::openbuildsgid_indices:199-203 and calls :204-221; test fixtureTopology { …, gid_indices: Vec::new() }:394-397. - flare-cli/src/doctor/spark.rs —
inspectloop withenumerate+fabric.gid_index_for(idx):153-165;ready_gids:150/:179; label :187-200; terminal Warn still singular :250-256; new testcx7_readiness_handles_distinct_per_hca_gid_indices:539-576; pre-existing tests that still cover the single-index path :363 (end-to-end viadiscover_in), :379 (…requires_a_live_ipv4_address_at_the_serving_gid_index). - Unchanged consumers: heliopause/src/python.rs:692-704 + ignition/preparation/collectives.py:83 (prep, single index); flare-cli/src/cluster.rs:196, :238 and flare-cli/src/fabric.rs:40 (
discover()→ endpoints only, gid index unused there, so fabric TCP transfers are unaffected by the new field); selene/src/shared/rdma.rs:161-202 (independent per-device GID selection for the Selene data channel, unrelated rule).
#5 [medium] People: nepenth is a first-time contributor; area owners and prior authors of each touched file
Author: nepenth, GitHub association FIRST_TIME_CONTRIBUTOR; orientation packet: 0 other PRs/issues in the last 180 days (0 merged, 0 closed, 0 open). Single commit c582b10 on branch fix/roce-per-hca-gid. Discord handle not given (other RoCE PRs cite one, e.g. #369 "Discord: D-Rock", #643 "Discord: lukealonso").
Who works in these areas (orientation packet, commits on default branch last 180 days):
- helios/src: Luke Alonso (236), Martin Vit (52), yatesdr (49).
- flare-cli/src: Luke Alonso (21), eugr (4), yatesdr (4).
- helios/native: Jason Cook (4), Luke Alonso (4), jasonc (2). Named owners of the touched code specifically:
- helios/native/roce_proxy.c is a vendored FlashInfer file; recent changes by lukealonso (#643 re-vendor), iein (#325), jetnet (#279), original-el8 (#251), Jason Cook/jasonc (ABI 7/10/11 series, 2026-10-13..10-30), FujitsuPolycom (#649 open).
- helios/src/execution/roce_fabric.rs planner: original-el8 (#232, #666), Jason Cook (#666 review era), yatesdr (#369 — the per-host GID index that this PR follows).
- flare-cli/src/doctor/spark.rs: dbotwinick (#506, the file's author), and the file has already been through three Autobot review rounds in #506.
- Original reporter of the underlying problem: CaptKitCarson (#143), also a hardware validator on #151/#232; evehour (#151 reporter); jannerchang (independent #151 confirmation). None has engaged with #672 (0 comments).
Charter: "Priority contributors (@voipmonitor, @original-el8, @lukealonso) carry extra weight"; nepenth is not among them, so the PR gets judged on its merits with an explicit review spelling out what is missing (#229).
#11 [medium] Community: no engagement at all on #672; demand documented in #143 and #151
Community: #672 has 0 comments, 0 reviews, 0 reactions, no labels, and did not receive the automatic flare-autobot case-file comment that #506, #643, #577 and #649 all got within minutes of opening (see those PRs' first comment). So no automated review has run against it at case-file time.
Interest the underlying problem has drawn elsewhere, which a reader can use to judge demand:
- #143 (open since 2026-10-29, P2, triage:investigate, area:preparation+area:rocenante): reporter CaptKitCarson, root-caused by yatesdr, fixed for preparation by #369 (merged 2026-11-21). Still open.
- #151 (open since 2026-10-30, P2, triage:verify-for-closure): reporter evehour, independently confirmed by jannerchang (2026-11-10) and by CaptKitCarson (2026-11-02, but reporting the opposite: two rails working for them). jannerchang proposed a sysfs bind-mount workaround and asked for a
--roce-hcaoption; evehour asked for rail selection. Neither received a maintainer commitment; original-el8 answered that #232 was a candidate fix. - The Rails/HCA/GID topic has produced at least four separate transport PRs in three weeks (#232, #369, #666, and now #672) plus the ABI series (#251, #279, #643, #649), so the area is active and has multiple simultaneous contributors — a first-time contributor landing a change in
roce_proxy.cwill be measured against that crowd's evidence bar (#643's and #577's reviews are the template: parity with pinned upstream,--features rocetests, liveflare runvalidation, Design-Signed-Off-By trailer).
#15 [medium] PR text: code spans stripped, no linked issue, no Discord, no reproducible evidence lines
Observations about the PR text itself (read_item 672, pr_diff), relevant because reviewers here judge descriptions against AGENTS.md:80-112 and because the packet's own rendering shows blanks:
- The description lost its inline code spans: "different HCAs on the same host can hold their IPv4-mapped RoCEv2 GID at different GID table indices — for example, index on one HCA and index on the other" and "
cargo test …— passed" render with empty identifiers, as do several "What Changed" bullets (". Per-HCA RoCEv2 IPv4 GID discovery ():"). Whatever the cause, the posted body no longer names the files, symbols or test commands it means, so the two evidence lines cannot be reproduced from the description alone. - No linked issue: #143 and #151 are both open on this exact symptom class and neither is referenced or mentioned; the description also has no "Discord:" handle, which every recent RoCE PR in this repo carries (#369, #643, #649, #577).
- Four-part structure is present (Why / What Changed / Verification) but the "Verification" section gives no command, crate, feature set, test counts, core id, throughput number, or baseline — the specific omissions the #506 reviewer rejected three times.
- It declares unit tests in two files (
roce_fabric.rs,spark.rs) and mentions none forroce.rs, whose FFI change is the one CI cannot execute.