# How does an instance detect a stale authority warrant when AAIF credential rotation races an asymmetric partition and the revocation epoch advances on only one side **Date of Record:** 2026 November 21 **Scope:** Applies to federated agent fleets that propagate authority via signed warrants (AAIF-style) with monotonic revocation epochs, where a peer may rotate credentials and bump its epoch while a network partition prevents the bump from reaching a downstream instance. Does not apply to single-cluster deployments with a shared strongly-consistent revocation store, nor to stateless bearer tokens with no epoch semantics. ## Core Distinction The failure is not "the token expired." It is that a *revocation epoch advanced on the issuer side while the consumer side's view of the epoch stayed frozen*, and the consumer has no way to distinguish "no new revocations" from "I cannot hear the issuer." A naive design treats a failed epoch-refresh as a no-op and continues executing on the last-known warrant. That conflates two states that must be separated: - **Quiescent:** issuer reachable, epoch unchanged, warrant still valid. - **Blind:** issuer unreachable, epoch unknown, warrant validity indeterminate. A blind instance that proceeds is not executing on a valid credential — it is executing on an *unfalsified* one. The invariant that must hold is: **no agent executes a side-effecting action on a warrant whose epoch cannot be confirmed within its staleness bound.** The subtlety is that the credential (signature, key material) can be perfectly intact and verifiable while the *authority* it encodes has already been revoked at the issuer. Signature validity and authority validity decouple under partition. ## What Was Observed An orchestrator agent `O` issued a scoped warrant `W@epoch=41` to worker `A` for a `write:ledger` capability. `A` cached `W` and the epoch watermark `41`. A network fault split the mesh: the issuer's revocation broadcast plane (epoch gossip) was severed from `A`'s segment, but the *data plane* between `A` and the ledger service remained up. This asymmetric partition is the trigger — `A` can still do work, it just cannot hear that its permission to do so was withdrawn. On the issuer side, `O` detected a compromised sub-key, revoked `A`'s capability scope, and rotated the signing key, advancing the global revocation epoch to `44`. `O` began rejecting `A`'s writes at the ledger's admission layer, but the admission layer's rejection was a *soft* signal delivered as a retryable `503`-class error, not a hard `403`. `A`'s reasoning loop interpreted the `503` as transient backpressure and retried with exponential backoff — repeatedly re-presenting `W@epoch=41`. Each retry re-verified `W`'s signature locally (still cryptographically valid against the pre-rotation key, which `A` still trusted), so `A` concluded the warrant was fine and the ledger was merely flaky. The loop compounded: 40+ retries, each logged as "transient," none escalated. The failure trace: 1. Partition severs epoch plane → `A.epoch_view` frozen at `41`. 2. Issuer revokes + rotates → `O.epoch = 44`, `A`'s scope dead. 3. `A` presents `W@41`; admission rejects with retryable code. 4. `A` re-verifies signature locally → passes → treats rejection as infrastructure noise. 5. No staleness check fires because `A` never *attempted* an epoch refresh (it only attempted the write). 6. `A` burns its token budget retrying a permanently-revoked action. The root defect: `A`'s verification path checked *signature integrity* but never checked *epoch freshness against a staleness deadline*. Revocation was modeled as an event to receive, not a bound to enforce. ## Condition of Validity A locally-held warrant `W@e` may be treated as authorizing a side-effecting action at wall-clock time `t` **iff all of the following hold**: - `t - last_confirmed_epoch_time <= S` where `S` is the warrant's declared staleness bound (a field carried *inside* the signed warrant, not a local config, so the issuer controls it). - The instance has, within `S`, either successfully fetched `epoch_current` from the issuer **or** received a signed heartbeat asserting `epoch_current == e`. - The admission-layer rejection was classified as *authority* (hard) rather than *transport* (retryable) — and the classifier must be conservative: an ambiguous rejection is treated as authority. If `t - last_confirmed_epoch_time > S` and no confirmation arrived, the warrant enters the **blind** state and MUST be treated as invalid for side-effecting actions, regardless of signature validity. Read-only or idempotent-diagnostic actions may proceed under a separate, stricter capability. The key architectural move: **staleness is a property of the epoch confirmation, not of the token's `exp`.** A token with `exp` far in the future can still be blind. ## Decision Boundary The boundary between "retry" and "halt-and-escalate" is *not* the HTTP status class. It is whether the rejection could be explained by an epoch the instance cannot see. Operationally: - If `now - last_epoch_confirm > S` → do not retry the write. Halt, mark the warrant blind, and emit a `WarrantBlind` event to the orchestrator over any available channel (including out-of-band). - If within `S` and rejection is retryable → bounded retries with a hard cap `R`, after which escalate as authority-ambiguous. - If a signed heartbeat arrives with `epoch_current > e` → the warrant is definitively revoked; discard immediately, no retries. - The retry cap `R` must be small enough that `R * backoff_max < S`, so retries cannot themselves consume the staleness budget and mask the blindness. The non-obvious part: the correct default under ambiguity is *fail-closed on writes, fail-open on reads*. Most agent frameworks invert this because retries are cheap and halting looks like fragility. Under partition, halting is the only correct behavior — a blind agent that keeps writing is indistinguishable, from the ledger's perspective, from a malicious one replaying a revoked credential. ## Operational Effect Enforcing the staleness bound converts an unbounded, silent authority leak into a bounded, observable event. The instance stops presenting revoked warrants, the orchestrator learns it has a partitioned member (via the out-of-band `WarrantBlind`), and the token budget that would have been burned on futile retries is preserved. The cost is availability: a partitioned-but-healthy instance voluntarily stops writing. That trade is correct because the alternative — writing on an unfalsified warrant — means the revocation epoch is advisory rather than authoritative, which defeats the entire point of federated revocation. The durable lesson: **revocation epochs are only meaningful if consumers enforce a freshness bound on their own view of them.** A revocation broadcast that a partitioned node never receives is not a revocation of that node's authority in fact — it is only a revocation in intent, until the node's staleness deadline forces it to admit it can no longer confirm its authority and stand down. ```python import time from dataclasses import dataclass class WarrantBlindError(RuntimeError): """Raised when a warrant's revocation epoch cannot be confirmed within its staleness bound.""" class EpochRegressedError(RuntimeError): """Raised when a confirmed epoch is older than the locally-held epoch (rollback attack).""" @dataclass class Warrant: epoch: int staleness_bound_s: float # carried inside the signed warrant; issuer-controlled capability: str @dataclass class EpochView: confirmed_epoch: int last_confirmed_at: float # monotonic seconds def authorize_side_effect( warrant: Warrant, view: EpochView, now: float, retry_cap: int, retries_used: int, ) -> None: """Gate a side-effecting action on epoch freshness, not just signature validity.""" age = now - view.last_confirmed_at # Blind: we cannot confirm the epoch within the warrant's own bound. if age > warrant.staleness_bound_s: raise WarrantBlindError( f"warrant epoch={warrant.epoch} unconfirmed for {age:.1f}s " f"> bound {warrant.staleness_bound_s:.1f}s; " f"capability '{warrant.capability}' must not execute" ) # Confirmed epoch advanced past ours: warrant definitively revoked. if view.confirmed_epoch > warrant.epoch: raise WarrantBlindError( f"warrant epoch={warrant.epoch} superseded by confirmed " f"epoch={view.confirmed_epoch}; revoked" ) # Rollback: a confirmed epoch lower than ours signals replayed/stale gossip. if view.confirmed_epoch < warrant.epoch: raise EpochRegressedError( f"confirmed epoch={view.confirmed_epoch} < held epoch=" f"{warrant.epoch}; possible replay of stale revocation state" ) # Retry budget must not be allowed to consume the staleness budget. if retries_used >= retry_cap: raise WarrantBlindError( f"retry cap {retry_cap} exhausted on ambiguous rejection for " f"epoch={warrant.epoch}; escalating as authority-ambiguous" ) ```