Explore report · NVIDIA/hyperflare-inference #698

Raw Markdown for agents: https://autobot.eidonix.com/p/c680de99-01f4-4d1a-84a9-680a9cfd8bd2.md

Case file: PR #698 — Open host prefix store before RankExecutor::new() (ebfio)

Key findings (what the description does not tell you)

  1. The cited validation cannot compile the changed file. helios/src/server/runtime.rs is only built under #[cfg(feature = "server")] (helios/src/lib.rs:30-31). The stated validation run, cargo test -p flare-helios --features runtime-core ("1243 passed; 0 failed; 37 ignored"), does not enable server (helios/Cargo.toml:21,25 — server = ["dep:serde", "images", "grammar", …]), so no line of this diff was compiled by the run cited as evidence. The PR's own "Suggested test command" additionally names a package that does not exist — the crate is flare-helios (helios/Cargo.toml:2), so cargo test -p helios … fails as written. No test is added or modified in the diff.
  2. This repairs a regression that is ~1 week old, introduced by merged PR #504 ("selene, selene-manager, helios, ignition, heliopause: add pure-CUDA GPU and CPU lossless KV compression", yatesdr, merged 2026-11-25, +20519/−785, 152 files) — which itself changed helios/src/server/runtime.rs (+5/−2) to add the very crate::offload::open(...) call this PR moves. #698 is a follow-up fix, not a rewrite; it reverses none of #504's work.
  3. Error-path "drained" semantics are not symmetric with Worker::close_store, despite the code comment claiming "symmetric LIFO order". On RankExecutor::new failure the new code does let _ = store.close(); (error discarded) and returns Shutdown { drained: true } (runtime.rs:697-706); Worker::close_store in the same file sets drained = false and preserves the error when store.close() fails (runtime.rs:1354-1362). The offload-open failure path also now returns drained: true unconditionally (runtime.rs:684-690) where the pre-change code derived drained from executor.close() (removed hunk of the diff).
  4. New deliberate leak to retain registered slabs: std::mem::forget(store) on an undrained shutdown in the two late error paths (runtime.rs:721-723, :791-793) — same intent as the ManuallyDrop handling at runtime.rs:1348-1352, but via a different mechanism, and reachable only on startup failures that previously could not happen after the store was open.
  5. One step of the described root cause could not be located in the tree. Cause #1 says helios/src/runtime_core/mod.rs defers the kv_codec_gpu cubin load during Prepare kernels. That file contains no kernels/codec/module references, and no definition of prepare_kernels exists under helios/src — only call sites helios/src/runtime_core/model.rs:821, helios/src/runtime_core/event_tests.rs:115 (not opened), and the phase name at helios/src/startup.rs:59. The rest of the chain (below) is verified.
  6. Behaviour change beyond the stated GPU case: worker_metrics.codec_placement(...) and the prepared.intake_warning() stderr warning now fire before executor construction (runtime.rs:673-678), i.e. earlier log/metric ordering at startup, and are emitted even when startup subsequently fails. The reordered block runs for every offload configuration (store is None only when there is no offload payload), not just --lossless-kv-compression gpu.
  7. The body admits an unresolved, in-scope follow-on: on SM103 Green Context cores with cooperative persistent workers, GKV1 still contends with cooperative decode graphs at runtime because model.rs opens the codec stream on rank.execution_context() — declared separate from this fix and left open.

The change

Size: 1 file, +52/−31, all in helios/src/server/runtime.rs (head 9ed34da, base main, diff read in full).

Verified at head:

Undeclared/side details:

The why

Recent activity

People

Community

Project fit

Charter (read in full) mapped to this change:

Claims and evidence

Claim (from body) Backing found
Deadlock in Start server with PersistentWorker + GKV1, cuModuleLoadData spinning Self-reported; gdb backtrace on DGX Station GB300 (SM103, CUDA 13.2) shows cuModuleLoadData in libcuda.so.1. Not independently reproduced in-repo. Mechanically consistent with the verified chain (see "The why").
Before >400 s hang; after 0.6 s to "Start server" Author's report only; explicitly "retained from the supplied reproduction", no fresh run for the submission.
GKV1 works after: 1.239–1.259× lossless on FP8 MLA KV, 0 CRC/verification failures; SIGTERM drain 3.6 s Author's report; no logs or command output attached.
"cargo test -p flare-helios --features runtime-core → 1243 passed; 0 failed; 37 ignored (Hades Linux aarch64, kernel 6.17.0-1029-nvidia-64k)" Cannot exercise the diff: server feature off (helios/src/lib.rs:30-31, helios/Cargo.toml:25). Verified; the count says nothing about this change.
"Suggested test command: cargo test -p helios --features runtime-core" Wrong package name — crate is flare-helios (helios/Cargo.toml:2); fails as written. Verified.
"Startup is now exact LIFO-symmetric with the existing shutdown path" True for the happy path (:806, :829-830); approximate for the two late error paths (:714-726, :784-796); false for the RankExecutor::new failure path, which ignores the close error and always reports drained: true (:697-706) unlike close_store (:1354-1362).
Cause #1: cubin load deferred in runtime_core/mod.rs during Prepare kernels Not locatable: no kernels/codec reference in helios/src/runtime_core/mod.rs, no prepare_kernels definition under helios/src (only call sites runtime_core/model.rs:821, runtime_core/event_tests.rs:115 (not opened); phase name startup.rs:59).

Reach

Process

Open questions / could not be found

  1. Whether any existing server-feature test (e.g. helios/src/server/runtime/phase_tests.rs (not opened), not opened) covers startup ordering between offload::open and persistent-worker launch — no test appears to guard this ordering against regression.
  2. The actual prepare_kernels deferral code named as cause #1 (definition not present under helios/src; possibly supplied by the core/ignition crate outside this repo's searchable tree).
  3. Any independent confirmation of the GB300 before/after numbers — no logs, traces or CI artifacts were attached, and no other reporter has surfaced the hang.
  4. Whether the drained: true on the RankExecutor::new failure branch (ignoring store.close() errors) can hand back resources the caller believes are released while store slabs are still registered — reviewer-level question, not resolved here.
  5. Commit-level authorship/date history for helios/src (git object errors blocked both the orientation packet and search_history).