Read publication inventory without execution snapshots
This commit is contained in:
@@ -190,9 +190,8 @@ narratio session artifacts SESSION --remote
|
||||
|
||||
Reports definitions, dependencies, local availability/evidence, and optional
|
||||
remote publication state without reading artifact payload bodies. Without
|
||||
`--remote`, this command avoids remote artifact inspection. Current publication
|
||||
outcomes include `published`, `carried_locked`, `locked_unpublished`,
|
||||
`optional_missing`, and `unselected`.
|
||||
`--remote`, this command avoids remote artifact inspection. Remote entries use
|
||||
the selected publication inventory and current lock state.
|
||||
|
||||
## Session init
|
||||
|
||||
@@ -372,7 +371,7 @@ Plan analysis contains `targets`, `prerequisites`, `execute`, and `reuse`;
|
||||
artifact entries identify key, optional family/character, role, reason, and
|
||||
force. Publication actions identify source, destination, required, and selected.
|
||||
Remote status outputs retain source, destination, required, state, lock state,
|
||||
optional outcome, declared destination/key, origin run, and error. Restore
|
||||
declared destination/key, origin run, and error. Restore
|
||||
actions carry kind, relative local path, remote key, status, optional reason/error.
|
||||
Clean actions carry path, status (`would_delete`, `deleted`, `missing`, `empty`,
|
||||
`failed`), and optional error; cache records whether it was preserved, requested,
|
||||
|
||||
@@ -186,6 +186,10 @@ Validation by content type:
|
||||
|
||||
Artifacts package owns shared remote current-state loading mechanics used by
|
||||
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 use that inventory. The existing restore and
|
||||
previous-cache paths still use the snapshot reader until their cutover.
|
||||
|
||||
The selected session manifest is accepted only with
|
||||
`schema_version: narratio.session-manifest.v2` and complete stage identity.
|
||||
@@ -218,7 +222,7 @@ identity before replacing a canonical local path.
|
||||
|
||||
Core helpers:
|
||||
|
||||
- `LoadCurrentState`
|
||||
- `LoadCurrentInventory` and `LoadCurrentState`
|
||||
- `ValidateCurrentStateIdentity`
|
||||
- `RemoteCommitManifest` and `CurrentCommitPointer`
|
||||
|
||||
|
||||
@@ -286,7 +286,7 @@ Validation: `go test ./internal/app ./internal/stage ./internal/config`.
|
||||
|
||||
## Stage 8: Separate publication inventory reads from execution snapshots
|
||||
|
||||
Status: Pending
|
||||
Status: Complete
|
||||
|
||||
Read `artifacts/current_state*.go`, `remote_commit.go`, application remote
|
||||
discovery/status/configuration consumers, and their tests.
|
||||
|
||||
Reference in New Issue
Block a user