Case file: #707 — helios,ignition,flare-cli: unify ABI-14 RoCE proxy sync, wire roce_set_relay, and enforce CI parity
Key findings
- It supersedes three open PRs and closes none of them. #707 says it "unifies and supersedes #672, #649 and #577"; all three are still open, #707's body contains no
Closes #links, andrelated_itemsrecords only a "mentions" edge. Two of the three are first-time contributors (#672 nepenth, #577 fordbmorris) whose reviewer-approved direction #707 absorbs without a comment on their PRs. If #707 merges as-is, three contributors' work is silently duplicated in the tree (#672, #649, #577). - It reverses a documented decision from merged #279. #279's description states plainly: "The runtime does not call
roce_set_relay, so the all-gather relay stays off", and it editeddocs/roce-ring.mdto say serving does not enable the relay. #707 flips that to on-by-default for every mesh fabric with mutual direct-cable pairs (docs/roce-ring.md:166-169;helios/src/execution/roce.rs:344-353). This is a live data-path change on already-exported ABI-14 cores, and the PR's headline benefit ("25% less switch-traversed all-gather traffic") is explicitly not measured. - It adopts fixes the reviewers already demanded on the superseded PRs. #577 carries an explicit CHANGES_REQUESTED from maintainer
original-el8("Do not bumpROCE_ABI_VERSION(14) … validateRING_WINDOWinsideroce_blob_t/roce_connect") and an Autobot "Should Fix #1" (reserve cap 48 < relay cap 64 rather than equalizing both at/8, and polldrain_cqs()beforering_service). #707's proxy has exactlyROCE_RESERVE_OPS 48u < ROCE_RELAY_OPS (ROCE_SEND_DEPTH/8u)under a_Static_assert, blob validation at connect, ABI still 14 (verified athelios/native/roce_proxy.c:156-158,:223,:267-268,:744-761). - The parity guard is real but fragile.
tests/preparation/test_roce_proxy_parity.py(131 lines) runs in PR CI via.github/workflows/python-cpu.yml:33(not opened), comparinghelios/native/roce_proxy.cfrom line 10 against whateverflashinferuv syncinstalled. There is nouv.lockin the repo, sopyproject.toml:47's rev is the only lock; the pinned rev524799c47fca54229c15b6db12261171854a7b7dis an unmerged FlashInfer PR branch (#213), so a force-push or squash-merge breaks CI onmain. #707's own merge-order step 2 admits this. - CI coverage is genuinely added.
.github/workflows/native-serving.yml:114-115(not opened) addscargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features roce --lib execution::roceto the Linuxrdmajob, closing the blind spot all three superseded PRs were flagged for. - Undeclared-looking files in the diff are base drift, not author edits.
pr_diffat head showsflare-cli/src/cli.rs(not opened),flare-cli/src/orbit/{agent,controller,mod}.rs,docs/TODO.txt,docs/api.md,docs/core-design.md,docs/model-preparation.md(not opened),docs/scheduling-runtime-design.md(not opened) and a much biggerdocs/cli-design.mdrewrite than the declared+1 −1, whilepr_fileslists 12 files. Cross-referencing merged PRs (#687 "flare-cli, debian: sync flare.1 subcommands and fix 'an orbit' wording" by jcartu, and #697 "helios/scheduler: preserve interior anchor for open-reasoning prompts" by FujitsuPolycom) shows these belong tomainsince the branch point. The author-side delta is the 12 files inpr_files. Downstream readers should not score this as hidden scope. - Documentation is partly stale.
docs/multi-host.mdstill describes relays only in the ring/chain sense (:94,:344,:574-577) and never mentions that mesh all-gather relay is now on by default; onlydocs/roce-ring.md:161-170anddocs/cli-design.mdwere updated. - No review, no labels, no comments, CI green, opened and last touched the same day (2026-12-03). Author
lukealonsois a charter-named priority contributor with 41 merged PRs in 180 days, including the immediately preceding proxy sync #643.
The change
12 files, +1247 / −129 (pr_files):
| File | Δ |
|---|---|
helios/src/execution/roce_fabric.rs |
+375 −34 |
helios/native/roce_proxy.c |
+339 −59 |
helios/src/execution/roce.rs |
+231 −7 |
tests/preparation/test_roce_proxy_parity.py |
+131 (new) |
flare-cli/src/doctor/spark.rs |
+99 −7 |
heliopause/src/python.rs |
+26 −3 |
ignition/preparation/collectives.py |
+19 −2 |
docs/roce-ring.md |
+17 −14 |
flare-cli/src/cluster.rs |
+6 −1 |
.github/workflows/native-serving.yml (not opened) |
+2 −0 |
docs/cli-design.md |
+1 −1 |
pyproject.toml |
+1 −1 |
Four independent parts:
(a) Vendored proxy re-sync. helios/native/roce_proxy.c grows 1971 → 2251 lines. Verified at head: ROCE_RESERVE_OPS 48u / ROCE_RELAY_OPS (ROCE_SEND_DEPTH / 8u) with _Static_assert(ROCE_RESERVE_OPS < ROCE_RELAY_OPS) (:156-158), #define RING_WINDOW 16 (:223), ring_window/ring_bytes in roce_blob_t (:267-268) populated in roce_local_blob (:665-666) and validated for exact cross-rank agreement in roce_connect (:744-761), KIND_RING_RS/AG/RSAG = 7/8/9 (:194-196), roce_create_with_gids at :557 with roce_create kept as a thin wrapper (:611-619), roce_set_relay at :773, reserve() capped at 48 (:905-910), ring_service_slot() capped at 64 (:1039). On main the same file has RING_WINDOW 8 (:205), a ROCE_SEND_DEPTH / 6 reserve (:185, :852) and a /4 relay cap (:981). ROCE_ABI_VERSION stays 14.
(b) Per-HCA GID discovery. Fabric/Topology carry pub gid_indices: Vec<u32> (roce_fabric.rs:225, :310), filled per device by pick_gid_index (:409-432), with Fabric::gid_index() / gid_index_for() (:1095-1104) and a length check in topology() (:1119-1122). RoceTransport::openrejectsgid_indices.len() != hcas.len() (roce.rs:214-220) and calls roce_create_with_gids. heliopauseexportsroce_devices() -> Vec<(String,u32)>; create_roce_runtime (ignition/preparation/collectives.py:83-97) passes hca_names+gid_indiceswhenAllReduce.initaccepts them and otherwise raisesRuntimeErroron mixed-GID hosts.flare doctorprintsindex Nvsindices [3, 5]`.
(c) Mesh all-gather relay wiring. partners() (roce_fabric.rs:979-1012) and relay_plan() (:1021-1061) ported from FlashInfer _routes.py (not opened); gated on world >= 4, even, not Links::Shared (:1031); result stored as Topology::relay_plan: Option<Vec<i32>> (:318); validate_relay_plan preflight (roce.rs:102, called at :221-223); roce_set_relay FFI (roce.rs:72) invoked between roce_connect and roce_start (roce.rs:344-353); flare-cli/src/cluster.rs:109 appends ", all-gather relay".
(d) CI + parity test. New tests/preparation/test_roce_proxy_parity.py:35-65 asserts LF endings, a 9-line provenance header ending in a blank line, and byte equality of lines 10..EOF with the installed FlashInfer _roce_proxy.c (not opened); :68-131 unit-tests create_roce_runtime GID forwarding, the mixed-GID RuntimeError, and the uniform-GID legacy fallback. .github/workflows/native-serving.yml:115 (not opened) runs the RoCE lib tests.
Description vs. code. Everything the description claims is present. Two small mismatches worth noting: (i) the description cites the upstream commit SHA and the body SHA-256, but the vendored file's own header (roce_proxy.c:6-9) carries neither — unlike #643/#649 whose headers named the upstream SHA, so the pin is documented only in the PR body/pyproject.toml; (ii) the description says the parity test runs via python-cpu.yml and that it asserts 0-byte divergence — true, but it does not say the test hard-fails with pytest.fail if flashinfer is absent (:22-23, :30-32), i.e. it is unconditional on that dependency being importable.
The why
Two long-standing, documented defects:
- Per-HCA GIDs. Issue #143 (open, 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"; the reporter notes the IPv4 entry's position "depends on how many IPv6 addresses the interface holds at the time" (comment 2026-11-19), so even a host-wide index is unstable across reboots.
yatesdrroot-caused it toignition/preparation/collectives.pyand landed merged #369 "Choose the RoCE GID index per host during multi-host preparation" — #707 is the per-HCA successor to that per-host step. - Issue #151 (open, evehour, 2026-10-30): TP2 dual-rail serving times out on the first collective when both CX-7 rails are active; commenters' GIDs sat at indices 5 and 6, another instance of non-3 placement. #707 does not close #151 and does not address its
--roce-hcaflag request. - Vendoring deadlock. The three-way collision is the recorded review history: Autobot required byte-identity with a merged upstream on #643, #672 and #577; the authors of those PRs could not satisfy it because their FlashInfer counterparts were unmerged. #707 exists to break that loop by landing the resolved upstream branch and adding an automated check.
Related work
- Superseded, still open: #672 (nepenth, +380/−65, P2 bug, hardware-verified on 2-node dual-CX7 GB10 with GIDs
[3, 5], both rails serving TP2 — this is the only hardware evidence for part (b)); #649 (FujitsuPolycom, +267/−35, 1-hop closed-ring, 4× DGX Spark SM121 A/B: prefill +3.76…+4.32% at 8K–128K, RS/AG microbench 1.20×–1.46×); #577 (fordbmorris, +38/−15,RING_WINDOW 16+ eager drain, 4× DGX Spark ring: RS −9.7/−7.4/−7.1%, GatherShards −6.2%, Twoshot −6.6%). - Merged predecessors in the same vendoring series: #643 (lukealonso, merged 2026-11-30, "sync vendored roce_proxy.c to FlashInfer 2a07747b8", +315/−34) is the exact pattern #707 repeats and the one that established the "re-vendor from a merged commit" requirement; #279 (jetnet, merged 2026-11-13) brought proxy ABI 14 in and is the PR that explicitly left
roce_set_relayoff; #251 (ABI 11); #325; #589. - Adjacent open PRs on the same files: #576 (thread pinning; overlaps the
roce_proxy.c/proxy-thread region #643 introduced). Merged earlier neighbours: #232 (direct-cable rail routing — the topologyrelay_plan()consumes), #666 (dual-rail switched link spreading), #506 (flare doctorCX7 preflight), #369. - Upstream stack: FlashInfer #213 (supersedes #209/#195/#157) and
local-inference-lab/hyperflare-recipes#114. Neither is merged; #707's step 4 of merge order depends on the recipes PR. - Open dispute #215 ("Track FlashInfer main in the preparation dependency instead of a pinned commit", closed) — #707 takes the opposite side by pinning one more exact rev, consistent with the charter's "pin everything" rule.
Recent activity
search_history for the touched areas fails in this tooling (Could not read c513e46a79f3b6ac510235aaf09bcf055b841958), so recency was established from the PR/issue records instead. The areas have been very active in the last week: #643 merged 2026-11-30, #666/#506/#369 merged earlier, #577 (2026-11-28), #649 (2026-11-30), #672 (2026-12-02) all open and rebased onto current main. #707 therefore builds on a rapidly moving file, and the diff-vs-base drift noted in Key finding 6 is a direct consequence. No commit on main since cc0a49d touched #707's changed files (per the orientation packet).
People
- Author:
lukealonso, GitHub association COLLABORATOR, charter-named priority contributor ("@voipmonitor,@original-el8,@lukealonsocarry extra weight"). 41 merged PRs in 180 days acrosshelios/src(28),docs(23),ignition/preparation(14),flare-cli/src(10),tests/preparation(10). Authored #643, the directly preceding proxy sync. Discord: lukealonso. - Superseded authors: nepenth (FIRST_TIME_CONTRIBUTOR, #672), FujitsuPolycom (CONTRIBUTOR, #649 — also #697 merged in this window), fordbmorris (FIRST_TIME_CONTRIBUTOR, #577 — also #574 open). Two of the three lose their first contribution to an absorption with no note on their PR.
- Maintainer involved:
original-el8reviewed #577 CHANGES_REQUESTED and 2026-11-18 commented on #151.jetnetauthored #279 (the PR that left relay off).flare-autobotreviewed #672 and #577 repeatedly. - Engagement on #707 itself: none — no comments, no reviews, no labels.
Community
pr_comments returns "No comments". No reviews, no reactions. Opened and last updated 2026-12-03. The interest is indirect: #672 has 4 discussion entries, #577 has 8 including a maintainer review.
Project fit
Lines up:
- Model-agnostic transport layer; no new flags, no per-model branches (charter "Keep the runtime small and model-agnostic"; "Stay focused").
- Targets DGX Spark / SM121 and explicitly preserves ABI-14 core loading — the charter's code-review standard "verify that existing data, artifacts, and exported cores still load".
- Serves roadmap item "FlashInfer dependency fix (#215): … while keeping builds strictly pinned" — #707 adds a pin (
pyproject.toml:47) and an automated parity check.
Does not line up cleanly:
- Charter "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)". #707 is substantially a performance PR and states outright that its transport gains were not re-measured; every number is inherited from #649 and #577 on different hardware (4× DGX Spark) than the author's single-host SM120. - Turning
roce_set_relayon by default changes behaviour for existing users without a measurement to justify it, and reverses #279's documented choice ("no magic defaults"). - New hard failure during preparation on mixed-GID hosts with an older FlashInfer (
collectives.py:92-96) — defensible, but it is a user-visible regression path that ships with a dependency pin nobody can merge yet.
Claims and evidence
| Claim | Evidence | Status |
|---|---|---|
| 38 RoCE unit tests pass | Tests in the diff: roce.rs:488-503 (blob 1176 + legacy 1168 rejection), :678-695 (relay-plan validation matrix), live-HCA roce_create_with_gids/roce_set_relay test that self-skips without /sys/class/infiniband |
Plausible, self-reported; not re-run here |
| Per-HCA rails retained end to end | Unit tests roce_fabric.rs:1285-1307 (mixed [3,5]), :1331-1345 (prefer-3 per HCA), test_roce_proxy_parity.py:68-131 |
Unit-verified only. Hardware evidence lives in #672, not here |
roce_set_relay really engages |
roce.rs:344-353 + validate_relay_plan unit tests + C-side rejection test |
Code path verified by reading; traffic reduction not measured ("expected to reduce … by 25%") |
| −6.2…−9.7% ring latency | #577's 4× DGX Spark ring benchmark table | Inherited, not re-run |
| +3.76…+4.32% prefill, 1.20–1.46× RS/AG | #649's 4× GB10 SM121 flare run A/B |
Inherited, not re-run |
| Parity enforced in CI | test_roce_proxy_parity.py + python-cpu.yml:29-33 |
True, but keyed to an unmerged flashinfer rev and no uv.lock exists (verified: list_files uv.lock → none) |
--features roce tests run in CI |
native-serving.yml:115 |
Verified present |
roce_blob_bytes() == 1176, legacy 1168 rejected |
roce.rs:491 assert + :501-503 rejection test |
Verified in tests |
Unverified by anyone: the --features rdma (Selene/ibverbs-sys) build locally (CI checks it at native-serving.yml:111-113); multi-node relay traffic; relay plans for world != 4 on hardware.
Reach
- Wire compatibility.
roce_blob_bytes()1168 → 1176.ROCE_ABI_VERSIONstays 14 so exported cores still load, but every rank of a serving group must run the same proxy revision orroce_connectrefuses the peer (validated atroce_proxy.c:744-761; documented atdocs/roce-ring.md:161-170). - Memory. Ring host region doubles: "about 2.008 MiB per rank … 8.03 MiB on each rank of a four-rank group and 32.13 MiB at sixteen ranks" (
docs/roce-ring.md:108-112), up from 1.004 / 4.02 / 16.06. - New default behaviour.
roce_set_relayengages on anyShape::Mesh+Links::All+ evenworld >= 4mutual-pair fabric unless--roce-switch-onlyis passed (roce_fabric.rs:1031;docs/roce-ring.md:166-169). Previously dormant on the same cores. - Preparation. A mixed-GID host on an older FlashInfer now aborts preparation (
collectives.py:92-96) rather than preparing one rail — a loud failure reaching operators through an export, not serving. - CLI. No new flags.
flare doctoroutput shape changes (format_gid_indices,spark.rs:259-273; tests at:387,:550);flare-cli/src/cluster.rs:109adds", all-gather relay"to the connected-fabric line. - Dependencies.
pyproject.toml:47movesflashinfer-pythonto524799c47fca54229c15b6db12261171854a7b7d; nouv.lock, so this rev is the whole lock. Contrast #215's "track FlashInfer main". - Docs.
docs/roce-ring.mdupdated;docs/cli-design.md+1/−1. Not updated:docs/multi-host.md, which still frames relays as ring/chain-only (:94,:344,:574-577).
Process
- Open, "ready for review", base
main, head81ef561, opened and last updated 2026-12-03, 12 files. No labels. CI green on head. No reviews, no comments. - Blocked in practice on
local-inference-lab/flashinfer#213being merged (author's own merge order: merge #213 → repin to the merged SHA → merge #707 → merge recipes#114). Until then the parity test points at an unmerged branch SHA. - Carries three contributor-visible process duties that the PR does not itself discharge: closing #672/#649/#577, acknowledging their authors, and updating the pin after a squash-merge.
Open questions / could not find
- How will
#672,#649,#577be closed, and will their authors be credited? Nothing in #707 or on those PRs addresses it. - Is the "25% less switch-traversed all-gather traffic" estimate from a model of packet counts or from any measurement at all? No derivation is given.
tests/preparation/test_collectives.py— the file #369 added a RoCE assertion to — does not exist at head; #707's parity test is now the only Python coverage ofcreate_roce_runtime. Was #369's test renamed, or dropped?- Commit-level attribution for the base drift (
flare-cli/src/cli.rs(not opened),docs/api.md, …) could not be verified directly:search_historyerrors on commitc513e46a…, andsearch_code/read_fileatref=mainresolve to the PR head tree in this tooling. Attribution rests on matching merged PR titles (#687, #697). - Whether relay plans are correct for larger meshes (6/8/16 ranks) is unit-tested only in
roce_fabric.rs:2314-2430; no hardware run exists.