Prose report · NVIDIA/hyperflare-inference #79

Raw Markdown for agents: https://autobot.eidonix.com/p/7ff0747e-6c5f-4bd9-9980-b4429aac7a4e.md

Prose-lens review of PR #79 — fix(heliopause): fall back when no-replace rename is unsupported

Head reviewed: 41f1c76. Rules applied: AGENTS.md:72-140 ("Required PR descriptions": why / what exactly changed / claimed benefit / evidence, in that order), AGENTS.md:142-153 ("Contact on PRs and issues"), AGENTS.md:43-59 ("Required prose review", present-state docs, unresolved checks belong in docs/TODO.txt), AGENTS.md:194-199 (tests must exercise the contract), docs/design-review.md:140-159 (principles 16-17) and .agents/skills/repo-prose/SKILL.md:13-14 (not opened), :26-29, :35-43.

Key findings

The code in this PR is substantially better documented than the description that sells it. Its description is stale: it still describes the first commit of the series, contradicts the code on the most concrete claim it makes ("then the temporary name is removed"), and answers one of the four mandatory questions about one of seven changed files. Fixes #54 is an overclaim that I could verify against the code: the reporter's directory-output path still calls a bare rename_noreplace with no preflight, so it still fails on mergerfs with a raw error. Nearly half of the diff (a directory-publication preflight plus a new Python entry point and tests) is never mentioned, and the new filesystem requirement it creates is documented nowhere. The blob-half sentences do check out, which is worth saying so this does not read as uniformly negative.

3 blocking, 4 should fix, 5 nits.

Blocking

1. The description contradicts the code on temporary removal

Description (read_item 79, body): "The link installs the immutable blob atomically without replacing an existing entry, then the temporary name is removed."

Code says the opposite. heliopause/src/export/archive.rs:298-313 (install_blob_after_rename_error) links at :308, then returns Ok(()) with the comment at :309: // BlobStore::commit owns temporary cleanup after publication. Cleanup actually happens in the caller at heliopause/src/export/blob.rs:216 (archive::remove_temporary), with NotFound tolerated at :218-224. The PR's own test for this behaviour is named unsupported_noreplace_rename_leaves_temporary_cleanup_to_the_caller (archive.rs:459), and the branch history contains commit 30ccc0de "fix(heliopause): leave blob temporary cleanup to its caller" — i.e. the sentence describes a superseded version of the patch. (The reviewer, yatesdr, flagged the same point at read_item 79, 2026-11-18.)

Why it matters: a reviewer or future maintainer reading the description will look for a cleanup step in the helper that is deliberately absent, and will misjudge the failure mode (an unlink error after a successful link cannot be reported by this path). AGENTS.md:88-94 requires the before/after transition to be stated explicitly and not in one tense.

Fix: delete the clause, or write "the link publishes the blob; BlobStore::commit then removes the temporary and tolerates NotFound".

2. "Fixes #54" overclaims, and the description never states the new requirement it introduces

First line of the description: Fixes #54.

I traced the publication paths that #54's reporter exercises (scratchpad note #15):

So the change is "blob publication now succeeds; directory publication now refuses early with a named filesystem error". Fixes #54 states neither. Additionally the description never says that directory cores now require no-replace rename support — the substantive new compatibility consequence of the preflight (cache.rs:4174, enforced at :2804, :3678, heliopause/src/export/core.rs:641, helios/src/core/conversion.rs:316, heliopause/src/export/binding.rs:34-36, ignition/preparation/model_core.py:41-42).

Fix: "Partially fixes #54", plus one sentence naming the two behaviours above and the new filesystem requirement.

3. The description answers 1 of the 4 required questions and covers 1 of 7 changed files

AGENTS.md:72-80: "Every description must answer these four questions, in this order: why, what exactly changed, what benefit or result is claimed, and what evidence supports it… A description that makes the reviewer reconstruct these answers from implementation details, test inventories, or linked PRs is incomplete."

