Transfer publication sources one at a time

This commit is contained in:
2026-12-01 20:33:18 +00:00
parent d311579dc0
commit f59a53e31b
9 changed files with 225 additions and 25 deletions

View File

@@ -79,7 +79,8 @@ supports remote loading when no authored session override is available. The
- an initially locked source with no prior declaration remains absent even
when the output rule is required. Optional missing unlocked outputs remain
absent; required missing unlocked outputs fail.
- creates one complete immutable source-to-destination mapping before upload;
- creates one complete immutable source-to-destination mapping before upload,
then opens, verifies, transfers, and closes sources sequentially;
- uploads and verifies every declared immutable object and the commit manifest;
- writes the immutable commit from the combined new and exact carried
declarations.
@@ -107,8 +108,9 @@ Includes counts/lists for:
- run files, selected outputs, previous-cache files, and the committed session
manifest are all declared by an immutable commit under the run prefix.
- run and previous uploads contain only manifest-declared regular files opened
from verified descriptors; symlinks, special files, replacement races, and
undeclared entries are rejected or ignored before uploads begin.
from verified descriptors. Symlinks, special files, and changed declared
content are rejected; undeclared entries are ignored. A later invalid source
can leave earlier immutable uploads unselected.
- run-local diagnostics, including Notarius completion report and stderr files, are
archived only when recorded by the session manifest. A run with no declared
current-run diagnostics legitimately uploads none.

View File

@@ -503,7 +503,10 @@ The run upload is an allowlist derived from the session manifest's declared
current-run outputs, logs, and generated configurations, not a workspace scan.
References to canonical session files and prior-run paths are excluded. Each
declared source is opened without following symlinked ancestors or the leaf,
verified as a regular file, and streamed from that verified descriptor.
verified as a regular file, and streamed from that verified descriptor. After
destination planning, sources are verified and transferred sequentially. A
later invalid source can leave unselected immutable uploads; the current
publication remains unchanged.
Unlisted files and unsafe entries are never uploaded; a run with no declared
current-run diagnostics uploads no run-local files. No distinguished diagnostic
file is uploaded. The original bundle is never scanned for implicit publication;

View File

@@ -252,6 +252,8 @@ contracts belong under [Integrations](../integrations/).
Publish has one explicit remote commit boundary. A remote run becomes current
only after Narratio has successfully uploaded its immutable run-scoped objects,
the immutable commit manifest, and finally the current commit pointer.
Destination planning precedes sequential source verification and transfer;
failed attempts may leave immutable objects that are not selected as current.
`current/commit-pointer.json` is the sole mutable selector and must be written
exactly once, last. Failed, incomplete, skipped, or uncommitted publish attempts

View File

@@ -385,6 +385,10 @@ second transfer implementation merely for an intermediate green build.
## Stage 11: Transfer and close publication sources sequentially
**Complete:** Each source is opened, checked, uploaded or verified, and closed
before the next. Tests cover bounded handles, same-handle uploads, failures,
cancellation, and preservation of the previous pointer after late failure.
Continue RS-01 and inspect confined source opening, transfer preparation,
immutable-object verification, and publication finalization.