Document the inventory-only publication reader

This commit is contained in:
2026-12-02 17:48:12 +00:00
parent 3c5533d310
commit 845738a665
2 changed files with 14 additions and 4 deletions

View File

@@ -221,8 +221,8 @@ identity before replacing a canonical local path.
Core helpers:
- `LoadCurrentInventory` and `LoadCurrentState`
- `ValidateCurrentStateIdentity`
- `LoadCurrentInventory`, returning the selected `CurrentState`
- `CurrentStateValidation`, supplying optional expected publication identity
- `RemoteCommitManifest` and `CurrentCommitPointer`
Typed missing-state error:
@@ -233,7 +233,12 @@ Identity validation supports caller-provided expectations:
- expected campaign;
- expected session ID;
- expected run ID, or pointer/manifest run-ID consistency check.
- expected publication run ID.
The reader always checks campaign, session, and run identity agreement between
the current pointer and selected publication inventory. It verifies the selected
inventory's namespace, size, checksum, and storage generation. These reads use
the pointer and inventory; execution-snapshot bodies are not fetched.
Caller policy is intentionally outside artifacts helpers:

View File

@@ -126,7 +126,12 @@ inspection behavior.
## 4. P3: Remove retired execution-snapshot APIs from internal documentation
Status: Open
Status: Complete
Resolution: artifact internals now identify `LoadCurrentInventory`,
`CurrentState`, and `CurrentStateValidation`, and describe publication
pointer/inventory identity checks. Compared directly with `current_state.go`
and `current_state_commit.go`; verified with `go test ./internal/doccheck`.
Affected stages: 8, 9, and 13.