The description has no "why": nothing about mergerfs returning EINVAL from renameat2(RENAME_NOREPLACE), and nothing about the cost — #54 reports a preparation run that is lost at the commit step after long work. There is no claimed benefit section at all. And the "what" is one paragraph about one file, while the diff is 7 files, +468/−22:

Changed file In description?
heliopause/src/export/archive.rs (+139/−1) yes
helios/src/core/cache.rs (+163/−1) — the whole preflight no
heliopause/src/export/binding.rs (+91/−20) — capture_with_owners :97-118, new pyfunction export_preflight_directory :120-124, registered :128 no
heliopause/src/export/core.rs (+3) — probe at :641 no
helios/src/core/conversion.rs (+2) — probe at :316-317 no
ignition/preparation/model_core.py (+2) — probe call :41-42 no
tests/preparation/test_directory_preflight.py (+68, new) no

The move of synchronize below the preflight in Staging::commit_standalone (cache.rs:3678-3679) is also a resource-order change (AGENTS.md:92-93 "material numerical, compatibility, and resource-lifetime changes") and is unmentioned.

Fix: add the problem paragraph, then both halves with before/after, then the requirement, then evidence.

Should fix

4. Evidence is not connected to rerunable checks

heliopause/src/export/archive.rs:… — the description says "The focused helper harness passed 3 tests" (read_item 79). It names no crate, no command, no harness and no test; the diff adds five Rust tests (archive.rs:439, :459, :490, :513, :535) and three Python tests (tests/preparation/test_directory_preflight.py:11, :44, :56). AGENTS.md:103-112 requires connecting each material claim to "the behavior tested, baseline or reference, configuration, result", and AGENTS.md:294-320 gives the concrete commands, e.g. cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server. Nothing states whether helios/src/core/cache.rs:4174-4261 — the largest addition — was ever compiled, and the description says the Heliopause Cargo test could not compile on macOS, which is the crate that contains helios. Per AGENTS.md:105-107 ("State what remains untested or inconclusive") and :129-132, the honest sentence is: the blob fallback is covered by injected errnos only, no real mergerfs reproduction was run, and the preflight was not compiled in a Rust test build.

Fix: name the commands run and the ones not run; say the fallback is covered by injected errnos and that the native preflight test is Linux-only (test_directory_preflight.py:55).

5. The new Python test cannot fail on its subject, and the description claims tests cover the cases

tests/preparation/test_directory_preflight.py:43-52:

def test_cache_only_and_packed_exports_do_not_probe_directory_publication(...):
    ...
    with pytest.raises(RuntimeError, match="configured core cache"):
        model_core.export_core(None, None, None, destination, options={}, publisher=object(), form=form)

The test never enters export_options, so in ignition/preparation/model_core.py _OPTIONS.get() is None and the run raises at :33 ("export requires the configured core cache") before the guard at :41-42 is evaluated. Both parametrizations therefore test the same precondition failure; the unexpected stub is provably dead, and deleting not cache_only from the guard would leave this test green. The name and the file docstring (:1, "Standalone directory exports reject unsupported publication before capture") claim far more than it establishes.

This matters for the prose lens because the description asserts "Tests cover both unsupported errors, existing destinations and unrelated rename failures", and AGENTS.md:194-199 says "Tests must exercise the affected behavior or contract; source-text checks and mocks that bypass the behavior cannot establish runtime correctness", while AGENTS.md:108-109 says "Test counts and labels … cannot stand in for the tested contract". Test 1 (:11-40) is honest — it is an ordering test and behaves like one — and the only test that exercises real behaviour is :55-68, which is skipif non-Linux.

Fix: enter export_options(tmp_path / "cache") and provide a fake NativeExportStage so the run reaches the guard, then assert calls == []; or delete the test and say the preflight is covered by the native test only.

6. The new filesystem requirement is documented nowhere

