Explore report · NVIDIA/hyperflare-inference #618

Raw Markdown for agents: https://autobot.eidonix.com/p/9b03e973-acdb-4fae-9585-2d6c503726cb.md

Case file — PR #618: core,hub,heliopause,ignition: decouple signed bodies, single-pass export, slice synthesis, and HF LFS SHA-256

Author: lukealonso (COLLABORATOR; Discord lukealonso) · open, marked ready for review, opened & last updated 2026-11-29 19:40 · head 3a57a70 · base main · +4784 / −399 in 23 files · 0 reviews, 0 comments, no labels · CI failed on head.

Key findings

  1. No core-format version bump accompanies the new external bodies. helios/src/core/schema.rs:23 still says FORMAT_VERSION: u32 = 2, and sign_envelope writes it unchanged (helios/src/core/protection.rs:1396+); core.proto only adds an optional ExternalBody message and two optional fields (helios/proto/core.proto:396-420). A core whose envelope exceeded 128 MiB therefore has empty inline body fields, and main's verifier passes an empty body into check_commitment and fails (helios/src/core/protection.rs:101-106, 674, 713 on main). The PR's own test asserts the mirror image — verification errors without a BodyStore (core::protection::tests::external_body_spills_and_round_trips_through_container_conversion_and_cache, protection.rs:2794-2830). So: spilled cores are readable only by this version or newer, nothing in the description says which release first ships it, and the stated compatibility guarantee covers only the ≤128 MiB inline path (which is preserved byte-identically).
  2. Two undeclared API/behaviour tightenings. EnvelopeBuilder::sign() now fails for cores above the inline limit ("core envelope exceeds its inline limit and requires external body tensors", protection.rs:1379-1390), and EnvelopeBuilder::deployment/rank now reject empty bodies (protection.rs:1363-1377, previously only > MAX_BODY). New public with_inline_limit(usize), clamped to MAX_ENVELOPE (protection.rs:1355-1361); production export never sets it, so the 128 MiB spill trigger is automatic.
  3. Three change areas beyond the four described surfaces change quietly: flare inspect's unverified path re-derives the selected deployment differently, enforces the 1 GiB aggregate on declared sizes before decompression, and changes error text (helios/src/runtime_core/metadata.rs:129-210); Orbit's mirrored_ranges now mirrors flare.body.* and refuses cores over the caps (flare-cli/src/orbit/controller.rs:2143-2160) — an older controller on a peer node cannot mirror a spilled core, a mixed-version fleet hazard the description does not mention; and the --reuse-weights JSON grew external_bodies (heliopause/src/export/weight_reuse.rs:19-40, #[serde(default)], so forward-safe but not backward-readable by older heliopause).
  4. Claim 1's three premises are verified real on main. Bare 64-hex lfs.oid is stored as FileIdentity.etag (flare/src/hub.rs:1144-1152) while content_digest requires the sha256: prefix (hub.rs:1737-1752), so tree-API LFS files were never digest-checked; publish_copy wrote .adopt-<pid>-<n>-<name> (hub.rs:1631-1637) which download_cache::adopted_key cannot match (flare/src/download_cache.rs:1081-1107) so crash orphans were unreclaimable; adopt_complete took no <key>.lock and publish_copy fell back to rename over an existing complete destination (hub.rs:1558-1581, 1656-1665).
  5. No filed bug or measurement backs areas 3 and 4. Searches for tracked motivation (double D2H read, stable/tuned staging truncation, peak capture host RAM, re-download after layout edits, LFS verification, adoption locking) returned only #618 itself; the "why" rests entirely on the description. The charter's evidence rule asks performance PRs for served-workload benchmarks (#210), and the description explicitly says "Live multi-GPU export memory and download throughput on whole checkpoints are not measured in this PR."
  6. The 128 MiB work is the deliberate follow-on to #371 and the #398 TP16 stack. #371 (merged 2026-11-21, voipmonitor) raised MAX_SELECTED_RANK_METADATA 512 MiB → 1 GiB for 16-rank Kimi cores (~592 MiB aggregate metadata) while keeping the 128 MiB per-rank/per-envelope caps; #618 removes the envelope ceiling that #371 deferred. #618 keeps the 1 GiB cap (schema.rs:32) and enforces it before decompression (protection.rs:1007, 1204).
  7. Textual conflicts with two open PRs. #606 (open, avifenesh; reviewed "ready to merge" 18:03 the same day) restructures capture_forwards, which #618 rewrites wholesale around an ExitStack + publication lock (ignition/preparation/capture.py:120-131). #586 (open, FujitsuPolycom) adds tests to the same payload_export_tests module in heliopause/src/export/core.rs that #618 extends. Whichever lands second must rebase.
  8. Author is the owner of every touched area and wrote the code being repaired. Dominant committer 180d: helios/src 224, flare/src 62, heliopause/src 58, ignition/preparation 156, tests/preparation 205, docs 379, helios/proto 47. The Hub tree-API/.adopt-* behaviour #618 fixes came from their own 21b2eae3 and 9710cadc six days earlier (2026-11-23); the capture.rs silent-overwrite family matches their own #593 merged hours before. Charter lists them as a priority contributor.

The change

Four independent fixes in one PR (line counts per pr_files):

What the description says the change does not do, or understates (all verified in the diff, see Key findings 1–3): no format-version bump; sign() becomes a failing API; empty bodies now rejected; inspect, Orbit mirroring and --reuse-weights JSON change shape without being called out; capture_forwards now holds the forward-cache publication lock for the whole capture phase; deferred forwards are re-materialized from a cache path with required=True, so a reaped artifact fails capture rather than degrading (not covered by the described tests).

The why

Recent activity

Everything #618 touches was churning in the 48 hours before it: eee6a9fa (PCCessna, #581, USE_NODE_PRIORITY on exported graphs), 0c25e88f (lukealonso, #613), 9a054b49 (#608), fb32cd39 (#598), f1bd4210 (#587), a39f6777 (#593), 190efabb (#539), 3e2fcd27 (#559). #618 builds on this series (#539 → #593 → #587 → #618) rather than reversing anyone's work; the only textual conflicts are the two still-open PRs above. Its protection.rs work sits on top of the fb32cd39/0c25e88f-era changes and follows #371.

People

Community

Nothing: no comments, reviews, or reactions on #618; opened and last updated in the same minute (no follow-up pushes or replies). Comparable-size recent PRs (#498, #559, #606, #79) each drew an automated case-file comment within minutes; #618 has none in the local copy, consistent with it being opened at the snapshot cut-off.

Project fit (facts from read_charter)

Claims and evidence

Reach

Users/operators: anyone pulling TP8/TP16 MoE cores (new spilled cores need this version or newer, and a mixed-version Orbit fleet will not mirror them); anyone on main's tree-API Hub path (downloads start being digest-verified, and a cached blob whose lfs.oid does not match will now be refetched); exporters on hosts where multiple ranks' metadata previously fit under 128 MiB see no change; --reuse-weights JSON is forward- but not backward-compatible; flare inspect output/error text and the aggregate preflight change; disk layout unchanged except for the new flare.body.<sha256> tensors and the renamed .adopt- temporaries (which is what makes orphans reclaimable); no new flags, no defaults changed, no dependencies added; docs/core-format-design.md and docs/runtime-core-design.md updated in the same PR.

Process

Open and marked ready for review on the day of the snapshot, single push, no labels, CI failed on the head commit (cause not visible in the local copy; the description attributes every local failure to pre-existing tests, which I could not confirm). Self-declared limitations are unusually complete. Reviewers for these areas (yatesdr, voipmonitor, FujitsuPolycom) have not engaged.

Open questions / could not find

  1. Which release/tag first ships external bodies, and should FORMAT_VERSION or a capability flag be bumped so a spilled core is rejected cleanly rather than as a commitment mismatch? Related: should the Orbit mirrorer version-gate flare.body.*?
  2. CI failure cause on 3a57a70 — not visible locally; whether any of the 6+3+2 declared "pre-existing" failures are actually caused by this PR is unconfirmed.
  3. No served-workload benchmark for the halved D2H passes, bounded peak RAM, or download-throughput claims (charter #210).
  4. No filed bug behind areas 3 and 4; whether a maintainer requested them is not recorded anywhere I could see.
  5. Synthesis blast radius: donor leases pin cache entries for the plan's lifetime, and the model-key path is only wired from flare/src/hub.rs:3053; whether other acquisition callers should get synthesis is undecided in the diff.
  6. #588 was surfaced only by a name match on publish_verified_payload and was not read — a remaining lead, not analysed.