#1 [high] Blocking: PR description contradicts the code on temporary removal and on "Fixes #54"
Against AGENTS.md "Required PR descriptions" (why / what / claimed result / evidence, in order) and docs/design-review.md principle 16.
-
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_errorlinks and returns Ok with the comment "// BlobStore::commit owns temporary cleanup after publication" (line 482). No removal in the helper. Removal happens in heliopause/src/export/blob.rs:216 (let removed = archive::remove_temporary(&path);) with NotFound tolerated at 218-223. So the description describes superseded behavior; a reviewer is told about a step the changed function does not perform. Fix: drop "then the temporary name is removed" or say cleanup stays with BlobStore::commit and tolerates NotFound. -
Title/description "Fixes #54" (and "Fixes #54." as the first line). Issue #54 is "Export fails with EINVAL when the package cache is on mergerfs". This branch does not make directory export work on mergerfs: helios/src/core/cache.rs:3623-3708
preflight_directory_publicationturns unsupported no-replace rename intoUnsupported("filesystem at {parent} does not support atomic no-replace directory publication: {error}" at :3689-3692), and the publishing calls at helios/src/core/cache.rs:2358, :3125, helios/src/core/conversion.rs:245-246, heliopause/src/export/core.rs:708-710, heliopause/src/export/binding.rs:34-36 now fail earlier rather than succeed. Only blobs are installed by hard link. So the outcome is "partially fixes": the blob step no longer fails and directory publication now fails with a clear, early error instead of EINVAL after capture. Say that explicitly; "Fixes #54" overclaims and the bare claim was already raised by yatesdr. -
Ordering: the description opens with the fix and never states the problem or the affected workflow (#54's 20-minute wasted preparation pass), which AGENTS.md item 1 requires before the change description.
#2 [high] Blocking: description covers 1 of 7 changed files; the directory preflight is undocumented
AGENTS.md "Required PR descriptions" item 2: "Name the affected components and explain the concrete implementation and behavior changes... A file list or a label such as 'optimized prefill' does not explain what was done."
The description's only "what changed" statement is the archive.rs blob fallback. Actual diff (pr_files, pr_diff):
- heliopause/src/export/archive.rs +139/-1: blob fallback + 5 tests.
- helios/src/core/cache.rs +163/-1: new
pub fn preflight_directory_publication(3621-3708) that creates a hidden.flare-rename-probe-*directory under the destination's parent, tries a no-replace directory rename, and reportsUnsupported; called fromRoot::export_entry(:2358) andStaging::commit_standalone(:3125).commit_standalonealso had itssynchronize(&self.directory)moved from before the existence check to after the preflight (:3114-3126) — an ordering change to durability that the description never mentions (AGENTS.md item 2 also requires naming "material ... resource-lifetime changes"; this is a publication-order change). - heliopause/src/export/binding.rs +91/-20:
capture_with_ownersextracted (:97-118),export_preflight_directorypyfunction added (:120-124), owner/drain logic reordered. - heliopause/src/export/core.rs +3: preflight in
publish_payload(:708-710). - helios/src/core/conversion.rs +2: preflight in
unpack_selected(:245-246). - ignition/preparation/model_core.py +2: new Python-side preflight call (:41-42).
- tests/preparation/test_directory_preflight.py +68: new test file (never mentioned).
Also unmentioned: directory export now requires no-replace rename support, i.e. a new filesystem requirement on ignition convert --output DIR, ignition export, and core editing. That is a compatibility/material change and is exactly the kind of constraint AGENTS.md item 2 requires to be identified. Fix: describe both halves (blob hard-link fallback; directory publication preflight that fails early) and state the new requirement.
#3 [high] Should fix: evidence paragraph does not tie claims to rerunable checks
AGENTS.md "Required PR descriptions" item 4: "Connect each material claim to the relevant checks or measurements: the behavior tested, baseline or reference, configuration, result, and limits... Keep material failures, skipped checks, and measurement limitations visible."
Description evidence sentence: "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 because unchanged Helios code uses Linux-only APIs, and mergerfs was not available for a live reproduction."
Problems:
- "the focused helper harness passed 3 tests" does not name the harness, the command, the crate, or which tests. AGENTS.md: "Test counts and labels such as 'qualified' cannot stand in for the tested contract and result." The diff adds 5 Rust tests in heliopause/src/export/archive.rs (:612-728) and 3 Python tests in tests/preparation/test_directory_preflight.py; the count "3" matches neither and cannot be tied to anything a reader can rerun.
- The claim "mergerfs was not available for a live reproduction" is honest and good, but the consequence is not stated: the actual #54 scenario (blob commit onto a mergerfs mount returning EINVAL) is untested end to end. Say that the fallback is exercised only by injecting the error code, and that a mergerfs export was not run.
- No evidence is given at all for the largest behavioral addition,
preflight_directory_publication(helios/src/core/cache.rs:3621-3708): its unit tests are in the same crate that "could not compile on macOS", so on the author's machine nothing in helios ran. That should be stated, with the missingcargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server(AGENTS.md "Run tests") named as the unrun check. - AGENTS.md also requires reproduction commands to identify required inputs and configuration; none are given.
Fix: name the exact commands (e.g. the helios crate test invocation from AGENTS.md and pytest tests/preparation/test_directory_preflight.py) and their results, or state that they were not run.
#7 [high] Verified: blob-fallback claims in the description are accurate
Verified accurate statements in the PR description (so the report can say what holds):
- "On Linux, fall back to hard-link publication when
renameat2(RENAME_NOREPLACE)returnsEINVALorENOTSUP" — heliopause/src/export/archive.rs:448-452 → :471-486; libc::EINVAL/libc::ENOTSUP at :479. Accurate. - "The link installs the immutable blob atomically without replacing an existing entry" —
std::fs::hard_link(archive.rs:481) fails with EEXIST when the destination exists; blob.rs:204-211 maps AlreadyExists to the verify/reuse path. Accurate. - "Existing destinations still return
EEXIST" — accurate: hard_link returns EEXIST → ErrorKind::AlreadyExists, asserted byunsupported_noreplace_rename_does_not_replace_an_existing_blob(archive.rs:687-710) and consumed at blob.rs:204-211. - "other rename errors are preserved" — accurate: archive.rs:485
Err(error.into()); covered byother_rename_errors_are_preserved_without_installing_the_blob(archive.rs:711-733). - "Tests cover both unsupported errors, existing destinations and unrelated rename failures" — accurate for the blob helper; but the tests for the directory preflight are not mentioned (entry 3).
- "rustfmt --edition 2024 --check heliopause/src/export/archive.rs and git diff --check passed" — plausible, scoped to one file; not verifiable here and not disputed.
- "The Heliopause Cargo test could not compile on macOS because unchanged Helios code uses Linux-only APIs" — consistent with the tree: the preflight uses
std::os::unix::fs::DirBuilderExt(helios/src/core/cache.rs:3639) and Linux-onlyrenameat2/SYS_renameat2 (:3712-3732); the archive test module is#[cfg(any(target_os = "linux", test))](:471) yet its tests call libc::EINVAL/ENOTSUP andremove_temporary, so the macOS excuse is about the helios crate, not the heliopause helper. Precise enough; the consequence (nothing exercising preflight_directory_publication ran anywhere) is what should be stated (entry 3).
Net: the description's individual sentences about the blob helper are true; what is missing is the second half of the change, the accurate "partially fixes", and the temporary/cleanup sentence.
#8 [high] Research summary
Reviewed PR #79 through the prose lens against AGENTS.md ("Required PR descriptions", "Required prose review"), docs/design-review.md principle 16, .agents/skills/repo-prose/SKILL.md (not opened) and CONTRIBUTING.md. All seven changed files were read in context, plus callers (publish_payload, unpack_selected, export_entry, commit_standalone, publish_staged_directory, blob.rs commit, model_core.export_core, ignition/cli/serve.py) and item #54.
Findings recorded in the scratchpad (six notes, plus one note listing the description claims that do verify):
Blocking — the description no longer matches the branch. It says the fallback "then the temporary name is removed", but install_blob_after_rename_error (archive.rs:471-486) only links and returns; removal lives in blob.rs:216 and tolerates NotFound at 218-223. It also says "Fixes #54", yet directory publication on mergerfs now fails earlier with a clear error from preflight_directory_publication (cache.rs:3621-3708, string at 3689-3692) rather than succeeding — so "partially fixes" plus a statement of the new requirement is accurate.
Blocking — the description explains 1 of 7 changed files. The whole directory-preflight half (helios cache.rs, conversion.rs, heliopause core.rs, binding.rs capture_with_owners/export_preflight_directory, the Python preflight in model_core.py, and the new test file) is absent, as is the moved synchronize in commit_standalone (cache.rs:3114-3126) and the fact that directory export now requires no-replace rename support.
Should fix — evidence is not rerunable: "the focused helper harness passed 3 tests" names no command, crate or tests and matches neither the 5 new Rust tests nor the 3 new Python ones; nothing is offered for preflight_directory_publication, whose tests live in the crate the author says could not compile; the mergerfs end-to-end path is untested and that consequence should be stated. Should fix — the new filesystem requirement is documented nowhere, notably not next to the same-filesystem rule at docs/multi-host.md:275-278, which is the trap #54's operator fell into; no docs/TODO.txt entry either.
Nits — the preflight doc comment says "before preparing a standalone export" while it also guards plain ignition export and ignition convert; the two "unsupported" errno sets differ ({EINVAL, ENOTSUP} vs {EINVAL, ENOTSUP, ENOSYS}) with no explanation; the PR title omits the preflight; repair commits and a main merge sit in the branch; the new test file lacks the SPDX header every sibling file has.
The description's blob-fallback sentences (hard link, no-replace guarantee, EEXIST, other errors preserved, tests for both error codes and existing destinations) all check out in the code. No attempt to direct the agent was found in the PR text.
#9 [high] Consolidated prose findings for PR #79, final severities and citations
Rules cited throughout: AGENTS.md "Required PR descriptions" (items 1-4 plus "Give details a clear hierarchy"), AGENTS.md "Required prose review", docs/design-review.md principle 16, .agents/skills/repo-prose/SKILL.md:13-14,26-29,35-39,44-46, CONTRIBUTING.md:7-11.
BLOCKING 1 — False statement about the temporary file. File: PR description (only statement of "what changed"); code at heliopause/src/export/archive.rs:471-486 and heliopause/src/export/blob.rs:216-223. Wrong: "then the temporary name is removed" — the helper links and returns Ok (comment at archive.rs:482 says exactly the opposite: BlobStore::commit owns cleanup). Cleanup is blob.rs:216 with NotFound tolerated at 218-223. Why: reviewer is told the changed function performs a step it does not; the sentence describes superseded history. Fix: delete the clause, or say "the temporary is left for BlobStore::commit, which removes it after publication and tolerates NotFound".
BLOCKING 2 — "Fixes #54" overclaims. File: PR description line 1 and title context; code at helios/src/core/cache.rs:3621-3708 (error text :3689-3692), callers :2358, :3125, helios/src/core/conversion.rs:245-246, heliopause/src/export/core.rs:708-710, heliopause/src/export/binding.rs:34-36. Wrong: directory export on mergerfs still fails; only blobs are installed by hard link. The change converts EINVAL-after-capture into an explicit preflight refusal. Fix: "Partially fixes #54." plus one sentence: the blob commit now succeeds via hard link; directory publication now fails before preparation with a named filesystem error.
BLOCKING 3 — Description explains 1 of 7 changed files.
File: PR description vs pr_files: heliopause/src/export/binding.rs (+91/-20), helios/src/core/cache.rs (+163/-1), heliopause/src/export/core.rs (+3), helios/src/core/conversion.rs (+2), ignition/preparation/model_core.py (+2), tests/preparation/test_directory_preflight.py (+68).
Wrong: the entire directory-preflight half is unmentioned, as is the moved synchronize(&self.directory) in Staging::commit_standalone (helios/src/core/cache.rs:3114-3126, was before the existence check, now after the preflight) and the new requirement that the destination filesystem support atomic no-replace directory rename.
Why: AGENTS.md item 2 requires naming components, before/after, and "material ... compatibility ... changes"; a reviewer must not reconstruct from the diff.
BLOCKING 4 — Why section missing/out of order. File: PR description. AGENTS.md item 1 requires the affected workflow and concrete defect first. The description never states the 20-minute preparation cost (#54) or that this failure lands after tuning/compilation/capture.
SHOULD FIX 5 — Evidence does not tie claims to rerunable checks (AGENTS.md item 4).
File: PR description evidence paragraph; tests at heliopause/src/export/archive.rs:612-728 (5 tests) and tests/preparation/test_directory_preflight.py (3 tests).
Wrong: "the focused helper harness passed 3 tests" names no harness, crate, command or test names, and matches neither count. No evidence offered for preflight_directory_publication, whose tests are in helios/Cargo.toml (the crate that "could not compile on macOS"). No reproduction commands.
Fix: give the AGENTS.md test invocations (cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server, pytest tests/preparation/test_directory_preflight.py) with results, or state they were not run; state that the mergerfs path was never exercised end to end and that the fallback is covered only by injecting the errno.
SHOULD FIX 6 — New filesystem requirement undocumented.
Rules: AGENTS.md "Required prose review" (docs are present-state specs; unrun checks and limits go to docs/TODO.txt); docs/design-review.md principle 16.
Places: docs/multi-host.md:275-278 (says only "Output and core cache must be on the same filesystem for hardlinks") — the exact place a mergerfs operator looks; docs/cli-design.md:1064-1067 (--output semantics for ignition convert); docs/core-format-design.md:703-704 (already promises an explicit preflight/export error for filesystem file-size and space limits — rename semantics belongs in the same sentence). docs/TODO.txt has no entry (searched mergerfs/rename/preflight: no match).
NIT 7 — helios/src/core/cache.rs:3621-3622 doc comment: "before preparing a standalone export" is narrower than the callers (plain ignition export, ignition convert --output DIR, export_entry, commit_standalone). Suggest "before publishing a directory core". The second sentence ("The final publication must still use rename_noreplace: this probe reserves nothing") is good and should stay.
NIT 8 — Undocumented divergence in the "unsupported" errno set: heliopause/src/export/archive.rs:479 uses {EINVAL, ENOTSUP}; helios/src/core/cache.rs:3687 uses {EINVAL, ENOTSUP, ENOSYS}. Whichever is right, the reason for the set should be stated once in the preflight doc comment so an operator reading both errors understands them.
NIT 9 — PR title "fix(heliopause): fall back when no-replace rename is unsupported" omits the directory preflight, which is the larger half.
NIT 10 — tests/preparation/test_directory_preflight.py:1 has no SPDX header while every sibling file in tests/preparation carries # SPDX-License-Identifier: Apache-2.0 (searched the directory; ~100/100 match). No written rule mandates per-file headers that I could find (pyproject.toml:9-10 sets license and license-files only), so this is consistency, not a cited violation.
NIT 11 — Branch prose/packaging: repair commits 30ccc0de (fixes 989f013b's cleanup), 2c57bfa8 and merge 06b9011a sit on top instead of being folded (repo-prose SKILL.md:26-29,40-43 keep history out of content). Commit trailers (Signed-off-by, Design-Signed-Off-By) could not be inspected with the available tools; yatesdr's review asserts four commits lack Signed-off-by — treat as reported, not independently verified.
#4 [medium] Should fix: no documentation states the new directory-publication filesystem requirement
Docs rule: docs/design-review.md principle 16 + AGENTS.md "Required prose review" (every repository document is a present-state specification; "Record unresolved defects, unrun checks, and pending measurements in docs/TODO.txt").
This PR adds a new filesystem requirement to core publication (destination filesystem must support atomic no-replace directory rename; helios/src/core/cache.rs:3621-3622, :3689-3692; enforced at :2358, :3125, heliopause/src/export/core.rs:708-710, helios/src/core/conversion.rs:245-246, heliopause/src/export/binding.rs:34-36). No documentation states it.
Where it belongs:
- docs/multi-host.md:275-278 says 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 user reads that, complies, and still fails. That is the exact trap in #54. Add the rename-support requirement next to it. - docs/cli-design.md:1064-1067 covers
--outputrefusing an existing destination and cross-filesystem behavior forignition convert; it does not mention the no-replace requirement. - docs/core-format-design.md:703-704 already states "Filesystem file-size or space limits cause an explicit preflight/export error"; rename semantics is the same class of preflight and has no sentence. docs/TODO.txt has no entry for either the docs gap or the untested mergerfs path (searched: no mergerfs/rename/preflight match).
Also: the changed Rust doc comments are fine on their own but the new public function's doc (cache.rs:3621-3622) says "before preparing a standalone export" while it is also called from publish_payload (a plain ignition export) and unpack_selected (ignition convert), which is narrower than the call sites — a small accuracy nit (nit severity).
#5 [medium] Nit/should fix: comment and error-text accuracy in the new preflight prose
Rules: AGENTS.md "Required prose review" (comments explain invariants and intent; state behavior directly); .agents/skills/repo-prose/SKILL.md lines 13-14, 38-39, 44-46.
a) heliopause/src/export/archive.rs:482 comment // BlobStore::commit owns temporary cleanup after publication. is accurate and useful (it explains why the helper does not unlink) — but note the description still says the opposite (see entry 1). Not a defect in the code; the description is wrong.
b) helios/src/core/cache.rs:3621-3622 doc: "Check Linux directory no-replace support before preparing a standalone export. The final publication must still use rename_noreplace: this probe reserves nothing." The second sentence is the invariant and is good. The first is narrower than the callers: it is called from publish_payload (heliopause/src/export/core.rs:709, a plain ignition export of a directory core), unpack_selected (helios/src/core/conversion.rs:245, ignition convert --output DIR), export_entry and commit_standalone. Say "before publishing a directory core" instead of "before preparing a standalone export". Nit.
c) helios/src/core/cache.rs:3689-3692 error text: "filesystem at {parent} does not support atomic no-replace directory publication: {error}" — good: names the path (which #54's operator could not get from Invalid argument (os error 22)) and the unsupported operation. Keep.
d) tests/preparation/test_directory_preflight.py:1 docstring "Standalone directory exports reject unsupported publication before capture." — "before capture" is only true of the model_core.export_core path (ignition/preparation/model_core.py:41-42); the test file also covers ignition convert-style preflight only through the native function. Minor; the phrase is defensible for the Python file. Nit, low value.
e) Prose in the new tests is clear and states the invariant being checked (archive.rs:712-714 "Linking needs only search permission on the source directory, but unlinking also needs write permission. Publication must not unlink."). This is a good example of the required style; no action.
One real prose/consistency defect that is prose-adjacent but code-visible: the two halves of the change disagree about which errno set means "unsupported". archive.rs:479 treats only {EINVAL, ENOTSUP}; cache.rs:3687 treats {EINVAL, ENOTSUP, ENOSYS}. A reader of the error text cannot tell why a filesystem probing ENOSYS gets a clean message but an ENOSYS rename at blob install is reported raw. Report as should-fix on documentation grounds: document the chosen set in one place (the preflight doc comment) or use one set. (Code-behavior part belongs to the correctness lens; I only record the undocumented divergence.)
#6 [medium] Nit: PR title and commit/packaging prose consistency
Rules checked: CONTRIBUTING.md:7-11 ("We require that all contributors 'sign-off' on their commits... Any contribution which contains commits that are not Signed-Off will not be accepted"), AGENTS.md:24-36 (pre-commit staged review + acknowledgment hook), docs/design-review.md:151-198 (commit message must follow the four-part scheme; Design-Signed-Off-By trailer).
Observed on pr/79 history (search_history on pr/79 and archive.rs):
- 06b9011a "fix(heliopause): preserve publication preflight across core renaming" (2026-11-13) — latest commit, a merge of main (subject says "preserve publication preflight"; yatesdr noted it is a main merge). No issue number in the subject.
- 30ccc0de "fix(heliopause): leave blob temporary cleanup to its caller", 2c57bfa8 "fix(export): preflight atomic directory publication", 989f013b "fix(heliopause): fall back on unsupported no-replace rename".
Prose issues I can substantiate from the tree:
- Commit subjects are terse "fix(...)" lines with no body visible in the history listing; whether they carry the four-part body and Design-Signed-Off-By cannot be checked from the tools here. yatesdr's review already states 989f013b, 2c57bfa8, 17a4aa76 and 30ccc0de lack Signed-off-by; I could not independently verify trailers, so I record it as unverified-but-raised rather than a finding of mine.
- The branch contains repair commits for the same change (30ccc0de fixes the cleanup behaviour of 989f013b; 06b9011a is a merge of main). prose skill lines 26-29/40-43: history is not content; squash so each commit states the problem, resulting behavior and evidence. This is process, so nit severity for my lens.
- The PR title still reads "fall back when no-replace rename is unsupported" while the branch also adds a directory preflight that refuses on mergerfs. Title under-describes the change; consider "fix(export): fall back for blob publication and preflight directory no-replace support". Nit.
Also: the open question of whether the new test file needs an SPDX header: every other file in tests/preparation carries # SPDX-License-Identifier: Apache-2.0 (verified by searching that directory; 100+ files all have it), and tests/preparation/test_directory_preflight.py:1 starts directly with the docstring. pyproject.toml:9-10 sets license = "Apache-2.0" and license-files, but no rule text I can find mandates the per-file header, so I cannot show a violated written rule. Report as nit: add # SPDX-FileCopyrightText: ... / # SPDX-License-Identifier: Apache-2.0 for consistency with every sibling test file.