fix(cleanup): revalidate destructive backend plans
lint / lint (push) Successful in 1m2s
test / unit (pull_request) Successful in 52s
test / image-input-builds (pull_request) Successful in 2m42s
test / integration-docker (pull_request) Failing after 2m58s
test / coverage (pull_request) Has been skipped
tracker-policy-pr / check-pr (pull_request) Successful in 10s

This commit is contained in:
2026-07-27 03:01:26 +00:00
parent 0255d29ff1
commit 01726a5c03
8 changed files with 176 additions and 43 deletions
+5 -1
View File
@@ -52,7 +52,11 @@ def cmd_cleanup(_argv: list[str]) -> int:
info("cleanup: skipped")
return 0
for name, backend, plan in prepared:
# Confirmation authorizes a fresh authoritative snapshot, not blind use of
# identities that may have changed while the operator reviewed the preview.
refreshed = [(name, backend, backend.prepare_cleanup())
for name, backend, _plan in prepared]
for name, backend, plan in refreshed:
if plan.empty:
continue
backend.cleanup(plan)