- a restore whose apply failed can be undone from its safety copy, which is its recovery: the failed apply stops
fencing the target in the transaction that starts the undo (job phase rolled_back, audited restore.rolled_back);
an apply whose agent went silent still waits for an administrator to reconcile it; reconciled restores can be undone
- run views carry undo_state (available, superseded, expired), undo_kept_until, undo_of and restore_job_id
- undo state for a list is worked out in one database pass and a file lookup per copy; the vault is read only for the
newest restore of each target
- eligibility is checked again inside the transaction that creates the run
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>