Explore report · NVIDIA/hyperflare-inference #667

Raw Markdown for agents: https://autobot.eidonix.com/p/d0653562-48c3-4e0a-a140-168c498185dc.md

Case file: PR #667 — Harden Orbit payload integrity, multi-deployment TP seams, GB10 page-cache release, Unix flock drop, and multi-host peer exports

Author: lukealonso (COLLABORATOR; charter-named priority contributor; Discord lukealonso) · open, "ready for review", opened 2026-12-01 · head 7908ac3 on main a3c80e19 (#657) · 25 files, +1588/−352, one squashed commit · no labels, no reviews, no comments · CI on head: passed.

Key findings

Things a reader could not learn from the description:

  1. The controller silently drops its own cache pre-check for intra-node transfers. flare-cli/src/orbit/controller.rs:2031 now guards the whole have() / check_space / "fetching N from X" block with if source.public_key != node.public_key. Before, the loop always ran, so same-node transfers got a free-space guard. The description mentions none of this. (scratchpad #2, #10)
  2. Every existing single-host Payload core cache entry becomes a miss, not just colliding ones. Single-host describe() builds the export as <sanitized stem>-<hex of envelope_digest[..8]> (controller.rs:2448, test at :3731), so model becomes e.g. model-1a2b3c4d5e6f7a8b for all single-host payload cores. Combined with the new "refuse unverified staging hits" rule (agent.rs:1581-1586), previously cached copies must be re-transferred once, and the old <export>-<len> directories are left behind; docs/orbit.md:518-520 states flat rank directories from older agents "are not migrated automatically". The description frames the rename only as collision prevention.
  3. agent::run re-opens and re-verifies the sealed core before every rank launch on the production path (agent.rs:2177-2194, verify_envelope_on_run set only by Agent::new at agent.rs:775; with_fakes sets it false). That is an extra VerifiedCore::open metadata parse per launch, unmentioned in the description.
  4. The envelope guard is opt-out by omission. Grant.core.envelope_digest is [serde(default)] [u8;32] and expected_envelope() returns None when it is all zero (grant.rs:86-98), so a controller that omits the field (old binary, or hostile) disables the entire integrity binding and the agent silently falls back to today's behaviour. parse_expected_envelope treats all zero the same way (agent.rs:1548-1556). Related: the launch-time guard only covers the local_core branch (agent.rs:2140-2196); the description's "before spawning flare run" is narrower than it sounds. (#10, #16)
  5. --verify-weights on multi-deployment Payload cores looks unfixed on the controller-present branch. verify() → trust::load → RuntimeCore::open(..., None) runs before describe() recovers tensor_parallel (controller.rs:1187 vs :2423; verify_weights set only on the CoreReference::Local branch at :1165), so the PR's TP fix depends on the user also passing --tensor-parallel (helios/src/.../trust.rs:41-49 (not opened)). (#10)
  6. The page-cache benefit for #630 is unmeasured and #630 stays open. The description says so itself; #630's reporter pfn confirmed on 2026-12-01 that #646 did not fix this path, and #630's asks 2 and 3 (warn when reclaimable page cache limits the KV budget; print MemFree/MemAvailable/Cached on cuCtxCreate failure) are untouched by #667. (#3, #11)
  7. No documentation is changed although user-visible semantics change: peer caches are removed, --no-weights requirements move to the coordinator, and cache directory naming changes. docs/multi-host.md:306 still says the peer host "Prepares and retains its rank's payload blobs locally" and :319 still says "--no-weights requires matching cached payloads". (#9, #20)
  8. Four of the five defects have no issue trail at all — no bug report, no repro, no linked discussion; only defect 3 (#630, filed by pfn, not the author) is externally reported. Defect 4's window (forked child holding an inherited fd before execve) was created hours earlier by the author's own #650; defect 2's .ok() swallow by the author's own #646. (#19)
  9. Textual conflict with open #668 (same author, same day): both rewrite the peer export_options(...) block at ignition/preparation/host_ranks.py:685-689; #668's own review flags the collision. Conceptual overlap with open #394 (voipmonitor), which also reworks the NativeExportStage workspace that #667 now puts a cache root inside. (#7, #20)

The change

What it does, in plain terms (25 files, +1588/−352, 6 areas, one squashed commit 7908ac3):

  1. Orbit stops resolving cached weights by name and length. Grant.core gains envelope_digest: [u8;32] and tensor_parallel: Option<u32>, both #[serde(default)] (flare-cli/src/orbit/grant.rs:86-92, expected_envelope() at :98; legacy-deserialization test :268-274). Single-host describe() folds 16 hex chars of the envelope digest into the export name (controller.rs:2448); HAVE frames carry the digest (controller.rs have()); agent.rs checks SourceRef::expected_envelope() in have(), transfer(), fetch() and run(), refuses unverified staging hits, and rejects "staged core signed envelope differs from the grant" / "core … signed envelope differs from the grant" (agent.rs:525, :2189). publish_orbit_entry no longer swallows VerifiedCore::open via .ok(), so real envelopes and .flare-verified.json (not opened) markers are written instead of [0u8;32] (agent.rs:881-993).
  2. Multi-deployment Payload cores work. New open_verified_core dispatches CoreFormat::Payload + Some(tp) to VerifiedCore::open_tensor_parallel (agent.rs:504, helios/src/runtime_core/protection.rs:766) instead of VerifiedCore::open(..., None), which errors for more than one deployment. ServingOptions::rank_options forwards --tensor-parallel (flare-cli/src/cli.rs:1167-1177); agent::run strips conflicting copies and emits exactly one scalar (agent.rs:2229); Controller::run deduplicates saved vs CLI values (controller.rs:697, :1960-1982); launch.rs:144-149 injects envelope+TP into --hosts grants.
  3. Linux page cache is dropped after big reads. New eos::release_page_cache_range (eos/src/unix.rs:74-80, posix_fadvise(..., POSIX_FADV_DONTNEED); Windows stub), re-exported via helios/src/lib.rs. Call sites: sha256_file (flare-cli/src/distribution.rs:627), peer shard ranges in serve_source (:1218), all deduplicated peer Arc<File>s at Source teardown (:1136, with a comment that rank-zero's loader never opens peer shards), store_parallel/store_partial after sync_all(), agent::fetch after each served range, protection.rs after each hashed payload, and model.rs:808 immediately after load_payload when any rank is integrated (pre-existing releases at :618 before CUDA init and :920 before allocate).
  4. Unix locks are explicitly released. helios::core::cache::Lock and core::conversion::CoreLock gain #[cfg(unix)] Drop → flock(fd, LOCK_UN) (helios/src/core/cache.rs:4246-4262, conversion.rs:2696-2703). New cross-platform flare::file_lock::FileLock (flare/src/file_lock.rs, Unix LOCK_UN at :25) replaces hand-rolled locks in hub.rs (−99), download_cache.rs (−88) and trust.rs (−17).
  5. Multi-host peers stop caching blobs they never commit. ExportOptions.remote_cache (default false) on the Python↔Rust export options; under no_weights && remote_cache capture_group_into_cache hashes in one pass and records ids in WeightPayloadSources.cached without a local cache lookup (heliopause/src/export/capture.rs); receive_rank validates presence and length in the coordinator cache with a new message "--no-weights requires the peer payload object in the coordinator cache" (heliopause/src/export/transfer.rs); ignition/preparation/host_ranks.py:685-689 captures into peer-cache inside the NativeExportStage tempdir with remote_cache=True and releases core before native_stage.close().

Description vs code: everything the description claims is present in the diff; the deltas are omissions (findings 1–4, 7 above), not false statements. The stated compatibility claim is precise for cores and grants ("no model core wire format or Protobuf schema changes"; legacy grants deserialize) but says nothing about cached single-host payload entries, which do change identity.

The why

Recent activity

main is moving fast under these files, mostly by the same author within 72h: a3c80e19 #657, 5d53040e #628 (yatesdr, helios Copy-Engine gating), a747a5a5 #653, 571a4471 #650, bf7562ae #646, c146d7be #620, e80b1f2f #618, 968ca411 #617, 1da22724 #652, f2ca2c41 #647, plus e85019b9 (#645 — the revision #630's reporter tested and found still broken; #667 is based three commits later). Direction of travel: #646 moved Orbit rank caches onto helios::core::cache::Root with source refs and .flare-verified.json (not opened); #650 moved rank spawning to a persistent thread; #620 removed copy/history drafts; #647/#652 changed export capture and cubin pruning. #667 continues every thread rather than reversing any. No semantic conflict found; the risks are textual (open #668, #394) and one behavioural (see Reach).

People

Community

None. pr_comments returns "No comments": no review, no inline comments, no labels, no flare-autobot case file or review yet (unlike #646 and #668, which got one within minutes). The PR is hours old. Precedent for this author's bundles: #646 received "Changes Requested" (1 blocker + 6 should-fix) and merged the same day; #668 received "Changes Requested" (0 blockers). No reactions anywhere.

Project fit

Claims and evidence

Backed:

Not backed / unrun:

Reach

Process

Open, ready for review, one squashed commit, base main at a3c80e19, opened and last updated 2026-12-01 (<1 day old). CI passed on head. No labels, no reviews, no comments, no Autobot review yet. Three other same-author bundles are open the same day (#668, #659, #658), splitting reviewer attention over helios/orbit/ignition. Nothing blocked, nothing superseded.

Open questions / not found

  1. Does VerifiedCore::open_tensor_parallel behave identically to VerifiedCore::open for a single-deployment (TP1) core? describe() now sets tensor_parallel = Some(n) for every Payload core (controller.rs:2423), so all payload launches switch to the TP entry point. Not answered by any test in the diff.
  2. Does orbit run --verify-weights of a multi-deployment Payload core still fail on the controller-present path, where trust::load runs before describe() knows the TP size? (controller.rs:1165-1187 vs :2423.)
  3. Whether the intra-node check_space guard removal (controller.rs:2031) is intentional — no comment, no test, no description mention.
  4. How much re-transfer the single-host cache rename costs operators in practice (population size, GB) — no measurement.
  5. Whether pfn / #630 will confirm the KV collapse on GB10 hardware — explicitly outstanding, and #630 remains open.
  6. Whether #667 and #668 will conflict textually on host_ranks.py:685-689 / :718-719 — flagged by #668's own review; whichever lands second needs a rebase.
  7. No issue, comment or review could be found anywhere for defects 1, 2, 4, 5 — the PR body appears to be their only provenance.