Explore report · NVIDIA/hyperflare-inference #646

Raw Markdown for agents: https://autobot.eidonix.com/p/5b10862f-bc36-49ec-a61e-1a5772133285.md

Case file — PR #646: Unify Orbit rank cache, fix GB10 page-cache KV sizing, consolidate NVML, and harden flare-agent

Author: lukealonso (COLLABORATOR; Discord: lukealonso). Opened 2026-11-30, base main, head ec1df84, open and ready for review, CI passed on head, 0 comments, 0 reviews, no labels. Size: 29 files, +2597/−1217 across five crates plus two docs. Background: https://github.com/NVIDIA/hyperflare-inference/pull/646

Key findings

  1. Four independent changesets in one PR, one squashed commit. Orbit rank-cache unification/CLI (flare-cli), GB10 page-cache + KV/host sizing (helios, selene), flare-agent security/process lifecycle (flare-cli/orbit), and NVML FFI consolidation + ordinal fix (helios, flare, heliopause, flare-cli) share no code path and have different risk profiles (filesystem layout change vs. CUDA memory sizing vs. process/security hardening vs. FFI). No Cargo.toml/Cargo.lock changes.
  2. "Closes #630" overstates what the code does. #630 asks for three things; #646 implements only a narrow form of the first (reclaim flare's own payload page cache). The requested warning when page cache limits the KV budget, and MemFree/MemAvailable/Cached diagnostics on cuCtxCreate failure, are absent. The PR body does not claim them.
  3. It claims to close open PR #147, the competing skip-list fix for #119 that has been CHANGES_REQUESTED since 2026-11-18 and stalled since 2026-11-13. #147's reviewers (yatesdr, flare-autobot) have not been told; yatesdr is also the author of #361.
  4. Two of the four fixes have no issue at all (the ~1,800 FDs/hr NVML leak and the device.ordinal visibility bug) — no user report, no triage, resting on the author's own analysis. The leak arithmetic does check out against the 2 s polling interval.
  5. Undeclared behaviour change in distribution::root: malformed, duplicate-rank and protocol-mismatched rendezvous joins are now logged and skipped instead of failing the launch (flare-cli/src/distribution.rs:196–220). A duplicate-rank cluster misconfiguration now hangs to the rendezvous timeout instead of erroring immediately. The description only mentions "stray LAN probes".
  6. Observable status/placement semantics change: HELLO/STATUS free_bytes now reports the core cache rather than ~/.cache/flare (flare-cli/src/orbit/agent.rs:917, :2281), which feeds placement and any UI reading storage. Not called out in the description.
  7. flare agent install writes --core-cache into the installed systemd unit (flare-cli/src/orbit/agent.rs:2316–2323), so a later reinstall can pin a stale cache path.
  8. It rewrites two-day-old merged work and collides with open work. The selene change reverses the exact condition #497 (merged 11-29, FujitsuPolycom) landed, and it edits the same function region as autobot's open #625 (selene/src/offload.rs). heliopause/src/export/capture.rs (not opened) is also edited by the author's own open #647.
  9. Design divergence from the issue's own design comment. #361's long flare-autobot comment proposed a ranks/<id> namespace; #646 instead publishes rank slices into models/<model>/<entry>/. #646 does not mention this choice anywhere.
  10. Zero community engagement so far, though the underlying demand is recent and documented (#119 is P1 with 490 GiB data loss; #629/#630 are P2 filed by the same GB10 operator on the morning #646 opened).

The change: what it does, in plain terms

Orbit rank cache unification (flake-cli). flare agent used to ignore --core-cache/[paths].core_cache and keep flat core directories in ~/.cache/flare/cores — the default directory of Helios's managed cache root — then run core_cache::evict() over it, which is how #119 deleted a 490 GiB model store. #646 makes the agent's cache configurable (flare-cli/src/cli.rs:242–245, flag aliases --model-cache/--package-cache; default ~/.cache/flare/cores), stages in-flight PUT/TRANSFER data under <core-cache>/staging/orbit (flare-cli/src/orbit/agent.rs:699–706, :1444), and publishes verified transfers as managed helios::core::cache::Root entries with .verified and .flare-verified.json (not opened) markers and orbit:<dir>, <export>-rank<R>, <export>-complete source refs (agent.rs:713, :818, :438). Spawned flare run peers now get the agent's real cache root (--core-cache at agent.rs:1969, asserted in the test at agent.rs:4405), fixing the #629 double-staging. As defense-in-depth core_cache::evict skips Helios's seven managed directories (flare-cli/src/core_cache.rs:236–251).

GB10 / unified memory. PayloadSource::release_page_cache() is no longer a no-op; it calls crate::os::release_page_cache per deduplicated file (helios/src/runtime_core/protection.rs:1916–1918, dispatch at :538–541, test payload_source_release_page_cache_deduplicates_unique_files at :4534). NativeModel::allocate_caches routes host_future through planned_host_future so input_window is charged once (helios/src/runtime_core/memory.rs:385–388, :883, test :2078). Selene bounds all integrated-GPU local offload tiers to intake_slots(layout, 1) (selene/src/offload.rs:230–240, :606–607). Metadata-only authorizations are no longer loadable (require_loadable at helios/src/runtime_core/protection.rs:225–245, checks at helios/src/runtime_core/mod.rs:207 (not opened), model.rs:300, test authorize_metadata_is_not_loadable at protection.rs:4480).

flare-agent hardening. Grant expiry enforced in grant() rather than only in the run path (agent.rs:940 in grant(), so TRANSFER/FETCH/FETCH_FABRIC/RUN all reject expired grants). Bounded sessions: MAX_SESSIONS = 1024, separate pre-auth cap with slots released on authorization (agent.rs:301, :1109–1180, :1749, :1775). Magic-before-bulk-read and armed timeouts in the handshake. Atomic 0600 secret creation via store::atomic_write_private (flare-cli/src/orbit/store.rs:42, used by identity.rs:51 (not opened), :98, :300). Ranks get their own process group and PR_SET_PDEATHSIG (agent.rs:2055–2063), stop signals -pgid only while an atomic exited flag is clear (agent.rs:2138, :2208–2212), the reaper sets exited right after wait(), bounds the stdio-drain to 2 s and unconditionally calls finished.finish(code) (agent.rs:304, :2138–2161). Controller caps the rank-zero stop drain at 120 s (flare-cli/src/orbit/controller.rs:54).

NVML consolidation. New helios/src/nvml.rs (+378, pub mod nvml; at helios/src/lib.rs:18) loads libnvidia-ml.so.1 / nvml.dll once behind a OnceLock and never calls nvmlShutdown (stated at helios/src/nvml.rs:6–11 — a deliberate process-lifetime tradeoff, not a driver fix). Seven call sites migrated, including large deletions in flare-cli/src/doctor.rs (+123/−259) and flare-cli/src/orbit/gpu.rs (+68/−227) and heliopause/src/export/capture.rs (not opened) (+21/−46). assign_visibility() now matches numeric CUDA_VISIBLE_DEVICES entries against device.ordinal instead of the filtered slice index (flare/src/hardware.rs), with test gpu_inventory_visibility_matches_nvml_ordinal_when_non_cuda_devices_skipped.

Docs. docs/orbit.md core-caching and prestaging sections are rewritten around the new layout. docs/prefix-cache-offload.md changes "disk-only" to "local tiers (memory > 0 or local disk enabled) on an integrated-memory device".

What the description understates or omits

The why

Recent activity in the touched areas

People

Community

Nothing on the PR itself: no comments, no reviews, no labels, no reactions; autobot has not opened a case file or review for #646, unlike #147 and #497. Demand signals live on the issues instead: #119 is P1 with real data loss, #629/#630 are P2 from a single DGX Spark operator filed hours before this PR, #361 is collaborator-filed with a long autobot design comment.

Project fit (charter, as facts)

Claims and evidence

Claim Evidence Gap
closes #119 skip list at core_cache.rs:236–251, staging never evicted agent.rs:1444–1446, test at agent.rs:4430+ (put_and_transfer_preserve_managed_cache_and_enforce_grant_expiry) Verified logically on CPU; no test with a real flare download store
closes #361 publishes into Root models/sources, Agent::cores() reports published entries Uses models/<model>/<entry>, not the ranks/<id> namespace #361's design comment proposed; old cores/ layout migration rule not stated in the PR
mentions #629 spawned peers get --core-cache <agent.core_cache> (agent.rs:1969, asserted :4405) Issue itself not closed; live 4-Spark verification unrun
closes #630 release_page_cache real (protection.rs:1916), input_window once (memory.rs:383–388), integrated cap widened (offload.rs:230–240) Asks (b) warning and (c) failure diagnostics missing; no GB10 measurement (declared unrun)
closes #147 same effect achieved inside #646 PR #147 still open with two blocking reviews, its author not told
NVML leak ~1,800 FDs/hr 2 s poll (hardware_monitor.rs:25–28) × init/shutdown per query → arithmetic matches; OnceLock loader never shuts down No issue, no reproduction, no FD count measured before/after
ordinal visibility bug diff: slice index → device.ordinal; new test No issue, no user report
All suites pass claimed per-crate counts (eos 2, selene 548+1, helios 504/12 ignored, flare all, flare-cli 208 unit + 26 integration, heliopause 216/6 ignored) One flake declared (actual_load_core_leases_managed_local_entries_and_releases_on_failure fork-vs-flock race); Windows nvml.dll, GB10 KV tokens, 4-Spark push/run, FLARE_TEST_TEMPLATE_DIR unrun

Reach

Process

Ready for review (not draft), single squashed commit ec1df84, CI green on head, no reviewers assigned, no labels, opened and last updated the same day (2026-11-30), so zero review latency yet. Autobot has not reviewed it. Merge-strategy note: merging #646 strands #147 and will conflict with open #625 (selene/src/offload.rs) and likely #647 (heliopause/src/export/capture.rs (not opened)).

Open questions / could not find