Document durable session cleanup

This commit is contained in:
2026-11-30 14:08:28 +00:00
parent e9d74a7de0
commit 719a6839d1
14 changed files with 84 additions and 60 deletions

View File

@@ -330,12 +330,11 @@ writes, or run-directory creation. Excluded prefix records are not passed to
resume validators. Records after the selected end are not prerequisites and
may be made stale by selected work without being scheduled.
After a publish commits remotely, any configured local cleanup is first recorded
as a session-manifest obligation before deletion begins. Each target becomes
complete only after its confined deletion (or safe absence check) and a
successful manifest save. An incomplete obligation is retried when publish
executes again and retains the committed run and remote identity that authorized
it; an invocation that does not execute publish does not perform cleanup.
Cleanup is an ordinary selected stage. It validates recorded successful
publication evidence before deleting local run history, saves its normal stage
transition, and retries incomplete work on a later selected invocation without
republishing. Historical run-local paths in records are provenance, not a
requirement that those files remain present. See [cleanup](stage-cleanup.md).
Each invocation derives campaign, session, run, local-path, and remote-prefix
metadata from the validated resolved configuration as one projection. A persisted