Pre-test report — PR #79 "fix(heliopause): fall back when no-replace rename is unsupported"
Recommendation: DO NOT REFER TO HARDWARE TESTING. Return to the author for rework first.
Reason: the change as written must not merge in its current shape, and the part worth keeping cannot be validated by any test cn5 or cn7 can run. Sending it to hardware would burn GPU time on code that needs to be rewritten, on a property (filesystem rename semantics) a GPU cannot exercise.
1. What the PR actually contains (verified at head 06b9011)
Two unrelated changes bundled together (+468/−22, 7 files):
A. The blob fallback — correct, small, the real fix. heliopause/src/export/archive.rs:432-486: install_blob calls libc::renameat2(AT_FDCWD, src, AT_FDCWD, dst, RENAME_NOREPLACE); on EINVAL|ENOTSUP it now publishes with std::fs::hard_link(temporary, destination) (:481) and returns Ok(()) leaving the temporary for the caller. Every other errno is re-raised unchanged (:485). The caller blob.rs:194-224 already maps AlreadyExists to "reuse this identical pinned blob" (verify_pinned) and removes the temporary itself, tolerating NotFound. So the no-clobber guarantee is preserved (a link fails EEXIST) and the cleanup seam is right. This matches existing precedent in the tree (helios/src/core/cache.rs:2583, :3030 hard-link publication; issue #54 lists eight such sites).
B. A directory-publication preflight — ~245 added lines of scaffolding. New public helios_core::core::cache::preflight_directory_publication (helios/src/core/cache.rs:3621-3708) that creates a random .flare-rename-probe-<hex> directory in the destination parent, proves no-replace rename refuses an existing target and succeeds on a free one, and maps EINVAL|ENOTSUP|ENOSYS to ErrorKind::Unsupported. Plus five call sites (cache.rs:2358, :3125, heliopause/src/export/core.rs:708-710, helios/src/core/conversion.rs:245, heliopause/src/export/binding.rs:33-36), a new Python-visible export_preflight_directory (binding.rs:120-124), a capture_with_owners refactor that exists only to host a test for that binding check (binding.rs:97-118), a Python bootstrap step (ignition/preparation/model_core.py:41-42), and a new 68-line test file (tests/preparation/test_directory_preflight.py). It is not mentioned in the PR description.
2. Substantive problems that make hardware testing waste (must be fixed first)
- The preflight does not run where users invoke export.
ignition exporthas no--output:ignition/cli/__init__.py:37wiresserve.export, which callsexport_core(prepared, recorder, storage, None, ...)(ignition/cli/serve.py:371) and, multi-host,prepared.export(None, ...)(serve.py:240→ignition/preparation/host_ranks.py:460 cache_only = path is None). Somodel_core.py:41-42(if not cache_only and form == 'directory') andbinding.rs:34never fire from the CLI; only tests pass a path (tests/preparation/test_model_core.py:62,helios/tests/export_progress_fixture.py:62). Alsoexport_coreexports ranks withsources=True(model_core.py:51-52), sobinding.rs:34's!request.sourcesguard excludes that path anyway. - The checks that do run fire after the expensive work, so #54's stated cost (a wasted ~20-minute preparation pass) is unchanged:
core.rs:708is insidepublish_payload, reached frombinding.rs:64aftercapture_rankreturned;cache.rs:2358is inexport_entry, after "Commit core". - The fix is not needed for #54's own scenario, and the reviews overstate the gap. I checked this directly because all six reviews repeat "the default export still fails at Commit core". That is wrong. With
path=None,heliopause/src/export/core.rs:973skips the standalone branch entirely, soexport_entry/rename_noreplaceis never reached; the cache entry is published byStaging::commit, which uses plainfs::renameafter asymlink_metadatano-clobber check (helios/src/core/cache.rs:3082-3091), andcombinelikewise (helios/src/core/conversion.rs:3380). The defaultignition exporttherefore has exactly one no-replace rename — the blob install — and the PR's blob fallback does fix issue #54's reported failure. The consequence cuts both ways: the ~450-line preflight buys nothing for the reported bug, and the "Fixes #54" claim in the description is closer to true than the reviewers concluded (the truly uncovered sites areexport_entryatcache.rs:2371for explicit-path/converted exports,publish_staged_directoryathelios/src/core/export.rs:742,unpackatconversion.rs:324, andedit.rs:250). - The probe mutates the filesystem before validating.
helios/src/core/cache.rs:3652callsfs::create_dir_all(parent)inside a function whose doc comment says "this probe reserves nothing" (:3621-3622), andhelios/src/core/conversion.rs:245runs it beforepayloads.verify()(:248) and before the establishedoutput.exists()check (:289-291). A corrupt source core now leaves a created output parent behind and changes the user-visible error for an existing destination from "destination exists: " to "directory export preflight: destination exists". - Two divergent definitions of the same property, and neither fixes the primitive.
archive.rs:477-480acceptsEINVAL|ENOTSUP;cache.rs:3687acceptsEINVAL|ENOTSUP|ENOSYS; existing precedentselene/src/disk.rs:1100-1104(not opened) acceptsEOPNOTSUPP|ENOSYS.rename_noreplace(cache.rs:3712-3732) is still bare, so the behaviour differs between blobs and directories inside one export. - Branch hygiene and mergeability.
mainrefactoredunpack_selectedinto a wrapper overunpack_with(main:helios/src/core/conversion.rs:294-321), so the PR's two-line hunk at headconversion.rs:245no longer applies. The maintainer (yatesdr, CHANGES_REQUESTED 2026-11-18) flagged this plus the preflight placement, the stale/misleading description ("then the temporary name is removed" — moved to the caller in 30ccc0de), the mock-only Python test, missingSigned-off-byon four commits, and the undocumented new filesystem requirement. No commit has landed on the branch since 2026-11-13; none of it is addressed at head. Reviewers also identified dead/self-referential tests:bindings.rs(not opened)capture_with_owners+ its stub test,archive.rs:630-661's 0o555 test (unenforced under root), andtest_directory_preflight.py:43-52which cannot fail because it hitsRuntimeError("export requires the configured core cache")before the code under test.
Verdict on priority 1: this is not "minor nits". Items 1-5 are architecture/quality defects in the added half of the change, and the maintainer has already requested changes that are unaddressed. Per the rule that substantive problems must never be tested, this stops here.
3. Why hardware testing would have no value even if the code were clean
- The changed code is pure filesystem semantics:
renameat2(..., RENAME_NOREPLACE)errno handling andlink(2). It contains no CUDA, no kernel, no graph capture, no scheduling and no numerical change. The property at risk cannot be exercised by a GPU. - The one behaviour that needs validating is "does publication work on a filesystem that returns
EINVALforRENAME_NOREPLACE". Neither host offers such a mount: cn7 is a single-GB10 host with 16 GiB scratch, and cn5 is not taking runs (GPU 2 at 87 °C). Spinning up mergerfs/FUSE would be a container/OS task, not a GPU job, and cn7's 10 CPUs / 60 GiB RAM / 16 GiB scratch cannot host a full export of any of its listed models anyway (issue #54's own scenario needed ~11 GiB of payload plus tuning artifacts, and cn7 has one GPU so no TP layout). - A full
ignition exportend-to-end run on either host would take tens of minutes and would not distinguish the PR frommainon any supported filesystem, because the fallback path is only entered on an unsupported one.
So: zero expected value from a hardware slot, and substantial value from a filesystem-level check that does not need a GPU.
4. Conditions before any testing is worth scheduling
- Rebase onto
main(theconversion.rsconflict) and fold the fixup commits, withSigned-off-byon every commit. - Delete the directory-preflight half —
preflight_directory_publicationand its tests, all five call sites,export_preflight_directoryand its registration,capture_with_ownersand its test, themodel_core.pyhook,tests/preparation/test_directory_preflight.py, and revert the unexplainedsynchronizereorder incommit_standalone(cache.rs:3117-3126). Keepheliopause/src/export/archive.rs. - Unify the unsupported-errno predicate once, beside
rename_noreplace, and say which set is correct (EINVAL|ENOTSUP, plusENOSYSonly if a supported kernel needs it —selene/src/disk.rs:1102(not opened) suggests the project assumes it is reachable). - Add one seam test that drives
install_blob's real branch, not the helper: inject the rename function so the test asserts (i)EINVALinstalls by link and the destination is readable, (ii) an existing destination still reportsAlreadyExists, (iii) an unrelated errno is preserved, (iv) the caller removes the temporary. - Rewrite the description to the four-part form (why / what / claimed result / evidence), say "Partially fixes #54" if the directory sites stay uncovered, and state that the fallback is exercised by injected errno only. Document the rename requirement next to the same-filesystem rule at
docs/multi-host.md:275-278, and record the unrun mergerfs check indocs/TODO.txt.
5. Minimal test plan for when it comes back — no GPU required
Run on any Linux builder or container image, in this order, and stop on the first failure:
T1 — Build and unit tests (blocks everything else).
cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server and cargo test --locked --release --manifest-path heliopause/Cargo.toml. Neither ran at head; the author reported the heliopause suite does not compile on macOS. This is the cheapest way to catch the merge breakage and the #[cfg(any(target_os = "linux", test))] dead-code gate at archive.rs:471.
T2 — Real unsupported filesystem, no GPU needed (the test that settles the PR). On a container with fusermount available, create a mergerfs or equivalent FUSE mount whose renameat2(..., RENAME_NOREPLACE) returns EINVAL (confirm with the 10-line ctypes snippet in issue #54 first — it must print -1 Invalid argument). Then:
- T2a:
ignition exportwith the core cache on that mount, with--no-weightsagainst an already-populated blob cache, so preparation is short. Expected: export completes, every blob is present and byte-identical, and no.blob-*temporary files remain in<cache>/blobs. - T2b: repeat against the same destination twice. Expected: the second run reuses blobs (
AlreadyExists→verify_pinned) and does not corrupt or replace the first result. - T2c: on the same mount,
ignition export --no-weightsinto a cache that already holds one blob, and confirm no blob is replaced (compare mtimes/inodes before and after).
T3 — No regression on a supported filesystem (single run, cheap). Same as T2a on ext4 or ZFS, confirming the renameat2 path is still used and nothing changed for the documented environment. This is the only check that needs a machine that can actually prepare a model, and it can reuse T2a's model; keep it to one run on whichever host is free when the PR is ready — do not run it now.
No throughput A/B is warranted: nothing in this PR touches the hot path, memory layout or numerics, so a perf comparison would measure noise.
6. Answers to the framing questions
- Would testing this be wasted? Yes, in its current state: the directory-preflight half is dead on the CLI path, mutates the destination before validating, is duplicated five times with an inconsistent errno set, still leaves
publish_staged_directory/unpack/editunguarded, and sits on an unrebased branch with an unaddressed CHANGES_REQUESTED review. - Expected value if a hardware test were performed: near zero. The change is filesystem semantics; no available host offers an unsupported filesystem, cn5 is out of service, and cn7 (single GB10, 10 CPUs, 16 GiB scratch) cannot run a meaningful export. A GPU run would neither confirm nor refute the fix.
- What should happen instead: return for rework (delete the preflight, keep and finish the ~15-line blob fallback, rebase, one behaviour-level test), then validate with T1-T3 on a Linux builder with a FUSE mount — no GPU hours at all. If a maintainer instead decides to keep a directory-side guard, it must go into the shared publisher
publish_staged_directory(helios/src/core/export.rs:735-749) plusunpack/edit, and then T1-T3 still apply with nothing to add on the GPU side.
Also noted for the record: the case file's malicious-content screen is clean, and I found no instruction-like or agent-directed content in the PR description, comments, or review text.