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

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/aeb14d5b-1690-4a17-afa9-e44b56e0ba72

Opened by a workflow run, Nov 29, 2026 2:59 PM EST. decide malicious: all_clear (100%): No malicious content found

explore

Author: lukealonso (COLLABORATOR, charter priority contributor; Discord lukealonso) Motivation: Large TP8/TP16 MoE cores cannot be published or updated: their combined per-rank metadata overflows a 128 MiB envelope, Hugging Face tree-API LFS downloads are silently not digest-checked, cached GPU weight capture reads device memory twice and can truncate staging files, and a minor layer-layout edit forces a full re-download. Scale: +4784 / −399 in 23 files Proposal:

Full report · Notes

Value Proposition

Value Proposition — PR #618

Charter alignment. Two of the four areas fix verified defects, one is a deliberate follow-on to merged work, and the rest leans on the author's judgement rather than a filed report. Area 1 addresses integrity gaps independently confirmed on main: tree-API LFS entries stored a bare lfs.oid in FileIdentity.etag while content_digest requires the sha256: prefix, so SHA-256 checking was silently disabled for every such file, and adopt_complete took no lock, could rename over a complete blob, and left .adopt-* orphans download_cache::reclaim could not collect. Area 2 removes the 128 MiB envelope ceiling that #371 (merged, voipmonitor) deliberately left standing when it raised MAX_SELECTED_RANK_METADATA to 1 GiB for 16-rank MoE cores — the SM120/TP16 workload (#398) the charter names. Area 3's File::create staging collision, where a layer-000:tuned group truncates the pinned stable companion, is likewise a real defect.

Novelty & status. Additive, not obsolete and not superseded. #371 does not spill bodies; #398 is an open issue rather than a competing PR; nothing on main fixes any of the four areas. #606 (open) rewrites the same capture_forwards and #586 overlaps the same test module, but both are textual rebase cost — the semantics are disjoint.

Value vs cost. Beneficiaries are concrete: anyone pulling TP8/TP16 cores that today cannot be published at all, every tree-API Hub downloader, and exporters hit by the staging overwrite. Evidence is strong for areas 1–2 (verified defects plus the #371/#398 driver) and thin for areas 3–4, which have no filed bug and only CPU-fixture tests; the PR concedes that live multi-GPU export memory and download throughput are unmeasured, which #210 does not accept for performance claims. Costs are substantial: +4784/−399 across 23 files bundling four independent changes; FORMAT_VERSION stays 2, so spilled cores fail on main as a commitment mismatch instead of a clean rejection; undeclared tightenings (sign() now fails above the inline limit, empty bodies rejected); a mixed-version Orbit fleet cannot mirror spilled cores; --reuse-weights JSON is no longer backward-readable; CI failed on head; and 1804 new lines of synthesis.rs have no in-repo precedent.

Verdict: Worth it with changes. Land areas 1, 2 and the create_new staging fix once CI is green, with a format-version or capability gate for external bodies and the API/Orbit/--reuse-weights changes documented. Split or benchmark the slice-synthesis work before merge. The author is a charter priority contributor owning every touched area; this should be guided to land, not closed.

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Classify intake

Selected: triage:review, bug, performance, enhancement, area:caching, area:memory, area:orbit, area:packaging, area:preparation

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +triage:review, +bug, +performance, +enhancement, +area:caching, +area:memory, +area:orbit, +area:packaging, +area:preparation

Subtraction and simplicity

Most of PR #618's +4.8k lines is load-bearing, but five deletions/collapses are worth doing, roughly −250 lines plus one duplicated OS primitive and one public API surface removed.

  1. ElidedBlocks (heliopause/src/export/capture.rs:2617-2686) is now #[cfg(test)]-only dead production code whose single consumer (capture.rs:3993) re-derives a byte stream for_each_group_block (capture.rs:2489) already walks; delete both the struct and its Read impl.
  2. synthesis.rs:951-971 re-implements posix_fadvise; eos/src/unix.rs:67-71 release_page_cache already exists, is a Windows no-op at eos/src/windows.rs:150, and is reachable as crate::os::release_page_cache (helios/src/os.rs:8). Delete fadvise_dontneed; add one advise_sequential to eos.
  3. The flare.body.* tensor write/verify loop is copied four times (export.rs:821-824, conversion/edit.rs:243-246, cache.rs:3661-3679, protection.rs:2907-2910) and the length+digest check twice (cache.rs:2259-2272, cache.rs:3664-3677, weight_reuse.rs:185-197). One container::Writer::add_external_bodies + read_external_bodies collapses them.
  4. with_inline_limit (protection.rs:1355-1361) is public builder API whose only three callers are tests passing 1 (protection.rs:2803, 2943; synthesis.rs:1434) — make it #[cfg(test)], per AGENTS.md:188-193. Related: sign() (protection.rs:1381-1390) is now a spill-failing wrapper while conversion.rs:2257 was never converted to sign_envelope; pick one behaviour.
  5. SignedEnvelope::body_store() (protection.rs:357-368) clones every compressed body right before export writes the same bytes (export.rs:696-699), and weight_reuse.rs rebuilds a third copy per deployment through a hex round-trip. Store entries as Arc<[u8]> and build the store once.

Minor: triple body validation (protection.rs:501-512 with the result discarded) and ExecuteOutcome's redundant variants (synthesis.rs:944-949) plus the unfirable if length != total (capture.rs:2607).

Open: whether POSIX_FADV_SEQUENTIAL has measurable value, and whether sign() has out-of-tree callers — both decide between the cheap and the clean fix.

Full report · Notes