Document durable session cleanup
This commit is contained in:
@@ -35,14 +35,14 @@ into run-local output space.
|
||||
Polish and extraction write to actual run-local output, log, and debug paths.
|
||||
Each attempt advances managed relative `logs/<stage>` and `debug/<stage>` links;
|
||||
skips do not rotate them. Restore has its own diagnostic attempt. Extraction
|
||||
promotes validated lanes to flat artifacts and retains the original bundle in
|
||||
the producing run. See [Operations](../operations.md#local-state-layout).
|
||||
promotes validated lanes to flat artifacts; the original bundle remains in
|
||||
the producing run until cleanup. See [Operations](../operations.md#local-state-layout).
|
||||
|
||||
Prepared references delivered to Notarius use session-durable paths owned by
|
||||
`internal/artifacts` beneath
|
||||
`inputs/references/<sha256>/<prepared-basename>`. These verified
|
||||
content-addressed snapshots are outside run-local layout, survive ordinary
|
||||
published-run cleanup, and are excluded from publish and restore enumeration.
|
||||
session run-history cleanup, and are excluded from publish and restore enumeration.
|
||||
|
||||
## Locking
|
||||
|
||||
@@ -53,8 +53,8 @@ not evidence that a lock is active. Command and restore flows wait for this
|
||||
lock only while their context remains active, and report a release failure.
|
||||
|
||||
The runner assigns every invocation a run-workspace identity but creates the
|
||||
physical directory only before an executing stage that requires it. Fully
|
||||
reused invocations and cleanup-only invocations therefore do not accumulate
|
||||
physical run directory and its `runs/` parent only when an executing stage
|
||||
requires them. Fully reused invocations and cleanup-only invocations therefore do not accumulate
|
||||
empty run directories.
|
||||
|
||||
## Cleanup Semantics
|
||||
@@ -66,6 +66,7 @@ The canonical cleanup stage:
|
||||
ID, remote commit key, and current commit-pointer key;
|
||||
- consumes the resolved cleanup policy described in
|
||||
[Configuration](../config.md);
|
||||
- removes the entire session run history and recognized managed diagnostic views;
|
||||
- refuses unsafe deletes (root delete, traversal, and out-of-root targets);
|
||||
- treats missing targets as successful, idempotent deletion; and
|
||||
- uses its ordinary failed/succeeded manifest stage record for retry. A later
|
||||
|
||||
Reference in New Issue
Block a user