Value proposition report · NVIDIA/hyperflare-inference #79

Raw Markdown for agents: https://autobot.eidonix.com/p/b1496a77-a68d-4c23-a5b6-21e5a4a1fc97.md

Verdict: worth it with changes — keep the blob fallback, cut the directory preflight back to one guard plus docs

The rebase at head 41f1c76a (upstream merged 2026-11-27) fixed the one hard blocker: the probe now sits inside unpack_with (helios/src/core/conversion.rs:316), so main's unpack_selected:300 → unpack_with:305 shape survives and the hunk no longer lands in deleted code. Nothing else about the shape of the branch changed: still 7 files, +468/-21, one 16-line fix and one ~450-line filesystem self-verification subsystem.

What is worth merging, and why

install_blob_after_rename_error (heliopause/src/export/archive.rs:298-313) is the right fix, in the right place, at the right size. It converts renameat2(RENAME_NOREPLACE) returning EINVAL/ENOTSUP into a link() install, leaves EEXIST to propagate as AlreadyExists (archive.rs:275-280 → blob.rs:204-211, which re-verifies the existing object rather than trusting it), and re-raises every other errno unchanged (archive.rs:312). Cleanup stays in blob.rs:216-224, which tolerates NotFound — the right seam and the fix for original-el8's earlier comment (pr_comments, 2026-10-26). There is no durability regression: blob.rs:191 fsyncs the blob before install and neither the old rename nor the new link is followed by a blobs-directory fsync either side of the change.

Who benefits and how much: the #54 reporter's package cache is mergerfs (Proxmox LXC), and the strace in #54 points at exactly this function; the failure surfaced at "Scan and copy reachable storage" (heliopause/src/export/capture.rs:3316-3317, blob store created at :3340-3349) after a full preparation pass. For them the patch converts a hard failure into a working export and saves a ~20-minute preparation per retry. That is small but real, and it removes a filesystem requirement instead of adding a policy, which is exactly the charter's "smallest footprint… or a way to solve it without new code at all." Hard-link publication is already the norm here — helios/src/core/cache.rs:3061 (install_payload) and :3087 (install_legacy) do link-then-AlreadyExists, and the maintainer cites the same precedent.

Caveats, none blocking: the errno set is EINVAL|ENOTSUP while the branch's own probe accepts EINVAL|ENOTSUP|ENOSYS (cache.rs:4240) — one predicate should serve both; and link() re-resolves the temporary path rather than linking the open descriptor, so a local process could swap it between the failed rename and the link (the same exposure the existing linked-then-reopened pattern already has).

What should not be merged as it stands, and why

The preflight_directory_publication subsystem (helios/src/core/cache.rs:4176-4261 plus five call sites, a new public API, a new Python symbol, and a new Python test) is now less dead than at my last review — Root::export_entry (cache.rs:2804), publish_payload (heliopause/src/export/core.rs:640-642), and unpack_with are live paths. But it still fails the charter's tests:

  1. It does not deliver the fail-early benefit that motivated #54. Every probe runs at publication time — after capture, staging, CUDA work, and (for unpack_with) after Verified::open and before verify_stored_data. On the one command #54 is about, ignition export, it never runs at all: ignition/cli/serve.py:330 is the only caller and passes path=None, so cache_only=True and model_core.py:41-42 plus binding.rs:33-36 are unreachable. What the probes buy is a better error string, not an earlier failure.
  2. It still does not make directory export work on mergerfs. Directories cannot be hard-linked, so the probe's only possible outcomes are "proceed" or "refuse with a nicer message". A user who writes a directory core to such a filesystem gets a hard refusal with no documented alternative — and no documentation was added: mergerfs still appears nowhere under docs/, and the same-filesystem rule at docs/multi-host.md:314 / docs/core-format-design.md:698 says nothing about no-replace rename support.
  3. Coverage is still partial. flare edit publishes through a bare rename_noreplace at helios/src/core/conversion/edit.rs:249-252 and is unguarded, so the same filesystem yields "unsupported" from some commands and os error 22 from another.
  4. It reorders and mutates while "checking". cache.rs:4205 calls create_dir_all(parent) inside a function documented "this probe reserves nothing" (:4174-4175), so a failing probe leaves an empty parent behind; and conversion.rs:316 now fires before the established destination exists: {output} message (conversion.rs:364-366), changing an existing error. commit_standalone still moves synchronize(&self.directory) after the probe (cache.rs:3678-3679) for no reason connected to this bug.
  5. It is ~30x the code of the actual fix for one better message, adds a public helios API and a export_preflight_directory pyfunction (binding.rs:120-128) with one caller each, and re-implements helpers that exist (ring::SystemRandom loop at cache.rs:4206-4218 beside token(); a manual cleanup match where TempDirectory exists). That is "good ideas in the wrong place".
  6. The new Python test cannot fail on its subject. tests/preparation/test_directory_preflight.py:43-52 raises "configured core cache" from model_core.py:32-33 before any probe (the unexpected hook is dead), and :28-31 fakes flare_heliopause, torch, and torch.distributed, so it asserts call order, not behaviour.

The helper-level Rust tests miss the branch that actually broke: all five archive.rs:438-552 cases call install_blob_after_rename_error directly (one invents EINVAL), so install_blob's renameat2 path (archive.rs:259-297) has no test. The PR's stated evidence is "3 tests", rustfmt --check, and git diff --check, with no mergerfs reproduction ("mergerfs was not available") — the charter asks for real evidence and a four-part description, and the description still says "Fixes #54" and "the temporary name is removed" (the helper's own comment at archive.rs:309 says the caller owns cleanup).

Conditions for merge

  1. Rebase is already done (41f1c76a); fold the fixups and add Signed-off-by.
  2. Keep heliopause/src/export/archive.rs as is. Optionally promote the unsupported-errno predicate beside rename_noreplace (cache.rs:4265) and use it in both places, with ENOSYS only if a supported target needs it.
  3. Add one seam test through install_blob — thread the rename result in, and assert (i) EINVAL installs by link with the destination readable, (ii) an existing destination still reports AlreadyExists, (iii) an unrelated errno is preserved, (iv) the caller removes the temporary. That covers the branch users actually hit.
  4. Cut the preflight to one guard, or drop it. If kept: one call site at the publication that #54 users reach (Root::export_entry), no create_dir_all, run after the existing destination check so the current message survives, and use the shared errno predicate. Delete commit_standalone's probe (test-only callers), the binding.rs pyfunction and capture_with_owners, the model_core.py hook, the core.rs hook (redundant with Root::export_entry), and the Python test.
  5. Document the requirement: two sentences beside the same-filesystem rule at docs/multi-host.md:314 and docs/core-format-design.md:698 saying directory core publication needs no-replace rename support and how it fails. Optionally improve rename_noreplace's message (cache.rs:4265-4285) to name both paths — that fixes the opacity half of #54 for every site in a few lines.
  6. Rewrite the description in the four required parts, say "Partially fixes #54", and state which filesystems and commands remain unsupported.

Answer to the framing question

The blob fallback is worth making and worth merging: a reproducible user-facing bug, a 16-line fix in the exact function the report fingered, no hot-path cost, no new surface, no silent error swallowing, and it deletes a filesystem requirement. The directory-preflight half is not worth making in this form: it runs at the wrong time on every path, cannot make the operation succeed, is currently undocumented, leaves one publisher unguarded, and costs an order of magnitude more code than the fix it accompanies. The repo already had the simpler answer — hard-link publication — so the smallest correct change is to use it for blobs and document the directory limitation.