Add native restore and session cleanup commands

This commit is contained in:
2026-11-20 05:41:16 +00:00
parent 6b7a0847d4
commit 85df36a770
14 changed files with 665 additions and 423 deletions

View File

@@ -568,6 +568,18 @@ bootstrap. File formatting is independent of report formatting.
## Stage 14: Convert restore and local cleanup commands
**Completed.** Native restore and session-clean declarations return separate
public action reports after resource release, including conflicts and completed
work on failure. Restore retains pointer authority, transition locking, recovery
markers, confined replacements, and manifest-last installation; its planner no
longer creates directories or changes their modes during dry runs. Cleanup
retains the exact workspace/spool/cache scopes and cache opt-in, checks --all
selection conflicts before bootstrap, and loads only pipeline context for that
mode. Removed top-level cleanup implementation. Focused restore/recovery/cache,
cleanup confinement/partial-failure, native selection, composition, package,
build, and diff checks pass with Go 1.27.4. Legacy workflow/parser assertions
continue their scheduled conversion before final verification.
Read: `restore.go`, `restore_plan.go`, `restore_execute.go`,
`restore_report.go`, `clean.go`, and their focused safety tests.