Case file: PR #79 — fix(heliopause): fall back when no-replace rename is unsupported
Author: efegokdemir · opened 2026-10-25 · base main, head 06b9011 · open, not draft · +468/−22 in 7 files · labels area:caching, area:packaging, bug, model:gemma4, priority:P2, triage:review · one review, CHANGES_REQUESTED (yatesdr, 2026-11-18) · no CI checks on the head. Link: https://github.com/NVIDIA/hyperflare-inference/pull/79
Key findings
- The description covers roughly a quarter of the diff. It describes only a Linux hard-link fallback in
install_blob(~40 lines of logic, commit989f013b). The other three commits add an entire directory-publication preflight subsystem: a new public Rust APIhelios_core::core::cache::preflight_directory_publication(+163 in helios/src/core/cache.rs), a new Python-visibleflare_heliopause.export_preflight_directory, acapture_with_ownersrefactor ofexport_capturein heliopause/src/export/binding.rs that exists only to host the check, an inserted preflight inpublish_payloadand inunpack_selected, a call in ignition/preparation/model_core.py, and a new python test file. None of that is in the description (commit2c57bfa8, "fix(export): preflight atomic directory publication", is undeclared). - Most of that preflight cannot fire where it matters. From
ignition exportthe only production call ofexport_corepassespath=None(ignition/cli/serve.py:371;_export_hosts→prepared.export(None, …)at serve.py:240), socache_onlyis true and the python (model_core.py:41-42) and binding (binding.rs:34-36) checks are dead.Staging::commit_standalone(cache.rs:3125) has no production caller. The two cache probes that do fire run in the final "Commit core" phase, after the ~20-minute capture, so they convert the bare EINVAL into a clearer message but do not fail early. Only the convert path (unpack_selected, helios/src/core/conversion.rs:245) checks before work. This is reviewer yatesdr's blocking item 2, independently confirmed. publish_staged_directoryandconversion/edit.rs(not opened) are still unguarded. helios/src/core/export.rs:735 (used at heliopause/src/export/core.rs:1070 for the no-configured-cache directory export) and helios/src/core/conversion/edit.rs:250 (not opened) publish directories with a bare no-replace rename. The reviewer named both; the diff touches neither.- "Fixes #54" overstates it. On mergerfs the export still fails, now with
filesystem at <parent> does not support atomic no-replace directory publication. The blob phase is fixed; the directory phase is not. Reviewer item 3 asks for "Partially fixes #54". - The description is also stale on its own subject: it says "the temporary name is removed", but commit
30ccc0demoved removal to the caller (archive.rs:482 comment "BlobStore::commit owns temporary cleanup after publication"; blob.rs:216-225 does the removal and tolerates NotFound). - No evidence backs the fix end to end. There is no CI for heliopause or the pytest suites (.github/workflows contains only helios-lifecycle.yml (not opened), native-serving.yml (not opened), release.yml), no test exercises the real
renameat2branch, the python test stubsflare_heliopause/torch/torch.distributedinsys.modules(tests/preparation/test_directory_preflight.py:26-31) so it asserts call order, and no mergerfs reproduction was run by anyone. "The focused helper harness passed 3 tests" describes an earlier branch state (the head has 8 Rust + 3 python tests). - Main moved and the PR did not. #54 is still unfixed on main:
install_blobon main (heliopause/src/export/archive.rs:257-291) is the rawrenameat2with no fallback, and it is the onlyrenameat2in heliopause. Meanwhile main restructuredunpack_selectedinto a wrapper overunpack_with(main conversion.rs:300-310), which is the conflict yatesdr reports againstc8d8b672, and cache.rs/binding.rs (not opened) changed after the head (#125, #393, #431). An earlier comment by original-el8 (2026-11-13) had verified a clean merge at main5fd4070d; the verdict flipped five days later. - Competing/overlapping work: #394 (open, voipmonitor) rewrites binding.rs/core.rs/model_core.py (not opened) and the same
publish_payloadpublication; #512 (open, draft, FujitsuPolycom) puts a preflight in the CLI layer (serve._preflight_export, binding.rs, serve.py) — exactly where the reviewer says #79's check belongs. #79 remains the only attempt at the blob fallback. - Nothing has happened since the review. Head
06b9011is the merge commit the reviewer objected to; the description, error-set inconsistency (EINVAL|ENOTSUP in the fallback vs EINVAL|ENOTSUP|ENOSYS in the probe), missing Signed-off-by on four commits (989f013b,2c57bfa8,17a4aa76,30ccc0de), fold-in of fixups, and the docs change (docs/multi-host.md:275) are all unaddressed.
1. The change
What it does, in plain terms. install_blob publishes a content-addressed blob by renaming a temporary file onto its destination with renameat2(..., RENAME_NOREPLACE), which fails rather than clobbering. Some filesystems (mergerfs among them) reject the flag outright. The PR catches EINVAL/ENOTSUP and instead creates a hard link at the destination, which is equally atomic and equally refuses an existing destination. Because the blob is immutable, no copy is needed. In addition — and not stated in the description — the PR adds a probe that decides whether a directory destination's filesystem supports no-replace renames at all, and refuses directory publication with an explicit error if it does not.
Size and scope (+468/−22, 7 files) by commit:
| commit | date | what |
|---|---|---|
989f013b |
2026-10-25 | "fix(heliopause): fall back on unsupported no-replace rename" — the 1-file blob fallback |
2c57bfa8 |
2026-11-03 | "fix(export): preflight atomic directory publication" — the whole preflight subsystem |
30ccc0de |
2026-11-06 | "fix(heliopause): leave blob temporary cleanup to its caller" — drops the post-link unlink |
06b9011a |
2026-11-13 | "fix(heliopause): preserve publication preflight across core renaming" — a merge of main into the branch, not a rebase |
Per-file substance:
- heliopause/src/export/archive.rs (+139/−1):
install_blob_after_rename_error()gated#[cfg(any(target_os = "linux", test))](archive.rs:471);fs::hard_link(temporary, destination)on EINVAL|ENOTSUP; EEXIST deliberately not in the set so it propagates; 5 new unit tests. - helios/src/core/cache.rs (+163/−1): new
pub fn preflight_directory_publication(cache.rs:3623) that creates.flare-rename-probe-<32 hex>in the destination's parent, makes source/target subdirectories, requires the rename to fail EEXIST onto the existing target, deletes the target, requires the rename to succeed, and removes the probe — so it verifies both that no-replace is refused and that a free destination is accepted; a filesystem that silently replaces yieldsio::ErrorKind::Unsupported("no-replace rename replaced an existing directory"). Non-Linux is a no-op returning Ok (cache.rs:3623-3631). Called fromRoot::export_entry(cache.rs:2358) andStaging::commit_standalone(cache.rs:3125). 3 tests. - heliopause/src/export/core.rs (+3): preflight inside
publish_payloadwhen!cache_only && form == "directory"(core.rs:708-710). - heliopause/src/export/binding.rs (+91/−20):
export_capturerefactored into acapture_with_owners(...)helper (owner-lease/drain logic extracted) purely so a preflight can sit "inside the capture closure" when!request.sources && !request.path.is_empty()(binding.rs:34-36); plus the new pyfunctionexport_preflight_directory(binding.rs:120-128). - helios/src/core/conversion.rs (+2): preflight in
unpack_selected(conversion.rs:245) — the only site that fires before expensive work. - ignition/preparation/model_core.py (+2):
if not cache_only and form == 'directory': flare_heliopause.export_preflight_directory(str(path))(model_core.py:41-42). - tests/preparation/test_directory_preflight.py (+68, new): python tests for the call paths.
What it does that the description does not say: everything in cache.rs, binding.rs, core.rs, model_core.py and the new python test file (the preflight subsystem), plus the Staging::commit_standalone reordering — synchronize(&self.directory) moves from before the destination check to after the preflight (diff at cache.rs:3114-3126), a behavior change mentioned nowhere. It also adds new public API surface (a public Rust function and a new Python symbol).
What the description says that the change does not do: "the temporary name is removed" (now the caller's job), "Fixes #54" (only the blob half is fixed), and "3 tests" (8 Rust + 3 python exist).
See also the "Reach" section for the per-publication probe cost.
2. The why
Issue #54 (open, reported by mark-yong, a CONTRIBUTOR; opened 2026-10-23, updated 2026-11-08; labels area:caching, area:packaging, bug, model:gemma4, priority:P2, triage:review; zero comments):
ignition exportdies at "[ FAILED ] Scan and copy reachable storage" withRuntimeError: Invalid argument (os error 22)— the error names neither the file nor the cause.strace -f -Ztraced it toinstall_blob(heliopause/src/export/archive.rs:429 at upstreambce032c0) returninglast_os_error()fromrenameat2; mergerfs returns EINVAL for RENAME_NOREPLACE.- Cost: the failure lands after tuning, compilation and capture — roughly 20 minutes per attempt for Gemma 4 E4B with a cold kernel cache. Every retry pays it again.
- The reporter supplied a minimal ctypes repro; direct I/O and io_uring work on the same mount, and moving
--outputalone does not help because blobs commit into the package cache and output must share its filesystem. - The reporter demonstrated that hard-link publication is already the norm elsewhere in the tree — helios/src/package/cache.rs:2581 (not opened)/:2606/:3029, flare/src/package_cache.rs:475 (not opened)/:496, heliopause/src/export/blob.rs:256, heliopause/src/export/package.rs:932 (not opened)/:1012, heliopause/src/export/transfer.rs:1021 (not opened), heliopause/src/export/protection.rs:335 (not opened) — and called
install_blob"the outlier". - Two proposals: (1) link()+unlink() fallback on EINVAL/ENOTSUP keeping EEXIST; (2) a preflight before preparation starts, plus documentation of the requirement next to the same-filesystem rule at docs/multi-host.md:243, citing docs/package-format-design.md:638 (not opened)'s promise of explicit preflight/export errors for filesystem limits.
- Workaround in the issue: keep
package_cacheand--outputon ZFS or ext4. - Environment: Proxmox LXC,
/modelsmergerfs over ZFS datasets, kernel 6.17.9-1-pve. - Referred to only by #79 (this fix) and by #109/#110 (merged, passing mentions).
Connection: both of the reporter's proposals ended up in the PR — proposal 1 as the blob fallback, proposal 2 as the directory preflight. The preflight half is therefore responsive to the issue even though it is undeclared in the description.
How long and how widely wanted: the issue is ~3 weeks older than the PR (2026-10-23 vs 2026-10-25, both by 2026-10-25). The tree is still unfixed on main (see §4). No issue comments, no duplicate issue, and the only other references are passing. Interest is therefore narrow but the failure mode is a documented user configuration (see §7).
3. Related work
- #394 "Assemble temporary core payloads in the rank export workspace" (open, voipmonitor): shares three files with #79 — heliopause/src/export/binding.rs, heliopause/src/export/core.rs, ignition/preparation/model_core.py — and also reworks the staging/standalone publication in
publish_payload("Standalone directory publication still uses a destination-local atomic no-replace rename"). It rewrites binding.rs by +111/−56, so the two PRs will conflict there and in model_core.py. voipmonitor is a charter-named priority contributor; #79 is not. - #512 "Report forward compilation/warmup progress and validate export metadata before GPU preparation" (open, draft, FujitsuPolycom): edits heliopause/src/export/binding.rs (+72/−13) and ignition/cli/serve.py, adding
flare_heliopause.export_validate_preparation_manifest— a preflight of the same character (validate before GPU work) in the CLI layer, i.e. exactly where yatesdr says #79's check belongs. This makes #512 the natural successor/competitor for #79's directory half, while #79 remains the only fix for the blob half. - Other file-sharing items from
related_items(79): #314 (diffusion tensors, unrelated), #431, #393, #125, #157, #404, #120, #291, #223, #297, #499, #508, #465/#432/#410/#408/#427/#409 (original-el8), #147 — same files but not about rename/publication semantics. - Precedent for the mechanism, cited both by the issue and by the reviewer's positive paragraph: helios/src/core/cache.rs (main :2583/:3030), heliopause/src/export/blob.rs:263, protection.rs:341 (not opened), transfer.rs:1062 (not opened), core.rs:921/1001/1060. The fallback matches existing practice rather than inventing a mechanism.
- Untouched publication paths that still fail on mergerfs: helios/src/core/export.rs:735-749
publish_staged_directory(used at heliopause/src/export/core.rs:1070), helios/src/core/conversion/edit.rs:250 (not opened), and on main helios/src/core/conversion.rs:324. Two/three of these are preflighted by the PR; the first two are not. - Documentation the change would need and does not touch: docs/multi-host.md:265-278 (same-filesystem rule for hardlinks; says nothing about no-replace rename), docs/core-format-design.md:692-704 ("Filesystem file-size or space limits cause an explicit preflight/export error" — the promise the issue cites, though it speaks of size/space, not rename), docs/cli-design.md:1064 ("--output refuses an existing destination"). The PR touches no documentation file.
- No competing PR attempts the blob fallback, and no other PR references #54.
4. Recent activity
- #54 is still unfixed on main. main's heliopause/src/export/archive.rs:257-291
install_blobis still the rawlibc::renameat2(..., RENAME_NOREPLACE)returninglast_os_error(), and it is the onlyrenameat2occurrence in heliopause. #79 is the only candidate fix for the blob path. - main restructured the conversion module under the PR:
unpack_selectedis now a wrapper overunpack_with(source, output, selected, &StartupProgress::silent())(main helios/src/core/conversion.rs:300-310) — precisely the content conflict yatesdr reports againstc8d8b672. main'sunpack_withalso rechecks the destination late (after verification) and relies onrename_noreplaceat main conversion.rs:324. - Line numbers shifted: main's helios/src/core/cache.rs has
export_entryat :2796 andcommit_standaloneat :3669, versus :2350/:3117 at PR head — the PR is a month behind many Helios commits (e.g. #1255d395de62026-11-22 and #3934d7b362d2026-11-22, both touching core/cache.rs; #431052fbdf52026-11-24 touching heliopause/src/export/binding.rs). - Recent area work by others: heliopause/src — Luke Alonso (55 commits/180d), Martin Vit (10), Jason Cook (5); helios/src — Luke Alonso (207), Martin Vit (45), yatesdr (43); tests/preparation — Luke Alonso (199), Martin Vit (31), jasonc (23). Luke Alonso authored the surrounding export/publication architecture (14a6e273 "Move runtime package export and publication into Heliopause", a44bda51 "Implement signed payload packages and a unified Flare model cache", a73ae7d8 "Retire legacy package writers and report export phases") and has not commented on #79. Commits of 2026-11-22..25 include #507 (worker counters/dashboard), #498 (PCIe D2H tails), #470/#473 (Engram/KV), #430/#431 (persistent workers), 27716185 "Deprecate RebuildManifest…" — none about publication rename semantics, so the PR builds on the architecture but conflicts with the conversion restructure and the shifted cache.rs.
ringis used by the probe (ring::rand::SystemRandom, cache.rs:3638) but is already a dependency under theruntime-corefeature (helios/Cargo.toml:21,42;pub mod coregated at helios/src/lib.rs:22-23) — no new dependency, but a CSPRNG call plus mkdir/rmdir round trip per publication.
5. People
- efegokdemir — GitHub association with the repository: NONE; no Discord handle given. 0 merged PRs; one other open PR in 180 days: #147 "fix(orbit): preserve the prepared model cache during eviction" (open 2026-10-30, labels area:caching/area:orbit/bug/priority:P1). #147 was also reviewed by yatesdr with CHANGES_REQUESTED on 2026-11-18, and also flagged for description-vs-branch mismatch, missing Signed-off-by, and a merge commit instead of a rebase — the same pattern as #79, suggesting a process/experience gap rather than a code-quality signal. original-el8 also gave detailed help-style comments on #147.
- yatesdr — the only formal reviewer; second most active Helios committer in the window (43 commits) with merged PRs of his own (#273/#274/#275). Reviewed 2026-11-18: CHANGES_REQUESTED, and said the blob fallback "is sound: hard-link publication already has precedent (helios/src/core/cache.rs:2583, :3030), and EEXIST keeps the no-clobber guarantee."
- original-el8 — charter-named priority contributor; two review-style comments (2026-10-26, 2026-11-13). The first found the second failing rename after blob commit; the second verified a clean merge into main 5fd4070d. The 2026-11-13 mergeability-audit comment also appears on #147 (same day), i.e. a systematic audit rather than engagement with this PR alone.
- mark-yong (CONTRIBUTOR) — reported #54 with a precise root-cause analysis and two concrete proposals; has not commented on the PR.
- Area owners who have not engaged: Luke Alonso (207 helios commits, author of the export/publication architecture), Martin Vit, Jason Cook.
6. Community
Three discussion entries in total, no reactions, no approvals, no other participants.
- original-el8, 2026-10-26 12:35 — "The blob-install fallback is correct, but it does not fully fix #54." Default DIRECTORY export reaches a second no-replace rename after the blob commit: heliopause/src/export/package.rs:982 (not opened) calls
root.export_entry(&committed, path)→ helios/src/package/cache.rs:2377 (not opened)rename_noreplace, while helios/src/package/cache.rs:3559 (not opened) is still a rawrenameat2(..., RENAME_NOREPLACE)with no fallback, so on mergerfs the export merely moves from "Scan and copy reachable storage" to "Commit package" and fails again. Same pattern at cache.rs:3145 (commit_standalone), helios/src/package/export.rs:743 (not opened), helios/src/package/conversion.rs:312 (not opened). Directories cannot use the hard-link fallback; the comment proposes either a directory-specific non-atomic fallback (check destination, thenfs::rename) or a preflight rejecting filesystems without RENAME_NOREPLACE before preparation. It also asks for "Fixes #54" to become "Partially fixes" unless those paths are covered. A minor point at the time: the fallback returnedremove_file(temporary)?after a successful link, so an unlink failure was reported as an error even though the destination was installed; the caller (blob.rs:210-218) already removed the temp and tolerated NotFound. This minor point is the origin of commit30ccc0de. - original-el8, 2026-11-13 18:41 — head
06b9011merges cleanly into main5fd4070d; the earlier model_core.py conflict is resolved; still the candidate fix for #54's unsupported-no-replace path. Explicitly: "Clean mergeability is not a filesystem-correctness approval" — publication must still refuse an existing destination and preserve cleanup/concurrency guarantees; no filesystem regression suite rerun. - yatesdr, 2026-11-18 22:39 — REVIEW, CHANGES_REQUESTED. Verdict: "The blob fallback fixes the install failure in #54, but this can't merge as written: it conflicts with main, the directory preflight it adds mostly never runs, and the description no longer matches the branch." Blocking: (1) conflict in helios/src/core/conversion.rs against main
c8d8b672viagit merge-tree --write-tree, because main turnedunpack_selectedinto a wrapper overunpack_with, so the check at conversion.rs:245 must move — rebase required (this contradicts original-el8's 11-13 clean-merge claim; main moved in between); (2) the directory preflight does not run fromignition export(serve.py:371 passespath=None), the cache probes run only after staging has started so they change error text but do not fail early,helios/src/core/export.rs:742andhelios/src/core/conversion/edit.rs:250(not opened) still publish unguarded, andcapture_with_owners(binding.rs:97) exists only to host the binding check — "keep ONE check where a directory is actually published and drop the rest"; (3) description does not match the branch, says the temporary is removed (30ccc0de moved it), says "Fixes #54" although directory publication on mergerfs still fails — rewrite per AGENTS.md "Required PR descriptions", use "Partially fixes #54". Should fix: (4) inconsistent unsupported-error sets — fallback EINVAL|ENOTSUP (archive.rs:479) vs probe EINVAL|ENOTSUP|ENOSYS (cache.rs:3687); (5) tests/preparation/test_directory_preflight.py:28-31 replacesflare_heliopause,torch,torch.distributedinsys.modules, so it checks call order not behavior, and therenameat2branch ofinstall_blobhas no test; (6) fold17a4aa76and30ccc0deinto the commits they repair, rebase instead of merging main (06b9011a), and add Signed-off-by to989f013b,2c57bfa8,17a4aa76,30ccc0deper CONTRIBUTING.md (not opened); (7) document the new no-replace requirement next to the same-filesystem rule at docs/multi-host.md:275.
Engagement is low relative to the change's reach: the reporter of the underlying bug has not weighed in, the area owners have not, there are no reactions, and the only formal review blocks.
7. Project fit
- Charter, root cause: "Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)." The blob fallback does address the blob path's root cause by switching to the documented hard-link publication. The directory half instead turns an unexplained EINVAL into an explicit reject-early error, which is consistent with the charter's preference for explicitness and with issue #54's own option 2 — but it does not make the operation succeed.
- Charter, smallest footprint / right place: "Solve the right problem in the right place… Look for the smallest footprint in shared code." The reviewer's blocking item 2 (five mostly dead preflight sites, a binding refactor kept alive only to host one) is a direct objection on this ground.
- Charter, PR descriptions: "Expect four parts: why the change is needed, what changed, the claimed result, and the evidence backing it." The description has why and what (partially), and weak claims/evidence. AGENTS.md:67-101 defines the required structure yatesdr cites.
- Charter, priority contributors: "@voipmonitor, @original-el8, @lukealonso carry extra weight." efegokdemir is not among them and competes for the same files with #394 by voipmonitor.
- Documentation the change contradicts or should update: docs/multi-host.md:265-278 describes
ignition exportpublishing a directory core and payloads hardlinked to content-addressed objects, with "Output and core cache must be on the same filesystem for hardlinks" — a mergerfs package cache is a documented configuration for which nothing warns that rename semantics matter. docs/cli-design.md:1740 recordspaths.package_cacheas an accepted alias ofpaths.core_cache, so the reporter's setup is exactly the documented path. docs/package-format-design.md:638 (not opened) / core-format-design.md:692-704 promise explicit preflight/export errors for filesystem limits, which the probe partly delivers but which the PR does not document. - Labels treat it as a genuine P2 bug in caching/packaging, matching #54's labels — the project's own triage agrees the problem is real.
8. Claims and evidence
| claim | evidence | verdict |
|---|---|---|
"On Linux, fall back to hard-link publication when renameat2(RENAME_NOREPLACE) returns EINVAL or ENOTSUP" |
archive.rs:471-486, fs::hard_link(temporary, destination)?, EEXIST not in the set |
True, blob path only. Caveat the description omits: hard_link needs the temp and destination on one filesystem (true for install_blob's callers, which stage beside the blob root); on filesystems refusing hard links (some FUSE/mergerfs settings) hard_link returns EPERM/EXDEV and surfaces, with no fallback of last resort |
| "The link installs the immutable blob atomically without replacing an existing entry, then the temporary name is removed" | archive.rs:482 comment; blob.rs:216-225 removes and tolerates NotFound | Half true / stale — removal is the caller's, since 30ccc0de |
| "Existing destinations still return EEXIST; other rename errors are preserved" | tests unsupported_noreplace_rename_does_not_replace_an_existing_blob (asserts AlreadyExists and surviving bytes), other_rename_errors_are_preserved_without_installing_the_blob; blob.rs:204-211 converts AlreadyExists into blob reuse (reopen and verify identity) |
True; end-to-end EEXIST lands in the existing reuse path, and two racing writers yield one EEXIST with no clobber |
| "Tests cover both unsupported errors, existing destinations and unrelated rename failures. The focused helper harness passed 3 tests." | 5 archive tests (…installs_blob_with_a_hard_link, …leaves_temporary_cleanup_to_the_caller, …does_not_replace_an_existing_blob, other_rename_errors_are_preserved_without_installing_the_blob, …preserves_hard_link_errors) + 3 cache tests (probe cleans up / rejects unsupported / does not reserve the destination) + 3 python tests |
Understated and partly hollow: no test runs the real renameat2 branch (reviewer item 5); the python file stubs flare_heliopause/torch/torch.distributed (test_directory_preflight.py:26-31), so only its Linux-only third test (test_native_directory_preflight_preserves_existing_output) touches real code |
| "The Heliopause Cargo test could not compile on macOS because unchanged Helios code uses Linux-only APIs, and mergerfs was not available for a live reproduction." | no Linux CI for heliopause; no mergerfs run anywhere in the thread; original-el8 "No filesystem regression suite was rerun" | Reasonable but means the fix is unverified — yatesdr's endorsement of the fallback is a code-review judgement, not a filesystem test |
| Implicit: directory exports are checked before preparation | see §1/§9 | Not supported — 2 of 6 sites can never fire, 3 fire after the ~20-minute capture, 1 (convert) fires early |
| original-el8 2026-11-13: "head 06b9011a merges cleanly into main 5fd4070d" | contradicted by yatesdr 2026-11-18 (conflict vs c8d8b672) |
Superseded — main advanced; head is now well behind |
9. Reach
- Who benefits: operators whose
[paths].package_cache(= alias ofcore_cache, docs/cli-design.md:1740) lives on mergerfs or another FUSE/exotic filesystem without RENAME_NOREPLACE. Todayignition exportfails after ~20 minutes (issue #54); with this PR the blob commit ("Scan and copy reachable storage") succeeds and the export advances until the final directory commit, which now fails with a message naming the parent directory. - Everyone else: no behavior change on the blob path unless their filesystem rejects the rename. The probe adds one CSPRNG name, two mkdirs, two renames and a
remove_dir_allper guarded directory publication (core.rs:708, cache.rs:2358/3125, conversion.rs:245, binding.rs:35), and new early failure modes: an unwritable destination parent now fails with the parent's error (EACCES preserved, not masked — the cache test asserts cleanup on failure). On non-Linux the probe is a no-op returning Ok, so macOS/Windows export semantics are untouched; the Windows branch ofinstall_blob(MoveFileExW) is unchanged. - New requirement / compatibility statement: directory no-replace rename support becomes a hard requirement of directory export on Linux. A filesystem that supports hard links but not no-replace renames would previously have been a candidate for a directories-only fallback; the PR refuses it instead. That is a documented-contract change the PR does not document.
- API surface: new public
helios_core::core::cache::preflight_directory_publication, newflare_heliopause.export_preflight_directory, newcapture_with_ownershelper. No existing signature changes.publish_payloadgains an early-error branch;Staging::commit_standalonereorders synchronize after the destination/preflight checks (behavior change for any external caller; none in-tree). - Configuration / defaults / dependencies: none changed.
ringandlibcare pre-existing (helios/Cargo.toml:21,42; heliopause/Cargo.toml:25,33); no Cargo.toml/Cargo.lock edits. - Documentation: none touched, although a new filesystem requirement and new error text are introduced (reviewer item 7 asks for docs/multi-host.md:275).
- Deployment / compatibility: no core-format, container, manifest or migration change; cores produced on any filesystem stay readable.
- CI/release: no CI job builds heliopause or runs the pytest suites, so the new tests run only where a human runs them.
10. Process
- State: open, not draft,
triage:review, priority:P2. Opened 2026-10-25; last touched 2026-11-18 by the CHANGES_REQUESTED review — ~30 days from open to review, 6 days from review to now. - Review: one CHANGES_REQUESTED from yatesdr (blocking); no approvals.
- CI on head
06b9011: none. Repo workflows: helios-lifecycle.yml (not opened) (cargo kani on helios), native-serving.yml (not opened) (cargo test for eos/selene/selene-manager/helios/flare-cli/flare), release.yml. Only the helios crate portion could ever be built. - Mergeability: clean per original-el8 at main
5fd4070d(2026-11-13); content conflict in helios/src/core/conversion.rs per yatesdr vsc8d8b672(2026-11-18). Head is behind main's later work on cache.rs (#125, #393) and binding.rs (#431). - Open hygiene items, all verified still open in the diff: stale description without "Partially fixes #54"; fallback EINVAL|ENOTSUP vs probe EINVAL|ENOTSUP|ENOSYS; tests that do not exercise real code; fixups
17a4aa76/30ccc0denot folded; missing Signed-off-by on four commits; merge commit06b9011ainstead of a rebase; no docs change. Nothing in the thread shows any of these being addressed after 2026-11-18, and the head commit is the very merge the reviewer objected to. - Unaddressed paths: helios/src/core/export.rs:735
publish_staged_directoryand helios/src/core/conversion/edit.rs:250 (not opened) still publish directories with a bare no-replace rename.
11. Smaller verified details
- The fallback is
#[cfg(any(target_os = "linux", test))], so tests run anywhere while the production path stays Linux-only. - EEXIST end-to-end: heliopause/src/export/blob.rs:204-211 catches AlreadyExists from
install_bloband treats it as reuse — reopens the pinned blob and verifies identity. - Probe naming/cleanup:
.flare-rename-probe-<32 hex>in the destination's parent (not inside the destination), mode 0o700, retried on collision, always removed withfs::remove_dir_allincluding on failure; tests assert the temp path is left empty. - Error text an operator will see:
filesystem at <parent> does not support atomic no-replace directory publication: <inner error>(cache.rs) anddirectory export preflight: <…>(conversion.rs:245-246). This is a strict improvement over issue #54's bareos error 22, which is the argument for the preflight half even where it fires late. install_blobis the onlyrenameat2user in heliopause on both main and head, so the PR covers the whole in-crate occurrence of the problem.- The PR's own diff reproduces an existing oddity in
publish_payload: the destination-exists check appears twice (core.rs:686-688 and :695-700,if !cache_only && path.exists()with two different messages), and the new preflight lands between them, after the first check and beforecreate_dir_all(parent). - Both CLI export routes are cache-only:
ignition/cli/serve.py:371passesNone,_export_hosts(serve.py:240) callsprepared.export(None, …), andhost_ranks.PreparedRankGroup.export(ignition/preparation/host_ranks.py:440, :501) derivescache_only = path is None. Hence the python preflight added at model_core.py:41-42 cannot fire from either route. export_captureis called from ignition/preparation/runtime_core.py:140; producers setpathto the rank staging path (never empty) and passsources=True(model_core.py:51-52), whileRuntimeCore.writedefaultssources=Falsebut is never called from ignition — so the binding check's condition!sources && !path.is_empty()is effectively unsatisfiable.
Open questions / not found
- No filesystem-level verification anywhere. Nobody has run the fallback against mergerfs, and there is no CI that would. Whether
fs::hard_linksucceeds on the reporter's exact mergerfs configuration (link support depends on mergerfs settings) is unconfirmed — only asserted as "the norm elsewhere in the tree". - Whether the preflight half is wanted at all. yatesdr says keep one check and drop the rest; original-el8 offered a non-atomic directory fallback as an alternative. Neither the PR nor the issue resolves which. #512 may be superseding this ground.
17a4aa76appears in the reviewer's sign-off/fold list but not in the filtered branch log for the head; its content could not be recovered from the available history.- What
#394will do topublish_payload(and thus to the new preflight in core.rs) is not knowable from its description alone; the overlap is on the same function and files. - Interaction with main's
unpack_withrestructure (the late destination re-check at main conversion.rs:324) — whether main already changed the convert-time behavior the PR preflights at conversion.rs:245 was not confirmed beyond the wrapper relationship. - No Discord handle and no roadmap or docs entry specific to filesystem-compatibility support was found; docs/multi-host.md is the only user-facing statement in the area.