Restore Is Not Rollback: Monotonic Recovery for Stateful Safety Systems
Public source edition. Original dates, research statuses, numerical results and stated limits belong to this source. Any private material is identified by a custody notice in the text.
Restore Is Not Rollback: Monotonic Recovery for Stateful Safety Systems
Author: E. M. Honeycutt III Affiliation: Honeycutt Ai Labs, Princeton, TX License: CC BY-NC 4.0
The short version
State restoration is normally understood as replacement of current state with an earlier snapshot. That model is unsafe for systems in which authority, revocation, expiry, lineage, or safety policy may have changed after the snapshot was created. A literal rollback can restore not only historical data but also historical capability, resurrecting permissions that were subsequently revoked or expired.
This paper defines a monotonic recovery model in which historical state may be restored without restoring historical authority. Recovery is treated as a typed state transition rather than time reversal. The restore operator reconstructs recoverable historical state while reconciling it against a current protection floor containing non-resurrectable revocations, expirations, prohibitions, lineage restrictions, and capability invalidations.
Let $S_\tau$ be a historical snapshot and (S_t) the current state. Conventional rollback computes
$$ S_{t+1} = S_\tau. $$
The proposed restore semantics instead compute
$$ S_{t+1} = \mathcal R(S_t,S_\tau,e_R), $$
subject to the invariant
$$ \Pi_{S_{t+1}}(x) \succeq \Pi_{S_t}(x) $$
for every protected request (x), unless an independently authorized relaxation operation explicitly permits a decrease.
We formalize authority tombstones, expiration monotonicity, capability reissue, lineage-aware restoration, replay protection, restore receipts, crash-safe reconciliation, and preservation of post-snapshot evidence. We distinguish three classes of state: restorable historical data, reconstructable derived state, and non-rollback protection state. The paper specifies property-based and sequence-based tests for whether combinations of grant, snapshot, revoke, expire, restore, replay, correction, and reissue can resurrect authority.
The central result is simple:
$$ \boxed{ \text{Restore may recover history; it may not erase later protection.} } $$
This separation makes recovery compatible with auditable safety rather than treating rollback as an exception to it.
Introduction
Snapshots are one of the most useful mechanisms in computing. They support recovery from corruption, debugging, disaster restoration, experiment replay, configuration rollback, database recovery, and virtual-machine restoration. Their intuitive semantics are straightforward: return the system to the way it was.
That intuition becomes dangerous when "the way it was" includes authority.
Suppose capability (c) was valid when snapshot $S_\tau$ was created. Later, (REVOKE(c).) occurs. A fault then causes the system to restore $S_\tau$. If restoration literally replaces current state with the snapshot, the system may return to (Authorized(c)=1.) The revocation disappears because, from the snapshot's perspective, it has not happened yet. Operationally, however, the revocation did happen. Recovery has therefore converted an administrative repair operation into an authorization event.
The same problem appears with expired credentials, revoked API tokens, terminated delegations, updated deny policies, lineage-specific restrictions, emergency prohibitions, and corrected authority records. A restore system must therefore answer a question that conventional rollback semantics largely avoid: which parts of history are allowed to come back? This paper develops a formal answer.
Core Distinction
A rollback attempts to recover an earlier complete state: $Rollback(S_\tau)=S_\tau.$ A restore reconstructs selected historical components under current invariants: $Restore(S_t,S_\tau) = S_\tau \text{ reconciled with current constraints}.$
$$ \boxed{ Restore\neq TimeTravel. } $$
Historical data may return. Historical authority does not automatically return with it.
State Decomposition
Let complete system state be
$$ S= (D,E,A,R,X,L,P,V), $$
where (D) is ordinary data and configuration; (E) is evidence and provenance; (A) is active authorization and capabilities; (R) is revocations and prohibitions; (X) is expiration and invalidation state; (L) is lineage and delegation relationships; (P) is protection policy; and (V) is versions, receipts, replay metadata, and ledger state. For recovery purposes these components are classified by restore semantics rather than merely storage location.
Three Restore Classes
Historical-restorable state, (S_H), is state that may ordinarily be recovered from the snapshot. Examples include user data, model artifacts, configuration, ordinary metadata, and non-authoritative workflow state.
Reconstructable state, (S_C), is state that should be recomputed from authoritative records rather than copied literally. Examples include caches, derived indexes, effective policy calculations, and materialized views. Any value derived from protection rules or revocation records must be classified as reconstructable rather than historical-restorable, even when the value is stored alongside ordinary configuration. A stale derived-policy value restored from (S_H) without recomputation can silently weaken protection without triggering tombstone-preservation checks.
Non-rollback protection state, (S_P), is state whose post-snapshot changes survive restoration. This class covers revocation tombstones, expired capability records, permanent invalidations, current protection floors, lineage restrictions, and post-snapshot prohibition events.
The restore operator treats these classes differently.
Protection Function
Let (D_R) denote the request domain. Define effective protection
$$ \Pi_S:D_R\rightarrow\mathcal P, $$
where $\mathcal P$ is an ordered protection space, for example
$$ ALLOW \prec REQUIRE_AUTH \prec DENY. $$
An ordinary restore must satisfy
$$ \boxed{ \forall x\in D_R: \Pi_{S'}(x) \succeq \Pi_{S_t}(x). } $$
Restoration cannot make any protected request easier solely because an older snapshot contained weaker policy.
Restore Operator
Let (S_t) be current state, $S_\tau$ a historical snapshot, and (e_R) the restore event. Define
$$ S' = \mathcal R(S_t,S_\tau,e_R). $$
Conceptually,
$$ \mathcal R = Merge( HistoricalBase(S_\tau), CurrentProtectionFloor(S_t), ReconstructedDerivedState ). $$
A convenient semantic expression is
$$ S' = S_\tau^{restorable} \oplus S_t^{nonrollback} \oplus Recompute(S_\tau,S_t). $$
The operator $\oplus$ is not ordinary object merge; it obeys typed precedence rules.
Protection Floor
Define the current protection floor (F_t). For every protected request (x), (F_t(x)) is the minimum protection level that may survive an ordinary restore. Then
$$ \Pi_{S'}(x) = \Pi_{snapshot}(x) \vee F_t(x), $$
where $\vee$ denotes the protection join. Therefore if the snapshot says (ALLOW) but the current floor says (DENY), the restored state is (DENY).
Revocation Tombstones
A revocation must survive deletion or restoration of the original capability object. Let capability (c) have identifier (id(c)=u). A revocation creates a durable tombstone
$$ T_u= ( u, scope, lineage, time, reason, event_id ). $$
Once active, ordinary restore cannot erase (T_u). Thus (Revoked(u)=1) remains true across historical restoration. The capability's former existence may return as provenance; its operational authority cannot.
Assumption A0 (State-classification completeness). Every field affecting protection or authority is correctly classified as historical-restorable, reconstructable, or non-rollback protection state. Values derived from protection state are reconstructable. The Main Theorem is conditional on this classification being correct and complete.
Assumption A1 (Tombstone store write-protection). The tombstone ledger and safety ledger are stored on a medium that the ordinary restore operator cannot overwrite. All theorems in this paper that rely on tombstone inviolability are scoped to implementations satisfying A1. The restore operator may read the tombstone ledger to perform reconciliation; it does not hold write authority over it. The Persistent Safety Ledger section elaborates the architectural separation. In disaster-recovery scenarios where the tombstone store itself may be damaged, a separate recovery contract governs reconstitution of the safety ledger before ordinary restore is permitted to proceed.
Assumption A2 (Atomic revocation). The model assumes each revocation operation commits atomically: the tombstone is written and the capability record is invalidated as a single durable unit before any snapshot can capture a semantically coherent revocation state. Revocation protocols that involve intermediate states (for example, PENDING_REVOKE without a committed tombstone) require additional mechanism not addressed here. A snapshot capturing a mid-revocation intermediate state falls outside the model's operating assumptions. The Restore Against a Moving State, Theorem 5: Freshness Preservation, and Concurrency Threat sections address concurrent revocation during restore preparation; they do not address partially committed revocations at snapshot time.
Theorem 1: Revocation Non-Resurrection
Suppose (Grant(c)) occurs at (t_1), snapshot $S_\tau$ is created at (t_2), and (Revoke(c)) occurs at (t_3>t_2). For any ordinary restore of $S_\tau$ at (t_4>t_3),
$$ \boxed{ Authorized_{t_4}(c)=0. } $$
Under Assumption A1 the revocation tombstone is stored in a medium the restore operator cannot overwrite. Therefore (T_u) survives restoration. Effective authorization requires $Grant(c) \land \neg Revoked(c)$. Since (Revoked(c)=1), authorization remains false regardless of historical grant presence. Under Assumption A2 the revocation is atomic: if (Revoke(c)) committed before the snapshot at (t_2), the tombstone was present at snapshot time. If (Revoke(c)) committed after the snapshot, the tombstone post-dates the snapshot and survives restore by A1. There is no intermediate state in which a snapshot could capture a partially revoked capability that lacks its tombstone.
Expiration Is Monotonic
A capability valid during the snapshot may later expire. Let (expiry(c)=t_e). For current time (t>t_e), ordinary restore must not make (Valid(c)=1). Thus
$$ \boxed{ Expired(c) \Rightarrow \neg RestoreValidity(c). } $$
Expiration is evaluated against current authoritative time and current ledger state, not snapshot-local time. This guarantee applies to single-node systems or systems with a strongly consistent authoritative time source. Distributed deployments with clock skew or multiple time authorities must designate a canonical time oracle; without one, the expiration guarantee cannot be mechanically enforced against all nodes simultaneously.
The Clock-Rollback Problem
A snapshot may contain historical wall-clock state, cached expiration decisions, and lease timestamps. Recovery must not evaluate validity as if current time had returned to the snapshot epoch. Otherwise (t_{snapshot}<t_e<t_{current}) could incorrectly imply (Valid(c)=1). Restore therefore distinguishes (HistoricalTime) from (AuthorizationTime). Current authority is evaluated against the latter.
Scheduled Expiry
Temporary authority may be validly configured to end at (t_e). The expiration itself may be considered preauthorized when the grant is created. Restoration after (t_e) therefore cannot revive the grant. The ledger records $GRANT \rightarrow EXPIRED.$ The historical GRANT remains visible; EXPIRED remains authoritative.
Capability Reissue
A revoked capability may later need to be granted again. The system should not reactivate the old identifier. Instead create (c') with $id(c')\neq id(c).$ The new capability receives current scope, current lineage, current expiry, and current authorization event. Thus
$$ Reissue(c)\neq Unrevoke(c). $$
This prevents restoration or replay from confusing the new authority with an earlier revoked object.
Theorem 2: Reissue Freshness
If capability (c) was revoked and a later capability (c') is validly issued, then (Authorized(c)=0) and (Authorized(c')=1) may simultaneously hold. Restoring a snapshot containing (c) does not affect (c'), nor does it reactivate (c). Capability identity therefore encodes issuance lineage.
Global and Lineage-Scoped Revocations
Suppose authority exists within lineage (L_1). A revocation may be Global or LineageScoped(L_1). Restoring a snapshot into descendant lineage (L_2) must evaluate current lineage restrictions. A historical grant in (L_1) cannot simply migrate into (L_2). Authorization becomes a function (Authorized(c,L,t).) Restore must therefore preserve current lineage semantics.
Cross-Lineage Restore
Let snapshot $S_\tau$ belong to lineage (L_a) and current destination state belong to (L_b). Restoration is admissible only under an explicit lineage mapping $M:L_a\rightarrow L_b.$ Data may be mapped; authority is not automatically mapped. The default rule is (AuthorityTransfer=DENY.) A capability from (L_a) requires fresh reauthorization if it is to operate in (L_b).
Theorem 3: Lineage Non-Transfer
For capability (c) scoped to lineage (L_a),
$$ Restore(S_\tau^{L_a}\rightarrow L_b) $$
does not imply (Authorized(c,L_b)=1.) Authority transfer requires a separately authorized event; restore alone cannot provide it.
Evidence Preservation
Recovery presents a second issue beyond authority. Suppose new evidence (E_{new}) was added after snapshot creation. Literal rollback would erase it. In scientific or audit-sensitive systems, this may silently rewrite the evidentiary record. The restore contract should therefore classify evidence by whether post-snapshot evidence is immutable, mergeable, branch-specific, or explicitly replaceable. A conservative default is that post-snapshot evidence survives restore unless explicitly superseded by a correction event.
Restore Is Not Correction
Restore and correction solve different problems. RESTORE_STATE means: reconstruct historical operational state under present invariants. CORRECT_STATE means: assert that some recorded state was erroneous and replace it under an explicit correction contract. Therefore, (RESTORE) cannot be used to bypass (CORRECT). If current protected state is believed to be wrong, an explicit correction or relaxation mechanism is required.
Restore Is Not Relaxation
Suppose current state contains (DENY(x)) and the snapshot contains (ALLOW(x)). If the operator genuinely intends to weaken protection, the correct event is not (RESTORE); it is an explicit authorized relaxation operation. Thus
$$ \boxed{ RESTORE\not\Rightarrow RELAX. } $$
This separation preserves an auditable record of why protection decreased. The RESTORE invariant is conditional on the RELAX channel itself being protected: the guarantee holds when the authorization requirements governing RELAX events are independently enforced. An attacker who can issue RELAX events without authorization can circumvent the invariant through the RELAX path; this is a threat against the RELAX authorization system, not against the RESTORE semantics defined here.
Theorem 4: Protection Monotonicity Under Restore
For every ordinary restore:
$$ \boxed{ \Pi_{\mathcal R(S_t,S_\tau)}(x) \succeq \Pi_{S_t}(x) \qquad \forall x. } $$
If the candidate restored state violates this property, restore is rejected or reconciled before commit. This theorem is independent of snapshot age.
Restore Preflight
Before commit, restore should compute a candidate state $\hat S$ and validate: (1) snapshot integrity; (2) snapshot provenance; (3) schema compatibility; (4) lineage mapping; (5) protection floor; (6) revocation tombstones; (7) expiration state; (8) replay metadata; (9) current non-rollback events; (10) evidence-preservation rules. Only after these checks does $S\leftarrow\hat S$ occur.
The protection floor check (item 5) must evaluate $\Pi$ using the canonical selector partition induced by the post-restore candidate state $\hat S$, not the partition of (S_t) alone. Because restoration may introduce historical policy objects that alter the selector partition, adding or splitting canonical cells, the pre-restore partition of (S_t) may not cover all cells present in $\hat S$. The floor comparison must be performed on every cell of the partition of $\hat S$. This is required for correct composition with Protection Monotonicity and Canonical Selector Algebra for Auditable State Machines (publication P-025)'s canonical selector algebra: Protection Monotonicity and Canonical Selector Algebra for Auditable State Machines (publication P-025) constructs the partition from active policy objects at the target state; the target state here is $\hat S = \mathcal R(S_t, S_\tau)$.
Compute-Verify-Commit
Safe restore follows the sequence $Snapshot \rightarrow Candidate \rightarrow Reconcile \rightarrow Verify \rightarrow Commit$, not $ReplaceCurrentState \rightarrow DiscoverProblem \rightarrow AttemptRepair$. The current safe state remains active until the candidate restore passes all invariants.
Restore Receipts
Every restore should produce a receipt
$$ r_R= ( event_id, snapshot_id, snapshot_version, current_version, restored_fields, preserved_fields, reconstructed_fields, surviving_revocations, expired_capabilities, lineage_mapping, result ). $$
This receipt provides a semantic explanation of what "restore" actually changed.
Restore Diff
A useful audit report separates: historical values restored $D_\tau\rightarrow D'$, current protections retained $R_t\rightarrow R'$, derived values recomputed $C'\leftarrow f(D',R')$, and historical authority suppressed. Suppressed authority means capabilities present in the snapshot but invalid under current state. This makes non-resurrection visible rather than implicit.
Replay Protection
Restore events themselves require replay protection. If restore event (e_R) has already committed, replaying it should return (REPLAY) or the original receipt. It must not execute a second reconciliation against a newer state under stale assumptions.
Restore Against a Moving State
Suppose restore was prepared against version (v). Before commit, a new revocation occurs at $v\rightarrow v+1$. The prepared restore is now stale. It cannot commit merely because its snapshot was previously validated; it must be recomputed against (S_{v+1}). This ensures that protection events occurring during restore preparation survive.
Theorem 5: Freshness Preservation
If restore event (e_R) declares (base_version=v) and current state is (v'>v), the restore cannot commit without revalidation against (v'). Therefore no protection event committed after restore preparation can be lost through stale writeback.
Concurrency Threat
Consider the sequence (RestoreRead(S_v)), then $Revoke(c):S_v\rightarrow S_{v+1}$, then $RestoreWrite(\hat S_v)$. Without version checking, the restore may erase the revocation. The correct result is $RestoreWrite \rightarrow STALE$. The candidate must be recomputed.
Crash Safety
A restore is particularly sensitive to partial commit. Suppose data pages are restored, the revocation ledger is not yet restored, and the process crashes. The resulting state may be semantically inconsistent. Recovery therefore requires transactional commit or equivalent journaling. The invariant is:
$$ \boxed{ \text{A restore is either committed as one valid semantic state or not committed.} } $$
The append-only property of the safety ledger (Theorem 7 below) depends on the ledger being stored on separately durable media from operational state. In total-loss disaster-recovery scenarios where the ledger itself is damaged or destroyed, reconstituting the safety ledger is a prerequisite to any ordinary restore operation. Recovery from ledger loss requires a separate contract not addressed in this paper.
Protection-Biased Reconciliation
If a crash leaves ambiguity about whether a protection-reducing operation occurred, reconciliation should prefer the stronger state. For example, if durable records disagree between (ALLOW) and (DENY) and no valid relaxation receipt proves the decrease, recovery selects (DENY). This is a fail-closed reconciliation policy.
Restore and Replay Interactions
The sequence $Event(e) \rightarrow Snapshot \rightarrow MoreEvents \rightarrow Restore \rightarrow Replay(e)$ creates a replay ambiguity if the snapshot contains an earlier replay cache. The restored system must not forget that (e) was previously consumed if replay metadata is classified as non-rollback state. Otherwise restore could allow duplicate application of historical evidence or authorization.
Theorem 6: Replay-Memory Preservation
For every event (e) committed before current time, (Consumed_t(e)=1). An ordinary restore cannot produce (Consumed_{t+1}(e)=0) where replay would cause duplicated substantive effects. Replay-protection state is therefore part of the non-rollback control plane.
Evidence Replay
In epistemic systems, replay failure has a direct probabilistic consequence. If evidence (E) was applied once, $P_t(H) \rightarrow P_{t+1}(H),$ restoring an old Bayesian snapshot and replaying the same evidence can double count it. Restore must therefore reconcile belief state, evidence ledger, and evidence-consumption receipts. The ledger is authoritative about what evidence has already been used.
Restore of Bayesian State
A historical posterior may sometimes need to be reconstructed, but posterior state is derived from (Prior + EvidenceHistory). Where evidence after the snapshot remains valid, literal restoration of an earlier posterior is incorrect. An alternative approach reconstructs $P(H\mid E_{valid})$ from the retained evidence ledger. This reconstruction is valid when the prior (P(H)) is stable across the restore window. That is, no CORRECT operation changed the prior between snapshot creation and restore time. If the prior was updated after the snapshot, reconstruction using the current prior against historical evidence produces a posterior that was never actually computed; handling prior-change cases requires a retroactive reprocessing protocol not specified here. Thus Bayesian state is often better classified as reconstructable than literally restorable, subject to prior stability.
Administrative Status
Hypothesis statuses such as OPEN, PROPOSE, PROMOTE, PASS, PARK, FAIL may also contain post-snapshot decisions that should not be erased casually. The restore contract should explicitly specify whether status is historical-restorable, mergeable, or ledger-derived. A FAIL receipt, for example, should ordinarily survive restore even if the snapshot predates the failure. Otherwise rollback could resurrect a failed model as if the test never occurred.
General Non-Resurrection Principle
The authority case generalizes. Any event intended to permanently constrain future state should be considered for non-rollback status. Examples include revocation, fail receipt, consumed evidence marker, permanent invalidation, signed correction, legal hold, and security prohibition. The design question is: is this event meant to remain true even if operational state is restored? If yes, it belongs above the rollback layer.
Persistent Safety Ledger
A useful architecture separates (OperationalState) from (SafetyLedger.) Snapshots may capture both for archival purposes, but restoration treats the current safety ledger as authoritative. Conceptually:
$$ OperationalRestore = SnapshotOperationalState + CurrentSafetyLedger. $$
This creates a monotonic control history over mutable operational history. The separation is an architectural requirement for Assumption A1: the restore operator must not hold write authority over the safety ledger. Physical separation, namely separate storage volumes, separate access-control domains, or write-once ledger media, is the implementation mechanism. Logical separation alone is insufficient if the restore operator has physical write access to the storage layer.
Ledger Ordering
Let ledger events be totally ordered by (event_sequence,time,event_id). A restore does not delete events after snapshot time. Instead it inserts a new event $RESTORE(snapshot=\tau).$ History becomes
$$ E_1,E_2,\ldots,E_k, RESTORE(S_\tau), E_{k+1},\ldots $$
rather than truncating the log back to $\tau$. Restore is therefore another event in history, not replacement of history.
Theorem 7: Historical Append-Only Property
If event (e) has been durably committed before restore, then after ordinary restore (LedgerContains(e)=1.) Restore may append reconciliation records; it does not erase committed history. This theorem supplies the provenance basis for non-resurrection. It holds within the model's operating assumption that the ledger is stored on separately durable media from operational state. In disaster-recovery scenarios where ledger durability cannot be guaranteed, for example total primary-storage loss, the append-only property must be reestablished through ledger reconstitution before ordinary restore can proceed.
Snapshot Semantics
A snapshot should be interpreted as a historical observation of state rather than a future authority template. This distinction matters because snapshots often contain secrets, tokens, or policy state that were valid only when captured. Their presence is historical evidence; it is not proof of current validity.
Snapshot Trust
Restore requires checking snapshot authenticity. Relevant properties include integrity, provenance, schema version, creation time, source lineage, cryptographic digest, and known corruption status. A valid snapshot can still contain obsolete authority; integrity does not imply current authorization.
Secret Restoration
Restoring an old secret is especially dangerous if the secret has been revoked or rotated. Suppose key (K_1) was valid in the snapshot. Later it was rotated to (K_2.) Restore should not make (K_1) authoritative again. A key registry or revocation ledger must determine active validity. The restored bytes may exist for forensic reasons while being marked unusable.
External Authority
Some authorization state lives outside the restored system, including certificate authorities, identity providers, external policy services, cloud IAM, and remote revocation lists. Restore must reconcile against these current authorities where they are authoritative. A historical local snapshot cannot override a current external revocation.
Threat Model
The restore architecture addresses the following failure classes.
T1. Revocation resurrection
Old snapshot restores a revoked capability. The model covers pre-snapshot revocations (Theorem 1, under A1 and A2) and concurrent revocations during restore preparation (the Concurrency Threat and Theorem 5 sections). It does not cover revocations captured in an intermediate state by a non-atomic revocation protocol; such deployments require atomic revocation as a prerequisite.
T2. Expiry resurrection
Old snapshot restores an expired lease or token.
T3. Replay-cache rollback
Previously consumed events become executable again.
T4. Evidence rollback
Post-snapshot evidence disappears or is applied twice.
T5. Lineage escape
Authority valid in an old lineage appears in a new one.
T6. Stale restore commit
A restore prepared before a new protection event overwrites it.
T7. Partial restore crash
Some state components commit without their control-plane counterpart.
T8. Secret rollback
Rotated or invalidated secrets become operational again.
T9. Administrative resurrection
Failed or superseded objects return to active status.
T10. Restore-as-relaxation
Operator uses ordinary restore to bypass explicit protection-relaxation requirements.
Security Objective
For all ordinary restore traces $\tau_R$ and every protected request (x),
$$ \Pi_{after(\tau_R)}(x) \succeq \Pi_{before(\tau_R)}(x). $$
For every durable revocation (r),
$$ ActiveRevocation_{before}(r) \Rightarrow ActiveRevocation_{after}(r) $$
unless an independently authorized relaxation or supersession event explicitly changes it.
Property-Based Evaluation
The restore contract is suitable for property-based sequence testing. Generate arbitrary events from GRANT, REVOKE, EXPIRE, SNAPSHOT, RESTORE, REISSUE, CORRECT, RELAX, REPLAY, then verify invariants after every transition.
Property P1: Revocation Survival
Generate $Grant(c) \rightarrow Snapshot \rightarrow Revoke(c) \rightarrow Restore.$ Required: (Authorized(c)=0.)
Property P2: Expiration Survival
Generate $Grant(c,t_e) \rightarrow Snapshot \rightarrow AdvanceTime(t>t_e) \rightarrow Restore.$ Required: (Valid(c)=0.)
Property P3: Reissue Separation
Generate $Grant(c_1) \rightarrow Snapshot \rightarrow Revoke(c_1) \rightarrow Reissue(c_2) \rightarrow Restore.$ Required: (Authorized(c_1)=0); (Authorized(c_2)) is determined solely by its current validity, not by the snapshot.
Property P4: Protection Monotonicity
For every generated restore,
$$ \forall C\in CanonicalProtectionCells: \Pi_{after}(rep(C)) \succeq \Pi_{before}(rep(C)). $$
This connects restore directly to canonical selector verification. The canonical cells are those of the post-restore state $\hat S$, per the partition specification above.
Property P5: Replay Memory
Generate $Apply(e) \rightarrow Snapshot \rightarrow Restore \rightarrow Apply(e).$ Required second result: REPLAY or equivalent no-op.
Property P6: Stale Restore Rejection
Generate $PrepareRestore(S_v) \rightarrow ProtectionEvent(S_{v+1}) \rightarrow CommitRestore.$ Required: STALE or recomputation before commit.
Property P7: Lineage Isolation
Generate snapshot in (L_1) and restore into (L_2). Historical capabilities from (L_1) must not become authorized in (L_2) absent explicit transfer authority.
Property P8: Administrative Non-Resurrection
Generate $H:\ PROMOTE \rightarrow Snapshot \rightarrow FAIL \rightarrow Restore.$ The historical failure receipt remains valid. Restore cannot return the same hypothesis version to PROMOTE merely by loading the old snapshot.
Property P9: Evidence Non-Duplication
Generate $Snapshot \rightarrow Evidence(E) \rightarrow Restore \rightarrow Replay(E).$ Required: (E) is not counted twice.
Property P10: Relaxation Exclusivity
Attempt to reduce protection through restore. Required: REJECT. Then execute separately authorized RELAX_REVOCATION. Only that transition may produce the declared reduction.
Sequence Fuzzing
Randomized traces should include hundreds or thousands of mixed transitions, especially sequences like $Snapshot \rightarrow Revoke \rightarrow Restore \rightarrow Replay \rightarrow Reissue \rightarrow Restore$. The goal is not to test isolated examples only; it is to detect emergent resurrection paths produced by interaction between individually valid operations.
Mutation Testing
Deliberately inject implementation faults: omit tombstone merge; restore snapshot replay cache; use snapshot-local clock; reuse capability identifier; ignore lineage on restore; remove version check; allow restore to overwrite revocation table; restore old posterior without evidence reconciliation. Then verify that the test suite detects each mutation.
Differential Testing
Compare two recovery implementations: a literal rollback baseline $S'=S_\tau$ and monotonic restore $S'=\mathcal R(S_t,S_\tau)$. Run identical generated histories. Measure the frequency of resurrected authorization, duplicated evidence, erased revocation, stale status, and replay acceptance. The literal baseline serves as a negative control.
Reference Implementation Architecture
A minimal implementation contains SnapshotStore, CurrentLedger, RestorePlanner, ProtectionReconciler, ReplayRegistry, InvariantChecker, and TransactionalCommitter. The snapshot store is historical. The current ledger is authoritative. The restore planner never receives unilateral permission to replace the latter.
Restore Plan
Before execution, generate a typed plan
$$ Plan= ( snapshot, fields_restore, fields_preserve, fields_recompute, suppressed_historical_authority, expected_version ). $$
The plan itself can be audited before commit. This improves both safety and explainability.
Performance Considerations
A full reconciliation may be more expensive than raw snapshot replacement. Potential costs include replay-ledger scanning, protection recomputation, evidence reconstruction, selector comparison, and cryptographic verification. Optimizations include monotonic tombstone indexes, Merkleized ledgers, checkpointed protection floors, incremental replay filters, and cached canonical policy partitions. Performance optimization must not alter the semantics.
Related-Work Positioning
Restore semantics intersect several established areas of systems research.
Database systems distinguish write-ahead logs, checkpoints, undo, and redo. The foundational treatment is Gray and Reuter (1992), which defines the transaction and recovery model underlying most commercial database systems. The ARIES protocol (Mohan et al. 1992) extends this with fine-granularity locking and physiological logging, providing the log-structured recovery model on which modern WAL-based systems are built. The present contribution focuses specifically on semantic non-rollback state, especially authority and revocation, that must survive restoration even when ordinary application state returns to an older version. ARIES and its successors address crash recovery for data integrity; they do not address recovery-time resurrection of authority objects that have been administratively invalidated.
Event-sourced systems reconstruct state from append-only histories (Fowler 2005; Young 2010). The proposed safety ledger follows a related principle: restore is itself another event rather than deletion of later history.
Capability systems provide explicit authority objects (Dennis and Van Horn 1966; Saltzer and Schroeder 1975). Monotonic restore adds lifecycle semantics ensuring that historical possession does not imply present validity.
Security infrastructures already recognize that old credentials must remain invalid after revocation. The present work generalizes that principle to arbitrary stateful recovery.
Security systems often prefer fail-closed behavior. The restore model gives this principle an explicit transition semantics: current protection forms a floor beneath historical reconstruction.
Distributed systems must reconcile clocks, versions, and partially replicated state after failure. The present framework contributes a specific invariant for safety-sensitive state: later protection events cannot be erased by local historical rollback. The clock model is stated for single-node or strongly-consistent-time systems; distributed deployments require a designated time oracle.
Distinction From Backup Policy
This is not primarily a paper about backup retention. A backup may be perfectly valid and complete while containing unsafe historical authority. The question is not whether the snapshot is trustworthy; the question is which parts of a trustworthy historical state are allowed to regain operational force. That is a transition-semantics problem.
Distinction From Immutable Infrastructure
Immutable infrastructure reduces configuration drift but does not solve authority resurrection automatically. A historical immutable image may still contain revoked certificates, obsolete secrets, and stale authorization rules. The current authority plane must still dominate restored artifacts.
Falsification Criteria
The architecture fails if any ordinary restore can:
- reactivate a revoked capability;
- reactivate an expired capability;
- erase a durable revocation tombstone;
- cause a consumed event to execute substantively twice;
- restore a failed hypothesis version to active status without a new transition;
- remove valid post-snapshot evidence without an explicit correction;
- move lineage-scoped authority across lineages automatically;
- overwrite a protection event that committed during restore preparation;
- reduce effective protection without an explicit relaxation event;
- produce a durable state lacking its restore receipt.
Criterion 1 applies to fully committed revocations (Assumption A2). A revocation protocol that commits in multiple steps must complete atomically before a snapshot can produce a coherent revocation state; intermediate states such as PENDING_REVOKE without a committed tombstone are outside the model's scope and require additional mechanism. These are direct test targets.
Main Theorem
Let (S_t) be current state and $S_\tau$ a historical snapshot. Assume: (1) committed protection events after $\tau$ are represented in a non-rollback ledger; (2) revocation and expiration validity are resolved from current authoritative state; (3) restore uses current lineage and replay metadata; (4) the candidate restored state is checked against the current protection function before commit, using the canonical selector partition of the post-restore candidate state (per Protection Monotonicity and Canonical Selector Algebra for Auditable State Machines (publication P-025)'s procedure); (5) protection decreases require a separately typed relaxation event.
Assumption A0 (State-classification completeness, restated). Every protection-relevant field is correctly and completely assigned to the historical-restorable, reconstructable, or non-rollback protection class.
Assumption A1 (Tombstone store write-protection, restated). The tombstone and safety ledger store is write-protected against ordinary restore operations. Theorems 1, 7, and the Main Theorem are scoped to implementations satisfying A1.
Assumption A2 (Atomic revocation, restated). Revocations commit atomically. Intermediate revocation states are outside the theorem's scope.
Then for ordinary restore:
$$ \boxed{ \forall x\in D_R: \Pi_{\mathcal R(S_t,S_\tau)}(x) \succeq \Pi_{S_t}(x). } $$
Furthermore, for every capability (c) revoked before restore:
$$ \boxed{ Authorized_{\mathcal R(S_t,S_\tau)}(c)=0. } $$
Thus historical state restoration cannot resurrect revoked authority. The Main Theorem is a correctness condition given the stated design assumptions. The verification obligation is transferred to implementations: an implementation satisfying assumptions 1–5 and A0 through A2 satisfies the invariant by construction. The falsification criteria above are the concrete test targets for any claimed implementation.
Corollary: Restoration Is Monotonic Between Relaxations
Consider a history containing ordinary restores but no authorized protection relaxation between states (S_i) and (S_j). Then
$$ \Pi_{S_i} \preceq \Pi_{S_{i+1}} \preceq \cdots \preceq \Pi_{S_j}. $$
Restoration may move ordinary application data backward. The protection history remains monotonic. This is the defining asymmetry of the architecture.
Design Rule
The entire system can be summarized by:
$$ \boxed{ \text{Operational state may roll backward. Protection history does not.} } $$
This gives recovery systems a simple default. If there is uncertainty about whether a historical value is data or authority, restoration should not grant it operational force until its current validity is established.
Conclusion
Snapshot restoration should not be modeled as time travel in systems where authority changes over time. A snapshot is a historical representation of what was once true; it is not a declaration that every historical permission remains valid.
The monotonic recovery model therefore divides state into historical-restorable, reconstructable, and non-rollback classes. Revocations, expirations, invalidations, replay markers, protection floors, and other durable control events survive recovery. Historical data are restored beneath those constraints.
The resulting operation is $\mathcal R(S_t,S_\tau)$, not $S_\tau$. This difference closes a broad class of authority-resurrection failures. Revoked credentials stay revoked. Expired capabilities stay expired. Consumed evidence stays consumed. Failed hypothesis versions remain historically failed. Lineage restrictions remain in force. Protection changes committed after the snapshot cannot be erased by stale restore.
Legitimate relaxation remains possible, but it must occur through a separately authorized transition that explicitly records the decrease. The central rule is therefore:
$$ \boxed{ \text{Restore history without restoring obsolete authority.} } $$
Or, more compactly:
$$ \boxed{ \text{Restore is not rollback.} } $$
Runtimes and their contribution
Authorship and all research judgments are the author's alone. Machine runtimes assisted with editorial restructuring, source-location checks, house-style normalization, and verification. They did not originate the research claims, perform unreported experiments, or receive creator credit. Detailed per-runtime provenance remains in the project audit record.
References
Dennis, J.B. and Van Horn, E.C. (1966). Programming semantics for multiprogrammed computations. Communications of the ACM, 9(3), 143–155.
Fowler, M. (2005). Event Sourcing. martinfowler.com. Retrieved 2026.
Gray, J. and Reuter, A. (1992). Transaction Processing: Concepts and Techniques. Morgan Kaufmann.
Mohan, C., Haderle, D., Lindsay, B., Pirahesh, H., and Schwarz, P. (1992). ARIES: A transaction recovery method supporting fine-granularity locking and partial rollbacks using write-ahead logging. ACM Transactions on Database Systems, 17(1), 94–162.
Saltzer, J.H. and Schroeder, M.D. (1975). The protection of information in computer systems. Proceedings of the IEEE, 63(9), 1278–1308.
Young, G. (2010). CQRS Documents. https://cqrs.files.wordpress.com/2010/11/cqrs_documents.pdf
Public source text and line addresses
# Restore Is Not Rollback: Monotonic Recovery for Stateful Safety Systems **Author:** E. M. Honeycutt III **Affiliation:** Honeycutt Ai Labs, Princeton, TX **License:** CC BY-NC 4.0 --- ## The short version State restoration is normally understood as replacement of current state with an earlier snapshot. That model is unsafe for systems in which authority, revocation, expiry, lineage, or safety policy may have changed after the snapshot was created. A literal rollback can restore not only historical data but also historical capability, resurrecting permissions that were subsequently revoked or expired. This paper defines a monotonic recovery model in which **historical state may be restored without restoring historical authority**. Recovery is treated as a typed state transition rather than time reversal. The restore operator reconstructs recoverable historical state while reconciling it against a current protection floor containing non-resurrectable revocations, expirations, prohibitions, lineage restrictions, and capability invalidations. Let $S_\tau$ be a historical snapshot and (S_t) the current state. Conventional rollback computes $$ S_{t+1} = S_\tau. $$ The proposed restore semantics instead compute $$ S_{t+1} = \mathcal R(S_t,S_\tau,e_R), $$ subject to the invariant $$ \Pi_{S_{t+1}}(x) \succeq \Pi_{S_t}(x) $$ for every protected request (x), unless an independently authorized relaxation operation explicitly permits a decrease. We formalize authority tombstones, expiration monotonicity, capability reissue, lineage-aware restoration, replay protection, restore receipts, crash-safe reconciliation, and preservation of post-snapshot evidence. We distinguish three classes of state: restorable historical data, reconstructable derived state, and non-rollback protection state. The paper specifies property-based and sequence-based tests for whether combinations of grant, snapshot, revoke, expire, restore, replay, correction, and reissue can resurrect authority. The central result is simple: $$ \boxed{ \text{Restore may recover history; it may not erase later protection.} } $$ This separation makes recovery compatible with auditable safety rather than treating rollback as an exception to it. --- ## Introduction Snapshots are one of the most useful mechanisms in computing. They support recovery from corruption, debugging, disaster restoration, experiment replay, configuration rollback, database recovery, and virtual-machine restoration. Their intuitive semantics are straightforward: return the system to the way it was. That intuition becomes dangerous when "the way it was" includes authority. Suppose capability (c) was valid when snapshot $S_\tau$ was created. Later, (REVOKE(c).) occurs. A fault then causes the system to restore $S_\tau$. If restoration literally replaces current state with the snapshot, the system may return to (Authorized(c)=1.) The revocation disappears because, from the snapshot's perspective, it has not happened yet. Operationally, however, the revocation did happen. Recovery has therefore converted an administrative repair operation into an authorization event. The same problem appears with expired credentials, revoked API tokens, terminated delegations, updated deny policies, lineage-specific restrictions, emergency prohibitions, and corrected authority records. A restore system must therefore answer a question that conventional rollback semantics largely avoid: which parts of history are allowed to come back? This paper develops a formal answer. ## Core Distinction A rollback attempts to recover an earlier complete state: $Rollback(S_\tau)=S_\tau.$ A restore reconstructs selected historical components under current invariants: $Restore(S_t,S_\tau) = S_\tau \text{ reconciled with current constraints}.$ $$ \boxed{ Restore\neq TimeTravel. } $$ Historical data may return. Historical authority does not automatically return with it. ## State Decomposition Let complete system state be $$ S= (D,E,A,R,X,L,P,V), $$ where (D) is ordinary data and configuration; (E) is evidence and provenance; (A) is active authorization and capabilities; (R) is revocations and prohibitions; (X) is expiration and invalidation state; (L) is lineage and delegation relationships; (P) is protection policy; and (V) is versions, receipts, replay metadata, and ledger state. For recovery purposes these components are classified by restore semantics rather than merely storage location. ## Three Restore Classes Historical-restorable state, (S_H), is state that may ordinarily be recovered from the snapshot. Examples include user data, model artifacts, configuration, ordinary metadata, and non-authoritative workflow state. Reconstructable state, (S_C), is state that should be recomputed from authoritative records rather than copied literally. Examples include caches, derived indexes, effective policy calculations, and materialized views. Any value derived from protection rules or revocation records must be classified as reconstructable rather than historical-restorable, even when the value is stored alongside ordinary configuration. A stale derived-policy value restored from (S_H) without recomputation can silently weaken protection without triggering tombstone-preservation checks. Non-rollback protection state, (S_P), is state whose post-snapshot changes survive restoration. This class covers revocation tombstones, expired capability records, permanent invalidations, current protection floors, lineage restrictions, and post-snapshot prohibition events. The restore operator treats these classes differently. ## Protection Function Let (D_R) denote the request domain. Define effective protection $$ \Pi_S:D_R\rightarrow\mathcal P, $$ where $\mathcal P$ is an ordered protection space, for example $$ ALLOW \prec REQUIRE_AUTH \prec DENY. $$ An ordinary restore must satisfy $$ \boxed{ \forall x\in D_R: \Pi_{S'}(x) \succeq \Pi_{S_t}(x). } $$ Restoration cannot make any protected request easier solely because an older snapshot contained weaker policy. ## Restore Operator Let (S_t) be current state, $S_\tau$ a historical snapshot, and (e_R) the restore event. Define $$ S' = \mathcal R(S_t,S_\tau,e_R). $$ Conceptually, $$ \mathcal R = Merge( HistoricalBase(S_\tau), CurrentProtectionFloor(S_t), ReconstructedDerivedState ). $$ A convenient semantic expression is $$ S' = S_\tau^{restorable} \oplus S_t^{nonrollback} \oplus Recompute(S_\tau,S_t). $$ The operator $\oplus$ is not ordinary object merge; it obeys typed precedence rules. ## Protection Floor Define the current protection floor (F_t). For every protected request (x), (F_t(x)) is the minimum protection level that may survive an ordinary restore. Then $$ \Pi_{S'}(x) = \Pi_{snapshot}(x) \vee F_t(x), $$ where $\vee$ denotes the protection join. Therefore if the snapshot says (ALLOW) but the current floor says (DENY), the restored state is (DENY). ## Revocation Tombstones A revocation must survive deletion or restoration of the original capability object. Let capability (c) have identifier (id(c)=u). A revocation creates a durable tombstone $$ T_u= ( u, scope, lineage, time, reason, event_id ). $$ Once active, ordinary restore cannot erase (T_u). Thus (Revoked(u)=1) remains true across historical restoration. The capability's former existence may return as provenance; its operational authority cannot. **Assumption A0 (State-classification completeness).** Every field affecting protection or authority is correctly classified as historical-restorable, reconstructable, or non-rollback protection state. Values derived from protection state are reconstructable. The Main Theorem is conditional on this classification being correct and complete. **Assumption A1 (Tombstone store write-protection).** The tombstone ledger and safety ledger are stored on a medium that the ordinary restore operator cannot overwrite. All theorems in this paper that rely on tombstone inviolability are scoped to implementations satisfying A1. The restore operator may read the tombstone ledger to perform reconciliation; it does not hold write authority over it. The Persistent Safety Ledger section elaborates the architectural separation. In disaster-recovery scenarios where the tombstone store itself may be damaged, a separate recovery contract governs reconstitution of the safety ledger before ordinary restore is permitted to proceed. **Assumption A2 (Atomic revocation).** The model assumes each revocation operation commits atomically: the tombstone is written and the capability record is invalidated as a single durable unit before any snapshot can capture a semantically coherent revocation state. Revocation protocols that involve intermediate states (for example, PENDING_REVOKE without a committed tombstone) require additional mechanism not addressed here. A snapshot capturing a mid-revocation intermediate state falls outside the model's operating assumptions. The Restore Against a Moving State, Theorem 5: Freshness Preservation, and Concurrency Threat sections address concurrent revocation during restore preparation; they do not address partially committed revocations at snapshot time. ## Theorem 1: Revocation Non-Resurrection Suppose (Grant(c)) occurs at (t_1), snapshot $S_\tau$ is created at (t_2), and (Revoke(c)) occurs at (t_3>t_2). For any ordinary restore of $S_\tau$ at (t_4>t_3), $$ \boxed{ Authorized_{t_4}(c)=0. } $$ Under Assumption A1 the revocation tombstone is stored in a medium the restore operator cannot overwrite. Therefore (T_u) survives restoration. Effective authorization requires $Grant(c) \land \neg Revoked(c)$. Since (Revoked(c)=1), authorization remains false regardless of historical grant presence. Under Assumption A2 the revocation is atomic: if (Revoke(c)) committed before the snapshot at (t_2), the tombstone was present at snapshot time. If (Revoke(c)) committed after the snapshot, the tombstone post-dates the snapshot and survives restore by A1. There is no intermediate state in which a snapshot could capture a partially revoked capability that lacks its tombstone. ## Expiration Is Monotonic A capability valid during the snapshot may later expire. Let (expiry(c)=t_e). For current time (t>t_e), ordinary restore must not make (Valid(c)=1). Thus $$ \boxed{ Expired(c) \Rightarrow \neg RestoreValidity(c). } $$ Expiration is evaluated against current authoritative time and current ledger state, not snapshot-local time. This guarantee applies to single-node systems or systems with a strongly consistent authoritative time source. Distributed deployments with clock skew or multiple time authorities must designate a canonical time oracle; without one, the expiration guarantee cannot be mechanically enforced against all nodes simultaneously. ## The Clock-Rollback Problem A snapshot may contain historical wall-clock state, cached expiration decisions, and lease timestamps. Recovery must not evaluate validity as if current time had returned to the snapshot epoch. Otherwise (t_{snapshot}<t_e<t_{current}) could incorrectly imply (Valid(c)=1). Restore therefore distinguishes (HistoricalTime) from (AuthorizationTime). Current authority is evaluated against the latter. ## Scheduled Expiry Temporary authority may be validly configured to end at (t_e). The expiration itself may be considered preauthorized when the grant is created. Restoration after (t_e) therefore cannot revive the grant. The ledger records $GRANT \rightarrow EXPIRED.$ The historical `GRANT` remains visible; `EXPIRED` remains authoritative. ## Capability Reissue A revoked capability may later need to be granted again. The system should not reactivate the old identifier. Instead create (c') with $id(c')\neq id(c).$ The new capability receives current scope, current lineage, current expiry, and current authorization event. Thus $$ Reissue(c)\neq Unrevoke(c). $$ This prevents restoration or replay from confusing the new authority with an earlier revoked object. ## Theorem 2: Reissue Freshness If capability (c) was revoked and a later capability (c') is validly issued, then (Authorized(c)=0) and (Authorized(c')=1) may simultaneously hold. Restoring a snapshot containing (c) does not affect (c'), nor does it reactivate (c). Capability identity therefore encodes issuance lineage. ## Global and Lineage-Scoped Revocations Suppose authority exists within lineage (L_1). A revocation may be Global or LineageScoped(L_1). Restoring a snapshot into descendant lineage (L_2) must evaluate current lineage restrictions. A historical grant in (L_1) cannot simply migrate into (L_2). Authorization becomes a function (Authorized(c,L,t).) Restore must therefore preserve current lineage semantics. ## Cross-Lineage Restore Let snapshot $S_\tau$ belong to lineage (L_a) and current destination state belong to (L_b). Restoration is admissible only under an explicit lineage mapping $M:L_a\rightarrow L_b.$ Data may be mapped; authority is not automatically mapped. The default rule is (AuthorityTransfer=DENY.) A capability from (L_a) requires fresh reauthorization if it is to operate in (L_b). ## Theorem 3: Lineage Non-Transfer For capability (c) scoped to lineage (L_a), $$ Restore(S_\tau^{L_a}\rightarrow L_b) $$ does not imply (Authorized(c,L_b)=1.) Authority transfer requires a separately authorized event; restore alone cannot provide it. ## Evidence Preservation Recovery presents a second issue beyond authority. Suppose new evidence (E_{new}) was added after snapshot creation. Literal rollback would erase it. In scientific or audit-sensitive systems, this may silently rewrite the evidentiary record. The restore contract should therefore classify evidence by whether post-snapshot evidence is immutable, mergeable, branch-specific, or explicitly replaceable. A conservative default is that post-snapshot evidence survives restore unless explicitly superseded by a correction event. ## Restore Is Not Correction Restore and correction solve different problems. `RESTORE_STATE` means: reconstruct historical operational state under present invariants. `CORRECT_STATE` means: assert that some recorded state was erroneous and replace it under an explicit correction contract. Therefore, (RESTORE) cannot be used to bypass (CORRECT). If current protected state is believed to be wrong, an explicit correction or relaxation mechanism is required. ## Restore Is Not Relaxation Suppose current state contains (DENY(x)) and the snapshot contains (ALLOW(x)). If the operator genuinely intends to weaken protection, the correct event is not (RESTORE); it is an explicit authorized relaxation operation. Thus $$ \boxed{ RESTORE\not\Rightarrow RELAX. } $$ This separation preserves an auditable record of why protection decreased. The RESTORE invariant is conditional on the RELAX channel itself being protected: the guarantee holds when the authorization requirements governing RELAX events are independently enforced. An attacker who can issue RELAX events without authorization can circumvent the invariant through the RELAX path; this is a threat against the RELAX authorization system, not against the RESTORE semantics defined here. ## Theorem 4: Protection Monotonicity Under Restore For every ordinary restore: $$ \boxed{ \Pi_{\mathcal R(S_t,S_\tau)}(x) \succeq \Pi_{S_t}(x) \qquad \forall x. } $$ If the candidate restored state violates this property, restore is rejected or reconciled before commit. This theorem is independent of snapshot age. ## Restore Preflight Before commit, restore should compute a candidate state $\hat S$ and validate: (1) snapshot integrity; (2) snapshot provenance; (3) schema compatibility; (4) lineage mapping; (5) protection floor; (6) revocation tombstones; (7) expiration state; (8) replay metadata; (9) current non-rollback events; (10) evidence-preservation rules. Only after these checks does $S\leftarrow\hat S$ occur. The protection floor check (item 5) must evaluate $\Pi$ using the canonical selector partition induced by the post-restore candidate state $\hat S$, not the partition of (S_t) alone. Because restoration may introduce historical policy objects that alter the selector partition, adding or splitting canonical cells, the pre-restore partition of (S_t) may not cover all cells present in $\hat S$. The floor comparison must be performed on every cell of the partition of $\hat S$. This is required for correct composition with Protection Monotonicity and Canonical Selector Algebra for Auditable State Machines (publication P-025)'s canonical selector algebra: Protection Monotonicity and Canonical Selector Algebra for Auditable State Machines (publication P-025) constructs the partition from active policy objects at the target state; the target state here is $\hat S = \mathcal R(S_t, S_\tau)$. ## Compute-Verify-Commit Safe restore follows the sequence $Snapshot \rightarrow Candidate \rightarrow Reconcile \rightarrow Verify \rightarrow Commit$, not $ReplaceCurrentState \rightarrow DiscoverProblem \rightarrow AttemptRepair$. The current safe state remains active until the candidate restore passes all invariants. ## Restore Receipts Every restore should produce a receipt $$ r_R= ( event_id, snapshot_id, snapshot_version, current_version, restored_fields, preserved_fields, reconstructed_fields, surviving_revocations, expired_capabilities, lineage_mapping, result ). $$ This receipt provides a semantic explanation of what "restore" actually changed. ## Restore Diff A useful audit report separates: historical values restored $D_\tau\rightarrow D'$, current protections retained $R_t\rightarrow R'$, derived values recomputed $C'\leftarrow f(D',R')$, and historical authority suppressed. Suppressed authority means capabilities present in the snapshot but invalid under current state. This makes non-resurrection visible rather than implicit. ## Replay Protection Restore events themselves require replay protection. If restore event (e_R) has already committed, replaying it should return (REPLAY) or the original receipt. It must not execute a second reconciliation against a newer state under stale assumptions. ## Restore Against a Moving State Suppose restore was prepared against version (v). Before commit, a new revocation occurs at $v\rightarrow v+1$. The prepared restore is now stale. It cannot commit merely because its snapshot was previously validated; it must be recomputed against (S_{v+1}). This ensures that protection events occurring during restore preparation survive. ## Theorem 5: Freshness Preservation If restore event (e_R) declares (base_version=v) and current state is (v'>v), the restore cannot commit without revalidation against (v'). Therefore no protection event committed after restore preparation can be lost through stale writeback. ## Concurrency Threat Consider the sequence (RestoreRead(S_v)), then $Revoke(c):S_v\rightarrow S_{v+1}$, then $RestoreWrite(\hat S_v)$. Without version checking, the restore may erase the revocation. The correct result is $RestoreWrite \rightarrow STALE$. The candidate must be recomputed. ## Crash Safety A restore is particularly sensitive to partial commit. Suppose data pages are restored, the revocation ledger is not yet restored, and the process crashes. The resulting state may be semantically inconsistent. Recovery therefore requires transactional commit or equivalent journaling. The invariant is: $$ \boxed{ \text{A restore is either committed as one valid semantic state or not committed.} } $$ The append-only property of the safety ledger (Theorem 7 below) depends on the ledger being stored on separately durable media from operational state. In total-loss disaster-recovery scenarios where the ledger itself is damaged or destroyed, reconstituting the safety ledger is a prerequisite to any ordinary restore operation. Recovery from ledger loss requires a separate contract not addressed in this paper. ## Protection-Biased Reconciliation If a crash leaves ambiguity about whether a protection-reducing operation occurred, reconciliation should prefer the stronger state. For example, if durable records disagree between (ALLOW) and (DENY) and no valid relaxation receipt proves the decrease, recovery selects (DENY). This is a fail-closed reconciliation policy. ## Restore and Replay Interactions The sequence $Event(e) \rightarrow Snapshot \rightarrow MoreEvents \rightarrow Restore \rightarrow Replay(e)$ creates a replay ambiguity if the snapshot contains an earlier replay cache. The restored system must not forget that (e) was previously consumed if replay metadata is classified as non-rollback state. Otherwise restore could allow duplicate application of historical evidence or authorization. ## Theorem 6: Replay-Memory Preservation For every event (e) committed before current time, (Consumed_t(e)=1). An ordinary restore cannot produce (Consumed_{t+1}(e)=0) where replay would cause duplicated substantive effects. Replay-protection state is therefore part of the non-rollback control plane. ## Evidence Replay In epistemic systems, replay failure has a direct probabilistic consequence. If evidence (E) was applied once, $P_t(H) \rightarrow P_{t+1}(H),$ restoring an old Bayesian snapshot and replaying the same evidence can double count it. Restore must therefore reconcile belief state, evidence ledger, and evidence-consumption receipts. The ledger is authoritative about what evidence has already been used. ## Restore of Bayesian State A historical posterior may sometimes need to be reconstructed, but posterior state is derived from (Prior + EvidenceHistory). Where evidence after the snapshot remains valid, literal restoration of an earlier posterior is incorrect. An alternative approach reconstructs $P(H\mid E_{valid})$ from the retained evidence ledger. This reconstruction is valid when the prior (P(H)) is stable across the restore window. That is, no CORRECT operation changed the prior between snapshot creation and restore time. If the prior was updated after the snapshot, reconstruction using the current prior against historical evidence produces a posterior that was never actually computed; handling prior-change cases requires a retroactive reprocessing protocol not specified here. Thus Bayesian state is often better classified as reconstructable than literally restorable, subject to prior stability. ## Administrative Status Hypothesis statuses such as OPEN, PROPOSE, PROMOTE, PASS, PARK, FAIL may also contain post-snapshot decisions that should not be erased casually. The restore contract should explicitly specify whether status is historical-restorable, mergeable, or ledger-derived. A FAIL receipt, for example, should ordinarily survive restore even if the snapshot predates the failure. Otherwise rollback could resurrect a failed model as if the test never occurred. ## General Non-Resurrection Principle The authority case generalizes. Any event intended to permanently constrain future state should be considered for non-rollback status. Examples include revocation, fail receipt, consumed evidence marker, permanent invalidation, signed correction, legal hold, and security prohibition. The design question is: is this event meant to remain true even if operational state is restored? If yes, it belongs above the rollback layer. ## Persistent Safety Ledger A useful architecture separates (OperationalState) from (SafetyLedger.) Snapshots may capture both for archival purposes, but restoration treats the current safety ledger as authoritative. Conceptually: $$ OperationalRestore = SnapshotOperationalState + CurrentSafetyLedger. $$ This creates a monotonic control history over mutable operational history. The separation is an architectural requirement for Assumption A1: the restore operator must not hold write authority over the safety ledger. Physical separation, namely separate storage volumes, separate access-control domains, or write-once ledger media, is the implementation mechanism. Logical separation alone is insufficient if the restore operator has physical write access to the storage layer. ## Ledger Ordering Let ledger events be totally ordered by (event_sequence,time,event_id). A restore does not delete events after snapshot time. Instead it inserts a new event $RESTORE(snapshot=\tau).$ History becomes $$ E_1,E_2,\ldots,E_k, RESTORE(S_\tau), E_{k+1},\ldots $$ rather than truncating the log back to $\tau$. Restore is therefore another event in history, not replacement of history. ## Theorem 7: Historical Append-Only Property If event (e) has been durably committed before restore, then after ordinary restore (LedgerContains(e)=1.) Restore may append reconciliation records; it does not erase committed history. This theorem supplies the provenance basis for non-resurrection. It holds within the model's operating assumption that the ledger is stored on separately durable media from operational state. In disaster-recovery scenarios where ledger durability cannot be guaranteed, for example total primary-storage loss, the append-only property must be reestablished through ledger reconstitution before ordinary restore can proceed. ## Snapshot Semantics A snapshot should be interpreted as a historical observation of state rather than a future authority template. This distinction matters because snapshots often contain secrets, tokens, or policy state that were valid only when captured. Their presence is historical evidence; it is not proof of current validity. ## Snapshot Trust Restore requires checking snapshot authenticity. Relevant properties include integrity, provenance, schema version, creation time, source lineage, cryptographic digest, and known corruption status. A valid snapshot can still contain obsolete authority; integrity does not imply current authorization. ## Secret Restoration Restoring an old secret is especially dangerous if the secret has been revoked or rotated. Suppose key (K_1) was valid in the snapshot. Later it was rotated to (K_2.) Restore should not make (K_1) authoritative again. A key registry or revocation ledger must determine active validity. The restored bytes may exist for forensic reasons while being marked unusable. ## External Authority Some authorization state lives outside the restored system, including certificate authorities, identity providers, external policy services, cloud IAM, and remote revocation lists. Restore must reconcile against these current authorities where they are authoritative. A historical local snapshot cannot override a current external revocation. ## Threat Model The restore architecture addresses the following failure classes. ## T1. Revocation resurrection Old snapshot restores a revoked capability. The model covers pre-snapshot revocations (Theorem 1, under A1 and A2) and concurrent revocations during restore preparation (the Concurrency Threat and Theorem 5 sections). It does not cover revocations captured in an intermediate state by a non-atomic revocation protocol; such deployments require atomic revocation as a prerequisite. ## T2. Expiry resurrection Old snapshot restores an expired lease or token. ## T3. Replay-cache rollback Previously consumed events become executable again. ## T4. Evidence rollback Post-snapshot evidence disappears or is applied twice. ## T5. Lineage escape Authority valid in an old lineage appears in a new one. ## T6. Stale restore commit A restore prepared before a new protection event overwrites it. ## T7. Partial restore crash Some state components commit without their control-plane counterpart. ## T8. Secret rollback Rotated or invalidated secrets become operational again. ## T9. Administrative resurrection Failed or superseded objects return to active status. ## T10. Restore-as-relaxation Operator uses ordinary restore to bypass explicit protection-relaxation requirements. ## Security Objective For all ordinary restore traces $\tau_R$ and every protected request (x), $$ \Pi_{after(\tau_R)}(x) \succeq \Pi_{before(\tau_R)}(x). $$ For every durable revocation (r), $$ ActiveRevocation_{before}(r) \Rightarrow ActiveRevocation_{after}(r) $$ unless an independently authorized relaxation or supersession event explicitly changes it. ## Property-Based Evaluation The restore contract is suitable for property-based sequence testing. Generate arbitrary events from GRANT, REVOKE, EXPIRE, SNAPSHOT, RESTORE, REISSUE, CORRECT, RELAX, REPLAY, then verify invariants after every transition. ## Property P1: Revocation Survival Generate $Grant(c) \rightarrow Snapshot \rightarrow Revoke(c) \rightarrow Restore.$ Required: (Authorized(c)=0.) ## Property P2: Expiration Survival Generate $Grant(c,t_e) \rightarrow Snapshot \rightarrow AdvanceTime(t>t_e) \rightarrow Restore.$ Required: (Valid(c)=0.) ## Property P3: Reissue Separation Generate $Grant(c_1) \rightarrow Snapshot \rightarrow Revoke(c_1) \rightarrow Reissue(c_2) \rightarrow Restore.$ Required: (Authorized(c_1)=0); (Authorized(c_2)) is determined solely by its current validity, not by the snapshot. ## Property P4: Protection Monotonicity For every generated restore, $$ \forall C\in CanonicalProtectionCells: \Pi_{after}(rep(C)) \succeq \Pi_{before}(rep(C)). $$ This connects restore directly to canonical selector verification. The canonical cells are those of the post-restore state $\hat S$, per the partition specification above. ## Property P5: Replay Memory Generate $Apply(e) \rightarrow Snapshot \rightarrow Restore \rightarrow Apply(e).$ Required second result: REPLAY or equivalent no-op. ## Property P6: Stale Restore Rejection Generate $PrepareRestore(S_v) \rightarrow ProtectionEvent(S_{v+1}) \rightarrow CommitRestore.$ Required: STALE or recomputation before commit. ## Property P7: Lineage Isolation Generate snapshot in (L_1) and restore into (L_2). Historical capabilities from (L_1) must not become authorized in (L_2) absent explicit transfer authority. ## Property P8: Administrative Non-Resurrection Generate $H:\ PROMOTE \rightarrow Snapshot \rightarrow FAIL \rightarrow Restore.$ The historical failure receipt remains valid. Restore cannot return the same hypothesis version to PROMOTE merely by loading the old snapshot. ## Property P9: Evidence Non-Duplication Generate $Snapshot \rightarrow Evidence(E) \rightarrow Restore \rightarrow Replay(E).$ Required: (E) is not counted twice. ## Property P10: Relaxation Exclusivity Attempt to reduce protection through restore. Required: REJECT. Then execute separately authorized RELAX_REVOCATION. Only that transition may produce the declared reduction. ## Sequence Fuzzing Randomized traces should include hundreds or thousands of mixed transitions, especially sequences like $Snapshot \rightarrow Revoke \rightarrow Restore \rightarrow Replay \rightarrow Reissue \rightarrow Restore$. The goal is not to test isolated examples only; it is to detect emergent resurrection paths produced by interaction between individually valid operations. ## Mutation Testing Deliberately inject implementation faults: omit tombstone merge; restore snapshot replay cache; use snapshot-local clock; reuse capability identifier; ignore lineage on restore; remove version check; allow restore to overwrite revocation table; restore old posterior without evidence reconciliation. Then verify that the test suite detects each mutation. ## Differential Testing Compare two recovery implementations: a literal rollback baseline $S'=S_\tau$ and monotonic restore $S'=\mathcal R(S_t,S_\tau)$. Run identical generated histories. Measure the frequency of resurrected authorization, duplicated evidence, erased revocation, stale status, and replay acceptance. The literal baseline serves as a negative control. ## Reference Implementation Architecture A minimal implementation contains SnapshotStore, CurrentLedger, RestorePlanner, ProtectionReconciler, ReplayRegistry, InvariantChecker, and TransactionalCommitter. The snapshot store is historical. The current ledger is authoritative. The restore planner never receives unilateral permission to replace the latter. ## Restore Plan Before execution, generate a typed plan $$ Plan= ( snapshot, fields_restore, fields_preserve, fields_recompute, suppressed_historical_authority, expected_version ). $$ The plan itself can be audited before commit. This improves both safety and explainability. ## Performance Considerations A full reconciliation may be more expensive than raw snapshot replacement. Potential costs include replay-ledger scanning, protection recomputation, evidence reconstruction, selector comparison, and cryptographic verification. Optimizations include monotonic tombstone indexes, Merkleized ledgers, checkpointed protection floors, incremental replay filters, and cached canonical policy partitions. Performance optimization must not alter the semantics. ## Related-Work Positioning Restore semantics intersect several established areas of systems research. Database systems distinguish write-ahead logs, checkpoints, undo, and redo. The foundational treatment is Gray and Reuter (1992), which defines the transaction and recovery model underlying most commercial database systems. The ARIES protocol (Mohan et al. 1992) extends this with fine-granularity locking and physiological logging, providing the log-structured recovery model on which modern WAL-based systems are built. The present contribution focuses specifically on semantic non-rollback state, especially authority and revocation, that must survive restoration even when ordinary application state returns to an older version. ARIES and its successors address crash recovery for data integrity; they do not address recovery-time resurrection of authority objects that have been administratively invalidated. Event-sourced systems reconstruct state from append-only histories (Fowler 2005; Young 2010). The proposed safety ledger follows a related principle: restore is itself another event rather than deletion of later history. Capability systems provide explicit authority objects (Dennis and Van Horn 1966; Saltzer and Schroeder 1975). Monotonic restore adds lifecycle semantics ensuring that historical possession does not imply present validity. Security infrastructures already recognize that old credentials must remain invalid after revocation. The present work generalizes that principle to arbitrary stateful recovery. Security systems often prefer fail-closed behavior. The restore model gives this principle an explicit transition semantics: current protection forms a floor beneath historical reconstruction. Distributed systems must reconcile clocks, versions, and partially replicated state after failure. The present framework contributes a specific invariant for safety-sensitive state: later protection events cannot be erased by local historical rollback. The clock model is stated for single-node or strongly-consistent-time systems; distributed deployments require a designated time oracle. ## Distinction From Backup Policy This is not primarily a paper about backup retention. A backup may be perfectly valid and complete while containing unsafe historical authority. The question is not whether the snapshot is trustworthy; the question is which parts of a trustworthy historical state are allowed to regain operational force. That is a transition-semantics problem. ## Distinction From Immutable Infrastructure Immutable infrastructure reduces configuration drift but does not solve authority resurrection automatically. A historical immutable image may still contain revoked certificates, obsolete secrets, and stale authorization rules. The current authority plane must still dominate restored artifacts. ## Falsification Criteria The architecture fails if any ordinary restore can: 1. reactivate a revoked capability; 2. reactivate an expired capability; 3. erase a durable revocation tombstone; 4. cause a consumed event to execute substantively twice; 5. restore a failed hypothesis version to active status without a new transition; 6. remove valid post-snapshot evidence without an explicit correction; 7. move lineage-scoped authority across lineages automatically; 8. overwrite a protection event that committed during restore preparation; 9. reduce effective protection without an explicit relaxation event; 10. produce a durable state lacking its restore receipt. Criterion 1 applies to fully committed revocations (Assumption A2). A revocation protocol that commits in multiple steps must complete atomically before a snapshot can produce a coherent revocation state; intermediate states such as PENDING_REVOKE without a committed tombstone are outside the model's scope and require additional mechanism. These are direct test targets. ## Main Theorem Let (S_t) be current state and $S_\tau$ a historical snapshot. Assume: (1) committed protection events after $\tau$ are represented in a non-rollback ledger; (2) revocation and expiration validity are resolved from current authoritative state; (3) restore uses current lineage and replay metadata; (4) the candidate restored state is checked against the current protection function before commit, using the canonical selector partition of the post-restore candidate state (per Protection Monotonicity and Canonical Selector Algebra for Auditable State Machines (publication P-025)'s procedure); (5) protection decreases require a separately typed relaxation event. **Assumption A0 (State-classification completeness, restated).** Every protection-relevant field is correctly and completely assigned to the historical-restorable, reconstructable, or non-rollback protection class. **Assumption A1 (Tombstone store write-protection, restated).** The tombstone and safety ledger store is write-protected against ordinary restore operations. Theorems 1, 7, and the Main Theorem are scoped to implementations satisfying A1. **Assumption A2 (Atomic revocation, restated).** Revocations commit atomically. Intermediate revocation states are outside the theorem's scope. Then for ordinary restore: $$ \boxed{ \forall x\in D_R: \Pi_{\mathcal R(S_t,S_\tau)}(x) \succeq \Pi_{S_t}(x). } $$ Furthermore, for every capability (c) revoked before restore: $$ \boxed{ Authorized_{\mathcal R(S_t,S_\tau)}(c)=0. } $$ Thus historical state restoration cannot resurrect revoked authority. The Main Theorem is a correctness condition given the stated design assumptions. The verification obligation is transferred to implementations: an implementation satisfying assumptions 1–5 and A0 through A2 satisfies the invariant by construction. The falsification criteria above are the concrete test targets for any claimed implementation. ## Corollary: Restoration Is Monotonic Between Relaxations Consider a history containing ordinary restores but no authorized protection relaxation between states (S_i) and (S_j). Then $$ \Pi_{S_i} \preceq \Pi_{S_{i+1}} \preceq \cdots \preceq \Pi_{S_j}. $$ Restoration may move ordinary application data backward. The protection history remains monotonic. This is the defining asymmetry of the architecture. ## Design Rule The entire system can be summarized by: $$ \boxed{ \text{Operational state may roll backward. Protection history does not.} } $$ This gives recovery systems a simple default. If there is uncertainty about whether a historical value is data or authority, restoration should not grant it operational force until its current validity is established. ## Conclusion Snapshot restoration should not be modeled as time travel in systems where authority changes over time. A snapshot is a historical representation of what was once true; it is not a declaration that every historical permission remains valid. The monotonic recovery model therefore divides state into historical-restorable, reconstructable, and non-rollback classes. Revocations, expirations, invalidations, replay markers, protection floors, and other durable control events survive recovery. Historical data are restored beneath those constraints. The resulting operation is $\mathcal R(S_t,S_\tau)$, not $S_\tau$. This difference closes a broad class of authority-resurrection failures. Revoked credentials stay revoked. Expired capabilities stay expired. Consumed evidence stays consumed. Failed hypothesis versions remain historically failed. Lineage restrictions remain in force. Protection changes committed after the snapshot cannot be erased by stale restore. Legitimate relaxation remains possible, but it must occur through a separately authorized transition that explicitly records the decrease. The central rule is therefore: $$ \boxed{ \text{Restore history without restoring obsolete authority.} } $$ Or, more compactly: $$ \boxed{ \text{Restore is not rollback.} } $$ ## Runtimes and their contribution Authorship and all research judgments are the author's alone. Machine runtimes assisted with editorial restructuring, source-location checks, house-style normalization, and verification. They did not originate the research claims, perform unreported experiments, or receive creator credit. Detailed per-runtime provenance remains in the project audit record. ## References Dennis, J.B. and Van Horn, E.C. (1966). Programming semantics for multiprogrammed computations. *Communications of the ACM*, 9(3), 143–155. Fowler, M. (2005). Event Sourcing. martinfowler.com. Retrieved 2026. Gray, J. and Reuter, A. (1992). *Transaction Processing: Concepts and Techniques*. Morgan Kaufmann. Mohan, C., Haderle, D., Lindsay, B., Pirahesh, H., and Schwarz, P. (1992). ARIES: A transaction recovery method supporting fine-granularity locking and partial rollbacks using write-ahead logging. *ACM Transactions on Database Systems*, 17(1), 94–162. Saltzer, J.H. and Schroeder, M.D. (1975). The protection of information in computer systems. *Proceedings of the IEEE*, 63(9), 1278–1308. Young, G. (2010). *CQRS Documents*. https://cqrs.files.wordpress.com/2010/11/cqrs_documents.pdf