Explore report · NVIDIA/hyperflare-inference #698

Raw Markdown for agents: https://autobot.eidonix.com/p/dafe645a-26c9-4ff9-affa-650c37171356.md

Amendments to the case file for PR #698 — "Open host prefix store before RankExecutor::new() to avoid cuModuleLoadData deadlock with persistent GPU workers"

(Amendment-only output, per the task. Everything in my 2026-12-02 report that is not contradicted below still stands; the standing parts are restated compactly in §5 so reviewers do not have to re-derive them.)

Key findings (the deltas)

  1. The head moved and the two error-path blockers I raised are fixed. Head is now 501bb0e9 (1 file, +65/−53, helios/src/server/runtime.rs only). The three ad-hoc cleanup blocks are replaced by one helper, fn close_store(store: Option<Box<dyn flare_selene::HostStore>>, shutdown: &mut Shutdown) (pr/698 helios/src/server/runtime.rs:1137-1157) that keeps the store in ManuallyDrop while !shutdown.drained, clears drained around store.close(), restores it on Ok, and records a close error with shutdown.error.get_or_insert(...) on Err. Worker::close_store now just delegates (:1353-1355), all three early-error paths use it (RankExecutor::new :703, RequestScheduler::new :716, scheduler configuration :780), and std::mem::forget appears nowhere in the file. Withdrawn: my findings on asymmetric drained semantics, swallowed store.close() errors, and the deliberate mem::forget leak (old findings 3 and 4).
  2. #698 is now fully superseded by already-merged #709. #709 "Unblock lossless KV compression across Ignition, selene-manager, and Helios Green Contexts" (lukealonso, COLLABORATOR; opened 2026-12-03 18:08, merged 2026-12-03 20:09, +2185/−339, 21 files, merge commit cb191a93) states in its body that it "addresses #701 and #698", and it ships every element of #698's single-file diff — verified on main: the same reorder block with crate::offload::open at helios/src/server/runtime.rs:782 before RankExecutor::new at :798 (:760-794), the same close_store helper (:1282-1302), the same three call sites with get_or_insert (:805, :818, :882; errors preserved at :819, :883), and Worker::close_store delegating (:1465-1466). #709 additionally lands what #698 never had: the docs sentence (docs/prefix-cache-offload.md:59-63, incl. "opens the host prefix store (calling cuModuleLoadData) before starting the persistent worker graph" at :62-63) and five tests (helios/src/server/runtime/phase_tests.rs:2296, :2321, :2352, :2374, :2399-2459). #709's own Autobot review says it outright: "Open #698 duplicates the runtime.rs startup-ordering fix this PR also implements (its review asked for exactly this close_store ownership work)."
  3. Verdict change: close as duplicate, with credit. After a rebase the only deltas left would be comment wording plus one nit — the two scheduler branches still end with shutdown.error = Some(error) (pr/698 :717, :781), which overwrites a store-close error the helper just recorded, where main uses get_or_insert (:819, :883). Recommendation moves from "fix the error paths, then merge" to close #698 as superseded by merged #709, explicitly crediting ebfio's GB300 cuModuleLoadData diagnosis — which main already credits by PR number in code: helios/src/runtime_core/persistent_worker.rs:2939 ("4. Now start the persistent worker after cuModuleLoadData completed (#698)").
  4. A linked issue now exists, and it reframes the contribution: #701 (ebfio, opened 2026-12-03 02:18, open, labels bug, performance, priority:P1) documents the post-fix SM103 Green Context contention (6.9–12.4 MB/s encode, ~100× decode collapse, B>=2 hang) and says it reproduces "after fixing the cuModuleLoadData() startup deadlock in helios/src/server/runtime.rs". So #698 was the prerequisite diagnosis, and the P1 follow-on is already being fixed elsewhere (#709's third codec Green Context; extended fleet-wide by open #723).
  5. Corrected mechanism wording (replaces my "could not locate" caveat) and a residual gap on main. The kv_codec_gpu deferral is a skip_module parameter in the loader (helios/src/runtime_core/mod.rs:788-791 at pr/698, :798-801 on main; driven by codec_gpu_module.as_deref() from helios/src/runtime_core/model.rs:821 / :862), and the cubin bytes are pre-read into gpu_codec_cubins (model.rs:628-689 / :662-692), so the only cuModuleLoadData for kv_codec_gpu is GpuRankCodec::new → stream.load_module(cubin) (helios/src/offload/transfer/gpu_codec.rs:268-283). No CI test guards the startup ordering on main: phase_tests.rs has no offload::open call site, and the only ordering assertion is the #[ignore]d SM120 test cuda_green_context_three_way_gpu_codec_runs_concurrently_with_persistent_worker_and_cooperative_compute (helios/src/runtime_core/persistent_worker.rs:2500-2502, step 4 at :2939). That is a main risk, not an #698 risk.
  6. State/engagement refresh: labels are now bug + triage:review; engagement is still zero human review and zero CI checks — the only discussion is two flare-autobot comments (case file 2026-12-03 00:18; a Changes-Requested review at 00:38 against 9ed34da with 2 blockers). That review predates 501bb0e9, so its ownership blocker is stale while its evidence blocker still stands (see §3). The PR body is also stale vs its own head: it still describes the removed ad-hoc cleanup and mentions neither #709 nor #701.

1. Amendment: the error-path work at head 501bb0e9

2. Amendment: scope proof that #709 covers #698, and the conflict/merge-order picture

3. Amendment: state, provenance, evidence, and mechanism

4. Withdrawn / superseded from my 2026-12-02 report

5. What still stands unchanged from the original report

6. Open questions / not found

Link: https://github.com/NVIDIA/hyperflare-inference/pull/698