#1 [high] Change: what the diff actually does (roce_proxy.c, +311/-26)
PR #643, single file helios/native/roce_proxy.c, +311/-26, head 9c3ea69, base main (branch point 0a8c20f).
Declared in the description and present in the diff:
- KIND_RING2_STEP1 5u / KIND_RING2_STEP2 6u (roce_proxy.c:173-174), dispatched in proxy_main (:1841-1844) to post_ring2_step() (:1335-1370).
- post_ring2_step: rejects unless world==4 && ring!=NULL && !ring_open (:1336-1341); payload must be a positive multiple of 32 bytes within slot (:1342-1348); splits into halves, p_lo/p_hi chosen as cw/ccw alternated by (rank parity XOR step) (:1350-1354); posts each half with post_direct_striped_batched.
- post_direct_striped_batched (:1258-1330): stripes each half across rails on lane 0, one flag write per rail, signals 1 in RING2_SIGNAL_STRIDE=16 ops per (HCA,peer) QP; accounting hca->ring2_unsignaled[p].
- RING2_SIGNAL_STRIDE 16 / RING2_MAX_OUTSTANDING 6 with two _Static_asserts (:175-187).
- reserve() refactor into reserve_limit() (:829-857) so ring2 can use its own outstanding cap 6 while everything else keeps ROCE_SEND_DEPTH/6.
- ring_next() split into ring_next_from(c, from, target) + ring_next (:332-346).
- ring_relays_origin[] computed at connect (:732-751); ring_service now skips origins that never route through this rank (:1039-1042).
- drain_all split into drain_cqs + drain_all (:1207-1223).
NOT in the description but in the diff (verified):
- CPU pinning / thread naming: pin_high_capacity_cpus() (~:1699-1760) + pthread_setname_np(...,"flare-roce") at the top of proxy_main. This duplicates PR #576's hunk verbatim in intent (same 90%-of-max-capacity, midpoint fallback, >=2 CPU floor logic).
- IBV_SEND_INLINE added on three paths: ring_submit relay payload WR (:911-923), ring_submit descriptor WR, post_striped one-shot data WR (:1184-1188), plus new per-HCA max_inline tracking (:252, :482, :493-516). Description mentions "per-HCA max_inline tracking" but not that it also enables inline on the existing relay/one-shot paths.
- attr.cap.max_inline_data raised from 16 to 256 with fallback to 16 (:493-500) for every QP creation.
- post_op rewritten to post relayed peers first, then direct peers (two passes) (:1232-1256) - changes ordering of the existing one-shot path on rings (non-ring transports single pass).
- Proxy idle loop restructured (:1794-1814): on rings, ring_service is called every idle spin unless a ring2 op is active (then every 16), and drain_cqs every 16 spins - this replaces the previous "drain_all every 64 spins" for ALL ring transports, not only ring2 ops. Non-ring keeps (idle & 63).
- Description's "relayed-origin filtering (ring_next_from, ring_relays_origin)" is declared; the ordering change to post_op and inline flags are not.
#2 [high] Claims & evidence: what the description claims vs what backs it
PR #643 claims (description verbatim points):
- Measured: "In node-level nsys P=4 traces, RoceRing2AllReduceLaunch averages 31.8-33.0 us/call across 88 calls/round" on 4x DGX Spark TP4 DeepSeek-V4.1-Flash paired with local-inference-lab/flashinfer#192. -> Absolute number only. No before/after comparison against main's oneshot path, no % improvement, no served-workload tok/s, no graph-time or end-to-end effect. docs/design-review.md:252-259 mandates live multi-GPU collective execution for transport changes; charter "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210)" (charter, How We Work).
- Rust crate tests: "cargo test --locked --release passed on helios (--features runtime-core,server), flare, flare-cli".
-> The PR touches a C file compiled only under the
rocefeature (helios/build.rs:67-77 compiles native/roce_proxy_dlopen.c only#[cfg(feature = "roce")]). The cited helios feature list omitsroce, so the edited C file is not compiled by the cited command, and helios/src/execution/roce.rs tests (which need --features roce) are not run. Same gap original-el8 flagged as a blocker on #577 ("Run ... --features roce,runtime-core,server") and #576. - Live multi-GPU: "Verified end-to-end on 4x DGX Spark ... serving ring2-enabled cores (gb10-tp4-202611301141, ...1553, 57 graphs each) and the pre-existing non-ring2 core (gb10-tp4-202611291503)". -> Matches design-review.md:252-259 requirement in kind; no tok/s, latency, or error-count numbers given (sibling #576/#577 both report tok/s and 0/16 CX7 port errors).
- Compatibility: "Existing control opcodes (0..4) and wire structures are unchanged. Existing exported cores without ring2 opcodes load and serve unchanged." -> Structurally supported: roce_blob_t untouched, ROCE_ABI_VERSION stays 14 (:141), helios/src/execution/roce.rs:131 still accepts cores recording ABI 9/10/11/14. But see the mixed-build entry: kinds 5/6 are new wire protocol with no ABI or capability negotiation.
- Limitations declared: non-4-rank rings and non-SM121 RoCE NICs not benchmarked.
- No CI evidence in the description; the C file is not compiled by any CI job (see CI entry).
#3 [high] Related work: vendored-byte-identity contract between roce_proxy.c and FlashInfer
Vendored-parity invariant (now in-tree and load-bearing for reviewers):
- helios/native/roce_proxy.c:6-8 — "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 — "Loads libibverbs.so.1 lazily ... while keeping the vendored roce_proxy.c byte-for-byte identical to FlashInfer." (introduced by merged #589, ba3afb13 2026-11-28.)
- docs/roce-ring.md:361-364 — "Flare vendors the serving proxy in helios/native/roce_proxy.c; preparation uses the pinned FlashInfer dependency. When changing the protocol, keep the vendored source identical to the dependency after its provenance header and verify their ABI and collective-region layouts together."
- NOTICE:16-19 — claims the implementation is "unchanged from that revision" f5f5341d.
#643 does not mention re-vendoring from any FlashInfer PR at all. Its predecessor work in the same area did: #578? no — see #577 ("Merge local-inference-lab/flashinfer#157 first so helios/native/roce_proxy.c stays synced") and #576 ("vendor the exact pin_high_capacity_cpus() ... merged in local-inference-lab/flashinfer#156, 335459b2").
Note the mismatch inside #643: it adds pin_high_capacity_cpus()/flare-roce (i.e. #576's upstream sync from flashinfer#156, 335459b2) AND ring2 opcodes in one commit, without citing any upstream PR for either. If #643 merges before #576, #576's roce_proxy.c hunk becomes a duplicate/conflict.
pyproject.toml:47 — flashinfer-python is consumed from git branch main of local-inference-lab/flashinfer (not a pinned commit), which docs/design-review.md and the charter ("pin dependencies to exact versions or commits (#215)") push against; relevant because it decides whether preparation gets kinds 5/6 at all.
#4 [high] Related work: #576 duplicates the C hunk, #577 conflicts on reserve()/drain
- #576 (open, fordbmorris, FIRST_TIME_CONTRIBUTOR, pr/cpu-capacity-pinning) "Pin Helios execution and RoCE proxy threads to high-capacity CPUs on asymmetric Linux topologies": +230/-1 across eos/src/unix.rs, eos/src/windows.rs, helios/native/roce_proxy.c, helios/src/execution/{parallel,threaded,worker}.rs, helios/src/replay.rs, helios/src/server/runtime.rs. Its roce_proxy.c hunk is exactly the pin_high_capacity_cpus() + "flare-roce" hunk that #643 also carries (vendored from merged flashinfer#156 @335459b2). #576 has an outstanding blocker from Autobot review (2026-11-30 03:13) on selene::shared::codec::cpu_pool() narrowing; original-el8 requested changes twice (2026-11-28). -> Overlap: #643 duplicates #576's C hunk. Whoever merges second has to rebase; if #643 merges first and #576 later re-vendors from flashinfer 335459b2, #643's copy may be reverted.
- #577 (open, fordbmorris) "roce_proxy: raise ring mailbox window to 16 and drain relays eagerly in pipelined ops": +35/-12 in helios/native/roce_proxy.c, helios/src/execution/roce.rs, docs/roce-ring.md. Changes RING_WINDOW 8->16, appends ring_window/ring_bytes to roce_blob_t (1168->1176 bytes, ROCE_ABI_VERSION stays 14), tightens reserve() to ROCE_SEND_DEPTH/8 and both ring_service_slot, and calls drain_all() inside run_pipe_op. Requires flashinfer#157 to merge first (still open per Autobot 2026-11-30). -> Conflict surface with #643: #643 refactors reserve() into reserve_limit() (roce_proxy.c:829-857) and keeps ROCE_SEND_DEPTH/6; #577 rewrites the same reserve() and the same _Static_assert budget. #643's static-assert slack argument is written verbatim in terms of "room for up to 85 subsequent three-WR relay ops" (ROCE_SEND_DEPTH/6), which #577 changes to 64. #643 also moves drain_all inside the idle loop into ring_service + drain_cqs (:1207-1223, :1794-1814), overlapping #577's "drain relays eagerly" goal on the same code. Both touch docs/roce-ring.md sizing vs #643 which does not.
- #325 (merged, "Keep the RoCE ring relay from forwarding a stripe's readiness flag ahead of its earlier packets") and #589 (merged, added roce_proxy_dlopen.c to keep roce_proxy.c byte-identical) are the immediate lineage #643 builds on.
- #251, #279 (merged) are the prior ABI 11 and ABI 14 re-vendors — the established pattern is: upstream FlashInfer PR first, then vendor.
- #34 (open, Saolence) "RoCE ring: distant ranks have no fabric path — forward 2-hop transfers via flow label 16383 instead of the CPU relay": asks for hardware forwarding to replace the CPU relay for 2-hop peers. #643's answer is the opposite direction — make the far peers unnecessary by only ever writing to 1-hop neighbors in a 2-step algorithm for world=4. Related in motivation (relay cost), not in mechanism; does not implement #34.
- #215 (closed) FlashInfer pinning; #506 (merged) DGX Spark CX7 preflight in flare doctor.
- Companion external items named by the description: local-inference-lab/flashinfer#192 (b12x ring2 CuTe kernel) and a local-inference-lab/hyperflare-recipes "collective selection PR". Neither is referenced by number for the recipes PR. These are outside this repo; nothing in-repo records them.
#5 [high] Process: CI never compiles the changed C on PRs; aarch64 release builds do
- helios/build.rs:67-77: under
#[cfg(feature = "roce")]it compiles native/roce_proxy_dlopen.c (which #includes roce_proxy.c). No -Wall/-Werror flags in the cc::Build. - helios/Cargo.toml:27:
roce = ["runtime-core", "dep:cc"]; default feature list is empty (:17). - flare-cli/Cargo.toml:11:
roce = ["flare-helios/roce", "flare/roce"]; flare-cli/Cargo.toml:43-44 enables flare-helios with "roce" forcfg(all(target_os = "linux", target_arch = "aarch64")). So the C is compiled in aarch64 Linux builds by default, and in x86_64 only under the aucunrocefeature. - .github/workflows/native-serving.yml: PR-triggered. Job
native(lines 13-99) runs on ubuntu-24.04 x86_64 and windows-2022 only; the Linux dependency list (:36) has no libibverbs-dev and the helios test command (:63) uses--features runtime-core,serverwith noroce. Jobrdma(:101-113) is the only place libibverbs-dev is installed and it runscargo check(not test), and only for selene, selene-manager, flare-cli--features roce,rdma.cargo checktwice-noted by original-el8 as not substituting for tests (also docs/design-review.md:186-187). => Net: no PR-triggered CI jobs compile or execute the aarch64rocebuild of roku_proxy.c. The only job that would compile it is .github/workflows/release.yml:37-80 (tag/release triggered; matrix arm64 = ubuntu-24.04-arm running docker ubuntu:22.04 with libibverbs-dev), plus the x86_64 release leg (:43-45) which builds withoutroce. => So "CI on the head commit: passed" (orientation packet) means the x86_64/Windows jobs passed; the changed C was not compiled by them. - No vendored-parity check script exists (grepped scripts/, .agents/, tests/ for byte-identity checks: nothing). Enforcement is prose only (NOTICE:16-19, roce_proxy.c:6-8, roce_proxy_dlopen.c:7-9, docs/roce-ring.md:361-364).
- .githooks/commit-msg requires exactly one
Design-Signed-Off-By: <identity>; design-review=<sha256[:4] of staged docs/design-review.md>trailer (design-review.md:294-299). Cannot verify from the PR page whether the branch commit carries a matching trailer; Autobot reviews on #576/#577 have previously blocked stale digests (e.g. "eb2f is stale").
#6 [high] Change detail: compatibility and the hard 4-rank/closed-ring precondition
- Rinde protocol surface: kinds are u32 words at ctrl[CTRL_SLOT_KIND + slot] (roce_proxy.c:150, dispatch :1837-1863). #643 adds kinds 5 and 6 as pure proxy-side meanings; the kernel side (b12x, external) publishes the kind and waits on the same flag slots.
- Wire structures unchanged: roce_blob_t is not modified by #643 (compare #577, which appends ring_window/ring_bytes and grows the blob 1168->1176). ROCE_ABI_VERSION stays 14 (roce_proxy.c:141); helios/src/execution/roce.rs:131 still accepts cores recording ABI 9/10/11/14; roce.rs:126-130 documents the "identical kernel-visible layouts" rationale.
- New hard precondition in post_ring2_step (roce_proxy.c:1336-1341): world must be exactly 4, ring must be enabled, and ring must be CLOSED (not --roce-chain). Errors out the whole proxy (proxy_main sets c->failed, :1864-1867) rather than falling back to oneshot. So a rank pair running kinds 5/6 against a peer proxy without them (mixed build), or a 4-rank group on a chain, fails hard at replay rather than degrading.
- Existing transport kinds are unchanged: KIND_ONESHOT 0, KIND_TWOSHOT 1, KIND_VARLEN 2, KIND_REDUCE_SCATTER 3, KIND_GATHER_SHARDS 4 (:168-174); credit rules credit_phases() recognize only 3/1/4 (:1455-1464), so a reduce-scatter following a ring2 op gets no CREDIT_RS. That is the path where ring2 war không affects the pipelined hazard analysis in the header (:64-83).
- Ring2 ops read the same slots as oneshot: send[slot] staged by the kernel, recv[src][slot] written by peers, flag[src][slot][rail]. Nothing new is allocated; the region size and core layout are untouched. docs/roce-ring.md documents the layout (:100-114) but says nothing about ring2 opcodes (no doc change in the PR).
- size: 1 file, +311/-26 (pr_files). No test, no doc, no Rust change in the PR.
#9 [high] Project fit: right layer and target, wrong on vendoring, evidence baseline, test layer
Where #643 lines up with the charter/docs/design-review:
- Right layer, no per-model branches: the change is entirely in the RDMA transport proxy (helios/native/roce_proxy.c), no model-specific code, satisfying "Keep the runtime small and model-agnostic" (charter How We Work) and design-review.md principle 4 "Use FlashInfer/b12x and NVIDIA directly" (:62-65).
- Core compatibility: roce_blob_t and ROCE_ABI_VERSION 14 unchanged, cores recording ABI 9/10/11/14 still load (helios/src/execution/roce.rs:131); meets design-review.md principle 13 "Preserve model core compatibility" (:116-123).
- Target hardware is in scope: DGX Spark / SM121 is one of the charter's named targets (charter Vision: "SM120/SM121 workstations and DGX Spark"; Goals: serve on SM103/SM120/SM121).
- Multi-GPU live execution was done (description cites two ring2 cores and one non-ring2 core served via flare run at 57 graphs each), which is what design-review.md:252-259 mandates for transport changes.
Where it does not line up:
- Vendored-parity invariant: roce_proxy.c:6-8, roce_proxy_dlopen.c:7-9, docs/roce-ring.md:361-364, NOTICE:16-19 all say the file must remain identical to the pinned FlashInfer dependency; #643 changes it and names no upstream FlashInfer PR for these opcodes (only "pairs with" flashinfer#192, which is a kernel PR, not described as the proxy source). This is exactly the ground original-el8 and Autobot used to block #576 and #577.
- Evidence standard: charter "Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210)"; design-review.md principle 12 "Performance claims require equivalent baselines, complete GPU steps across all ranks, and actual Helios service measurements" (:106-115). #643 reports only an absolute µs/call for one op family — no baseline against main, no served tok/s, no % delta.
- Test hierarchy: design-review.md:180-194 says run
cargo test --locked --releaseon helios with--features runtime-core,server"matching the native-serving workflow", and server-transport changes need--features rocecoverage; #643 cites only the non-roce feature set, so the edited C is never compiled by the cited runs. - Undeclared scope: the CPU-pinning/thread-naming hunk is unrelated to ring2 opcodes and duplicates another open PR — design-review.md principle 15 "Reject scope expansion" (:135-146) and the general "Solve the right problem in the right place" (charter).
- Documentation not updated: docs/roce-ring.md:161-167 describes the ABI-14 proxy's capabilities without ring2; the doc is the operator-facing protocol description and the repo requires prose changes to be reviewed (design-review.md:147-162).
- Non-goal check: not a non-goal (no broad hardware/rack-scale/disaggregation expansion); it is squarely in cross-node serving, which the charter lists as a Goal.
- Roadmap: nothing on the roadmap mentions ring2 opcodes or 4-rank ring collectives; the nearest roadmap item is "FlashInfer dependency fix (#215) — Untangle the FlashInfer cross-dependency issue while keeping builds strictly pinned", which the un-pinned branch main dependency (pyproject.toml:47) and the un-synced vendoring both touch.
#10 [high] Reach: narrow 4-rank ring2 path, plus undeclared effects on all ring/relay traffic and mixed-build failure
Reach of #643 if merged:
- Users/operators: only 4-rank switchless closed RoCE ring deployments (
--roce-ring, world==4) on DGX Spark/GB10-class hosts, and only when their exported core's kernels publish kinds 5/6 (i.e. cores built from b12x with flashinfer#192 + a recipe that selects the 2-step collective). Everything else is untouched: mesh (ring==NULL), --roce-chain (rejected for kinds 5/6 at roce_proxy.c:1336-1341), world != 4. - Configuration/defaults: no new CLI flag, no new config, no new env var; the choice is made by the exported core's kernels. That is consistent with design-review.md principle 10 (no env-var switches) but means the behaviour is invisible to operators and cannot be disabled per-deployment without re-export.
- Compatibility: ROCE_ABI_VERSION stays 14 and roce_blob_t is unchanged, so previously exported cores keep loading (helios/src/execution/roce.rs:131; roce_proxy.c:141). But a mixed-build cluster (one rank with kinds 5/6 support, one without) has no negotiation: the old proxy hits "unknown op kind 5" (roce_proxy.c:1860-1862) and fails the whole proxy at replay. Sibling #577 addressed exactly this class of mixed-build hazard by adding ring_window/ring_bytes to the blob and verifying them at connect — #643 adds a new wire protocol without an equivalent guard.
- Non-ring paths touched by the same commit: the max_inline_data bump 16->256 with a 16 fallback (:493-500), IBV_SEND_INLINE on one-shot data WRs (:1187-1189) and on relay mailbox payload+descriptor WRs (:911-923), the two-pass relayed-first posting order in post_op (:1238-1252), and the ring idle loop now servicing relays every spin instead of every 64 (:1794-1814). These affect all ring and relay traffic, not just ring2 opcodes.
- Dependencies/deployment: the serving side is self-contained C compiled into aarch64 Linux builds (flare-cli/Cargo.toml:43-44) or under the
rocefeature; the preparation side needs a b12x that emits kinds 5/6, which comes from the un-pinnedbranch = "main"FlashInfer source (pyproject.toml:47). So preparation/serving lockstep is by branch head, not by pin. - Documentation impact: docs/roce-ring.md (protocol model, ABI-14 description :161-167, implementation table :414-428) and docs/TODO.txt:80-86 already describe the proxy's protocol surface; none are updated by #643.
- Failure modes introduced: a ring2 op on a chain or non-4 world poisons the proxy (no fallback); the RING2_SIGNAL_STRIDE/RING2_MAX_OUTSTANDING static asserts verify WR count against ROCE_SEND_DEPTH=512 but assume the ROCE_SEND_DEPTH/6 relay budget (#577 changes that divisor to /8, which would still satisfy the assert, but #577 also changes reserve() and the RING_WINDOW that ring_service uses — a textual conflict is likely).
#11 [high] Why: relay hops for 2-hop peers is long-standing (#34 open since 2026-10-23); ring2 demand is external
- The "why" is real and traceable inside the repo: the ring transport's only path for non-neighbor ranks is the CPU mailbox relay. docs/roce-ring.md:116-142 describes the relay hop-by-hop protocol; roce_proxy.c:196-198 header ("Experimental neighbor transport in rank order. Only the two cable-neighbor QPs connect. Non-neighbor writes cross CPU-driven, bounded RDMA mailboxes"); ring_relayed()/ring_post()/ring_service() implement it (:348-360, :1039-1120). At world=4 every rank has exactly one 2-hop peer, so oneshot allreduce sends 1/3 of its traffic through a relay hop.
- That cost is a long-standing, repo-acknowledged concern: docs/roce-ring.md:134-137 notes a relay ack does not mean the destination GPU consumed the data; #324 (closed issue) and its fix #325 (merged) were both about relay flag ordering; #577 (open) targets relay-forwarding latency ("delaying relay forwarding on intermediate ranks"); #34 (open, Saolence, 2026-10-23) asks to eliminate the CPU relay for 2-hop transfers entirely via NIC hardware forwarding (flow label 16383) — i.e. the desire to avoid relay hops for distant ranks has been open since 2026-10-23 and unaddressed by any merged change.
- #643's approach is different from #34's: instead of forwarding 2-hop traffic in hardware, it removes the need for 2-hop traffic in the small-message case by running a 2-step neighbor-only algorithm (each rank writes only to its two 1-hop neighbors). It does not implement or supersede #34; it reduces the workload where #34's cost applies. Note #643's 4-rank-rejection at roce_proxy.c:1336 assumes the ring is closed, so it does not help chain (--roce-chain) deployments, which docs/roce-ring.md:349-353 already lists as not qualified.
- Prior art in-repo for "small messages are the latency problem": ignition/preparation/collectives.py:52-58 documents that reductions up to max_tokens rows run oneshot because it "is fastest for decode rows", and only larger ones use the pipelined two-shot (reduce-scatter + all-gather). So the oneshot path is the deliberate choice for decode-sized messages, which is precisely the regime #643 wants to replace with ring2 — a behavioural assumption that the description asserts ("small-message BF16 allreduce previously used the oneshot protocol") but does not quantify.
- No in-repo issue or PR requests kinds 5/6 specifically (searched items for "ring2", "two-step ring", "allreduce latency oneshot relay": only #643 itself and tangential hits). The demand originates outside this repo, in the companion external PRs the description names (local-inference-lab/flashinfer#192 and a local-inference-lab/hyperflare-recipes collective-selection PR, the latter cited without a number).
#12 [high] Recent activity: builds on #589/#325/#279, duplicates #576, conflicts with #577
Recent commits in helios/native before this PR (search_history on the file):
- ba3afb13 2026-11-28 Luke Alonso (#589): added roce_proxy_dlopen.c + build.rs change; introduced the "byte-for-byte identical to FlashInfer" constraint and the lazy dlopen. #643's build/compile story depends on this (the file is now #included by the dlopen shim) and #643 honours it mechanically, but only in build wiring, not in vendoring.
- dc0d40e0 2026-11-19 Luke Alonso: RoCE/TP lifecycle hardening (same author).
- 999c6159 2026-11-18 Iein Valdez (#325): relay flag-ordering fix — the previous change to ring_relayed/ring_service, which #643 also edits (ring_service, :1039-1042).
- a5b3b2b0 2026-11-13 jetnet (#279): ABI 14 re-vendor — the last time this file was synced with FlashInfer.
- e774a468 2026-11-10 Jason Cook (#251): ABI 11 re-vendor.
- 3c80cb6d 2026-10-23 FujitsuPolycom (#40): chain serving.
- a36480c7 2026-10-16 Jason Cook: added the experimental neighbor-ring RoCE transport (the ring this PR extends). Builds on: the ring transport (a36480c7), the ABI-14 lanes/credits (#279), the relay ordering fix (#325), the dlopen shim (#589). Conflicts with / duplicates: #576's pinning hunk (identical logic, same file), #577's reserve()/RING_WINDOW/drain changes (same functions and the same _Static_assert budget in the same region of the file). Reverses: nothing. It does not revert #325 (it keeps the flag-after-payload ordering in ring_submit and adds inline flags on the same WR chain) and does not change the relay protocol for existing kinds. Base-branch drift: the orientation packet notes 0 commits on main since the branch point (0a8c20f) touched the changed file, so #643 is current against main for this file; there is no rebase issue today. But both #576 and #577 are open against the same file and were rebased on 2026-11-30 00:39 (#576 -> ba2796c0 on main 3801ff1d, #577 -> a7327bc4), so merge ordering among the three is the live risk. Also note: #643 carries #576's pinning hunk, whose blocker on #576 (selene::shared::codec::cpu_pool() narrowing) is a Rust-side issue not present in #643's C-only change — but #643 also does not carry #576's Rust-side calls at all, so the C helper this PR adds would only narrow the flare-roce thread, not the model threads. That is a behavioural difference from #576 the description does not mention.
#15 [high] Research summary
I prepared the case file for PR #643 (2-step RoCE ring proxy opcodes for 4-rank switchless rings, 1 file, +311/-26, head 9c3ea69). All nine angles are covered in the scratchpad with file:line and PR/issue citations (14 notes; 9 high importance).
The most consequential findings, all of which a reader cannot get from the description: the diff contains a substantial amount the description never mentions — a verbatim copy of PR #576's CPU-capacity pinning and thread-naming hunk, IBV_SEND_INLINE added to the existing one-shot and relay write paths plus a max_inline_data bump 16→256, a reordering of post_op so relayed peers are posted first, and a restructured ring idle loop that services relays every spin instead of every 64 for all ring transports. The change also departs from the repo's load-bearing vendored-parity invariant (roce_proxy.c:6-8, roce_proxy_dlopen.c:7-9, docs/roce-ring.md:361-364, NOTICE:16-19) without naming any upstream FlashInfer proxy PR for the new opcodes — the exact ground on which reviewers blocked sibling #576 and #577, and an invariant the same author created in #589. Evidence is an absolute 31.8–33.0 µs/call figure only, with no baseline against main and no served-workload measurement, against a charter that requires a measured speedup over main on a served workload (#210); and the cited Rust test runs omit --features roce, so the edited C file is never compiled by them or by any PR-triggered CI job.
I also mapped the conflict surface: #576 duplicates the pinning hunk in the same file, and #577 rewrites the same reserve()/ROCE_SEND_DEPTH budget and drain path that #643 refactors, with both siblings still blocked. The why is traced to a long-standing in-repo concern (#34 opened 2026-10-23, #577's relay-forwarding work, the relay protocol in docs/roce-ring.md:116-142), while demand for the specific kinds 5/6 opcodes originates entirely outside this repo (flashinfer#192 plus an unnumbered recipes PR). Community engagement is zero: no comments, reviews, reactions or Autobot case file, in contrast to two review rounds on each sibling.
#7 [medium] Community: zero engagement so far on #643
- The PR has zero comments, zero reviews, zero reactions (pr_comments returned "No comments"; read_item #643 shows "Discussion (0)"). Opened 2026-11-30 17:35, last updated same moment, so no engagement yet. It is not marked draft; state is "open" and the orientation packet says ready for review. CI on the head commit: passed (but see the CI entry — the changed C is not compiled by PR CI).
- Contrast: the two sibling PRs on the same file, #576 and #577, each have 6-point discussions with two rounds of CHANGES_REQUESTED from original-el8 (COLLABORATOR) plus Autobot reviews. So the RoCE ring proxy area is a heavily-reviewed area, and this PR has not yet entered that process.
- No Autobot case file / review exists for #643 yet (unlike #576, #577, #589 which show the "A case file has been opened" bot comment).
- The PR description does carry a Discord line ("Discord: lukealonso") and follows the repo's four-part scheme (Why / What Changed / Claimed Benefit and Result / Supporting Evidence and Limitations), matching docs/design-review.md principle 16 (:150-162) and AGENTS.md:144-150.
#8 [medium] People: author is a priority contributor and owner; owns the parity rule he now departs from
- Author: lukealonso, GitHub association COLLABORATOR, listed in the charter as a priority contributor ("Priority contributors (@voipmonitor, @original-el8, @lukealonso) carry extra weight", charter Respect for the Community), and is the project owner whose approval is required for new captured-graph operation families (AGENTS.md:376-381 names "project owner Luke Alonso lalonso@gmail.com"). 26 merged PRs in the last 180 days, 2 open (#643, #644, #645), 0 closed. Their merged work concentrates in helios/src (20), docs (16), ignition/preparation (8), flare-cli/src (6), tests/preparation (6).
- Author's history in THIS file/layer: #589 (merged 2026-11-28, ba3afb13) introduced helios/native/roce_proxy_dlopen.c and the "keep roce_proxy.c byte-for-byte identical to FlashInfer" comment — i.e. the same author created the parity invariant that #643 does not address in its description. Also dc0d40e0 (2026-11-19) "Harden Helios HTTP ingress, frontend bounds, RoCE/TP lifecycle, and crate boundaries" touched helios/native.
- Who usually works in helios/native: last 180 days - Jason Cook (4 commits: ABI 7/11/14 syncs, ring transport introduction a36480c7, e063d4b6), Luke Alonso (3: dc0d40e0, ba3afb13, 9c3ea69d), jasonc (2). External PRs to the file came from original-el8 (#251), jetnet (#279), Iein Valdez (#325), FujitsuPolycom (#40), and now fordbmorris (#576, #577).
- Reviewers who have engaged on this file historically: original-el8 (COLLABORATOR, requested changes on both #576 and #577, and authored the closed duplicate #633 for the pinning hunk — closed by the bot as duplicate of #576). fordbmorris (FIRST_TIME_CONTRIBUTOR) is the author of both competing open PRs #576/#577 on the same file.
- Not yet engaged on #643: original-el8, fordbmorris, Jason Cook, flare-autobot.
#13 [medium] Process: ready-for-review, new, unreviewed; PR CI does not compile the C
Process facts:
- State: open, not draft, "ready for review" per the orientation packet; opened and last updated 2026-11-30 17:35 (same minute), so effectively brand new (age < 1 day at intake).
- Branch sm121-roce-ring2-proxy, head 9c3ea69d, base main, branch point 0a8c20f4 (2026-11-29). Single commit on the branch ("perf(helios): add 2-step RoCE ring proxy opcodes for 4-rank switchless rings").
- Size: 1 file, +311/-26 (helios/native/roce_proxy.c). No tests, no docs, no Rust.
- CI on the head commit: passed (orientation packet). Caveat recorded separately: PR CI (native-serving.yml) does not compile the roce/aarch64 build of this file; only
cargo checkon flare-cli --features roce,rdma in therdmajob (native-serving.yml:101-113) would compile the C, and only for x86_64. - Review state: no reviewers assigned, no reviews, no Autobot case file. Labels: none (unlike #576/#577 which carry area:orbit / area:rocenante / performance / triage:review).
- PR description quality: follows the mandated four-part scheme and has the required Discord line (design-review.md:150-169; AGENTS.md:144-150). It does not give a before/after baseline, does not name the upstream proxy source for the new opcodes, and does not declare the CPU-pinning / inline / posting-order / idle-loop changes.
- Design acknowledgment: .githooks/commit-msg enforces exactly one
Design-Signed-Off-By: <identity>; design-review=<4 hex>matching the staged docs/design-review.md digest; whether the branch commit satisfies it is not visible from the PR page. - Merge-order risk against open siblings: #576 (pinning, same C hunk) and #577 (reserve()/RING_WINDOW/drain, same functions and static assert) are both open and both still have unresolved blockers; #577 additionally requires FlashInfer#157 to merge first. Any merge order requires a rebase of the vendored file, and if #576 re-vendors from flashinfer 335459b2 after #643 lands, #643's pinning copy would be overwritten.
#14 [medium] Change detail: ring2 is a data mover; 32-byte alignment; completion polling relaxed
Notes on the ring2 algorithm itself, at the level needed to judge the description's claims (not a code review):
- post_ring2_step (roce_proxy.c:1335-1370) is purely a data mover: it writes the lower half of send[slot] to one neighbor at recv[our rank][slot] offset 0 and the upper half to the other neighbor at offset half_bytes, same for each rail. It does no reduction — the summing happens in the b12x kernel (external). So "all-reduce" in the kind names describes the algorithm the kernel drives, not the proxy.
- Halves are alternated by
p_lo = (even ^ step) ? cw : ccw(:1350-1354), so step 1 and step 2 swap which neighbor gets lo/hi. Nothing checks that step1 and step2 for the same logical allreduce use the same seq/slot or arrive in order; the kernel's flag waits are the only sequencing (the proxy treats each kind as an independent op, incrementing ops_posted per step, :1368). - Payload constraints: multiple of 32 bytes and <= slot_bytes (:1342-1348). The oneshot path allows multiples of 16 (:1227). So a 16-byte-aligned but not 32-byte-aligned reduction cannot use ring2 — relevant because ignition/preparation/collectives.py:72-73 only enforces 16-byte packs for RoCE capacities.
- Completion accounting: ring2 signals one in 16 WRs per (HCA, peer) QP and caps outstanding signaled ops at 6 (RING2_MAX_OUTSTANDING), so the queue headroom argument is: 6162 + 15*2 = 222 WRs, leaving 512-222 = 290 for the ROCE_SEND_DEPTH/6 = 85 relay ops * 3 = 255 WRs plus ring ACKs (roce_proxy.c:175-187). That budget is asserted at compile time, not measured.
- The proxy never calls drain_all() at the end of post_ring2_step (unlike post_op which returns drain_all(c), :1253-1254); ring2 relies on the idle loop's ring_service/drain_cqs (:1794-1814) and on whatever drain reserve_limit triggers while waiting. Completions are thus polled less eagerly during ring2 traffic than during oneshot — the idle loop explicitly reduces ring_service to every 16th spin while a ring2 op is last (:1797-1804).
- The new inbound filtering (ring_relays_origin, :732-751 and :1039-1042) is a performance change to the relay path: a rank now only services mailbox slots for origins whose ring path actually passes through it. This assumes the ring path computation ring_next_from matches what senders use; both now share ring_next_from, so they agree by construction.
#16 [medium] Leads: orientation-packet items checked and what each yielded
Leads in the orientation packet, followed or dismissed:
- #577 (open, same file) — FOLLOWED, substantive: see the related-work entry; conflicts on reserve(), RING_WINDOW, drain_all and the same _Static_assert.
- #576 (open, same file) — FOLLOWED, substantive: #643 carries #576's pinning hunk verbatim.
- #633 (closed) — FOLLOWED: original-el8's own +71-0 attempt at exactly the pinning hunk, closed 2026-11-30 12:19 as a duplicate of #576 (Autobot stopped the review: "Another open pull request already covers this change, or more of it"). So the pinning hunk now has three separate PRs carrying it (#576, #633 closed, #643) — worth knowing when judging #643's scope.
- #34 (open issue) — FOLLOWED: asks for NIC hardware forwarding of 2-hop transfers; #643 instead avoids 2-hop traffic for small messages. Not implemented or superseded by #643.
- #325 (merged) — FOLLOWED: previous change to the same relay ordering and ring_service that #643 edits; #643 does not revert it.
- #589 (merged) — FOLLOWED: introduced roce_proxy_dlopen.c and the byte-identity constraint; #643 depends on it mechanically.
- #251, #279 (merged) — FOLLOWED: the two prior ABI re-vendors that establish the "upstream first, then vendor" pattern.
- #215 (closed) — background only: the flashinfer pinning-history PR; relevant to pyproject.toml:47 (
branch = "main", not a commit pin). - #506 (merged, DGX Spark CX7 preflight) — not relevant to this change beyond shared hardware.
- #232, #271, #324 — not relevant to #643's code: #232/#271 are earlier rail/ABI startup reports, #324 is the relay-flags-ahead issue whose fix is #325 (already followed). No overlap with ring2 opcodes.
- PR CI "passed" in the packet — CHECKED and qualified: it does not cover the changed C (see the CI entry).
#17 [medium] Related work: #644/#645 same author no overlap; the feature's other half lives outside this repo
- Same author's other open PRs, opened the same day: #644 "fix(helios): per-step speculative calibration and excluded-only waiting/delivery fairness" and #645 "Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining". Neither touches helios/native/roce_proxy.c (their areas are helios/src scheduling), so there is no code overlap with #643; the only connection is that all three are in flight from the same priority contributor simultaneously, which affects reviewer bandwidth rather than the change.
- #643's claimed benefit depends on two items outside this repository, named in the description but not verifiable from this repo: local-inference-lab/flashinfer#192 (the b12x ring2 CuTe kernel that publishes kinds 5/6) and "the local-inference-lab/hyperflare-recipes collective selection PR" (cited without a number). Nothing in this repo records either; in-repo search for ring2 / two-step ring / RING2 finds only this PR's own code (helios/native/roce_proxy.c). So the two halves of the feature — proxy opcodes here, kernel and recipe selection upstream — must land together, and only one side is in this repository's review process.
- Consequence for the decision record: equally, the description's claim that serving "drives b12x's 2-step RoCE ring allreduce" on the named cores cannot be checked in this repo; the in-repo evidence stops at "cores recording ABI 9/10/11/14 still load" (helios/src/execution/roce.rs:131), which #643 does not change.