Directory cores now require no-replace rename support (five call sites listed under finding 2), yet no doc file appears in pr_files. The natural homes all still lack it: docs/multi-host.md:314-316 states the same-filesystem rule for hardlinks but not this one; docs/cli-design.md:1126-1127 covers --output and the cross-filesystem case; docs/core-format-design.md:713-714 already promises that "Filesystem file-size or space limits cause an explicit preflight/export error" — the new precondition belongs beside that promise; docs/TODO.txt has no entry for the unrun mergerfs reproduction (search for mergerfs|rename|no-replace|preflight|filesystem returns nothing). AGENTS.md:52-59 requires unrun checks to be recorded in docs/TODO.txt rather than left implicit, and yatesdr's review asked for exactly this (read_item 79, point 7, "State that next to the same-filesystem rule at docs/multi-host.md:275").

Fix: two sentences beside docs/multi-host.md:314-316, one line at docs/core-format-design.md:713-714, and a docs/TODO.txt entry for the missing mergerfs run.

7. Missing the mandatory Discord: line

AGENTS.md:142-153: "Every PR and issue description has a Discord line after the technical explanation… When the person provides no Discord username, the line states that explicitly: Discord: no username provided. Never omit the line." docs/design-review.md:153-159 repeats it.

The body of read_item 79 ends at "…mergerfs was not available for a live reproduction." with no Discord: line. The rule landed on main in de75b2ab ("Require a Discord contact on PRs and issues", merged as 4e820676, PR #362) on 2026-11-18 — after this PR was opened (2026-10-25) but well before its current head (2026-11-27), so it applies to the description as it stands. Merged PR #546 carries Discord: no username provided, so the convention is live and reviewers apply it.

Fix: append Discord: no username provided (or the contributor's username, asked for rather than guessed).

Nits

8. Preflight doc comment is narrower than its callers

helios/src/core/cache.rs:4174 — "Check Linux directory no-replace support before preparing a standalone export." The function is also called from Root::export_entry (:2804), publish_payload (heliopause/src/export/core.rs:641) and unpack_with (helios/src/core/conversion.rs:316), which is ignition convert --output DIR, not a standalone export. Say "before publishing a directory core". Keep the second sentence (:4175, "this probe reserves nothing") — it is the invariant that matters.

9. Two errno sets for one syscall, undocumented

heliopause/src/export/archive.rs:304-306 treats only {EINVAL, ENOTSUP} as unsupported; helios/src/core/cache.rs:4239-4240 also accepts ENOSYS (plus ErrorKind::Unsupported). An operator who sees a raw ENOSYS blob error but a clean directory message has no prose to reconcile them. (Correctness is another lens; this finding is only that the divergence is stated nowhere.)

10. PR title under-describes the change

Title: "fix(heliopause): fall back when no-replace rename is unsupported". The branch also adds a directory preflight that refuses on mergerfs (cache.rs:4243) and a Python entry point (binding.rs:120-124). Suggest "fix(export): fall back for blob publication and preflight directory no-replace support".

11. Branch and packaging prose

Repair commits sit on top of the change they repair (30ccc0de repairs 989f013b; 06b9011a is a merge of main rather than a rebase), contrary to SKILL.md:26-29, :40-43 (history is not content; squash so each commit states problem, behaviour, evidence). tests/preparation/test_directory_preflight.py:1 starts directly with its docstring; every sibling file in tests/preparation carries # SPDX-License-Identifier: Apache-2.0. I found no written rule mandating the per-file header, so this is consistency only. The missing Signed-off-by trailers yatesdr reported for 989f013b, 2c57bfa8, 17a4aa76, 30ccc0de (CONTRIBUTING.md:7-11) are not verifiable with my tools — commit trailers are not exposed — so I record the claim as raised-by-reviewer, not confirmed.

12. Non-Linux, the preflight silently succeeds

helios/src/core/cache.rs:4179-4183 returns Ok(()) off Linux, so the doc comment at :4174 implies enforcement that does not exist. One clause — "on Linux; elsewhere publication is inherently no-replace" — removes the ambiguity. Related: archive.rs:298's helper is #[cfg(any(target_os = "linux", test))], so its errno semantics are test-only and explained in no prose; one line in the comment at :309 would close that.

What checks out in the description

So the review is not read as uniformly negative, these description sentences were verified accurate against the code:

Open questions / not found