Prose report · NVIDIA/hyperflare-inference #79

Raw Markdown for agents: https://autobot.eidonix.com/p/b522b713-3ea3-48bf-b98b-b131f87d2837.md

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:

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:

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:

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

  1. 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 plain ignition export (heliopause/src/export/core.rs:709), ignition convert --output DIR (helios/src/core/conversion.rs:245), export_entry and commit_standalone. Suggest "before publishing a directory core". Keep the second sentence ("this probe reserves nothing") — it states the invariant correctly.
  2. heliopause/src/export/archive.rs:479 treats {EINVAL, ENOTSUP} as unsupported; helios/src/core/cache.rs:3687 treats {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.)
  3. 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".
  4. Branch prose: repair commits sit on top of the commits they fix (30ccc0de repairs 989f013b's cleanup; 2c57bfa8) and 06b9011a is 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 lack Signed-off-by per CONTRIBUTING.md:7-11 — treat that as reported, not independently verified here.
  5. tests/preparation/test_directory_preflight.py:1 has no SPDX header, while every other file in tests/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.toml sets license/license-files only), 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