Archive verified rollbacks of interrupted activation journals
ABSDEV Framework CI / framework-ci (push) Successful in 20s

This commit is contained in:
Mark Gregory
2026-11-30 12:37:34 +00:00
parent 054c546c8f
commit 611f8d0f3d
5 changed files with 55 additions and 11 deletions
+4 -5
View File
@@ -11,6 +11,9 @@ from core.compatibility import (
from core.locking import DeploymentLock
ROLLBACK_ELIGIBLE_PHASES = frozenset({"ACTIVATING", "ACTIVATED", "FAILED"})
class RecoveryError(RuntimeError):
"""Recovery safety could not be established."""
@@ -140,11 +143,7 @@ class RecoveryPlanner:
)
require(
transaction["phase"] in (
"ACTIVATING",
"ACTIVATED",
"FAILED",
),
transaction["phase"] in ROLLBACK_ELIGIBLE_PHASES,
"Transaction phase does not permit rollback review",
)