#1 [high] The change: what #79 does and its real size/scope
PR #79 "fix(heliopause): fall back when no-replace rename is unsupported", author efegokdemir, opened 2026-10-25, head 06b9011, base main, +468/−22 across 7 files (PR #79).
What the description claims: ONLY a Linux fallback in blob install — when renameat2(RENAME_NOREPLACE) returns EINVAL or ENOTSUP, publish via hard_link(temporary, destination); existing destination still EEXIST; other errors preserved.
What the diff actually does (verified via pr_diff):
- heliopause/src/export/archive.rs (+139/−1): new
install_blob_after_rename_error()(cfg linux or test) called frominstall_blob; on EINVAL/ENOTSUP doesfs::hard_linkthenOk(())(NO unlink — comment "BlobStore::commit owns temporary cleanup after publication"). Plus 5 new unit tests. - helios/src/core/cache.rs (+163/−1): NEW public
preflight_directory_publication(destination)— creates a random.flare-rename-probe-<hex>dir in the destination parent, creates source/target subdirs, assertsrename_noreplace(source,target)fails EEXIST, deletes target, re-renames, then removes the probe. Maps EINVAL/ENOTSUP/ENOSYS to io::ErrorKind::Unsupported with message "filesystem at does not support atomic no-replace directory publication". Called fromRoot::export_entry(cache.rs:2358 region) andStaging::commit_standalone(also movedsynchronizeafter the preflight). Plus 3 tests. - heliopause/src/export/core.rs (+3):
publish_payloadpreflights when!cache_only && form == "directory". - heliopause/src/export/binding.rs (+91/−20): refactors
export_captureintocapture_with_owners(...)helper (extracted owner-lease/drain logic) and adds a preflight inside the capture closure when!request.sources && !request.path.is_empty(); new pyfunctionexport_preflight_directory. - helios/src/core/conversion.rs (+2): preflight in
unpack_selectedbefore unpacking. - ignition/preparation/model_core.py (+2):
if not cache_only and form == 'directory': flare_heliopause.export_preflight_directory(str(path)). - tests/preparation/test_directory_preflight.py (+68, NEW file): python tests for the preflight call paths.
So the PR is much bigger than its title/description: the blob fallback is ~40 lines of logic; the rest is a new directory-preflight API surface (new public function, new pyfunction, new binding refactor, new python test file) that the description never mentions.
#2 [high] The why: issue #54, its reproduction and cost
Issue #54 (open, by mark-yong CONTRIBUTOR, opened 2026-10-23 12:31, updated 2026-11-08): "Export fails with EINVAL when the package cache is on mergerfs (renameat2 RENAME_NOREPLACE unsupported)". Labels area:caching, area:packaging, bug, model:gemma4, priority:P2, triage:review.
ignition exportfails at "[ FAILED ] Scan and copy reachable storage" with bareRuntimeError: Invalid argument (os error 22)— error names neither file nor cause.- Cause per reporter's
strace -f -Z:install_blobat heliopause/src/export/archive.rs:429 (checked at bce032c0) does rawlibc::renameat2(AT_FDCWD, source, AT_FDCWD, target, RENAME_NOREPLACE)and returnslast_os_error(); mergerfs returns EINVAL for RENAME_NOREPLACE. - Cost: failure lands AFTER tuning/compilation/capture, ~20 minutes per attempt for Gemma 4 E4B cold kernel cache.
- Minimal ctypes repro included in the issue; direct I/O and io_uring work on the same mount; moving
--outputalone doesn't help since blobs commit into the package cache and output must share its filesystem. - Reporter notes hard-link publication is the norm elsewhere in the tree, listing helios/src/package/cache.rs:2581,:2606,:3029; flare/src/package_cache.rs:475,:496; heliopause/src/export/blob.rs:256; heliopause/src/export/package.rs:932,:1012; heliopause/src/export/transfer.rs:1021; heliopause/src/export/protection.rs:335.
install_blobis "the outlier". - Proposed changes: (1) link()+unlink() fallback on EINVAL/ENOTSUP keeping EEXIST; (2) PREFLIGHT before preparation starts, and document the requirement next to the same-filesystem rule at docs/multi-host.md:243 (says nothing about rename support), citing docs/package-format-design.md:638 which promises explicit preflight/export errors for filesystem limits.
- Workaround: put package_cache and --output on ZFS or ext4.
- Environment: Proxmox LXC, /models mergerfs over ZFS datasets, kernel 6.17.9-1-pve, upstream bce032c0.
- Issue discussion list shows 0 comments.
- Referred to by: #79 (fixes), #109 (merged), #110 (merged) — mentions only.
Note both of the reporter's proposed changes ended up partly in the PR: option 1 as the blob fallback, option 2 as the directory preflight.
#3 [high] Community: discussion on #79 (original-el8 twice, yatesdr review)
Three discussion entries on #79 (pr_comments / read_item 79):
-
2026-10-26 12:35, original-el8: "The blob-install fallback is correct, but it does not fully fix #54." Default DIRECTORY export reaches a SECOND no-replace rename after blob commit:
- heliopause/src/export/package.rs:982 calls
root.export_entry(&committed, path); - helios/src/package/cache.rs:2377 calls
rename_noreplace; - helios/src/package/cache.rs:3559 is still a raw
renameat2(..., RENAME_NOREPLACE)with no fallback → EINVAL on mergerfs, so export moves from "Scan and copy reachable storage" to "Commit package" and still fails. Same pattern at cache.rs:3145 (commit_standalone), helios/src/package/export.rs:743, helios/src/package/conversion.rs:312. Directories can't use the hard-link fallback; suggests either a directory-specific fallback (check destination then fs::rename, non-atomic) or a PREFLIGHT rejecting filesystems without RENAME_NOREPLACE before preparation. "Fixes #54" should become "Partially fixes" unless those paths are covered. Minor at that time:install_blob_after_rename_errorreturnedremove_file(temporary)?after a successful link → unlink failure reported as error even though destination installed; caller blob.rs:210-218 already removes temp and tolerates NotFound. (This was addressed later: current code has no unlink, comment says BlobStore::commit owns cleanup.)
- heliopause/src/export/package.rs:982 calls
-
2026-11-13 18:41, original-el8: head 06b9011 merges cleanly into main 5fd4070d; earlier model_core.py conflict resolved. Still the candidate fix for #54's unsupported no-replace rename path. "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.
-
2026-11-18 22:39, yatesdr — REVIEW: CHANGES_REQUESTED (the only formal review; blocks merge). Full text summarized in a separate note.
#4 [high] Community: yatesdr CHANGES_REQUESTED review items on #79
yatesdr review on #79, 2026-11-18 22:39, state CHANGES_REQUESTED (read_item 79). Verdict framing: "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
- Conflicts with main.
git merge-tree --write-tree HEAD origin/mainreports a content conflict in helios/src/core/conversion.rs against main at c8d8b672; main turnedunpack_selectedinto a wrapper overunpack_with, so the check at conversion.rs:245 has to move → rebase required. (NOTE: this contradicts the 2026-11-13 comment saying head 06b9011 merges cleanly into main 5fd4070d — the mergeability verdict flipped between 11-13 and 11-18 because main moved.) - The directory preflight does not run from
ignition export: the only production call ofexport_corepassespath=None(ignition/cli/serve.py:371), so checks at ignition/preparation/model_core.py:42 and heliopause/src/export/binding.rs:35 never fire from the CLI. Probes at helios/src/core/cache.rs:2358 and :3125 run only after staging has started, so they change error text but do not fail early. helios/src/core/export.rs:742 and helios/src/core/conversion/edit.rs:250 still publish with a plain no-replace rename and no check. Recommendation: keep ONE check where a directory is actually published and drop the rest, includingcapture_with_owners(binding.rs:97) which exists only to host the binding check. - Description does not match the branch: covers only the first commit, says "the temporary name is removed" (30ccc0de moved that to the caller), and says "Fixes #54" although directory publication on mergerfs still fails (now with a clear error). Rewrite per AGENTS.md "Required PR descriptions"; use "Partially fixes #54".
SHOULD FIX
4. Inconsistent unsupported-error sets: fallback treats EINVAL and ENOTSUP (archive.rs:479); probe also treats ENOSYS (cache.rs:3687). Use one set.
5. tests/preparation/test_directory_preflight.py:28-31 replaces flare_heliopause, torch and torch.distributed in sys.modules, so it checks call order, not behavior. The renameat2 branch of install_blob has no test.
6. Fold 17a4aa76 and 30ccc0de into the commits they repair; rebase instead of merging main (06b9011a). CONTRIBUTING.md requires Signed-off-by on every commit; 989f013b, 2c57bfa8, 17a4aa76, 30ccc0de lack it.
7. Directory export now requires no-replace rename support — state that next to the same-filesystem rule at docs/multi-host.md:275.
POSITIVE: "The blob fallback itself is sound: hard-link publication already has precedent (helios/src/core/cache.rs:2583, :3030), and EEXIST keeps the no-clobber guarantee."
Implication: items 1, 3, 4, 5, 6 look unaddressed by head 06b9011 (06b9011 is the merge commit the reviewer complained about; last update 2026-11-18 same day). Item 4 worth checking against current diff: fallback uses EINVAL|ENOTSUP only; probe maps EINVAL|ENOTSUP|ENOSYS → confirmed still inconsistent in the diff (result 5 and 4).
#5 [high] The change: preflight call sites — reachability and timing (verified)
Verified placement of the 5 preflight call sites at PR head (search_code results), and whether each can fire from ignition export:
- ignition/preparation/model_core.py:41-42 —
if not cache_only and form == 'directory'.cache_only = path is None(model_core.py:27), so it fires only when path is not None. The ONLY production caller ofexport_coreis ignition/cli/serve.py:371 which passespath=None(verified by search:export_core(appears only there and at its definition). ⇒ dead from the CLI. Reviewer yatesdr's item 2 corroborated. - heliopause/src/export/binding.rs:34-36 —
if !request.sources && !request.path.is_empty().export_captureis called from ignition/preparation/runtime_core.py:140; both producers set path = the rank staging path (never empty) andsources=— export_model passessources=True(model_core.py:51-52), RuntimeCore.write defaults sources=False but is not called from ignition (search for.write(in ignition finds nothing). In the only flow that would reach it with sources=False,request.pathis empty. ⇒ effectively dead, as the reviewer said. - helios/src/core/cache.rs:2358
Root::export_entry— called from heliopause/src/export/core.rs:977 and :990 (the standalone directory/packed publish insidepublish_payload), which runs LAST, after capture, in the "Commit core" phase. So on mergerfs the export still fails after the ~20 min capture, just with a new message ("filesystem at ... does not support atomic no-replace directory publication"). - helios/src/core/cache.rs:3125
Staging::commit_standalone— no production caller in the tree (only helios tests at cache.rs:4441/4447/4557 call it; no call in heliopause, flare or flare-cli). ⇒ dead code path preflighted. - heliopause/src/export/core.rs:708-710 inside
publish_payload(!cache_only && form == "directory") — fires immediately before the same publication as (3), i.e. also after capture. - helios/src/core/conversion.rs:245 in
unpack_selected—ignition convert→ payload conversion path (ignition/cli/publishing.py); fires early there, and this is the one place the preflight runs before work.
Additionally: helios/src/core/export.rs:735 publish_staged_directory (plain no-replace rename, called from heliopause/src/export/core.rs:1070 for the no-cache directory export) and helios/src/core/conversion/edit.rs:250 still publish with no preflight — the reviewer's item 2 names both. So of 6 preflight insertions, 1 can fire from the CLI export flow (conversion), 3 fire only after the expensive capture, and 2 can never fire.
#6 [high] Recent activity / related work: main moved under the PR; #54 still unfixed on main
Verified facts about main versus the PR head:
- main's heliopause/src/export/archive.rs:257-291
install_blobstill has the rawlibc::renameat2(..., RENAME_NOREPLACE)returninglast_os_error()with no fallback — issue #54 is UNFIXED on main today; nothing else in the tree provides a fallback (search forrenameat2in heliopause/src/main returns only this line). So #79 is the only candidate fix for the blob path. - main restructured the conversion module:
unpack_selectedis nowunpack_with(source, output, selected, &StartupProgress::silent())at helios/src/core/conversion.rs:300-310 (main), which is exactly the conflict yatesdr reported against c8d8b672. main's ownunpack_withre-checks the destination only late (after verification) and relies onrename_noreplaceat main conversion.rs:324. - main's helios/src/core/cache.rs has shifted line numbers versus the PR (main
export_entryat :2796,commit_standaloneat :3669; PR at :2350 and :3117), consistent with the PR being a month behind main (many Helios commits merged since 2026-10-25; e.g. 5d395de6 #125 on 2026-11-22, 4d7b362d #393 on 2026-11-22 both touched core/cache.rs). - The preflight probe uses
ring::rand::SystemRandominside helios/src/core/cache.rs (PR :3638); helios pullsringonly under theruntime-corefeature (helios/Cargo.toml:21,42), andpub mod coreis gated onruntime-core(helios/src/lib.rs:22-23) — so no new dependency, but the probe does add a CSPRNG call plus a mkdir/rmdir round trip per publication. Staging::commit_standalonealso reorders work in the PR:synchronize(&self.directory)moved from before the destination check to after the preflight (PR diff helios/src/core/cache.rs:3114-3126) — a behavior change not mentioned in the description or review.- Pre-PR behaviour for the directory paths on mergerfs: the raw EINVAL surfaced with no path context (that is issue #54's "Invalid argument (os error 22)"); post-PR it surfaces as an io::ErrorKind::Unsupported message naming the parent directory. Still a failure, hence "partially fixes" is accurate.
#7 [high] Process: branch commits, sign-off, claimed vs actual tests, CI coverage
PR #79 commits (search_history on pr/79, filtered): only 4 commits authored by Efe, interleaved with main history because 06b9011 is a MERGE of main into the branch (yatesdr item 6 says "rebase instead of merging main (06b9011a)"):
- 989f013b 2026-10-25 "fix(heliopause): fall back on unsupported no-replace rename" — the original 1-file fallback.
- 2c57bfa8 2026-11-03 "fix(export): preflight atomic directory publication" — adds the whole preflight subsystem (undeclared in the description).
- 30ccc0de 2026-11-06 "fix(heliopause): leave blob temporary cleanup to its caller" — removed the post-link unlink (answering original-el8's 2026-10-26 minor point).
- 06b9011a 2026-11-13 "fix(heliopause): preserve publication preflight across core renaming" — the merge commit / rebase fix for conversion.rs, which yatesdr says broke again against c8d8b672.
yatesdr asks that 17a4aa76 and 30ccc0de be folded into the commits they repair, and that 989f013b, 2c57bfa8, 17a4aa76 and 30ccc0de gain
Signed-off-byper CONTRIBUTING.md. (17a4aa76 does not appear in the filtered log above; it is presumably an earlier fixup commit on the branch.)
The PR description claims "The focused helper harness passed 3 tests" but the diff adds 5 new tests in heliopause/src/export/archive.rs (unsupported_noreplace_rename_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) plus 3 in helios/src/core/cache.rs (preflight cleans probe / rejects unsupported / does not reserve destination) and 3 python tests. So the evidence sentence describes an earlier state of the branch, not the head.
Also: no CI checks on the head commit (orientation packet) and the repository's GitHub workflows do not build or test heliopause or pytest suites: .github/workflows has only helios-lifecycle.yml (cargo kani on helios), native-serving.yml (cargo test for eos/selene/selene-manager/helios/flare-cli/flare), release.yml. No workflow mentions heliopause or tests/preparation. ⇒ the Heliopause and python changes in this PR get no automated CI at all; only the helios crate part could be built by native-serving.yml, and the head has no checks.
#8 [high] People: author standing, reviewers, area owners, engagement level
Community / people facts gathered for #79:
Author: efegokdemir, GitHub association with NVIDIA/hyperflare-inference "NONE" (not a member/collaborator). Only one other contribution 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), also reviewed by yatesdr with CHANGES_REQUESTED (2026-11-18) and also flagged for description-vs-branch mismatch, sign-off gaps, and non-rebased merge commit. Both PRs share the same reviewer complaint pattern (description stale, Signed-off-by missing, merge instead of rebase) — suggests a process/experience gap rather than a code-quality signal. #147 also got detailed help-style comments from original-el8. Neither #79 nor #147 has any commit on main; the author has 0 merged PRs in this repository.
Reviewers/commenters so far: original-el8 (two review-ish comments, 2026-10-26 and 2026-11-13 — the 2026-11-13 one also appears on #147, i.e. same-day mergeability audit script/prose), yatesdr (the only formal review, CHANGES_REQUESTED 2026-11-18). No reactions, no other comments; 3 discussion entries total. Issue #54 has 0 comments but was reported by mark-yong (CONTRIBUTOR), and the issue explains real user pain (20-minute failed exports on mergerfs/ZFS Proxmox host).
People who own these areas (orientation packet, 180-day commit counts): heliopause/src — Luke Alonso 55, 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. yatesdr (the requesting-changes reviewer) is the second most active Helios committer and merged several of his own PRs in this period (#273/#274/#275). Luke Alonso authored the surrounding export/publication architecture (commit 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.
#9 [high] Related work: #394 and #512 overlap the same files; untouched publication paths; no doc changes
Related work / overlap for #79 (each verified by search or item read):
- Issue #54 (open) is the only item #79 claims to fix; related_items(79) shows no other referrer except #109 and #110 (merged) which merely mention "rename-"/mergerfs-adjacent terms in passing, per issue #54's "Referred to by" list.
- Items touching the exact same files (related_items(79)):
- #394 (open, voipmonitor) "Assemble temporary core payloads in the rank export workspace" — 3 files in common: heliopause/src/export/binding.rs, heliopause/src/export/core.rs, ignition/preparation/model_core.py, and it also rewrites
publish_payload's staging and standalone publication ("Standalone directory publication still uses a destination-local atomic no-replace rename"). Direct overlap and a merge conflict candidate on binding.rs (which #394 rewrites by +111/−56) and model_core.py. #394 is a COLLABORATOR PR with benchmarks; it is the newer/stronger contender in the same area. - #512 (open, draft, FujitsuPolycom) also modifies heliopause/src/export/binding.rs (+72/−13) and adds
flare_heliopause.export_validate_preparation_manifest— a preflight of the same character (validate before GPU work), landing in the same binding and in ignition/cli/serve.py, exactly where yatesdr says #79's preflight should live. It is the "preflight before preparation" idea done in the CLI layer. - #314 (open, schopde-nvidia) "Add signed tensor execution for diffusion" — 3 files in common but unrelated subject (diffusion); #157, #404, #431, #120, #393, #125, #291, #223, #297, #499, #508, #465/#432/#410/#408/#427/#409 (original-el8) share one or two files; none is about rename/publication semantics.
- #394 (open, voipmonitor) "Assemble temporary core payloads in the rank export workspace" — 3 files in common: heliopause/src/export/binding.rs, heliopause/src/export/core.rs, ignition/preparation/model_core.py, and it also rewrites
- Precedent for hard-link publication cited by the issue and by yatesdr: helios/src/core/cache.rs (main :2583/:3030 per review; heliopause/src/export/blob.rs:263, heliopause/src/export/protection.rs:341, heliopause/src/export/transfer.rs:1062, heliopause/src/export/core.rs:921/1001/1060 for packed files). The fallback therefore matches existing practice rather than inventing a new mechanism.
- The directory-publication rename the reviewer says still fails: helios/src/core/export.rs:735-749
publish_staged_directory(used at heliopause/src/export/core.rs:1070 for the no-configured-cache directory export) and helios/src/core/cache.rsexport_entry(:2350 PR, :2796 main) used at heliopause/src/export/core.rs:977/:990; also helios/src/core/conversion/edit.rs:250 and helios/src/core/conversion.rs:324 (main). Only the last two/three are preflighted by the PR. - Documentation the fix would need to touch but does not: docs/multi-host.md:275-277 states only the same-filesystem rule for hardlinks and says nothing about no-replace rename support (reviewer item 7); docs/core-format-design.md:692-704 states hardlink/same-filesystem and "Filesystem file-size or space limits cause an explicit preflight/export error" but nothing about rename semantics (the requirement issue #54 cites); docs/cli-design.md:1064 "--output refuses an existing destination". The PR touches NO documentation file.
- No competing PR attempts the blob fallback; no other PR references #54.
#11 [high] Claims and evidence: description claims verified against the diff
Claims and evidence table for #79 (verified against the diff and the tree):
CLAIM (description): "On Linux, fall back to hard-link publication when renameat2(RENAME_NOREPLACE) returns EINVAL or ENOTSUP."
— TRUE for the blob path only. archive.rs:471-486: install_blob_after_rename_error, cfg(any(linux, test)); fs::hard_link(temporary, destination)?. EINVAL and ENOTSUP only; EEXIST is NOT in the list, so an existing destination propagates the original EEXIST (test unsupported_noreplace_rename_does_not_replace_an_existing_blob asserts ErrorKind::AlreadyExists and that the existing bytes survive). Other errors propagate unchanged (test other_rename_errors_are_preserved_without_installing_the_blob).
— Caveat the description does not say: hard_link requires the destination's directory and the temporary's directory on the same filesystem (true because install_blob's callers stage beside the blob root). On a filesystem where hard links are unsupported (some FUSE, e.g. certain mergerfs settings), hard_link returns its own error (EPERM/EXDEV) and it surfaces — consistent, but no fallback of last resort.
CLAIM: "The link installs the immutable blob atomically without replacing an existing entry, then the temporary name is removed." — HALF TRUE / STALE: the code does NOT remove the temporary; archive.rs:482 comment "BlobStore::commit owns temporary cleanup after publication", and the caller heliopause/src/export/blob.rs:216-225 removes it and tolerates NotFound. Reviewer item 3 flags exactly this sentence. yatesdr credits commit 30ccc0de with moving the removal to the caller.
CLAIM: "Tests cover both unsupported errors, existing destinations and unrelated rename failures. The focused helper harness passed 3 tests."
— The diff now contains 5 archive tests + 3 helios cache tests + 3 python tests; "3 tests" understates the branch. Evidence still weak: no test runs the real renameat2 branch of install_blob (reviewer item 5), and the python test replaces flare_heliopause/torch/torch.distributed in sys.modules (tests/preparation/test_directory_preflight.py:26-31), so it asserts call order not behavior — only its third test (test_native_directory_preflight_preserves_existing_output, Linux-only) exercises real code.
— REPORTED, NOT VERIFIED by me: description says "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." There is no Linux CI for heliopause (.github/workflows has no heliopause job), and no mergerfs reproduction anywhere in the thread. So the actual EINVAL-on-mergerfs fix is unconfirmed by any run. yatesdr's 2026-11-13 comment says "No filesystem regression suite was rerun for this update", and his 2026-11-18 approval of the blob fallback ("the blob fallback itself is sound") is a code-review judgement, not a filesystem test.
CLAIM (implicit, from adding the preflight): "directory exports are checked before preparation."
— NOT SUPPORTED, see scratchpad entry "preflight call sites": from ignition export the CLI passes path=None, so the python/binding checks never fire; the two helios cache probes run in the "Commit core" phase after capture.
CLAIM (pr_comments by original-el8, 2026-11-13): "head 06b9011a merges cleanly into main 5fd4070d". — CONTRADICTED by yatesdr on 2026-11-18 ("git merge-tree --write-tree HEAD origin/main reports a content conflict in helios/src/core/conversion.rs against main at c8d8b672"). Mergeability flipped as main advanced; head is now a month behind main.
The design decision that remains open (not a claim): the PR answers issue #54's proposal 2 with a probe-based reject-early preflight, but does not change the filesystem contract, add the documented requirement (docs/multi-host.md:275), or make directory export work on mergerfs — the reviewer's "Partially fixes" demand.
#13 [high] Process: review state, mergeability flip, open items, no CI
Process state of #79 (goal: status only, not a verdict):
- Open, NOT draft, labels area:caching, area:packaging, bug, model:gemma4, priority:P2, triage:review. Opened 2026-10-25, last updated 2026-11-18 (the CHANGES_REQUESTED review). 30 days old at last update, 6 days since.
- Review state: changes requested by yatesdr (one formal review, 2026-11-18). 3 discussion entries total (2 from original-el8, 1 review). No approvals, no reactions, no other participants.
- CI on head 06b9011: "no checks" (orientation packet); the repo has no heliopause or pytest workflow at all (.github/workflows: helios-lifecycle.yml = cargo kani on helios; native-serving.yml = cargo test for eos/selene/selene-manager/helios/flare-cli/flare; release.yml). Only the helios crate part of this PR could ever be built by CI.
- Mergeability: original-el8 reported clean at main 5fd4070d (2026-11-13); yatesdr reports a content conflict in helios/src/core/conversion.rs vs main c8d8b672 (2026-11-18). Head is now well behind main (main touched helios/src/core/cache.rs on 2026-11-22 in #125/#393 and heliopause/src/export/binding.rs on 2026-11-24 in #431, both after the head).
- Hygiene items open per the review: description rewrite + "Partially fixes #54" (item 3), unify the unsupported-error set EINVAL/ENOTSUP vs EINVAL/ENOTSUP/ENOSYS (item 4 — verified still inconsistent: archive.rs:479 uses EINVAL|ENOTSUP, cache.rs preflight maps EINVAL|ENOTSUP|ENOSYS), tests that exercise real code (item 5), fold fixups 17a4aa76/30ccc0de and rebase instead of merge commit 06b9011a, add Signed-off-by to 989f013b/2c57bfa8/17a4aa76/30ccc0de (item 6), document the new requirement at docs/multi-host.md:275 (item 7).
- Nothing in the thread shows any of these being addressed after 2026-11-18; the head commit IS the merge the reviewer objected to.
- Unaddressed by anyone in the thread: the PR does not touch helios/src/core/export.rs:735
publish_staged_directory(used at heliopause/src/export/core.rs:1070 for the no-configured-cache directory export) nor helios/src/core/conversion/edit.rs:250 — both still publish directories with a bare no-replace rename (reviewer item 2 named them; the diff confirms no change there).
#10 [medium] Project fit: charter and docs versus what the PR does and omits
Project fit for #79, as facts with citations:
Charter (read_charter): "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 root cause of the blob-path EINVAL by switching to the documented hard-link publication; the directory half instead converts an unexplained EINVAL into an explicit "filesystem ... does not support atomic no-replace directory publication" error (a reject-early preflight), which matches the charter's preference for explicitness and issue #54's own option 2.
Charter also: "Solve the right problem in the right place... Look for the smallest footprint in shared code"; "PR descriptions: Expect four parts: why the change is needed, what changed, the claimed result, and the evidence backing it." #79's description has why/what partially and claims/evidence weakly (see process note), and the review's blocking item 2 ("the directory preflight ... mostly never runs ... keep one check where a directory is actually published, and drop the rest") is a direct "right place / smallest footprint" objection.
Charter: "Respect contributors... Priority contributors (@voipmonitor, @original-el8, @lukealonso) carry extra weight." efegokdemir is not one of these; the PR competes for the same files with #394 by @voipmonitor.
AGENTS.md:67-101 "Required PR descriptions" defines the four-part structure that yatesdr cites when rejecting the description.
docs/multi-host.md:265-278 is the user-facing export story: "ignition export publishes a directory core in the model cache ... payloads are companion files hardlinked to content-addressed objects"; "Output and core cache must be on the same filesystem for hardlinks". A mergerfs package cache is thus a documented-but-uncovered configuration; nothing in the docs warns that rename semantics matter. docs/cli-design.md:1740 records paths.package_cache as an accepted alias of paths.core_cache, so users on the issue's setup hit exactly the documented path.
Labels on #79: area:caching, area:packaging, bug, model:gemma4, priority:P2, triage:review — the repo's own triage considers it a real P2 bug in caching/packaging, matching issue #54's labels.
#12 [medium] Reach: users, operators, API surface, compatibility, CI
Reach of #79:
Who is affected / benefit:
- Operators whose
[paths].package_cache(= alias ofcore_cache, docs/cli-design.md:1740) is on mergerfs or any FUSE/exotic FS without RENAME_NOREPLACE. Today that is a hard failure ofignition exportafter ~20 min for Gemma 4 E4B (issue #54). With this PR the BLOB commit succeeds (the "Scan and copy reachable storage" phase), so the export progresses further; the DIRECTORY publication at the very end still fails, now with an explicit Unsupported message naming the parent directory. - Everyone else: behavior unchanged for the blob path unless their FS rejects RENAME_NOREPLACE. The probe adds one CSPRNG name + mkdir twice + two renames per directory publication (heliopause/src/export/core.rs:708, helios/src/core/cache.rs:2358/3125, helios/src/core/conversion.rs:245, binding.rs:35) — a small per-export cost on the publication path, plus new failure modes: if the destination parent is not writable, the probe now fails earlier with the parent's error (EACCES is preserved and not masked, test
directory_publication_preflight_rejects_unsupported_rename_and_cleans_up); on non-Linux (macOS/Windows) the probe is a no-op returning Ok (cache.rs:3623-3631), so Windows/Mac export semantics are untouched. - Directory no-replace support becomes an explicit REQUIREMENT of directory export on Linux (rather than a silent crash): that is a compatibility statement for the docs (reviewer item 7) that the PR does not write. It also means a filesystem that supports link but not no-replace rename would previously have worked with a directories-only fallback but now is refused — the reviewer's alternative (check destination then fs::rename, non-atomic) was not taken.
Surface / API:
- New public Rust API
helios_core::core::cache::preflight_directory_publication(helios/src/core/cache.rs:3623), new Python-visible functionflare_heliopause.export_preflight_directory(heliopause/src/export/binding.rs:120-128), newcapture_with_ownershelper in the binding. Any consumer of flare_heliopause gets a new symbol; no existing signature changed.publish_payloadgains an early-error branch;Staging::commit_standalonereorders synchronize after the destination/preflight checks (behavior change for any external caller — none in-tree). - No configuration/default/dependency changes: ring and libc already dependencies (helios/Cargo.toml:21,42; heliopause/Cargo.toml:25,33); no new crates, no Cargo.toml/Cargo.lock edits in the diff.
- No documentation changes at all (docs/multi-host.md, docs/core-format-design.md, docs/cli-design.md untouched), although the change introduces a new filesystem requirement and new error text.
- Deployment/format compatibility: no core format, container, or manifest change; cores produced on any FS remain readable. Nothing to migrate.
- CI/release: heliopause and the pytest suites have no CI job (.github/workflows = helios-lifecycle.yml, native-serving.yml, release.yml), so the new tests run only where a human runs them.
#14 [medium] Smaller verified details: probe design, error text, reuse path, #512 as the "right place"
Smaller details worth having in the file:
- The new blob fallback is
#[cfg(any(target_os = "linux", test))](heliopause/src/export/archive.rs:471), so the tests run on any host while the production path stays Linux-only;install_blob's Windows branch (MoveFileExW) is unchanged and Windows semantics untouched. - EEXIST handling end-to-end: heliopause/src/export/blob.rs:204-211 catches an AlreadyExists error from install_blob and treats it as reuse (reopens the pinned blob and verifies identity), so the fallback's EEXIST propagation lands in the existing "reuse the already-published object" path, not an error. Concurrency: two writers racing produce one EEXIST; no clobber.
- The probe's name is
.flare-rename-probe-<32 hex>in the destination's PARENT directory (not inside the destination), created with mode 0o700, retried on collision, and always removed (fs::remove_dir_all) including on failure; tests assert tmp_path is left empty. - The probe asserts the FS actually honours no-replace by first requiring the rename to FAIL with EEXIST onto an existing target and then requiring it to SUCCEED once the target is removed; a filesystem that "succeeds" while replacing yields io::ErrorKind::Unsupported ("no-replace rename replaced an existing directory"). That is a stronger check than a single errno probe.
- Error text the operator will see:
filesystem at <parent> does not support atomic no-replace directory publication: <inner error>(helios/src/core/cache.rs, preflight_directory_publication_with error mapping), and in conversion:directory export preflight: <...>(helios/src/core/conversion.rs:245-246). install_blobis also the only renameat2 user in heliopause (search on main and head both return just that line), so the PR covers the whole in-crate occurrence of the problem named by #54.- The PR's own diff repeats an existing oddity in
publish_payload: the destination-exists check appears twice (heliopause/src/export/core.rs:686-688 and 695-700, bothif !cache_only && path.exists()with two different messages); the PR inserts its preflight between them, so it now sits after the first check and beforecreate_dir_all(parent). ignition/cli/serve.py:371passesNonefor path, and_export_hosts(serve.py:240) callsprepared.export(None, ...);host_ranks.PreparedRankGroup.export(ignition/preparation/host_ranks.py:440, :501) likewise derivescache_only = path is None. So both CLI export routes (single-host and multi-host) are cache-only, i.e. the python preflight added at model_core.py:41-42 cannot fire from either.- #512 (draft, FujitsuPolycom) proposes essentially the same idea as #79's preflight but in the CLI (
serve._preflight_export, validating manifest/signing/staging/core_cache writability before GPU preparation) and edits heliopause/src/export/binding.rs + ignition/cli/serve.py — the location yatesdr's item 2 says the check belongs. That makes #512 the natural successor/competitor for #79's directory half, while #79 remains the only fix for the blob half.