Document and verify published product imports

This commit is contained in:
2026-12-02 16:49:46 +00:00
parent 56483f9064
commit e5d91cb19b
32 changed files with 330 additions and 265 deletions

View File

@@ -189,13 +189,9 @@ restore, status and validation checks, and previous-cache planning.
`LoadCurrentInventory` reads and verifies the pointer-selected commit without
fetching an execution snapshot. Status, publication inspection, and session
configuration acquisition and previous-session acquisition use that inventory.
The existing restore path still uses the snapshot reader until its cutover.
The selected session manifest is accepted only with
`schema_version: narratio.session-manifest.v2` and complete stage identity.
An unsupported local or downloaded manifest must be replaced by regeneration,
verified restore, or republication; artifact resolution never fills in missing
authority markers.
Restore uses the same inventory. Obsolete execution-snapshot declarations are
ignored without reading their contents; unsupported local progress must be moved
aside before creating a new local baseline.
For a new-protocol current state, the pointer-selected immutable commit is the
complete restore authority. Callers receive its declared object identities and
@@ -207,10 +203,9 @@ Only this declaration type may refer to an earlier run; other declared objects
remain confined to the selected commit's run.
The reader opens each small control object directly and enforces owner-specific
limits before decoding: 64 KiB for the mutable commit pointer, 4 MiB for the
immutable commit manifest, and 8 MiB for the selected session manifest. These
are exposed as `MaxCurrentCommitPointerBytes`,
`MaxRemoteCommitManifestBytes`, and `MaxRemoteSessionManifestBytes`.
limits before decoding: 64 KiB for the mutable commit pointer and 4 MiB for the
immutable commit manifest. These are exposed as `MaxCurrentCommitPointerBytes`
and `MaxRemoteCommitManifestBytes`.
Each read uses the generation and size metadata returned with its opened body.
Actual bytes remain subject to a limit-plus-one read even if size metadata is