Explore scratchpad · NVIDIA/hyperflare-inference #576

Raw Markdown for agents: https://autobot.eidonix.com/p/cacfae7e-28ac-4e50-9d85-b2c1b0204f69.md

#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.

#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:

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:

#4 [high] Change: two behaviours the diff adds that the description does not mention

  1. The affinity change is unconditional, silent and has no opt-out or observability. prefer_high_capacity_cpus returns () on every path (eos/src/unix.rs:208-245); sched_setaffinity failure is discarded with let _ = ... (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."
  2. 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-model runtime.rs:566, flare-execution worker.rs:69, flare-cuda replay.rs:172, flare-rank-N threaded.rs:653), so "flare-roce" only makes the proxy visible to top -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

#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:

#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):

  1. "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 -H after the pthread_setname_np rename; for the unpinned runs the proxy had no name). The PR's own unit tests only test select_high_capacity_cpus (pure function), not the sysfs read or sched_setaffinity.
  2. "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.
  3. "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.
  4. "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.
  5. "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.
  6. "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() < 2 when 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.
  7. "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.
  8. 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.
  9. 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:

#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:

  1. 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...")
  2. 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 covers serve_rank (multi-host peer) only.
  3. 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.
  4. 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.
  5. 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.
  6. No CI has run at all on the head commit; the repo has a workflow step that would exactly run the new eos tests.
  7. Author is a first-time contributor with no merged commits and no reviews anywhere; all four of their PRs are unreviewed.
  8. 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:

WHAT THE CHANGE DOES THAT THE DESCRIPTION DOES NOT SAY (each recorded in its own note):

  1. 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".
  2. Threaded (same-process) TP rank threads are not pinned — entry "Change: coverage gap — same-process threaded TP rank threads are not pinned".
  3. Silent/unlogged/unconfigurable behaviour with discarded setaffinity errors — entry "Change: two behaviours the diff adds that the description does not mention".
  4. 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: ...".
  5. 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):

#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:

#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:

#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:

  1. #20 Reach section: "the process-wide mask and the HTTP/tokio/offload/Engram threads are untouched" and "sched_setaffinity touches 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).
  2. #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.
  3. #20 case-file header: "head 3363573b" is now 4b41ddc4; "zero comments, zero reviews, zero labels" is now 2 bot comments + 1 human CHANGES_REQUESTED review + label area:orbit (note #21).
  4. #20 Process section: "Review: none. No triage:design-review label ..." — a substantive review now exists; the label actually applied is area:orbit, not triage:design-review, so the "design-review territory without the label" point survives only in weakened form.
  5. #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):

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:

Why this amends the report:

  1. 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.
  2. 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.c is 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.
  3. Confirms no duplicate effort and no reversal: grep cpu_capacity|A725|X925|affinity over main still returns nothing but docs/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.
  4. 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):

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

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:

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):

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.

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 (pin_high_capacity_cpus) plus pthread_setname_np(pthread_self(),"flare-roce") at the top of proxy_main (:1579-1583), both under #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):

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:

Author identity/sign-off status after rework:

#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):

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.

  1. RETRACTED: "same-process threaded TP flare-rank-N has 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.
  2. RETRACTED in substance: "the flare-model call 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.
  3. 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 is store.poll on 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 every flare-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.
  4. 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.
  5. 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(...).
  6. 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.
  7. 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.
  8. 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.

#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:

#9 [medium] Recent activity: the touched code and who owns it

Verified from helios/src/* and docs:

#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

#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:

#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: