How cooperating ledger operators order decisions · Chapter 6 of 8

5. Handling Network Partitions and Stale Views

On this page
  1. 1. Bounded Permit Lifetimes and Synchronization Horizons
  2. 2. Monotonic Authority Fences at the Custodian Boundary
  3. 3. Rollback-Safe Recovery via External Anchors

In any distributed system spanning multiple data centers, cloud regions, or administrative organizations, network partitions are inevitable. A custodian may lose connectivity to the primary ledger validators, to the revocation authority, or to the policy broker quorum while still holding queued requests or receiving local instructions.

If a partitioned custodian continues executing operations based on cached permissions or local clocks, an adversary can exploit the partition, or deliberately induce a partition via denial-of-service attacks, to execute actions using grants that have already been revoked on the main side of the network.

To guarantee safety under arbitrary network partitions, clock skew, and backup restorations, the architecture enforces a fail-closed freshness and fencing contract governed by three explicit mechanisms:

1. Bounded Permit Lifetimes and Synchronization Horizons

Every broker qualification endorsement EE and state reservation permit carries two explicit temporal bounds evaluated against a tamper-resistant, synchronized monotonic clock (with documented maximum clock uncertainty ϵclock\epsilon_{\text{clock}}):

  • Checkpoint Freshness Horizon (Δfresh\Delta_{\text{fresh}}): The maximum allowable age of the custodian's latest verified ledger checkpoint (h,Rh,σquorum)(h, R_h, \sigma_{\text{quorum}}). The custodian tracks the time tlast_synct_{\text{last\_sync}} at which it last verified a valid quorum-signed ledger header and revocation frontier. Before committing any state-changing effect or releasing any protected byte, the custodian verifies: tnow+ϵclock−tlast_sync≤Δfresh.t_{\text{now}} + \epsilon_{\text{clock}} - t_{\text{last\_sync}} \le \Delta_{\text{fresh}}. If a network partition interrupts connectivity to the ledger checkpoints for longer than Δfresh\Delta_{\text{fresh}}, the custodian's view is classified as stale. The custodian immediately transitions to a HOLD / FAIL-CLOSED state, halting all new commitments until connectivity is restored and a fresh quorum checkpoint is verified.
  • Short-Lived Execution Permit Expiry (texpt_{\text{exp}}): Even when the custodian has a fresh checkpoint, every broker endorsement EE is valid only for a brief execution window ℓmax⁡\ell_{\max} (for example, ℓmax⁡=5 seconds\ell_{\max} = 5\text{ seconds}). At the exact commit boundary, the custodian checks: tnow+ϵclock<texp.t_{\text{now}} + \epsilon_{\text{clock}} < t_{\text{exp}}. Consequently, the maximum possible window during which an in-flight operation endorsed immediately prior to a revocation can commit is strictly bounded by: Δstop≤dfence+ℓmax⁡+ϵclock,\Delta_{\text{stop}} \le d_{\text{fence}} + \ell_{\max} + \epsilon_{\text{clock}}, where dfenced_{\text{fence}} is the ledger propagation delay for recording the revocation. Once Δstop\Delta_{\text{stop}} elapses, it is mathematically impossible for any custodian, partitioned or connected, to commit an operation under the revoked authority.

2. Monotonic Authority Fences at the Custodian Boundary

Timestamps alone are vulnerable to clock manipulation and replay if not paired with logical ordering. The custodian maintains a durable, monotonically increasing authority fence counter FcustodianF_{\text{custodian}} stored in local non-volatile storage (or hardware TPM NVRAM). Every ledger checkpoint and broker endorsement carries the authoritative revocation epoch and sequence number FledgerF_{\text{ledger}}.

Whenever the custodian observes a newer ledger checkpoint with Fledger>FcustodianF_{\text{ledger}} > F_{\text{custodian}}, it atomically advances Fcustodian←FledgerF_{\text{custodian}} \leftarrow F_{\text{ledger}} before processing any pending operations. Any queued endorsement or execution permit referencing a fence value Fpermit<FcustodianF_{\text{permit}} < F_{\text{custodian}} is rejected immediately, even if its wall-clock expiration texpt_{\text{exp}} has not yet been reached.

3. Rollback-Safe Recovery via External Anchors

Consider the failure mode in which a custodian or state server crashes and an operator restores it from a backup snapshot taken an hour earlier. In that restored snapshot, the local database shows older balances, unconsumed nonces, and an earlier fence counter Fbackup<FcurrentF_{\text{backup}} < F_{\text{current}}.

Under the recovery protocol, a newly booted or restored custodian starts in a strict quarantine state (RECOVERY_HOLD) with all execution adapters disabled. Before the custodian may process a single request, it must:

  1. Query the certified ledger and external checkpoint anchors to retrieve the latest finalized global checkpoint (hlatest,Rhlatest,Flatest)(h_{\text{latest}}, R_{h_{\text{latest}}}, F_{\text{latest}}).
  2. Verify that its local durable state root matches the latest recorded custodian outcome on the ledger. If the local backup lags behind the ledger's recorded outcomes for that custodian, the custodian must replay missing state transitions from the ledger and reconcile any UNCERTAIN in-flight operations with its local storage before opening its execution gate.
  3. Advance its monotonic fence to Flatest+1F_{\text{latest}} + 1 and register a new runtime generation key.

Because freshness is anchored in the external BFT ledger and public checkpoints rather than inside the restored snapshot itself, restoring an old disk image can never resurrect spent permissions or replay consumed transactions.