Prose review — PR #79 "fix(heliopause): fall back when no-replace rename is unsupported"
Rules applied: AGENTS.md "Required prose review" (:38-65) and "Required PR descriptions" (:67-115), docs/design-review.md principle 16, .agents/skills/repo-prose/SKILL.md (not opened):13-14, 26-29, 35-39, 44-46, CONTRIBUTING.md:7-11. Head reviewed: 06b9011, 7 files, +468/−22.
Key findings
The blob half of this change is correct and honestly described. The description around it is not: it is stale with respect to the branch, it claims to fix an issue it only partly fixes, and it does not mention the larger half of the diff — a new directory-publication preflight that changes what exports are allowed to do. Under AGENTS.md's four required questions (why / what / benefit / evidence) the description fails all four to some degree, which makes it the blocking problem in this PR, not the code.
Blocking
1. The description states a step the changed function does not perform
AGENTS.md:83-89 (before/after must be explicit; do not describe a superseded behavior).
Description: "The link installs the immutable blob atomically without replacing an existing entry, then the temporary name is removed."
Code: heliopause/src/export/archive.rs:471-486 — install_blob_after_rename_error hard-links and returns Ok(()), with the comment at :482 "// BlobStore::commit owns temporary cleanup after publication." No unlink. Cleanup is at heliopause/src/export/blob.rs:216 (let removed = archive::remove_temporary(&path);), with NotFound tolerated at :218-223. The test unsupported_noreplace_rename_leaves_temporary_cleanup_to_the_caller (archive.rs:632) asserts exactly the opposite of the description.
Why it matters: a reviewer reading the description is told the fallback deletes the temporary; the branch deliberately moved that to the caller (commit 30ccc0de "fix(heliopause): leave blob temporary cleanup to its caller"). The sentence describes history, not the code, and hides the reason the helper is safe.
Fix: delete the clause, or write "the temporary is left for BlobStore::commit, which removes it after publication and tolerates NotFound".
2. "Fixes #54" overclaims
AGENTS.md:90-97 (state the claimed result precisely).
Issue #54 is "Export fails with EINVAL when the package cache is on mergerfs (renameat2 RENAME_NOREPLACE unsupported)". On this branch, directory export on mergerfs still does not work: helios/src/core/cache.rs:3621-3708 adds preflight_directory_publication, which turns an unsupported no-replace directory rename into io::ErrorKind::Unsupported with "filesystem at {parent} does not support atomic no-replace directory publication: {error}" (:3689-3692), and it is enforced at cache.rs:2358 (Root::export_entry), cache.rs:3125 (Staging::commit_standalone), heliopause/src/export/core.rs:709 (publish_payload), helios/src/core/conversion.rs:245 (unpack_selected, i.e. ignition convert --output DIR) and heliopause/src/export/binding.rs:35 (capture). Only blobs are installed by hard link (archive.rs:481).
So the delivered result is: blob commit succeeds via hard link; directory publication fails earlier and with a named filesystem error instead of failing with Invalid argument (os error 22) after preparation. That is a real improvement and worth claiming — but it is "partially fixes".
Fix: change the first line to "Partially fixes #54." and add one sentence saying blobs now install by hard link and directory publication now refuses an unsupported filesystem before preparation. (This was already raised by yatesdr's review and by original-el8; the description still has not been updated.)
3. The description explains 1 of 7 changed files
AGENTS.md:83-89 — "Name the affected components and explain the concrete implementation and behavior changes... A file list... does not explain what was done."
pr_files vs description: the only change described is heliopause/src/export/archive.rs (+139/−1). Undescribed:
helios/src/core/cache.rs(+163/−1): the new publicpreflight_directory_publication(:3621-3708), its two enforcement points (:2358,:3125), the three new tests (:3945-4015), and the movedsynchronize(&self.directory)inStaging::commit_standalone— before the existence check on main, after the preflight now (:3114-3126, visible in the diff). That is a publication/durability ordering change of exactly the "resource-lifetime" classAGENTS.md:87-88 asks to be identified.heliopause/src/export/binding.rs(+91/−20):capture_with_ownersextraction (:97-118) and the new pyfunctionexport_preflight_directory(:120-124).heliopause/src/export/core.rs:708-710,helios/src/core/conversion.rs:245-246,ignition/preparation/model_core.py:41-42: the three other enforcement points.tests/preparation/test_directory_preflight.py(+68): new test file, never mentioned.
Also unmentioned and material: directory export now requires no-replace rename support — a new filesystem requirement for ignition convert --output DIR, directory ignition export, and core editing. AGENTS.md:87 asks explicitly for "material numerical, compatibility, and resource-lifetime changes".
Fix: describe both halves with before/after, name the new requirement, and mention the synchronize move or revert it (correctness lens).
4. The "why" is missing and the description starts with the fix
AGENTS.md:70-72 — "Every description must answer these four questions, in this order: why, what exactly changed, what benefit..., and what evidence".
The description's first content sentence is "On Linux, fall back to hard-link publication when...". It never states the affected workflow (exporting a core onto a package cache on mergerfs), the concrete defect (renameat2(RENAME_NOREPLACE) returning EINVAL on mergerfs), or the cost that makes it worth fixing — preparation runs tuning/compilation/capture for ~20 minutes and then the commit fails. AGENTS.md:73-75 says a description that makes the reviewer reconstruct these answers is incomplete "even if every individual statement is accurate".
Fix: add a two-or-three sentence problem paragraph before the change description.
Should fix
5. Evidence is not tied to rerunable checks
AGENTS.md:98-107, in particular "Test counts and labels such as 'qualified' cannot stand in for the tested contract and result" and "Reproduction commands must identify the required inputs and configuration".
Current evidence paragraph: "Tests cover both unsupported errors, existing destinations and unrelated rename failures. The focused helper harness passed 3 tests; rustfmt ... and git diff --check passed. The Heliopause Cargo test could not compile on macOS ... and mergerfs was not available for a live reproduction."
Problems that are checkable against the tree:
- "the focused helper harness passed 3 tests" names no crate, command, harness or test. The diff adds five tests to
heliopause/src/export/archive.rs(:612,:632,:663,:686,:708) plus a new Python test filetests/preparation/test_directory_preflight.py. The number 3 matches neither, so nothing a reader can rerun is identified. - Nothing is claimed for the largest addition,
preflight_directory_publication(helios/src/core/cache.rs:3621-3708), whose tests are atcache.rs:3945-4015in the crate the author says could not compile. Reading the description, a reviewer cannot tell whether any helios code was compiled at all. That should be stated, with the unrun command named (AGENTS.md"Run tests":cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server). - "mergerfs was not available for a live reproduction" is honest and good, but the consequence is left implicit: the fallback is exercised only by injecting the errno, and #54's actual end-to-end scenario was never run.
Fix: name the exact commands and their results, or say plainly which checks were not run; state that the fallback is covered by injected error codes only.
6. The new filesystem requirement is documented nowhere
AGENTS.md:47-55 (documents are present-state specifications; record unrun checks and limits in docs/TODO.txt), docs/design-review.md principle 16.
Requirement added by this PR: the destination filesystem must support atomic no-replace directory rename. Enforced at helios/src/core/cache.rs:2358, :3125, heliopause/src/export/core.rs:709, helios/src/core/conversion.rs:245, heliopause/src/export/binding.rs:35. No document says so:
docs/multi-host.md:275-278says only "Output and core cache must be on the same filesystem for hardlinks; if/datais a separate mount, configure[paths] core_cacheon that filesystem". A mergerfs operator follows this, complies, and still fails — exactly #54's trap. This is the sentence the requirement belongs next to.docs/cli-design.md:1064-1067documents--outputrefusing an existing destination and cross-filesystem behavior forignition convert; no mention of rename support.docs/core-format-design.md:703-704already promises "Filesystem file-size or space limits cause an explicit preflight/export error" — rename semantics is the same class and has no sentence.docs/TODO.txthas no entry for the docs gap or for the untested mergerfs path (searched: mergerfs / rename / preflight — no match).
Fix: one sentence each in docs/multi-host.md and docs/cli-design.md, and either extend core-format-design.md:703-704 or add a docs/TODO.txt entry for the untested mergerfs path.
Nits
helios/src/core/cache.rs:3621— doc comment "Check Linux directory no-replace support before preparing a standalone export." is narrower than the callers: it also guards a plainignition export(heliopause/src/export/core.rs:709),ignition convert --output DIR(helios/src/core/conversion.rs:245),export_entryandcommit_standalone. Suggest "before publishing a directory core". Keep the second sentence ("this probe reserves nothing") — it states the invariant correctly.heliopause/src/export/archive.rs:479treats{EINVAL, ENOTSUP}as unsupported;helios/src/core/cache.rs:3687treats{EINVAL, ENOTSUP, ENOSYS}. Whichever is right, the reason for the set should be stated once in the preflight doc comment so an operator seeing both errors can reconcile them. (The behavior itself is the correctness lens's call; I record the undocumented divergence.)- PR title "fix(heliopause): fall back when no-replace rename is unsupported" omits the directory preflight, which is the larger half of the diff; e.g. "fix(export): fall back for blob publication and preflight directory no-replace support".
- Branch prose: repair commits sit on top of the commits they fix (
30ccc0derepairs989f013b's cleanup;2c57bfa8) and06b9011ais a merge of main rather than a rebase —.agents/skills/repo-prose/SKILL.md(not opened):26-29, 40-43 keeps history out of content. Commit trailers (Signed-off-by,Design-Signed-Off-By) could not be inspected with the tools available to me; yatesdr's review asserts four commits lackSigned-off-byperCONTRIBUTING.md:7-11 — treat that as reported, not independently verified here. tests/preparation/test_directory_preflight.py:1has no SPDX header, while every other file intests/preparation/carries# SPDX-License-Identifier: Apache-2.0(directory search: all matches, ~120 files, this one absent). I found no written rule mandating per-file headers (pyproject.tomlsetslicense/license-filesonly), so this is consistency, not a cited violation.
What checks out (so the description is not uniformly wrong)
These description statements were verified in the code and are accurate: the fallback trigger and errno set (archive.rs:448-452 → :477-486); "installs the immutable blob atomically without replacing an existing entry" (std::fs::hard_link at :481, EEXIST consumed at blob.rs:204-211); "existing destinations still return EEXIST" (test archive.rs:663); "other rename errors are preserved" (archive.rs:485, test :686); "tests cover both unsupported errors, existing destinations and unrelated rename failures" (true for the blob helper, archive.rs:612-733); the rustfmt and git diff --check claims are plausible and file-scoped. Test prose is also good where it exists — archive.rs:712-714 explains the permission asymmetry that the helper must not violate.
Open questions / could not verify
- Whether the new Python test file has three tests and whether
pytest tests/preparation/test_directory_preflight.pypasses: not runnable here; the description offers no evidence for it either. - Whether
helioscompiles or its new tests pass at head: no CI on06b9011("no checks"), and the author reports the crate did not compile on macOS. - Commit trailers (sign-off / design sign-off) are not visible through the review tools; only the review comment asserts their absence.
- No attempt to direct the agent was found in the PR description, comments, or review text.