#1 [high] Change: what PR #576 actually touches
PR #576 https://github.com/NVIDIA/hyperflare-inference/pull/576, branch base 167f22c, head 3363573b, single commit dated 2026-11-25, author "woooflet" (GitHub fordbmorris, association NONE). 7 files, +226/-1. No doc file changed; no test file added outside eos/src/unix.rs.
- eos/src/unix.rs +145:
pub fn select_high_capacity_cpus(&[(usize,u32)]) -> Option<Vec<usize>>(lines 167-206) and#[cfg(target_os="linux")] pub fn prefer_high_capacity_cpus()(lines 208-245), plus#[cfg(not(target_os="linux"))] pub fn prefer_high_capacity_cpus() {}(line 247-248). Three new unit tests (lines 251-320). - eos/src/windows.rs +3:
pub fn prefer_high_capacity_cpus() {}(line 219-220), one-line comment. - helios/native/roce_proxy.c +71:
#ifdef __linux__ static void pin_high_capacity_cpus(void)(lines 1505-1570) and inproxy_main(line 1572)(void)pthread_setname_np(pthread_self(), "flare-roce"); pin_high_capacity_cpus();(lines 1574-1577). - helios/src/server/runtime.rs:568
flare_eos::prefer_high_capacity_cpus();first statement inside theflare-modelthread closure. - helios/src/execution/worker.rs:71 same, first statement inside the
flare-executionthread closure. - helios/src/replay.rs:173-176 wraps
run(...)in a closure with the call first, inside theflare-cudathread. - helios/src/execution/parallel.rs:539 first statement of
pub unsafe fn serve_rank(...). Verified against pr_diff and the files at pr/576 head.
#2 [high] Change: undeclared divergence from the vendored Flare/FlashInfer proxy
The description calls the C side "adds the equivalent pin_high_capacity_cpus() helper" and says no transport ABI change (ABI stays 14). It does not mention that helios/native/roce_proxy.c carries an explicit must-stay-identical contract:
- File header, 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."
- NOTICE:16-19: "helios/native/roce_proxy.c was contributed by its original author from: ... Its implementation is unchanged from that revision; Flare adds a license and provenance preamble."
- THIRD_PARTY_NOTICES.md:48-52 repeats the provenance.
- 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."
This PR inserts 71 lines plus a pthread_setname_np call into the vendored body and makes the "implementation is unchanged" statement in NOTICE inaccurate unless the same helper lands upstream. The description says only "Paired independently with https://github.com/local-inference-lab/flashinfer/pull/156 (zero wire/ABI dependency — either PR can merge in any order)", which implies the FlashInfer side exists, but it never says that the local vendored copy now differs from the pin, nor that NOTICE/docs need updating. Prior ABI work (#251, #279) was done precisely by re-syncing the vendored copy with an upstream revision (see #279 description: "carries FlashInfer's ABI 14 _roce_proxy.c (7b35510b) unchanged below its vendoring header").
#3 [high] Change: coverage gap — same-process threaded TP rank threads are not pinned
The description says the change pins "the model, peer-rank, execution, and replay worker threads". Verified call sites are only four. The same-process tensor-parallel executor spawns its own CUDA-owning rank threads that are not covered:
- helios/src/execution/threaded.rs:652-678:
thread::Builder::new().name(format!("flare-rank-{}", index + 1))spawns a thread that constructsGraphExecutor::new_unstarted(manifest)and runsrank_loop(...). Noprefer_high_capacity_cpus()call. This is theRankPeers::Threadspath (helios/src/execution/ranks.rs:34-37), selected byflare runfor single-host multi-GPU TP (flare-cli/src/main.rs:620-621.then_some(RankPeers::Threads(manifests))) and by Heliopause (heliopause/src/python.rs:410). serve_rank(the covered one) is the multi-host peer entry: flare-cli/src/main.rs:560 inserve_peer, and heliopause/src/python.rs:548.- docs/same-process-tp.md:137 documents that same-process TP "uses rank threads (
RankPeers::Threads...)", so this is a documented serving configuration whose hot threads are left untouched. The description never mentions threaded TP or why it is excluded. - Similarly untouched CUDA/host-loop threads:
flare-cudain replay is covered, but offload transfer threadsflare-offload-{rank}(helios/src/offload/transfer.rs:509-511), Engram reader threadsflare-{event}(helios/src/engram.rs:552-554), the unnamed image-preparation thread (helios/src/server/runtime.rs:1011), and selene disk threads (selene/src/disk.rs:358) are not. Those are lower-priority by design (they callflare_eos::lower_priority, eos/src/unix.rs:77-83), so exclusion may be deliberate but is unstated.
#4 [high] Change: two behaviours the diff adds that the description does not mention
- The affinity change is unconditional, silent and has no opt-out or observability.
prefer_high_capacity_cpusreturns()on every path (eos/src/unix.rs:208-245);sched_setaffinityfailure is discarded withlet _ = ...(line 244). Nothing is logged, no metric is exported, no flag/config/env var exists to disable it. An operator cannot tell from the process's output whether threads were pinned or the call no-opped; they must read /proc//task//status. Contrast #280, which prints one line per process when its path is active ("[flare] frame completion wait: WFET", per #280 description). Relevant project rules: AGENTS.md:449-466 (settings have a home in recipe/config/flag; no env-var-selected behaviour) and the charter's "Be explicit and pin everything. No magic defaults." - The thread rename is part of the measurement method but the description presents it as a cosmetic change ("sets the thread name to "flare-roce" via pthread_setname_np"). The claimed evidence ("8/8 threads held on X925 across all checkpoints", "48/48 critical threads (flare-roce + execution thread)") depends on being able to identify threads by name. The other threads already had names before this PR (
flare-modelruntime.rs:566,flare-executionworker.rs:69,flare-cudareplay.rs:172,flare-rank-Nthreaded.rs:653), so "flare-roce" only makes the proxy visible totop -H/perf. Worth noting: the rename alone changes nothing functionally, but it also means the pre-change baseline could not have identified the proxy thread the same way, i.e. how un-pinned launches were classified as "at least one critical thread on Cortex-A725" is not stated.
#5 [high] Why: the problem addressed and whether it was asked for
The stated problem: on GB10 (DGX Spark) the 20-core Grace CPU has 10 Cortex-A725 (cpu_capacity 718-731) and 10 Cortex-X925 (997-1024); without affinity hints Linux places the CUDA execution/WFET thread and the busy-polling RoCE proxy thread on either tier across launches, and efficiency-core placement slows one-shot RoCE collectives, stretches p90 inter-graph host wake gaps (>1 order of magnitude) and adds verification-round jitter.
Provenance of the problem statement: no linked issue, no maintainer request, no prior discussion found. Searches over the local copy for "affinity CPU pin threads", "cpu_capacity efficiency cores GB10", "governor frequency schedutil", "pin threads cores taskset systemd affinity", "variance identical launches", "roce oneshot launch host overhead", "NUMA core pinning priority thread" all returned only #576 itself (or unrelated items). The only related prior work is #280/#353 (WFET waits, GB10 power) and they are about whether the loop spins at all, not which core it lands on. AGENTS.md:165-169 requires every contribution to address "an explicit maintainer request, a demonstrated defect, a measured performance or memory problem, or inaccurate documentation" — the PR's case rests on the last-but-one, and the only corroborating defect reports are its own measurements. Verified context that makes the premise plausible: the RoCE proxy thread really does busy-spin on ctrl.seq and only naps after ROCE_IDLE_SPINS = 20,000,000 idle polls (helios/native/roce_proxy.c:172, 1579-1610), and #280 confirms GB10's X925 and A725 both have FEAT_WFxT and that serving loops held a core at 100%.
#6 [high] Related work: #280 and #353 change the same loops and the same GB10 host-cost topic
#280 (merged 2026-11-13, jetnet, +159/-3) "Park the serving loops on a frame-completion word in WFET on GB10" touched helios/src/execution/parallel.rs and helios/src/server/runtime.rs in the same functions #576 edits (the rank loop and the flare-model worker), plus execution/ranks.rs and transport.rs. It was merged after a triage:design-review label, a review comment by original-el8 and an APPROVED review; reviewers accepted it because the description gave power numbers with alternating run order, raw JSON on request, and explicit untested paths. #576 builds directly on that world: after #280 the serving loop can wait in WFET instead of yielding, so which CPU the loop runs on for the rest of the work is what is left. The PR description says nothing about #280 or about how the two interact (e.g. a thread in WFET is accounted as running by Linux, per #280 and #353, which is exactly the thread this PR moves between tiers).
#353 (closed, not merged, 2026-11-18) is the counter-example for the bar: yatesdr closed a WFET-based Engram wait because "it shows no benefit, and the measurements in the description lean the other way", invoking AGENTS.md's requirement for "a demonstrated defect or a measured performance or memory problem", and also flagged a missing Signed-off-by on the first commit. Relevant because it is the maintainers' most recent ruling on a GB10 thread-level micro-optimisation.
#576's own topic also intersects 4 items from the orientation packet that it does not mention: none of #572, #556, #334, #548 touch CPU affinity.
#10 [high] People: author is a first-time contributor with no merged work and no reviews yet
- Author: GitHub
fordbmorris, Discordwoooflet(given in the PR description per AGENTS.md:142-153), repository association "NONE" — i.e. not a member, and not one of the charter's priority contributors (@voipmonitor, @original-el8, @lukealonso). - Commits on main:
search_historyfor "woooflet" and "fordbmorris" returns no commits; the only appearance of the name in history is the PR's own commit 3363573b (search_history text="affinity" lists it as "woooflet"). So: first-time contributor with no merged code in this repository. - Their other PRs (all opened 2026-11-28, all open, none reviewed): #574 ignition AOT guard pickler, #575 TML raw JSON args, #577 RoCE ring window. #574/#575 were updated minutes after opening by
flare-autobot(case-file bot), which is the only activity on any of them. No maintainer has engaged on any of the four. - Engagement on #576 itself: zero comments, zero reviews, zero reactions ("No comments", pr_comments). Labels: none. Compare #280 (merged) which got
area:scheduling, enhancement, performance, triage:design-reviewplus a review comment before merge, and #279 which gotarea:rocenante, bug, priority:P1, triage:review. So #576 has not yet been triaged. - Who usually works here: for host-thread policy the relevant owners are jetnet and original-el8 (the two WFET/host-waiting PRs #280/#353 and the proxy ABI resync #251/#279), plus Luke Alonso who owns most helios/src and eos/src churn.
- The author's four PRs together show a coherent theme (GB10/4-Spark TP4 serving tuning: proxy ring window, host thread placement, plus a TML parser fix and an Ignition pickler fix), consistent with someone operating a 4x DGX Spark cluster (their benchmarks are all 4-Spark TP4, Inkling 2 Small NVFP4) rather than a core contributor.
#12 [high] Project fit: charter and doc statements on affinity, evidence and defaults
Facts from the charter/AGENTS.md that bear on this change, without judging whether they are met:
- Project focus: "SM120/SM121 workstations and DGX Spark" (charter Vision) — DGX Spark/GB10 is explicitly a target, so tuning for GB10 is in-scope territory.
- Charter "Bring real evidence": "Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)." #576 does provide served-workload numbers (see the claims note), though not a same-launch alternating A/B againstmain. - Charter "Solve the right problem in the right place... Look for the smallest footprint in shared code, or a way to solve it without new code at all." The change adds a new mechanism in a shared crate (eos) plus a duplicate C implementation.
- Charter "Be explicit and pin everything. No magic defaults". The change is a magic default: silent, automatic, unlogged tier selection from a sysfs file.
- AGENTS.md:449-466 "Flare, Helios, recipes, and components never read an environment variable to choose behavior... A setting has one of three homes: the recipe declaration, the configuration file, or a command-line flag" and "A setting that only experiments need is an advanced flag". #576 correctly avoids an env var, but also adds no setting at all.
- docs/prefix-cache-offload.md:863-867 is the only existing written policy on CPU affinity in the repository: "Both use
SCHED_BATCHwith a positive nice value to reduce contention... Adding CPU affinity requires a serving-latency measurement that shows a benefit." That is a design-document statement scoped to offload transfer threads, but it establishes that the project has previously treated affinity as something needing a measured serving-latency benefit — which #576 supplies for its own threads (see claims note), and a pattern that #576 follows in spirit. - docs/roce-ring.md:361-364 (vendored proxy must stay identical to the dependency) — the tension noted separately.
- No documented policy anywhere assigns or forbids CPU pinning for the model/execution/proxy threads: docs/operating.md has no matches for CPU/affinity/governor; docs/orbit.md only discusses CPU architecture for build selection and per-connection encryption threads.
- Non-goals: "CPU or non-NVIDIA backends ... general cluster orchestration" — not violated; this is NVIDIA GPU serving tuning.
#13 [high] Claims and evidence: what is asserted, what backs it, what is missing
Claimed, with what backs each (all evidence is the author's own; nothing independently reproduces it):
- "48/48 critical threads (flare-roce + execution thread across 4 ranks x 6 Orbit launches) pinned to Cortex-X925 CPUs (5-9,15-19), compared to 4/4 unpinned launches landing at least one critical thread on Cortex-A725." No raw data, no commands, no per-launch table; the classification method for the pinned runs is unstated (presumably
top -Hafter the pthread_setname_np rename; for the unpinned runs the proxy had no name). The PR's own unit tests only testselect_high_capacity_cpus(pure function), not the sysfs read orsched_setaffinity. - "batch=1, width=8 graph-time CV 4.82% (4 unpinned launches) -> 0.72% (6 pinned), range 50.18-51.07 ms; width=1 CV 1.50% -> 1.07% (29.66 ms mean)." No raw samples listed; 4 vs 6 launches is a small sample for a variance claim, and values were collected on different numbers of launches.
- "Controlled A/B on the same live server (C8 64k decode, zero restarts): X925 144.88 tok/s (55.89 ms/graph, peak 151.10) vs A725 123.66 tok/s (65.38 ms/graph), +17.2%." This is the strongest claim: same server, zero restarts, so it isolates core tier. But the method for forcing A725 placement (taskset on which threads? proxy only? execution thread too?) is not described, so it is unclear whether the A/B moved exactly the same threads the PR moves. Also it is a single pair of numbers, no repeats/spread given.
- "nsys --cuda-graph-trace=node: C1 width=1 RoceOneshotLaunch sum 2.77 ms -> 1.91 ms (-31.0%); C1 verify p90 inter-graph host wake gap 1,880.3 us -> 30.9 us (61x)." No trace files or capture commands; unclear whether the baseline is "unpinned launches" (i.e. placement luck) or a forced-A725 arm.
- "Cold prefill (same core, no re-export), 8k-128k, +2.6% to +17.3%; 8k 1,527 -> 1,791 tok/s; 16k 1,716 -> 1,873; 0.11% CV across launches." Cold prefill is the phase where the proxy thread is least involved (collectives are prefill reductions, actually heavily involved), and reusing one core across arms is a strength.
- "Rust unit tests pass on ARM64 GB10 covering GB10 two-tier capacities, homogeneous no-op, single-tier cpuset no-op, invalid/zero capacities, three-tier no single-core collapse." Verified: those three tests exist at eos/src/unix.rs:251-320 and match the claims. They do not cover: the sysfs read path, the sched_setaffinity path, the fallback branch of
selected.len() < 2when the 90% filter yields >= 2 but == all (covered by the homogeneous/single-tier tests), the C implementation at all (no test), or the#[cfg(not(target_os="linux"))]stub. - "4-Spark TP4 serving validation: 6 consecutive Orbit launches plus a 2-hour multi-vector soak (0 errors, 0 leaks, 8/8 threads held on X925 across checkpoints, 0/16 RoCE port errors)." No logs or report ids; "0 leaks" method unstated.
- CI: the head commit has no checks ("CI on the head commit: no checks"). .github/workflows/native-serving.yml would run eos tests on ubuntu x86_64 and windows (line 47 "Test host OS helpers: cargo test --locked --release --manifest-path eos/Cargo.toml") — on x86_64 Linux the new tests still run (they are pure), and the windows stub would compile there; so the two untested targets would at least be compile-checked if CI ran. It has not.
- Nothing in the description reports a regression check for the cases where pinning could hurt: single-host TP1 serving (where the only threads are flare-model + flare-cuda and the machine also runs the frontend), and hosts where an operator deliberately spread work across both tiers. Stated caveat is narrower: x86_64 has no cpu_capacity so it no-ops.
Untested/unstated by the author: eos unit tests were run only on GB10 (ARM64) — the description says so; windows.rs stub not compiled; C helper not tested at all; no measurement of the effect of pinning all four Rust threads plus the proxy versus only the two "critical" ones named in the Why (the Why names two threads, but the diff touches four Rust call sites plus the proxy, and the claimed placement evidence covers only "flare-roce + execution thread").
#14 [high] Reach: users, operators, containers, compatibility, docs, upstream
Who/what is affected, verified from the code:
- Every Linux host serving a core through
flare run(single-host, multi-host rank-zero, multi-host peer), every Heliopause-embedded serving path (heliopause/src/python.rs:86 ReplayWorker, :410 ExecutionWorker, :548 serve_rank), and every RoCE transport on Linux (proxy created byroce_create, helios/native/roce_proxy.c:497/1674). - Configuration and defaults: no new flag, config key, env var, Protobuf field or recipe parameter (verified: the diff adds none, and AGENTS.md forbids env vars). Existing operator cpuset/cgroup restrictions are preserved by intersecting with the thread's own mask (eos/src/unix.rs:218-244 and the C mirror) — but note that the mask read is per-thread and
sched_setaffinityapplies to the calling thread only, so the process-wide mask is not narrowed; other threads (HTTP, tokio runtime, offload, Engram) keep the full set. - Compatibility: proxy ABI stays ROCE_ABI_VERSION 14 (helios/native/roce_proxy.c:134); no core format change; existing cores load and serve (the change is host-side only). But mixed-binary behaviour inside one
--roce-ringgroup is not discussed: the proxy's own pinning is local to each host, so no cross-rank agreement is required (unlike #577's RING_WINDOW, which is a wire contract) — worth stating as a reason this PR is safe to merge in any order, which the description hints at ("either PR can merge in any order") without the argument. - Deployment targets: Linux aarch64 (GB10, the only place cpu_capacity exists per the author's claim), Linux x86_64 (no cpu_capacity -> no-op; but note the fallback is not the only path: if /sys/devices/system/cpu/cpuN/cpu_capacity is missing for any allowed CPU, prefer_high_capacity_cpus returns early — eos/src/unix.rs:227-232 — which is a per-CPU read, so a container that mounts /sys partially could behave inconsistently, though it would still be a no-op rather than a bad pin), Windows (no-op stub).
- Containers/security: the code reads /sys/devices/system/cpu/cpuN/cpu_capacity and calls sched_getaffinity/sched_setaffinity. docs/container.md:106-110 describes the required container seccomp policy and points at selene-manager/deploy/seccomp-io-uring.json, which already allows sched_getaffinity/sched_setaffinity (lines 309/317) — so no new capability is needed for the selene paths, but the doc set does not mention the new sysfs read or that serving now re-narrows affinity inside a container. Notably the sysfs read is a plain file read, which is allowed by default seccomp.
- Observable behaviour change for operators:
top -H/htopwill now showflare-roce, and the four Rust threads will show a reduced allowed-CPU set in /proc; a profiling or tracing setup that assumed the process could use all CPUs will see different placement. - Documentation: the PR changes no documentation, although the repository documents thread/CPU policy in docs/prefix-cache-offload.md, docs/roce-ring.md (proxy description, ABI table), docs/operating.md and NOTICE. AGENTS.md:54-60 says designed behaviour the code does not implement must be marked as such and that support must be stated as present qualification; conversely a new qualified behaviour normally gets a doc statement. Nothing in the diff records the GB10 qualification or the aarch64-only scope.
- Reach into the FlashInfer ecosystem: the same helper is proposed upstream as local-inference-lab/flashinfer#156; if that lands, the vendored copy here can be resynced; if not, the vendored copy permanently diverges (see the vendoring note).
#17 [high] Cross-cutting: what a reader could not learn from the description
Things the reader could otherwise miss, gathered here so the report can lead with them:
- The C half of the change edits a file whose header, NOTICE and docs/roce-ring.md all assert it is byte-identical to the pinned FlashInfer proxy; the description never mentions this invariant or that NOTICE:18 ("Its implementation is unchanged from that revision") becomes false unless flashinfer#156 lands. (Entry "Change: undeclared divergence...")
- Same-process threaded TP (
flare-rank-N, threaded.rs:652-678) is a documented serving mode whose CUDA-owning rank threads are left unpinned, while the description implies peer-rank threads are covered — it coversserve_rank(multi-host peer) only. - The behaviour is silent, unconditional and unobservable (no log, no metric, no flag, setaffinity error discarded), against the charter's "no magic defaults" and AGENTS.md's rules on settings having one home.
- The Why names two critical threads; the diff pins four Rust threads plus the proxy, and the placement evidence only covers "flare-roce + execution thread" — so three of the five call sites have no placement evidence at all.
- All performance evidence is author-supplied with no raw data, no commands, and (for the CV claims) 4 vs 6 launches; the strongest single number is the same-server C8 A/B (+17.2%) whose A725-forcing method is not described.
- No CI has run at all on the head commit; the repo has a workflow step that would exactly run the new eos tests.
- Author is a first-time contributor with no merged commits and no reviews anywhere; all four of their PRs are unreviewed.
- The project has a written precedent that affinity needs a serving-latency benefit (docs/prefix-cache-offload.md:866) — this PR is consistent with that rule for its own threads, which is the strongest "fits the project" argument available and is not made in the description.
#18 [high] Research summary
Case file prepared for PR #576 (open, ready for review, 7 files +226/-1, head 3363573b, author fordbmorris/woooflet, zero comments and zero CI). Seventeen scratchpad entries cover all nine angles; the highlights:
What it does. A verified six-file wiring: eos/src/unix.rs gains select_high_capacity_cpus (pure, unit-tested) and a Linux-only prefer_high_capacity_cpus that reads sched_getaffinity plus per-CPU /sys/devices/system/cpu/cpuN/cpu_capacity, keeps CPUs at ≥90% of the max allowed capacity (fallback: strictly above the midpoint, minimum two CPUs) and calls sched_setaffinity on the calling thread; a Windows no-op stub; a logically identical C pin_high_capacity_cpus plus pthread_setname_np("flare-roce") in the vendored roce_proxy.c; and one call at the top of the flare-model, flare-execution, flare-cuda thread closures and serve_rank. I hand-checked the threshold arithmetic against the GB10 capacities: it selects exactly {5–9,15–19} as claimed, no-ops on homogeneous/single-tier/zero-capacity sets, and both implementations are equivalent in behaviour and share a "≥2 CPUs, not ≥ threads" weakness under small operator cpusets.
Undeclared. (a) helios/native/roce_proxy.c carries an explicit "keep the source identical" contract (file header lines 6-8, NOTICE:16-19, THIRD_PARTY_NOTICES.md:48-52, docs/roce-ring.md:361-364); this PR edits its body, makes NOTICE's "implementation is unchanged from that revision" false unless flashinfer#156 lands, and never says so — unlike the precedent #325/#279/#251 which always called out upstream parity. (b) Same-process threaded TP (flare-rank-N, threaded.rs:652-678, the RankPeers::Threads path used by flare run and Heliopause, documented in docs/same-process-tp.md:137 (not opened)) keeps unpinned CUDA rank threads; only the multi-host serve_rank peer path is covered. (c) The change is silent, unconditional and unobservable — no log, metric, flag or config, and sched_setaffinity failure is discarded — against the charter's "no magic defaults" and AGENTS.md's rules on settings having one home; and the pthread_setname_np rename is in fact the instrument the placement evidence depends on.
Why / related work / recent activity. No issue or maintainer request backs the problem; exhaustive searches found only this PR. The nearest prior work is #280 (merged, GB10 WFET parking in the same functions this PR edits) and #353 (closed for insufficient benefit, the maintainers' most recent bar for exactly this class of GB10 thread-level change). Same author's synchronous #577 edits the same vendored file. Nothing conflicts, nothing is reversed; nothing on main since 167f22c touched the files.
People / community / process. First-time contributor, association NONE, no merged commits, four unreviewed PRs all opened within one minute of each other; no comments, reviews or reactions on this one, no triage label despite docs/design-review.md naming execution/{threaded,parallel,roce}* changes as design-review territory; no CI run at all, though native-serving.yml:46-47 would run exactly the eos tests cited; DCO sign-off unchecked.
Claims. Every number is author-supplied with no raw data, commands or trace files; the strongest is the same-server C8 A/B (+17.2%) whose A725-forcing method is undescribed; the CV claims rest on 4 vs 6 launches; the three eos unit tests exist and match the description but cover only the pure function, not the sysfs/setaffinity paths or the C helper; three of the five pinned call sites have no placement evidence. Project fit is mixed: DGX Spark is an explicit target and docs/prefix-cache-offload.md:866 already sets "affinity requires a serving-latency measurement that shows a benefit", which this PR arguably satisfies for its own threads — but the silent-default and vendored-proxy-drift aspects pull against the charter's explicitness and in-place rules, and no documentation was updated for a newly qualified aarch64-only behaviour.
#19 [high] Change: description-vs-diff audit in both directions
Checked the description sentence by sentence against the diff at pr/576 (head 3363573b).
WHAT THE DESCRIPTION SAYS THAT THE CHANGE DOES NOT DO — nothing material found. Verified as accurate:
- "adds select_high_capacity_cpus and prefer_high_capacity_cpus (with a no-op stub in eos/src/windows.rs)" — present at eos/src/unix.rs:167-248 and eos/src/windows.rs:219-220.
- "reads the calling thread's current sched_getaffinity mask and each allowed CPU's cpu_capacity ... at least 90% of the maximum ... falling back to strictly above (min_cap + max_cap) / 2 if fewer than two CPUs meet the 90% threshold" — exact.
- "no-op when cpu_capacity is absent, unreadable, zero, homogeneous (min_cap == max_cap), or already restricted to one tier" — exact, including that absence/unreadability returns from the whole function rather than skipping one CPU (eos/src/unix.rs:227-232).
- "call ... on entry to the model, peer-rank, execution, and replay worker threads" — four call sites, all first statement in the closure/function (runtime.rs:568, parallel.rs:539, worker.rs:71, replay.rs:173-176). The Rust accounting is honest.
- "existing exported cores load and serve unchanged, operator cpuset/cgroup restrictions are strictly preserved" — true; the mask is intersected with the thread's own mask and the proxy ABI stays 14 (roce_proxy.c:134).
- "proxy ABI remains 14", "no environment variables, Protobuf fields, model-contract changes" — true (no such additions in the diff).
WHAT THE CHANGE DOES THAT THE DESCRIPTION DOES NOT SAY (each recorded in its own note):
- The vendored-for-identical proxy is edited, invalidating NOTICE:18 and docs/roce-ring.md:361-364's parity requirement — entry "Change: undeclared divergence from the vendored Flare/FlashInfer proxy".
- Threaded (same-process) TP rank threads are not pinned — entry "Change: coverage gap — same-process threaded TP rank threads are not pinned".
- Silent/unlogged/unconfigurable behaviour with discarded setaffinity errors — entry "Change: two behaviours the diff adds that the description does not mention".
- Three of five pinned call sites have no placement evidence (the Why names two threads; the diff covers four Rust threads plus the proxy) — entry "Claims and evidence: ...".
- No documentation, NOTICE or docs/TODO.txt update of any kind accompanies a change that alters host CPU policy for every Linux serving path. AGENTS.md:54-60 (designed behaviour and qualification must be stated as present qualification) and the repo precedent of documenting the proxy (docs/roce-ring.md:420) both suggest a doc touch was expected. Worth noting in the report: the description's own Caveats paragraph is unusually candid about x86_64 no-op, untested Windows stub, and the flashinfer pairing, which raises rather than lowers the salience of the omissions above.
#21 [high] Amendment: new event — head moved to 4b41ddc4, label added, Autobot review and original-el8 CHANGES_REQUESTED
PR #576 head is now 4b41ddc4 ("Pin Helios execution and RoCE proxy threads to high-capacity CPUs on asymmetric Linux topologies", woooflet, dated 2026-11-25, re-pushed as the only commit up to the PR head — search_history at pr/576 returns just this commit). Diff is unchanged from the reported revision: 7 files, +226/−1 (eos/src/unix.rs +145, eos/src/windows.rs +3, helios/native/roce_proxy.c +71, execution/parallel.rs +1, execution/worker.rs +1, replay.rs +4/−1, server/runtime.rs +1); pr_files confirms identical sizes. So the amend is a re-push/amend of the same content, not new code.
New PR state (read_item #576, updated 2026-11-28 22:12):
- Label
area:orbitis now applied (previous report said zero labels). - flare-autobot comment 2026-11-28 19:45: case file opened.
- flare-autobot comment 2026-11-28 20:41: "Autobot Review — Recommendation: Changes Requested"; blockers 2, should-fix 1, subtractive 1, nits 2. Named blockers: vendored
roce_proxy.cdiverging from pinned FlashInfer source (falsifies NOTICE, 66 untested duplicate C lines) and "an affinity mask inherited fromflare-modelonto offload, disk, and image-preparation threads". Links: https://autobot.eidonix.com/p/f04a4153-6c69-4f2a-94e5-3c7d45e27d26.html - original-el8 formal review 2026-11-28 22:12, CHANGES_REQUESTED, three numbered items (see the two following notes). No CI check results appear in any of the new events; the "zero CI" finding is unchanged but now unverified-by-absence rather than observed-clean.
#22 [high] Amendment BLOCKER I missed: affinity inheritance pins child offload/disk/input/codec/image threads to the fast tier
original-el8 review of #576 (2026-11-28 22:12), blocker 1: the call at helios/src/server/runtime.rs:568 is the first statement of the flare-model closure and therefore runs before everything that closure subsequently spawns. On Linux a new thread inherits the creating thread's affinity mask, so all of these children are born already narrowed to the X925 set instead of remaining free to use the A725 cores:
RankExecutor::new(runtime.rs:585) → in the Threads pathThreadedExecutor::newspawnsflare-rank-{i}(helios/src/execution/threaded.rs:652-678).crate::offload::open(runtime.rs:698) → helios/src/offload/mod.rs:105 → selene open, which spawns the per-rank transfer threadsflare-offload-{rank}(helios/src/offload/transfer.rs:509-536), the disk threadflare-offload-disk(selene/src/disk.rs:358-370, started at selene/src/offload.rs:676), and the prepared-input workerflare-input-records(selene/src/input.rs:268-283 via start_bounded at selene/src/offload.rs:572).- the host KV codec rayon pool
flare-kv-codec-{i}(selene/src/shared/codec.rs:37-57), built lazily on first encode/decode inside a transfer thread, so it inherits too. ImagePreparation::new(runtime.rs:682-722) → thread spawned at runtime.rs:1011. This is a defect and not merely a coverage gap, because those threads are deliberately demoted, not promoted:lower_priority()(SCHED_BATCH + positive nice, eos/src/unix.rs:77-83) is applied to the offload transfer threads (helios/src/offload/transfer.rs:281-283, 531), the disk thread (selene/src/disk.rs:470, 489-491), the input worker (selene/src/input.rs:271) and the codec pool start_handlernice(10)(selene/src/shared/codec.rs:47-54).docs/prefix-cache-offload.md:863-867states the intent: these threads "use SCHED_BATCH with a positive nice value to reduce contention with the model worker, HTTP runtime, and frontend workers", and that "Adding CPU affinity requires a serving-latency measurement that shows a benefit." Confining them to the same ten fast cores as the 100%-CPU model and proxy threads removes the efficiency cores as their escape valve and concentrates the contention the demotion was meant to avoid. The offload manager also runs four write-back workers (docs/prefix-cache-offload.md:846). No measurement in the PR covers this. Also note the reviewer's suggested fix: move the call to just beforeworker.run(&mut executor)(runtime.rs:726-728), and checkserve_rank(helios/src/execution/parallel.rs:539) for the same pattern. Verified:serve_ranknarrows beforeGraphExecutor::new_unstarted(parallel.rs:551) but that path does not open the host prefix store or ImagePreparation, so its exposure is limited to whatever the CUDA/transport layers spawn. Self-correction: my earlier report asserted the process-wide mask and the offload/Engram threads were untouched because sched_setaffinity acts on the calling thread. That was wrong — the calling thread is their parent.
#23 [high] Amendment: threaded-TP gap is narrower than reported — rank threads inherit the parent's narrowed mask
Earlier finding #3 said flare-rank-N threads get no pin. Refined: they have no direct prefer_high_capacity_cpus() call, but they are created (helios/src/execution/threaded.rs:652-678) inside RankExecutor::new → ThreadedExecutor::new, which in both serving paths runs after the parent has narrowed — flare-model (helios/src/server/runtime.rs:568 then 585) and flare-execution (helios/src/execution/worker.rs:71 then 76). So on Linux they inherit the X925-only mask and are effectively pinned. Callers: flare run single-host multi-GPU TP (flare-cli/src/main.rs:620-621), LoadedSession in helios (helios/src/server/session.rs:33), ExecutionWorker::new_threaded (worker.rs:60-62, used by heliopause and helios/tests/tools/tp4_collective.rs:122,134).
What survives of the finding: (a) the description does not say this path is covered, and coverage is an accident of spawn order rather than a stated invariant; (b) the same inheritance mechanism is exactly what causes the offload/disk/codec blocker; (c) if the reviewer's fix (move the call down to just before worker.run) is applied, the rank threads spawned inside RankExecutor::new would no longer inherit a narrowed mask — so the fix for the blocker reintroduces the threaded-TP gap unless a call is added on the rank-thread side too (e.g. at the top of the threaded.rs:654 closure). That is the concrete tension to flag in the amendment.
Also: for the peer-process path, serve_rank is the entry (flare-cli/src/main.rs:557-561, heliopause/src/python.rs:548).
#24 [high] Amendment: sign-off hygiene (stale design-review digest, model-less identity, stale commit message) and the review that changed the standing picture
original-el8 review item 3 (2026-11-28 22:12) is commit-hygiene rather than code, but it is the only place these are recorded:
- The commit message does not match the PR description: it still states the 6-launch figure and says serving runs "follow immediately". The description's own evidence section is careful that only placement was measured over 6 launches. (Commit body not retrievable with the tools here —
search_historyreturns subjects only — so this is reviewer-asserted, not independently verified.) Design-Signed-Off-BynamesAntigravitywithout a model.docs/design-review.md:294-301requires "exactly one acknowledgment" of the formDesign-Signed-Off-By: <reviewer identity>; design-review=<four lowercase hex digits>and says "Use the reviewing agent's name and model, or the human reviewer's identity";:313-318makes the signer responsible for attesting no principle is violated.- The digest in the trailer is stale (
eb2f) againstmain'sdocs/design-review.md. Mechanism verified:.githooks/commit-msgcomputes sha256 of the stageddocs/design-review.mdand rejects a commit whose trailer hex does not equal its first four hex digits (.githooks/commit-msg:59-63).docs/design-review.mdchanged three times on 2026-11-27 alone (353551e9"Require agents to refuse Design-Signed-Off-By on principle violations",d7031b37"Specify the three-layer testing hierarchy in the commit design review", plusc9693765/568aeca0), so a commit signed on 2026-11-25 carries a checklist that predates the testing hierarchy and the refuse-to-sign rules. Since the hook validates only at commit time, a stale digest proves the sign-off was not refreshed after rebase — worth stating because the change toucheshelios/src/execution/parallel.rs, whichdocs/design-review.md:252-259singles out ("Multi-GPU collective execution is mandatory for TP dispatch and transport changes"), and the PR has no served-validation evidence. Related: labelarea:orbitis now applied, and original-el8 is a priority contributor per the charter ("Priority contributors (@voipmonitor, @original-el8, @lukealonso)"), so the changes-requested verdict carries the weight the charter assigns it. The "no maintainer request backs the problem" finding stands (no issue), but it is no longer true that nobody with standing has engaged: the problem statement itself is accepted in the review ("addresses a real throughput and jitter problem on GB10", "the eos/src/unix.rs tier-selection logic cleanly respects operator cpusets and no-ops on homogeneous or x86_64 systems").
#26 [high] Research summary
Reviewed the new event on PR #576 and saved the amendments as scratchpad notes #21–#25, then output them as an amendment-only supplement to report entry #20.
The head moved to 4b41ddc4 with identical content (7 files, +226/−1), but the PR gained the area:orbit label, two Autobot comments, and a formal CHANGES_REQUESTED review from original-el8, a priority contributor. Two of my findings (the vendored roce_proxy.c divergence falsifying NOTICE, and the duplicated untested C) are independently confirmed by both reviewers.
I also corrected my own report on two points. First, my claim that offload/Engram/HTTP threads were untouched was wrong: because the call sits at the top of the flare-model closure (runtime.rs:568), every child thread that closure spawns — flare-rank-N, flare-offload-{rank}, flare-offload-disk, flare-input-records, the flare-kv-codec-{i} rayon pool, and ImagePreparation — inherits the narrowed X925-only mask, and those threads are deliberately demoted (SCHED_BATCH/nice) precisely so they can spill onto efficiency cores, per docs/prefix-cache-offload.md:863-867. That is a real defect, not a coverage gap. Second, the same-process threaded-TP gap is narrower than I wrote: flare-rank-N inherits the mask rather than being unpinned, but the reviewer's proposed fix (move the call to before worker.run) would reintroduce the gap unless the rank-thread closure is also pinned.
New process findings: stale commit message (6-launch, "follow immediately"), model-less Antigravity in Design-Signed-Off-By against docs/design-review.md:294-301, and a stale eb2f digest whose mechanism I verified in .githooks/commit-msg:59-63. CI is still absent, and every evidence gap (no raw traces, no alternating A/B against main, no method for forcing A725 placement) is unchanged.
#27 [high] Amendment index: which statements in report #20 are now superseded, which confirmed, and how the amendment reads
This note is the map for writing the amendment. The base report is entry #20 (run 1950). The amendment is an addendum, not a rewrite; it is supported by notes #21 (event/state), #22 (child-thread inheritance defect), #23 (threaded-TP refinement), #24 (sign-off hygiene + standing), #25 (what the review does not change, and its citation slip).
SUPERSEDED — strike or correct these sentences from #20:
- #20 Reach section: "the process-wide mask and the HTTP/tokio/offload/Engram threads are untouched" and "
sched_setaffinitytouches only the calling thread — the process-wide mask and the HTTP/tokio/offload/Engram threads are untouched". Wrong as written: the calling thread is the parent of the offload transfer threads, the disk thread, the input-record worker, the KV codec rayon pool and ImagePreparation. Those are not untouched. Replace with the note #22 finding (inheritance concentrates demoted helper threads on the fast tier). - #20 Key finding 2 and note #3: "same-process threaded TP rank threads ... get no prefer_high_capacity_cpus call" / "not covered". Narrow it per note #23: no direct call, but they inherit the narrowed mask from the parent in both serving paths, so they are effectively pinned — by accident of spawn order, undocumented, and fragile to the reviewer's fix.
- #20 case-file header: "head
3363573b" is now4b41ddc4; "zero comments, zero reviews, zero labels" is now 2 bot comments + 1 human CHANGES_REQUESTED review + labelarea:orbit(note #21). - #20 Process section: "Review: none. No
triage:design-reviewlabel ..." — a substantive review now exists; the label actually applied isarea:orbit, nottriage:design-review, so the "design-review territory without the label" point survives only in weakened form. - #20 Key finding 7 / "The why" ("no maintainer request or prior report backs the problem"): still no issue or request, but the problem statement is now accepted by
original-el8(priority contributor, per charter) — see note #24.
CONFIRMED / STRENGTHENED by the new review (no change needed to the substance, weight increases):
- Key finding 1 (vendored
roce_proxy.cdiverges, NOTICE/THIRD_PARTY_NOTICES/docs/roce-ring parity contract broken) — original-el8 blocker 2 and Autobot blocker 1. - The duplicate, wholly untested C helper (#16) — Autobot calls out "66 untested C lines".
- No served/multi-GPU validation of a file
docs/design-review.md:252-259singles out — original-el8 item 3. - No CI anywhere; the "adjudicated measurement" bar from #353 and the charter's "Bring real evidence" are untouched by the new comments.
UNCHANGED AND STILL UNMENTIONED BY ANY REVIEWER (keep as our own findings): silence/unconfigurability/unlogged affinity change (#3/#4); the ≥2-CPU-but-not-≥thread-count caveat (#16); missing THIRD_PARTY_NOTICES.md:48-52 and docs/roce-ring.md:361-364 updates; qualitative asymmetry that the rename flare-roce is the evidence instrument and the reviewer's Rust-side alternative would delete it (#4/#25); no per-size cold-prefill table, no raw nsys traces, no alternating A/B against main, no described method for forcing A725 in the +17.2 % arm (#13); sibling #577 forks the same vendored file on the same parity question (#7).
Also record in the amendment's tone: the reviewer's citation roce_proxy.c:186-258 is stale (helper is at 1505-1570, calls at 1575-1576), and the description-vs-commit mismatch is reviewer-asserted only — the commit body is not retrievable with these tools (search_history returns subjects), so attribute it rather than assert it.
#29 [high] Amendment 2026-11-29: main moved under #576 — merged #589 creates roce_proxy_dlopen.c and restates the byte-for-byte invariant
The PR itself is unchanged (head 4b41ddc4, 7 files +226/-1, last update 2026-11-28 22:12; no new commits, no new comments). What changed is the base: main is now f5ce5534, nine commits ahead of the PR's fork point 167f22c8 (search_history at main vs pr/576). One of those nine is directly material.
MERGED #589 "Fix CUDA 12 batched copies, Linux ARM64 release portability, and Selene unified-memory budgeting" (lukealonso, COLLABORATOR, merged 2026-11-28 22:18 — six minutes after original-el8's CHANGES_REQUESTED on #576; +994/-133, 21 files). Relevant parts:
- Adds
helios/native/roce_proxy_dlopen.c(+236), a Flare-owned translation unit that dlopen's libibverbs and#include "roce_proxy.c"at line 236 (#undef _GNU_SOURCEat 235, comment at 234). - Its header states the invariant verbatim: "keeping the vendored roce_proxy.c byte-for-byte identical to FlashInfer" (roce_proxy_dlopen.c:9).
helios/build.rs:67-77now compiles onlyroce_proxy_dlopen.c(line 72) and linksdl/pthread(75-76);native/roce_proxy.cis only arerun-if-changedinput (line 69).- #589 also edits
eos/src/unix.rs(+60/-1:map_hostrework plus new testmap_host_advises_hugepages_and_prefaults_zeroed_pages, which is main's eos/src/unix.rs:207-248) — the same file and the samemod testsblock that #576 appends to, and #576 branched before it. So #576 now needs a rebase and a mechanical conflict insideeos/src/unix.rs's test module is possible (not asserted).
Why this amends the report:
- The vendored-byte-identity contract that #576 breaks is no longer only NOTICE:18-19 / docs/roce-ring.md:361-364 / docs/TODO.txt:80-86 — it is now also an in-tree build comment (roce_proxy_dlopen.c:9) written by a maintainer two days after #576 was opened, plus a build graph that routes the whole proxy through that wrapper. The "undeclared divergence" finding gains a fourth, freshly-merged witness.
- It supplies the concrete mechanism for original-el8's suggested fix (blocker 2: do the pin/rename from Rust or from a Flare-owned wrapper, leave the vendor file alone):
helios/native/roce_proxy_dlopen.cis exactly such a place, already merged, already compiled instead of the vendor file. #576's 71-line in-vendor C duplicate is therefore not merely undeclared, it is now the one file in the tree that is supposed to stay untouched while Flare-specific Linux code lives next door. - Confirms no duplicate effort and no reversal:
grep cpu_capacity|A725|X925|affinityovermainstill returns nothing butdocs/prefix-cache-offload.md:871(search_code on main). Main has zero affinity code; #576 remains the only such change, and #589 did not add one. - Merge ordering vs sibling #577 (open, same vendored file): both now sit behind a base where the vendor file is included by a wrapper, so a #577/#576 merge in either order still has to be followed by a re-vendor or a re-statement of the invariant.
#31 [high] Research summary
Amendments to the PR #576 case file (base: report of 2026-11-28, run 2125)
PR #576 itself is unchanged: head still 4b41ddc4, 7 files +226/−1, last updated 2026-11-28 22:12, no new commits and no new comments. The event is on the base branch, and it makes one amendment.
1. New: main moved nine commits under the PR, and merged #589 created the exact wrapper that makes the in-vendor edit unnecessary and re-states the invariant #576 breaks
main is now f5ce5534, nine commits ahead of #576's fork point 167f22c8 (search_history at main vs pr/576). One of them is material: #589, "Fix CUDA 12 batched copies, Linux ARM64 release portability, and Selene unified-memory budgeting" (lukealonso, COLLABORATOR, merged 2026-11-28 22:18 — six minutes after original-el8's CHANGES_REQUESTED on #576; +994/−133, 21 files):
- It adds
helios/native/roce_proxy_dlopen.c(+236), a Flare-owned translation unit that dlopen's libibverbs and#include "roce_proxy.c"atroce_proxy_dlopen.c:236. - Its header states the invariant verbatim: "keeping the vendored
roce_proxy.cbyte-for-byte identical to FlashInfer" (roce_proxy_dlopen.c:9). helios/build.rs:67-77now compiles onlyroce_proxy_dlopen.c(:72), linkingdl/pthread(:75-76);native/roce_proxy.cis just arerun-if-changedinput (:69).
Consequences for the report: (a) the byte-identity contract broken by the 71-line in-vendor helper is now witnessed by a fourth, freshly-merged, maintainer-authored source — not only NOTICE:18-19, docs/roce-ring.md:361-364 and the file's own header (roce_proxy.c:6-8); (b) it supplies the concrete mechanism for original-el8's blocker-2 remedy — roce_proxy_dlopen.c is a Flare-owned wrapper already compiled in place of the vendor file, so #576's C duplicate is now the one file in the tree that is explicitly supposed to stay untouched; (c) #589 also rewrites eos/src/unix.rs (+60/−1, incl. the new test at eos/src/unix.rs:207-248), the same file and mod tests block #576 appends to, so #576 now needs a rebase (possible mechanical conflict in that test module — not asserted).
2. Confirmed / unchanged
- No competing or duplicated effort, no reversal:
cpu_capacity/A725/X925/affinity still appear nowhere onmainexceptdocs/prefix-cache-offload.md:869-872; #589 added no affinity code. - Merge-order question vs #577 (open, same vendored file, same author) is now sharper: after #589 both PRs sit behind a base where the vendor file is
#included by a wrapper, so either merge order still requires a re-vendor or a restated invariant. - All earlier findings stand as amended in run 2125: the child-thread affinity-inheritance blocker (
helios/src/server/runtime.rs:568narrows beforeRankExecutor::newat:585,offload::openat:698,ImagePreparation::newat:721), the accidental-by-inheritance threaded-TP coverage, silent/unlogged/no-opt-out behaviour, the ≥2-CPU-but-not-≥-thread-count caveat, still zero CI (and no aarch64 runner exists:.github/workflows/native-serving.yml:1-113(not opened) is x86_64/Windows only;release.yml:46-49builds arm64 withlibibverbs-devfor archive smoke only), the sign-off hygiene items, and the fact that pre-existing proxy parity debt is already tracked indocs/TODO.txt:80-86while #576 adds a second unrecorded divergence with no TODO entry.
Notes #29 and #30 in the scratchpad carry the citations.
#32 [high] Amendment 2026-11-29 — final scratch summary of what changed since report #28 and what stands
PR #576 is UNCHANGED since report entry #28: head 4b41ddc4, base 167f22c8, 7 files +226/−1, area:orbit, updated 2026-11-28 22:12, one commit ("Pin Helios execution and RoCE proxy threads to high-capacity CPUs on asymmetric Linux topologies", woooflet 2026-11-25), 2 Autobot comments + 1 original-el8 CHANGES_REQUESTED review, still zero CI. The "new event" is on main, so this is a single-amendment report (see note #29 for detail, #30 for citations).
THE AMENDMENT (material): main advanced to f5ce5534, nine commits past #576's fork point. One of them is merged #589 (lukealonso, COLLABORATOR, merged 2026-11-28 22:18 — six minutes after original-el8's CHANGES_REQUESTED on #576; +994/−133, 21 files), which:
- adds Flare-owned
helios/native/roce_proxy_dlopen.c(+236) that#include "roce_proxy.c"at :236 and states "keeping the vendored roce_proxy.c byte-for-byte identical to FlashInfer" at :9; - makes
helios/build.rs:67-77compile onlyroce_proxy_dlopen.c(:72, links dl/pthread :75-76), withnative/roce_proxy.cmerely a rerun-if-changed input (:69); - also rewrites
eos/src/unix.rs(+60/−1, new test at :207-248), the same file/mod testsblock #576 appends to → #576 needs a rebase (conflict possible, not asserted).
Why it matters in three sentences: the byte-identity contract #576 breaks now has a fourth, maintainer-authored witness in-tree (besides NOTICE:18-19, docs/roce-ring.md:361-364, roce_proxy.c:6-8); roce_proxy_dlopen.c is exactly the Flare-owned seam original-el8's blocker-2 remedy prescribes, so #576's 71-line in-vendor C duplicate edits the one file that is now explicitly meant to stay untouched; and the #577 merge-order question sharpens because both PRs sit behind a base where the vendor file is #included by a wrapper.
STANDS UNCHANGED from run 2125 (do not re-derive): child-thread affinity inheritance blocker (runtime.rs:568 narrows before RankExecutor::new :585, offload::open :698, ImagePreparation::new :721); threaded-TP coverage is by inheritance, accidental and fragile to the reviewer's fix; silent/unconfigurable/unlogged with let _ = sched_setaffinity and no opt-out; helper duplicated in Rust and C with the ≥2-CPU-not-≥-thread-count caveat in both; NOTICE/THIRD_PARTY_NOTICES/docs updates absent; zero CI plus no aarch64 runner at all (native-serving.yml:1-113 is x86_64 + windows-2022; release.yml:46-49 is archive smoke only); sign-off hygiene (stale eb2f digest, model-less Antigravity, stale commit message — commit body reviewer-asserted only); evidence gaps (no raw nsys, no alternating A/B vs main, no described way to force A725 placement, no per-size cold-prefill table); pre-existing proxy parity debt already tracked at docs/TODO.txt:80-86 with no TODO entry added by #576; reviewer citation slip (helper is roce_proxy.c:1505-1570, calls 1575-1576, not 186-258).
Nothing on main competes: cpu_capacity/A725/X925/affinity appear nowhere on main except docs/prefix-cache-offload.md:869-872, and #589 added no affinity code.
#34 [high] Amendment 2026-11-30: blocker 1 (inheritance) fixed for eager threads — but the KV-codec pool is created lazily and still inherits the narrowed mask
VERIFIED at head ba2796c0 (rebased on 3801ff1d).
Call sites now (all narrow themselves, after their own child-thread creation):
- helios/src/server/runtime.rs:721-724 —
flare_eos::prefer_high_capacity_cpus()immediately afterRankExecutor::new(:585),crate::offload::open(:684-707) andImagePreparation::new(:719), right beforeworker.run(:729). Comment at :721-723 states the intent. - helios/src/execution/worker.rs:86 — after
RankExecutor::new(:74-85), before ready_sender. - helios/src/execution/threaded.rs:668-683 — inside each
flare-rank-Nthread, after itsGraphExecutor::new_unstarted(:672). - helios/src/execution/parallel.rs:563-573 — after
GraphExecutor::new_unstarted, before the control loop; serve_rank spawns no helper threads (parallel.rs:552-687). - helios/src/replay.rs:170-176 — first statement of the
flare-cudathread closure, beforerun(...). => The original "offload/disk/image-prep threads inherit the X925-only mask" defect is resolved for eagerly spawned threads.replay.rsstill has exactly one spawn site (:171), so nothing is spawned under the narrowed mask there.
RESIDUAL DEFECT (new, verified): the KV-codec rayon pool is created lazily, on first use, and that first use can happen on a narrowed thread.
- selene/src/shared/codec.rs:37-60:
cpu_pool()is aOnceLock<Result<rayon::ThreadPool,...>>withthreads = std::thread::available_parallelism()/2 clamped 1..=24, thread namesflare-kv-codec-{i}(:46) and anice(10)start handler (:47-54). Nothing builds it eagerly. - helios/src/offload/transfer.rs:509-531 (
flare-offload-{rank}threads) callsRankWorker::open->codec::RankCodec::new(transfer.rs:304-329 -> transfer/codec.rs:63-100), which does NOT callcpu_pool(). - The pool is first built only in the encode/decode hot paths: helios/src/offload/transfer/codec.rs:24-27 (
cpu_pool()wrapper), :353 (KvCompression::Cpu|Off encode), :514 (decode_pages_cpu_batch). - And for host prefix compression on the model thread: selene/src/memory.rs:1898-1901 (
host_compress_pool->cpu_pool()), called from selene/src/memory.rs:2005-2013AsyncCompressor::pump_spawns, driven by selene/src/memory.rs:2368-2370 afterstore.poll(...). The model worker is what callsstore.pollon its own thread: helios/src/server/runtime.rs:2380-2388 (service_store). Consequence: with--prefix-cache-memory(host prefix store present) or any CPU KV-compression path, the first store poll after runtime.rs:724 builds the codec pool from a thread already restricted to 5-9,15-19.available_parallelism()then reports the narrowed mask (10 CPUs), so the pool is sized 5 instead of 10, and everyflare-kv-codec-*worker inherits the X925-only mask via clone — i.e. the exact "background workers must stay free to run on efficiency cores" intent stated at runtime.rs:721-723 is still violated, and codec parallelism is halved. This is precisely the Autobot 2026-11-29 04:15 "halves the KV-codec pool" claim, which the rework does not answer.
Evidence gap that hides it: the PR body's Limitations states "Host prefix offload (--prefix-cache-memory) was not exercised on multi-host TP4" — the rework deliberately skipped the only workload that instantiates this pool. The /proc verification in the PR body covers only flare-model, flare-roce, peer serve_rank, the ImagePreparation child, flare-http, tokio-rt-worker and CUDA driver threads.
Also unchanged and still in conflict: docs/prefix-cache-offload.md:919-928 states offload threads run SCHED_BATCH with positive nice (implemented at helios/src/offload/transfer.rs:281-282,531 via eos/src/unix.rs:77-82) and "Adding CPU affinity requires a serving-latency measurement that shows a benefit." The PR touches no docs at all.
#35 [high] Amendment 2026-11-30: vendored roce_proxy.c — upstream now has the hunk, but NOTICE/roce-ring/TODO provenance is still not updated and parity is still unenforced
The PR still edits the vendored file: helios/native/roce_proxy.c +71 at new lines 1505-1576 (:1579-1583), both under pin_high_capacity_cpus) plus pthread_setname_np(pthread_self(),"flare-roce") at the top of proxy_main (#ifdef __linux__.
Author's claim (PR comment 2026-11-30 00:39): local-inference-lab/flashinfer#156 merged into FlashInfer main at 335459b2 and the hunk here is byte-for-byte identical to that revision, layering on main's roce_proxy_dlopen.c build.
Four in-tree witnesses, none updated by the PR (8 files, zero docs):
- NOTICE:16-19 — names revision
f5f5341d711f8210ce91af5731a0841570f70e53and asserts "Its implementation is unchanged from that revision; Flare adds a license and provenance preamble." The code is now from 335459b2, so this statement is still false as written, even though the change now exists upstream. - helios/native/roce_proxy.c:6-8 — "Vendored from FlashInfer's pinned preparation dependency ... proxy ABI 14. Keep the source below identical".
- helios/native/roce_proxy_dlopen.c:7-9 (added by merged #589, ba3afb13) — "keeping the vendored roce_proxy.c byte-for-byte identical to FlashInfer"; helios/build.rs:67-77 compiles only this wrapper, which
#include "roce_proxy.c". - docs/roce-ring.md:361-364 — "keep the vendored source identical to the dependency after its provenance header". Also un-updated: docs/TODO.txt:80-86, the RoCE parity/proxy-ABI debt item (still says the pinned proxy declares ABI 11 while helios implements ABI 10 — inconsistent with roce_proxy.c:7's "proxy ABI 14"; this PR changes which revision the vendored source tracks and does not touch the TODO).
Net: the change is no longer a Flare-only fork, but the invariant is now "vendored file == a newer FlashInfer revision than the one NOTICE pins", and NOTICE/TODO/roce-ring were not amended. Parity remains convention only: nothing in CI diffs the vendored file, and there is no re-vendor script in the tree. Same author's #577 edits the same file, so the two PRs must agree on the re-pin revision.
C-vs-Rust parity: the C selector mirrors eos/src/unix.rs:188-226 (>=90% of max; midpoint fallback; require >=2 selected and < count; return on any unreadable/zero/oversize capacity). Verified logically equivalent by inspection; still untested by any test.
#36 [high] Amendment 2026-11-30: coverage finding retracted — every critical thread now narrows itself; label and sign-off changes
Original scope finding (threaded TP, note #3) is RETRACTED further: helios/src/execution/threaded.rs:668-683 now narrows inside each flare-rank-{index+1} thread after its own GraphExecutor::new_unstarted (:672). The "coverage gap" line from the first report is now fully resolved: flare-model, flare-execution, flare-cuda, flare-rank-N, and serve_rank each narrow independently; there is no path that relies on inheritance for a critical thread.
Corrected residuals that survive:
- Only
serve_rank(parallel.rs:563-573) covers the multi-host path. It narrows afterGraphExecutor::new_unstarted; peer identity validation (:575-577) runs on the narrowed mask, which is harmless. flare-rank-Nthreads are only used by the same-process threaded TP path (ThreadedExecutor, threaded.rs:664-696); they now narrow individually rather than inheriting.- Background-helper narrowing (eager ones) is fixed. The lazily-created KV-codec rayon pool is NOT (see note #34).
Author identity/sign-off status after rework:
- Trailers now
Design-Signed-Off-By: Antigravity (Gemini-4-Neon); design-review=2e5bandSigned-off-by: woooflet <ford@fordmorris.com>(PR comment 2026-11-30 00:39)..githooks/commit-msg:59requiresr"([^;\r\n]+); design-review=([0-9a-f]{4})", i.e. one non-empty reviewer descriptor plus a 4-hex digest of the staged docs/design-review.md (commit-msg:14,59-63). So the "model-less Antigravity sign-off" nit from original-el8 is addressed in form. - Caveat: the digest is computed over the staged docs/design-review.md at commit time, so
2e5bvalidates only against the tree as rebased on 3801ff1d. main has since moved to 0a8c20f4 (46 commits ahead of ba3afb13's parent chain); if docs/design-review.md changed after the base, a reviewer re-running the hook sees a mismatch. I did not recompute the hash — do not assert it is correct or incorrect. - Author is still a first-time contributor (FIRST_TIME_CONTRIBUTOR per read_item #576), still zero maintainer review after the 2026-11-30 00:39 comment; last maintainer verdict remains original-el8 CHANGES_REQUESTED (2026-11-28 22:12) plus two Autobot CHANGES_REQUESTED (2026-11-28 20:41, 2026-11-29 04:15). No re-review has landed.
#37 [high] Amendment 2026-11-30: head, labels, size, new evidence, CI, and the #625 collision in eos/src/unix.rs
Head ba2796c0a8823db6db17cf2fb045d13a55f2b089 (ba2796c), rebased on 3801ff1d, +230 -1 in 8 files (was +226 -1 in 7). New file in the set: helios/src/execution/threaded.rs (+1). eos/src/unix.rs is +145 (same helper, unchanged in substance: select_high_capacity_cpus at eos/src/unix.rs:188-226, prefer_high_capacity_cpus at :232-261, non-Linux stub :263-264, 3 tests in mod tests starting :266). eos/src/windows.rs +3 (:220 no-op). helios/native/roce_proxy.c +71. helios/src/execution/parallel.rs +1, worker.rs +1, threaded.rs +1, replay.rs +4-1, server/runtime.rs +4.
Labels changed to area:orbit, performance, triage:review (read_item #576), i.e. triaged and queued for review; earlier report had only area:orbit.
Evidence added by the author (PR body, all author-supplied, no artifacts):
- 6 launches, 48/48 critical threads on Cortex-X925 vs 4/4 unpinned landing on A725.
- On binary
4c82ab5b: /proc//task/*/status across 4 ranks — flare-model, flare-roce, 3 peer serve_rank = Cpus_allowed_list 5-9,15-19; ImagePreparation child, flare-http, tokio-rt-worker, CUDA driver helpers = 0-19. - batch=1 width=8 graph-time CV 6.7x (4.82% -> 0.72%); C8 64k decode +17.2% (123.66 -> 144.88 tok/s); 8k-128k cold prefill +2.6% to +17.3%.
- nsys: C1 width-1 RoceOneshotLaunch -31.0% (2.77 -> 1.91 ms); p90 inter-graph host wake gap 61x (1,880 -> 30.9 us).
- Tests: eos 5/5 on ARM64 Linux; helios --features roce,runtime-core,server 1,728/1,728 (44 GPU-only ignored) incl. all 6 execution::roce::tests.
- Live 4-Spark: 60.0 tok/s short, 79.4 tok/s 256-token coding, 0/16 ConnectX-7 RDMA port errors, clean Orbit drain.
- Stated Limitations: not run on Windows (
eos/src/windows.rsnot compiled); x86_64 is a no-op; host prefix offload (--prefix-cache-memory) not exercised on multi-host TP4. Still missing: no alternating A/B againstmainon the same binary, no raw traces in the PR, no prefix-cache or CPU KV-codec workload measurement. The +17.2% and 61x numbers remain single-sourced to the author, on a binary (4c82ab5b) that is not the PR head.
CI: still zero checks on the PR; .github/workflows/native-serving.yml on main runs only ubuntu-24.04 (x86_64) and windows-2022 (:16-22), and the release job's aarch64 leg is .github/workflows/release.yml:46 ubuntu-24.04-arm, a build/packaging job that compiles release.yml:55-77 in an ubuntu:22.04 container and only checks --version/--help. So neither the Rust affinity path nor the C helper is ever executed anywhere in CI. Unchanged from the earlier report.
Base moved again and now conflicts with open PR #625 (flare-autobot, "Avoid THP compaction stalls in eos::map_host...", head 9639e57, fixes #616), which rewrites eos/src/unix.rs map_host into map_host_with + MappingGuard and adds ~440 lines of tests in eos/src/unix.rs:769-1202 — i.e. it occupies the same mod tests region and the same file #576 appends to at eos/src/unix.rs:183-266. #625 also cross-references #576 as an overlap to coordinate. Merge order matters: whichever lands second must re-place the helper/tests in eos/src/unix.rs.
#38 [high] Amendment index 2026-11-30 — what supersedes report #33 and what stands
Everything above report #33 stands except what is listed here. Amendments only.
- RETRACTED: "same-process threaded TP
flare-rank-Nhas no direct call but inherits the narrowed mask" (report #33 touches-list, note #3/#23). Now false — threaded.rs:668-683 narrows inside each rank thread after its own GraphExecutor::new_unstarted. - RETRACTED in substance: "the
flare-modelcall pins offload/disk/input/codec/image threads" (original blocker 1, note #22) — for eagerly spawned threads. runtime.rs:721-724 now runs after RankExecutor::new (:585), offload::open (:684-707) and ImagePreparation::new (:719); worker.rs:86 after RankExecutor::new; replay.rs:170-176 as first statement of the only flare-cuda spawn site; parallel.rs:563-573 after GraphExecutor::new_unstarted. - NEW, and it subsumes the Autobot "halves the KV-codec pool" warning: the fix is incomplete.
flare_selene::shared::codec::cpu_pool()(selene/src/shared/codec.rs:37-60) is a lazily-initialised OnceLock, first built from the encode/decode hot paths (helios/src/offload/transfer/codec.rs:24-27,353,514) or from host prefix compression (selene/src/memory.rs:1899-1901 via AsyncCompressor::pump_spawns :2005-2013, driven by :2368-2370) — and the trigger isstore.pollon the model thread (helios/src/server/runtime.rs:2380-2388), which runs after the narrowing at :724. Result: pool sized from the narrowed mask (5 instead of 10 threads on GB10) and everyflare-kv-codec-*worker inherits 5-9,15-19, contradicting the comment's own stated intent at runtime.rs:721-723. The PR body's Limitations confirm the one workload that instantiates it (--prefix-cache-memory) was not run. - PARTIALLY ADDRESSED: vendored roce_proxy.c. The change now exists upstream (flashinfer#156 @ 335459b2 per the author), so Flare is no longer the sole fork — but NOTICE:16-19 still pins f5f5341d and still asserts "Its implementation is unchanged from that revision", and the PR updates none of the four witnesses (NOTICE:16-19, roce_proxy.c:6-8, roce_proxy_dlopen.c:7-9, docs/roce-ring.md:361-364) nor the parity debt in docs/TODO.txt:80-86. Parity is still unenforced by CI. Zero docs changed across all 8 files.
- UNCHANGED: zero CI (native-serving.yml:16-22 is x86_64+Windows only), no aarch64 execution of either code path, no maintainer re-review since original-el8's CHANGES_REQUESTED, author still FIRST_TIME_CONTRIBUTOR, no issue backing the problem, no opt-out/env/log/metric, silent
let _ = sched_setaffinity(...). - NEW collision: open #625 rewrites eos/src/unix.rs (map_host -> map_host_with + MappingGuard) and adds tests at eos/src/unix.rs:769-1202, overlapping #576's append at :183-266. Both PRs flag each other.
- Charter/doc conflict still unfixed: docs/prefix-cache-offload.md:919-928 ("Adding CPU affinity requires a serving-latency measurement that shows a benefit") — the PR supplies no offload-path measurement and edits no doc.
- Metadata: head ba2796c0, +230 -1, 8 files (threaded.rs is new to the set), labels now area:orbit, performance, triage:review.
#39 [high] Research summary
The event: PR #576 was rebased onto 3801ff1d as ba2796c0 (+230/−1, now 8 files — helios/src/execution/threaded.rs is new to the set), labels moved to area:orbit, performance, triage:review, and the author posted a point-by-point response claiming all three of original-el8's blockers are fixed. The diff itself substantiates much of that.
Two findings from report #33 must be retracted. The threaded-TP coverage gap is gone: each flare-rank-N thread now narrows itself after its own GraphExecutor::new_unstarted (threaded.rs:668-683). And the eager child-thread inheritance defect is fixed: the flare-model call moved to runtime.rs:721-724, after RankExecutor::new (:585), offload::open (:684-707) and ImagePreparation::new (:719); worker.rs:86, replay.rs:170-176 and parallel.rs:563-573 are likewise post-initialisation.
But the fix is incomplete in a way that reproduces the defect the rework was meant to remove, and it is now verified rather than predicted: selene::shared::codec::cpu_pool() (selene/src/shared/codec.rs:37-60) is a lazily-initialised OnceLock, first built from the codec hot paths (helios/src/offload/transfer/codec.rs:24-27,353,514) or host prefix compression (selene/src/memory.rs:1899-1901 via pump_spawns :2005-2013, driven by :2368-2370), and its trigger is store.poll on the model thread (helios/src/server/runtime.rs:2380-2388) — which runs after the narrowing at :724. On GB10 the pool is therefore sized 5 instead of 10 and every flare-kv-codec-* worker inherits 5-9,15-19, directly contradicting the comment's own stated intent at runtime.rs:721-723. The PR body's Limitations confirm the one workload that instantiates it (--prefix-cache-memory) was never run.
On the vendored file: the change does now exist upstream (flashinfer#156 at 335459b2 per the author), so Flare is no longer the sole fork — but the PR touches none of the four byte-identity witnesses (NOTICE:16-19 still pins f5f5341d and still says "implementation is unchanged", roce_proxy.c:6-8, roce_proxy_dlopen.c:7-9, docs/roce-ring.md:361-364) nor the parity debt in docs/TODO.txt:80-86, and no docs changed at all in 8 files. Zero CI still runs either path; native-serving.yml:16-22 is x86_64+Windows only. A new collision appeared: open #625 rewrites eos/src/unix.rs and adds tests at :769-1202, overlapping this PR's append at :183-266.
Amendments are in scratchpad notes #34–#38, with #38 as the consolidated index of what supersedes report #33 and what stands.
#40 [high] Angle closure 2026-11-30: every angle re-checked, nothing on main competes, and the new #628 overlap
Angles re-checked at head ba2796c0 this turn; all now have entries, nothing outstanding.
- CHANGE / description-vs-diff: the PR body was rewritten and now matches the diff (it documents the deferral, the flare-roce naming, the re-vendor, and states the three Limitations). The old "description omits that it edits a vendored file" finding is now only partly true: it does say it vendors the hunk from flashinfer#156 — but it still does not say NOTICE/roce-ring/TODO were left unamended. Notes #34, #35, #38.
- WHY / prior request: unchanged — no issue and no maintainer request backs the problem; the only maintainer verdicts are original-el8 CHANGES_REQUESTED (2026-11-28 22:12) and two Autobot CHANGES_REQUESTED (2026-11-28 20:41, ae2d8f1b 2026-11-29 04:15). Nothing new.
- PEOPLE: unchanged — fordbmorris is still FIRST_TIME_CONTRIBUTOR with no merged work; no maintainer comment after the 2026-11-30 00:39 reply. Note #36 records the sign-off/trailer change.
- COMMUNITY: the PR now has triage labels (
area:orbit, performance, triage:review, read_item #576) — the only movement since the last report; still zero reviews from a human besides original-el8 and no reactions. - PROJECT FIT: unchanged and still adverse — docs/prefix-cache-offload.md:919-928 requires a serving-latency measurement before adding CPU affinity to offload threads; the PR supplies none for that path and edits no docs. Zero doc files in the 8-file diff.
- COMPETING WORK: verified on main that nothing competes —
search_codeforselect_high_capacity_cpus|prefer_high_capacity_cpus|pin_high_capacity_cpusat ref main returns no matches, and main's eos/src/unix.rs still carries the pre-#625 map_host (:85-119) with its tests at :183-249. So #625 is an open overlap, not a landed one. - MERGE ORDER: three open PRs now touch the same regions — #576 (eos/src/unix.rs append :183-266), #625 (rewrites map_host, tests :769-1202), and the pre-existing #323/#628 cluster on helios/src/server/runtime.rs (items_touching runtime.rs lists #628, #621, #548, #549, #560, #554, #483 beyond #576). #628 (yatesdr, draft) adds a CopyEngineGate around the same offload batch/codec sites in helios/src/offload/transfer.rs and transfer/codec.rs that #576 keys off — a genuine, previously unrecorded conflict surface for those two call sites.
- CLAIMS/EVIDENCE: new numbers recorded in #37; still single-sourced, still no artifacts, still no alternating A/B against main, still measured on binary
4c82ab5brather than the PR head. - TESTS/CI: unchanged — zero checks on the PR; native-serving.yml:16-22 (x86_64 ubuntu-24.04 + windows-2022) never executes either affinity path; the aarch64 leg (release.yml:46 ubuntu-24.04-arm) only builds and runs --version/--help.
- Orientation-packet leads: all followed — vendored-file contract, eos/src/unix.rs, runtime.rs call ordering, threaded TP, and the #589/#280/#353/#577/#279 relations are each resolved in notes #1-#38. Nothing from the packet is unexamined; no packet lead is marked not-relevant except #279 (precedent only) and #353 (evidentiary bar only), both already noted as such in #8.
#7 [medium] Related work: #577 same author, same vendored file, same divergence pattern
#577 (open 2026-11-28 19:22, by fordbmorris/woooflet, +4/-1) raises RING_WINDOW 8 -> 16 and calls drain_all(c) eagerly inside run_pipe_op in helios/native/roce_proxy.c, paired with local-inference-lab/flashinfer#157. Both PRs therefore edit the vendored-for-identical copy in the same file (different regions: #577 at the RING_WINDOW define ~line 172 and run_pipe_op ~line 1453; #576 at ~1505-1577), and both create drift from the pinned FlashInfer proxy. #577 at least names the coupling problem explicitly ("Because RING_WINDOW sizes the shared RDMA mailbox offsets (ring_ack_offset), all ranks ... must run matching builds ... Happy to add a 1-line ROCE_PROXY_ABI_VERSION bump") — #576 does not discuss the vendoring invariant at all.
Other same-author PRs opened the same day: #574 (AOT guard pickler, ignition), #575 (raw JSON tool args, helios TML). All four arrived within ~2 minutes of each other on 2026-11-28 (19:21, 19:22, 19:22, 19:22 per the item pages) while #576's commit is dated 2026-11-25 and its branch is based on 167f22c; the other three explicitly claim to be rebased onto 167f22c or mention rebasing. Suggests a batch submission of an accumulated local tree.
Also relevant: the vendored file's history is a sequence of ABI-resync PRs (#251 ABI 11 by original-el8, #279 ABI 14 by jetnet, both merged after review) and one local bug fix (#325, iein, which explicitly noted "FlashInfer's preparation copy of the proxy needs the same change and is not part of this PR"). So local divergence has precedent but was always called out.
#8 [medium] Related work: nothing competing; orientation-packet leads checked
Packet leads followed:
- #577 open, pr: relevant, same file/author (see separate note).
- #280 merged: relevant, same loops (see separate note).
- #572 open "helios: include graph and rank progress in TP deadline errors" (voipmonitor): touches parallel.rs only for error text; not relevant to affinity.
- #548 open per-request histograms (WynnD): touches eos/src/unix.rs? The packet guessed so from a name match; the actual eos/src/unix.rs items list from items_touching is only #576, #92, #80 — so #548 does not touch unix.rs. Not relevant.
- #542 closed, #556 merged (DispatchRing): same parallel.rs region (rank coordination) but unrelated to thread placement; #556 is the current DispatchRing design this PR's
serve_ranksits next to. - #251, #279 (proxy ABI resync), #232 (rail routing), #325 (relay flag order), #34/#324 (ring relay issues): proxy history only, no affinity content. #324/#325 are the precedent for editing the vendored proxy with an explicit upstream note.
- #334 open "Read Engram rows ahead of prefill on every rank": touches windows.rs/parallel.rs; unrelated.
- No open or recent item proposes, blocks or supersedes CPU-affinity work. Nothing competing, nothing stacked.
- items_touching(eos/src/unix.rs) = #576, #92 (yatesdr, selene pool), #80 (yatesdr, selene crate split): eos is a young, low-churn shared crate; there is no other affinity-ish precedent in it. The nearest existing helper of the same kind is
lower_priority(SCHED_BATCH + nice, eos/src/unix.rs:77-83), which is how Helios/selene already expresses thread-class policy — a natural comparison point for this PR's design.
#9 [medium] Recent activity: the touched code and who owns it
Verified from helios/src/* and docs:
- All four edited Rust sites are hot/blocking threads that own CUDA work or the rank control loop:
flare-model(runtime.rs:565-755) creates the CUDA context's executor and runsworker.run(&mut executor);flare-execution(worker.rs:64-129) ownsRankExecutor;flare-cuda(replay.rs:171-182) launches and synchronises graphs;serve_rank(parallel.rs:533+) is the multi-host peer loop that polls a socket and the frame event. - Recent activity in the touched areas (orientation packet, verified): helios/src has 212 commits from Luke Alonso in 180 days, 51 Martin Vit, 47 yatesdr; helios/native is dominated by Jason Cook (4) and Luke Alonso (2), with the proxy ABI work by jetnet/original-el8; eos/src by Luke Alonso (3), yatesdr (2), R4yHarris (1).
- Since the PR branched (167f22c) no commit on main touched any of its 7 files (packet; the local commit history for pr/576 shows only the PR's own commit 3363573b above 167f22c). So it does not conflict, and it is not built on post-branch work.
- Same-day main activity that the PR's areas belong to: 883abc17 (#556 DispatchRing, Martin Vit/voipmonitor), da752e07 "Fix DispatchRing commit-before-launch deadlock and strengthen TP verification" (Luke Alonso, 2026-11-27), c9935887 "adaptive executor parking" (Luke Alonso, 2026-11-27) — i.e. the host-side waiting/execution machinery is under active change by the maintainers, and "adaptive executor parking" is adjacent in spirit (host-side thread behaviour chosen at runtime).
- The PR does not reverse anything: no prior commit introduced affinity, so
search_codefor sched_getaffinity/sched_setaffinity/taskset in the tree before this PR yields only eos (this PR), the selene-manager seccomp profile, and ignition/preparation/host_memory.py (worker count from sched_getaffinity).
#11 [medium] Community: no comments, reviews or reactions; untriaged
Community state as of reading: pr_comments returns "No comments." No reviews, no inline review comments, no reactions, no labels. Opened 2026-11-28, last updated the same day. The only bot/machine activity found anywhere in the tree's recent items is flare-autobot opening case files on #574 and #575 (comments dated 2026-11-28 19:30/19:31); #576 got none, though it was opened at the same minute. Interest drawn so far: none from humans. Cannot infer more (no star/watch/CI signal available here).
#15 [medium] Process: ready-for-review, zero CI, zero review, DCO unknown
- State: open, "ready for review" per the orientation packet. Labels: none. Milestone: none seen. Draft: no.
- Age: opened 2026-11-28, so <1 day old at time of review; head commit 3363573b dated 2026-11-25 (committer date), so the work sat for ~3 days before submission.
- CI: "CI on the head commit: no checks" — no workflow run at all. The relevant workflow is .github/workflows/native-serving.yml (jobs: native on ubuntu-24.04 + windows-2022, rdma on ubuntu-24.04). The eos unit tests the description cites are exactly the step at line 46-47 ("Test host OS helpers"); the Windows stub would be compile-checked by the windows-2022 job (line 64-68 builds helios tests), and the C helper is compiled by the
rdmajob viacargo check --features roce,rdma(line 113). None of that has run. - Review state: none. No reviewer requested (no labels, no assignment visible). No maintainer comment, so no design-review label of the kind #280 got (
triage:design-review) despite this touching shared host-waiting/execution code, which docs/design-review.md:190-191 and :254 name as requiring multi-thread CPU tests when touchinghelios/src/execution/{threaded,parallel,roce}*— this PR touches parallel.rs and the proxy. - DCO/CONTRIBUTING: CONTRIBUTING.md:9-22 requires
Signed-off-byon commits. I could not inspect the commit message trailer from the diff tools available; the sibling PR #353 was rejected partly for a missing sign-off, so this is worth checking (git log -1 3363573b). - Mergeability: no commits on main since 167f22c touched any of the 7 files, so it should apply cleanly; there is no stated merge order dependency on #577 or on flashinfer#156 ("either PR can merge in any order").
#16 [medium] Change: verified semantics of the selection rule and its edge cases
Verified by reading the algorithm (eos/src/unix.rs:167-248) and mirroring it by hand against the GB10 capacities in the description:
- Threshold:
cap * 10 >= max * 9(90% of max). On GB10: X925 997 -> 9970 >= 9216 yes; A725 731 -> 7310 >= 9216 no. So the selected set is exactly {5-9,15-19}, matching the description's claim and the unit test at eos/src/unix.rs:254-274 (which hard-codes 718/731 vs 997..1024 and expectsSome(vec![5,6,7,8,9,15,16,17,18,19])). - No-op conditions, all verified in code: fewer than 2 allowed CPUs; any allowed CPU with capacity 0 or (in the sysfs loop) unreadable/unparsable -> whole call returns without touching affinity; min == max (homogeneous or already single-tier); selected set would be all allowed CPUs (
selected.len() < allowed.len()required). - Fallback: if the 90% filter yields <2, keep every CPU strictly above (min+max)/2 — this is a genuinely different rule from the 90% one and is what makes the three-tier unit test pick {4,5,6,7} (850 and 1024 both > (400+1024)/2 = 712).
- The "never collapse onto one core" guard only guarantees >= 2 CPUs, not >= (number of threads pinned). A host whose allowed mask contains exactly 2 X925 cores will put the spinning
flare-executionthread, the spinningflare-rocethread, andflare-model/flare-cudaon 2 CPUs together. Under the default 0-19 GB10 mask that is 4 threads in 10 CPUs, which is the configuration the author measured; a constrained cpuset (e.g. an operator's--cpuset-cpusof 2 CPUs, or a systemdAllowedCPUs) is untested and is where contention could plausibly appear. Both implementations share this property. - Rust and C implementations are logically equivalent (same thresholds, same early-outs, same fallback). Differences that are cosmetic: C reads into stack arrays
cpus[CPU_SETSIZE]/caps[CPU_SETSIZE]; Rustreturns early from inside the sysfs loop on any parse failure, C likewise; both cap CPU ids at 1024, so a host with more than 1024 CPUs would be silently truncated (not a realistic target). - Neither implementation logs, returns status, or exposes the result; failures of
sched_setaffinityare discarded (let _ =in Rust,(void)in C). pthread_setname_npis limited to 15 characters by Linux; "flare-roce" (10) fits, so the rename works._GNU_SOURCEis already defined at roce_proxy.c:113, which is what makes it available.
#25 [medium] Amendment: what the new review does not change, and one citation slip in it
Both new Autobot comments and the human review add no benchmark data, so the evidence gaps in note #13 are unchanged: still no raw nsys traces, no alternating A/B against main, no method for forcing A725 placement in the +17.2% same-server comparison, and no per-size cold-prefill table. Neither reviewer disputed the numbers; original-el8 calls the +17.2%-class gain "solid" only for #577, and for #576 accepts the problem as real without endorsing the measurements.
Two of my earlier findings are now duplicated by the reviewers, which raises their weight but adds nothing new: the vendored roce_proxy.c divergence/falsified NOTICE (my #2 / Key finding 1) and the silent-plus-untested C duplication (my #16: the C helper has no test at all, and the Rust tests cover only the pure function). original-el8's recommended alternative for blocker 2 — "apply flare_eos::prefer_high_capacity_cpus() from Rust around proxy thread creation without modifying the vendored C file" — is worth recording, because it would also drop the pthread_setname_np("flare-roce") rename, which per my #4 is the instrument the placement evidence depends on; so the reviewer's own fix would invalidate the measurement method unless the proxy gets a name another way.
Neither reviewer mentioned: the silent/unconfigurable/unlogged nature of the change (my #3), the ≥2-vs-thread-count caveat (my #16), the THIRD_PARTY_NOTICES.md:48-52 / docs/roce-ring.md:361-364 updates, or that #577 from the same author touches the same vendored file and will collide on the same parity question.
One line citation slip worth noting for accuracy: original-el8 cites helios/native/roce_proxy.c:186-258 for the new C helper, but the helper is actually at lines 1505-1570 with the two calls at 1575-1576 (verified by reading the file at pr/576); 186-258 is the ring descriptor/mailbox region. The substance is right; the line range is stale (probably from the pre-rebase revision).
#30 [medium] Verified citations for the report: NOTICE, roce-ring, TODO parity debt, CI jobs (no change from earlier findings)
Re-verified on main (f5ce5534), so the earlier findings can be cited precisely:
NOTICE:16-19: the proxy "was contributed by its original author from" the pinned FlashInfer blob f5f5341d…, and "Its implementation is unchanged from that revision; Flare adds a license and provenance preamble." Editingproxy_mainfalsifies NOTICE:18-19 as well as the file's own header (helios/native/roce_proxy.c:6-8, "Keep the source below identical so preparation and serving share the transport ABI").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."THIRD_PARTY_NOTICES.md:48-52: describes the proxy as "contributed by its original author from the pinned FlashInfer/b12x source" (no identity claim, so less affected than NOTICE).docs/TODO.txt:80-86: the project already carries an open, named parity-debt item for exactly this class of change ("Restore preparation/serving RoCE proxy parity once FlashInfer main includes the sequence-limit guard and protocol verification additions"). #576 adds a second, unrecorded divergence and no TODO entry.docs/design-review.mdsingles out the same area for served validation;.github/workflows/native-serving.yml:1-113is the workflow that would run eos tests (:46-47"Test host OS helpers",cargo test --manifest-path eos/Cargo.toml) on ubuntu-24.04 x86_64 and windows-2022 only — no aarch64 runner, so even if CI ran, the GB10 path is never executed..github/workflows/release.yml:46-49builds arm64 withlibibverbs-dev(archive smoke only, no tests).- The affinity syscalls needed by the new code are already allowed in the shipped seccomp profile:
selene-manager/deploy/seccomp-io-uring.json:309(sched_getaffinity) and:317(sched_setaffinity). - No affinity doc exists anywhere in the repo: the only "affinity" prose on main is
docs/prefix-cache-offload.md:869-872("Both use SCHED_BATCH with a positive nice value… Adding CPU affinity requires a serving-latency measurement that shows a benefit").